From 167abc7ab7c70542def539f623ce1790fc64bc24 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期六, 08 十一月 2025 14:22:00 +0800
Subject: [PATCH] fix: bug
---
src/views/TaskManage/components/TaskDetailView.vue | 45 +++++++++++++++++++++++++++++++++++++++------
1 files changed, 39 insertions(+), 6 deletions(-)
diff --git a/src/views/TaskManage/components/TaskDetailView.vue b/src/views/TaskManage/components/TaskDetailView.vue
index c7877c0..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="璇疯緭鍏�"
@@ -31,12 +47,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 label="鏍稿畾宸ユ椂:" prop="verifyWorkHours">
@@ -70,6 +81,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">
@@ -308,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,
@@ -323,6 +353,7 @@
checkReceiveMethods: [] as any as EnumTaskCheckReceiveMethod[],
applyTime: [] as unknown as ModelValueType,
settlementAccess: '' as any as EnumEnterpriseWalletAccess,
+ needPeopleNumber: null as number,
});
const { isLoading } = useQuery({
@@ -342,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;
@@ -371,6 +403,7 @@
format(data.applyEndTime, 'YYYY-MM-DD 23:59:59'),
];
form.settlementAccess = data.settlementAccess;
+ form.needPeopleNumber = data.needPeopleNumber;
},
enabled: computed(() => !!id),
});
--
Gitblit v1.9.1