From 89eb3e4aacc20256d298e0a3b0ad5f1bf7df3d1e Mon Sep 17 00:00:00 2001 From: shenyuan Date: Wed, 15 Mar 2023 17:35:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/router.config.js | 4 + .../views/shopping/components/billDetail.vue | 156 +++++++ .../views/shopping/components/billTitle.vue | 394 ++++++++++++++++++ .../views/shopping/pages/gerenzhongxin.vue | 27 +- 4 files changed, 574 insertions(+), 7 deletions(-) create mode 100644 ant-design-vue-jeecg/src/views/shopping/components/billDetail.vue create mode 100644 ant-design-vue-jeecg/src/views/shopping/components/billTitle.vue diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index 5aa5dcd2..b360df4f 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -668,4 +668,8 @@ export const constantRouterMap = [ path: '/shopping/placeOrder',//这里是你需要设置新窗口打开的页面的路径s component: () => import('@/views/shopping/pages/placeOrder'), }, + { + path: '/shopping/billDetail',//这里是你需要设置新窗口打开的页面的路径s + component: () => import('@/views/shopping/components/billDetail'), + }, ] diff --git a/ant-design-vue-jeecg/src/views/shopping/components/billDetail.vue b/ant-design-vue-jeecg/src/views/shopping/components/billDetail.vue new file mode 100644 index 00000000..39d79ac0 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/components/billDetail.vue @@ -0,0 +1,156 @@ + + + + + diff --git a/ant-design-vue-jeecg/src/views/shopping/components/billTitle.vue b/ant-design-vue-jeecg/src/views/shopping/components/billTitle.vue new file mode 100644 index 00000000..fa23d660 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/shopping/components/billTitle.vue @@ -0,0 +1,394 @@ + + + + + diff --git a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue index 12c413cc..a039496a 100644 --- a/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue +++ b/ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue @@ -126,7 +126,7 @@
-
+
{{item.date}} 已开票 @@ -144,13 +144,14 @@
开票金额:{{item.price}}
-
申请换开
-
查看详情
+
申请开票
+
申请换开
+
查看详情
- -
+ +
@@ -201,9 +202,10 @@ import PasswordModal from '../../system/modules/PasswordModal' import Collection from "../components/collection"; import AddrView from "../components/addrView" + import BillTitle from "../components/billTitle" export default { name: "gerenzhongxin", - components: { Header,Footer,PasswordModal ,Collection,AddrView}, + components: { Header,Footer,PasswordModal ,Collection,AddrView,BillTitle}, data() { return { model:{ @@ -293,7 +295,7 @@ price:2456,//价格 }, ],//全部发票数据 - + billTitle:[],//发票抬头列表 url: { list: "/starehouse/starehouse/list", getusername: "/sys/user/getusername", @@ -364,6 +366,14 @@ } }, methods: { + toBillDetail(id){ + this.$router.push({ + path: "/shopping/billDetail", + query: { + id: id, + }, + }); + }, passwordModalOk() { //TODO 密码修改完成 不需要刷新页面,可以把datasource中的数据更新一下 }, @@ -491,6 +501,9 @@ } else if(key.key == 'invoice3'){//选择未开发票选项 this.invoiceList = this.invoiceList1.filter(item=>item.billing == false) + }else{ + this.allOrders=[] + this.invoiceList=[] } // else{ // this.allOrders=[]