Commit 08f6f95e authored by dcy's avatar dcy

Merge remote-tracking branch 'origin/dev' into dev

parents d4b1a4bd e02244d3
...@@ -40,8 +40,8 @@ ...@@ -40,8 +40,8 @@
clearable clearable
> >
<el-option <el-option
v-for="item in expoerCityList" v-for="item in exportWarehouseList"
:label="item.titleZh" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
></el-option> ></el-option>
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
clearable clearable
> >
<el-option <el-option
v-for="item in importCityList" v-for="item in importWarehouseList"
:label="item.titleZh" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
></el-option> ></el-option>
...@@ -228,6 +228,7 @@ import { getTradeCityList } from "@/api/ecw/region"; ...@@ -228,6 +228,7 @@ import { getTradeCityList } from "@/api/ecw/region";
import { getPayableList, deletePayable, updatePayable } from "@/api/ecw/financial" import { getPayableList, deletePayable, updatePayable } from "@/api/ecw/financial"
import { getSupplierPage } from "@/api/ecw/supplier"; import { getSupplierPage } from "@/api/ecw/supplier";
import { getCurrencyPage } from "@/api/ecw/currency"; import { getCurrencyPage } from "@/api/ecw/currency";
import {getWarehouseList} from '@/api/ecw/warehouse'
export default { export default {
name: "EcwFinancialPayable", name: "EcwFinancialPayable",
...@@ -253,7 +254,8 @@ export default { ...@@ -253,7 +254,8 @@ export default {
rows: 20, rows: 20,
}, },
allSupplier: [], allSupplier: [],
currencyList:[] currencyList:[],
warehouseList:[],
}; };
}, },
computed: { computed: {
...@@ -263,9 +265,17 @@ export default { ...@@ -263,9 +265,17 @@ export default {
importCityList() { importCityList() {
return this.tradeCityList.filter((item) => item.type == 1); return this.tradeCityList.filter((item) => item.type == 1);
}, },
exportWarehouseList(){
/* tradeType 1 进口,2出口,3进出口 */
return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3)
},
importWarehouseList(){
return this.warehouseList.filter(item => item.tradeType == 1 || item.tradeType == 3)
},
}, },
created() { created() {
let that = this; let that = this;
getWarehouseList().then(res => this.warehouseList = res.data)
getCurrencyPage(this.params).then(res => this.currencyList = res.data.list) getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
userList("salesman").then((res) => (that.creatorData = res.data)); userList("salesman").then((res) => (that.creatorData = res.data));
getTradeCityList().then((res) => (that.tradeCityList = res.data)); getTradeCityList().then((res) => (that.tradeCityList = res.data));
......
...@@ -39,29 +39,29 @@ ...@@ -39,29 +39,29 @@
class="card" class="card"
> >
<el-row> <el-row>
<el-form-item :label="$t('始发城市')"> <el-form-item :label="$t('始发')">
<el-select <el-select
v-model="queryParams.departureId" v-model="queryParams.departureId"
:placeholder="$t('请选择始发城市')" :placeholder="$t('请选择始发')"
clearable clearable
> >
<el-option <el-option
v-for="item in expoerCityList" v-for="item in exportWarehouseList"
:label="item.titleZh" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的城市')"> <el-form-item :label="$t('目的')">
<el-select <el-select
v-model="queryParams.objectiveId" v-model="queryParams.objectiveId"
:placeholder="$t('请选择目的城市')" :placeholder="$t('请选择目的')"
clearable clearable
> >
<el-option <el-option
v-for="item in importCityList" v-for="item in importWarehouseList"
:label="item.titleZh" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
:key="item.id" :key="item.id"
></el-option> ></el-option>
...@@ -256,6 +256,7 @@ import CustomerSelector from "@/components/CustomerSelector"; ...@@ -256,6 +256,7 @@ import CustomerSelector from "@/components/CustomerSelector";
import { getTradeCityList } from "@/api/ecw/region"; import { getTradeCityList } from "@/api/ecw/region";
import { getReceivableList } from "@/api/ecw/financial"; import { getReceivableList } from "@/api/ecw/financial";
import { getCurrencyPage } from "@/api/ecw/currency"; import { getCurrencyPage } from "@/api/ecw/currency";
import {getWarehouseList} from '@/api/ecw/warehouse'
export default { export default {
name: "EcwFinancialReceivable", name: "EcwFinancialReceivable",
...@@ -285,7 +286,8 @@ export default { ...@@ -285,7 +286,8 @@ export default {
page: 1, page: 1,
rows: 20, rows: 20,
}, },
currencyList:[] currencyList:[],
warehouseList:[],
}; };
}, },
created() { created() {
...@@ -294,6 +296,7 @@ export default { ...@@ -294,6 +296,7 @@ export default {
userList("salesman").then((res) => (that.creatorData = res.data)); userList("salesman").then((res) => (that.creatorData = res.data));
getTradeCityList().then((res) => (that.tradeCityList = res.data)); getTradeCityList().then((res) => (that.tradeCityList = res.data));
this.getList(); this.getList();
getWarehouseList().then(res => this.warehouseList = res.data)
}, },
computed: { computed: {
expoerCityList() { expoerCityList() {
...@@ -302,6 +305,13 @@ export default { ...@@ -302,6 +305,13 @@ export default {
importCityList() { importCityList() {
return this.tradeCityList.filter((item) => item.type == 1); return this.tradeCityList.filter((item) => item.type == 1);
}, },
exportWarehouseList(){
/* tradeType 1 进口,2出口,3进出口 */
return this.warehouseList.filter(item => item.tradeType == 2 || item.tradeType == 3)
},
importWarehouseList(){
return this.warehouseList.filter(item => item.tradeType == 1 || item.tradeType == 3)
},
}, },
methods: { methods: {
getCurrencyLabel(id){ getCurrencyLabel(id){
......
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