From 7eb332b94fcc4d06000c38dda3ef49ca3b35f7c2 Mon Sep 17 00:00:00 2001 From: zzq <a13193816592@163.com> Date: 星期三, 27 九月 2023 20:54:35 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/WMS --- src/views/reportForm/inboundOutboundDetail/index.vue | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/views/reportForm/inboundOutboundDetail/index.vue b/src/views/reportForm/inboundOutboundDetail/index.vue index d65260c..31bd7f2 100644 --- a/src/views/reportForm/inboundOutboundDetail/index.vue +++ b/src/views/reportForm/inboundOutboundDetail/index.vue @@ -52,12 +52,22 @@ title: "鏂板缓", infomation: {} }, - productId: this.$route.params.id, - productName: this.$route.params.name + params: {} } }, created() { this.setTable() + console.log(this.$route.params) + var paramsData = sessionStorage.getItem("paramsList") + let params = {} + if (paramsData) { + params = JSON.parse(sessionStorage.getItem("paramsList")) + } else { + params = this.$route.params + sessionStorage.setItem("paramsList", JSON.stringify(params)) + } + this.params = params + console.log(this.params) this.getData() }, methods: { @@ -149,7 +159,7 @@ // 璇锋眰鏁版嵁 async getData() { await getProductOperatonList({ - productId: this.productId, + productId: this.params.id, page: this.pagerOptions.currPage, pageSize: this.pagerOptions.pageSize }).then((res) => { @@ -159,7 +169,7 @@ ...item, from: item.fromLocation.name, to: item.toLocation.name, - productName: this.productName + productName: this.params.name } }) this.tableList.tableInfomation = list || [] -- Gitblit v1.8.0