Commit 3611021c authored by 我在何方's avatar 我在何方

收款单bug修复

parent 7ac3677f
This diff is collapsed.
...@@ -548,6 +548,7 @@ export default { ...@@ -548,6 +548,7 @@ export default {
}); });
}, },
getSummaries(param) { getSummaries(param) {
console.log(param)
const { columns, data } = param; const { columns, data } = param;
const sums = new Array(columns.length).map(v => ''); const sums = new Array(columns.length).map(v => '');
const index = sums.length - 1 const index = sums.length - 1
...@@ -654,9 +655,8 @@ export default { ...@@ -654,9 +655,8 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val.map(v => { this.multipleSelection = val.map(v => {
if(v.currencyId === 1) return Object.assign(v, { exchangeRate: this.UStoRMB() }) var rate = NP.divide(this.currencyList.find(vs => vs.id === v.currencyId).huilv, 100).toFixed(6)
if(v.currencyId === 2) return Object.assign(v, { exchangeRate: 1 }) return Object.assign(v, { exchangeRate: rate })
if(v.currencyId === 3) return Object.assign(v, { exchangeRate: this.NANtoRMB() })
}); });
}, },
hiddenDialog() { hiddenDialog() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment