diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index abede538..c897a149 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -2,8 +2,10 @@
- 领料 - 合批 + 领料 + 返修 + 报废 + 合批
@@ -133,7 +135,8 @@ @choseChange="choseChange" > - + + + { - this.$refs.saveDialog.open("add"); - }); - }, selectionChange(selection) { let that = this; that.selection = selection; + //合批 if(selection.length>0){ let material = selection[0].material; selection.forEach((item)=>{ @@ -320,6 +320,7 @@ export default { }) } }, + //分批 rowClick(val){ this.dialog.handover = true; this.type = 10; @@ -327,15 +328,8 @@ export default { this.$refs.handoverDialog.open("add",val,20); }); }, + //合批 batchConcat(){ - // let that = this; - // let obj = {}; - // obj.type = 10; - // obj.mtype = 30; - // obj.handle_date = obj.send_date = that.$TOOL.dateFormat2(new Date()); - // obj.send_mgroup = obj.recive_mgroup = that.mgroupId; - // let userInfo = that.$TOOL.data.get("USER_INFO"); - // obj.send_user = obj.recive_user= userInfo.id; this.changebatch = true; let handoverb = []; if(this.selection.length>0){ @@ -363,6 +357,7 @@ export default { this.$refs.table_wm.queryData(this.queryWm); this.materialsVisible = false; }, + //领料 tomio(type) { let that = this; that.cate_type=type; @@ -387,12 +382,23 @@ export default { this.$refs.showDrawer.open(); }); }, - //添加报废 + //添加返修/报废 table_add(type) { this.dialog.scrap = true; this.type = type; + let handoverb = []; + if(this.selection.length>0){ + this.selection.forEach(item=>{ + let obj = {}; + obj.wm = item.id; + obj.batch = item.batch; + obj.count_cando = item.count_cando; + obj.count = item.count_cando; + handoverb.push(obj) + }) + } this.$nextTick(() => { - this.$refs.scrapDialog.open("add"); + this.$refs.scrapDialog.open("add",handoverb,10); }); }, handleScrapSuccess(){ diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index 204b59a7..3b3ce4e2 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -2,13 +2,10 @@
- 入库 - - 返修 - - 报废 - 合批 + 入库 + 返修 + 报废 + 合批
@@ -344,7 +340,7 @@ export default { }) } }, - //添加报废 + //添加返修/报废 table_add(type) { this.dialog.scrap = true; this.type = type; @@ -382,6 +378,7 @@ export default { this.$refs.scrapDialog.open("add",handoverb,30); }); }, + //报废后刷新页面 handleScrapSuccess(){ this.dialog.scrap = false; this.$refs.table.refresh();