明树Git Lab

Commit 9fe91ebb authored by zhanghan's avatar zhanghan

1

parent 982fe451
Pipeline #109120 passed with stage
in 21 seconds
......@@ -780,10 +780,11 @@
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="债权融资(万元)">
<el-form-item label="年度计划总额(万元)">
<el-input
v-model="formData.zqRz"
v-model="formData.ndJhZe"
:min="0"
:precision="2"
controls-position="right"
......@@ -793,9 +794,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="年度计划总额(万元)">
<el-form-item label="资本金-能建方(万元)">
<el-input
v-model="formData.ndJhZe"
v-model="formData.zbjPtF"
:min="0"
:precision="2"
controls-position="right"
......@@ -805,9 +806,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="回款再投入(万元)">
<el-form-item label="资本金-外部股东(万元)">
<el-input
v-model="formData.hkZtr"
v-model="formData.zbjWbGd"
:min="0"
:precision="2"
controls-position="right"
......@@ -817,9 +818,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="资本金-配套方(万元)">
<el-form-item label="债权融资(万元)">
<el-input
v-model="formData.zbjPtF"
v-model="formData.zqRz"
:min="0"
:precision="2"
controls-position="right"
......@@ -829,9 +830,9 @@
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="其他(万元)">
<el-form-item label="回款再投入(万元)">
<el-input
v-model="formData.qt"
v-model="formData.hkZtr"
:min="0"
:precision="2"
controls-position="right"
......@@ -840,10 +841,11 @@
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="资本金-外部股东(万元)">
<el-form-item label="其他(万元)">
<el-input
v-model="formData.zbjWbGd"
v-model="formData.qt"
:min="0"
:precision="2"
controls-position="right"
......@@ -852,6 +854,7 @@
/>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="我方仅指本单位出资(万元)">
<el-input
......
......@@ -4,6 +4,13 @@
<!-- 左侧:数据驱动的原生表格(绑定右侧行合计值) -->
<div class="left-table">
<table class="investment-table">
<!-- 表头行 -->
<thead>
<tr style="background: #f5f7fa">
<td class="first-col" colspan="5">指标名称</td>
<td>合计</td>
</tr>
</thead>
<tbody>
<!-- 计划资金来源(全口径)模块 -->
<tr>
......@@ -12,9 +19,9 @@
<!-- 调整rowspan:从16改为26 -->
<td rowspan="16" class="second-col">计划投资完成及资金来源</td>
<td rowspan="9" class="third-col">计划资金来源(全口径)</td>
<td style="height: 48px"></td>
<td style="height: 48px"></td>
<td style="height: 48px">合计</td>
<td style="height: 48px"></td>
<td style="height: 48px">{{ getAllRowsTotal() }}万元</td>
</tr>
<tr>
<td rowspan="3">资本金</td>
......@@ -306,6 +313,15 @@ const handleChange = (row) => {
emitDataChange(tableData.value); // 完整emit所有字段
};
// 9. 计算整列合计 - 所有行的合计列相加
const getAllRowsTotal = () => {
if (!tableData.value || tableData.value.length === 0) return "0.00";
const total = tableData.value.reduce((sum, row) => {
return sum + (Number(row.total) || 0);
}, 0);
return total.toFixed(2);
};
// 合计行样式(保持不变)
const tableCellStyle = ({ row }) =>
row?.isTotal ? { background: "#f5f7fa", fontWeight: "bold" } : {};
......@@ -348,6 +364,11 @@ onMounted(() => {
word-break: break-all;
box-sizing: border-box;
}
.investment-table thead td {
height: 48px;
font-weight: bold;
background: #f5f7fa;
}
.first-col {
font-weight: bold;
background-color: #f5f7fa;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment