Commit 5c374463 authored by dragondean@qq.com's avatar dragondean@qq.com

编辑订单默认付款人调整

parent fde2515b
...@@ -939,6 +939,8 @@ export default { ...@@ -939,6 +939,8 @@ export default {
hasConsignee(val){ hasConsignee(val){
if(!val){ if(!val){
this.$set(this.form, 'isCargoControl', true) this.$set(this.form, 'isCargoControl', true)
// 无收货人且控货则默认发货人付款
this.$set(this.form, 'drawee', 1)
} }
}, },
ccIdArr(arr){ ccIdArr(arr){
...@@ -1082,7 +1084,7 @@ export default { ...@@ -1082,7 +1084,7 @@ export default {
'form.isCargoControl'(isCargoControl){ 'form.isCargoControl'(isCargoControl){
console.log('form.isCargoControl', this.form.isCargoControl, this.initing) console.log('form.isCargoControl', this.form.isCargoControl, this.initing)
if(!this.initing){ if(!this.initing){
this.$set(this.form, 'drawee', isCargoControl ? 2 : 2) this.$set(this.form, 'drawee', isCargoControl && !this.hasConsignee ? 1 : 2)
} }
this.setBllLandingPrice('form.isCargoControl') this.setBllLandingPrice('form.isCargoControl')
...@@ -1373,6 +1375,10 @@ export default { ...@@ -1373,6 +1375,10 @@ export default {
if(!this.noConsignee && !this.hasConsignee){ if(!this.noConsignee && !this.hasConsignee){
this.$set(this, 'hasConsignee', true) this.$set(this, 'hasConsignee', true)
} }
// 如果默认付款则设置为发货人付款
if(contact.defaultPay){
this.$set(this.form, 'drawee', 1)
}
} }
this.contactChooseType = null this.contactChooseType = null
......
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