Browse Source

销售、印度件、备件增加批量禁用和批量启用

master
周红军 1 year ago
parent
commit
8c3ce70211
  1. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js
  2. 19
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js
  3. 19
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js
  4. 20
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/yin-du-jian.js

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js

@ -60,6 +60,8 @@ export default [
createButton("query", "title=查询&isTop=true"),
createButton("import", "title=导入&isTop=true"),
createButton("export", "title=导出&isTop=true&pattern=paged"),
createButton("enable-all", "title=全部启用&isTop=true"),
createButton("disable-all", "title=全部停用&isTop=true"),
createButton("enable", "title=启用&disabled=o=>o.isCancel===false"),
createButton("disable", "title=停用&disabled=o=>o.isCancel===true"),
],
@ -70,6 +72,8 @@ export default [
createButton("query", "title=查询&isTop=true"),
createButton("import", "title=导入&isTop=true"),
createButton("export", "title=导出&isTop=true&pattern=paged"),
createButton("enable-all", "title=全部启用&isTop=true"),
createButton("disable-all", "title=全部停用&isTop=true"),
createButton("enable", "title=启用&disabled=o=>o.isCancel===false"),
createButton("disable", "title=停用&disabled=o=>o.isCancel===true"),
],
@ -84,6 +88,8 @@ export default [
createButton("query", "title=查询&isTop=true"),
createButton("import", "title=导入&isTop=true"),
createButton("export", "title=导出&isTop=true&pattern=paged"),
createButton("enable-all", "title=全部启用&isTop=true"),
createButton("disable-all", "title=全部停用&isTop=true"),
createButton("enable", "title=启用&disabled=o=>o.isCancel===false"),
createButton("disable", "title=停用&disabled=o=>o.isCancel===true"),
],

19
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js

@ -18,6 +18,25 @@ export default {
true
);
}
if (item.path === "enable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list-app-service-bj/update-list", { guids: rows.map((o) => o.id), isCancel: false }, { method: "POST" }, true),
`确认${"启用"}选中的${rows.length}行数据吗?`,
true
);
}
if (item.path === "disable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list-app-service-bj/update-list", { guids: rows.map((o) => o.id), isCancel: true }, { method: "POST" }, true),
`确认${"停用"}选中的${rows.length}行数据吗?`,
true
);
}
};
return { appListRef, config, onCommand };
},

19
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js

@ -19,6 +19,25 @@ export default {
true
);
}
if (item.path === "enable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list/update-list", { guids: rows.map((o) => o.id), isCancel: false }, { method: "POST" }, true),
`确认${"启用"}选中的${rows.length}行数据吗?`,
true
);
}
if (item.path === "disable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list/update-list", { guids: rows.map((o) => o.id), isCancel: true }, { method: "POST" }, true),
`确认${"停用"}选中的${rows.length}行数据吗?`,
true
);
}
};
return { appListRef, config, onCommand };
},

20
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/yin-du-jian.js

@ -18,6 +18,26 @@ export default {
true
);
}
if (item.path === "enable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list-app-service-yin-du/update-list", { guids: rows.map((o) => o.id), isCancel: false }, { method: "POST" }, true),
`确认${"启用"}选中的${rows.length}行数据吗?`,
true
);
}
if (item.path === "disable-all") {
await appListRef.value.onClick(
async () => await request("settleaccount/price-list-app-service-yin-du/update-list", { guids: rows.map((o) => o.id), isCancel: true }, { method: "POST" }, true),
`确认${"停用"}选中的${rows.length}行数据吗?`,
true
);
}
};
return { appListRef, config, onCommand };
},

Loading…
Cancel
Save