fix:若无结束日期日志提交前,先保存结束时间
This commit is contained in:
parent
eef14ca7eb
commit
0c7fe5bfed
|
@ -932,14 +932,19 @@ export default {
|
|||
//表单提交方法
|
||||
mlogSubmit() {
|
||||
let that = this;
|
||||
that.isSaveing = true;
|
||||
let obj = {};
|
||||
if(that.mlogItem.work_end_time==''||that.mlogItem.work_end_time==null){
|
||||
that.mlogItem.work_end_time = that.$TOOL.dateFormat1(new Date());
|
||||
that.mlogItem.handle_date = that.$TOOL.dateFormat2(new Date());
|
||||
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.submit.req(that.mlogItem.id).then((res) => {
|
||||
that.isSaveing = false;
|
||||
that.visible = false;
|
||||
that.$message.success("操作成功");
|
||||
}).catch(() => {
|
||||
that.isSaveing = false;
|
||||
});
|
||||
},
|
||||
table_muser_add(){
|
||||
|
|
Loading…
Reference in New Issue