fix:更新结束时间后再执行提交

This commit is contained in:
shijing 2025-09-11 14:06:25 +08:00
parent 8a81741716
commit 4b27653e18
1 changed files with 8 additions and 1 deletions

View File

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