shish 3 年 前
コミット
a1beb1e02b

+ 2 - 1
ghsApp/src/mixins/product.js

@@ -87,7 +87,8 @@ export default {
 				for (const item of this.selectList) {
 					bigLength += Number(item.bigCount)
 					smallLength += Number(item.smallCount)
-					let currentWeight = item.weight ? item.weight : 0
+					let thisWeight = item.weight ? item.weight : 0
+					let currentWeight = Number(thisWeight)*Number(item.bigCount)
 					weight = Number(weight) + Number(currentWeight)
 				}
 				weight = weight.toFixed(2)

+ 2 - 0
hdApp/src/admin/billing/affirmGhsBook.vue

@@ -287,6 +287,8 @@ export default {
 					}
 				}
 			}
+			price = Number(price)
+			price = price.toFixed(2)
 			price = parseFloat(price)
 			return price
 		}

+ 2 - 1
hdApp/src/mixins/cgProduct.js

@@ -113,7 +113,8 @@ export default {
 				for (const item of this.selectList) {
 					bigLength += item.bigCount
 					smallLength += item.smallCount
-					let currentWeight = item.weight ? item.weight : 0
+					let thisWeight = item.weight ? item.weight : 0
+					let currentWeight = Number(thisWeight)*Number(item.bigCount)
 					weight = Number(weight) + Number(currentWeight)
 				}
 				weight = weight.toFixed(2)