From d32cd83674f9b0db0154e6228807e658539f8cd0 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 22 九月 2025 13:10:14 +0800 Subject: [PATCH] fix: bug --- src/constants/task.ts | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 107 insertions(+), 0 deletions(-) diff --git a/src/constants/task.ts b/src/constants/task.ts index fa7fd95..c2627ed 100644 --- a/src/constants/task.ts +++ b/src/constants/task.ts @@ -1,18 +1,125 @@ +import { SettlementReceiveStatus } from '@/constants/apiEnum'; + export const EnumTaskStatusText = { [EnumTaskStatus.Wait]: '寰呭畨鎺�', [EnumTaskStatus.Complete]: '宸插畨鎺�', }; + export const EnumSettlementCycleText = { [EnumSettlementCycle.Month]: '鏈堢粨', [EnumSettlementCycle.Week]: '鍛ㄧ粨', [EnumSettlementCycle.Day]: '鏃ョ粨', }; +export const EnumSettlementCycleDateText = { + [EnumSettlementCycle.Month]: '姣忔湀', + [EnumSettlementCycle.Week]: '姣忓懆', +}; + +export const EnumSettlementCycleDateWeekArray = [ + { label: '鏄熸湡涓�', value: 1 }, + { label: '鏄熸湡浜�', value: 2 }, + { label: '鏄熸湡涓�', value: 3 }, + { label: '鏄熸湡鍥�', value: 4 }, + { label: '鏄熸湡浜�', value: 5 }, + { label: '鏄熸湡鍏�', value: 6 }, + { label: '鏄熸湡鏃�', value: 7 }, +]; + +export const EnumSettlementCycleDateMonthArray = [ + { label: '1鏃�', value: 1 }, + { label: '2鏃�', value: 2 }, + { label: '3鏃�', value: 3 }, + { label: '4鏃�', value: 4 }, + { label: '5鏃�', value: 5 }, + { label: '6鏃�', value: 6 }, + { label: '7鏃�', value: 7 }, + { label: '8鏃�', value: 8 }, + { label: '9鏃�', value: 9 }, + { label: '10鏃�', value: 10 }, + { label: '11鏃�', value: 11 }, + { label: '12鏃�', value: 12 }, + { label: '13鏃�', value: 13 }, + { label: '14鏃�', value: 14 }, + { label: '15鏃�', value: 15 }, + { label: '16鏃�', value: 16 }, + { label: '17鏃�', value: 17 }, + { label: '18鏃�', value: 18 }, + { label: '19鏃�', value: 19 }, + { label: '20鏃�', value: 20 }, + { label: '21鏃�', value: 21 }, + { label: '22鏃�', value: 22 }, + { label: '23鏃�', value: 23 }, + { label: '24鏃�', value: 24 }, + { label: '25鏃�', value: 25 }, + { label: '26鏃�', value: 26 }, + { label: '27鏃�', value: 27 }, + { label: '28鏃�', value: 28 }, + { label: '29鏃�', value: 29 }, + { label: '30鏃�', value: 30 }, + { label: '31鏃�', value: 31 }, +]; + export const EnumTaskReleaseStatusText = { [EnumTaskReleaseStatus.InProcess]: '鍙戝竷涓�', [EnumTaskReleaseStatus.Stopped]: '宸插仠姝�', }; + export const EnumTaskRecommendStatusText = { [EnumTaskRecommendStatus.No]: '鏈帹鑽�', [EnumTaskRecommendStatus.Yes]: '宸叉帹鑽�', }; + +export const EnumUserGenderText = { + [0]: '涓嶉檺', + [EnumUserGender.Male]: '鐢锋��', + [EnumUserGender.Female]: '濂虫��', +}; + +export const EnumUserGenderTextForPerson = { + [EnumUserGender.Male]: '鐢�', + [EnumUserGender.Female]: '濂�', +}; + +export const EnumBillingMethodText = { + [EnumBillingMethod.Month]: '鎸夋湀', + [EnumBillingMethod.Day]: '鎸夋棩', + [EnumBillingMethod.Hour]: '鎸夋椂', + [EnumBillingMethod.Piece]: '璁′欢', +}; + +export const EnumBillingMethodUnitText = { + [EnumBillingMethod.Month]: '鍏�/鏈�', + [EnumBillingMethod.Day]: '鍏�/鏃�', + [EnumBillingMethod.Hour]: '鍏�/灏忔椂', + [EnumBillingMethod.Piece]: '鍏�/浠�', +}; + +export const EnumTaskSettlementStatusText = { + [EnumTaskSettlementStatus.Wait]: '寰呯粨绠�', + [EnumTaskSettlementStatus.Completed]: '宸茬粨绠�', +}; + +export const SettlementReceiveStatusText = { + [SettlementReceiveStatus.Completed]: '宸插埌璐�', + [SettlementReceiveStatus.Refunded]: '宸查��娆�', +}; + +export const EnumTaskCheckReceiveStatusText = { + [EnumTaskCheckReceiveStatus.WaitSubmit]: '寰呴獙鏀�', + [EnumTaskCheckReceiveStatus.Completed]: '宸查獙鏀�', +}; + +export const EnumPersonalFreeTimeText = { + [EnumPersonalFreeTime.NoLimit]: '涓嶉檺', + [EnumPersonalFreeTime.WinterSummerVacations]: '瀵掓殤鍋�', + [EnumPersonalFreeTime.FestivalAndHoliday]: '鑺傚亣鏃�', + [EnumPersonalFreeTime.Weekend]: '鍛ㄥ叚鏃�', + [EnumPersonalFreeTime.Weekday]: '宸ヤ綔鏃�', +}; + +export const EnumPersonalJobSeekingStatusText = { + [EnumPersonalJobSeekingStatus.Active]: '绉瀬鎵句换鍔�', + [EnumPersonalJobSeekingStatus.Whatever]: '闅忎究鐪嬬湅', + [EnumPersonalJobSeekingStatus.Not]: '鏆傛椂涓嶆壘浠诲姟', +}; -- Gitblit v1.9.1