소스 검색

扫码优化

shish 3 년 전
부모
커밋
7a6d5f4444
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      hdPad/src/mixins/product.js

+ 2 - 0
hdPad/src/mixins/product.js

@@ -287,6 +287,8 @@ export default {
 				unitName = current.bigUnit
 				unitName = current.bigUnit
 				unitPrice = current.bigPrice
 				unitPrice = current.bigPrice
 				let num = this.calc == 'add' ? 1 : -1
 				let num = this.calc == 'add' ? 1 : -1
+				//必须保留。扫码之后列表显示花材,点修改才能显示正常。
+				current.unitType = 0
 				//百合扫一下5支的情况
 				//百合扫一下5支的情况
 				if(current.scanNum && Number(current.scanNum)>0){
 				if(current.scanNum && Number(current.scanNum)>0){
 					num = this.calc == 'add' ? Number(current.scanNum) : -Number(current.scanNum)
 					num = this.calc == 'add' ? Number(current.scanNum) : -Number(current.scanNum)