fix:日志提交时传递wprs_id
This commit is contained in:
parent
c49d086970
commit
8fae78121d
|
@ -456,23 +456,18 @@ export default {
|
|||
})
|
||||
that.form.oinfo_json = oinfo_json;
|
||||
}
|
||||
that.$API.wpm.mlog.quick.req(that.form).then((res) => {
|
||||
if(that.bwItemForms.length>0&&that.batchCountCando!==that.bwItemForms.length){
|
||||
if(that.bwItemForms.length>0){
|
||||
let wprs_in = [];
|
||||
that.bwItemForms.forEach(item=>{
|
||||
item.mlogb = res.mlogbin;
|
||||
wprs_in.push(item.wpr);
|
||||
})
|
||||
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.form.wprs_in = wprs_in;
|
||||
}
|
||||
that.$API.wpm.mlog.quick.req(that.form).then((res) => {
|
||||
that.isSaveing = false;
|
||||
that.$emit("success",res.mlog);
|
||||
that.visible = false;
|
||||
that.$message.success("操作成功");
|
||||
}).catch(()=>{
|
||||
that.isSaveing = false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue