feat: 商品列表-报损-售罄-库存预警
This commit is contained in:
@@ -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"],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user