From aea28d0ad246cc8d6ce0744b8f101dd7c8fd474f Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 14 五月 2025 14:29:15 +0800 Subject: [PATCH] feat: 接口 --- src/constants/reward.ts | 137 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 132 insertions(+), 5 deletions(-) diff --git a/src/constants/reward.ts b/src/constants/reward.ts index 7eafdd7..8304a23 100644 --- a/src/constants/reward.ts +++ b/src/constants/reward.ts @@ -1,4 +1,10 @@ +import { Colors } from './enum'; + export enum BountyCheckStatusEnum { + /** + * 鏈彁浜� + */ + NotSubmit = -10, /** * 寰呭鏍� */ @@ -16,23 +22,85 @@ export const BountyCheckStatusEnumText = { [BountyCheckStatusEnum.WaitCheck]: '寰呭鏍�', [BountyCheckStatusEnum.CheckPassed]: '瀹℃牳閫氳繃', - [BountyCheckStatusEnum.CheckReject]: '瀹℃牳涓嶉�氳繃', + [BountyCheckStatusEnum.CheckReject]: '瀹℃牳鏈�氳繃', +}; +export const BountyCheckStatusEnumTextForAudit = { + [BountyCheckStatusEnum.CheckPassed]: '瀹℃牳閫氳繃', + [BountyCheckStatusEnum.CheckReject]: '椹冲洖', +}; + +export const BountyCheckStatusEnumColor = { + [BountyCheckStatusEnum.NotSubmit]: '', + [BountyCheckStatusEnum.WaitCheck]: Colors.Warning, + [BountyCheckStatusEnum.CheckPassed]: Colors.Success, + [BountyCheckStatusEnum.CheckReject]: Colors.Danger, }; export enum SettleStatusEnum { /** - * 寰呭彂鏀� + * 寰呭厖鍊� */ WaitForSettle = 1, /** - * 宸插彂鏀� + * 宸插厖鍊� */ HasSettle = 2, + /** + * 宸蹭笂浼犲嚟璇� + */ + HasBill = 3, + /** + * 鏃犻渶鍏呭�� + */ + NoNeed = -1, } export const SettleStatusEnumText = { - [SettleStatusEnum.WaitForSettle]: '寰呭彂鏀�', - [SettleStatusEnum.HasSettle]: '宸插彂鏀�', + [SettleStatusEnum.WaitForSettle]: '寰呭厖鍊�', + [SettleStatusEnum.HasSettle]: '宸插厖鍊�', + [SettleStatusEnum.NoNeed]: '鏃犻渶鍏呭��', +}; +export const SettleStatusEnumTextV2Query = { + [SettleStatusEnum.WaitForSettle]: '寰呯櫥璁�', + [SettleStatusEnum.HasSettle]: '宸茬櫥璁�', +}; + +export const SettleStatusEnumTextV2 = { + [SettleStatusEnum.WaitForSettle]: '寰呯櫥璁�', + [SettleStatusEnum.HasSettle]: '宸茬櫥璁�', + [SettleStatusEnum.HasBill]: '宸茬櫥璁�', + [SettleStatusEnum.NoNeed]: '鏃犻渶鐧昏', +}; + +export enum FinanceStatusEnum { + /** + * 寰呮嫧浠� + */ + WaitForIncome = 1, + /** + * 宸叉嫧浠� + */ + HasIncome = 2, + /** + * 宸蹭笂浼犲嚟璇� + */ + HasBill = 3, +} + +export const FinanceStatusEnumText = { + [FinanceStatusEnum.WaitForIncome]: '寰呮嫧浠�', + [FinanceStatusEnum.HasIncome]: '宸叉嫧浠�', +}; + +export const FinanceStatusEnumTextV2 = { + [FinanceStatusEnum.WaitForIncome]: '寰呯櫥璁�', + [FinanceStatusEnum.HasIncome]: '宸茬櫥璁�', + [FinanceStatusEnum.HasBill]: '宸茬櫥璁�', +}; + +export const FinanceStatusEnumTextV2Query = { + [FinanceStatusEnum.WaitForIncome]: '寰呯櫥璁�', + [FinanceStatusEnum.HasIncome]: '宸茬櫥璁�', }; export enum IncomeStatusEnum { @@ -50,3 +118,62 @@ [IncomeStatusEnum.WaitForIncome]: '寰呭叆璐�', [IncomeStatusEnum.HasIncome]: '宸插叆璐�', }; + +export enum EnterpriseBountyPayTypeEnum { + /**鍑洪噾 */ + PayOut = 10, + /**鍏ラ噾 */ + PayIn = 20, +} + +export const EnterpriseBountyPayTypeEnumText = { + [EnterpriseBountyPayTypeEnum.PayOut]: '鍑洪噾', + [EnterpriseBountyPayTypeEnum.PayIn]: '鍏ラ噾', +}; + +export enum IncomeTypeEnum { + /**璐㈡斂鎷ㄤ粯 */ + Fiscal = 10, + /**骞冲彴鍏呭�� */ + Platform = 20, +} + +export const IncomeTypeEnumText = { + [IncomeTypeEnum.Fiscal]: '璐㈡斂鎷ㄤ粯', + [IncomeTypeEnum.Platform]: '骞冲彴鍏呭��', +}; + +export enum EnterpriseRechargeStatusEnum { + /**寰呭鏍� */ + WaitCheck = 10, + /**瀹℃牳閫氳繃 */ + CheckPassed = 20, + /**椹冲洖 */ + CheckReject = 30, +} + +export const EnterpriseRechargeStatusEnumText = { + [EnterpriseRechargeStatusEnum.WaitCheck]: '寰呭鏍�', + [EnterpriseRechargeStatusEnum.CheckPassed]: '瀹℃牳閫氳繃', + [EnterpriseRechargeStatusEnum.CheckReject]: '椹冲洖', +}; + +export const EnterpriseRechargeStatusEnumTextForAdudit = { + [EnterpriseRechargeStatusEnum.CheckPassed]: '閫氳繃', + [EnterpriseRechargeStatusEnum.CheckReject]: '椹冲洖', +}; + +export enum BillStatusEnum { + /**鏈笂浼� */ + NotUpload = 10, + /**寰呭畬鍠� */ + NeedUpload = 20, + /**宸蹭笂浼� */ + HasUpload = 30, +} + +export const BillStatusEnumText = { + [BillStatusEnum.NotUpload]: '鏈笂浼�', + [BillStatusEnum.NeedUpload]: '寰呭畬鍠�', + [BillStatusEnum.HasUpload]: '宸蹭笂浼�', +}; -- Gitblit v1.9.1