From 7041b2e8a0e9ff955f50d59c8d5c3dc3185396a6 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 11 十一月 2025 17:38:08 +0800
Subject: [PATCH] feat: s

---
 src/views/EmploymentManage/components/AddOrEditEmploymentView.vue |   66 +++++++++++++++++++++++++--------
 1 files changed, 50 insertions(+), 16 deletions(-)

diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index d2e82ea..343d16d 100644
--- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
+++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -16,6 +16,21 @@
           </ProFormCol>
           <ProFormCol>
             <ProFormColItem :span="12">
+              <ProFormItemV2 label="闇�姹備汉鏁�:" prop="needPeopleNumber">
+                <ProFormInputNumber
+                  :controls="false"
+                  v-model="form.needPeopleNumber"
+                  placeholder="璇疯緭鍏ラ渶姹備汉鏁�"
+                  :min="0"
+                  :max="999999999999"
+                  :precision="0"
+                  unit="浜�"
+                ></ProFormInputNumber>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <ProFormCol>
+            <ProFormColItem :span="12">
               <ProFormItemV2
                 label="鏈嶅姟璐�:"
                 prop="billingMethod"
@@ -56,12 +71,7 @@
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
-          <template
-            v-if="
-              form.billingMethod === EnumBillingMethod.Hour ||
-              form.billingMethod === EnumBillingMethod.Day
-            "
-          >
+          <template v-if="form.billingMethod === EnumBillingMethod.Hour">
             <ProFormCol>
               <ProFormColItem :span="12">
                 <ProFormItemV2
@@ -105,7 +115,25 @@
               </ProFormColItem>
             </ProFormCol>
           </template>
-
+          <ProFormCol v-if="form.billingMethod === EnumBillingMethod.Piece">
+            <ProFormColItem :span="12">
+              <ProFormItemV2
+                label="鎬讳欢鏁�:"
+                prop="totalPieceQuantity"
+                :check-rules="[{ message: '璇疯緭鍏ユ�讳欢鏁�' }]"
+              >
+                <ProFormInputNumber
+                  :controls="false"
+                  v-model="form.totalPieceQuantity"
+                  placeholder="璇疯緭鍏ユ�讳欢鏁�"
+                  :min="0"
+                  :max="999999999999"
+                  unit="浠�"
+                  :disabled="feeCannotEdit"
+                ></ProFormInputNumber>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
           <ProFormCol>
             <ProFormColItem :span="12">
               <ProFormItemV2
@@ -310,14 +338,13 @@
             <ProFormColItem :span="12">
               <ProFormItemV2
                 label="楠屾敹鏂瑰紡:"
-                prop="checkReceiveMethod"
+                prop="checkReceiveMethods"
                 :check-rules="[{ message: '璇烽�夋嫨楠屾敹鏂瑰紡' }]"
               >
-                <ProFormRadio
-                  v-model="form.checkReceiveMethod"
+                <ProFormCheckbox
+                  v-model="form.checkReceiveMethods"
                   :value-enum="EnumTaskCheckReceiveMethodText"
-                  :button-style="false"
-                ></ProFormRadio>
+                ></ProFormCheckbox>
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
@@ -391,7 +418,9 @@
 const id = route.params.id as string;
 const isEdit = !!id;
 
-const { settlementAccessList } = useEnterpriseWalletAccessSelect();
+const { settlementAccessList } = useEnterpriseWalletAccessSelect({
+  supplierEnterpriseId: computed(() => ''),
+});
 
 function disabledDate(time: Date) {
   return dayjs(time).isBefore(dayjs(), 'day');
@@ -439,6 +468,7 @@
   serviceFee: null,
   settlementCycle: EnumSettlementCycle.Day,
   settlementDate: null as number,
+  totalPieceQuantity: null as number,
   benefits: [] as string[],
   ageMinLimit: null,
   ageMaxLimit: null,
@@ -450,9 +480,10 @@
   verifyWorkHours: null as number,
   timeoutServiceFee: null as number,
   description: '',
-  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
+  checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
   applyTime: [] as unknown as ModelValueType,
   settlementAccess: '' as any as EnumEnterpriseWalletAccess,
+  needPeopleNumber: null as number,
 });
 
 const { isLoading } = useQuery({
@@ -472,6 +503,7 @@
     form.serviceFee = data.serviceFee;
     form.settlementCycle = data.settlementCycle;
     form.settlementDate = data.settlementDate;
+    form.totalPieceQuantity = data.totalPieceQuantity;
     form.benefits = data.benefits?.map((x) => x.benefitCode) ?? [];
     form.ageMinLimit = data.ageMinLimit;
     form.ageMaxLimit = data.ageMaxLimit;
@@ -498,12 +530,13 @@
     form.verifyWorkHours = data.verifyWorkHours;
     form.timeoutServiceFee = data.timeoutServiceFee;
     form.description = data.description;
-    form.checkReceiveMethod = data.checkReceiveMethod;
+    form.checkReceiveMethods = data.checkReceiveMethods;
     form.applyTime = [
       format(data.applyBeginTime, 'YYYY-MM-DD 00:00:00'),
       format(data.applyEndTime, 'YYYY-MM-DD 23:59:59'),
     ];
     form.settlementAccess = data.settlementAccess;
+    form.needPeopleNumber = data.needPeopleNumber;
   },
   enabled: isEdit,
 });
@@ -540,6 +573,7 @@
       serviceFee: form.serviceFee,
       settlementCycle: form.settlementCycle,
       settlementDate: form.settlementDate ? form.settlementDate : 0,
+      totalPieceQuantity: form.totalPieceQuantity,
       benefits: form.benefits,
       ageMinLimit: form.ageMinLimit,
       ageMaxLimit: form.ageMaxLimit,
@@ -558,7 +592,7 @@
       verifyWorkHours: form.verifyWorkHours,
       timeoutServiceFee: form.timeoutServiceFee,
       description: form.description,
-      checkReceiveMethod: form.checkReceiveMethod,
+      checkReceiveMethods: form.checkReceiveMethods,
       settlementAccess: form.settlementAccess,
     };
     if (isEdit) {

--
Gitblit v1.9.1