Bläddra i källkod

对账单修改

liujun 2 år sedan
förälder
incheckning
06bf9fd00f
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      pages/sales/bill.vue

+ 3 - 1
pages/sales/bill.vue

@@ -266,7 +266,9 @@ export default {
 			return toThousands(price,2);
 		},
 		settlement() {
-			let priceNum=this.chooseTotalPayPrice - this.discountVal;
+			let totalPrice=this.chooseTotalPayPrice?this.chooseTotalPayPrice:0;
+			let discountPrice=this.discountVal?this.discountVal:0
+			let priceNum=totalPrice - discountPrice;
 			return toThousands(priceNum,2)
 		}
 	},