Browse Source

班次时间校验

master_hella_20240701
yufei0306 6 months ago
parent
commit
769af99755
  1. 6
      src/views/wms/basicDataManage/orderManage/shift/index.vue

6
src/views/wms/basicDataManage/orderManage/shift/index.vue

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

Loading…
Cancel
Save