From 8977783adbbc842f523109d95273e345fee547dc Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 07 十一月 2025 11:19:27 +0800
Subject: [PATCH] feat: 接口

---
 src/views/TaskManage/components/TaskDetailView.vue |   50 ++++++++++++++++++++++++++++++++------------------
 1 files changed, 32 insertions(+), 18 deletions(-)

diff --git a/src/views/TaskManage/components/TaskDetailView.vue b/src/views/TaskManage/components/TaskDetailView.vue
index 742dc81..0aa6e1b 100644
--- a/src/views/TaskManage/components/TaskDetailView.vue
+++ b/src/views/TaskManage/components/TaskDetailView.vue
@@ -31,20 +31,13 @@
               </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
-                  label="鏍稿畾宸ユ椂:"
-                  prop="verifyWorkHours"
-                  :check-rules="[{ message: '璇疯緭鍏ユ牳瀹氬伐鏃�' }]"
-                >
+                <ProFormItemV2 label="鏍稿畾宸ユ椂:" prop="verifyWorkHours">
+                  <span v-if="!form.verifyWorkHours"></span>
                   <ProFormInputNumber
+                    v-else
                     :controls="false"
                     v-model="form.verifyWorkHours"
                     placeholder="璇疯緭鍏ユ牳瀹氬伐鏃�"
@@ -58,7 +51,9 @@
             <ProFormCol>
               <ProFormColItem :span="12">
                 <ProFormItemV2 label="瓒呮椂鏈嶅姟璐�:" prop="timeoutServiceFee">
+                  <span v-if="!form.timeoutServiceFee"></span>
                   <ProFormInputNumber
+                    v-else
                     :controls="false"
                     v-model="form.timeoutServiceFee"
                     placeholder="璇疯緭鍏ヨ秴鏃舵湇鍔¤垂"
@@ -70,6 +65,24 @@
               </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="浠�"
+                ></ProFormInputNumber>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
           <ProFormCol>
             <ProFormColItem :span="12">
               <ProFormItemV2 label="缁撶畻鏂瑰紡:" prop="settlementCycle">
@@ -213,14 +226,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>
@@ -309,6 +321,7 @@
   serviceFee: 0,
   settlementCycle: '' as any as EnumSettlementCycle,
   settlementDate: null as number,
+  totalPieceQuantity: null as number,
   benefits: [] as string[],
   ageMinLimit: 0,
   ageMaxLimit: 0,
@@ -321,7 +334,7 @@
   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,
 });
@@ -343,6 +356,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;
@@ -366,7 +380,7 @@
     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'),

--
Gitblit v1.9.1