ouyj 1 неделя назад
Родитель
Сommit
569b74a6dd

+ 3 - 2
src/main/webapp/yw/contract/paymentApply/processPaymentApply.jsp

@@ -133,9 +133,10 @@
             var contractId = $('#contractId').val();
             var purchaseOrderNo = $('#purchaseOrderNo').val();
             var storageOrderNo = $('#storageOrderNo').val();
-            
+ 
             var selectedCount = 0;
-            if (contractId) selectedCount++;
+            // 合同ID为null时会显示为"0"或空字符串,需要排除这种情况
+            if (contractId && contractId !== '0') selectedCount++;
             if (purchaseOrderNo) selectedCount++;
             if (storageOrderNo) selectedCount++;
             

+ 1 - 1
src/main/webapp/yw/contract/paymentApply/startPaymentApply.jsp

@@ -98,7 +98,7 @@
             var storageOrderNo = $('#storageOrderNo').val();
             
             var selectedCount = 0;
-            if (contractId) selectedCount++;
+            if (contractId && contractId !== '0') selectedCount++;
             if (purchaseOrderNo) selectedCount++;
             if (storageOrderNo) selectedCount++;