|
|
@@ -1253,23 +1253,35 @@ export default {
|
|
|
this.allCRMBSum = 0;
|
|
|
this.allCUSDSum = 0;
|
|
|
this.allCSum = 0;
|
|
|
- let DSUM=0;
|
|
|
- let CSUM=0;
|
|
|
+ let DSUM = 0;
|
|
|
+ let CSUM = 0;
|
|
|
if (oldValue.length) {
|
|
|
+ // for (let e of oldValue) {
|
|
|
+ // if (e.dc == "D") {
|
|
|
+ // this.allDRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ // this.allDUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ // DSUM += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0) * e.currentStlExrate;
|
|
|
+ // }
|
|
|
+ // if (e.dc == "C") {
|
|
|
+ // this.allCRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ // this.allCUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ // CSUM += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0) * e.currentStlExrate;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
oldValue.forEach((e) => {
|
|
|
if (e.dc == "D") {
|
|
|
this.allDRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
this.allDUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
- DSUM += this.allDUSDSum * e.currentStlExrate;
|
|
|
+ DSUM += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0) * e.currentStlExrate;
|
|
|
}
|
|
|
if (e.dc == "C") {
|
|
|
this.allCRMBSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
this.allCUSDSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
- CSUM += this.allCUSDSum * e.currentStlExrate;
|
|
|
+ CSUM += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0) * e.currentStlExrate;
|
|
|
}
|
|
|
});
|
|
|
- this.allDSum=this.allDRMBSum+DSUM
|
|
|
- this.allCSum=this.allCRMBSum+CSUM
|
|
|
+ this.allDSum = this.allDRMBSum + DSUM;
|
|
|
+ this.allCSum = this.allCRMBSum + CSUM;
|
|
|
}
|
|
|
},
|
|
|
deep: true, // 深度监听
|