shish 2 년 전
부모
커밋
3ffaf49e12
2개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 2
      ghs/src/mixins/product2.js
  2. 6 3
      ghs/src/views/order/add.vue

+ 3 - 2
ghs/src/mixins/product2.js

@@ -333,11 +333,12 @@ export default {
 			}
 			}
 			//点击要响声
 			//点击要响声
 			if(this.kdType == 'HIT' && multiple ==0){
 			if(this.kdType == 'HIT' && multiple ==0){
-				this.$util.hitRemind()
+				//this.$util.hitRemind()
 			}
 			}
+			this.hitPlay()
 			//扫码要响声
 			//扫码要响声
 			if(scan == 1){
 			if(scan == 1){
-				this.$util.hitRemind()
+				//this.$util.hitRemind()
 			}
 			}
 			this.pushToSave(list)
 			this.pushToSave(list)
 		},
 		},

+ 6 - 3
ghs/src/views/order/add.vue

@@ -288,7 +288,8 @@ export default {
       showGetItemList:false,
       showGetItemList:false,
       currentItem:{},
       currentItem:{},
       classList:[],
       classList:[],
-      changeType:'add'
+      changeType:'add',
+      TT:null
     };
     };
   },
   },
 	mixins: [productMins],
 	mixins: [productMins],
@@ -501,7 +502,7 @@ export default {
     selectCustomFn(e){
     selectCustomFn(e){
       if(e.id && e.name){
       if(e.id && e.name){
         let that = this
         let that = this
-        setTimeout(function(){
+        that.TT = setTimeout(function(){
           that.desk = 'selectedList'
           that.desk = 'selectedList'
         },2000)
         },2000)
         this.form.customId = e.id
         this.form.customId = e.id
@@ -604,6 +605,9 @@ export default {
       if(this.t!=null){
       if(this.t!=null){
         clearTimeout(this.t)
         clearTimeout(this.t)
       }
       }
+      if(this.TT != null){
+        clearTimeout(this.TT)
+      }
       this.t = setTimeout(function(){
       this.t = setTimeout(function(){
         that.searchItemFn()
         that.searchItemFn()
       },250)
       },250)
@@ -711,7 +715,6 @@ export default {
       sumPrice = parseFloat(sumPrice.toFixed(2))
       sumPrice = parseFloat(sumPrice.toFixed(2))
       currentItem = {...currentItem,bigCount:this.customData.bigCount,userPrice:this.customData.userPrice,smallCount:this.customData.smallCount,sumPrice:sumPrice}     
       currentItem = {...currentItem,bigCount:this.customData.bigCount,userPrice:this.customData.userPrice,smallCount:this.customData.smallCount,sumPrice:sumPrice}     
       this.replaceItemFn(currentItem,1,'add')
       this.replaceItemFn(currentItem,1,'add')
-      this.hitPlay()
       this.backToSearchItem();
       this.backToSearchItem();
     },
     },
     backToSearchItem(){
     backToSearchItem(){