|
@@ -316,8 +316,8 @@ export default {
|
|
|
|
|
|
|
|
let params = {
|
|
let params = {
|
|
|
...info,
|
|
...info,
|
|
|
- bigCount: 1, //扎数
|
|
|
|
|
- smallCount: 0, //支数
|
|
|
|
|
|
|
+ bigCount: this.isSmallCount?0:1, //扎数
|
|
|
|
|
+ smallCount: this.isSmallCount?1:0, //支数
|
|
|
autoPrice: 0 //调价价格
|
|
autoPrice: 0 //调价价格
|
|
|
};
|
|
};
|
|
|
if (info.bigNum && info.bigNum > 0) {
|
|
if (info.bigNum && info.bigNum > 0) {
|
|
@@ -379,9 +379,13 @@ export default {
|
|
|
has = true;
|
|
has = true;
|
|
|
|
|
|
|
|
if (element.bigCount > 0) {
|
|
if (element.bigCount > 0) {
|
|
|
- list[index] = { ...element, bigCount: --element.bigCount };
|
|
|
|
|
- } else if (element.smallCount > 0) {
|
|
|
|
|
- list[index] = { ...element, smallCount: 0 };
|
|
|
|
|
|
|
+ if(!this.isSmallCount){list[index] = { ...element, bigCount: --element.bigCount };}
|
|
|
|
|
+ // list[index] = { ...element, bigCount: --element.bigCount };
|
|
|
|
|
+ }
|
|
|
|
|
+ if (element.smallCount > 0) {
|
|
|
|
|
+ if(this.isSmallCount){list[index] = { ...element, smallCount: --element.smallCount };}
|
|
|
|
|
+
|
|
|
|
|
+ // list[index] = { ...element, smallCount: 0 };
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.isLimit) {
|
|
if (this.isLimit) {
|