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; });