|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
changeNum: function (newNum) {
|
|
|
- let pack = this.commodity.minPackQty
|
|
|
+ let pack = this.commodity.perQty
|
|
|
let buy = this.commodity.minBuyQty
|
|
|
let reserve = this.commodity.reserve
|
|
|
if (newNum < buy) {
|
|
|
@@ -258,12 +258,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
subNum () {
|
|
|
- let newNum = this.fragment.num - this.commodity.minPackQty
|
|
|
+ let newNum = this.fragment.num - this.commodity.perQty
|
|
|
this.changeNum(newNum)
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
},
|
|
|
addNum () {
|
|
|
- let newNum = this.fragment.num + this.commodity.minPackQty
|
|
|
+ let newNum = this.fragment.num + this.commodity.perQty
|
|
|
this.changeNum(newNum)
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
},
|