Commit fde2515b authored by dragondean@qq.com's avatar dragondean@qq.com

修复订单无收货人编辑异常

parent c0f187f8
......@@ -1257,6 +1257,21 @@ export default {
this.$set(this.form, 'consigneeNameEn', res.data.consigneeVO.nameEn)
this.$set(this.form, 'consigneePhone', res.data.consigneeVO.phone)
}
// res.data.hasConsignee 订单冗余的发货人是否允许无收货人
// res.data.noConsignee 当前订单发货人是否允许无收货
// 回显冗余数据
this.noConsignee = res.data.hasConsignee
// 是否有收货人
this.hasConsignee = !!res.data.consigneeVO
// 如果订单无收货人,但是最新的发货人不允许无收货人则重置状态
if(!res.data.noConsignee && !this.hasConsignee){
// 最新的发货人不允许无收货人,则重置为有收货人
this.hasConsignee = true
// 如果发货人不允许无收货人,则更新是否允许无收货人状态
this.noConsignee = false
}
if(this.form.channelId == 0){
delete this.form.channelId
......
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