瀏覽代碼

退货页面bugfix

chao 3 年之前
父節點
當前提交
69b943162d
共有 1 個文件被更改,包括 6 次插入0 次删除
  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');