Commit 4bf6caa7 authored by 吴春's avatar 吴春

11

parent 27063e94
...@@ -250,8 +250,11 @@ ...@@ -250,8 +250,11 @@
<img v-if="item.ShowBusImage" :src="item.ShowBusImage" style="width:200px;height:150px;" /> <img v-if="item.ShowBusImage" :src="item.ShowBusImage" style="width:200px;height:150px;" />
<img v-else src="../../assets/img/suplier.jpg" style="width:200px;height:150px;" /> <img v-else src="../../assets/img/suplier.jpg" style="width:200px;height:150px;" />
</td> </td>
<td> <td style="vertical-align: top;">
{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}} <div style="font-size: 14px; color: #333; margin-bottom: 5px;">{{getArea(item.AreaType)}}- {{getBusTypeStr(item.BusType)}}</div>
<template v-if="item.ProvinceNameList&&item.ProvinceNameList.length>0">
<div style="font-size: 13px; color: #666; padding-top: 5px;">{{item.ProvinceNameList.join(",")}}</div>
</template>
</td> </td>
<td> <td>
{{item.UseNum}} {{item.UseNum}}
...@@ -384,10 +387,20 @@ ...@@ -384,10 +387,20 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5">
<el-form-item label="省份">
<el-select v-model="addMsg.ProvinceIdList" multiple filterable :placeholder="$t('hotel.hotel_province')"
clearable>
<el-option :key="0" :value="0" :label="$t('pub.pleaseSel')"></el-option>
<el-option v-for="item in provinceList" :key="item.ID" :label="item.Name" :value="item.ID"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item :label="$t('ground.busType')" prop="BusType"> <el-form-item :label="$t('ground.busType')" prop="BusType">
<el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="addMsg.BusType"> <el-select filterable :placeholder="$t('pub.pleaseSel')" v-model="addMsg.BusType">
<el-option v-for="item in BusTypeList" :key="item.Id" :label="item.Name+`(`+item.SeatNum+`座)`" :value="item.Id"></el-option> <el-option v-for="item in BusTypeList" :key="item.Id" :label="item.Name+`(`+item.SeatNum+`座)`"
:value="item.Id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -519,10 +532,11 @@ ...@@ -519,10 +532,11 @@
BusTypeList: "", BusTypeList: "",
selectDefauleValue: 0, selectDefauleValue: 0,
AreaList: [], AreaList: [],
provinceList: [], //省份列表
currencyTypeList: [], currencyTypeList: [],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 18 pageSize: 10
}, },
//表单json //表单json
addMsg: { addMsg: {
...@@ -545,8 +559,10 @@ ...@@ -545,8 +559,10 @@
BusImage: '', //车辆图片 BusImage: '', //车辆图片
ShowBusImage: "", ShowBusImage: "",
KMPrice: 0, //公里价格 KMPrice: 0, //公里价格
BusNumber:"",//车牌号 BusNumber: "", //车牌号
ProvinceIdList: [], //省份
}, },
userinfo: {},
//表单验证 //表单验证
rules: { rules: {
AreaType: [{ AreaType: [{
...@@ -790,7 +806,8 @@ ...@@ -790,7 +806,8 @@
AllDayChaDaiFee: 0, AllDayChaDaiFee: 0,
PickUpChaDaiFee: 0, PickUpChaDaiFee: 0,
BusImage: '', BusImage: '',
KMPrice: 0 KMPrice: 0,
ProvinceIdList: [],
}; };
}, },
submitForm(addMsg) { submitForm(addMsg) {
...@@ -825,13 +842,39 @@ ...@@ -825,13 +842,39 @@
null null
); );
}); });
},
getProvinceList(countryId) {
//根据省份获取城市
this.provinceList = [];
let msg = {
CodeLevel: 2,
ParentID: 0
};
if (countryId && countryId > 0) {
msg.ParentID = countryId;
} }
this.apipost(
"dict_get_Destination_GetCityExtList",
msg,
res => {
this.provinceList = res.data.data;
},
);
},
},
created() {
this.userinfo = this.getLocalStorage();
}, },
mounted() { mounted() {
this.initData(); this.initData();
this.getAreaList(); this.getAreaList();
this.getCurrencyType(); this.getCurrencyType();
this.getBusTypeList(); this.getBusTypeList();
if (this.userinfo && this.userinfo.RB_Group_id == 2) {
this.getProvinceList(651, 1);
} else {
this.getProvinceList(0, 1);
}
} }
}; };
......
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