|
|
@@ -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)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|