Browse Source

增加开始日期与截止日期校验

master_hella_20240701
zhaoxuebing 6 months ago
parent
commit
11e3ec42af
  1. 8
      src/views/wms/supplierManage/invoicingcalendar/index.vue

8
src/views/wms/supplierManage/invoicingcalendar/index.vue

@ -166,9 +166,17 @@ const formsSuccess = async (formType,data) => {
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
if(data.beginDay > data.endDay){
message.error('开始日期要小于截止日期')
return;
}
await InvoicingcalendarApi.createInvoicingcalendar(data)
message.success(t('common.createSuccess'))
} else {
if(data.beginDay > data.endDay){
message.error('开始日期要小于截止日期')
return;
}
await InvoicingcalendarApi.updateInvoicingcalendar(data)
message.success(t('common.updateSuccess'))
}

Loading…
Cancel
Save