1.2.00前端:

feat(budget):根据研发预算新模板修改导出功能
dev
xs 1 month ago
parent 32b3b90a74
commit c0e6d124b5

@ -450,12 +450,16 @@ const handleDelete = async (row?: budgetInfoVO) => {
const handleExport = (row?: budgetInfoVO) => { const handleExport = (row?: budgetInfoVO) => {
const budgetId = row.budgetId; const budgetId = row.budgetId;
const projectName = row.projectName; const projectName = row.projectName;
const projectCode = row.projectCode;
const projectCategory = row.projectCategory;
const fileNamePrefix =
projectCategory === PROJECT_CATEGORY.MARKET || projectCategory === PROJECT_CATEGORY.MARKET_PART ? '市场项目经费预算表-' : '研发项目经费预算表-';
proxy?.download( proxy?.download(
'oa/erp/budgetInfo/exportBudgetInfo', 'oa/erp/budgetInfo/exportBudgetInfo',
{ {
budgetId: budgetId budgetId: budgetId
}, },
projectName + `_${new Date().getTime()}.xlsx` fileNamePrefix + projectName + `(` + projectCode + `)` + `.xlsx`
); );
}; };

@ -72,9 +72,9 @@
{{ formatNumber(scope.row.subsidyCosts) }} {{ formatNumber(scope.row.subsidyCosts) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="subtotalCosts" label="小计(元)" width="100"> <el-table-column prop="subtotalCosts" label="小计(元)" width="100">
<template #default="scope"> <template #default="scope">
{{ format2TenThousandNumber(scope.row.subtotalCosts) }} {{ formatNumber(scope.row.subtotalCosts) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -127,9 +127,9 @@
{{ formatNumber(scope.row.reduceSubsidyCosts) }} {{ formatNumber(scope.row.reduceSubsidyCosts) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="reduceSubtotalCosts" label="小计(元)" width="100"> <el-table-column prop="reduceSubtotalCosts" label="小计(元)" width="100">
<template #default="scope"> <template #default="scope">
{{ format2TenThousandNumber(scope.row.reduceSubtotalCosts) }} {{ formatNumber(scope.row.reduceSubtotalCosts) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
@ -334,7 +334,7 @@ const getSummaries = (param: any) => {
}, 0); }, 0);
if (column.property === 'subtotalCosts' || column.property === 'reduceSubtotalCosts') { if (column.property === 'subtotalCosts' || column.property === 'reduceSubtotalCosts') {
sums[index] = format2TenThousandNumber(sums[index]); sums[index] = formatNumber(sums[index]);
} else { } else {
sums[index] = formatNumber(sums[index]); sums[index] = formatNumber(sums[index]);
} }

Loading…
Cancel
Save