Ver Fonte

对账单修改

liujun há 2 anos atrás
pai
commit
06bf9fd00f
1 ficheiros alterados com 3 adições e 1 exclusões
  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)
 		}
 	},