Commit 84a521f2 authored by dragondean@qq.com's avatar dragondean@qq.com

订单的bug

parent 7e5dd92f
......@@ -191,6 +191,11 @@
</template>
</template>
</el-table-column>
<el-table-column prop="" :label="$t('快递单号')">
<template slot-scope="{row}">
{{ row.expressNo }}
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane :label="$t('订单动态')" name="second">
......
......@@ -745,12 +745,16 @@ export default {
this.$set(this.form, 'ccIds', arr.join(","))
},
// 始发地
'form.departureId'(){
'form.departureId'(departureId, oldDepartureId){
this.getOpenedRouterList()
// 修改始发地后需要重新选择路线
if(oldDepartureId && oldDepartureId != departureId)this.$set(this.form, 'lineId', null)
},
// 目的地
'form.objectiveId'(){
'form.objectiveId'(objectiveId, oldObjectiveId){
this.getOpenedRouterList()
// 修改目的地后需要重新选择路线
if(oldObjectiveId && oldObjectiveId != objectiveId)this.$set(this.form, 'lineId', null)
},
'form.transportId'(transportId, oldTransportId){
// 海运拼柜给表单默认值
......@@ -821,7 +825,9 @@ export default {
}, */
// 选择的路线变化后,需要判断是否开通了对应的服务,如果没开通需要取消对应的服务选择
selectedRouter(val){
if(!val) return
if(!val){
return
}
['1', '4'].forEach(service => {
if(this.routeOtherServices.indexOf(service) < 0 && this.form.type.indexOf(service) > -1){
this.form.type.splice(this.form.type.findIndex(item => item == service), 1)
......@@ -838,9 +844,7 @@ export default {
created() {
defaultFormData = Object.assign({}, this.form)
if(this.$route.query.id){
this.getOrder()
}else this.addProduct()
getProductAttrList().then(res => this.productAttrList = res.data)
getChannelList().then(res => this.channelList = res.data)
......@@ -856,6 +860,10 @@ export default {
})
})
if(this.$route.query.id){
this.getOrder()
}else this.addProduct()
this.$nextTick(() => {
this.initing = false
})
......
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