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=[]