Browse Source

fix:收银端总价显示bug

lhm 3 years ago
parent
commit
1d10cf00d8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      kmall-admin/src/main/webapp/js/sale/sale.js

+ 3 - 3
kmall-admin/src/main/webapp/js/sale/sale.js

@@ -35,7 +35,7 @@ function calculateGoodsPrice(r){
     var brand = r.goodsDetails.brand;
     console.log(rMap);
 
-    if(rMap.yhq){
+    /*if(rMap.yhq){
         for(var i in rMap.yhq){
             vm.coupons.set(i,rMap.yhq[i]);
         }
@@ -81,7 +81,7 @@ function calculateGoodsPrice(r){
             vm.halfPrice.set(rMap.drjbj.barcode,1);
         }
 
-    }
+    }*/
 
 
     // if(rMap.zhjsp){
@@ -1911,7 +1911,7 @@ function handle(goodsDetails,operatorType){
         vm.goodsList.push(data);
         vm.index = vm.index + 1;
     }
-    vm.totalPrice = (vm.totalPrice + data.retailPrice);
+    vm.totalPrice = new BigNumber(vm.totalPrice).add(new BigNumber(data.retailPrice));
 
     if("minus" == operatorType){
         vm.totalCount = vm.totalCount - 1;