|
|
@ -165,12 +165,14 @@ const openForm = (type: string, row?: any) => { |
|
|
|
|
|
|
|
// form表单提交 |
|
|
|
const formsSuccess = async (formType,data) => { |
|
|
|
console.log('endAtNextDay',data) |
|
|
|
var isHave =Shift.allSchemas.formSchema.some(function (item) { |
|
|
|
return item.field === 'beginTime' || item.field === 'entTime'; |
|
|
|
}); |
|
|
|
if(isHave){ |
|
|
|
|
|
|
|
if(data['endAtNextDay']=='FALSE'&&isHave){ |
|
|
|
if(data.beginTime && data.entTime && data.beginTime >=data.entTime){ |
|
|
|
message.error('开始时间要大于结束时间') |
|
|
|
message.error('开始时间大于结束时间') |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|