| | |
| | | import { CheckManageColumns } from './constants'; |
| | | import * as taskCheckReceiveServices from '@/services/api/taskCheckReceive'; |
| | | import { ModelValueType } from 'element-plus'; |
| | | import { downloadFileByUrl, format, setOSSLink } from '@/utils'; |
| | | import { downloadFileByUrl, format, OrderUtils, setOSSLink } from '@/utils'; |
| | | import { EnumTaskCheckReceiveStatusText } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | |
| | | columnsRenderProps: { |
| | | checkReceiveStatus: { type: 'enum', valueEnum: EnumTaskCheckReceiveStatusText }, |
| | | billingMethod: { type: 'enum', valueEnum: EnumBillingMethodText }, |
| | | checkReceiveMethod: { type: 'enum', valueEnum: EnumTaskCheckReceiveMethodText }, |
| | | checkReceiveMethods: { |
| | | formatter: (row: API.GetCheckReceiveTasksQueryResultItem) => { |
| | | return row.checkReceiveMethods |
| | | .map((item) => EnumTaskCheckReceiveMethodText[item]) |
| | | .join(','); |
| | | }, |
| | | }, |
| | | serviceFee: { |
| | | type: 'money', |
| | | formatter: (row) => { |
| | | return `${row.serviceFee}${EnumBillingMethodUnitText[row.billingMethod]}`; |
| | | formatter: (row: API.GetCheckReceiveTasksQueryResultItem) => { |
| | | return OrderUtils.getServiceFeeText(row.serviceFee, row.billingMethod); |
| | | }, |
| | | }, |
| | | settlementCycle: { type: 'enum', valueEnum: EnumSettlementCycleText }, |