From 482c8fcf03bfbeddc843e4ea7fbb53c74485e2e5 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 27 九月 2023 19:54:22 +0800 Subject: [PATCH] 出入库搜索去掉sourceNumber及bug修复 --- 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