Commit 5a040c75 authored by huhaiqing's avatar huhaiqing

渠道修改

parent 24521e1a
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<!-- 对话框(添加 / 修改) --> <!-- 对话框(添加 / 修改) -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="始发地" prop="startWarehouseId"> <el-form-item label="始发地" prop="startWarehouseId">
<el-select v-model="form.startWarehouseId" placeholder="请选择始发地"> <el-select v-model="form.startWarehouseId" placeholder="请选择始发地">
<el-option v-for="item in exportWarehouseList" :label="item.titleZh" :value="item.id" :key="item.id"></el-option> <el-option v-for="item in exportWarehouseList" :label="item.titleZh" :value="item.id" :key="item.id"></el-option>
...@@ -143,7 +143,7 @@ import { getChannelList } from '@/api/ecw/channel'; ...@@ -143,7 +143,7 @@ import { getChannelList } from '@/api/ecw/channel';
import { getWarehouseList } from "@/api/ecw/warehouse" import { getWarehouseList } from "@/api/ecw/warehouse"
export default { export default {
name: "FutureBox", name: "indexFutureBox",
components: { components: {
}, },
data() { data() {
...@@ -187,7 +187,8 @@ export default { ...@@ -187,7 +187,8 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
}, },
warehouseList: [] warehouseList: [],
channelList: [],
}; };
}, },
computed: { computed: {
...@@ -224,6 +225,8 @@ export default { ...@@ -224,6 +225,8 @@ export default {
} }
}, },
created() { created() {
// 查询渠道
getChannelList().then((res) => (this.channelList = res.data));
this.transportTypes = this.getDictDatas( this.transportTypes = this.getDictDatas(
this.DICT_TYPE.ECW_TRANSPORT_TYPE this.DICT_TYPE.ECW_TRANSPORT_TYPE
).filter((item) => item.value == "1" || item.value == "2"); ).filter((item) => item.value == "1" || item.value == "2");
......
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