From d8ef10a07b7b32a05be40cb77f629a6f9b8a0966 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期日, 19 十月 2025 13:48:48 +0800
Subject: [PATCH] feat: 1.2.0.1

---
 src/views/EmploymentManage/components/AddOrEditEmploymentView.vue |  113 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 107 insertions(+), 6 deletions(-)

diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
index c2ea175..eb8b548 100644
--- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
+++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue
@@ -53,6 +53,37 @@
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
+          <template v-if="form.billingMethod === EnumBillingMethod.Hour">
+            <ProFormCol>
+              <ProFormColItem :span="12">
+                <ProFormItemV2 label="鏍稿畾宸ユ椂:" prop="verifyWorkHours">
+                  <ProFormInputNumber
+                    :controls="false"
+                    v-model="form.verifyWorkHours"
+                    placeholder="璇疯緭鍏ユ牳瀹氬伐鏃�"
+                    :min="0"
+                    :max="999999999999"
+                    unit="灏忔椂/澶�"
+                  ></ProFormInputNumber>
+                </ProFormItemV2>
+              </ProFormColItem>
+            </ProFormCol>
+            <ProFormCol>
+              <ProFormColItem :span="12">
+                <ProFormItemV2 label="瓒呮椂鏈嶅姟璐�:" prop="timeoutServiceFee">
+                  <ProFormInputNumber
+                    :controls="false"
+                    v-model="form.timeoutServiceFee"
+                    placeholder="璇疯緭鍏ヨ秴鏃舵湇鍔¤垂"
+                    :min="0"
+                    :max="999999999999"
+                    unit="鍏�/灏忔椂"
+                  ></ProFormInputNumber>
+                </ProFormItemV2>
+              </ProFormColItem>
+            </ProFormCol>
+          </template>
+
           <ProFormCol>
             <ProFormColItem :span="12">
               <ProFormItemV2
@@ -199,12 +230,19 @@
           </ProFormCol>
           <ProFormCol>
             <ProFormColItem :span="12">
-              <ProFormItemV2
-                label="璇︾粏鍦板潃:"
-                prop="addressDetail"
-                :check-rules="[{ message: '璇疯緭鍏ヨ缁嗗湴鍧�' }]"
-              >
-                <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>
@@ -223,6 +261,39 @@
                   end-placeholder="缁撴潫鏃ユ湡"
                   :disabled-date="disabledDate"
                 ></ProFormDatePicker>
+              </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="缁撴潫鏃ユ湡"
+                  :disabled-date="disabledapplyDate"
+                ></ProFormDatePicker>
+              </ProFormItemV2>
+            </ProFormColItem>
+          </ProFormCol>
+          <ProFormCol>
+            <ProFormColItem :span="12">
+              <ProFormItemV2
+                label="楠屾敹鏂瑰紡:"
+                prop="checkReceiveMethod"
+                :check-rules="[{ message: '璇烽�夋嫨楠屾敹鏂瑰紡' }]"
+              >
+                <ProFormRadio
+                  v-model="form.checkReceiveMethod"
+                  :value-enum="EnumTaskCheckReceiveMethodText"
+                  :button-style="false"
+                ></ProFormRadio>
               </ProFormItemV2>
             </ProFormColItem>
           </ProFormCol>
@@ -250,6 +321,7 @@
   ProFormDatePicker,
   ProFormCheckbox,
   ProFormSelect,
+  ProFormTextArea,
 } from '@bole-core/components';
 import { FormInstance, ModelValueType } from 'element-plus';
 import { Message } from '@bole-core/core';
@@ -258,6 +330,7 @@
 import * as taskServices from '@/services/api/task';
 import {
   EnumUserGenderTextForEdit,
+  EnumBillingMethod,
   EnumBillingMethodText,
   EnumBillingMethodUnitText,
   EnumSettlementCycleText,
@@ -265,6 +338,7 @@
   EnumSettlementCycleDateMonthArray,
   EnumSettlementCycleDateWeekArray,
   EnumSettlementCycle,
+  EnumTaskCheckReceiveMethodText,
 } from '@/constants';
 import { format, FormValidator } from '@/utils';
 import dayjs from 'dayjs';
@@ -282,6 +356,10 @@
 
 function disabledDate(time: Date) {
   return dayjs(time).isBefore(dayjs(), 'day');
+}
+
+function disabledapplyDate(time: Date) {
+  return dayjs(time).isBefore(form.time[0], 'day');
 }
 
 const eventContext = useGlobalEventContext();
@@ -326,6 +404,11 @@
   time: [] as unknown as ModelValueType,
   weMapInfo: {} as WeMapModel,
   addressDetail: '',
+  verifyWorkHours: null as number,
+  timeoutServiceFee: null as number,
+  description: '',
+  checkReceiveMethod: '' as any as EnumTaskCheckReceiveMethod,
+  applyTime: [] as unknown as ModelValueType,
 });
 
 const { isLoading } = useQuery({
@@ -354,6 +437,10 @@
       format(data.beginTime, 'YYYY-MM-DD 00:00:00'),
       format(data.endTime, 'YYYY-MM-DD 23:59:59'),
     ];
+    form.applyTime = [
+      format(data.applyBeginTime, 'YYYY-MM-DD 00:00:00'),
+      format(data.applyEndTime, 'YYYY-MM-DD 23:59:59'),
+    ];
     form.weMapInfo = {
       latitude: data.latitude,
       longitude: data.longitude,
@@ -364,6 +451,14 @@
       addressName: data.addressName,
     };
     form.addressDetail = data.addressDetail;
+    form.verifyWorkHours = data.verifyWorkHours;
+    form.timeoutServiceFee = data.timeoutServiceFee;
+    form.description = data.description;
+    form.checkReceiveMethod = data.checkReceiveMethod;
+    form.applyTime = [
+      format(data.applyBeginTime, 'YYYY-MM-DD 00:00:00'),
+      format(data.applyEndTime, 'YYYY-MM-DD 23:59:59'),
+    ];
   },
   enabled: isEdit,
 });
@@ -409,6 +504,12 @@
       latitude: form.weMapInfo.latitude,
       beginTime: dayjs(form.time[0]).format('YYYY-MM-DD 00:00:00'),
       endTime: dayjs(form.time[1]).format('YYYY-MM-DD 23:59:59'),
+      applyBeginTime: dayjs(form.applyTime[0]).format('YYYY-MM-DD 00:00:00'),
+      applyEndTime: dayjs(form.applyTime[1]).format('YYYY-MM-DD 23:59:59'),
+      verifyWorkHours: form.verifyWorkHours,
+      timeoutServiceFee: form.timeoutServiceFee,
+      description: form.description,
+      checkReceiveMethod: form.checkReceiveMethod,
     };
     if (isEdit) {
       params.id = id;

--
Gitblit v1.9.1