Commit 97291d02 authored by 邓春圆's avatar 邓春圆

佣金付款单去最新活率接口

parent bb8635ca
...@@ -474,6 +474,7 @@ import {getWarehouseList} from '@/api/ecw/warehouse' ...@@ -474,6 +474,7 @@ import {getWarehouseList} from '@/api/ecw/warehouse'
import WorkFlow from '@/components/WorkFlow/' import WorkFlow from '@/components/WorkFlow/'
import {getCustomer, getCustomerPage} from "@/api/ecw/customer"; import {getCustomer, getCustomerPage} from "@/api/ecw/customer";
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import {getExchangeRatePage} from "@/api/ecw/exchangeRate";
export default { export default {
name: "commission-requestFunds", name: "commission-requestFunds",
...@@ -515,10 +516,12 @@ export default { ...@@ -515,10 +516,12 @@ export default {
dialogVisible: false, dialogVisible: false,
interdict:false, interdict:false,
bankAccountList:[], bankAccountList:[],
rateList:[],
}; };
}, },
async created() { async created() {
await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list) await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
await getExchangeRatePage({page:1,rows: 100}).then(res => this.rateList = res.data.list)
getWarehouseList().then(res => this.warehouseList = res.data) getWarehouseList().then(res => this.warehouseList = res.data)
let that = this; let that = this;
if (that.$route.query.payableId && that.$route.query.payableId !== '0') { if (that.$route.query.payableId && that.$route.query.payableId !== '0') {
...@@ -742,8 +745,8 @@ export default { ...@@ -742,8 +745,8 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val.map(v => { this.multipleSelection = val.map(v => {
var rate = NP.divide(this.currencyList.find(vs => vs.id === v.currencyId).huilv, 100).toFixed(6) let p = this.rateList.find(i =>i.sourceCurrencyId === v.currencyId && i.targetCurrencyId === 3)
return Object.assign(v, {exchangeRate: rate}) return Object.assign(v, {exchangeRate: p.currencyRate})
}); });
}, },
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