diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index db6c401a..d286f7df 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -145,7 +145,7 @@ - + - + { that.mgroupOptions = res; + if(that.type==40){ res.forEach(item=>{ if(item.name=="废品库"){ @@ -616,9 +617,13 @@ export default { let that = this; that.$refs.dialogForm.validate(async (valid) => { if (valid) { + if(that.mtype==30){ + that.form.recive_mgroup = that.mgroupId; + } + console.log('that.form.recive_mgroup',that.form.recive_mgroup); if (that.mode == "add") { that.$API.wpm.handover.create.req(that.form).then((res) => { - if(that.type==40){ + if(that.type==40||that.mtype==30){ //提交 that.$API.wpm.handover.submit.req(res.id).then((res1) => { that.isSaveing = false;