ソースを参照

质检质量指标保留位数和总量计算

gaodd 2 年 前
コミット
82ba6e7625

+ 303 - 400
src/main/resources/static/app/storage/controller/qualitycheckAssayCtrl.js

@@ -782,7 +782,7 @@ angular.module('app.storage')
782
 
782
 
783
         $scope.getMath = function(v) {
783
         $scope.getMath = function(v) {
784
             if (isNaN(v) || v == "") {
784
             if (isNaN(v) || v == "") {
785
-                v = 0.00;
785
+                v = "0.00";
786
             } else {
786
             } else {
787
                 v = Math.round(v*100)/100;
787
                 v = Math.round(v*100)/100;
788
                 v = v.toString();
788
                 v = v.toString();
@@ -797,7 +797,7 @@ angular.module('app.storage')
797
         }
797
         }
798
         $scope.getMath1 = function(v) {
798
         $scope.getMath1 = function(v) {
799
             if (isNaN(v) || v == "") {
799
             if (isNaN(v) || v == "") {
800
-                v = 0.0;
800
+                v = "0.0";
801
             } else {
801
             } else {
802
                 v = Math.round(v*10)/10;
802
                 v = Math.round(v*10)/10;
803
                 v = v.toString();
803
                 v = v.toString();
@@ -873,616 +873,518 @@ angular.module('app.storage')
873
         $scope.zjzl = function() {
873
         $scope.zjzl = function() {
874
         	var pz = $scope.qualitycheck.subType;
874
         	var pz = $scope.qualitycheck.subType;
875
         	if (pz=="3164") {
875
         	if (pz=="3164") {
876
-        		if($scope.qualitycheck.water != null){
876
+        		
877
         			var sf = parseFloat($scope.qualitycheck.water);//水分
877
         			var sf = parseFloat($scope.qualitycheck.water);//水分
878
-            		sf = $scope.checkJqos(sf,1);
878
+            		//sf = $scope.checkJqos(sf,1);
879
             		$scope.qualitycheck.water = $scope.getMath1(sf);
879
             		$scope.qualitycheck.water = $scope.getMath1(sf);
880
-        		}
880
+        		
881
         		/*if($scope.qualitycheckInspection.unitWeight != null){
881
         		/*if($scope.qualitycheckInspection.unitWeight != null){
882
         			var rz = parseFloat($scope.qualitycheckInspection.unitWeight);//容重
882
         			var rz = parseFloat($scope.qualitycheckInspection.unitWeight);//容重
883
             		rz = $scope.checkJqos(rz,1);
883
             		rz = $scope.checkJqos(rz,1);
884
             		$scope.qualitycheckInspection.unitWeight = $scope.getMath1(rz);
884
             		$scope.qualitycheckInspection.unitWeight = $scope.getMath1(rz);
885
         		}*/
885
         		}*/
886
-        		if($scope.qualitycheck.hardIndex != null){
886
+        		
887
         			var xmydzs = parseFloat($scope.qualitycheck.hardIndex);//小麦硬度指数
887
         			var xmydzs = parseFloat($scope.qualitycheck.hardIndex);//小麦硬度指数
888
-            		xmydzs = $scope.checkJqos(xmydzs,1);
888
+            		//xmydzs = $scope.checkJqos(xmydzs,1);
889
             		$scope.qualitycheck.hardIndex = $scope.getMath1(xmydzs);
889
             		$scope.qualitycheck.hardIndex = $scope.getMath1(xmydzs);
890
-        		}
891
-        		if($scope.qualitycheck.mineral != null){
890
+        		
891
+        		
892
         			var mineral = parseFloat($scope.qualitycheck.mineral);//矿物质
892
         			var mineral = parseFloat($scope.qualitycheck.mineral);//矿物质
893
-            		mineral = $scope.checkJqos(mineral,2);
893
+            		//mineral = $scope.checkJqos(mineral,2);
894
             		//mineral = isNaN(mineral) ? 0.00 : mineral;
894
             		//mineral = isNaN(mineral) ? 0.00 : mineral;
895
             		$scope.qualitycheck.mineral = $scope.getMath(mineral);
895
             		$scope.qualitycheck.mineral = $scope.getMath(mineral);
896
-        		}
897
-        		if($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo != null){
896
+        		
897
+        		
898
         			var black = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo);//黒胚粒
898
         			var black = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo);//黒胚粒
899
-            		black = $scope.checkJqos(black,2);
899
+            		//black = $scope.checkJqos(black,2);
900
             		//black = isNaN(black) ? 0 : black;
900
             		//black = isNaN(black) ? 0 : black;
901
             		$scope.qualitycheckInspection.imperfectgrainsScabBlackembryo = $scope.getMath(black);
901
             		$scope.qualitycheckInspection.imperfectgrainsScabBlackembryo = $scope.getMath(black);
902
-        		}
903
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
902
+        		
903
+        		
904
         			var inorganic = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
904
         			var inorganic = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
905
             		//inorganic = isNaN(inorganic) ? 0 : inorganic;
905
             		//inorganic = isNaN(inorganic) ? 0 : inorganic;
906
-            		inorganic = $scope.checkJqos(inorganic,2);
906
+            		//inorganic = $scope.checkJqos(inorganic,2);
907
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(inorganic);
907
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(inorganic);
908
-        		}
909
-        		if($scope.qualitycheckInspection.imperfectgrainsScabGibberella != null){
908
+        	
909
+        		
910
         			var gibberella = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella);//赤霉病粒
910
         			var gibberella = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella);//赤霉病粒
911
             		//gibberella = isNaN(gibberella) ? 0 : gibberella;
911
             		//gibberella = isNaN(gibberella) ? 0 : gibberella;
912
-            		gibberella = $scope.checkJqos(gibberella,2);
912
+            		//gibberella = $scope.checkJqos(gibberella,2);
913
             		$scope.qualitycheckInspection.imperfectgrainsScabGibberella = $scope.getMath(gibberella);
913
             		$scope.qualitycheckInspection.imperfectgrainsScabGibberella = $scope.getMath(gibberella);
914
-        		}
915
-        		if($scope.qualitycheckInspection.imperfectgrainsScabQtbl != null){
914
+        		
915
+        		
916
         			var qtbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl);//其它病粒
916
         			var qtbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl);//其它病粒
917
             		//qtbl = isNaN(qtbl) ? 0 : qtbl;
917
             		//qtbl = isNaN(qtbl) ? 0 : qtbl;
918
-            		qtbl = $scope.checkJqos(qtbl,2);
918
+            		//qtbl = $scope.checkJqos(qtbl,2);
919
             		$scope.qualitycheckInspection.imperfectgrainsScabQtbl = $scope.getMath(qtbl);
919
             		$scope.qualitycheckInspection.imperfectgrainsScabQtbl = $scope.getMath(qtbl);
920
-        		}
921
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
920
+        		
921
+        		
922
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
922
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
923
             		//organic = isNaN(organic) ? 0 : organic;
923
             		//organic = isNaN(organic) ? 0 : organic;
924
-        			organic = $scope.checkJqos(organic,2);
924
+        			//organic = $scope.checkJqos(organic,2);
925
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
925
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
926
-        		}
927
-        		if($scope.qualitycheckInspection.sieveResidue != null){
926
+        		
927
+        		
928
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
928
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
929
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
929
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
930
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
930
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
931
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
931
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
932
-        		}
933
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
932
+        		
933
+        		
934
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
934
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
935
             		//csl = isNaN(csl) ? 0 : csl;
935
             		//csl = isNaN(csl) ? 0 : csl;
936
-            		csl = $scope.checkJqos(csl,2);
936
+            		//csl = $scope.checkJqos(csl,2);
937
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
937
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
938
-        		}
939
-        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
938
+        		
939
+        		
940
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
940
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
941
             		//psl = isNaN(psl) ? 0 : psl;
941
             		//psl = isNaN(psl) ? 0 : psl;
942
-            		psl = $scope.checkJqos(psl,2);
942
+            		//psl = $scope.checkJqos(psl,2);
943
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
943
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
944
-        		}
945
-        		if($scope.qualitycheck.mildewCount != null){
944
+        		
945
+        		
946
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
946
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
947
             		//sml = isNaN(sml) ? 0 : sml;
947
             		//sml = isNaN(sml) ? 0 : sml;
948
-            		sml = $scope.checkJqos(sml,2);
948
+            		//sml = $scope.checkJqos(sml,2);
949
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
949
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
950
-        		}
951
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
950
+        		
951
+        		
952
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
952
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
953
             		//syl = isNaN(syl) ? 0 : syl;
953
             		//syl = isNaN(syl) ? 0 : syl;
954
-            		syl = $scope.checkJqos(syl,2);
954
+            		//syl = $scope.checkJqos(syl,2);
955
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
955
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
956
-        		}
957
         		
956
         		
958
-        		if(black == null || black == undefined){
959
-        			black = 0;
960
-    			}
961
-    			if(gibberella == null || gibberella == undefined){
962
-    				gibberella = 0;
963
-    			}
964
-    			if(qtbl == null || qtbl == undefined){
965
-    				qtbl = 0;
966
-    			}
967
-    			if(black == 0 && gibberella == 0 && qtbl == 0){
968
-    				$scope.qualitycheckInspection.imperfectgrainsScabTotal = null;
969
-    			}else{
970
-            		var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;//病斑粒总量%
971
-            		bblzl = $scope.checkJqos(bblzl,1);
972
-        			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
973
-    			}
957
+        		
958
+        		
959
+            		//var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;//病斑粒总量%
960
+            		//bblzl = $scope.checkJqos(bblzl,1);
961
+        			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
962
+    			
974
         		//bblzl = isNaN(bblzl) ? 0 : bblzl;
963
         		//bblzl = isNaN(bblzl) ? 0 : bblzl;
975
         		//$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
964
         		//$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
976
         		
965
         		
977
-        		if($scope.qualitycheckInspection.inputTwo != null){
966
+        		
978
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
967
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
979
-            		zdy = $scope.checkJqos(zdy,1);
968
+            		//zdy = $scope.checkJqos(zdy,1);
980
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
969
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
981
-        		}
970
+        		
982
         		
971
         		
983
         		
972
         		
984
         		
973
         		
985
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
974
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
986
         			//杂质总量
975
         			//杂质总量
987
-        			if(mineral == null || mineral == undefined){
988
-        				mineral = 0;
989
-        			}
990
-        			if(inorganic == null || inorganic == undefined){
991
-        				inorganic = 0;
992
-        			}
993
-        			if(organic == null || organic == undefined){
994
-        				organic = 0;
995
-        			}
996
-        			if(sieveResidue == null || sieveResidue == undefined){
997
-        				sieveResidue = 0;
998
-        			}
999
         			
976
         			
1000
-        			if(mineral == 0 && inorganic == 0 && organic == 0 && sieveResidue == 0){
1001
-        				$scope.qualitycheckInspection.impurityTotal = null;
1002
-        			}else{
1003
-        				var zzzl = ((parseFloat(mineral)*100) + (parseFloat(inorganic)*100)+ (parseFloat(organic)*100)+ (parseFloat(sieveResidue)*100))/100;
977
+        			
978
+        				var zzzl = ((parseFloat($scope.qualitycheck.mineral)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ 
979
+        						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100)+ (parseFloat($scope.qualitycheckInspection.sieveResidue)*100))/100;
1004
             			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
980
             			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
1005
-            			zzzl = $scope.checkJqos(zzzl,1);
981
+            			//zzzl = $scope.checkJqos(zzzl,1);
1006
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
982
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1007
-        			}
983
+        			
1008
         			
984
         			
1009
         			//病斑粒总量
985
         			//病斑粒总量
1010
-        			if(black == null || black == undefined){
1011
-        				black = 0;
1012
-        			}
1013
-        			if(gibberella == null || gibberella == undefined){
1014
-        				gibberella = 0;
1015
-        			}
1016
-        			if(qtbl == null || qtbl == undefined){
1017
-        				qtbl = 0;
1018
-        			}
1019
-        			if(black == 0 && gibberella == 0 && qtbl == 0){
1020
-        				$scope.qualitycheckInspection.imperfectgrainsScabTotal = null;
1021
-        			}else{
1022
-        				var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;
986
+        			
987
+        				var bblzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo)*100) + 
988
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl)*100))/100;
1023
             			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
989
             			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
1024
-            			bblzl = $scope.checkJqos(bblzl,1);
990
+            			//bblzl = $scope.checkJqos(bblzl,1);
1025
             			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
991
             			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
1026
-        			}
992
+        			
1027
         			
993
         			
1028
         			//不完善粒总量
994
         			//不完善粒总量
1029
-        			if(csl == null || csl == undefined){
1030
-        				csl = 0;
1031
-        			}
1032
-        			if(psl == null || psl == undefined){
1033
-        				psl = 0;
1034
-        			}
1035
-        			if(sml == null || sml == undefined){
1036
-        				sml = 0;
1037
-        			}
1038
-        			if(bblzl == null || bblzl == undefined){
1039
-        				bblzl = 0;
1040
-        			}
1041
-        			if(syl == null || syl == undefined){
1042
-        				syl = 0;
1043
-        			}
1044
         			
995
         			
1045
-        			if(csl == 0 && psl ==0 && sml == 0 && bblzl == 0 && syl == 0){
1046
-        				$scope.qualitycheckInspection.imperfectgrainsTotal = null;
1047
-        			}else{
1048
-        				var bwslzl = ((parseFloat(csl)*100) + (parseFloat(psl)*100)+(parseFloat(sml)*100) + (parseFloat(bblzl)*100) + (parseFloat(syl)*100))/100;
996
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage)*100)
997
+        						+(parseFloat($scope.qualitycheck.mildewCount)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScabTotal)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100))/100;
1049
             			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
998
             			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
1050
-            			bwslzl = $scope.checkJqos(bwslzl,1);
999
+            			//bwslzl = $scope.checkJqos(bwslzl,1);
1051
             			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1000
             			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1052
-        			}
1001
+        			
1053
         			
1002
         			
1054
         		}
1003
         		}
1055
         	} else if (pz=="3166") {
1004
         	} else if (pz=="3166") {
1056
-        		if($scope.qualitycheck.water != null){
1005
+        		
1057
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1006
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1058
-            		sf = $scope.checkJqos(sf,1);
1007
+            		//sf = $scope.checkJqos(sf,1);
1059
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1008
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1060
-        		}
1061
-        		if($scope.qualitycheck.huskedRation != null){
1009
+
1010
+            		
1062
         			var ccl = parseFloat($scope.qualitycheck.huskedRation);//出糙率
1011
         			var ccl = parseFloat($scope.qualitycheck.huskedRation);//出糙率
1063
-            		ccl = $scope.checkJqos(ccl,1);
1012
+            		//ccl = $scope.checkJqos(ccl,1);
1064
             		$scope.qualitycheck.huskedRation = $scope.getMath1(ccl);
1013
             		$scope.qualitycheck.huskedRation = $scope.getMath1(ccl);
1065
-        		}
1066
-        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1014
+        		
1015
+        		
1067
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1016
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1068
-            		wsl = $scope.checkJqos(wsl,2);
1017
+            		//wsl = $scope.checkJqos(wsl,2);
1069
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1018
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1070
-        		}
1071
-        		if($scope.qualitycheck.fullGoodRation != null){
1019
+        		
1020
+        		
1072
         			var zjml = parseFloat($scope.qualitycheck.fullGoodRation);//整精米率
1021
         			var zjml = parseFloat($scope.qualitycheck.fullGoodRation);//整精米率
1073
-            		zjml = $scope.checkJqos(zjml,1);
1022
+            		//zjml = $scope.checkJqos(zjml,1);
1074
             		$scope.qualitycheck.fullGoodRation = $scope.getMath1(zjml);
1023
             		$scope.qualitycheck.fullGoodRation = $scope.getMath1(zjml);
1075
-        		}
1076
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1024
+        		
1025
+        		
1077
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1026
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1078
-            		csl = $scope.checkJqos(csl,2);
1027
+            		//csl = $scope.checkJqos(csl,2);
1079
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1028
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1080
-        		}
1081
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1029
+        		
1030
+        		
1082
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1031
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1083
-            		bbl = $scope.checkJqos(bbl,2);
1032
+            		//bbl = $scope.checkJqos(bbl,2);
1084
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1033
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1085
-        		}
1086
-        		if($scope.qualitycheckInspection.sieveResidue != null){
1034
+        		
1035
+        		
1087
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1036
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1088
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1037
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
1089
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1038
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1090
-        		}
1091
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null ){
1039
+        		
1040
+        		
1092
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒
1041
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒
1093
-            		syl = $scope.checkJqos(syl,2);
1042
+            		//syl = $scope.checkJqos(syl,2);
1094
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1043
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1095
-        		}
1096
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1044
+        		
1045
+        		
1097
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1046
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1098
-            		yjzz = $scope.checkJqos(yjzz,2);
1047
+            		//yjzz = $scope.checkJqos(yjzz,2);
1099
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1048
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1100
-        		}
1101
-        		if($scope.qualitycheck.mildewCount != null){
1049
+        		
1050
+        		
1102
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒
1051
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒
1103
-            		sml = $scope.checkJqos(sml,2);
1052
+            		//sml = $scope.checkJqos(sml,2);
1104
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1053
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1105
-        		}
1106
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1054
+        		
1055
+        		
1107
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1056
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1108
-            		wjzz = $scope.checkJqos(wjzz,2);
1057
+            		//wjzz = $scope.checkJqos(wjzz,2);
1109
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1058
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1110
-        		}
1111
-        		if($scope.qualitycheck.outHuskedRation != null){
1059
+        		
1060
+        		
1112
         			var gwcm = parseFloat($scope.qualitycheck.outHuskedRation);//谷外糙米
1061
         			var gwcm = parseFloat($scope.qualitycheck.outHuskedRation);//谷外糙米
1113
-            		gwcm = $scope.checkJqos(gwcm, 1);
1062
+            		//gwcm = $scope.checkJqos(gwcm, 1);
1114
             		$scope.qualitycheck.outHuskedRation = $scope.getMath1(gwcm);
1063
             		$scope.qualitycheck.outHuskedRation = $scope.getMath1(gwcm);
1115
-        		}
1116
-        		if($scope.qualitycheckInspection.riceYield != null){
1064
+        		
1065
+        		
1117
         			var cml = parseFloat($scope.qualitycheckInspection.riceYield);//出米率
1066
         			var cml = parseFloat($scope.qualitycheckInspection.riceYield);//出米率
1118
-            		cml = $scope.checkJqos(cml, 1);
1067
+            		//cml = $scope.checkJqos(cml, 1);
1119
             		$scope.qualitycheckInspection.riceYield = $scope.getMath1(cml);
1068
             		$scope.qualitycheckInspection.riceYield = $scope.getMath1(cml);
1120
-        		}
1121
-        		if($scope.qualitycheckInspection.yellowRice != null){
1069
+        		
1070
+        		
1122
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1071
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1123
-            		hlm = $scope.checkJqos(hlm, 1);
1072
+            		//hlm = $scope.checkJqos(hlm, 1);
1124
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1073
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1125
-        		}
1126
-        		if($scope.qualitycheck.intermixingRate != null){
1074
+        		
1075
+        		
1127
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1076
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1128
-            		hhl = $scope.checkJqos(hhl, 1);
1077
+            		//hhl = $scope.checkJqos(hhl, 1);
1129
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1078
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1130
-        		}
1131
-        		if($scope.qualitycheckInspection.inputTwo != null){
1079
+        		
1080
+        		
1132
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1081
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1133
-            		zdy = $scope.checkJqos(zdy, 1);
1082
+            		//zdy = $scope.checkJqos(zdy, 1);
1134
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1083
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1135
-        		}
1136
-        		
1137
         		
1084
         		
1138
         		
1085
         		
1139
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1086
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1140
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1087
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1141
-        			if(sieveResidue == null || sieveResidue == undefined){
1142
-        				sieveResidue = 0;
1143
-        			}
1144
-        			if(yjzz == null || yjzz == undefined){
1145
-        				yjzz = 0;
1146
-        			}
1147
-        			if(wjzz == null || wjzz == undefined){
1148
-        				wjzz = 0;
1149
-        			}
1150
-        			if(sieveResidue == 0 && yjzz == 0 && wjzz == 0){
1151
-        				$scope.qualitycheckInspection.impurityTotal = null;
1152
-        			}else{
1153
-        				var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1154
-            			zzzl = $scope.checkJqos(zzzl, 1);
1088
+        			
1089
+        				var zzzl = ((parseFloat($scope.qualitycheckInspection.sieveResidue)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ (parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1090
+            			//zzzl = $scope.checkJqos(zzzl, 1);
1155
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1091
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1156
-        			}
1092
+        			
1157
         			
1093
         			
1158
         			//zzzl.toFixed(1);
1094
         			//zzzl.toFixed(1);
1159
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1095
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1160
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1096
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1161
-        			if(wsl == null || wsl == undefined){
1162
-        				wsl = 0;
1163
-        			}
1164
-        			if(csl == null || csl == undefined){
1165
-        				csl = 0;
1166
-        			}
1167
-        			if(bbl == null || bbl == undefined){
1168
-        				bbl = 0;
1169
-        			}
1170
-        			if(syl == null || syl == undefined){
1171
-        				syl = 0;
1172
-        			}
1173
-        			if(sml == null || sml == undefined){
1174
-        				sml = 0;
1175
-        			}
1176
         			
1097
         			
1177
-        			if(wsl == 0 && csl == 0 && bbl == 0 && syl == 0 && sml == 0){
1178
-        				$scope.qualitycheckInspection.imperfectgrainsTotal = null;
1179
-        			}else{
1180
-        				var bwslzl = ((parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1181
-            			bwslzl = $scope.checkJqos(bwslzl, 1);
1098
+        			
1099
+        			
1100
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + 
1101
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) + (parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1102
+            			//bwslzl = $scope.checkJqos(bwslzl, 1);
1182
             			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1103
             			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1183
-        			}
1104
+        			
1184
         			
1105
         			
1185
         		}
1106
         		}
1186
         	}else if(pz=="3165"){
1107
         	}else if(pz=="3165"){
1187
 
1108
 
1188
-        		if($scope.qualitycheck.water != null){
1109
+        		
1189
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1110
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1190
-            		sf = $scope.checkJqos(sf,1);
1111
+            		//sf = $scope.checkJqos(sf,1);
1191
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1112
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1192
-        		}
1193
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1113
+        		
1114
+        		
1194
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1115
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1195
-        			yjzz = $scope.checkJqos(yjzz,2);
1116
+        			//yjzz = $scope.checkJqos(yjzz,2);
1196
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1117
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1197
-        		}
1198
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1118
+        		
1119
+        		
1199
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1120
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1200
-            		wjzz = $scope.checkJqos(wjzz,2);
1121
+            		//wjzz = $scope.checkJqos(wjzz,2);
1201
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1122
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1202
-        		}
1203
-        		if($scope.qualitycheckInspection.sieveResidue != null){
1123
+        		
1124
+        		
1204
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1125
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1205
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1126
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1206
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1127
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
1207
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1128
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1208
-        		}
1209
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1129
+        		
1130
+        		
1210
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1131
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1211
             		//csl = isNaN(csl) ? 0 : csl;
1132
             		//csl = isNaN(csl) ? 0 : csl;
1212
-            		csl = $scope.checkJqos(csl,2);
1133
+            		//csl = $scope.checkJqos(csl,2);
1213
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1134
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1214
-        		}
1215
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1135
+        		
1136
+        		
1216
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1137
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1217
-            		bbl = $scope.checkJqos(bbl,2);
1138
+            		//bbl = $scope.checkJqos(bbl,2);
1218
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1139
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1219
-        		}
1220
-        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
1140
+        		
1141
+        		
1221
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1142
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1222
             		//psl = isNaN(psl) ? 0 : psl;
1143
             		//psl = isNaN(psl) ? 0 : psl;
1223
-            		psl = $scope.checkJqos(psl,2);
1144
+            		//psl = $scope.checkJqos(psl,2);
1224
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1145
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1225
-        		}
1226
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
1146
+        		
1147
+        		
1227
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1148
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1228
             		//syl = isNaN(syl) ? 0 : syl;
1149
             		//syl = isNaN(syl) ? 0 : syl;
1229
-            		syl = $scope.checkJqos(syl,2);
1150
+            		//syl = $scope.checkJqos(syl,2);
1230
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1151
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1231
-        		}
1232
-        		if($scope.qualitycheck.mildewCount != null){
1152
+        		
1153
+        		
1233
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1154
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1234
             		//sml = isNaN(sml) ? 0 : sml;
1155
             		//sml = isNaN(sml) ? 0 : sml;
1235
-            		sml = $scope.checkJqos(sml,2);
1156
+            		//sml = $scope.checkJqos(sml,2);
1236
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1157
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1237
-        		}
1238
-        		if($scope.qualitycheckInspection.mildew != null){
1158
+        		
1159
+        		
1239
         			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1160
         			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1240
-        			mbl = $scope.checkJqos(mbl,2);
1161
+        			//mbl = $scope.checkJqos(mbl,2);
1241
             		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1162
             		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1242
-        		}
1243
-        		if($scope.qualitycheckInspection.naturally != null){
1163
+        		
1164
+        		
1244
         			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1165
         			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1245
             		//sml = isNaN(sml) ? 0 : sml;
1166
             		//sml = isNaN(sml) ? 0 : sml;
1246
-        			zrrssl = $scope.checkJqos(zrrssl,2);
1167
+        			//zrrssl = $scope.checkJqos(zrrssl,2);
1247
             		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1168
             		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1248
-        		}
1249
-        		if($scope.qualitycheckInspection.stoving != null){
1169
+        		
1170
+        		
1250
         			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1171
         			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1251
-        			hgrssl = $scope.checkJqos(hgrssl,2);
1172
+        			//hgrssl = $scope.checkJqos(hgrssl,2);
1252
             		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1173
             		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1253
-        		}
1174
+        		
1254
         		
1175
         		
1255
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1176
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1256
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1177
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1257
-        			if(sieveResidue == null || sieveResidue == undefined){
1258
-        				sieveResidue = 0;
1259
-        			}
1260
-        			if(yjzz == null || yjzz == undefined){
1261
-        				yjzz = 0;
1262
-        			}
1263
-        			if(wjzz == null || wjzz == undefined){
1264
-        				wjzz = 0;
1265
-        			}
1266
-        			if(sieveResidue == 0 && yjzz == 0 && wjzz == 0){
1267
-        				$scope.qualitycheckInspection.impurityTotal = null;
1268
-        			}else{
1269
-        				var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1270
-            			zzzl = $scope.checkJqos(zzzl, 1);
1178
+        			
1179
+        			
1180
+        				var zzzl = ((parseFloat($scope.qualitycheckInspection.sieveResidue)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ 
1181
+        						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1182
+            			//zzzl = $scope.checkJqos(zzzl, 1);
1271
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1183
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1272
-        			}
1184
+        			
1273
         			
1185
         			
1274
         			//zzzl.toFixed(1);
1186
         			//zzzl.toFixed(1);
1275
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1187
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1276
         			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
1188
         			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
1277
-        			if(csl == null || csl == undefined){
1278
-        				csl = 0;
1279
-        			}
1280
-        			if(bbl == null || bbl == undefined){
1281
-        				bbl = 0;
1282
-        			}
1283
-        			if(psl == null || psl == undefined){
1284
-        				psl = 0;
1285
-        			}
1286
-        			if(syl == null || syl == undefined){
1287
-        				syl = 0;
1288
-        			}
1289
-        			if(sml == null || sml == undefined){
1290
-        				sml = 0;
1291
-        			}
1292
         			
1189
         			
1293
-        			if(csl == 0 && bbl == 0 && psl == 0 && syl == 0 && sml == 0){
1294
-        				bwslzl = null;
1295
-        				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1296
-        			}else{
1297
-        				var bwslzl = ((parseFloat(psl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1298
-            			bwslzl = $scope.checkJqos(bwslzl, 1);
1190
+        			
1191
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + 
1192
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) +
1193
+        						(parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1194
+            			//bwslzl = $scope.checkJqos(bwslzl, 1);
1299
             			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1195
             			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1300
-        			}
1196
+        			
1301
         			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1197
         			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1302
         			
1198
         			
1303
         		}
1199
         		}
1304
         	
1200
         	
1305
         	
1201
         	
1306
         	}else if(pz == "7107"){
1202
         	}else if(pz == "7107"){
1307
-        		if($scope.qualitycheck.water != null){
1203
+        		
1308
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1204
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1309
-            		sf = $scope.checkJqos(sf,1);
1205
+            		//sf = $scope.checkJqos(sf,1);
1310
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1206
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1311
-        		}
1312
-        		if($scope.qualitycheckInspection.avgLength != null){
1207
+        		
1208
+        		
1313
         			var pjcd = parseFloat($scope.qualitycheckInspection.avgLength);//平均长度
1209
         			var pjcd = parseFloat($scope.qualitycheckInspection.avgLength);//平均长度
1314
-        			pjcd = $scope.checkJqos(pjcd,2);
1315
-            		$scope.qualitycheckInspection.avgLength = $scope.getMath(pjcd);
1316
-        		}
1317
-        		if($scope.qualitycheckInspection.riceGrains != null){
1210
+        			//pjcd = $scope.checkJqos(pjcd,1);
1211
+            		$scope.qualitycheckInspection.avgLength = $scope.getMath1(pjcd);
1212
+        		
1213
+        		
1318
         			var wzml = parseFloat($scope.qualitycheckInspection.riceGrains);//完整米粒
1214
         			var wzml = parseFloat($scope.qualitycheckInspection.riceGrains);//完整米粒
1319
-        			wzml = $scope.checkJqos(wzml,2);
1320
-            		$scope.qualitycheckInspection.riceGrains = $scope.getMath(wzml);
1321
-        		}
1322
-        		if($scope.qualitycheckInspection.brokenriceBig != null){
1215
+        			//wzml = $scope.checkJqos(wzml,1);
1216
+            		$scope.qualitycheckInspection.riceGrains = $scope.getMath1(wzml);
1217
+        		
1218
+        		
1323
         			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1219
         			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1324
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1220
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1325
-        			dsm = $scope.checkJqos(dsm,2);
1221
+        			//dsm = $scope.checkJqos(dsm,2);
1326
             		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1222
             		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1327
-        		}
1328
-        		if($scope.qualitycheckInspection.brokenriceSmall != null){
1223
+        		
1224
+        		
1329
         			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1225
         			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1330
             		//csl = isNaN(csl) ? 0 : csl;
1226
             		//csl = isNaN(csl) ? 0 : csl;
1331
-        			xsm = $scope.checkJqos(xsm,2);
1227
+        			//xsm = $scope.checkJqos(xsm,2);
1332
             		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1228
             		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1333
-        		}
1334
-        		if($scope.qualitycheckInspection.imperfectgrainsContent != null){
1229
+        		
1230
+        		
1335
         			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1231
         			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1336
             		//csl = isNaN(csl) ? 0 : csl;
1232
             		//csl = isNaN(csl) ? 0 : csl;
1337
-        			hl = $scope.checkJqos(hl,2);
1233
+        			//hl = $scope.checkJqos(hl,2);
1338
             		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1234
             		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1339
-        		}
1340
-        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1235
+        		
1236
+        		
1341
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1237
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1342
-            		wsl = $scope.checkJqos(wsl,2);
1238
+            		//wsl = $scope.checkJqos(wsl,2);
1343
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1239
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1344
-        		}
1345
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1240
+        	
1241
+        		
1346
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1242
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1347
-            		csl = $scope.checkJqos(csl,2);
1243
+            		//csl = $scope.checkJqos(csl,2);
1348
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1244
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1349
-        		}
1350
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1245
+        		
1246
+        		
1351
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1247
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1352
-            		bbl = $scope.checkJqos(bbl,2);
1248
+            		//bbl = $scope.checkJqos(bbl,2);
1353
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1249
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1354
-        		}
1355
-        		if($scope.qualitycheckInspection.imperfectgrainsBrownrice != null){
1250
+        		
1251
+        		
1356
         			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1252
         			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1357
-        			cml = $scope.checkJqos(cml,2);
1253
+        			//cml = $scope.checkJqos(cml,2);
1358
             		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1254
             		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1359
-        		}
1360
-        		if($scope.qualitycheck.mildewCount != null){
1255
+        		
1256
+        		
1361
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1257
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1362
             		//sml = isNaN(sml) ? 0 : sml;
1258
             		//sml = isNaN(sml) ? 0 : sml;
1363
-            		sml = $scope.checkJqos(sml,2);
1259
+            		//sml = $scope.checkJqos(sml,2);
1364
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1260
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1365
-        		}
1366
-        		/*if($scope.qualitycheckInspection.machiningaccuracyEssence != null){
1367
-        			var jn = parseFloat($scope.qualitycheckInspection.machiningaccuracyEssence);//精碾
1368
-            		//sml = isNaN(sml) ? 0 : sml;
1369
-        			jn = $scope.checkJqos(jn,2);
1370
-            		$scope.qualitycheckInspection.machiningaccuracyEssence = $scope.getMath(jn);
1371
-        		}
1372
-        		if($scope.qualitycheckInspection.machiningaccuracySuitable != null){
1373
-        			var sn = parseFloat($scope.qualitycheckInspection.machiningaccuracySuitable);//适碾
1374
-            		//sml = isNaN(sml) ? 0 : sml;
1375
-        			sn = $scope.checkJqos(sn,2);
1376
-            		$scope.qualitycheckInspection.machiningaccuracySuitable = $scope.getMath(sn);
1377
-        		}*/
1378
-        		if($scope.qualitycheckInspection.yellowRice != null){
1261
+        		
1262
+        		
1379
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1263
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1380
-            		hlm = $scope.checkJqos(hlm, 1);
1264
+            		//hlm = $scope.checkJqos(hlm, 1);
1381
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1265
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1382
-        		}
1383
-        		if($scope.qualitycheck.intermixingRate != null){
1266
+        		
1267
+        		
1384
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1268
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1385
-            		hhl = $scope.checkJqos(hhl, 1);
1269
+            		//hhl = $scope.checkJqos(hhl, 1);
1386
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1270
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1387
-        		}
1388
-        		if($scope.qualitycheckInspection.impurityBranPowder != null){
1271
+        		
1272
+        		
1389
         			var kf = parseFloat($scope.qualitycheckInspection.impurityBranPowder);//糠粉
1273
         			var kf = parseFloat($scope.qualitycheckInspection.impurityBranPowder);//糠粉
1390
-        			kf = $scope.checkJqos(kf, 2);
1391
-            		$scope.qualitycheckInspection.impurityBranPowder = $scope.getMath1(kf);
1392
-        		}
1393
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1274
+        			//kf = $scope.checkJqos(kf, 2);
1275
+            		$scope.qualitycheckInspection.impurityBranPowder = $scope.getMath(kf);
1276
+        		
1277
+        		
1394
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1278
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1395
-            		yjzz = $scope.checkJqos(yjzz,2);
1279
+            		//yjzz = $scope.checkJqos(yjzz,2);
1396
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1280
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1397
-        		}
1398
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1281
+        		
1282
+        		
1399
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1283
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1400
-            		wjzz = $scope.checkJqos(wjzz,2);
1284
+            		//wjzz = $scope.checkJqos(wjzz,2);
1401
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1285
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1402
-        		}
1403
-        		if($scope.qualitycheckInspection.chalkiness != null){
1286
+        		
1287
+        		
1404
         			var ebd = parseFloat($scope.qualitycheckInspection.chalkiness);//垩白度
1288
         			var ebd = parseFloat($scope.qualitycheckInspection.chalkiness);//垩白度
1405
-        			ebd = $scope.checkJqos(ebd,2);
1406
-            		$scope.qualitycheckInspection.chalkiness = $scope.getMath(ebd);
1407
-        		}
1408
-        		if($scope.qualitycheckInspection.amylose != null){
1289
+        			//ebd = $scope.checkJqos(ebd,1);
1290
+            		$scope.qualitycheckInspection.chalkiness = $scope.getMath1(ebd);
1291
+        		
1292
+        		
1409
         			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1293
         			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1410
-        			zldfhl = $scope.checkJqos(zldfhl,2);
1411
-            		$scope.qualitycheckInspection.amylose = $scope.getMath(zldfhl);
1412
-        		}
1294
+        			//zldfhl = $scope.checkJqos(zldfhl,1);
1295
+            		$scope.qualitycheckInspection.amylose = $scope.getMath1(zldfhl);
1296
+        		
1413
         		
1297
         		
1414
         		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
1298
         		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
1415
-    			if(kf == null || kf == undefined){
1416
-    				kf = 0;
1417
-    			}
1418
-    			if(yjzz == null || yjzz == undefined){
1419
-    				yjzz = 0;
1420
-    			}
1421
-    			if(wjzz == null || wjzz == undefined){
1422
-    				wjzz = 0;
1423
-    			}
1424
-    			if(kf == 0 && yjzz == 0 && wjzz == 0){
1425
-    				$scope.qualitycheckInspection.impurityTotal = null;
1426
-    			}else{
1427
-    				var zzzl = ((parseFloat(kf)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1428
-        			zzzl = $scope.checkJqos(zzzl, 1);
1299
+    			
1300
+    			
1301
+    				var zzzl = ((parseFloat($scope.qualitycheckInspection.impurityBranPowder)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+
1302
+    						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1303
+        			//zzzl = $scope.checkJqos(zzzl, 1);
1429
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1304
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1430
-    			}
1305
+    			
1431
     			
1306
     			
1432
     			//zzzl.toFixed(1);
1307
     			//zzzl.toFixed(1);
1433
     			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1308
     			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1434
     			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
1309
     			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
1435
-    			if(hl == null || hl == undefined){
1436
-    				hl = 0;
1437
-    			}
1438
-    			if(wsl == null || wsl == undefined){
1439
-    				wsl = 0;
1440
-    			}
1441
-    			if(csl == null || csl == undefined){
1442
-    				csl = 0;
1443
-    			}
1444
-    			if(bbl == null || bbl == undefined){
1445
-    				bbl = 0;
1446
-    			}
1447
-    			if(cml == null || cml == undefined){
1448
-    				cml = 0;
1449
-    			}
1450
-    			if(sml == null || sml == undefined){
1451
-    				sml = 0;
1452
-    			}
1453
     			
1310
     			
1454
-    			if(hl == 0 && wsl == 0 && csl == 0 && bbl == 0 && cml == 0 && sml == 0){
1455
-    				bwslzl = null;
1456
-    				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1457
-    			}else{
1458
-    				var bwslzl = ((parseFloat(hl)*100) + (parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(cml)*100) + (parseFloat(sml)*100))/100;
1459
-        			bwslzl = $scope.checkJqos(bwslzl, 1);
1311
+    			
1312
+    				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsContent)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain)*100) +
1313
+    						(parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) +
1314
+    						(parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice)*100) + (parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1315
+        			//bwslzl = $scope.checkJqos(bwslzl, 1);
1460
         			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1316
         			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1461
-    			}
1317
+    			
1462
     			
1318
     			
1463
     			
1319
     			
1464
     			//碎米 = 大碎米 + 小碎米;
1320
     			//碎米 = 大碎米 + 小碎米;
1465
-    			if(dsm == null || dsm == undefined){
1466
-    				dsm = 0;
1467
-    			}
1468
-    			if(xsm == null || xsm == undefined){
1469
-    				xsm = 0;
1470
-    			}
1471
     			
1321
     			
1472
-    			if(xsm == 0 && dsm == 0){
1473
-    				bwslzl = null;
1474
-    				$scope.qualitycheckInspection.brokenriceTotal = bwslzl;
1475
-    			}else{
1476
-    				var bwslzl = ((parseFloat(dsm)*100) + (parseFloat(xsm)*100))/100;
1477
-        			bwslzl = $scope.checkJqos(bwslzl, 1);
1478
-        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(bwslzl);
1479
-    			}
1322
+    				var sm = ((parseFloat($scope.qualitycheckInspection.brokenriceBig)*100) + (parseFloat($scope.qualitycheckInspection.brokenriceSmall)*100))/100;
1323
+        			//sm = $scope.checkJqos(sm, 1);
1324
+        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(sm);
1325
+    			
1480
         	}else if(pz == "7051" || pz == "7038"){
1326
         	}else if(pz == "7051" || pz == "7038"){
1481
-        		if($scope.qualitycheck.water != null){
1327
+        		
1482
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1328
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1483
-            		sf = $scope.checkJqos(sf,1);
1329
+            		//sf = $scope.checkJqos(sf,1);
1484
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1330
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1485
-        		}
1331
+        		
1332
+        	}else if(pz == "2777"){//大豆
1333
+        		
1334
+        		var sf = parseFloat($scope.qualitycheck.water);//水分
1335
+        		$scope.qualitycheck.water = $scope.getMath1(sf);
1336
+        		
1337
+        		var wzll = parseFloat($scope.qualitycheck.goodpart);//完整粒率
1338
+        		$scope.qualitycheck.goodpart = $scope.getMath1(wzll);
1339
+        		
1340
+        		var wsll = parseFloat($scope.qualitycheckInspection.immatureGrainRate);//未熟粒率
1341
+        		$scope.qualitycheckInspection.immatureGrainRate = $scope.getMath1(wsll);
1342
+        		
1343
+        		var psl = parseFloat($scope.qualitycheckInspection.crushingRate);//破碎率
1344
+        		$scope.qualitycheckInspection.crushingRate = $scope.getMath1(psl);
1345
+        		
1346
+        		
1347
+        		var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1348
+        		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1349
+    		
1350
+    			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1351
+        		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1352
+        		
1353
+        		
1354
+        		var zzzl = ((parseFloat(yjzz)*100) + (parseFloat(wjzz)*100))/100;
1355
+    			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1356
+        		
1357
+    			var czfhl = parseFloat($scope.qualitycheckInspection.crudeFatContent);//粗脂肪含量(干基)
1358
+        		$scope.qualitycheckInspection.crudeFatContent = $scope.getMath1(czfhl);
1359
+        		
1360
+        		
1361
+        		var rssl = parseFloat($scope.qualitycheck.hotDamageRatio);//热损伤粒
1362
+        		$scope.qualitycheck.hotDamageRatio = $scope.getMath(rssl);
1363
+        		
1364
+        		var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1365
+        		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1366
+    		
1367
+    		
1368
+        		var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1369
+        		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1370
+        		
1371
+    			var syzdl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽、涨大粒
1372
+        		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syzdl);
1373
+    		
1374
+    			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1375
+        		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1376
+        		
1377
+        		var dsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsFrostbite);//冻伤粒%
1378
+        		$scope.qualitycheckInspection.imperfectgrainsFrostbite = $scope.getMath(dsl);
1379
+        		
1380
+        		
1381
+        		var ssllzl = ((parseFloat($scope.qualitycheck.hotDamageRatio)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100)+
1382
+        				(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) + 
1383
+        				(parseFloat($scope.qualitycheck.mildewCount)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsFrostbite)*100))/100;
1384
+    			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(ssllzl) ? '0.0' : $scope.getMath1(ssllzl);
1385
+        		
1386
+    			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1387
+        		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1486
         	}
1388
         	}
1487
         };
1389
         };
1488
 
1390
 
@@ -1512,6 +1414,7 @@ angular.module('app.storage')
1512
         // 提交表单
1414
         // 提交表单
1513
         var validator = $("#qualitycheck-form").validate();
1415
         var validator = $("#qualitycheck-form").validate();
1514
         $scope.saveData = function (checktype) {
1416
         $scope.saveData = function (checktype) {
1417
+        	$scope.zjzl();
1515
             var zblbId ="";
1418
             var zblbId ="";
1516
             var storeQualityId ="";
1419
             var storeQualityId ="";
1517
             if($scope.qualitycheck.zblb == null || $scope.qualitycheck.zblb == ""){
1420
             if($scope.qualitycheck.zblb == null || $scope.qualitycheck.zblb == ""){

+ 324 - 378
src/main/resources/static/app/storage/controller/qualitycheckCtrl.js

@@ -807,7 +807,7 @@ angular.module('app.storage')
807
         //四舍五入保留两位小数
807
         //四舍五入保留两位小数
808
         $scope.getMath = function(v) {
808
         $scope.getMath = function(v) {
809
             if (isNaN(v) || v == "") {
809
             if (isNaN(v) || v == "") {
810
-                v = 0.00;
810
+                v = "0.00";
811
             } else {
811
             } else {
812
                 v = Math.round(v*100)/100;
812
                 v = Math.round(v*100)/100;
813
                 v = v.toString();
813
                 v = v.toString();
@@ -820,10 +820,11 @@ angular.module('app.storage')
820
             }
820
             }
821
             return v;
821
             return v;
822
         }
822
         }
823
+       
823
         //四舍五入保留一位小数
824
         //四舍五入保留一位小数
824
         $scope.getMath1 = function(v) {
825
         $scope.getMath1 = function(v) {
825
             if (isNaN(v) || v == "") {
826
             if (isNaN(v) || v == "") {
826
-                v = 0.0;
827
+                v = "0.0";
827
             } else {
828
             } else {
828
                 v = Math.round(v*10)/10;
829
                 v = Math.round(v*10)/10;
829
                 v = v.toString();
830
                 v = v.toString();
@@ -842,6 +843,7 @@ angular.module('app.storage')
842
          * v:原数据值
843
          * v:原数据值
843
          * n:要保留的小数位数
844
          * n:要保留的小数位数
844
          */
845
          */
846
+        
845
         $scope.checkJqos = function(v, n) {
847
         $scope.checkJqos = function(v, n) {
846
         	if (!isNaN(v) && v != "") {
848
         	if (!isNaN(v) && v != "") {
847
         	    var pos = v.toString().indexOf(".");
849
         	    var pos = v.toString().indexOf(".");
@@ -895,583 +897,526 @@ angular.module('app.storage')
895
         	return v;
897
         	return v;
896
         }
898
         }
897
 
899
 
900
+       
898
         // 计算总量
901
         // 计算总量
899
         $scope.zjzl = function() {
902
         $scope.zjzl = function() {
903
+
900
         	var pz = $scope.qualitycheck.subType;
904
         	var pz = $scope.qualitycheck.subType;
901
         	if (pz=="3164") {
905
         	if (pz=="3164") {
902
-        		if($scope.qualitycheck.water != null){
906
+        		
903
         			var sf = parseFloat($scope.qualitycheck.water);//水分
907
         			var sf = parseFloat($scope.qualitycheck.water);//水分
904
-            		sf = $scope.checkJqos(sf,1);
908
+            		//sf = $scope.checkJqos(sf,1);
905
             		$scope.qualitycheck.water = $scope.getMath1(sf);
909
             		$scope.qualitycheck.water = $scope.getMath1(sf);
906
-        		}
910
+        		
907
         		/*if($scope.qualitycheckInspection.unitWeight != null){
911
         		/*if($scope.qualitycheckInspection.unitWeight != null){
908
         			var rz = parseFloat($scope.qualitycheckInspection.unitWeight);//容重
912
         			var rz = parseFloat($scope.qualitycheckInspection.unitWeight);//容重
909
             		rz = $scope.checkJqos(rz,1);
913
             		rz = $scope.checkJqos(rz,1);
910
             		$scope.qualitycheckInspection.unitWeight = $scope.getMath1(rz);
914
             		$scope.qualitycheckInspection.unitWeight = $scope.getMath1(rz);
911
         		}*/
915
         		}*/
912
-        		if($scope.qualitycheck.hardIndex != null){
916
+        		
913
         			var xmydzs = parseFloat($scope.qualitycheck.hardIndex);//小麦硬度指数
917
         			var xmydzs = parseFloat($scope.qualitycheck.hardIndex);//小麦硬度指数
914
-            		xmydzs = $scope.checkJqos(xmydzs,1);
918
+            		//xmydzs = $scope.checkJqos(xmydzs,1);
915
             		$scope.qualitycheck.hardIndex = $scope.getMath1(xmydzs);
919
             		$scope.qualitycheck.hardIndex = $scope.getMath1(xmydzs);
916
-        		}
917
-        		if($scope.qualitycheck.mineral != null){
920
+        		
921
+        		
918
         			var mineral = parseFloat($scope.qualitycheck.mineral);//矿物质
922
         			var mineral = parseFloat($scope.qualitycheck.mineral);//矿物质
919
-            		mineral = $scope.checkJqos(mineral,2);
923
+            		//mineral = $scope.checkJqos(mineral,2);
920
             		//mineral = isNaN(mineral) ? 0.00 : mineral;
924
             		//mineral = isNaN(mineral) ? 0.00 : mineral;
921
             		$scope.qualitycheck.mineral = $scope.getMath(mineral);
925
             		$scope.qualitycheck.mineral = $scope.getMath(mineral);
922
-        		}
923
-        		if($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo != null){
926
+        		
927
+        		
924
         			var black = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo);//黒胚粒
928
         			var black = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo);//黒胚粒
925
-            		black = $scope.checkJqos(black,2);
929
+            		//black = $scope.checkJqos(black,2);
926
             		//black = isNaN(black) ? 0 : black;
930
             		//black = isNaN(black) ? 0 : black;
927
             		$scope.qualitycheckInspection.imperfectgrainsScabBlackembryo = $scope.getMath(black);
931
             		$scope.qualitycheckInspection.imperfectgrainsScabBlackembryo = $scope.getMath(black);
928
-        		}
929
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
932
+        		
933
+        		
930
         			var inorganic = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
934
         			var inorganic = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
931
             		//inorganic = isNaN(inorganic) ? 0 : inorganic;
935
             		//inorganic = isNaN(inorganic) ? 0 : inorganic;
932
-            		inorganic = $scope.checkJqos(inorganic,2);
936
+            		//inorganic = $scope.checkJqos(inorganic,2);
933
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(inorganic);
937
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(inorganic);
934
-        		}
935
-        		if($scope.qualitycheckInspection.imperfectgrainsScabGibberella != null){
938
+        	
939
+        		
936
         			var gibberella = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella);//赤霉病粒
940
         			var gibberella = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella);//赤霉病粒
937
             		//gibberella = isNaN(gibberella) ? 0 : gibberella;
941
             		//gibberella = isNaN(gibberella) ? 0 : gibberella;
938
-            		gibberella = $scope.checkJqos(gibberella,2);
942
+            		//gibberella = $scope.checkJqos(gibberella,2);
939
             		$scope.qualitycheckInspection.imperfectgrainsScabGibberella = $scope.getMath(gibberella);
943
             		$scope.qualitycheckInspection.imperfectgrainsScabGibberella = $scope.getMath(gibberella);
940
-        		}
941
-        		if($scope.qualitycheckInspection.imperfectgrainsScabQtbl != null){
944
+        		
945
+        		
942
         			var qtbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl);//其它病粒
946
         			var qtbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl);//其它病粒
943
             		//qtbl = isNaN(qtbl) ? 0 : qtbl;
947
             		//qtbl = isNaN(qtbl) ? 0 : qtbl;
944
-            		qtbl = $scope.checkJqos(qtbl,2);
948
+            		//qtbl = $scope.checkJqos(qtbl,2);
945
             		$scope.qualitycheckInspection.imperfectgrainsScabQtbl = $scope.getMath(qtbl);
949
             		$scope.qualitycheckInspection.imperfectgrainsScabQtbl = $scope.getMath(qtbl);
946
-        		}
947
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
950
+        		
951
+        		
948
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
952
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
949
             		//organic = isNaN(organic) ? 0 : organic;
953
             		//organic = isNaN(organic) ? 0 : organic;
950
-        			organic = $scope.checkJqos(organic,2);
954
+        			//organic = $scope.checkJqos(organic,2);
951
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
955
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
952
-        		}
953
-        		if($scope.qualitycheckInspection.sieveResidue != null){
956
+        		
957
+        		
954
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
958
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
955
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
959
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
956
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
960
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
957
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
961
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
958
-        		}
959
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
962
+        		
963
+        		
960
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
964
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
961
             		//csl = isNaN(csl) ? 0 : csl;
965
             		//csl = isNaN(csl) ? 0 : csl;
962
-            		csl = $scope.checkJqos(csl,2);
966
+            		//csl = $scope.checkJqos(csl,2);
963
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
967
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
964
-        		}
965
-        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
968
+        		
969
+        		
966
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
970
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
967
             		//psl = isNaN(psl) ? 0 : psl;
971
             		//psl = isNaN(psl) ? 0 : psl;
968
-            		psl = $scope.checkJqos(psl,2);
972
+            		//psl = $scope.checkJqos(psl,2);
969
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
973
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
970
-        		}
971
-        		if($scope.qualitycheck.mildewCount != null){
974
+        		
975
+        		
972
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
976
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
973
             		//sml = isNaN(sml) ? 0 : sml;
977
             		//sml = isNaN(sml) ? 0 : sml;
974
-            		sml = $scope.checkJqos(sml,2);
978
+            		//sml = $scope.checkJqos(sml,2);
975
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
979
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
976
-        		}
977
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
980
+        		
981
+        		
978
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
982
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
979
             		//syl = isNaN(syl) ? 0 : syl;
983
             		//syl = isNaN(syl) ? 0 : syl;
980
-            		syl = $scope.checkJqos(syl,2);
984
+            		//syl = $scope.checkJqos(syl,2);
981
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
985
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
982
-        		}
983
         		
986
         		
984
-        		var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;//病斑粒总量%
987
+        		
988
+        		
989
+            		//var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;//病斑粒总量%
990
+            		//bblzl = $scope.checkJqos(bblzl,1);
991
+        			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
992
+    			
985
         		//bblzl = isNaN(bblzl) ? 0 : bblzl;
993
         		//bblzl = isNaN(bblzl) ? 0 : bblzl;
986
         		//$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
994
         		//$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
987
         		
995
         		
988
-        		if($scope.qualitycheckInspection.inputTwo != null){
996
+        		
989
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
997
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
990
-            		zdy = $scope.checkJqos(zdy,1);
998
+            		//zdy = $scope.checkJqos(zdy,1);
991
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
999
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
992
-        		}
1000
+        		
993
         		
1001
         		
994
         		
1002
         		
995
         		
1003
         		
996
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1004
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
997
         			//杂质总量
1005
         			//杂质总量
998
-        			if(mineral == null || mineral == undefined){
999
-        				mineral = 0;
1000
-        			}
1001
-        			if(inorganic == null || inorganic == undefined){
1002
-        				inorganic = 0;
1003
-        			}
1004
-        			if(organic == null || organic == undefined){
1005
-        				organic = 0;
1006
-        			}
1007
-        			if(sieveResidue == null || sieveResidue == undefined){
1008
-        				sieveResidue = 0;
1009
-        			}
1010
-        			var zzzl = ((parseFloat(mineral)*100) + (parseFloat(inorganic)*100)+ (parseFloat(organic)*100)+ (parseFloat(sieveResidue)*100))/100;
1011
-        			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
1012
-        			zzzl = $scope.checkJqos(zzzl,1);
1013
-        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1006
+        			
1007
+        			
1008
+        				var zzzl = ((parseFloat($scope.qualitycheck.mineral)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ 
1009
+        						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100)+ (parseFloat($scope.qualitycheckInspection.sieveResidue)*100))/100;
1010
+            			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
1011
+            			//zzzl = $scope.checkJqos(zzzl,1);
1012
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1013
+        			
1014
+        			
1014
         			//病斑粒总量
1015
         			//病斑粒总量
1015
-        			if(black == null || black == undefined){
1016
-        				black = 0;
1017
-        			}
1018
-        			if(gibberella == null || gibberella == undefined){
1019
-        				gibberella = 0;
1020
-        			}
1021
-        			if(qtbl == null || qtbl == undefined){
1022
-        				qtbl = 0;
1023
-        			}
1024
-        			var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;
1025
-        			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
1026
-        			//bblzl = $scope.checkJqos(bblzl,1);
1027
-        			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
1016
+        			
1017
+        				var bblzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsScabBlackembryo)*100) + 
1018
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScabGibberella)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScabQtbl)*100))/100;
1019
+            			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
1020
+            			//bblzl = $scope.checkJqos(bblzl,1);
1021
+            			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
1022
+        			
1023
+        			
1028
         			//不完善粒总量
1024
         			//不完善粒总量
1029
-        			if(csl == null || csl == undefined){
1030
-        				csl = 0;
1031
-        			}
1032
-        			if(psl == null || psl == undefined){
1033
-        				psl = 0;
1034
-        			}
1035
-        			if(sml == null || sml == undefined){
1036
-        				sml = 0;
1037
-        			}
1038
-        			if(bblzl == null || bblzl == undefined){
1039
-        				bblzl = 0;
1040
-        			}
1041
-        			if(syl == null || syl == undefined){
1042
-        				syl = 0;
1043
-        			}
1044
-        			var bwslzl = ((parseFloat(csl)*100) + (parseFloat(psl)*100)+(parseFloat(sml)*100) + (parseFloat(bblzl)*100) + (parseFloat(syl)*100))/100;
1045
-        			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
1046
-        			bwslzl = $scope.checkJqos(bwslzl,1);
1047
-        			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1025
+        			
1026
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage)*100)
1027
+        						+(parseFloat($scope.qualitycheck.mildewCount)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScabTotal)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100))/100;
1028
+            			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
1029
+            			//bwslzl = $scope.checkJqos(bwslzl,1);
1030
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1031
+        			
1032
+        			
1048
         		}
1033
         		}
1049
         	} else if (pz=="3166") {
1034
         	} else if (pz=="3166") {
1050
-        		if($scope.qualitycheck.water != null){
1035
+        		
1051
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1036
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1052
-            		sf = $scope.checkJqos(sf,1);
1037
+            		//sf = $scope.checkJqos(sf,1);
1053
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1038
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1054
-        		}
1055
-        		if($scope.qualitycheck.huskedRation != null){
1039
+
1040
+            		
1056
         			var ccl = parseFloat($scope.qualitycheck.huskedRation);//出糙率
1041
         			var ccl = parseFloat($scope.qualitycheck.huskedRation);//出糙率
1057
-            		ccl = $scope.checkJqos(ccl,1);
1042
+            		//ccl = $scope.checkJqos(ccl,1);
1058
             		$scope.qualitycheck.huskedRation = $scope.getMath1(ccl);
1043
             		$scope.qualitycheck.huskedRation = $scope.getMath1(ccl);
1059
-        		}
1060
-        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1044
+        		
1045
+        		
1061
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1046
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1062
-            		wsl = $scope.checkJqos(wsl,2);
1047
+            		//wsl = $scope.checkJqos(wsl,2);
1063
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1048
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1064
-        		}
1065
-        		if($scope.qualitycheck.fullGoodRation != null){
1049
+        		
1050
+        		
1066
         			var zjml = parseFloat($scope.qualitycheck.fullGoodRation);//整精米率
1051
         			var zjml = parseFloat($scope.qualitycheck.fullGoodRation);//整精米率
1067
-            		zjml = $scope.checkJqos(zjml,1);
1052
+            		//zjml = $scope.checkJqos(zjml,1);
1068
             		$scope.qualitycheck.fullGoodRation = $scope.getMath1(zjml);
1053
             		$scope.qualitycheck.fullGoodRation = $scope.getMath1(zjml);
1069
-        		}
1070
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1054
+        		
1055
+        		
1071
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1056
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1072
-            		csl = $scope.checkJqos(csl,2);
1057
+            		//csl = $scope.checkJqos(csl,2);
1073
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1058
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1074
-        		}
1075
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1059
+        		
1060
+        		
1076
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1061
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1077
-            		bbl = $scope.checkJqos(bbl,2);
1062
+            		//bbl = $scope.checkJqos(bbl,2);
1078
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1063
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1079
-        		}
1080
-        		if($scope.qualitycheckInspection.sieveResidue != null){
1064
+        		
1065
+        		
1081
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1066
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1082
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1067
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
1083
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1068
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1084
-        		}
1085
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null ){
1069
+        		
1070
+        		
1086
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒
1071
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒
1087
-            		syl = $scope.checkJqos(syl,2);
1072
+            		//syl = $scope.checkJqos(syl,2);
1088
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1073
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1089
-        		}
1090
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1074
+        		
1075
+        		
1091
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1076
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1092
-            		yjzz = $scope.checkJqos(yjzz,2);
1077
+            		//yjzz = $scope.checkJqos(yjzz,2);
1093
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1078
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1094
-        		}
1095
-        		if($scope.qualitycheck.mildewCount != null){
1079
+        		
1080
+        		
1096
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒
1081
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒
1097
-            		sml = $scope.checkJqos(sml,2);
1082
+            		//sml = $scope.checkJqos(sml,2);
1098
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1083
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1099
-        		}
1100
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1084
+        		
1085
+        		
1101
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1086
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1102
-            		wjzz = $scope.checkJqos(wjzz,2);
1087
+            		//wjzz = $scope.checkJqos(wjzz,2);
1103
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1088
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1104
-        		}
1105
-        		if($scope.qualitycheck.outHuskedRation != null){
1089
+        		
1090
+        		
1106
         			var gwcm = parseFloat($scope.qualitycheck.outHuskedRation);//谷外糙米
1091
         			var gwcm = parseFloat($scope.qualitycheck.outHuskedRation);//谷外糙米
1107
-            		gwcm = $scope.checkJqos(gwcm, 1);
1092
+            		//gwcm = $scope.checkJqos(gwcm, 1);
1108
             		$scope.qualitycheck.outHuskedRation = $scope.getMath1(gwcm);
1093
             		$scope.qualitycheck.outHuskedRation = $scope.getMath1(gwcm);
1109
-        		}
1110
-        		if($scope.qualitycheckInspection.riceYield != null){
1094
+        		
1095
+        		
1111
         			var cml = parseFloat($scope.qualitycheckInspection.riceYield);//出米率
1096
         			var cml = parseFloat($scope.qualitycheckInspection.riceYield);//出米率
1112
-            		cml = $scope.checkJqos(cml, 1);
1097
+            		//cml = $scope.checkJqos(cml, 1);
1113
             		$scope.qualitycheckInspection.riceYield = $scope.getMath1(cml);
1098
             		$scope.qualitycheckInspection.riceYield = $scope.getMath1(cml);
1114
-        		}
1115
-        		if($scope.qualitycheckInspection.yellowRice != null){
1099
+        		
1100
+        		
1116
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1101
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1117
-            		hlm = $scope.checkJqos(hlm, 1);
1102
+            		//hlm = $scope.checkJqos(hlm, 1);
1118
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1103
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1119
-        		}
1120
-        		if($scope.qualitycheck.intermixingRate != null){
1104
+        		
1105
+        		
1121
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1106
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1122
-            		hhl = $scope.checkJqos(hhl, 1);
1107
+            		//hhl = $scope.checkJqos(hhl, 1);
1123
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1108
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1124
-        		}
1125
-        		if($scope.qualitycheckInspection.inputTwo != null){
1109
+        		
1110
+        		
1126
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1111
         			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1127
-            		zdy = $scope.checkJqos(zdy, 1);
1112
+            		//zdy = $scope.checkJqos(zdy, 1);
1128
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1113
             		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1129
-        		}
1130
-        		
1131
         		
1114
         		
1132
         		
1115
         		
1133
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1116
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1134
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1117
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1135
-        			if(sieveResidue == null || sieveResidue == undefined){
1136
-        				sieveResidue = 0;
1137
-        			}
1138
-        			if(yjzz == null || yjzz == undefined){
1139
-        				yjzz = 0;
1140
-        			}
1141
-        			if(wjzz == null || wjzz == undefined){
1142
-        				wjzz = 0;
1143
-        			}
1144
         			
1118
         			
1145
-        			var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1146
-        			zzzl = $scope.checkJqos(zzzl, 1);
1147
-        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1119
+        				var zzzl = ((parseFloat($scope.qualitycheckInspection.sieveResidue)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ (parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1120
+            			//zzzl = $scope.checkJqos(zzzl, 1);
1121
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1122
+        			
1123
+        			
1148
         			//zzzl.toFixed(1);
1124
         			//zzzl.toFixed(1);
1149
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1125
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1150
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1126
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1151
-        			if(wsl == null || wsl == undefined){
1152
-        				wsl = 0;
1153
-        			}
1154
-        			if(csl == null || csl == undefined){
1155
-        				csl = 0;
1156
-        			}
1157
-        			if(bbl == null || bbl == undefined){
1158
-        				bbl = 0;
1159
-        			}
1160
-        			if(syl == null || syl == undefined){
1161
-        				syl = 0;
1162
-        			}
1163
-        			if(sml == null || sml == undefined){
1164
-        				sml = 0;
1165
-        			}
1166
-        			var bwslzl = ((parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1167
-        			bwslzl = $scope.checkJqos(bwslzl, 1);
1168
-        			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1127
+        			
1128
+        			
1129
+        			
1130
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + 
1131
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) + (parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1132
+            			//bwslzl = $scope.checkJqos(bwslzl, 1);
1133
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1134
+        			
1135
+        			
1169
         		}
1136
         		}
1170
         	}else if(pz=="3165"){
1137
         	}else if(pz=="3165"){
1171
 
1138
 
1172
-
1173
-        		if($scope.qualitycheck.water != null){
1139
+        		
1174
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1140
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1175
-            		sf = $scope.checkJqos(sf,1);
1141
+            		//sf = $scope.checkJqos(sf,1);
1176
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1142
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1177
-        		}
1178
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1143
+        		
1144
+        		
1179
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1145
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1180
-        			yjzz = $scope.checkJqos(yjzz,2);
1146
+        			//yjzz = $scope.checkJqos(yjzz,2);
1181
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1147
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1182
-        		}
1183
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1148
+        		
1149
+        		
1184
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1150
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1185
-            		wjzz = $scope.checkJqos(wjzz,2);
1151
+            		//wjzz = $scope.checkJqos(wjzz,2);
1186
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1152
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1187
-        		}
1188
-        		if($scope.qualitycheckInspection.sieveResidue != null){
1153
+        		
1154
+        		
1189
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1155
         			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1190
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1156
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1191
-            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1157
+            		//sieveResidue = $scope.checkJqos(sieveResidue,2);
1192
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1158
             		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1193
-        		}
1194
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1159
+        		
1160
+        		
1195
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1161
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1196
             		//csl = isNaN(csl) ? 0 : csl;
1162
             		//csl = isNaN(csl) ? 0 : csl;
1197
-            		csl = $scope.checkJqos(csl,2);
1163
+            		//csl = $scope.checkJqos(csl,2);
1198
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1164
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1199
-        		}
1200
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1165
+        		
1166
+        		
1201
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1167
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1202
-            		bbl = $scope.checkJqos(bbl,2);
1168
+            		//bbl = $scope.checkJqos(bbl,2);
1203
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1169
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1204
-        		}
1205
-        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
1170
+        		
1171
+        		
1206
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1172
         			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1207
             		//psl = isNaN(psl) ? 0 : psl;
1173
             		//psl = isNaN(psl) ? 0 : psl;
1208
-            		psl = $scope.checkJqos(psl,2);
1174
+            		//psl = $scope.checkJqos(psl,2);
1209
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1175
             		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1210
-        		}
1211
-        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
1176
+        		
1177
+        		
1212
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1178
         			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1213
             		//syl = isNaN(syl) ? 0 : syl;
1179
             		//syl = isNaN(syl) ? 0 : syl;
1214
-            		syl = $scope.checkJqos(syl,2);
1180
+            		//syl = $scope.checkJqos(syl,2);
1215
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1181
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1216
-        		}
1217
-        		if($scope.qualitycheck.mildewCount != null){
1182
+        		
1183
+        		
1218
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1184
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1219
             		//sml = isNaN(sml) ? 0 : sml;
1185
             		//sml = isNaN(sml) ? 0 : sml;
1220
-            		sml = $scope.checkJqos(sml,2);
1186
+            		//sml = $scope.checkJqos(sml,2);
1221
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1187
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1222
-        		}
1223
-        		if($scope.qualitycheckInspection.mildew != null){
1188
+        		
1189
+        		
1224
         			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1190
         			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1225
-        			mbl = $scope.checkJqos(mbl,2);
1191
+        			//mbl = $scope.checkJqos(mbl,2);
1226
             		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1192
             		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1227
-        		}
1228
-        		if($scope.qualitycheckInspection.naturally != null){
1193
+        		
1194
+        		
1229
         			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1195
         			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1230
             		//sml = isNaN(sml) ? 0 : sml;
1196
             		//sml = isNaN(sml) ? 0 : sml;
1231
-        			zrrssl = $scope.checkJqos(zrrssl,2);
1197
+        			//zrrssl = $scope.checkJqos(zrrssl,2);
1232
             		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1198
             		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1233
-        		}
1234
-        		if($scope.qualitycheckInspection.stoving != null){
1199
+        		
1200
+        		
1235
         			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1201
         			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1236
-        			hgrssl = $scope.checkJqos(hgrssl,2);
1202
+        			//hgrssl = $scope.checkJqos(hgrssl,2);
1237
             		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1203
             		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1238
-        		}
1204
+        		
1239
         		
1205
         		
1240
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1206
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1241
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1207
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1242
-        			if(sieveResidue == null || sieveResidue == undefined){
1243
-        				sieveResidue = 0;
1244
-        			}
1245
-        			if(yjzz == null || yjzz == undefined){
1246
-        				yjzz = 0;
1247
-        			}
1248
-        			if(wjzz == null || wjzz == undefined){
1249
-        				wjzz = 0;
1250
-        			}
1251
-        			if(sieveResidue == 0 && yjzz == 0 && wjzz == 0){
1252
-        				$scope.qualitycheckInspection.impurityTotal = null;
1253
-        			}else{
1254
-        				var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1255
-            			zzzl = $scope.checkJqos(zzzl, 1);
1208
+        			
1209
+        			
1210
+        				var zzzl = ((parseFloat($scope.qualitycheckInspection.sieveResidue)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+ 
1211
+        						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1212
+            			//zzzl = $scope.checkJqos(zzzl, 1);
1256
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1213
             			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1257
-        			}
1214
+        			
1258
         			
1215
         			
1259
         			//zzzl.toFixed(1);
1216
         			//zzzl.toFixed(1);
1260
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1217
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1261
         			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
1218
         			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
1262
-        			if(csl == null || csl == undefined){
1263
-        				csl = 0;
1264
-        			}
1265
-        			if(bbl == null || bbl == undefined){
1266
-        				bbl = 0;
1267
-        			}
1268
-        			if(psl == null || psl == undefined){
1269
-        				psl = 0;
1270
-        			}
1271
-        			if(syl == null || syl == undefined){
1272
-        				syl = 0;
1273
-        			}
1274
-        			if(sml == null || sml == undefined){
1275
-        				sml = 0;
1276
-        			}
1277
         			
1219
         			
1278
-        			if(csl == 0 && bbl == 0 && psl == 0 && syl == 0 && sml == 0){
1279
-        				bwslzl = null;
1280
-        				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1281
-        			}else{
1282
-        				var bwslzl = ((parseFloat(psl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1283
-            			bwslzl = $scope.checkJqos(bwslzl, 1);
1220
+        			
1221
+        				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + 
1222
+        						(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) +
1223
+        						(parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1224
+            			//bwslzl = $scope.checkJqos(bwslzl, 1);
1284
             			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1225
             			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1285
-        			}
1226
+        			
1286
         			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1227
         			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1287
         			
1228
         			
1288
         		}
1229
         		}
1289
         	
1230
         	
1290
         	
1231
         	
1291
-        	
1292
         	}else if(pz == "7107"){
1232
         	}else if(pz == "7107"){
1293
-
1294
-        		if($scope.qualitycheck.water != null){
1233
+        		
1295
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1234
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1296
-            		sf = $scope.checkJqos(sf,1);
1235
+            		//sf = $scope.checkJqos(sf,1);
1297
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1236
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1298
-        		}
1299
-        		if($scope.qualitycheckInspection.avgLength != null){
1237
+        		
1238
+        		
1300
         			var pjcd = parseFloat($scope.qualitycheckInspection.avgLength);//平均长度
1239
         			var pjcd = parseFloat($scope.qualitycheckInspection.avgLength);//平均长度
1301
-        			pjcd = $scope.checkJqos(pjcd,2);
1302
-            		$scope.qualitycheckInspection.avgLength = $scope.getMath(pjcd);
1303
-        		}
1304
-        		if($scope.qualitycheckInspection.riceGrains != null){
1240
+        			//pjcd = $scope.checkJqos(pjcd,1);
1241
+            		$scope.qualitycheckInspection.avgLength = $scope.getMath1(pjcd);
1242
+        		
1243
+        		
1305
         			var wzml = parseFloat($scope.qualitycheckInspection.riceGrains);//完整米粒
1244
         			var wzml = parseFloat($scope.qualitycheckInspection.riceGrains);//完整米粒
1306
-        			wzml = $scope.checkJqos(wzml,2);
1307
-            		$scope.qualitycheckInspection.riceGrains = $scope.getMath(wzml);
1308
-        		}
1309
-        		if($scope.qualitycheckInspection.brokenriceBig != null){
1245
+        			//wzml = $scope.checkJqos(wzml,1);
1246
+            		$scope.qualitycheckInspection.riceGrains = $scope.getMath1(wzml);
1247
+        		
1248
+        		
1310
         			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1249
         			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1311
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1250
             		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1312
-        			dsm = $scope.checkJqos(dsm,2);
1251
+        			//dsm = $scope.checkJqos(dsm,2);
1313
             		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1252
             		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1314
-        		}
1315
-        		if($scope.qualitycheckInspection.brokenriceSmall != null){
1253
+        		
1254
+        		
1316
         			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1255
         			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1317
             		//csl = isNaN(csl) ? 0 : csl;
1256
             		//csl = isNaN(csl) ? 0 : csl;
1318
-        			xsm = $scope.checkJqos(xsm,2);
1257
+        			//xsm = $scope.checkJqos(xsm,2);
1319
             		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1258
             		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1320
-        		}
1321
-        		if($scope.qualitycheckInspection.imperfectgrainsContent != null){
1259
+        		
1260
+        		
1322
         			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1261
         			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1323
             		//csl = isNaN(csl) ? 0 : csl;
1262
             		//csl = isNaN(csl) ? 0 : csl;
1324
-        			hl = $scope.checkJqos(hl,2);
1263
+        			//hl = $scope.checkJqos(hl,2);
1325
             		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1264
             		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1326
-        		}
1327
-        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1265
+        		
1266
+        		
1328
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1267
         			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1329
-            		wsl = $scope.checkJqos(wsl,2);
1268
+            		//wsl = $scope.checkJqos(wsl,2);
1330
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1269
             		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1331
-        		}
1332
-        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1270
+        	
1271
+        		
1333
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1272
         			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1334
-            		csl = $scope.checkJqos(csl,2);
1273
+            		//csl = $scope.checkJqos(csl,2);
1335
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1274
             		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1336
-        		}
1337
-        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1275
+        		
1276
+        		
1338
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1277
         			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1339
-            		bbl = $scope.checkJqos(bbl,2);
1278
+            		//bbl = $scope.checkJqos(bbl,2);
1340
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1279
             		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1341
-        		}
1342
-        		if($scope.qualitycheckInspection.imperfectgrainsBrownrice != null){
1280
+        		
1281
+        		
1343
         			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1282
         			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1344
-        			cml = $scope.checkJqos(cml,2);
1283
+        			//cml = $scope.checkJqos(cml,2);
1345
             		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1284
             		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1346
-        		}
1347
-        		if($scope.qualitycheck.mildewCount != null){
1285
+        		
1286
+        		
1348
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1287
         			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1349
             		//sml = isNaN(sml) ? 0 : sml;
1288
             		//sml = isNaN(sml) ? 0 : sml;
1350
-            		sml = $scope.checkJqos(sml,2);
1289
+            		//sml = $scope.checkJqos(sml,2);
1351
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1290
             		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1352
-        		}
1353
-        		/*if($scope.qualitycheckInspection.machiningaccuracyEssence != null){
1354
-        			var jn = parseFloat($scope.qualitycheckInspection.machiningaccuracyEssence);//精碾
1355
-            		//sml = isNaN(sml) ? 0 : sml;
1356
-        			jn = $scope.checkJqos(jn,2);
1357
-            		$scope.qualitycheckInspection.machiningaccuracyEssence = $scope.getMath(jn);
1358
-        		}
1359
-        		if($scope.qualitycheckInspection.machiningaccuracySuitable != null){
1360
-        			var sn = parseFloat($scope.qualitycheckInspection.machiningaccuracySuitable);//适碾
1361
-            		//sml = isNaN(sml) ? 0 : sml;
1362
-        			sn = $scope.checkJqos(sn,2);
1363
-            		$scope.qualitycheckInspection.machiningaccuracySuitable = $scope.getMath(sn);
1364
-        		}*/
1365
-        		if($scope.qualitycheckInspection.yellowRice != null){
1291
+        		
1292
+        		
1366
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1293
         			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1367
-            		hlm = $scope.checkJqos(hlm, 1);
1294
+            		//hlm = $scope.checkJqos(hlm, 1);
1368
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1295
             		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1369
-        		}
1370
-        		if($scope.qualitycheck.intermixingRate != null){
1296
+        		
1297
+        		
1371
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1298
         			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1372
-            		hhl = $scope.checkJqos(hhl, 1);
1299
+            		//hhl = $scope.checkJqos(hhl, 1);
1373
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1300
             		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1374
-        		}
1375
-        		if($scope.qualitycheckInspection.impurityBranPowder != null){
1301
+        		
1302
+        		
1376
         			var kf = parseFloat($scope.qualitycheckInspection.impurityBranPowder);//糠粉
1303
         			var kf = parseFloat($scope.qualitycheckInspection.impurityBranPowder);//糠粉
1377
-        			kf = $scope.checkJqos(kf, 2);
1378
-            		$scope.qualitycheckInspection.impurityBranPowder = $scope.getMath1(kf);
1379
-        		}
1380
-        		if($scope.qualitycheckInspection.impurityOrganic != null){
1304
+        			//kf = $scope.checkJqos(kf, 2);
1305
+            		$scope.qualitycheckInspection.impurityBranPowder = $scope.getMath(kf);
1306
+        		
1307
+        		
1381
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1308
         			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1382
-            		yjzz = $scope.checkJqos(yjzz,2);
1309
+            		//yjzz = $scope.checkJqos(yjzz,2);
1383
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1310
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1384
-        		}
1385
-        		if($scope.qualitycheckInspection.impurityInorganic != null){
1311
+        		
1312
+        		
1386
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1313
         			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1387
-            		wjzz = $scope.checkJqos(wjzz,2);
1314
+            		//wjzz = $scope.checkJqos(wjzz,2);
1388
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1315
             		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1389
-        		}
1390
-        		if($scope.qualitycheckInspection.chalkiness != null){
1316
+        		
1317
+        		
1391
         			var ebd = parseFloat($scope.qualitycheckInspection.chalkiness);//垩白度
1318
         			var ebd = parseFloat($scope.qualitycheckInspection.chalkiness);//垩白度
1392
-        			ebd = $scope.checkJqos(ebd,2);
1393
-            		$scope.qualitycheckInspection.chalkiness = $scope.getMath(ebd);
1394
-        		}
1395
-        		if($scope.qualitycheckInspection.amylose != null){
1319
+        			//ebd = $scope.checkJqos(ebd,1);
1320
+            		$scope.qualitycheckInspection.chalkiness = $scope.getMath1(ebd);
1321
+        		
1322
+        		
1396
         			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1323
         			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1397
-        			zldfhl = $scope.checkJqos(zldfhl,2);
1398
-            		$scope.qualitycheckInspection.amylose = $scope.getMath(zldfhl);
1399
-        		}
1324
+        			//zldfhl = $scope.checkJqos(zldfhl,1);
1325
+            		$scope.qualitycheckInspection.amylose = $scope.getMath1(zldfhl);
1326
+        		
1400
         		
1327
         		
1401
         		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
1328
         		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
1402
-    			if(kf == null || kf == undefined){
1403
-    				kf = 0;
1404
-    			}
1405
-    			if(yjzz == null || yjzz == undefined){
1406
-    				yjzz = 0;
1407
-    			}
1408
-    			if(wjzz == null || wjzz == undefined){
1409
-    				wjzz = 0;
1410
-    			}
1411
-    			if(kf == 0 && yjzz == 0 && wjzz == 0){
1412
-    				$scope.qualitycheckInspection.impurityTotal = null;
1413
-    			}else{
1414
-    				var zzzl = ((parseFloat(kf)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1415
-        			zzzl = $scope.checkJqos(zzzl, 1);
1329
+    			
1330
+    			
1331
+    				var zzzl = ((parseFloat($scope.qualitycheckInspection.impurityBranPowder)*100) + (parseFloat($scope.qualitycheckInspection.impurityOrganic)*100)+
1332
+    						(parseFloat($scope.qualitycheckInspection.impurityInorganic)*100))/100;
1333
+        			//zzzl = $scope.checkJqos(zzzl, 1);
1416
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1334
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1417
-    			}
1335
+    			
1418
     			
1336
     			
1419
     			//zzzl.toFixed(1);
1337
     			//zzzl.toFixed(1);
1420
     			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1338
     			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1421
     			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
1339
     			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
1422
-    			if(hl == null || hl == undefined){
1423
-    				hl = 0;
1424
-    			}
1425
-    			if(wsl == null || wsl == undefined){
1426
-    				wsl = 0;
1427
-    			}
1428
-    			if(csl == null || csl == undefined){
1429
-    				csl = 0;
1430
-    			}
1431
-    			if(bbl == null || bbl == undefined){
1432
-    				bbl = 0;
1433
-    			}
1434
-    			if(cml == null || cml == undefined){
1435
-    				cml = 0;
1436
-    			}
1437
-    			if(sml == null || sml == undefined){
1438
-    				sml = 0;
1439
-    			}
1440
     			
1340
     			
1441
-    			if(hl == 0 && wsl == 0 && csl == 0 && bbl == 0 && cml == 0 && sml == 0){
1442
-    				bwslzl = null;
1443
-    				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1444
-    			}else{
1445
-    				var bwslzl = ((parseFloat(hl)*100) + (parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(cml)*100) + (parseFloat(sml)*100))/100;
1446
-        			bwslzl = $scope.checkJqos(bwslzl, 1);
1341
+    			
1342
+    				var bwslzl = ((parseFloat($scope.qualitycheckInspection.imperfectgrainsContent)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain)*100) +
1343
+    						(parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) +
1344
+    						(parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice)*100) + (parseFloat($scope.qualitycheck.mildewCount)*100))/100;
1345
+        			//bwslzl = $scope.checkJqos(bwslzl, 1);
1447
         			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1346
         			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1448
-    			}
1347
+    			
1449
     			
1348
     			
1450
     			
1349
     			
1451
     			//碎米 = 大碎米 + 小碎米;
1350
     			//碎米 = 大碎米 + 小碎米;
1452
-    			if(dsm == null || dsm == undefined){
1453
-    				dsm = 0;
1454
-    			}
1455
-    			if(xsm == null || xsm == undefined){
1456
-    				xsm = 0;
1457
-    			}
1458
     			
1351
     			
1459
-    			if(xsm == 0 && dsm == 0){
1460
-    				bwslzl = null;
1461
-    				$scope.qualitycheckInspection.brokenriceTotal = bwslzl;
1462
-    			}else{
1463
-    				var bwslzl = ((parseFloat(dsm)*100) + (parseFloat(xsm)*100))/100;
1464
-        			bwslzl = $scope.checkJqos(bwslzl, 1);
1465
-        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(bwslzl);
1466
-    			}
1467
-        	
1352
+    				var sm = ((parseFloat($scope.qualitycheckInspection.brokenriceBig)*100) + (parseFloat($scope.qualitycheckInspection.brokenriceSmall)*100))/100;
1353
+        			//sm = $scope.checkJqos(sm, 1);
1354
+        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(sm);
1355
+    			
1468
         	}else if(pz == "7051" || pz == "7038"){
1356
         	}else if(pz == "7051" || pz == "7038"){
1469
-        		if($scope.qualitycheck.water != null){
1357
+        		
1470
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1358
         			var sf = parseFloat($scope.qualitycheck.water);//水分
1471
-            		sf = $scope.checkJqos(sf,1);
1359
+            		//sf = $scope.checkJqos(sf,1);
1472
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1360
             		$scope.qualitycheck.water = $scope.getMath1(sf);
1473
-        		}
1361
+        		
1362
+        	}else if(pz == "2777"){//大豆
1363
+        		
1364
+        		var sf = parseFloat($scope.qualitycheck.water);//水分
1365
+        		$scope.qualitycheck.water = $scope.getMath1(sf);
1366
+        		
1367
+        		var wzll = parseFloat($scope.qualitycheck.goodpart);//完整粒率
1368
+        		$scope.qualitycheck.goodpart = $scope.getMath1(wzll);
1369
+        		
1370
+        		var wsll = parseFloat($scope.qualitycheckInspection.immatureGrainRate);//未熟粒率
1371
+        		$scope.qualitycheckInspection.immatureGrainRate = $scope.getMath1(wsll);
1372
+        		
1373
+        		var psl = parseFloat($scope.qualitycheckInspection.crushingRate);//破碎率
1374
+        		$scope.qualitycheckInspection.crushingRate = $scope.getMath1(psl);
1375
+        		
1376
+        		
1377
+        		var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1378
+        		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1379
+    		
1380
+    			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1381
+        		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1382
+        		
1383
+        		
1384
+        		var zzzl = ((parseFloat(yjzz)*100) + (parseFloat(wjzz)*100))/100;
1385
+    			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1386
+        		
1387
+    			var czfhl = parseFloat($scope.qualitycheckInspection.crudeFatContent);//粗脂肪含量(干基)
1388
+        		$scope.qualitycheckInspection.crudeFatContent = $scope.getMath1(czfhl);
1389
+        		
1390
+        		
1391
+        		var rssl = parseFloat($scope.qualitycheck.hotDamageRatio);//热损伤粒
1392
+        		$scope.qualitycheck.hotDamageRatio = $scope.getMath(rssl);
1393
+        		
1394
+        		var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1395
+        		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1396
+    		
1397
+    		
1398
+        		var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1399
+        		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1400
+        		
1401
+    			var syzdl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽、涨大粒
1402
+        		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syzdl);
1403
+    		
1404
+    			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1405
+        		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1406
+        		
1407
+        		var dsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsFrostbite);//冻伤粒%
1408
+        		$scope.qualitycheckInspection.imperfectgrainsFrostbite = $scope.getMath(dsl);
1409
+        		
1410
+        		
1411
+        		var ssllzl = ((parseFloat($scope.qualitycheck.hotDamageRatio)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel)*100)+
1412
+        				(parseFloat($scope.qualitycheckInspection.imperfectgrainsScab)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel)*100) + 
1413
+        				(parseFloat($scope.qualitycheck.mildewCount)*100) + (parseFloat($scope.qualitycheckInspection.imperfectgrainsFrostbite)*100))/100;
1414
+    			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(ssllzl) ? '0.0' : $scope.getMath1(ssllzl);
1415
+        		
1416
+    			var zdy = parseFloat($scope.qualitycheckInspection.inputTwo);//自定义属性
1417
+        		$scope.qualitycheckInspection.inputTwo = $scope.getMath1(zdy);
1474
         	}
1418
         	}
1419
+        
1475
         };
1420
         };
1476
 
1421
 
1477
         if($stateParams.isNotEdit != null){
1422
         if($stateParams.isNotEdit != null){
@@ -1500,7 +1445,8 @@ angular.module('app.storage')
1500
         // 提交表单
1445
         // 提交表单
1501
         var validator = $("#qualitycheck-form").validate();
1446
         var validator = $("#qualitycheck-form").validate();
1502
         $scope.saveData = function (checktype) {
1447
         $scope.saveData = function (checktype) {
1503
-            var zblbId ="";
1448
+        	$scope.zjzl();
1449
+        	var zblbId ="";
1504
             var storeQualityId ="";
1450
             var storeQualityId ="";
1505
             if($scope.qualitycheck.zblb == null || $scope.qualitycheck.zblb == ""){
1451
             if($scope.qualitycheck.zblb == null || $scope.qualitycheck.zblb == ""){
1506
                 alert("请选择指标类别!");
1452
                 alert("请选择指标类别!");

+ 16 - 16
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-firstcheck-edit.html

@@ -766,14 +766,14 @@
766
 													<td class="text-center" colspan="2">水分%</td>
766
 													<td class="text-center" colspan="2">水分%</td>
767
 													<td>
767
 													<td>
768
 														<label class="input">
768
 														<label class="input">
769
-															<input type="text" ng-model="qualitycheck.water" name="water" ng-readonly="isNotEdit">
769
+															<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
770
 														</label>
770
 														</label>
771
 													</td>
771
 													</td>
772
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
772
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
773
 													<td class="text-center" colspan="2">总量</td>
773
 													<td class="text-center" colspan="2">总量</td>
774
 													<td class="text-center" colspan="2">
774
 													<td class="text-center" colspan="2">
775
 														<label class="input">
775
 														<label class="input">
776
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
776
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" ng-blur="zjzl()" name="imperfectgrainsTotal" ng-readonly="true">
777
 														</label>
777
 														</label>
778
 													</td>
778
 													</td>
779
 												</tr>
779
 												</tr>
@@ -781,14 +781,14 @@
781
 													<td class="text-center" colspan="2">完整粒率%</td>
781
 													<td class="text-center" colspan="2">完整粒率%</td>
782
 													<td>
782
 													<td>
783
 														<label class="input">
783
 														<label class="input">
784
-															<input type="text" ng-model="qualitycheck.goodpart" name="goodpart" ng-readonly="isNotEdit">
784
+															<input type="text" ng-model="qualitycheck.goodpart" name="goodpart" ng-blur="zjzl()" ng-readonly="isNotEdit">
785
 														</label>
785
 														</label>
786
 													</td>
786
 													</td>
787
 													<!-- <td></td> -->
787
 													<!-- <td></td> -->
788
 													<td class="text-center" colspan="2">热损伤粒%</td>
788
 													<td class="text-center" colspan="2">热损伤粒%</td>
789
 													<td class="text-center" colspan="2">
789
 													<td class="text-center" colspan="2">
790
 														<label class="input">
790
 														<label class="input">
791
-															<input type="text" ng-model="qualitycheck.hotDamageRatio" name="hotDamageRatio" ng-readonly="isNotEdit">
791
+															<input type="text" ng-model="qualitycheck.hotDamageRatio" name="hotDamageRatio" ng-blur="zjzl()" ng-readonly="isNotEdit">
792
 														</label>
792
 														</label>
793
 													</td>
793
 													</td>
794
 												</tr>
794
 												</tr>
@@ -796,14 +796,14 @@
796
 													<td class="text-center" colspan="2">未熟粒率%</td>
796
 													<td class="text-center" colspan="2">未熟粒率%</td>
797
 													<td>
797
 													<td>
798
 														<label class="input">
798
 														<label class="input">
799
-															<input type="text" ng-model="qualitycheckInspection.immatureGrainRate" name="immatureGrainRate" ng-readonly="isNotEdit">
799
+															<input type="text" ng-model="qualitycheckInspection.immatureGrainRate"  ng-blur="zjzl()" name="immatureGrainRate" ng-readonly="isNotEdit">
800
 														</label>
800
 														</label>
801
 													</td>
801
 													</td>
802
 													<!-- <td></td> -->
802
 													<!-- <td></td> -->
803
 													<td class="text-center" colspan="2">虫蚀粒</td>
803
 													<td class="text-center" colspan="2">虫蚀粒</td>
804
 													<td class="text-center" colspan="2">
804
 													<td class="text-center" colspan="2">
805
 														<label class="input">
805
 														<label class="input">
806
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
806
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" ng-blur="zjzl()" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
807
 														</label>
807
 														</label>
808
 													</td>
808
 													</td>
809
 												</tr>
809
 												</tr>
@@ -811,14 +811,14 @@
811
 													<td class="text-center" colspan="2">破碎率%</td>
811
 													<td class="text-center" colspan="2">破碎率%</td>
812
 													<td>
812
 													<td>
813
 														<label class="input">
813
 														<label class="input">
814
-															<input type="text" ng-model="qualitycheckInspection.crushingRate" name="crushingRate" ng-readonly="isNotEdit">
814
+															<input type="text" ng-model="qualitycheckInspection.crushingRate" ng-blur="zjzl()" name="crushingRate" ng-readonly="isNotEdit">
815
 														</label>
815
 														</label>
816
 													</td>
816
 													</td>
817
 													<!-- <td></td> -->
817
 													<!-- <td></td> -->
818
 													<td class="text-center" colspan="2">病斑粒</td>
818
 													<td class="text-center" colspan="2">病斑粒</td>
819
 													<td class="text-center" colspan="2">
819
 													<td class="text-center" colspan="2">
820
 														<label class="input">
820
 														<label class="input">
821
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" name="imperfectgrainsScab" ng-readonly="isNotEdit">
821
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" ng-blur="zjzl()" name="imperfectgrainsScab" ng-readonly="isNotEdit">
822
 														</label>
822
 														</label>
823
 													</td>
823
 													</td>
824
 												</tr>
824
 												</tr>
@@ -827,14 +827,14 @@
827
 													<td>总量%</td>
827
 													<td>总量%</td>
828
 													<td>
828
 													<td>
829
 														<label class="input">
829
 														<label class="input">
830
-															<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
830
+															<input type="text" ng-model="qualitycheckInspection.impurityTotal" ng-blur="zjzl()" name="impurityTotal" ng-readonly="true">
831
 														</label>
831
 														</label>
832
 													</td>
832
 													</td>
833
 
833
 
834
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
834
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
835
 													<td colspan="2">
835
 													<td colspan="2">
836
 														<label class="input">
836
 														<label class="input">
837
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
837
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" ng-blur="zjzl()" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
838
 														</label>
838
 														</label>
839
 													</td>
839
 													</td>
840
 												</tr>
840
 												</tr>
@@ -842,14 +842,14 @@
842
 													<td>有机杂质%</td>
842
 													<td>有机杂质%</td>
843
 													<td>
843
 													<td>
844
 														<label class="input">
844
 														<label class="input">
845
-															<input type="text" ng-model="qualitycheckInspection.impurityOrganic" name="impurityOrganic" ng-readonly="isNotEdit">
845
+															<input type="text" ng-model="qualitycheckInspection.impurityOrganic" ng-blur="zjzl()" name="impurityOrganic" ng-readonly="isNotEdit">
846
 														</label>
846
 														</label>
847
 													</td>
847
 													</td>
848
 
848
 
849
 													<td class="text-center" colspan="2">生霉粒%</td>
849
 													<td class="text-center" colspan="2">生霉粒%</td>
850
 													<td colspan="2">
850
 													<td colspan="2">
851
 														<label class="input">
851
 														<label class="input">
852
-															<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-readonly="isNotEdit">
852
+															<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-blur="zjzl()" ng-readonly="isNotEdit">
853
 														</label>
853
 														</label>
854
 													</td>
854
 													</td>
855
 												</tr>
855
 												</tr>
@@ -857,13 +857,13 @@
857
 													<td>无机杂质%</td>
857
 													<td>无机杂质%</td>
858
 													<td>
858
 													<td>
859
 														<label class="input">
859
 														<label class="input">
860
-															<input type="text" ng-model="qualitycheckInspection.impurityInorganic" name="impurityInorganic" ng-readonly="isNotEdit">
860
+															<input type="text" ng-model="qualitycheckInspection.impurityInorganic" ng-blur="zjzl()" name="impurityInorganic" ng-readonly="isNotEdit">
861
 														</label>
861
 														</label>
862
 													</td>
862
 													</td>
863
 													<td class="text-center" colspan="2">冻伤粒%</td>
863
 													<td class="text-center" colspan="2">冻伤粒%</td>
864
 													<td colspan="2">
864
 													<td colspan="2">
865
 														<label class="input">
865
 														<label class="input">
866
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsFrostbite" name="imperfectgrainsFrostbite" ng-readonly="isNotEdit">
866
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsFrostbite" ng-blur="zjzl()" name="imperfectgrainsFrostbite" ng-readonly="isNotEdit">
867
 														</label>
867
 														</label>
868
 													</td>
868
 													</td>
869
 												</tr>
869
 												</tr>
@@ -871,7 +871,7 @@
871
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
871
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
872
 													<td>
872
 													<td>
873
 														<label class="input">
873
 														<label class="input">
874
-															<input type="text" ng-model="qualitycheckInspection.crudeFatContent" name="crudeFatContent" ng-readonly="isNotEdit">
874
+															<input type="text" ng-model="qualitycheckInspection.crudeFatContent" ng-blur="zjzl()" name="crudeFatContent" ng-readonly="isNotEdit">
875
 														</label>
875
 														</label>
876
 													</td>
876
 													</td>
877
 													<!-- <td></td> -->
877
 													<!-- <td></td> -->
@@ -882,7 +882,7 @@
882
 													</td>
882
 													</td>
883
 													<td class="text-center" colspan="2">
883
 													<td class="text-center" colspan="2">
884
 														<label class="input">
884
 														<label class="input">
885
-															<input type="text" ng-model="qualitycheckInspection.inputTwo" name="inputTwo" ng-readonly="isNotEdit">
885
+															<input type="text" ng-model="qualitycheckInspection.inputTwo" ng-blur="zjzl()" name="inputTwo" ng-readonly="isNotEdit">
886
 														</label>
886
 														</label>
887
 													</td>
887
 													</td>
888
 												</tr>
888
 												</tr>

+ 16 - 16
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-outcheck-edit.html

@@ -757,14 +757,14 @@
757
 													<td class="text-center" colspan="2">水分%</td>
757
 													<td class="text-center" colspan="2">水分%</td>
758
 													<td>
758
 													<td>
759
 														<label class="input">
759
 														<label class="input">
760
-															<input type="text" ng-model="qualitycheck.water" name="water" ng-readonly="isNotEdit">
760
+															<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
761
 														</label>
761
 														</label>
762
 													</td>
762
 													</td>
763
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
763
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
764
 													<td class="text-center" colspan="2">总量</td>
764
 													<td class="text-center" colspan="2">总量</td>
765
 													<td class="text-center" colspan="2">
765
 													<td class="text-center" colspan="2">
766
 														<label class="input">
766
 														<label class="input">
767
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
767
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" ng-blur="zjzl()" name="imperfectgrainsTotal" ng-readonly="true">
768
 														</label>
768
 														</label>
769
 													</td>
769
 													</td>
770
 												</tr>
770
 												</tr>
@@ -772,14 +772,14 @@
772
 													<td class="text-center" colspan="2">完整粒率%</td>
772
 													<td class="text-center" colspan="2">完整粒率%</td>
773
 													<td>
773
 													<td>
774
 														<label class="input">
774
 														<label class="input">
775
-															<input type="text" ng-model="qualitycheck.goodpart" name="goodpart" ng-readonly="isNotEdit">
775
+															<input type="text" ng-model="qualitycheck.goodpart" name="goodpart" ng-blur="zjzl()" ng-readonly="isNotEdit">
776
 														</label>
776
 														</label>
777
 													</td>
777
 													</td>
778
 													<!-- <td></td> -->
778
 													<!-- <td></td> -->
779
 													<td class="text-center" colspan="2">热损伤粒%</td>
779
 													<td class="text-center" colspan="2">热损伤粒%</td>
780
 													<td class="text-center" colspan="2">
780
 													<td class="text-center" colspan="2">
781
 														<label class="input">
781
 														<label class="input">
782
-															<input type="text" ng-model="qualitycheck.hotDamageRatio" name="hotDamageRatio" ng-readonly="isNotEdit">
782
+															<input type="text" ng-model="qualitycheck.hotDamageRatio" name="hotDamageRatio" ng-blur="zjzl()" ng-readonly="isNotEdit">
783
 														</label>
783
 														</label>
784
 													</td>
784
 													</td>
785
 												</tr>
785
 												</tr>
@@ -787,14 +787,14 @@
787
 													<td class="text-center" colspan="2">未熟粒率%</td>
787
 													<td class="text-center" colspan="2">未熟粒率%</td>
788
 													<td>
788
 													<td>
789
 														<label class="input">
789
 														<label class="input">
790
-															<input type="text" ng-model="qualitycheckInspection.immatureGrainRate" name="immatureGrainRate" ng-readonly="isNotEdit">
790
+															<input type="text" ng-model="qualitycheckInspection.immatureGrainRate" ng-blur="zjzl()" name="immatureGrainRate" ng-readonly="isNotEdit">
791
 														</label>
791
 														</label>
792
 													</td>
792
 													</td>
793
 													<!-- <td></td> -->
793
 													<!-- <td></td> -->
794
 													<td class="text-center" colspan="2">虫蚀粒</td>
794
 													<td class="text-center" colspan="2">虫蚀粒</td>
795
 													<td class="text-center" colspan="2">
795
 													<td class="text-center" colspan="2">
796
 														<label class="input">
796
 														<label class="input">
797
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
797
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" ng-blur="zjzl()" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
798
 														</label>
798
 														</label>
799
 													</td>
799
 													</td>
800
 												</tr>
800
 												</tr>
@@ -802,14 +802,14 @@
802
 													<td class="text-center" colspan="2">破碎率%</td>
802
 													<td class="text-center" colspan="2">破碎率%</td>
803
 													<td>
803
 													<td>
804
 														<label class="input">
804
 														<label class="input">
805
-															<input type="text" ng-model="qualitycheckInspection.crushingRate" name="crushingRate" ng-readonly="isNotEdit">
805
+															<input type="text" ng-model="qualitycheckInspection.crushingRate" ng-blur="zjzl()" name="crushingRate" ng-readonly="isNotEdit">
806
 														</label>
806
 														</label>
807
 													</td>
807
 													</td>
808
 													<!-- <td></td> -->
808
 													<!-- <td></td> -->
809
 													<td class="text-center" colspan="2">病斑粒</td>
809
 													<td class="text-center" colspan="2">病斑粒</td>
810
 													<td class="text-center" colspan="2">
810
 													<td class="text-center" colspan="2">
811
 														<label class="input">
811
 														<label class="input">
812
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" name="imperfectgrainsScab" ng-readonly="isNotEdit">
812
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" ng-blur="zjzl()" name="imperfectgrainsScab" ng-readonly="isNotEdit">
813
 														</label>
813
 														</label>
814
 													</td>
814
 													</td>
815
 												</tr>
815
 												</tr>
@@ -818,14 +818,14 @@
818
 													<td>总量%</td>
818
 													<td>总量%</td>
819
 													<td>
819
 													<td>
820
 														<label class="input">
820
 														<label class="input">
821
-															<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
821
+															<input type="text" ng-model="qualitycheckInspection.impurityTotal" ng-blur="zjzl()" name="impurityTotal" ng-readonly="true">
822
 														</label>
822
 														</label>
823
 													</td>
823
 													</td>
824
 
824
 
825
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
825
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
826
 													<td colspan="2">
826
 													<td colspan="2">
827
 														<label class="input">
827
 														<label class="input">
828
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
828
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" ng-blur="zjzl()" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
829
 														</label>
829
 														</label>
830
 													</td>
830
 													</td>
831
 												</tr>
831
 												</tr>
@@ -833,14 +833,14 @@
833
 													<td>有机杂质%</td>
833
 													<td>有机杂质%</td>
834
 													<td>
834
 													<td>
835
 														<label class="input">
835
 														<label class="input">
836
-															<input type="text" ng-model="qualitycheckInspection.impurityOrganic" name="impurityOrganic" ng-readonly="isNotEdit">
836
+															<input type="text" ng-model="qualitycheckInspection.impurityOrganic" ng-blur="zjzl()" name="impurityOrganic" ng-readonly="isNotEdit">
837
 														</label>
837
 														</label>
838
 													</td>
838
 													</td>
839
 
839
 
840
 													<td class="text-center" colspan="2">生霉粒%</td>
840
 													<td class="text-center" colspan="2">生霉粒%</td>
841
 													<td colspan="2">
841
 													<td colspan="2">
842
 														<label class="input">
842
 														<label class="input">
843
-															<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-readonly="isNotEdit">
843
+															<input type="text" ng-model="qualitycheck.mildewCount" ng-blur="zjzl()" name="mildewCount" ng-readonly="isNotEdit">
844
 														</label>
844
 														</label>
845
 													</td>
845
 													</td>
846
 												</tr>
846
 												</tr>
@@ -848,13 +848,13 @@
848
 													<td>无机杂质%</td>
848
 													<td>无机杂质%</td>
849
 													<td>
849
 													<td>
850
 														<label class="input">
850
 														<label class="input">
851
-															<input type="text" ng-model="qualitycheckInspection.impurityInorganic" name="impurityInorganic" ng-readonly="isNotEdit">
851
+															<input type="text" ng-model="qualitycheckInspection.impurityInorganic" ng-blur="zjzl()" name="impurityInorganic" ng-readonly="isNotEdit">
852
 														</label>
852
 														</label>
853
 													</td>
853
 													</td>
854
 													<td class="text-center" colspan="2">冻伤粒%</td>
854
 													<td class="text-center" colspan="2">冻伤粒%</td>
855
 													<td colspan="2">
855
 													<td colspan="2">
856
 														<label class="input">
856
 														<label class="input">
857
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsFrostbite" name="imperfectgrainsFrostbite" ng-readonly="isNotEdit">
857
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsFrostbite" ng-blur="zjzl()" name="imperfectgrainsFrostbite" ng-readonly="isNotEdit">
858
 														</label>
858
 														</label>
859
 													</td>
859
 													</td>
860
 												</tr>
860
 												</tr>
@@ -862,7 +862,7 @@
862
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
862
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
863
 													<td>
863
 													<td>
864
 														<label class="input">
864
 														<label class="input">
865
-															<input type="text" ng-model="qualitycheckInspection.crudeFatContent" name="crudeFatContent" ng-readonly="isNotEdit">
865
+															<input type="text" ng-model="qualitycheckInspection.crudeFatContent" ng-blur="zjzl()" name="crudeFatContent" ng-readonly="isNotEdit">
866
 														</label>
866
 														</label>
867
 													</td>
867
 													</td>
868
 													<!-- <td></td> -->
868
 													<!-- <td></td> -->
@@ -873,7 +873,7 @@
873
 													</td>
873
 													</td>
874
 													<td class="text-center" colspan="2">
874
 													<td class="text-center" colspan="2">
875
 														<label class="input">
875
 														<label class="input">
876
-															<input type="text" ng-model="qualitycheckInspection.inputTwo" name="inputTwo" ng-readonly="isNotEdit">
876
+															<input type="text" ng-model="qualitycheckInspection.inputTwo" ng-blur="zjzl()" name="inputTwo" ng-readonly="isNotEdit">
877
 														</label>
877
 														</label>
878
 													</td>
878
 													</td>
879
 												</tr>
879
 												</tr>