Kaynağa Gözat

扫码优化

shish 3 yıl önce
ebeveyn
işleme
7a6d5f4444
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      hdPad/src/mixins/product.js

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

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