@@ -309,6 +309,12 @@ const openState = ref(false)
}
};
const handleSave = debounce(async () => {
+
+ if(form.startDate > form.endDate) {
+ ElMessage.error('开始日期不能晚于结束日期');
+ return;
+ }
const res = await handleValidate();
if (!res) return;
try {