shish před 1 rokem
rodič
revize
113fea593d

+ 3 - 3
ghsPad/src/pages/home/cash.vue

@@ -137,7 +137,7 @@ export default {
 			this.$refs.myCustomRef.close()
 			this.customId = this.getLoginInfo.skCustomId && this.getLoginInfo.skCustomId > 0 ? Number(this.getLoginInfo.skCustomId) : 0
 			this.customName = '快捷开单'
-			//要调用rightItemRef里的方法更新,不能这边直接请求product.js更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
+			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
 		},
 		showCustomPop(){
@@ -150,7 +150,7 @@ export default {
 			this.$refs.myCustomRef.close()
 			this.customId = Number(info.id)
 			this.customName = info.name
-			//要调用rightItemRef里的方法更新,不能这边直接请求product.js更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
+			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
 		},
 		cancelRefresh(){
@@ -177,7 +177,7 @@ export default {
 		updateRightItem(){
 			this.customId = this.getLoginInfo.skCustomId && this.getLoginInfo.skCustomId > 0 ? Number(this.getLoginInfo.skCustomId) : 0
 			this.customName = '快捷开单'
-			//要调用rightItemRef里的方法更新,不能这边直接请求product.js更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
+			//要调用rightItemRef里的方法更新,不能这边直接请求product.js里方法更新,因为会造成扫码那块出问题,识别不到,关键词scan_right_item
 			this.$refs.rightItemRef.refreshMyRightItem(this.customId)
 			this.getCustomData()
 		},

+ 0 - 4
ghsPad/src/pages/home/components/cashConsole.vue

@@ -126,10 +126,6 @@ export default {
 
 	},
 	destroyed(){
-		// #ifdef APP-PLUS
-		//避免重复,每次进来先移除全局自定义事件监听器
-		uni.$off('listenGetScanCode')
-		// #endif
 	},
     methods:{
 		showCustomPop(){

+ 1 - 0
ghsPad/src/pages/home/components/rightItem.vue

@@ -98,6 +98,7 @@ export default {
         refreshMyRightItem(customId){
 			this.globalRightItemCustomId = customId
 			this.itemRefresh()
+            this.listenScanItem()
         }
     }
 }