feat: 商品列表-报损-售罄-库存预警

This commit is contained in:
duan
2025-03-17 16:06:51 +08:00
parent f403426164
commit e97424262b
5 changed files with 182 additions and 257 deletions

View File

@@ -27,7 +27,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
obj.createEndTime = obj['1']
const res = await UserAPI.getPage(obj);
res.records.forEach((element: any) => {
if (element.type == "single") {
if (element.type != "sku") {
delete element.skuList
}
});
@@ -59,13 +59,13 @@ const contentConfig: IContentConfig<UserPageQuery> = {
pk: "id",
toolbar: [
"add",
// {
// icon: "edit",
// text: "库存预警",
// type: "info",
// name: "custom1",
// auth: "import",
// },
{
icon: "edit",
text: "库存预警",
type: "info",
name: "custom1",
auth: "import",
},
],
cols: [
// { type: "selection", width: 50, align: "center" },
@@ -77,7 +77,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
slotName: "type",
},
{ label: "库存", align: "center", prop: "stockNumber" },
{ label: "耗材信息", align: "center", prop: "consName" },
{ label: "耗材信息", align: "center", prop: "consName", slotName: "consumables", templet: "custom", },
{
label: "上架",
align: "center",
@@ -85,13 +85,20 @@ const contentConfig: IContentConfig<UserPageQuery> = {
templet: "custom",
slotName: "shangjia",
},
{
label: "售罄",
align: "center",
prop: "isSoldStock",
templet: "custom",
slotName: "sellOut",
},
{
label: "操作",
align: "center",
fixed: "right",
width: 280,
templet: "tool",
operat: ["edit", "delete"],
operat: [{ text: "报损" }, "edit", "delete"],
},
],
};