|
@@ -238,8 +238,8 @@
|
|
|
this.$set(row,'amountCr',row.amountCr?Number(row.amountCr):0)
|
|
|
this.$set(row,'amountDr',row.amountDr?Number(row.amountDr):0)
|
|
|
|
|
|
- this.$set(row,'amountCrUsd',(row.amountCr * row.exrate).toFixed(2))
|
|
|
- this.$set(row,'amountDrUsd',(row.amountDr * row.exrate).toFixed(2))
|
|
|
+ this.$set(row,'amountCrUsd',(row.amountCr / row.exrate).toFixed(2))
|
|
|
+ this.$set(row,'amountDrUsd',(row.amountDr / row.exrate).toFixed(2))
|
|
|
}
|
|
|
},
|
|
|
// 外币的计算
|
|
@@ -254,8 +254,8 @@
|
|
|
this.$set(row,'amountCr',row.amountCrUsd?Number(row.amountCrUsd):0)
|
|
|
this.$set(row,'amountDr',row.amountDrUsd?Number(row.amountDrUsd):0)
|
|
|
|
|
|
- this.$set(row,'amountCr',(row.amountCrUsd / row.exrate).toFixed(2))
|
|
|
- this.$set(row,'amountDr',(row.amountDrUsd / row.exrate).toFixed(2))
|
|
|
+ this.$set(row,'amountCr',(row.amountCrUsd * row.exrate).toFixed(2))
|
|
|
+ this.$set(row,'amountDr',(row.amountDrUsd * row.exrate).toFixed(2))
|
|
|
},
|
|
|
// 获取科目类型数据
|
|
|
accountsListfun(code){
|
|
@@ -281,7 +281,9 @@
|
|
|
// 下拉回调
|
|
|
corpChange(value,name,row){
|
|
|
for(let item of this.accountData) {
|
|
|
+ console.log(item)
|
|
|
if (item.id == value) {
|
|
|
+ console.log(item,item.id)
|
|
|
this.$set(row,'accountId',item.id)
|
|
|
this.$set(row,'accountCode',item.code)
|
|
|
this.$set(row,'accountCnName',item.cnName)
|