Browse Source

提报更改校验方法

yuanzhi_kuang 4 months ago
parent
commit
fb7fee3de7
1 changed files with 6 additions and 6 deletions
  1. 6 6
      GDYSL/addon/customer/web/js/batchSubmitShemeBillEx.js

+ 6 - 6
GDYSL/addon/customer/web/js/batchSubmitShemeBillEx.js

@@ -69,12 +69,12 @@ shr.defineClass("shr.customer.gtiit.BatchSubmitShemeBillEx", shr.compensation.ba
 			    /*if(!fieldValue || fieldValue==0){
 			    	num++;
 			    }*/
-
-			    if (!fieldValue || !((typeof fieldValue === 'number' && fieldValue !== 0) ||
-			        (typeof fieldValue === 'string' && fieldValue !== '') ||
-			        (typeof fieldValue === 'object' && fieldValue !== null && Object.keys(fieldValue).length !== 0))
-			    ) {
-			    	num++;
+				//20250326 改,数值可以为0; 但不能全空
+			    if ( typeof fieldValue === 'number' && fieldValue === '' ){
+					num++;	
+				} else  if( (typeof fieldValue === 'string' && fieldValue == '' )||
+						  (typeof fieldValue === 'object' && fieldValue == null && Object.keys(fieldValue).length == 0)) {
+					num++;	
 			    }