From ff6b2db013b8afc86d26ba24fdf5e6115c2127ab Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 02 四月 2025 16:11:51 +0800
Subject: [PATCH] fix: bug
---
src/views/Home/components/InsureOrderInfoView.vue | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index 0d80311..258e11f 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -159,6 +159,7 @@
import { useQuery, useQueryClient } from '@tanstack/vue-query';
import { downloadFile, downloadFileByUrl, Message, OrderInputType } from '@bole-core/core';
import { setOSSLink } from '@/utils';
+import dayjs from 'dayjs';
defineOptions({
name: 'InsureOrderInfoView',
@@ -365,13 +366,11 @@
note: '澶囨敞',
},
});
- } else {
- await Message.tipMessage('鏄惁瑕嗙洊褰撳墠浜哄憳娓呭崟淇℃伅?');
- queryClient.invalidateQueries({
- queryKey: ['insuranceOrderServices/getInsuranceStaffList'],
- });
- getInsuranceStaffList();
}
+ queryClient.invalidateQueries({
+ queryKey: ['insuranceOrderServices/getInsuranceStaffList'],
+ });
+ getInsuranceStaffList();
} catch (error) {}
}
@@ -398,6 +397,13 @@
}
function handleBatchChange() {
+ if (
+ dayjs(detail.value?.effectEndTime).isBefore(dayjs()) ||
+ dayjs(detail.value?.effectEndTime).isSame(dayjs(), 'day')
+ ) {
+ Message.errorMessage('淇濋櫓浠婂ぉ鍒版湡锛屾棤娉曟壒鏀�');
+ return;
+ }
router.push({
name: 'BatchChange',
params: {
--
Gitblit v1.9.1