diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 901afeef..aa827499 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -937,8 +937,15 @@ export default { if(that.mlogItem.work_end_time==''||that.mlogItem.work_end_time==null){ obj.work_end_time = that.mlogItem.work_end_time = that.$TOOL.dateFormat1(new Date()); obj.handle_date = that.mlogItem.handle_date = that.$TOOL.dateFormat2(new Date()); - that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => {}); + that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => { + that.submitMlog(); + }); + }else{ + that.submitMlog(); } + }, + submitMlog(){ + let that = this; that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => { that.isSaveing = false; that.visible = false;