|
|
@ -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')) |
|
|
|
} |
|
|
|