From 3d813a274a9b7c6e3ab9adc1ca5980eaf82ec872 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 20 十月 2025 10:27:43 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index f5f4079..59fd2eb 100644
--- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
+++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -53,10 +53,19 @@
</ProFormItemV2>
</ProFormColItem>
</ProFormCol>
- <template v-if="form.billingMethod === EnumBillingMethod.Hour">
+ <template
+ v-if="
+ form.billingMethod === EnumBillingMethod.Hour ||
+ form.billingMethod === EnumBillingMethod.Day
+ "
+ >
<ProFormCol>
<ProFormColItem :span="12">
- <ProFormItemV2 label="鏍稿畾宸ユ椂:" prop="verifyWorkHours">
+ <ProFormItemV2
+ label="鏍稿畾宸ユ椂:"
+ prop="verifyWorkHours"
+ :check-rules="[{ message: '璇疯緭鍏ユ牳瀹氬伐鏃�' }]"
+ >
<ProFormInputNumber
:controls="false"
v-model="form.verifyWorkHours"
@@ -70,7 +79,11 @@
</ProFormCol>
<ProFormCol>
<ProFormColItem :span="12">
- <ProFormItemV2 label="瓒呮椂鏈嶅姟璐�:" prop="timeoutServiceFee">
+ <ProFormItemV2
+ label="瓒呮椂鏈嶅姟璐�:"
+ prop="timeoutServiceFee"
+ :check-rules="[{ message: '璇疯緭鍏ヨ秴鏃舵湇鍔¤垂' }]"
+ >
<ProFormInputNumber
:controls="false"
v-model="form.timeoutServiceFee"
@@ -304,7 +317,7 @@
>
<ProFormSelect
v-model="form.settlementAccess"
- :value-enum="EnumEnterpriseWalletAccessText"
+ :value-enum="settlementAccessList"
:disabled="isEdit"
placeholder="璇烽�夋嫨缁撶畻鏂瑰紡"
></ProFormSelect>
@@ -367,6 +380,8 @@
const id = route.params.id as string;
const isEdit = !!id;
+const { settlementAccessList } = useEnterpriseWalletAccessSelect();
+
function disabledDate(time: Date) {
return dayjs(time).isBefore(dayjs(), 'day');
}
--
Gitblit v1.9.1