diff --git a/src/views/wms/supplierManage/invoicingcalendar/index.vue b/src/views/wms/supplierManage/invoicingcalendar/index.vue index dc85e24ed..3309c3eff 100644 --- a/src/views/wms/supplierManage/invoicingcalendar/index.vue +++ b/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')) }