fix:日志提交时传递wprs_id

This commit is contained in:
shijing 2025-09-26 16:29:21 +08:00
parent c49d086970
commit 8fae78121d
1 changed files with 11 additions and 16 deletions

View File

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