Procházet zdrojové kódy

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

gaodd před 2 roky
rodič
revize
82ba6e7625

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

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

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

@@ -766,14 +766,14 @@
766 766
 													<td class="text-center" colspan="2">水分%</td>
767 767
 													<td>
768 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 770
 														</label>
771 771
 													</td>
772 772
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
773 773
 													<td class="text-center" colspan="2">总量</td>
774 774
 													<td class="text-center" colspan="2">
775 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 777
 														</label>
778 778
 													</td>
779 779
 												</tr>
@@ -781,14 +781,14 @@
781 781
 													<td class="text-center" colspan="2">完整粒率%</td>
782 782
 													<td>
783 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 785
 														</label>
786 786
 													</td>
787 787
 													<!-- <td></td> -->
788 788
 													<td class="text-center" colspan="2">热损伤粒%</td>
789 789
 													<td class="text-center" colspan="2">
790 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 792
 														</label>
793 793
 													</td>
794 794
 												</tr>
@@ -796,14 +796,14 @@
796 796
 													<td class="text-center" colspan="2">未熟粒率%</td>
797 797
 													<td>
798 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 800
 														</label>
801 801
 													</td>
802 802
 													<!-- <td></td> -->
803 803
 													<td class="text-center" colspan="2">虫蚀粒</td>
804 804
 													<td class="text-center" colspan="2">
805 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 807
 														</label>
808 808
 													</td>
809 809
 												</tr>
@@ -811,14 +811,14 @@
811 811
 													<td class="text-center" colspan="2">破碎率%</td>
812 812
 													<td>
813 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 815
 														</label>
816 816
 													</td>
817 817
 													<!-- <td></td> -->
818 818
 													<td class="text-center" colspan="2">病斑粒</td>
819 819
 													<td class="text-center" colspan="2">
820 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 822
 														</label>
823 823
 													</td>
824 824
 												</tr>
@@ -827,14 +827,14 @@
827 827
 													<td>总量%</td>
828 828
 													<td>
829 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 831
 														</label>
832 832
 													</td>
833 833
 
834 834
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
835 835
 													<td colspan="2">
836 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 838
 														</label>
839 839
 													</td>
840 840
 												</tr>
@@ -842,14 +842,14 @@
842 842
 													<td>有机杂质%</td>
843 843
 													<td>
844 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 846
 														</label>
847 847
 													</td>
848 848
 
849 849
 													<td class="text-center" colspan="2">生霉粒%</td>
850 850
 													<td colspan="2">
851 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 853
 														</label>
854 854
 													</td>
855 855
 												</tr>
@@ -857,13 +857,13 @@
857 857
 													<td>无机杂质%</td>
858 858
 													<td>
859 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 861
 														</label>
862 862
 													</td>
863 863
 													<td class="text-center" colspan="2">冻伤粒%</td>
864 864
 													<td colspan="2">
865 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 867
 														</label>
868 868
 													</td>
869 869
 												</tr>
@@ -871,7 +871,7 @@
871 871
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
872 872
 													<td>
873 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 875
 														</label>
876 876
 													</td>
877 877
 													<!-- <td></td> -->
@@ -882,7 +882,7 @@
882 882
 													</td>
883 883
 													<td class="text-center" colspan="2">
884 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 886
 														</label>
887 887
 													</td>
888 888
 												</tr>

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

@@ -757,14 +757,14 @@
757 757
 													<td class="text-center" colspan="2">水分%</td>
758 758
 													<td>
759 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 761
 														</label>
762 762
 													</td>
763 763
 													<td rowspan="7" class="text-center" style="vertical-align: middle;">损伤粒率%</td>
764 764
 													<td class="text-center" colspan="2">总量</td>
765 765
 													<td class="text-center" colspan="2">
766 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 768
 														</label>
769 769
 													</td>
770 770
 												</tr>
@@ -772,14 +772,14 @@
772 772
 													<td class="text-center" colspan="2">完整粒率%</td>
773 773
 													<td>
774 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 776
 														</label>
777 777
 													</td>
778 778
 													<!-- <td></td> -->
779 779
 													<td class="text-center" colspan="2">热损伤粒%</td>
780 780
 													<td class="text-center" colspan="2">
781 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 783
 														</label>
784 784
 													</td>
785 785
 												</tr>
@@ -787,14 +787,14 @@
787 787
 													<td class="text-center" colspan="2">未熟粒率%</td>
788 788
 													<td>
789 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 791
 														</label>
792 792
 													</td>
793 793
 													<!-- <td></td> -->
794 794
 													<td class="text-center" colspan="2">虫蚀粒</td>
795 795
 													<td class="text-center" colspan="2">
796 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 798
 														</label>
799 799
 													</td>
800 800
 												</tr>
@@ -802,14 +802,14 @@
802 802
 													<td class="text-center" colspan="2">破碎率%</td>
803 803
 													<td>
804 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 806
 														</label>
807 807
 													</td>
808 808
 													<!-- <td></td> -->
809 809
 													<td class="text-center" colspan="2">病斑粒</td>
810 810
 													<td class="text-center" colspan="2">
811 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 813
 														</label>
814 814
 													</td>
815 815
 												</tr>
@@ -818,14 +818,14 @@
818 818
 													<td>总量%</td>
819 819
 													<td>
820 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 822
 														</label>
823 823
 													</td>
824 824
 
825 825
 													<td class="text-center" colspan="2">生芽、涨大粒%</td>
826 826
 													<td colspan="2">
827 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 829
 														</label>
830 830
 													</td>
831 831
 												</tr>
@@ -833,14 +833,14 @@
833 833
 													<td>有机杂质%</td>
834 834
 													<td>
835 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 837
 														</label>
838 838
 													</td>
839 839
 
840 840
 													<td class="text-center" colspan="2">生霉粒%</td>
841 841
 													<td colspan="2">
842 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 844
 														</label>
845 845
 													</td>
846 846
 												</tr>
@@ -848,13 +848,13 @@
848 848
 													<td>无机杂质%</td>
849 849
 													<td>
850 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 852
 														</label>
853 853
 													</td>
854 854
 													<td class="text-center" colspan="2">冻伤粒%</td>
855 855
 													<td colspan="2">
856 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 858
 														</label>
859 859
 													</td>
860 860
 												</tr>
@@ -862,7 +862,7 @@
862 862
 													<td class="text-center" colspan="2">粗脂肪含量(干基)%</td>
863 863
 													<td>
864 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 866
 														</label>
867 867
 													</td>
868 868
 													<!-- <td></td> -->
@@ -873,7 +873,7 @@
873 873
 													</td>
874 874
 													<td class="text-center" colspan="2">
875 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 877
 														</label>
878 878
 													</td>
879 879
 												</tr>