Commit 41a7bf41 authored by 我在何方's avatar 我在何方

不可出渠道异常出货渠道必填

parent b3d1ff02
...@@ -1261,7 +1261,11 @@ ...@@ -1261,7 +1261,11 @@
getOrder(this.orderId).then(response => { getOrder(this.orderId).then(response => {
this.orderData = response.data this.orderData = response.data
if(this.orderData.channelId!=0){ if(this.orderData.channelId!=0){
this.handlerParams.channelId = this.orderData.channelId this.channelList.map(v=>{
if(v.channelId==this.orderData.channelId){
this.handlerParams.channelId = this.orderData.channelId
}
})
} }
this.handlerParams.lineId = this.orderData.lineId this.handlerParams.lineId = this.orderData.lineId
...@@ -1403,11 +1407,16 @@ ...@@ -1403,11 +1407,16 @@
return return
} }
} }
if((this.orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&this.handlerParams.orderExceptionHandlerResult=='change_channel')||(this.orderExceptionData.orderExceptionType=='channel_exception'&&this.handlerParams.orderExceptionHandlerResult=='set_shipment_channel')){ if((this.orderExceptionData.orderExceptionType=='not_shipping_channel_exception'&&this.handlerParams.orderExceptionHandlerResult=='change_channel')||(this.orderExceptionData.orderExceptionType=='channel_exception'&&this.handlerParams.orderExceptionHandlerResult=='set_shipment_channel')){
if(this.handlerParams.channelId==0){ if(!this.handlerParams.channelId||this.handlerParams.channelId==0){
this.$modal.msgError(this.$t('请选择出货渠道')); this.$modal.msgError(this.$t('请选择出货渠道'));
return return
} }
if(!this.handlerParams.lineId||this.handlerParams.lineId==0){
this.$modal.msgError(this.$t('请选择线路'));
return
}
} }
if(['channel_packaging_overweight_exception','overweight_exception'].indexOf(this.orderExceptionData.orderExceptionType)>-1&&this.handlerParams.orderExceptionHandlerResult=='update_weight_limit'){ if(['channel_packaging_overweight_exception','overweight_exception'].indexOf(this.orderExceptionData.orderExceptionType)>-1&&this.handlerParams.orderExceptionHandlerResult=='update_weight_limit'){
if(!this.handlerParams.weightLimit){ if(!this.handlerParams.weightLimit){
......
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