diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index f5f97441..98f786ca 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -356,7 +356,7 @@ export default { that.form.recive_mgroup = that.mgroupId; } // type=10 物料交接 物料都可交接,接收工段有限制 - // type=20 物料返工 不合格品交接,接收工段为该工艺流程中的工段 + // type=20 物料返工 不合格品交接,接收工段为该工艺流程中的工段 // type=30 物料检验 合格品交接,检验部接收 // type=40 废品入库 不合格品交接,接收工段固定为废品库 // type=50 改版 灵活无限制 @@ -369,7 +369,12 @@ export default { } //获取交送物料 if((that.type==20&&that.mgroupName!=='废品库')||that.type==40){ - that.getMaterialNotok(); + if(that.mgroupName=='成品内外初检'||that.mgroupName=='成品内质复检'||that.mgroupName=='成品性能检测'||that.mgroupName=='成品尺寸检测'||that.mgroupName=='成品外观复检一'||that.mgroupName=='成品外观复检二'){ + that.getMaterialOkFangong(); + }else{ + that.getMaterialNotok(); + } + }else if(that.type==20&&that.mgroupName=='废品库'){ that.getMaterialFP(); }else{ @@ -465,6 +470,18 @@ export default { that.materialOptions = res; }); }, + getMaterialOkFangong(){ + let that = this; + that.materialOptions = []; + var obj = { + page: 0, + state : 10, + state_all: 1 + }; + that.$API.wpm.wmaterial.list.req(obj).then((res) => { + that.materialOptions = res; + }); + }, //获取交送工段人员 getUserList() { let that = this;