From 636c1bd7b4f8f939a939ccfee7313f43f99e7383 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 17 May 2022 09:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=89=A9=E6=96=99=E7=9A=84?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/src/views/mtm/material.vue | 11 ++++++++-- hb_client/src/views/mtm/materialdo.vue | 28 +++++++++++++++++++------- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 044919d..5abc29d 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -340,9 +340,16 @@ this.processOptions = res.data.results; }); }, - //绑定工序 + //检查表 handlebind(scope) { - this.$router.push({name: "MaterialDO", params: {id: scope.row.id},}) + let materialItem = sessionStorage.getItem('materialItem'); + if(materialItem){ + sessionStorage.removeItem('materialItem'); + sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); + }else{ + sessionStorage.setItem('materialItem',JSON.stringify(scope.row)); + } + this.$router.push({name: "MaterialDO", params: {id: scope.row.id}}) }, handleFilter() { this.listQuery.page = 1; diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue index 0a923e6..4cd5e83 100644 --- a/hb_client/src/views/mtm/materialdo.vue +++ b/hb_client/src/views/mtm/materialdo.vue @@ -1,6 +1,14 @@