Commit d4024cb8 authored by zhengyi's avatar zhengyi

编辑/复制订单是否有收货人判断逻辑修改

parent c8cdd4f7
......@@ -1359,11 +1359,11 @@ export default {
// 默认不允许控货无收货人
this.noConsignee = false
}
// // 如果订单无收货人,但是最新的发货人允许无收货人则重置状态
// if (this.noConsignee && !this.hasConsignee) {
// // 最新的发货人允许无收货人,则重置为有收货人
// this.hasConsignee = true
// }
// 最新的发货人档案不允许无收货人则重置状态
if (!this.noConsignee) {
// 最新的发货人不允许无收货人,则重置为有收货人
this.hasConsignee = true
}
})
},
async getOrder() {
......@@ -1396,6 +1396,8 @@ export default {
console.log("集运服务类型", this.form.type)
this.form.type = this.form.type ? this.form.type.split(',').filter(item => item != '') : []
this.form.packageTypeArr = this.form.packageType ? this.form.packageType.split(',').filter(item => item != '') : []
// 是否有收货人
this.hasConsignee = !!res.data.consigneeVO
// 每次编辑订单详情需要实时获取发货人当前信息
if (res.data.consignorVO) {
this.$set(this.form, 'consignorCompany', res.data.consignorVO.company)
......@@ -1424,10 +1426,6 @@ export default {
// res.data.hasConsignee 订单冗余的发货人是否允许无收货人
// res.data.noConsignee 当前订单发货人是否允许无收货
// 是否有收货人
// this.hasConsignee = !!res.data.consigneeVO
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