From 8fae78121d537dc4476e33acf05e13e65588dbb0 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 26 Sep 2025 16:29:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=97=B6=E4=BC=A0=E9=80=92wprs=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_form2.vue | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index 44ad608e..5ee95fa5 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -456,23 +456,18 @@ export default { }) that.form.oinfo_json = oinfo_json; } + if(that.bwItemForms.length>0){ + let wprs_in = []; + that.bwItemForms.forEach(item=>{ + wprs_in.push(item.wpr); + }) + that.form.wprs_in = wprs_in; + } that.$API.wpm.mlog.quick.req(that.form).then((res) => { - if(that.bwItemForms.length>0&&that.batchCountCando!==that.bwItemForms.length){ - that.bwItemForms.forEach(item=>{ - item.mlogb = res.mlogbin; - }) - that.$API.wpm.mlogbw.create.req(that.bwItemForms).then((res1) => { - that.isSaveing = false; - that.$emit("success",res.mlog); - that.visible = false; - that.$message.success("操作成功"); - }) - }else{ - that.isSaveing = false; - that.$emit("success",res.mlog); - that.visible = false; - that.$message.success("操作成功"); - } + that.isSaveing = false; + that.$emit("success",res.mlog); + that.visible = false; + that.$message.success("操作成功"); }).catch(()=>{ that.isSaveing = false; });