| | |
| | | [EnumBillingMethod.Day]: 'å
/æ¥', |
| | | [EnumBillingMethod.Hour]: 'å
/å°æ¶', |
| | | [EnumBillingMethod.Piece]: 'å
/ä»¶', |
| | | [EnumBillingMethod.Face]: 'é¢è®®', |
| | | }; |
| | | |
| | | export const EnumTaskSettlementStatusText = { |
| | |
| | | export * from './theme'; |
| | | export * from './validator'; |
| | | export * from './enterpriseWallet'; |
| | | export * from './orderUtils'; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | export class OrderUtils { |
| | | static getServiceFeeText(serviceFee: number, billingMethod: EnumBillingMethod) { |
| | | if (billingMethod === EnumBillingMethod.Face) { |
| | | return EnumBillingMethodUnitText[billingMethod]; |
| | | } |
| | | return `${serviceFee ?? 0}${EnumBillingMethodUnitText[billingMethod]}`; |
| | | } |
| | | |
| | | static isContainCheckIn(checkReceiveMethods: EnumTaskCheckReceiveMethod[]) { |
| | | if (!checkReceiveMethods) return false; |
| | | return checkReceiveMethods.includes(EnumTaskCheckReceiveMethod.CheckIn); |
| | | } |
| | | } |
| | |
| | | EnumTaskRecommendStatusText, |
| | | EnumTaskApplyStatusText, |
| | | } from '@/constants'; |
| | | import { format } from '@/utils'; |
| | | import { format, OrderUtils } from '@/utils'; |
| | | import { Message } from '@bole-core/core'; |
| | | |
| | | defineOptions({ |
| | |
| | | endTime: { type: 'date', format: 'YYYY-MM-DD' }, |
| | | serviceFee: { |
| | | type: 'money', |
| | | formatter: (row) => { |
| | | return row.billingMethod === EnumBillingMethod.Face |
| | | ? '' |
| | | : `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`; |
| | | formatter: (row: API.GetTaskInfosQueryResultItem) => { |
| | | return OrderUtils.getServiceFeeText(row.serviceFee, row.billingMethod); |
| | | }, |
| | | }, |
| | | }, |