feat: 耗材补充修改

This commit is contained in:
wwz
2025-04-07 18:13:52 +08:00
parent 11b297baa5
commit 95f22ede1d
12 changed files with 847 additions and 164 deletions

View File

@@ -13,11 +13,11 @@ const contentConfig: IContentConfig = {
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
let obj = { ...params }
let obj = { ...params };
if (obj.createAt) {
obj.beginTime = obj.createAt[0]
obj.endTime = obj.createAt[1]
delete obj.createAt
obj.beginTime = obj.createAt[0];
obj.endTime = obj.createAt[1];
delete obj.createAt;
}
return Api.getList(obj);
},
@@ -30,23 +30,43 @@ const contentConfig: IContentConfig = {
"add",
{
text: "入库",
name: 'ruku',
auth: 'ruku'
name: "ruku",
auth: "ruku",
},
{
text: "出库",
name: 'chuku',
auth: ''
name: "chuku",
auth: "",
},
{
text: "报损",
name: "reportinglosses",
auth: "",
},
{
text: "分类管理",
name: 'category',
auth: ''
name: "category",
auth: "",
},
{
text: "供应商管理",
name: 'gongyinsahng',
auth: ''
name: "gongyinsahng",
auth: "",
},
{
text: "入库记录",
name: "manual-in",
auth: "",
},
{
text: "出库记录",
name: "manual-out",
auth: "",
},
{
text: "报损记录",
name: "damage-out",
auth: "",
},
],
defaultToolbar: ["refresh", "filter", "search"],
@@ -68,8 +88,8 @@ const contentConfig: IContentConfig = {
{
label: "所属商品",
align: "center",
templet: 'custom',
slotName: 'goods'
templet: "custom",
slotName: "goods",
},
{
label: "库存数量",
@@ -94,7 +114,7 @@ const contentConfig: IContentConfig = {
fixed: "right",
width: 150,
templet: "custom",
slotName: 'operate'
slotName: "operate",
},
],
};