diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index 508be431..416b707a 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -33,11 +33,11 @@ style="margin: 40px" > - + { that.userOptions = res; + let arr = res.filter(item=>{ + return item.id==userInfo.id; + }) + if(arr.length>0){ + that.form.do_user = userInfo.id; + }else{ + let obj = {}; + obj.id = userInfo.id; + obj.name = userInfo.name; + that.userList.push(obj) + that.form.do_user = userInfo.id; + } }); }, //仓库人员 @@ -477,6 +490,7 @@ export default { table_submit() { let that = this; that.$API.inm.mio.submit.req(that.mioId).then((res) => { + that.$emit('closed') that.$message.success("提交成功"); that.visible = false; // that.$emit("closed");