Ver Fonte

开单基数

shish há 4 anos atrás
pai
commit
005822195b
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      hdPad/src/pages/home/components/selectNumPrice.vue

+ 8 - 0
hdPad/src/pages/home/components/selectNumPrice.vue

@@ -193,6 +193,14 @@ export default {
             this.unitPrice = this.unitType == 0 ? this.customData.bigPrice : this.customData.smallPrice
             this.unitName = this.unitType == 0 ? this.customData.bigUnit : this.customData.smallUnit
             this.unitPrice = parseFloat(this.unitPrice)
+
+            //设置了开单基数,切到小单位显示基数值,如百合按5支卖的情况
+            if(this.unitType == 1){
+                if(this.customData.scanNum && Number(this.customData.scanNum)>0){
+                    this.currentNum = Number(this.customData.scanNum)
+                }
+            }
+
         }
     }
 }