|
|
@@ -309,8 +309,13 @@
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
},
|
|
|
addNum () {
|
|
|
-// let pack = this.commodity.perQty || this.commodity.minPackQty
|
|
|
- let newNum = this.fragment.num + 1
|
|
|
+ let pack = this.commodity.perQty || this.commodity.minPackQty
|
|
|
+ let newNum = 0
|
|
|
+ if (this.commodity.breakUp) {
|
|
|
+ newNum = this.fragment.num + 1
|
|
|
+ } else {
|
|
|
+ newNum = this.fragment.num + pack
|
|
|
+ }
|
|
|
this.changeNum(newNum)
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
},
|