|
@@ -46,6 +46,7 @@
|
|
|
:buttonIf="false"
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'code',value:'id'}"
|
|
:forParameter="{key:'id',label:'code',value:'id'}"
|
|
|
@corpFocus="accountsListfun"
|
|
@corpFocus="accountsListfun"
|
|
|
|
|
+ @remoteMethod="accountsListfun"
|
|
|
@corpChange="corpChange($event,'accountId',row)">
|
|
@corpChange="corpChange($event,'accountId',row)">
|
|
|
</search-query>
|
|
</search-query>
|
|
|
<el-tooltip class="item" effect="dark" content="修改" placement="top">
|
|
<el-tooltip class="item" effect="dark" content="修改" placement="top">
|
|
@@ -218,7 +219,7 @@
|
|
|
});
|
|
});
|
|
|
return sums;
|
|
return sums;
|
|
|
},
|
|
},
|
|
|
- // 借方/贷方
|
|
|
|
|
|
|
+ // 借方/贷方 本币的计算
|
|
|
amountBlur(row,name){
|
|
amountBlur(row,name){
|
|
|
if (name == 'D') {
|
|
if (name == 'D') {
|
|
|
this.$set(row,'amountCr',0)
|
|
this.$set(row,'amountCr',0)
|
|
@@ -236,6 +237,7 @@
|
|
|
this.$set(row,'exrate',row.exrate?Number(row.exrate):0)
|
|
this.$set(row,'exrate',row.exrate?Number(row.exrate):0)
|
|
|
this.$set(row,'amountCr',row.amountCr?Number(row.amountCr):0)
|
|
this.$set(row,'amountCr',row.amountCr?Number(row.amountCr):0)
|
|
|
this.$set(row,'amountDr',row.amountDr?Number(row.amountDr):0)
|
|
this.$set(row,'amountDr',row.amountDr?Number(row.amountDr):0)
|
|
|
|
|
+
|
|
|
this.$set(row,'amountCrUsd',(row.amountCr * row.exrate).toFixed(2))
|
|
this.$set(row,'amountCrUsd',(row.amountCr * row.exrate).toFixed(2))
|
|
|
this.$set(row,'amountDrUsd',(row.amountDr * row.exrate).toFixed(2))
|
|
this.$set(row,'amountDrUsd',(row.amountDr * row.exrate).toFixed(2))
|
|
|
}
|
|
}
|
|
@@ -256,8 +258,8 @@
|
|
|
this.$set(row,'amountDr',(row.amountDrUsd / row.exrate).toFixed(2))
|
|
this.$set(row,'amountDr',(row.amountDrUsd / row.exrate).toFixed(2))
|
|
|
},
|
|
},
|
|
|
// 获取科目类型数据
|
|
// 获取科目类型数据
|
|
|
- accountsListfun(){
|
|
|
|
|
- accountsList(1,10,).then(res=>{
|
|
|
|
|
|
|
+ accountsListfun(code){
|
|
|
|
|
+ accountsList(1,10,{code}).then(res=>{
|
|
|
this.accountData = res.data.data.records
|
|
this.accountData = res.data.data.records
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|