Explorar o código

退货页面bugfix

chao %!s(int64=3) %!d(string=hai) anos
pai
achega
69b943162d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/main/webapp/static/modules/bulkpurchase/orderForm.js

+ 6 - 0
src/main/webapp/static/modules/bulkpurchase/orderForm.js

@@ -1979,6 +1979,12 @@ function setProductTotalFee() {
     if (isNaN(discount)) {
         discount = Number($("#discountFee").val());
     }
+    if ($('.productTable').length == 0){
+        // 非添加订单页面
+        $("#discount").val('0.00');
+        $(".payableAmount").text(0);
+        return;
+    }
     var trs = $('.productTable tbody').find('tr:not(.gift)');
     if (trs.length == 0) { //没有添加商品的情况
         $("#discount").val('0.00');