Quellcode durchsuchen

退货页面bugfix

chao vor 3 Jahren
Ursprung
Commit
69b943162d
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  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');