Commit 3f15ef68 authored by 我在何方's avatar 我在何方

收款单修复

parent f6a5e5df
......@@ -419,7 +419,7 @@
label-width="80px"
>
<el-row>
<el-form-item :label="$t('始发城市')">
<el-form-item :label="$t('始发')">
<el-select
v-model="queryParams.departureId"
:placeholder="$t('请选择始发地')"
......@@ -432,7 +432,7 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('目的城市')">
<el-form-item :label="$t('目的')">
<el-select
v-model="queryParams.objectiveId"
:placeholder="$t('请选择始发地')"
......@@ -666,6 +666,7 @@ import { getCurrencyPage } from "@/api/ecw/currency";
import ret from "bluebird/js/release/util";
import dayjs from "dayjs";
import { getUserProfile } from "@/api/system/user";
import {getWarehouseList} from '@/api/ecw/warehouse'
export default {
name: "CreatCollection",
......@@ -717,6 +718,7 @@ export default {
selectListRow: {},
selectListIndex: 0,
flag: false,
warehouseList:[]
};
},
async created() {
......@@ -725,7 +727,7 @@ export default {
})
// 获取汇率
await getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
getWarehouseList().then(res => this.warehouseList = res.data)
let that = this;
if (that.$route.query.id) {
this.flag = true
......@@ -816,10 +818,12 @@ export default {
},
computed: {
expoerCityList() {
return this.tradeCityList.filter((item) => item.type == 2);
// return this.tradeCityList.filter((item) => item.type == 2);
return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3)
},
importCityList() {
return this.tradeCityList.filter((item) => item.type == 1);
// return this.tradeCityList.filter((item) => item.type == 1);
return this.warehouseList.filter(item => item.tradeType == 1 || item.tradeType == 3)
},
showCurrencyId() {
let fieldList = [];
......
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