Commit 69ebabe8 authored by dcy's avatar dcy

重泡货的始发仓修改为始发地

parent 738b4b2a
......@@ -93,7 +93,7 @@
<el-form-item label="始发地" prop="departureId">
<el-select v-model="form.departureId" placeholder="请选择始发地">
<el-option label="全部" :value="0"></el-option>
<el-option v-for="(item) in warehouseList" :label="item.titleZh" :value="item.id" :key="item.id"></el-option>
<el-option v-for="(item) in expoerCityList" :label="item.titleZh" :value="item.id" :key="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item label="目的地" prop="objectiveIds">
......@@ -171,7 +171,8 @@ export default {
rules: {
},
importCityList: [],
warehouseList: []
warehouseList: [],
tradeCityList:[]
};
},
created() {
......@@ -182,6 +183,12 @@ export default {
getWarehouseList().then(r => {
this.warehouseList = r.data
})
getTradeCityList().then(res => this.tradeCityList = res.data)
},
computed:{
expoerCityList() {
return this.tradeCityList.filter(item => item.type == 2)
},
},
methods: {
handleStatusChange(row){
......
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