From fdffd8a4efc030364388bc09cab30bdab95603ac Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 11 Mar 2025 17:12:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BD=A6=E9=97=B4=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E4=B8=8D=E8=A6=81=E7=BC=96=E5=8F=B7=EF=BC=8C=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E7=99=BB=E5=BD=95=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/inm_record.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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");