Commit b4544817 authored by wanglianghe's avatar wanglianghe

海空联运显示运输方式

parent 086d65e5
...@@ -135,6 +135,12 @@ ...@@ -135,6 +135,12 @@
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="运输方式" prop="transportType">
<el-radio-group v-model="form.transportType">
<el-radio v-for="dict in transportTypes" :key="dict.value" :label="dict.value">{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="出货渠道" prop="shippingChannelId"> <el-form-item label="出货渠道" prop="shippingChannelId">
<el-select v-model="form.shippingChannelId" placeholder="请选择出货渠道"> <el-select v-model="form.shippingChannelId" placeholder="请选择出货渠道">
<el-option v-for="item in channelList" :label="item.nameZh" :value="item.channelId" :key="item.channelId"></el-option> <el-option v-for="item in channelList" :label="item.nameZh" :value="item.channelId" :key="item.channelId"></el-option>
...@@ -221,7 +227,7 @@ ...@@ -221,7 +227,7 @@
channelList:[], channelList:[],
warehouseList: [], warehouseList: [],
// 表单参数 // 表单参数
form: {}, form: {transportType:"4"},
// 表单校验 // 表单校验
rules: { rules: {
shippingChannelId: [{ required: true, message: "出货渠道不能为空", trigger: "blur" }], shippingChannelId: [{ required: true, message: "出货渠道不能为空", trigger: "blur" }],
...@@ -266,6 +272,9 @@ ...@@ -266,6 +272,9 @@
}, },
created() { created() {
this.transportTypes = this.getDictDatas(
this.DICT_TYPE.ECW_TRANSPORT_TYPE
).filter((item) => item.value == "4");
getWarehouseList().then(res => this.warehouseList = res.data); getWarehouseList().then(res => this.warehouseList = res.data);
getCabinetPage(null).then(response => { getCabinetPage(null).then(response => {
this.cabinetList = response.data.list; this.cabinetList = response.data.list;
...@@ -305,7 +314,7 @@ ...@@ -305,7 +314,7 @@
cabinetId: undefined, cabinetId: undefined,
startWarehouseId: undefined, startWarehouseId: undefined,
destWarehouseId: undefined, destWarehouseId: undefined,
transportType: undefined, transportType: "4",
}; };
this.resetForm("form"); this.resetForm("form");
}, },
......
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