update code

dev
lijun 2024-09-24 23:08:38 +08:00
parent 13684e7b8c
commit ee79050d7a
3 changed files with 35 additions and 15 deletions

View File

@ -116,6 +116,7 @@ const sumForBsEnginAuditing=data=>{
data4:getValue(4), data4:getValue(4),
data5:getValue(5), data5:getValue(5),
data6:getValue(6), data6:getValue(6),
data7:getValue(7),
}; };
obj.percent=obj.data2==0?0:obj.data3*100.0/obj.data2; obj.percent=obj.data2==0?0:obj.data3*100.0/obj.data2;
if(obj.percent>100){ if(obj.percent>100){
@ -139,21 +140,28 @@ const selectForBigEnginList=data=>{
names.push(k); names.push(k);
let sum1=0; let sum1=0;
let sum2=0; let sum2=0;
let sumTotal=0;
let sum3=0; let sum3=0;
v.forEach(it=>{ v.forEach(it=>{
it.forEach(item=>{ it.forEach(item=>{
item.money=item.money||0;
item.money2=item.money2||0;
item.money3=item.money3||0;
item.money/=10000.0; item.money/=10000.0;
item.money2/=10000.0; item.money2/=10000.0;
item.money3=item.money-item.money2; item.money3/=10000.0;
item.moneyTotal=item.money-item.money2;
sum1+=item.money; sum1+=item.money;
sum2+=item.money2; sum2+=item.money2;
sum3+=item.money3; sum3+=item.money3;
sumTotal+=item.moneyTotal;
}) })
}); });
v.push({ v.push({
sum1:sum1, sum1:sum1,
sum2:sum2, sum2:sum2,
sum3:sum3 sum3:sum3,
sumTotal:sumTotal
}); });
} }
reslove({ reslove({

View File

@ -97,12 +97,18 @@
</el-col> </el-col>
<el-col :span="12" style="margin-top:40px;"> <el-col :span="12" style="margin-top:40px;">
<div>
<div class="warning-info-title"> <div class="warning-info-title">
<div class="active">挂账总金额(万元)</div> <div class="active">挂账总金额(万元)</div>
</div> </div>
<people-number :number="((sumCost.data6 * 1.0 || 0).toFixed(2)) || '0.00'" unit=""></people-number> <people-number :number="((sumCost.data6 * 1.0 || 0).toFixed(2)) || '0.00'" unit=""></people-number>
</div>
<div>
<div class="warning-info-title">
<div class="active">农民工专户支付金额(万元)</div>
</div>
<people-number :number="((sumCost.data7 * 1.0 || 0).toFixed(2)) || '0.00'" unit=""></people-number>
</div>
</el-col> </el-col>
</el-row> </el-row>
<div style="padding:0px 10px;height: calc(100% - 440px);position: relative;"> <div style="padding:0px 10px;height: calc(100% - 440px);position: relative;">
@ -116,18 +122,20 @@
<div class="prj-name">{{ it }}</div> <div class="prj-name">{{ it }}</div>
<table class="sum-table"> <table class="sum-table">
<tr> <tr>
<th>付款项</th> <th width="60">付款项</th>
<th>付款明细</th> <th width="80">付款明细</th>
<th>申请时间</th> <th width="100">申请时间</th>
<th>申请金额(万元)</th> <th>申请金额(万元)</th>
<th>已付款金额(万元)</th> <th>已付款金额(万元)</th>
<th>挂账金额(万元)</th> <th>含农民工专户支付金额(万元)</th>
<th>挂账金额(万元)</th>
</tr> </tr>
<tr style="background-color: #00aaff38;"> <tr style="background-color: #00aaff38;">
<td colspan="3" align="center">合计</td> <td colspan="3" align="center">合计</td>
<td>{{ (sumList.data[it][2].sum1 * 1.0).toFixed(2) }}</td> <td>{{ (sumList.data[it][2].sum1 * 1.0).toFixed(2) }}</td>
<td>{{ (sumList.data[it][2].sum2 * 1.0).toFixed(2) }}</td> <td>{{ (sumList.data[it][2].sum2 * 1.0).toFixed(2) }}</td>
<td>{{ (sumList.data[it][2].sum3 * 1.0).toFixed(2) }}</td> <td>{{ (sumList.data[it][2].sum3 * 1.0).toFixed(2) }}</td>
<td>{{ (sumList.data[it][2].sumTotal * 1.0).toFixed(2) }}</td>
</tr> </tr>
<template v-if="sumList.data[it][0].length > 0"> <template v-if="sumList.data[it][0].length > 0">
<tr v-for="(row, index) in sumList.data[it][0]" :key="'a-' + idx + 'b-' + index"> <tr v-for="(row, index) in sumList.data[it][0]" :key="'a-' + idx + 'b-' + index">
@ -135,14 +143,15 @@
<td>{{ index + 1 }}</td> <td>{{ index + 1 }}</td>
<td>{{ row.date1 | formatDate }}</td> <td>{{ row.date1 | formatDate }}</td>
<td>{{ (row.money * 1.0).toFixed(2) }}</td> <td>{{ (row.money * 1.0).toFixed(2) }}</td>
<td>{{ (row.money2 * 1.0).toFixed(2) }}</td> <td>{{ (row.money2 * 1.0).toFixed(2) }}</td>
<td>{{ (row.money3 * 1.0).toFixed(2) }}</td> <td>{{ (row.money3 * 1.0).toFixed(2) }}</td>
<td>{{ (row.moneyTotal * 1.0).toFixed(2) }}</td>
</tr> </tr>
</template> </template>
<template v-else> <template v-else>
<tr> <tr>
<td>安措费</td> <td>安措费</td>
<td colspan="5"> <td colspan="6">
<div style="text-align: center">暂无数据</div> <div style="text-align: center">暂无数据</div>
</td> </td>
</tr> </tr>
@ -156,13 +165,14 @@
<td>{{ row.date1 | formatDate }}</td> <td>{{ row.date1 | formatDate }}</td>
<td>{{ (row.money * 1.0).toFixed(2) }}</td> <td>{{ (row.money * 1.0).toFixed(2) }}</td>
<td>{{ (row.money2 * 1.0).toFixed(2) }}</td> <td>{{ (row.money2 * 1.0).toFixed(2) }}</td>
<td>{{ (row.money3 * 1.0).toFixed(2) }}</td> <td></td>
<td>{{ (row.moneyTotal * 1.0).toFixed(2) }}</td>
</tr> </tr>
</template> </template>
<template v-else> <template v-else>
<tr> <tr>
<td>进度款</td> <td>进度款</td>
<td colspan="5"> <td colspan="6">
<div style="text-align: center">暂无数据</div> <div style="text-align: center">暂无数据</div>
</td> </td>
</tr> </tr>
@ -611,9 +621,11 @@ export default {
.sum-table { .sum-table {
border-collapse: collapse; border-collapse: collapse;
font-size: 12px;
th { th {
color: #409eff; color: #409eff;
font-size: 14px;
font-weight: bold;
} }
td, td,

View File

@ -202,7 +202,7 @@
<template slot-scope="{row}"> <template slot-scope="{row}">
{{ (row.money||0).toFixed(2) }} {{ (row.money||0).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>