|
|
@@ -3,8 +3,8 @@
|
|
|
import { queryUserGroupPage } from '@/api/system/person-group';
|
|
|
import { IssueWorkPlanFormRules } from '../configs/form';
|
|
|
import { DistributeParameters } from '../configs/tables';
|
|
|
- import { type FormInstance } from 'element-plus';
|
|
|
-
|
|
|
+ import { type FormInstance, ElMessage } from 'element-plus';
|
|
|
+
|
|
|
const props = defineProps<{
|
|
|
data: any;
|
|
|
visible;
|
|
|
@@ -73,6 +73,10 @@
|
|
|
const formRef = ref<FormInstance>();
|
|
|
const handleConfirmIssue = async () => {
|
|
|
if (!formRef.value) return;
|
|
|
+ if( issueWorkPlanForm.startTime > issueWorkPlanForm.endTime ){
|
|
|
+ ElMessage.error('计划开始时间不能晚于计划结束时间');
|
|
|
+ return;
|
|
|
+ }
|
|
|
const res = await formRef.value.validateField();
|
|
|
if (res) {
|
|
|
emit('confirm', issueWorkPlanForm);
|