|
|
@@ -146,10 +146,16 @@ export default {
|
|
|
this.customId = newValue.defaultCustomId && newValue.defaultCustomId > 0 ? Number(newValue.defaultCustomId):0
|
|
|
this.customName = '快捷开单'
|
|
|
this.balance = 0
|
|
|
- //获取快捷开单的客户信息,用于获取跑腿的地址信息
|
|
|
- this.getDefaultCustomId(this.customId)
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ customId:{
|
|
|
+ handler(myCustomId) {
|
|
|
+ if(Number(myCustomId)>0){
|
|
|
+ //获取快捷开单的客户信息,用于获取跑腿的地址信息
|
|
|
+ this.getDefaultCustomId(myCustomId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
fastCreate(){
|
|
|
@@ -193,7 +199,6 @@ export default {
|
|
|
},
|
|
|
confirmCustom(info){
|
|
|
this.$refs.myCustomRef.close()
|
|
|
- this.custom = info //当前选中的客户
|
|
|
this.customId = Number(info.id)
|
|
|
this.customName = info.name
|
|
|
this.balance = Number(info.balance)>0 ? Number(info.balance) : 0
|