fix : 审批记录样式优化, 上传费用,新增分摊输入框宽度固定

This commit is contained in:
2024-06-20 16:55:15 +08:00
parent 57f27c2b84
commit a6476c359d
7 changed files with 118 additions and 78 deletions

View File

@@ -18,7 +18,8 @@
</el-table-column>
</template>
<template v-else>
<template v-if="column.prop === 'totalSeparation' || column.prop === 'totalSeparationCost'">
<template
v-if="(column.prop === 'totalSeparation' || column.prop === 'totalSeparationCost') && (tableData.length- 1) !== scope.$index">
{{ getTotalSeparation(scope.row, column.prop) }}
</template>
<template v-else>
@@ -92,7 +93,7 @@ const getTotalSeparation = (row, prop) => {
}
}
if (totalSeparation !== 0) {
return totalSeparation;
return totalSeparation.toFixed(2);
} else {
return "/"
}
@@ -165,6 +166,6 @@ const exportTable = () => {
if (!$table) {
$table = $e
}
exportExcel($table, tableData.value[0], "四川省国有资产经营投资管理有限责任公司科技创新项目人工成本分摊明细表")
exportExcel($table, (5 + (Object.keys(tableData.value[0]).length - 5) * 5), "四川省国有资产经营投资管理有限责任公司科技创新项目人工成本分摊明细表")
}
</script>