Commit 2a83c1f3 authored by dragondean@qq.com's avatar dragondean@qq.com

选择线路后更新渠道

parent 579b81ab
......@@ -975,7 +975,7 @@ export default {
'form.consignorPhone'(){
if(this.form.lineId) this.getOfferData()
},
'form.lineId'(lineId){
async 'form.lineId'(lineId){
let router = this.routerList.find(item => item.id == lineId)
if(!router){
return
......@@ -983,7 +983,7 @@ export default {
this.$set(this.form, 'departureId', router.startCityId)
this.$set(this.form, 'objectiveId', router.destCityId)
this.$set(this.form, 'transportId', router.transportType)
await this.getChannelList()
this.calculationPrice()
this.$nextTick(() => {
// 如果开启了默认送货上门,则默认选择送货上门,2是送货上门,10是默认送货上门
......@@ -1142,7 +1142,8 @@ export default {
},
async getChannelList(){
let query = {
cityId: this.form.objectiveId
cityId: this.form.objectiveId,
lineId: this.form.lineId
}
this.channelList = (await getChannelList(query)).data
},
......
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