From 8c3ce70211f709939c9c9f6f9b98e2f4f5879287 Mon Sep 17 00:00:00 2001 From: zhouhongjun <565221961@qq.com> Date: Thu, 2 Nov 2023 08:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E3=80=81=E5=8D=B0=E5=BA=A6?= =?UTF-8?q?=E4=BB=B6=E3=80=81=E5=A4=87=E4=BB=B6=E5=A2=9E=E5=8A=A0=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E7=A6=81=E7=94=A8=E5=92=8C=E6=89=B9=E9=87=8F=E5=90=AF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/router/base-data.js | 6 ++++++ .../wwwroot/views/base-data/bei-jian.js | 19 ++++++++++++++++++ .../wwwroot/views/base-data/xiao-shou.js | 19 ++++++++++++++++++ .../wwwroot/views/base-data/yin-du-jian.js | 20 +++++++++++++++++++ 4 files changed, 64 insertions(+) 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 }; },