|
|
@@ -102,12 +102,12 @@
|
|
|
<el-tag type="success" style="margin-right: 2px; color: #000000">应付(USD):{{ amountCSubUsdSum2 | formatNumber }}</el-tag>
|
|
|
</template>
|
|
|
<template slot="page">
|
|
|
- <el-tag style="margin-right: 2px; color: #f56c6c">应收(CNY):{{ form.amountDr | formatNumber }}</el-tag>
|
|
|
- <el-tag style="margin-right: 2px; color: #f56c6c">应收(USD):{{ form.amountDrUsd | formatNumber }}</el-tag>
|
|
|
- <el-tag style="margin-right: 2px; color: #f56c6c">应收合计(CNY):{{ form.amountDrLoc | formatNumber }}</el-tag>
|
|
|
- <el-tag style="margin-right: 2px; color: #000000">应付(CNY):{{ form.amountCr | formatNumber }}</el-tag>
|
|
|
- <el-tag style="margin-right: 2px; color: #000000">应付(USD):{{ form.amountCrUsd | formatNumber }}</el-tag>
|
|
|
- <el-tag style="margin-right: 2px; color: #000000">应付合计(CNY):{{ form.amountCrLoc | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #f56c6c">应收(CNY):{{ allDRMBSum | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #f56c6c">应收(USD):{{ allDUSDSum | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #f56c6c">应收合计(CNY):{{ allDSum | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #000000">应付(CNY):{{ allCRMBSum | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #000000">应付(USD):{{ allCUSDSum | formatNumber }}</el-tag>
|
|
|
+ <el-tag style="margin-right: 2px; color: #000000">应付合计(CNY):{{ allCSum | formatNumber }}</el-tag>
|
|
|
</template>
|
|
|
<template slot="customSelected" slot-scope="{ row }">
|
|
|
<el-checkbox v-model="row.customSelected" @change="customSelection(row)"> </el-checkbox>
|
|
|
@@ -214,6 +214,12 @@ export default {
|
|
|
amountDSubUsdSum2: 0,
|
|
|
amountCSubSum2: 0,
|
|
|
amountCSubUsdSum2: 0,
|
|
|
+ allDRMBSum: 0,
|
|
|
+ allDUSDSum: 0,
|
|
|
+ allDSum: 0,
|
|
|
+ allCRMBSum: 0,
|
|
|
+ allCUSDSum: 0,
|
|
|
+ allCSum: 0,
|
|
|
rlaData: [],
|
|
|
rlaOption: {
|
|
|
header: false,
|
|
|
@@ -1187,17 +1193,34 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
watch: {
|
|
|
- // tableData: {
|
|
|
- // // 执行方法
|
|
|
- // handler(oldValue, newValue) {
|
|
|
- // if (this.initialState&&oldValue.length) {
|
|
|
- // this.initialState=false
|
|
|
- // this.refreshData();
|
|
|
- // }
|
|
|
- // },
|
|
|
- // deep: true, // 深度监听
|
|
|
- // immediate: true, // 第一次改变就执行
|
|
|
- // },
|
|
|
+ tableData: {
|
|
|
+ // 执行方法
|
|
|
+ handler(oldValue, newValue) {
|
|
|
+ this.allDRMBSum = 0;
|
|
|
+ this.allDUSDSum = 0;
|
|
|
+ this.allDSum = 0;
|
|
|
+ this.allCRMBSum = 0;
|
|
|
+ this.allCUSDSum = 0;
|
|
|
+ this.allCSum = 0;
|
|
|
+ console.log(oldValue)
|
|
|
+ if (oldValue.length) {
|
|
|
+ oldValue.forEach((e) => {
|
|
|
+ if (e.dc == "D") {
|
|
|
+ this.allDRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.allDUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ this.allDSum+=this.allDRMBSum+this.allDUSDSum*e.currentStlExrate
|
|
|
+ }
|
|
|
+ if (e.dc == "C") {
|
|
|
+ this.allCRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.allCUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ this.allCSum+=this.allCRMBSum+this.allCUSDSum*e.currentStlExrate
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ deep: true, // 深度监听
|
|
|
+ immediate: true, // 第一次改变就执行
|
|
|
+ },
|
|
|
selectionList: {
|
|
|
// 执行方法
|
|
|
handler(oldValue, newValue) {
|