From 2aa98e34d43337b4a85919628d48efe8ec1aa154 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 15 Dec 2025 09:41:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E6=94=B9=E7=89=88?= =?UTF-8?q?=E4=BA=A4=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/handover.vue | 6 ++++ src/views/wpm_gx/handover_form.vue | 48 ++++++++++++++++++++++++------ src/views/wpm_gx/inmOut.vue | 5 ++-- 3 files changed, 48 insertions(+), 11 deletions(-) diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 07f5e8f8..1a3c059f 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -15,6 +15,12 @@ v-auth="'handover.create'" v-if="mgroupName!=='切片'" >返工 + 改版 + + + + + + + + + @@ -269,7 +284,9 @@ export default { }, initForm:{}, selectObjIds:[], + apiObj:this.$API.wpm.wmaterial.list, apiObjM:null, + params:{}, paramsM:{}, selectObj:{}, selectObjs:[], @@ -350,11 +367,11 @@ export default { that.form.handle_date = that.form.send_date = this.$TOOL.dateFormat2(new Date()); that.form.send_mgroup = that.mgroupId; that.route_code = that.$route.path.split("/")[2]; - // console.log('that.route_code',that.route_code) - // console.log('that.type',that.type) - // console.log('that.mtype',that.mtype) - // console.log(that.route_code=='tuihuo'&&that.type==10&&that.mtype==10) - //type 10:正常交接 ;20:返工交接 ;40:报废交接 + // type=10 正常交接 物料都可交接,接收工段有限制 + // type=20 返工交接 不合格品交接,接收工段为该工艺流程中的工段 + // type=30 物料检验 合格品交接,检验部接收 + // type=40 废品入库 不合格品交接,接收工段固定为废品库 + // type=50 改版 灵活无限制 //mtype 10:正常交接 ;20:分批操作 ;30:合批操作 //state 10:合格;20:不合格;30:返工;34:返工完成;40:检验;50:报废 //获取交接人员 @@ -374,6 +391,9 @@ export default { }else if(that.type==40){ //报废交接 that.paramsM = {mgroupx: that.mgroupId,page: 0,state:20}; + }else if(that.type==50){ + //改版交接 + that.paramsM = {mgroupx: that.mgroupId,page: 0}; }else{ //其他 that.paramsM = {mgroup: that.mgroupId,page: 0,state:10,tag : 'done'}; @@ -512,9 +532,14 @@ export default { this.codeText = data.replace(" ",""); this.codeTextChange(this.codeText) }else{ - this.form.handoverb = data; + this.form.handoverb = []; data.forEach(item=>{ - this.totalCount += Number(item.count); + let obj = {}; + obj.wm = item.id; + obj.batch = item.batch; + obj.count = item.count_canhandover; + this.form.handoverb.push(obj); + this.totalCount += Number(item.count_canhandover); }) } } @@ -526,8 +551,6 @@ export default { //选中物料批次后,放入handoverb materialChange0(){ let that = this; - // that.form.handoverb = []; - // that.handoverbIds = []; that.totalCount = 0; that.selectObjs.forEach(item=>{ if(that.handoverbIds.indexOf(item.id)==-1){ @@ -542,6 +565,13 @@ export default { obj.defect_name = item.defect_name; obj.count_cando = item.count_canhandover; obj.material = item.material; + if(that.type==50){ + that.form.material_changed = item.material; + that.form.material_changed_fname = item.material_name; + that.form.recive_mgroup = that.mgroupId; + that.form.new_batch = item.batch; + } + that.form.handoverb.push(obj); that.getResaveMgroups(obj.material); } diff --git a/src/views/wpm_gx/inmOut.vue b/src/views/wpm_gx/inmOut.vue index 9e0a137e..5a53122e 100644 --- a/src/views/wpm_gx/inmOut.vue +++ b/src/views/wpm_gx/inmOut.vue @@ -112,13 +112,14 @@ @click="table_Check(scope.row)" v-auth="'ftestwork.create'" type="primary" - v-if="(scope.row.mgroup_name == '黑化'||scope.row.mgroup_name == '退火'||scope.row.mgroup_name == '外观检验')&&(scope.row.state == 10||scope.row.state == 20||scope.row.state == 34)" + v-if="scope.row.state == 10||scope.row.state == 34" >检验 + 检验记录 物料标签