Browse Source

资金流水导出问题

milestone-20260415-金币优化4期
ZhangYong 1 day ago
parent
commit
b6d3aac95f
  1. 36
      src/views/moneyManage/financialAccount/cashFlow.vue

36
src/views/moneyManage/financialAccount/cashFlow.vue

@ -418,18 +418,50 @@ const handleExport = async () => {
})
.filter(id => id !== null && id !== 'null'); //
}
const areaPayTypeList = [];
const options = toRaw(payPlatformOptionsList.value);
const selectedPaths = queryParams.platformSelection;
if (selectedPaths.length > 0 && options.length > 0) {
selectedPaths.forEach(path => {
const areaId = path[0];
const payMethodId = path[path.length - 1];
if (path.length === 1) {
const countryNode = options.find(c => c.id === areaId);
if (countryNode && countryNode.children) {
countryNode.children.forEach(child => {
areaPayTypeList.push({
areaId: areaId,
payType: child.name
});
});
}
}
else {
const countryNode = options.find(c => c.id === areaId);
if (countryNode && countryNode.children) {
const methodNode = countryNode.children.find(m => m.id === payMethodId);
if (methodNode) {
areaPayTypeList.push({
areaId: areaId,
payType: methodNode.name
});
}
}
}
});
}
const params = {
pageNum: queryParams.pageNum,
pageSize: queryParams.pageSize,
fundsDTO: {
jwcode: queryParams.jwcode,
localMarket: queryParams.markets,
performanceMarkets:performanceMarkets,
areaPayTypeList: areaPayTypeList,
startTime: queryParams.timeRange?.[0] ? dayjs(queryParams.timeRange[0]).format('YYYY-MM-DD HH:mm:ss') : '',
endTime: queryParams.timeRange?.[1] ? dayjs(queryParams.timeRange[1]).format('YYYY-MM-DD HH:mm:ss') : '',
payType: normalizePayType(queryParams.payType || ''),
orderCode: queryParams.orderCode,
performanceMarkets: performanceMarkets,
statuses: formatStatuses(queryParams.statuses),
markets: [],
}
}

Loading…
Cancel
Save