| | |
| | | import { format } from '@/utils'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { Message } from '@bole-core/core'; |
| | | import dayjs from 'dayjs'; |
| | | |
| | | defineOptions({ |
| | | name: 'TaskManageList', |
| | |
| | | serviceFee: { |
| | | type: 'money', |
| | | formatter: (row) => { |
| | | return `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`; |
| | | return row.billingMethod === EnumBillingMethod.Face |
| | | ? '' |
| | | : `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`; |
| | | }, |
| | | }, |
| | | applyBeginTime: { type: 'date', format: 'YYYY-MM-DD' }, |
| | | applyEndTime: { type: 'date', format: 'YYYY-MM-DD' }, |
| | | //@ts-ignore |
| | | applyStatus: { |
| | | formatter: (row: API.GetTaskInfosQueryResultItem) => { |
| | | const applyBeginTime = dayjs(row.applyBeginTime); |
| | | const applyEndTime = dayjs(row.applyEndTime); |
| | | const now = dayjs(); |
| | | if (applyEndTime.isBefore(now)) { |
| | | return '已结束'; |
| | | } else if (applyBeginTime.isAfter(now)) { |
| | | return '待开始'; |
| | | } else { |
| | | return '进行中'; |
| | | } |
| | | }, |
| | | }, |
| | | }, |