Explorar el Código

对账单修改

liujun hace 2 años
padre
commit
06bf9fd00f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)
 		}
 	},