From 220cff8f5282999ac4324648f4df4bedbb90f43d Mon Sep 17 00:00:00 2001 From: zhouhongjun <565221961@qq.com> Date: Mon, 20 Nov 2023 16:18:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BB=B7=E6=A0=BC=E5=8D=95?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E4=B8=89=E4=B8=AA=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E8=A7=92=E8=89=B2=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/router/base-data.js | 18 ++++++++++++++++++ .../wwwroot/router/index.js | 4 ++++ 2 files changed, 22 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 941661bb..b7704583 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 @@ -66,6 +66,12 @@ export default [ createButton("disable", "title=停用&disabled=o=>o.isCancel===true"), ], }, + { + ...createPage("bei-jian-show", "title=备件价格单查看"), + children: [ + createButton("query", "title=查询&isTop=true") + ], + }, { ...createPage("yin-du-jian", "title=印度件价格单"), children: [ @@ -78,6 +84,12 @@ export default [ createButton("disable", "title=停用&disabled=o=>o.isCancel===true"), ], }, + { + ...createPage("yin-du-jian-show", "title=印度件价格单查看"), + children: [ + createButton("query", "title=查询&isTop=true") + ], + }, // { // ...createPage("cai-gou", "title=采购价格单"), // children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], @@ -94,6 +106,12 @@ export default [ createButton("disable", "title=停用&disabled=o=>o.isCancel===true"), ], }, + { + ...createPage("xiao-shou-show", "title=销售价格单查看"), + children: [ + createButton("query", "title=查询&isTop=true") + ], + }, // { // ...createPage("ke-hu", "title=客户库位关系表"), // children: [createButton("query", "title=查询&isTop=true"), createButton("import", "title=导入&isTop=true"), createButton("export", "title=导出&isTop=true&pattern=paged")], diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js index 9966ff73..b35773b3 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js @@ -98,6 +98,10 @@ const refreshRouter = async () => { const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data"); baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian"); } + if (appStore.user.roles.some((o) => o === "admin")) { + const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data"); + baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian-show" && o.path !== "xiao-shou-show" && o.path !== "yin-du-jian-show"); + } const setPermission = (list, parent = null) => { list.forEach((o) => { // full path