shish hai 6 meses
pai
achega
d65170d5f0
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      ghsPad/src/pages/home/cash.vue

+ 8 - 2
ghsPad/src/pages/home/cash.vue

@@ -131,6 +131,14 @@ export default {
 		}
 		}
 	},
 	},
 	watch: {
 	watch: {
+		customId:{
+			handler(newValue) {
+				if(Number(newValue)>0){
+					//获取快捷开单的客户信息,用于获取跑腿的地址信息
+					this.getDefaultCustom(this.customId)
+				}
+			}
+		},
 		getLoginInfo: {
 		getLoginInfo: {
 			handler(newValue) {
 			handler(newValue) {
 				if (this.$util.isEmpty(newValue.admin) == false && newValue.admin.currentShopId > 0) {
 				if (this.$util.isEmpty(newValue.admin) == false && newValue.admin.currentShopId > 0) {
@@ -138,8 +146,6 @@ export default {
 					if (newValue.skCustomId && newValue.skCustomId > 0) {
 					if (newValue.skCustomId && newValue.skCustomId > 0) {
 						this.customId = newValue.skCustomId
 						this.customId = newValue.skCustomId
 						this.customName = '快捷开单'
 						this.customName = '快捷开单'
-						//获取快捷开单的客户信息,用于获取跑腿的地址信息
-						this.getDefaultCustom(this.customId)
 						//世纪花都、龙岩小林鲜花要自动弹出客户列表,多个地方要同步修改,关键词sj_pop_auto
 						//世纪花都、龙岩小林鲜花要自动弹出客户列表,多个地方要同步修改,关键词sj_pop_auto
 						if (newValue.shopId == 30300 || newValue.shopId == 15007) {
 						if (newValue.shopId == 30300 || newValue.shopId == 15007) {
 							this.showCustomPop()
 							this.showCustomPop()