1.2.00前端:

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

@ -450,12 +450,16 @@ const handleDelete = async (row?: budgetInfoVO) => {
const handleExport = (row?: budgetInfoVO) => {
const budgetId = row.budgetId;
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(
'oa/erp/budgetInfo/exportBudgetInfo',
{
budgetId: budgetId
},
projectName + `_${new Date().getTime()}.xlsx`
fileNamePrefix + projectName + `(` + projectCode + `)` + `.xlsx`
);
};

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

Loading…
Cancel
Save