From 9c4e34d06e251667e650055412256e5743b90d72 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 07 十一月 2025 19:05:06 +0800
Subject: [PATCH] fix: bug

---
 src/views/TaskManage/components/TaskDetailView.vue |  152 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 150 insertions(+), 2 deletions(-)

diff --git a/src/views/TaskManage/components/TaskDetailView.vue b/src/views/TaskManage/components/TaskDetailView.vue
index 7972264..ae79be2 100644
--- a/src/views/TaskManage/components/TaskDetailView.vue
+++ b/src/views/TaskManage/components/TaskDetailView.vue
@@ -12,6 +12,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">
                 <RadioWithExtra
                   v-model="form.billingMethod"
@@ -21,6 +36,7 @@
                 >
                   <template #extra>
                     <ProFormInputNumber
+                      v-if="form.billingMethod !== EnumBillingMethod.Face"
                       :controls="false"
                       v-model="form.serviceFee"
                       placeholder="璇疯緭鍏�"
@@ -28,6 +44,58 @@
                     ></ProFormInputNumber>
                   </template>
                 </RadioWithExtra>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <template v-if="form.billingMethod === EnumBillingMethod.Hour">
+            <ProFormCol>
+              <ProFormColItem :span="12">
+                <ProFormItemV2 label="鏍稿畾宸ユ椂:" prop="verifyWorkHours">
+                  <span v-if="!form.verifyWorkHours"></span>
+                  <ProFormInputNumber
+                    v-else
+                    :controls="false"
+                    v-model="form.verifyWorkHours"
+                    placeholder="璇疯緭鍏ユ牳瀹氬伐鏃�"
+                    :min="0"
+                    :max="999999999999"
+                    unit="灏忔椂/澶�"
+                  ></ProFormInputNumber>
+                </ProFormItemV2>
+              </ProFormColItem>
+            </ProFormCol>
+            <ProFormCol>
+              <ProFormColItem :span="12">
+                <ProFormItemV2 label="瓒呮椂鏈嶅姟璐�:" prop="timeoutServiceFee">
+                  <span v-if="!form.timeoutServiceFee"></span>
+                  <ProFormInputNumber
+                    v-else
+                    :controls="false"
+                    v-model="form.timeoutServiceFee"
+                    placeholder="璇疯緭鍏ヨ秴鏃舵湇鍔¤垂"
+                    :min="0"
+                    :max="999999999999"
+                    unit="鍏�/灏忔椂"
+                  ></ProFormInputNumber>
+                </ProFormItemV2>
+              </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>
@@ -45,6 +113,7 @@
           <ProFormCol>
             <ProFormColItem :span="12" class="settlement-cycle-date-form-item">
               <ProFormItemV2
+                v-if="form.settlementCycle !== EnumSettlementCycle.Day"
                 label="缁撶畻鏃ユ湡:"
                 prop="settlementCycle"
                 :check-rules="[{ message: '璇烽�夋嫨缁撶畻鏃ユ湡' }]"
@@ -123,8 +192,19 @@
           </ProFormCol>
           <ProFormCol>
             <ProFormColItem :span="12">
-              <ProFormItemV2 label="璇︾粏鍦板潃:" prop="addressDetail">
-                <ProFormText v-model.trim="form.addressDetail" placeholder="璇疯緭鍏ヨ缁嗗湴鍧�" />
+              <ProFormItemV2 label="鍦扮偣璇存槑:" prop="addressDetail">
+                <ProFormText v-model.trim="form.addressDetail" placeholder="璇疯緭鍏ュ湴鐐硅鏄�" />
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <ProFormCol>
+            <ProFormColItem :span="12">
+              <ProFormItemV2 label="浠诲姟鎻忚堪:" prop="description">
+                <ProFormTextArea
+                  :rows="4"
+                  v-model.trim="form.description"
+                  placeholder="璇疯緭鍏ヤ换鍔℃弿杩�"
+                />
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
@@ -141,6 +221,48 @@
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
+          <ProFormCol>
+            <ProFormColItem :span="12">
+              <ProFormItemV2
+                label="鎶ュ悕鏃堕棿:"
+                prop="applyTime"
+                :check-rules="[{ message: '璇烽�夋嫨鎶ュ悕鏃堕棿', type: 'array' }]"
+              >
+                <ProFormDatePicker
+                  v-model="form.applyTime"
+                  type="daterange"
+                  range-separator="鑷�"
+                  start-placeholder="寮�濮嬫棩鏈�"
+                  end-placeholder="缁撴潫鏃ユ湡"
+                ></ProFormDatePicker>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <ProFormCol>
+            <ProFormColItem :span="12">
+              <ProFormItemV2
+                label="楠屾敹鏂瑰紡:"
+                prop="checkReceiveMethods"
+                :check-rules="[{ message: '璇烽�夋嫨楠屾敹鏂瑰紡' }]"
+              >
+                <ProFormCheckbox
+                  v-model="form.checkReceiveMethods"
+                  :value-enum="EnumTaskCheckReceiveMethodText"
+                ></ProFormCheckbox>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <ProFormItemV2
+            label="缁撶畻鏂瑰紡:"
+            prop="settlementAccess"
+            :check-rules="[{ message: '璇烽�夋嫨缁撶畻鏂瑰紡' }]"
+          >
+            <ProFormSelect
+              v-model="form.settlementAccess"
+              :value-enum="EnumEnterpriseWalletAccessTextForSettle"
+              placeholder="璇烽�夋嫨缁撶畻鏂瑰紡"
+            ></ProFormSelect>
+          </ProFormItemV2>
         </ProForm>
         <template #footer>
           <el-button @click="handleBack">鍏抽棴</el-button>
@@ -165,17 +287,22 @@
   ProFormDatePicker,
   ProFormCheckbox,
   ProFormSelect,
+  ProFormTextArea,
 } from '@bole-core/components';
 import { useQuery } from '@tanstack/vue-query';
 import * as taskServices from '@/services/api/task';
 import {
   EnumUserGenderText,
+  EnumBillingMethod,
   EnumBillingMethodText,
   EnumBillingMethodUnitText,
+  EnumSettlementCycle,
   EnumSettlementCycleText,
   EnumSettlementCycleDateText,
   EnumSettlementCycleDateMonthArray,
   EnumSettlementCycleDateWeekArray,
+  EnumTaskCheckReceiveMethodText,
+  EnumEnterpriseWalletAccessTextForSettle,
 } from '@/constants';
 import { ModelValueType } from 'element-plus';
 import { format } from '@/utils';
@@ -210,6 +337,7 @@
   serviceFee: 0,
   settlementCycle: '' as any as EnumSettlementCycle,
   settlementDate: null as number,
+  totalPieceQuantity: null as number,
   benefits: [] as string[],
   ageMinLimit: 0,
   ageMaxLimit: 0,
@@ -218,6 +346,14 @@
   time: [] as unknown as ModelValueType,
   weMapInfo: {} as WeMapModel,
   addressDetail: '',
+
+  verifyWorkHours: null as number,
+  timeoutServiceFee: null as number,
+  description: '',
+  checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
+  applyTime: [] as unknown as ModelValueType,
+  settlementAccess: '' as any as EnumEnterpriseWalletAccess,
+  needPeopleNumber: null as number,
 });
 
 const { isLoading } = useQuery({
@@ -237,6 +373,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;
@@ -256,6 +393,17 @@
       addressName: data.addressName,
     };
     form.addressDetail = data.addressDetail;
+
+    form.verifyWorkHours = data.verifyWorkHours;
+    form.timeoutServiceFee = data.timeoutServiceFee;
+    form.description = data.description;
+    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: computed(() => !!id),
 });

--
Gitblit v1.9.1