From 4ff175073dded559a063981242003269cbdc9cf7 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 10 Dec 2025 14:43:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=A4=E6=8E=A5=E5=AE=8C=E5=96=842?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/handover_form.vue | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index 66ab7ca4..28038b6f 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -413,16 +413,14 @@ export default { that.getUserList(); } //获取交送物料 - if(that.type==10||that.type==50){//正常交接 + if(that.type==10){//正常交接 that.getMaterial(); }else if(that.type==20){//返工交接 - if(that.mgroupName=='废品库'){ - that.getMaterialFP(); - }else{ - that.getMaterialOkFangong(); - } - }else if(that.type==40){//废品入库 + that.getMaterialOkFangong(); + }else if(that.type==40){//废品入库不合格物料 that.getMaterialNotok(); + }else if(that.type==50){//废品库物料 + that.getMaterialFP(); } that.getMgroupOptions(); }, @@ -478,15 +476,10 @@ export default { let that = this; var req = { page: 0, + state:10, + tag:that.tag, mgroupx:that.mgroupId }; - if(that.type==50){ - req.state = 50; - req.state_all= 1; - }else{ - req.state = 10; - req.tag = that.tag; - } that.materialOptions = []; this.$API.wpm.wmaterial.list.req(req).then((res) => { that.materialOptions = res.filter(item=>{ @@ -514,9 +507,13 @@ export default { that.materialOptions = []; var obj = { page: 0, - state : 50, state_all: 1 }; + if(that.isFeiPinku){ + obj.state = 50; + }else{ + obj.mgroupx=that.mgroupId; + } that.$API.wpm.wmaterial.list.req(obj).then((res) => { that.materialOptions = res.filter(item=>{ return item.count_canhandover>0;