更新
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="请款时间" prop="。请款时间" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请款时间 }}
|
||||
{{ scope.row.请款时间 ? scope.row.请款时间.split(' ')[0] : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款人" prop="姓名" align="center" min-width="80">
|
||||
@@ -227,7 +227,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="合同总额" align="center" width="80" prop="合同总额">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.合同总额 }}
|
||||
{{ scope.row.合同总额 ? parseInt(scope.row.合同总额 * 100)/100 : '-' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="已付金额" align="center" width="80" prop="已付金额">
|
||||
@@ -242,7 +242,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="请款金额" align="center" min-width="120" prop="请款金额">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number :precision="2" :max="scope.row.合同总额 - scope.row.已付金额 - scope.row.申请中金额" :disabled="(scope.row.合同总额 - scope.row.已付金额 - scope.row.申请中金额) === 0" v-model="scope.row.请款金额" size="mini" controls-position="right" style="width: 100%;"/>
|
||||
<el-input-number :precision="2" :max="scope.row.合同总额 - scope.row.已付金额 - scope.row.申请中金额" :disabled="(scope.row.合同总额 - scope.row.已付金额 - scope.row.申请中金额) === 0" :min="0" v-model="scope.row.请款金额" size="mini" controls-position="right" style="width: 100%;"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -468,7 +468,8 @@ export default {
|
||||
})
|
||||
this.tableData01.map(v => {
|
||||
this.$set(v, '请款金额', 0)
|
||||
v.请款金额 = v.合同总额 - v.已付金额 - v.申请中金额
|
||||
console.log(v.合同总额, v.已付金额, v.申请中金额)
|
||||
v.请款金额 = v.合同总额 - v.已付金额
|
||||
return v
|
||||
})
|
||||
})
|
||||
@@ -488,6 +489,8 @@ export default {
|
||||
this.sumGroup = []
|
||||
console.log(val)
|
||||
for (let i = 0; i < val.length; i++) {
|
||||
console.log(val[i].请款金额)
|
||||
console.log(parseFloat(val[i].请款金额), 123)
|
||||
this.SUM += parseFloat(val[i].请款金额)
|
||||
this.contractGroup.push(val[i].离线合同流水号)
|
||||
this.sumGroup.push(val[i].请款金额)
|
||||
|
||||
Reference in New Issue
Block a user