From f8fd104213f6687ae5fcc479526f5ee9347ece6f Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 09 九月 2025 17:00:47 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index 47fdecc..b08731a 100644
--- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
+++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -110,14 +110,14 @@
>
<ProFormInputNumber
:controls="false"
- :min="1"
+ :min="0"
v-model="form.ageMinLimit"
placeholder="璇疯緭鍏�"
></ProFormInputNumber>
<div class="form-input-separator">鑷�</div>
<ProFormInputNumber
:controls="false"
- :min="1"
+ :min="0"
v-model="form.ageMaxLimit"
placeholder="璇疯緭鍏�"
></ProFormInputNumber>
@@ -134,9 +134,6 @@
<ProFormRadio
v-model="form.genderLimit"
:value-enum="EnumUserGenderTextForEdit"
- show-all-btn
- :all-btn-label="'涓嶉檺'"
- :allBtnValue="0"
></ProFormRadio>
</ProFormItemV2>
</ProFormColItem>
@@ -165,9 +162,7 @@
<ProFormItemV2
label="浠诲姟鍦扮偣:"
prop="weMapInfo"
- :check-rules="[
- { message: '璇烽�夋嫨浠诲姟鍦扮偣', validator: FormValidator.validatorWeMap },
- ]"
+ :check-rules="[{ message: '璇烽�夋嫨浠诲姟鍦扮偣', type: 'weMap' }]"
>
<WeMap v-if="!isDetail" v-model="form.weMapInfo" />
<div v-else>
@@ -204,6 +199,7 @@
range-separator="鑷�"
start-placeholder="寮�濮嬫棩鏈�"
end-placeholder="缁撴潫鏃ユ湡"
+ :disabled-date="disabledDate"
></ProFormDatePicker>
</ProFormItemV2>
</ProFormColItem>
@@ -257,6 +253,10 @@
const id = route.params.id as string;
const isEdit = !!id;
+function disabledDate(time: Date) {
+ return dayjs(time).isBefore(dayjs(), 'day');
+}
+
const eventContext = useGlobalEventContext();
const { closeViewPush } = useRouteView();
@@ -277,12 +277,12 @@
const form = reactive({
name: '',
- billingMethod: '' as any as EnumBillingMethod,
- serviceFee: 0,
- settlementCycle: '' as any as EnumSettlementCycle,
+ billingMethod: EnumBillingMethod.Month,
+ serviceFee: null,
+ settlementCycle: EnumSettlementCycle.Month,
benefits: [] as string[],
- ageMinLimit: 0,
- ageMaxLimit: 0,
+ ageMinLimit: null,
+ ageMaxLimit: null,
genderLimit: 0 as any as EnumUserGender,
credentialLimits: [] as string[],
time: [] as unknown as ModelValueType,
--
Gitblit v1.9.1