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 |   37 ++++++++++++++++++++++++++++++++++---
 1 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index eb8b548..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"
@@ -297,6 +310,18 @@
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
+          <ProFormItemV2
+            label="缁撶畻鏂瑰紡:"
+            prop="settlementAccess"
+            :check-rules="[{ message: '璇烽�夋嫨缁撶畻鏂瑰紡' }]"
+          >
+            <ProFormSelect
+              v-model="form.settlementAccess"
+              :value-enum="settlementAccessList"
+              :disabled="isEdit"
+              placeholder="璇烽�夋嫨缁撶畻鏂瑰紡"
+            ></ProFormSelect>
+          </ProFormItemV2>
         </ProForm>
         <template #footer>
           <el-button @click="handleBack()">鍏抽棴</el-button>
@@ -339,6 +364,7 @@
   EnumSettlementCycleDateWeekArray,
   EnumSettlementCycle,
   EnumTaskCheckReceiveMethodText,
+  EnumEnterpriseWalletAccessText,
 } from '@/constants';
 import { format, FormValidator } from '@/utils';
 import dayjs from 'dayjs';
@@ -353,6 +379,8 @@
 const route = useRoute();
 const id = route.params.id as string;
 const isEdit = !!id;
+
+const { settlementAccessList } = useEnterpriseWalletAccessSelect();
 
 function disabledDate(time: Date) {
   return dayjs(time).isBefore(dayjs(), 'day');
@@ -409,6 +437,7 @@
   description: '',
   checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
   applyTime: [] as unknown as ModelValueType,
+  settlementAccess: '' as any as EnumEnterpriseWalletAccess,
 });
 
 const { isLoading } = useQuery({
@@ -459,6 +488,7 @@
       format(data.applyBeginTime, 'YYYY-MM-DD 00:00:00'),
       format(data.applyEndTime, 'YYYY-MM-DD 23:59:59'),
     ];
+    form.settlementAccess = data.settlementAccess;
   },
   enabled: isEdit,
 });
@@ -510,6 +540,7 @@
       timeoutServiceFee: form.timeoutServiceFee,
       description: form.description,
       checkReceiveMethod: form.checkReceiveMethod,
+      settlementAccess: form.settlementAccess,
     };
     if (isEdit) {
       params.id = id;
--
Gitblit v1.9.1