From 93bfdf0184e0fca50439f31628e903fbecc3e47b Mon Sep 17 00:00:00 2001 From: "autumn.g@foxmail.com" Date: Fri, 12 May 2023 10:30:18 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=BC=80=E7=A5=A8=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/router/index.js | 13 +++++++++ jsowell-ui/src/views/order/invoice/detail.vue | 29 +++++++++++++++++++ jsowell-ui/src/views/order/invoice/index.vue | 25 ++++++++++++---- 3 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 jsowell-ui/src/views/order/invoice/detail.vue diff --git a/jsowell-ui/src/router/index.js b/jsowell-ui/src/router/index.js index 11605a760..02cce77a8 100644 --- a/jsowell-ui/src/router/index.js +++ b/jsowell-ui/src/router/index.js @@ -140,6 +140,19 @@ export const constantRoutes = [ }, ], }, + { + path: "/invoice/index", + component: Layout, + hidden: true, + children: [ + { + name: "invoiceDetail", + path: "invoice/:id", + component: () => import("@/views/order/invoice/detail"), + meta: { title: "发票详情", activeMenu: "/invoice/detail" }, + }, + ], + }, ]; // 动态路由,基于用户权限动态去加载 diff --git a/jsowell-ui/src/views/order/invoice/detail.vue b/jsowell-ui/src/views/order/invoice/detail.vue new file mode 100644 index 000000000..5a09f55ef --- /dev/null +++ b/jsowell-ui/src/views/order/invoice/detail.vue @@ -0,0 +1,29 @@ + + diff --git a/jsowell-ui/src/views/order/invoice/index.vue b/jsowell-ui/src/views/order/invoice/index.vue index 47a8097a1..78b885c91 100644 --- a/jsowell-ui/src/views/order/invoice/index.vue +++ b/jsowell-ui/src/views/order/invoice/index.vue @@ -9,14 +9,14 @@ @keyup.enter.native="handleQuery" /> - + - + @@ -118,14 +118,21 @@ @@ -346,7 +353,13 @@ export default { this.dialogVisible = false; this.getList(); }); - } + }, + // 点击查看详情 + clickSelectDetail(id) { + console.log("点击查看详情",id); + // 路径/home对应我在router目录下index.js中定义的path属性值 + this.$router.push({name:'invoiceDetail', params:{id: id}}); + }, } };