diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js index 0a1e1161..0b02b01f 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js +++ b/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"), ], diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js index bd5eccc2..4dcea722 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/bei-jian.js +++ b/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 }; }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js index 28d0f058..c2657e8f 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/xiao-shou.js +++ b/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 }; }, diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/yin-du-jian.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/yin-du-jian.js index fca3f4aa..ba0694ff 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/base-data/yin-du-jian.js +++ b/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 }; },