Răsfoiți Sursa

数量优化

shish 3 ani în urmă
părinte
comite
f6d3611c28
2 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 1 1
      hdApp/src/admin/billing/affirmGhs.vue
  2. 4 4
      hdApp/src/mixins/cgProduct.js

+ 1 - 1
hdApp/src/admin/billing/affirmGhs.vue

@@ -23,7 +23,7 @@
 										<text class="item-price">
 										<text class="item-price">
 											<text class="unit">¥</text>
 											<text class="unit">¥</text>
 											<text class="price">
 											<text class="price">
-												{{ parseFloat(item.bigPrice)||0 }}
+												{{ Number(item.bigCount)>0 ? parseFloat(item.bigPrice) : parseFloat(item.smallPrice) }}
 											</text>
 											</text>
 										</text>
 										</text>
 									</view>
 									</view>

+ 4 - 4
hdApp/src/mixins/cgProduct.js

@@ -624,12 +624,12 @@ export default {
 						return ele.id == item.id;
 						return ele.id == item.id;
 					});
 					});
 				}
 				}
-
+				this.isSmallCount = false
 				let params = {
 				let params = {
 					...info,
 					...info,
-					bigCount: this.isSmallCount?0:1, //扎数
-					smallCount: this.isSmallCount?1:0, //支数
-					autoPrice: 0 //调价价格
+					bigCount: this.isSmallCount?0:1,
+					smallCount: this.isSmallCount?1:0,
+					autoPrice: 0
 				};
 				};
 				if (info.bigNum && info.bigNum > 0) {
 				if (info.bigNum && info.bigNum > 0) {
 					list.push(params);
 					list.push(params);