| | |
| | | FourStreamsMaterialFileBusinessTypeEnum, |
| | | FourStreamsMaterialFileBusinessTypeEnumKey, |
| | | FourStreamsMaterialFileTableItem, |
| | | TransferFileEnumInRewardGrand, |
| | | TransferFileEnumInRewardGrandKey, |
| | | TransferFileEnumInRewardGrandTableItem, |
| | | } from '../types'; |
| | | |
| | | export class FourStreamsMaterialUtils { |
| | |
| | | static ApplyTransferMaterialFile = [ |
| | | ApplyTransferFileBusinessTypeEnum.FinanceToFileUrl, |
| | | ApplyTransferFileBusinessTypeEnum.TransferToFileUrl, |
| | | ]; |
| | | |
| | | /**财政拨付和平台充值凭证 奖励金发放*/ |
| | | static TransferFileEnumInRewardGrandFile = [ |
| | | TransferFileEnumInRewardGrand.FinanceFileUrl, |
| | | TransferFileEnumInRewardGrand.SettleFileUrl, |
| | | ]; |
| | | |
| | | static isFourStreamsParkType(parkTypeName) { |
| | |
| | | } as ApplyTransferMaterialFileTableItem; |
| | | }); |
| | | } |
| | | |
| | | static initApplyRewardGrandFileList< |
| | | T extends { financeFileUrl?: string; settleFileUrl?: string } |
| | | >(data: T) { |
| | | return this.TransferFileEnumInRewardGrandFile.map((item) => { |
| | | const filePathList = data[TransferFileEnumInRewardGrandKey[item]] |
| | | ? data[TransferFileEnumInRewardGrandKey[item]].split('|') |
| | | : []; |
| | | return { |
| | | fileBusinessType: item, |
| | | fileList: filePathList.map(convertApi2FormUrl), |
| | | } as TransferFileEnumInRewardGrandTableItem; |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export class ParkTypeUtils { |