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 @@