feat: 拉取代码

This commit is contained in:
duan
2025-02-18 18:47:15 +08:00
parent c9a88abade
commit dea89010e9
26 changed files with 1429 additions and 162 deletions

View File

@@ -1,4 +1,4 @@
import UserAPI from "@/api/product/commonUnits";
import UserAPI from "@/api/product/index";
import RoleAPI from "@/api/system/role";
import type { UserPageQuery } from "@/api/system/user";
import type { IContentConfig } from "@/components/CURD/types";
@@ -15,9 +15,12 @@ const contentConfig: IContentConfig<UserPageQuery> = {
pageSize: 20,
pageSizes: [10, 20, 30, 50],
},
indexActionData: { name: "", orderBy: "name asc" },
indexActionData: {},
indexAction: function (params) {
return UserAPI.getPage(params);
let obj = { ...params, ...params.times }
obj.createBeginTime = obj['0']
obj.createEndTime = obj['1']
return UserAPI.getPage(obj);
},
deleteAction: UserAPI.deleteByIds,
// importAction(file) {
@@ -39,11 +42,35 @@ const contentConfig: IContentConfig<UserPageQuery> = {
pk: "id",
toolbar: [
"add",
// {
// icon: "edit",
// text: "库存预警",
// type: "info",
// name: "custom1",
// auth: "import",
// },
],
cols: [
// { type: "selection", width: 50, align: "center" },
{ label: "单位名称", align: "center", prop: "name" },
{ label: "排序", align: "center", prop: "id" },
{ label: "封面图", align: "center", prop: "coverImg", templet: "image" },
{ label: "分类名称", align: "center", prop: "categoryName", },
{ label: "售价", align: "center", prop: "id" },
{ label: "规格名称", align: "center", prop: "specName" },
{ label: "库存", align: "center", prop: "stockNumber" },
{ label: "耗材信息", align: "center", prop: "id" },
{
label: "上架",
align: "center",
prop: "isSale",
templet: "switch",
slotName: "status",
}, {
label: "是否启用库存",
align: "center",
prop: "isStock",
templet: "switch",
slotName: "status",
},
{
label: "操作",
align: "center",