gaodd 2 年之前
父節點
當前提交
ca6868f70b

+ 422 - 18
src/main/resources/static/app/storage/controller/qualitycheckAssayCtrl.js

@@ -921,6 +921,7 @@ angular.module('app.storage')
921 921
         		if($scope.qualitycheckInspection.impurityOrganic != null){
922 922
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
923 923
             		//organic = isNaN(organic) ? 0 : organic;
924
+        			organic = $scope.checkJqos(organic,2);
924 925
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
925 926
         		}
926 927
         		if($scope.qualitycheckInspection.sieveResidue != null){
@@ -954,7 +955,22 @@ angular.module('app.storage')
954 955
             		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
955 956
         		}
956 957
         		
957
-        		var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;//病斑粒总量%
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
+    			}
958 974
         		//bblzl = isNaN(bblzl) ? 0 : bblzl;
959 975
         		//$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
960 976
         		
@@ -968,20 +984,73 @@ angular.module('app.storage')
968 984
         		
969 985
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
970 986
         			//杂质总量
971
-        			var zzzl = ((parseFloat(mineral)*100) + (parseFloat(inorganic)*100)+ (parseFloat(organic)*100)+ (parseFloat(sieveResidue)*100))/100;
972
-        			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
973
-        			zzzl = $scope.checkJqos(zzzl,1);
974
-        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
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
+        			
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;
1004
+            			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
1005
+            			zzzl = $scope.checkJqos(zzzl,1);
1006
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1007
+        			}
1008
+        			
975 1009
         			//病斑粒总量
976
-        			var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;
977
-        			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
978
-        			bblzl = $scope.checkJqos(bblzl,1);
979
-        			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
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;
1023
+            			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
1024
+            			bblzl = $scope.checkJqos(bblzl,1);
1025
+            			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
1026
+        			}
1027
+        			
980 1028
         			//不完善粒总量
981
-        			var bwslzl = ((parseFloat(csl)*100) + (parseFloat(psl)*100)+(parseFloat(sml)*100) + (parseFloat(bblzl)*100) + (parseFloat(syl)*100))/100;
982
-        			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
983
-        			bwslzl = $scope.checkJqos(bwslzl,1);
984
-        			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
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
+        			
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;
1049
+            			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
1050
+            			bwslzl = $scope.checkJqos(bwslzl,1);
1051
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1052
+        			}
1053
+        			
985 1054
         		}
986 1055
         	} else if (pz=="3166") {
987 1056
         		if($scope.qualitycheck.water != null){
@@ -1069,15 +1138,350 @@ angular.module('app.storage')
1069 1138
         		
1070 1139
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1071 1140
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1072
-        			var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1073
-        			zzzl = $scope.checkJqos(zzzl, 1);
1074
-        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
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);
1155
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1156
+        			}
1157
+        			
1075 1158
         			//zzzl.toFixed(1);
1076 1159
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1077 1160
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1078
-        			var bwslzl = ((parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
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
+        			
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);
1182
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1183
+        			}
1184
+        			
1185
+        		}
1186
+        	}else if(pz=="3165"){
1187
+
1188
+        		if($scope.qualitycheck.water != null){
1189
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1190
+            		sf = $scope.checkJqos(sf,1);
1191
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1192
+        		}
1193
+        		if($scope.qualitycheckInspection.impurityOrganic != null){
1194
+        			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1195
+        			yjzz = $scope.checkJqos(yjzz,2);
1196
+            		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1197
+        		}
1198
+        		if($scope.qualitycheckInspection.impurityInorganic != null){
1199
+        			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1200
+            		wjzz = $scope.checkJqos(wjzz,2);
1201
+            		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1202
+        		}
1203
+        		if($scope.qualitycheckInspection.sieveResidue != null){
1204
+        			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1205
+            		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1206
+            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1207
+            		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1208
+        		}
1209
+        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1210
+        			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1211
+            		//csl = isNaN(csl) ? 0 : csl;
1212
+            		csl = $scope.checkJqos(csl,2);
1213
+            		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1214
+        		}
1215
+        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1216
+        			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1217
+            		bbl = $scope.checkJqos(bbl,2);
1218
+            		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1219
+        		}
1220
+        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
1221
+        			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1222
+            		//psl = isNaN(psl) ? 0 : psl;
1223
+            		psl = $scope.checkJqos(psl,2);
1224
+            		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1225
+        		}
1226
+        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
1227
+        			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1228
+            		//syl = isNaN(syl) ? 0 : syl;
1229
+            		syl = $scope.checkJqos(syl,2);
1230
+            		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1231
+        		}
1232
+        		if($scope.qualitycheck.mildewCount != null){
1233
+        			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1234
+            		//sml = isNaN(sml) ? 0 : sml;
1235
+            		sml = $scope.checkJqos(sml,2);
1236
+            		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1237
+        		}
1238
+        		if($scope.qualitycheckInspection.mildew != null){
1239
+        			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1240
+        			mbl = $scope.checkJqos(mbl,2);
1241
+            		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1242
+        		}
1243
+        		if($scope.qualitycheckInspection.naturally != null){
1244
+        			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1245
+            		//sml = isNaN(sml) ? 0 : sml;
1246
+        			zrrssl = $scope.checkJqos(zrrssl,2);
1247
+            		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1248
+        		}
1249
+        		if($scope.qualitycheckInspection.stoving != null){
1250
+        			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1251
+        			hgrssl = $scope.checkJqos(hgrssl,2);
1252
+            		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1253
+        		}
1254
+        		
1255
+        		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1256
+        			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
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);
1271
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1272
+        			}
1273
+        			
1274
+        			//zzzl.toFixed(1);
1275
+        			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1276
+        			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
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
+        			
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);
1299
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1300
+        			}
1301
+        			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1302
+        			
1303
+        		}
1304
+        	
1305
+        	
1306
+        	}else if(pz == "7107"){
1307
+        		if($scope.qualitycheck.water != null){
1308
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1309
+            		sf = $scope.checkJqos(sf,1);
1310
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1311
+        		}
1312
+        		if($scope.qualitycheckInspection.avgLength != null){
1313
+        			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){
1318
+        			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){
1323
+        			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1324
+            		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1325
+        			dsm = $scope.checkJqos(dsm,2);
1326
+            		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1327
+        		}
1328
+        		if($scope.qualitycheckInspection.brokenriceSmall != null){
1329
+        			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1330
+            		//csl = isNaN(csl) ? 0 : csl;
1331
+        			xsm = $scope.checkJqos(xsm,2);
1332
+            		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1333
+        		}
1334
+        		if($scope.qualitycheckInspection.imperfectgrainsContent != null){
1335
+        			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1336
+            		//csl = isNaN(csl) ? 0 : csl;
1337
+        			hl = $scope.checkJqos(hl,2);
1338
+            		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1339
+        		}
1340
+        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1341
+        			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1342
+            		wsl = $scope.checkJqos(wsl,2);
1343
+            		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1344
+        		}
1345
+        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1346
+        			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1347
+            		csl = $scope.checkJqos(csl,2);
1348
+            		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1349
+        		}
1350
+        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1351
+        			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1352
+            		bbl = $scope.checkJqos(bbl,2);
1353
+            		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1354
+        		}
1355
+        		if($scope.qualitycheckInspection.imperfectgrainsBrownrice != null){
1356
+        			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1357
+        			cml = $scope.checkJqos(cml,2);
1358
+            		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1359
+        		}
1360
+        		if($scope.qualitycheck.mildewCount != null){
1361
+        			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1362
+            		//sml = isNaN(sml) ? 0 : sml;
1363
+            		sml = $scope.checkJqos(sml,2);
1364
+            		$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){
1379
+        			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1380
+            		hlm = $scope.checkJqos(hlm, 1);
1381
+            		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1382
+        		}
1383
+        		if($scope.qualitycheck.intermixingRate != null){
1384
+        			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1385
+            		hhl = $scope.checkJqos(hhl, 1);
1386
+            		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1387
+        		}
1388
+        		if($scope.qualitycheckInspection.impurityBranPowder != null){
1389
+        			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){
1394
+        			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1395
+            		yjzz = $scope.checkJqos(yjzz,2);
1396
+            		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1397
+        		}
1398
+        		if($scope.qualitycheckInspection.impurityInorganic != null){
1399
+        			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1400
+            		wjzz = $scope.checkJqos(wjzz,2);
1401
+            		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1402
+        		}
1403
+        		if($scope.qualitycheckInspection.chalkiness != null){
1404
+        			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){
1409
+        			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1410
+        			zldfhl = $scope.checkJqos(zldfhl,2);
1411
+            		$scope.qualitycheckInspection.amylose = $scope.getMath(zldfhl);
1412
+        		}
1413
+        		
1414
+        		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
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);
1429
+        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1430
+    			}
1431
+    			
1432
+    			//zzzl.toFixed(1);
1433
+    			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1434
+    			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
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
+    			
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);
1460
+        			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1461
+    			}
1462
+    			
1463
+    			
1464
+    			//碎米 = 大碎米 + 小碎米;
1465
+    			if(dsm == null || dsm == undefined){
1466
+    				dsm = 0;
1467
+    			}
1468
+    			if(xsm == null || xsm == undefined){
1469
+    				xsm = 0;
1470
+    			}
1471
+    			
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;
1079 1477
         			bwslzl = $scope.checkJqos(bwslzl, 1);
1080
-        			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1478
+        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(bwslzl);
1479
+    			}
1480
+        	}else if(pz == "7051" || pz == "7038"){
1481
+        		if($scope.qualitycheck.water != null){
1482
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1483
+            		sf = $scope.checkJqos(sf,1);
1484
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1081 1485
         		}
1082 1486
         	}
1083 1487
         };

+ 366 - 0
src/main/resources/static/app/storage/controller/qualitycheckCtrl.js

@@ -945,6 +945,7 @@ angular.module('app.storage')
945 945
         		if($scope.qualitycheckInspection.impurityOrganic != null){
946 946
         			var organic = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
947 947
             		//organic = isNaN(organic) ? 0 : organic;
948
+        			organic = $scope.checkJqos(organic,2);
948 949
             		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(organic);
949 950
         		}
950 951
         		if($scope.qualitycheckInspection.sieveResidue != null){
@@ -992,16 +993,52 @@ angular.module('app.storage')
992 993
         		
993 994
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
994 995
         			//杂质总量
996
+        			if(mineral == null || mineral == undefined){
997
+        				mineral = 0;
998
+        			}
999
+        			if(inorganic == null || inorganic == undefined){
1000
+        				inorganic = 0;
1001
+        			}
1002
+        			if(organic == null || organic == undefined){
1003
+        				organic = 0;
1004
+        			}
1005
+        			if(sieveResidue == null || sieveResidue == undefined){
1006
+        				sieveResidue = 0;
1007
+        			}
995 1008
         			var zzzl = ((parseFloat(mineral)*100) + (parseFloat(inorganic)*100)+ (parseFloat(organic)*100)+ (parseFloat(sieveResidue)*100))/100;
996 1009
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath($scope.qualitycheckInspection.impurityTotal);
997 1010
         			zzzl = $scope.checkJqos(zzzl,1);
998 1011
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
999 1012
         			//病斑粒总量
1013
+        			if(black == null || black == undefined){
1014
+        				black = 0;
1015
+        			}
1016
+        			if(gibberella == null || gibberella == undefined){
1017
+        				gibberella = 0;
1018
+        			}
1019
+        			if(qtbl == null || qtbl == undefined){
1020
+        				qtbl = 0;
1021
+        			}
1000 1022
         			var bblzl = ((parseFloat(black)*100) + (parseFloat(gibberella)*100) + (parseFloat(qtbl)*100))/100;
1001 1023
         			//$scope.qualitycheckInspection.imperfectgrainsScabTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsScabTotal);
1002 1024
         			bblzl = $scope.checkJqos(bblzl,1);
1003 1025
         			$scope.qualitycheckInspection.imperfectgrainsScabTotal = isNaN(bblzl) ? '0.0' : $scope.getMath1(bblzl);
1004 1026
         			//不完善粒总量
1027
+        			if(csl == null || csl == undefined){
1028
+        				csl = 0;
1029
+        			}
1030
+        			if(psl == null || psl == undefined){
1031
+        				psl = 0;
1032
+        			}
1033
+        			if(sml == null || sml == undefined){
1034
+        				sml = 0;
1035
+        			}
1036
+        			if(bblzl == null || bblzl == undefined){
1037
+        				bblzl = 0;
1038
+        			}
1039
+        			if(syl == null || syl == undefined){
1040
+        				syl = 0;
1041
+        			}
1005 1042
         			var bwslzl = ((parseFloat(csl)*100) + (parseFloat(psl)*100)+(parseFloat(sml)*100) + (parseFloat(bblzl)*100) + (parseFloat(syl)*100))/100;
1006 1043
         			//$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath($scope.qualitycheckInspection.imperfectgrainsTotal);
1007 1044
         			bwslzl = $scope.checkJqos(bwslzl,1);
@@ -1093,16 +1130,345 @@ angular.module('app.storage')
1093 1130
         		
1094 1131
         		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1095 1132
         			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1133
+        			if(sieveResidue == null || sieveResidue == undefined){
1134
+        				sieveResidue = 0;
1135
+        			}
1136
+        			if(yjzz == null || yjzz == undefined){
1137
+        				yjzz = 0;
1138
+        			}
1139
+        			if(wjzz == null || wjzz == undefined){
1140
+        				wjzz = 0;
1141
+        			}
1142
+        			
1096 1143
         			var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1097 1144
         			zzzl = $scope.checkJqos(zzzl, 1);
1098 1145
         			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1099 1146
         			//zzzl.toFixed(1);
1100 1147
         			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1101 1148
         			//不完善粒总量=未熟粒+虫蚀粒+病斑粒+生芽粒+生霉粒
1149
+        			if(wsl == null || wsl == undefined){
1150
+        				wsl = 0;
1151
+        			}
1152
+        			if(csl == null || csl == undefined){
1153
+        				csl = 0;
1154
+        			}
1155
+        			if(bbl == null || bbl == undefined){
1156
+        				bbl = 0;
1157
+        			}
1158
+        			if(syl == null || syl == undefined){
1159
+        				syl = 0;
1160
+        			}
1161
+        			if(sml == null || sml == undefined){
1162
+        				sml = 0;
1163
+        			}
1102 1164
         			var bwslzl = ((parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1103 1165
         			bwslzl = $scope.checkJqos(bwslzl, 1);
1104 1166
         			$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1105 1167
         		}
1168
+        	}else if(pz=="3165"){
1169
+
1170
+
1171
+        		if($scope.qualitycheck.water != null){
1172
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1173
+            		sf = $scope.checkJqos(sf,1);
1174
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1175
+        		}
1176
+        		if($scope.qualitycheckInspection.impurityOrganic != null){
1177
+        			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1178
+        			yjzz = $scope.checkJqos(yjzz,2);
1179
+            		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1180
+        		}
1181
+        		if($scope.qualitycheckInspection.impurityInorganic != null){
1182
+        			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1183
+            		wjzz = $scope.checkJqos(wjzz,2);
1184
+            		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1185
+        		}
1186
+        		if($scope.qualitycheckInspection.sieveResidue != null){
1187
+        			var sieveResidue = parseFloat($scope.qualitycheckInspection.sieveResidue);//筛下物%
1188
+            		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1189
+            		sieveResidue = $scope.checkJqos(sieveResidue,2);
1190
+            		$scope.qualitycheckInspection.sieveResidue = $scope.getMath(sieveResidue);
1191
+        		}
1192
+        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1193
+        			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒%
1194
+            		//csl = isNaN(csl) ? 0 : csl;
1195
+            		csl = $scope.checkJqos(csl,2);
1196
+            		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1197
+        		}
1198
+        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1199
+        			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1200
+            		bbl = $scope.checkJqos(bbl,2);
1201
+            		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1202
+        		}
1203
+        		if($scope.qualitycheckInspection.imperfectgrainsDamage != null){
1204
+        			var psl = parseFloat($scope.qualitycheckInspection.imperfectgrainsDamage);//破损粒%
1205
+            		//psl = isNaN(psl) ? 0 : psl;
1206
+            		psl = $scope.checkJqos(psl,2);
1207
+            		$scope.qualitycheckInspection.imperfectgrainsDamage = $scope.getMath(psl);
1208
+        		}
1209
+        		if($scope.qualitycheckInspection.imperfectgrainsSproutedkernel != null){
1210
+        			var syl = parseFloat($scope.qualitycheckInspection.imperfectgrainsSproutedkernel);//生芽粒%
1211
+            		//syl = isNaN(syl) ? 0 : syl;
1212
+            		syl = $scope.checkJqos(syl,2);
1213
+            		$scope.qualitycheckInspection.imperfectgrainsSproutedkernel = $scope.getMath(syl);
1214
+        		}
1215
+        		if($scope.qualitycheck.mildewCount != null){
1216
+        			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1217
+            		//sml = isNaN(sml) ? 0 : sml;
1218
+            		sml = $scope.checkJqos(sml,2);
1219
+            		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1220
+        		}
1221
+        		if($scope.qualitycheckInspection.mildew != null){
1222
+        			var mbl = parseFloat($scope.qualitycheckInspection.mildew);//霉变粒%
1223
+        			mbl = $scope.checkJqos(mbl,2);
1224
+            		$scope.qualitycheckInspection.mildew = $scope.getMath(mbl);
1225
+        		}
1226
+        		if($scope.qualitycheckInspection.naturally != null){
1227
+        			var zrrssl = parseFloat($scope.qualitycheckInspection.naturally);//自然热损伤粒%
1228
+            		//sml = isNaN(sml) ? 0 : sml;
1229
+        			zrrssl = $scope.checkJqos(zrrssl,2);
1230
+            		$scope.qualitycheckInspection.naturally = $scope.getMath(zrrssl);
1231
+        		}
1232
+        		if($scope.qualitycheckInspection.stoving != null){
1233
+        			var hgrssl = parseFloat($scope.qualitycheckInspection.stoving);//烘干热损伤粒%
1234
+        			hgrssl = $scope.checkJqos(hgrssl,2);
1235
+            		$scope.qualitycheckInspection.stoving = $scope.getMath(hgrssl);
1236
+        		}
1237
+        		
1238
+        		if($scope.qualitycheck !== undefined && $scope.qualitycheck !== ""){
1239
+        			//杂质总量=筛下物+有机杂质+无机杂质,四舍五入,保留一位小数
1240
+        			if(sieveResidue == null || sieveResidue == undefined){
1241
+        				sieveResidue = 0;
1242
+        			}
1243
+        			if(yjzz == null || yjzz == undefined){
1244
+        				yjzz = 0;
1245
+        			}
1246
+        			if(wjzz == null || wjzz == undefined){
1247
+        				wjzz = 0;
1248
+        			}
1249
+        			if(sieveResidue == 0 && yjzz == 0 && wjzz == 0){
1250
+        				$scope.qualitycheckInspection.impurityTotal = null;
1251
+        			}else{
1252
+        				var zzzl = ((parseFloat(sieveResidue)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1253
+            			zzzl = $scope.checkJqos(zzzl, 1);
1254
+            			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1255
+        			}
1256
+        			
1257
+        			//zzzl.toFixed(1);
1258
+        			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1259
+        			//不完善粒总量=虫蚀粒+病斑粒++破损粒+生芽粒+生霉粒
1260
+        			if(csl == null || csl == undefined){
1261
+        				csl = 0;
1262
+        			}
1263
+        			if(bbl == null || bbl == undefined){
1264
+        				bbl = 0;
1265
+        			}
1266
+        			if(psl == null || psl == undefined){
1267
+        				psl = 0;
1268
+        			}
1269
+        			if(syl == null || syl == undefined){
1270
+        				syl = 0;
1271
+        			}
1272
+        			if(sml == null || sml == undefined){
1273
+        				sml = 0;
1274
+        			}
1275
+        			
1276
+        			if(csl == 0 && bbl == 0 && psl == 0 && syl == 0 && sml == 0){
1277
+        				bwslzl = null;
1278
+        				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1279
+        			}else{
1280
+        				var bwslzl = ((parseFloat(psl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(syl)*100) + (parseFloat(sml)*100))/100;
1281
+            			bwslzl = $scope.checkJqos(bwslzl, 1);
1282
+            			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1283
+        			}
1284
+        			//$scope.qualitycheckInspection.imperfectgrainsTotal = isNaN(bwslzl) ? '0.0' : $scope.getMath1(bwslzl);
1285
+        			
1286
+        		}
1287
+        	
1288
+        	
1289
+        	
1290
+        	}else if(pz == "7107"){
1291
+
1292
+        		if($scope.qualitycheck.water != null){
1293
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1294
+            		sf = $scope.checkJqos(sf,1);
1295
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1296
+        		}
1297
+        		if($scope.qualitycheckInspection.avgLength != null){
1298
+        			var pjcd = parseFloat($scope.qualitycheckInspection.avgLength);//平均长度
1299
+        			pjcd = $scope.checkJqos(pjcd,2);
1300
+            		$scope.qualitycheckInspection.avgLength = $scope.getMath(pjcd);
1301
+        		}
1302
+        		if($scope.qualitycheckInspection.riceGrains != null){
1303
+        			var wzml = parseFloat($scope.qualitycheckInspection.riceGrains);//完整米粒
1304
+        			wzml = $scope.checkJqos(wzml,2);
1305
+            		$scope.qualitycheckInspection.riceGrains = $scope.getMath(wzml);
1306
+        		}
1307
+        		if($scope.qualitycheckInspection.brokenriceBig != null){
1308
+        			var dsm = parseFloat($scope.qualitycheckInspection.brokenriceBig);//大碎米
1309
+            		//sieveResidue = isNaN(sieveResidue) ? 0 : sieveResidue;
1310
+        			dsm = $scope.checkJqos(dsm,2);
1311
+            		$scope.qualitycheckInspection.brokenriceBig = $scope.getMath(dsm);
1312
+        		}
1313
+        		if($scope.qualitycheckInspection.brokenriceSmall != null){
1314
+        			var xsm = parseFloat($scope.qualitycheckInspection.brokenriceSmall);//小碎米
1315
+            		//csl = isNaN(csl) ? 0 : csl;
1316
+        			xsm = $scope.checkJqos(xsm,2);
1317
+            		$scope.qualitycheckInspection.brokenriceSmall = $scope.getMath(xsm);
1318
+        		}
1319
+        		if($scope.qualitycheckInspection.imperfectgrainsContent != null){
1320
+        			var hl = parseFloat($scope.qualitycheckInspection.imperfectgrainsContent);//含量
1321
+            		//csl = isNaN(csl) ? 0 : csl;
1322
+        			hl = $scope.checkJqos(hl,2);
1323
+            		$scope.qualitycheckInspection.imperfectgrainsContent = $scope.getMath(hl);
1324
+        		}
1325
+        		if($scope.qualitycheckInspection.imperfectgrainsImmaturegrain != null){
1326
+        			var wsl = parseFloat($scope.qualitycheckInspection.imperfectgrainsImmaturegrain);//未熟粒
1327
+            		wsl = $scope.checkJqos(wsl,2);
1328
+            		$scope.qualitycheckInspection.imperfectgrainsImmaturegrain = $scope.getMath(wsl);
1329
+        		}
1330
+        		if($scope.qualitycheckInspection.imperfectgrainsInjuredkernel != null){
1331
+        			var csl = parseFloat($scope.qualitycheckInspection.imperfectgrainsInjuredkernel);//虫蚀粒
1332
+            		csl = $scope.checkJqos(csl,2);
1333
+            		$scope.qualitycheckInspection.imperfectgrainsInjuredkernel = $scope.getMath(csl);
1334
+        		}
1335
+        		if($scope.qualitycheckInspection.imperfectgrainsScab != null){
1336
+        			var bbl = parseFloat($scope.qualitycheckInspection.imperfectgrainsScab);//病斑粒
1337
+            		bbl = $scope.checkJqos(bbl,2);
1338
+            		$scope.qualitycheckInspection.imperfectgrainsScab = $scope.getMath(bbl);
1339
+        		}
1340
+        		if($scope.qualitycheckInspection.imperfectgrainsBrownrice != null){
1341
+        			var cml = parseFloat($scope.qualitycheckInspection.imperfectgrainsBrownrice);//糙米粒
1342
+        			cml = $scope.checkJqos(cml,2);
1343
+            		$scope.qualitycheckInspection.imperfectgrainsBrownrice = $scope.getMath(cml);
1344
+        		}
1345
+        		if($scope.qualitycheck.mildewCount != null){
1346
+        			var sml = parseFloat($scope.qualitycheck.mildewCount);//生霉粒%
1347
+            		//sml = isNaN(sml) ? 0 : sml;
1348
+            		sml = $scope.checkJqos(sml,2);
1349
+            		$scope.qualitycheck.mildewCount = $scope.getMath(sml);
1350
+        		}
1351
+        		if($scope.qualitycheckInspection.machiningaccuracyEssence != null){
1352
+        			var jn = parseFloat($scope.qualitycheckInspection.machiningaccuracyEssence);//精碾
1353
+            		//sml = isNaN(sml) ? 0 : sml;
1354
+        			jn = $scope.checkJqos(jn,2);
1355
+            		$scope.qualitycheckInspection.machiningaccuracyEssence = $scope.getMath(jn);
1356
+        		}
1357
+        		if($scope.qualitycheckInspection.machiningaccuracySuitable != null){
1358
+        			var sn = parseFloat($scope.qualitycheckInspection.machiningaccuracySuitable);//适碾
1359
+            		//sml = isNaN(sml) ? 0 : sml;
1360
+        			sn = $scope.checkJqos(sn,2);
1361
+            		$scope.qualitycheckInspection.machiningaccuracySuitable = $scope.getMath(sn);
1362
+        		}
1363
+        		if($scope.qualitycheckInspection.yellowRice != null){
1364
+        			var hlm = parseFloat($scope.qualitycheckInspection.yellowRice);//黄粒米
1365
+            		hlm = $scope.checkJqos(hlm, 1);
1366
+            		$scope.qualitycheckInspection.yellowRice = $scope.getMath1(hlm);
1367
+        		}
1368
+        		if($scope.qualitycheck.intermixingRate != null){
1369
+        			var hhl = parseFloat($scope.qualitycheck.intermixingRate);//互混率
1370
+            		hhl = $scope.checkJqos(hhl, 1);
1371
+            		$scope.qualitycheck.intermixingRate = $scope.getMath1(hhl);
1372
+        		}
1373
+        		if($scope.qualitycheckInspection.impurityBranPowder != null){
1374
+        			var kf = parseFloat($scope.qualitycheckInspection.impurityBranPowder);//糠粉
1375
+        			kf = $scope.checkJqos(kf, 2);
1376
+            		$scope.qualitycheckInspection.impurityBranPowder = $scope.getMath1(kf);
1377
+        		}
1378
+        		if($scope.qualitycheckInspection.impurityOrganic != null){
1379
+        			var yjzz = parseFloat($scope.qualitycheckInspection.impurityOrganic);//有机杂质
1380
+            		yjzz = $scope.checkJqos(yjzz,2);
1381
+            		$scope.qualitycheckInspection.impurityOrganic = $scope.getMath(yjzz);
1382
+        		}
1383
+        		if($scope.qualitycheckInspection.impurityInorganic != null){
1384
+        			var wjzz = parseFloat($scope.qualitycheckInspection.impurityInorganic);//无机杂质
1385
+            		wjzz = $scope.checkJqos(wjzz,2);
1386
+            		$scope.qualitycheckInspection.impurityInorganic = $scope.getMath(wjzz);
1387
+        		}
1388
+        		if($scope.qualitycheckInspection.chalkiness != null){
1389
+        			var ebd = parseFloat($scope.qualitycheckInspection.chalkiness);//垩白度
1390
+        			ebd = $scope.checkJqos(ebd,2);
1391
+            		$scope.qualitycheckInspection.chalkiness = $scope.getMath(ebd);
1392
+        		}
1393
+        		if($scope.qualitycheckInspection.amylose != null){
1394
+        			var zldfhl = parseFloat($scope.qualitycheckInspection.amylose);//直链淀粉含量
1395
+        			zldfhl = $scope.checkJqos(zldfhl,2);
1396
+            		$scope.qualitycheckInspection.amylose = $scope.getMath(zldfhl);
1397
+        		}
1398
+        		
1399
+        		//杂质总量=糠粉+有机杂质+无机杂质,四舍五入,保留一位小数
1400
+    			if(kf == null || kf == undefined){
1401
+    				kf = 0;
1402
+    			}
1403
+    			if(yjzz == null || yjzz == undefined){
1404
+    				yjzz = 0;
1405
+    			}
1406
+    			if(wjzz == null || wjzz == undefined){
1407
+    				wjzz = 0;
1408
+    			}
1409
+    			if(kf == 0 && yjzz == 0 && wjzz == 0){
1410
+    				$scope.qualitycheckInspection.impurityTotal = null;
1411
+    			}else{
1412
+    				var zzzl = ((parseFloat(kf)*100) + (parseFloat(yjzz)*100)+ (parseFloat(wjzz)*100))/100;
1413
+        			zzzl = $scope.checkJqos(zzzl, 1);
1414
+        			$scope.qualitycheckInspection.impurityTotal = isNaN(zzzl) ? '0.0' : $scope.getMath1(zzzl);
1415
+    			}
1416
+    			
1417
+    			//zzzl.toFixed(1);
1418
+    			//$scope.qualitycheckInspection.impurityTotal = $scope.getMath1($scope.qualitycheckInspection.impurityTotal);
1419
+    			//不完善粒总量=含量+未熟粒+虫蚀粒+病斑粒+糙米粒+生霉粒
1420
+    			if(hl == null || hl == undefined){
1421
+    				hl = 0;
1422
+    			}
1423
+    			if(wsl == null || wsl == undefined){
1424
+    				wsl = 0;
1425
+    			}
1426
+    			if(csl == null || csl == undefined){
1427
+    				csl = 0;
1428
+    			}
1429
+    			if(bbl == null || bbl == undefined){
1430
+    				bbl = 0;
1431
+    			}
1432
+    			if(cml == null || cml == undefined){
1433
+    				cml = 0;
1434
+    			}
1435
+    			if(sml == null || sml == undefined){
1436
+    				sml = 0;
1437
+    			}
1438
+    			
1439
+    			if(hl == 0 && wsl == 0 && csl == 0 && bbl == 0 && cml == 0 && sml == 0){
1440
+    				bwslzl = null;
1441
+    				$scope.qualitycheckInspection.imperfectgrainsTotal = bwslzl;
1442
+    			}else{
1443
+    				var bwslzl = ((parseFloat(hl)*100) + (parseFloat(wsl)*100) + (parseFloat(csl)*100) + (parseFloat(bbl)*100) + (parseFloat(cml)*100) + (parseFloat(sml)*100))/100;
1444
+        			bwslzl = $scope.checkJqos(bwslzl, 1);
1445
+        			$scope.qualitycheckInspection.imperfectgrainsTotal = $scope.getMath1(bwslzl);
1446
+    			}
1447
+    			
1448
+    			
1449
+    			//碎米 = 大碎米 + 小碎米;
1450
+    			if(dsm == null || dsm == undefined){
1451
+    				dsm = 0;
1452
+    			}
1453
+    			if(xsm == null || xsm == undefined){
1454
+    				xsm = 0;
1455
+    			}
1456
+    			
1457
+    			if(xsm == 0 && dsm == 0){
1458
+    				bwslzl = null;
1459
+    				$scope.qualitycheckInspection.brokenriceTotal = bwslzl;
1460
+    			}else{
1461
+    				var bwslzl = ((parseFloat(dsm)*100) + (parseFloat(xsm)*100))/100;
1462
+        			bwslzl = $scope.checkJqos(bwslzl, 1);
1463
+        			$scope.qualitycheckInspection.brokenriceTotal = $scope.getMath1(bwslzl);
1464
+    			}
1465
+        	
1466
+        	}else if(pz == "7051" || pz == "7038"){
1467
+        		if($scope.qualitycheck.water != null){
1468
+        			var sf = parseFloat($scope.qualitycheck.water);//水分
1469
+            		sf = $scope.checkJqos(sf,1);
1470
+            		$scope.qualitycheck.water = $scope.getMath1(sf);
1471
+        		}
1106 1472
         	}
1107 1473
         };
1108 1474
 

+ 12 - 12
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-acceptcheck-edit.html

@@ -278,7 +278,7 @@
278 278
 											</section>
279 279
 											<section class="col col-3">
280 280
 												<label class="select">
281
-													<label class="label">样品数量:</label>
281
+													<label class="label">样品数量(kg):</label>
282 282
 													<label class="input">
283 283
 														<input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
284 284
 															   name="ypsl"  placeholder="样品数量" validNumber="true">
@@ -287,7 +287,7 @@
287 287
 											</section>
288 288
 											<section class="col col-3">
289 289
 												<label class="select">
290
-													<label class="label">代表数量:</label>
290
+													<label class="label">代表数量(kg):</label>
291 291
 													<label class="input">
292 292
 														<input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
293 293
 															   name="dbsl"  placeholder="代表数量" validNumber="true">
@@ -342,7 +342,7 @@
342 342
 														<td class="text-center" colspan="2">总量</td>
343 343
 														<td colspan="2">
344 344
 															<label class="input">
345
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
345
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
346 346
 															</label>
347 347
 														</td>
348 348
 													</tr>
@@ -365,7 +365,7 @@
365 365
 														<td>总量%</td>
366 366
 														<td>
367 367
 															<label class="input">
368
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
368
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
369 369
 															</label>
370 370
 														</td>
371 371
 														<td rowspan="3" class="text-center" style="vertical-align: middle;">病斑粒</td>
@@ -495,7 +495,7 @@
495 495
 														<td class="text-center" colspan="2">总量</td>
496 496
 														<td class="text-center" colspan="2">
497 497
 															<label class="input">
498
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
498
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
499 499
 															</label>
500 500
 														</td>
501 501
 													</tr>
@@ -519,7 +519,7 @@
519 519
 														<td>总量%</td>
520 520
 														<td>
521 521
 															<label class="input">
522
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
522
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
523 523
 															</label>
524 524
 														</td>
525 525
 														<td class="text-center" colspan="2">病斑粒</td>
@@ -645,7 +645,7 @@
645 645
 														<td class="text-center" colspan="2">总量</td>
646 646
 														<td class="text-center" colspan="2">
647 647
 															<label class="input">
648
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
648
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
649 649
 															</label>
650 650
 														</td>
651 651
 													</tr>
@@ -699,7 +699,7 @@
699 699
 														<td>总量%</td>
700 700
 														<td>
701 701
 															<label class="input">
702
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
702
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
703 703
 															</label>
704 704
 														</td>
705 705
 
@@ -804,7 +804,7 @@
804 804
 														<td class="text-center" colspan="2">总量</td>
805 805
 														<td class="text-center" colspan="2">
806 806
 															<label class="input">
807
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
807
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
808 808
 															</label>
809 809
 														</td>
810 810
 													</tr>
@@ -843,7 +843,7 @@
843 843
 														<td>总量%</td>
844 844
 														<td>
845 845
 															<label class="input">
846
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
846
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
847 847
 															</label>
848 848
 														</td>
849 849
 														<td class="text-center" colspan="2">病斑粒</td>
@@ -1139,7 +1139,7 @@
1139 1139
 														<td class="text-center" colspan="2">总量</td>
1140 1140
 														<td class="text-center" colspan="2">
1141 1141
 															<label class="input">
1142
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
1142
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
1143 1143
 															</label>
1144 1144
 														</td>
1145 1145
 													</tr>
@@ -1263,7 +1263,7 @@
1263 1263
 														<td class="text-center">总量</td>
1264 1264
 														<td>
1265 1265
 															<label class="input">
1266
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
1266
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
1267 1267
 															</label>
1268 1268
 														</td>
1269 1269
 														<td class="text-center" colspan="3">垩白度%</td>

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

@@ -211,7 +211,7 @@
211 211
 											</section>
212 212
 											<section class="col col-3">
213 213
 												<label class="select">
214
-													<label class="label">样品数量:<span style="color: red;">*</span></label>
214
+													<label class="label">样品数量(kg):<span style="color: red;">*</span></label>
215 215
 													<label class="input">
216 216
 														<input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
217 217
 															   name="ypsl"  placeholder="样品数量" validNumber="true" required />
@@ -220,7 +220,7 @@
220 220
 											</section>
221 221
 											<section class="col col-3">
222 222
 												<label class="select">
223
-													<label class="label">代表数量:<span style="color: red;">*</span></label>
223
+													<label class="label">代表数量(kg):<span style="color: red;">*</span></label>
224 224
 													<label class="input">
225 225
 														<input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
226 226
 															   name="dbsl"  placeholder="代表数量" validNumber="true" required />
@@ -403,11 +403,11 @@
403 403
 																<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
404 404
 															</label>
405 405
 														</td>
406
-														<td rowspan="9" class="text-center" style="vertical-align: middle;">不完善粒</td>
406
+														<td rowspan="10" class="text-center" style="vertical-align: middle;">不完善粒</td>
407 407
 														<td class="text-center" colspan="2">总量</td>
408 408
 														<td colspan="2">
409 409
 															<label class="input">
410
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
410
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
411 411
 															</label>
412 412
 														</td>
413 413
 													</tr>
@@ -430,7 +430,7 @@
430 430
 														<td>总量%</td>
431 431
 														<td>
432 432
 															<label class="input">
433
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-disabled="isShow">
433
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
434 434
 															</label>
435 435
 														</td>
436 436
 														<td rowspan="4" class="text-center" style="vertical-align: middle;">病斑粒</td>
@@ -518,22 +518,33 @@
518 518
 														</td>
519 519
 													</tr>
520 520
 													<tr>
521
-														<td colspan="2" class="text-center">
521
+														<td colspan="2" class="text-center">色泽、气味</td>
522
+														<td class="text-center">
522 523
 															<label class="input">
523
-																<input type="text" ng-model="qualitycheckInspection.inputOne" name="inputOne" ng-readonly="isNotEdit">
524
+																<input type="text" ng-model="qualitycheckInspection.colorSmell" name="colorSmell" ng-readonly="isNotEdit"  ng-blur="zjzl()">
524 525
 															</label>
525 526
 														</td>
526
-														<td>
527
+														<td colspan="2" class="text-center">生芽粒%</td>
528
+														<td colspan="2" class="text-center">
527 529
 															<label class="input">
528
-																<input type="text" ng-model="qualitycheckInspection.inputTwo" name="inputTwo" ng-blur="zjzl()" ng-readonly="isNotEdit">
530
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel"  ng-blur="zjzl()" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
529 531
 															</label>
530 532
 														</td>
531
-														<td colspan="2" class="text-center">生芽粒%</td>
533
+													</tr>
534
+													<tr>
532 535
 														<td colspan="2" class="text-center">
533 536
 															<label class="input">
534
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel"  ng-blur="zjzl()" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
537
+																<input type="text" ng-model="qualitycheckInspection.inputOne" name="inputOne" ng-readonly="isNotEdit">
538
+															</label>
539
+														</td>
540
+														<td>
541
+															<label class="input">
542
+																<input type="text" ng-model="qualitycheckInspection.inputTwo" name="inputTwo" ng-blur="zjzl()" ng-readonly="isNotEdit">
535 543
 															</label>
536 544
 														</td>
545
+														<td colspan="2" class="text-center"></td>
546
+														<td colspan="2" class="text-center"></td>
547
+													
537 548
 													</tr>
538 549
 												</table>
539 550
 											</div>
@@ -582,14 +593,14 @@
582 593
 														<td class="text-center" colspan="2">水分%</td>
583 594
 														<td>
584 595
 															<label class="input">
585
-																<input type="text" ng-model="qualitycheck.water" name="water" ng-readonly="isNotEdit">
596
+																<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
586 597
 															</label>
587 598
 														</td>
588
-														<td rowspan="8" class="text-center" style="vertical-align: middle;">不完善粒</td>
599
+														<td rowspan="9" class="text-center" style="vertical-align: middle;">不完善粒</td>
589 600
 														<td class="text-center" colspan="2">总量</td>
590 601
 														<td class="text-center" colspan="2">
591 602
 															<label class="input">
592
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
603
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" ng-blur="zjzl()" name="imperfectgrainsTotal" ng-readonly="true">
593 604
 															</label>
594 605
 														</td>
595 606
 													</tr>
@@ -604,7 +615,7 @@
604 615
 														<td class="text-center" colspan="2">虫蚀粒%</td>
605 616
 														<td class="text-center" colspan="2">
606 617
 															<label class="input">
607
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
618
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" ng-blur="zjzl()" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
608 619
 															</label>
609 620
 														</td>
610 621
 													</tr>
@@ -613,13 +624,13 @@
613 624
 														<td>总量%</td>
614 625
 														<td>
615 626
 															<label class="input">
616
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
627
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
617 628
 															</label>
618 629
 														</td>
619 630
 														<td class="text-center" colspan="2">病斑粒</td>
620 631
 														<td colspan="2">
621 632
 															<label class="input">
622
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" name="imperfectgrainsScab" ng-readonly="isNotEdit">
633
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" ng-blur="zjzl()" name="imperfectgrainsScab" ng-readonly="isNotEdit">
623 634
 															</label>
624 635
 														</td>
625 636
 													</tr>
@@ -627,13 +638,13 @@
627 638
 														<td>有机杂质%</td>
628 639
 														<td>
629 640
 															<label class="input">
630
-																<input type="text" ng-model="qualitycheckInspection.impurityOrganic" name="impurityOrganic" ng-readonly="isNotEdit">
641
+																<input type="text" ng-model="qualitycheckInspection.impurityOrganic" ng-blur="zjzl()" name="impurityOrganic" ng-readonly="isNotEdit">
631 642
 															</label>
632 643
 														</td>
633 644
 														<td class="text-center" colspan="2">破损粒%</td>
634 645
 														<td colspan="2">
635 646
 															<label class="input">
636
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsDamage" name="imperfectgrainsDamage" ng-readonly="isNotEdit">
647
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsDamage" ng-blur="zjzl()" name="imperfectgrainsDamage" ng-readonly="isNotEdit">
637 648
 															</label>
638 649
 														</td>
639 650
 													</tr>
@@ -641,13 +652,13 @@
641 652
 														<td>无机杂质%</td>
642 653
 														<td>
643 654
 															<label class="input">
644
-																<input type="text" ng-model="qualitycheckInspection.impurityInorganic" name="impurityInorganic" ng-readonly="isNotEdit">
655
+																<input type="text" ng-model="qualitycheckInspection.impurityInorganic" ng-blur="zjzl()" name="impurityInorganic" ng-readonly="isNotEdit">
645 656
 															</label>
646 657
 														</td>
647 658
 														<td class="text-center" colspan="2">生芽粒%</td>
648 659
 														<td colspan="2">
649 660
 															<label class="input">
650
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
661
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsSproutedkernel" ng-blur="zjzl()" name="imperfectgrainsSproutedkernel" ng-readonly="isNotEdit">
651 662
 															</label>
652 663
 														</td>
653 664
 													</tr>
@@ -655,13 +666,13 @@
655 666
 														<td>筛下物%</td>
656 667
 														<td>
657 668
 															<label class="input">
658
-																<input type="text" ng-model="qualitycheckInspection.sieveResidue" name="impurityInorganic" ng-readonly="isNotEdit">
669
+																<input type="text" ng-model="qualitycheckInspection.sieveResidue" ng-blur="zjzl()" name="impurityInorganic" ng-readonly="isNotEdit">
659 670
 															</label>
660 671
 														</td>
661 672
 														<td class="text-center" colspan="2">生霉粒%</td>
662 673
 														<td colspan="2">
663 674
 															<label class="input">
664
-																<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-readonly="isNotEdit">
675
+																<input type="text" ng-model="qualitycheck.mildewCount" ng-blur="zjzl()" name="mildewCount" ng-readonly="isNotEdit">
665 676
 															</label>
666 677
 														</td>
667 678
 													</tr>
@@ -669,14 +680,28 @@
669 680
 														<td class="text-center" colspan="2">霉变粒%</td>
670 681
 														<td >
671 682
 															<label class="input">
672
-																<input type="text" ng-model="qualitycheckInspection.mildew" name="mildew" ng-readonly="isNotEdit">
683
+																<input type="text" ng-model="qualitycheckInspection.mildew" name="mildew" ng-blur="zjzl()" ng-readonly="isNotEdit">
673 684
 															</label>
674 685
 														</td>
675 686
 														<td rowspan="2" class="text-center" style="vertical-align: middle;">热损伤粒%</td>
676 687
 														<td class="text-center">自然热损伤粒</td>
677 688
 														<td colspan="2">
678 689
 															<label class="input">
679
-																<input type="text" ng-model="qualitycheckInspection.naturally" name="naturally" ng-readonly="isNotEdit">
690
+																<input type="text" ng-model="qualitycheckInspection.naturally" name="naturally" ng-blur="zjzl()" ng-readonly="isNotEdit">
691
+															</label>
692
+														</td>
693
+													</tr>
694
+													<tr>
695
+														<td colspan="2" class="text-center">色泽、气味</td>
696
+														<td>
697
+															<label class="input">
698
+																<input type="text" ng-model="qualitycheckInspection.colorSmell" name="colorSmell" ng-readonly="isNotEdit">
699
+															</label>
700
+														</td>
701
+														<td class="text-center">烘干热损伤粒</td>
702
+														<td colspan="2" >
703
+															<label class="input">
704
+																<input type="text" ng-model="qualitycheckInspection.stoving" name="stoving"  ng-blur="zjzl()" ng-readonly="isNotEdit">
680 705
 															</label>
681 706
 														</td>
682 707
 													</tr>
@@ -691,12 +716,8 @@
691 716
 																<input type="text" ng-model="qualitycheckInspection.inputTwo" name="inputTwo" ng-readonly="isNotEdit">
692 717
 															</label>
693 718
 														</td>
694
-														<td class="text-center">烘干热损伤粒</td>
695
-														<td colspan="2" >
696
-															<label class="input">
697
-																<input type="text" ng-model="qualitycheckInspection.stoving" name="stoving" ng-readonly="isNotEdit">
698
-															</label>
699
-														</td>
719
+														<td colspan="2"></td>
720
+														<td></td>
700 721
 													</tr>
701 722
 												</table>
702 723
 											</div>
@@ -752,12 +773,12 @@
752 773
 													<td class="text-center" colspan="2">总量</td>
753 774
 													<td class="text-center" colspan="2">
754 775
 														<label class="input">
755
-															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
776
+															<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="true">
756 777
 														</label>
757 778
 													</td>
758 779
 												</tr>
759 780
 												<tr>
760
-													<td class="text-center" colspan="2">完整粒率%)</td>
781
+													<td class="text-center" colspan="2">完整粒率%</td>
761 782
 													<td>
762 783
 														<label class="input">
763 784
 															<input type="text" ng-model="qualitycheck.goodpart" name="goodpart" ng-readonly="isNotEdit">
@@ -806,7 +827,7 @@
806 827
 													<td>总量%</td>
807 828
 													<td>
808 829
 														<label class="input">
809
-															<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
830
+															<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="true">
810 831
 														</label>
811 832
 													</td>
812 833
 
@@ -865,6 +886,16 @@
865 886
 														</label>
866 887
 													</td>
867 888
 												</tr>
889
+												<tr>
890
+													<td class="text-center" colspan="2">色泽、气味</td>
891
+													<td>
892
+														<label class="input">
893
+															<input type="text" ng-model="qualitycheckInspection.colorSmell" name="colorSmell" ng-readonly="isNotEdit">
894
+														</label>
895
+													</td>
896
+													<td colspan="3"></td>
897
+													<td colspan="2"></td>
898
+												</tr>
868 899
 											</table>
869 900
 										</div>
870 901
 									</fieldset>
@@ -1043,6 +1074,16 @@
1043 1074
 															</label>
1044 1075
 														</td>
1045 1076
 													</tr>
1077
+													<tr>
1078
+														<td colspan="2" class="text-center">色泽、气味</td>
1079
+														<td>
1080
+															<label class="input">
1081
+																<input type="text" ng-model="qualitycheckInspection.colorSmell" name="colorSmell"  ng-readonly="isNotEdit">
1082
+															</label>
1083
+														</td>
1084
+														<td colspan="3" class="text-center"></td>
1085
+														<td colspan="2" class="text-center"></td>
1086
+													</tr>
1046 1087
 												</table>
1047 1088
 											</div>
1048 1089
 										</fieldset>
@@ -1089,13 +1130,13 @@
1089 1130
 														<td class="text-center" colspan="2">气味、滋味</td>
1090 1131
 														<td>
1091 1132
 															<label class="input">
1092
-																<input type="text" ng-model="qualitycheck.smelltaste" name="smelltaste" ng-readonly="isNotEdit">
1133
+																<input type="text" ng-model="qualitycheck.smelltaste" name="smelltaste" ng-readonly="isNotEdit" >
1093 1134
 															</label>
1094 1135
 														</td>
1095 1136
 														<td class="text-center" colspan="2">水分及挥发物含量%</td>
1096 1137
 														<td>
1097 1138
 															<label class="input">
1098
-																<input type="text" ng-model="qualitycheckInspection.waterVolatiles" name="waterVolatiles" ng-readonly="isNotEdit">
1139
+																<input type="text" ng-model="qualitycheckInspection.waterVolatiles" name="waterVolatiles" ng-readonly="isNotEdit" validNumber=true>
1099 1140
 															</label>
1100 1141
 														</td>
1101 1142
 													</tr>
@@ -1103,13 +1144,13 @@
1103 1144
 														<td class="text-center" colspan="2">不溶性杂质含量%</td>
1104 1145
 														<td>
1105 1146
 															<label class="input">
1106
-																<input type="text" ng-model="qualitycheckInspection.insolubleImpurity" name="insolubleImpurity" ng-readonly="isNotEdit">
1147
+																<input type="text" ng-model="qualitycheckInspection.insolubleImpurity" name="insolubleImpurity" ng-readonly="isNotEdit" validNumber=true>
1107 1148
 															</label>
1108 1149
 														</td>
1109 1150
 														<td class="text-center" colspan="2">酸价(KOH)/(mg/g)</td>
1110 1151
 														<td>
1111 1152
 															<label class="input">
1112
-																<input type="text" ng-model="qualitycheckInspection.acidValue" name="acidValue" ng-readonly="isNotEdit">
1153
+																<input type="text" ng-model="qualitycheckInspection.acidValue" name="acidValue" ng-readonly="isNotEdit" validNumber=true>
1113 1154
 															</label>
1114 1155
 														</td>
1115 1156
 													</tr>
@@ -1117,13 +1158,13 @@
1117 1158
 														<td class="text-center" colspan="2">过氧化值(mmol/kg)</td>
1118 1159
 														<td>
1119 1160
 															<label class="input">
1120
-																<input type="text" ng-model="qualitycheck.peroxideValue" name="peroxideValue" ng-readonly="isNotEdit">
1161
+																<input type="text" ng-model="qualitycheck.peroxideValue" name="peroxideValue" ng-readonly="isNotEdit" validNumber=true>
1121 1162
 															</label>
1122 1163
 														</td>
1123 1164
 														<td class="text-center" colspan="2">溶剂残留量(mg/kg)</td>
1124 1165
 														<td>
1125 1166
 															<label class="input">
1126
-																<input type="text" ng-model="qualitycheck.residualSolvent" name="residualSolvent" ng-readonly="isNotEdit">
1167
+																<input type="text" ng-model="qualitycheck.residualSolvent" name="residualSolvent" ng-readonly="isNotEdit" validNumber=true>
1127 1168
 															</label>
1128 1169
 														</td>
1129 1170
 													</tr>
@@ -1176,7 +1217,7 @@
1176 1217
 														<td class="text-center" colspan="2">水分及挥发物含量%</td>
1177 1218
 														<td>
1178 1219
 															<label class="input">
1179
-																<input type="text" ng-model="qualitycheckInspection.waterVolatiles" name="waterVolatiles" ng-readonly="isNotEdit">
1220
+																<input type="text" ng-model="qualitycheckInspection.waterVolatiles" name="waterVolatiles" ng-readonly="isNotEdit" validNumber=true>
1180 1221
 															</label>
1181 1222
 														</td>
1182 1223
 													</tr>
@@ -1184,13 +1225,13 @@
1184 1225
 														<td class="text-center" colspan="2">不溶性杂质含量%</td>
1185 1226
 														<td>
1186 1227
 															<label class="input">
1187
-																<input type="text" ng-model="qualitycheckInspection.insolubleImpurity" name="insolubleImpurity" ng-readonly="isNotEdit">
1228
+																<input type="text" ng-model="qualitycheckInspection.insolubleImpurity" name="insolubleImpurity" ng-readonly="isNotEdit" validNumber=true>
1188 1229
 															</label>
1189 1230
 														</td>
1190 1231
 														<td class="text-center" colspan="2">酸价(KOH)/(mg/g)</td>
1191 1232
 														<td>
1192 1233
 															<label class="input">
1193
-																<input type="text" ng-model="qualitycheckInspection.acidValue" name="acidValue" ng-readonly="isNotEdit">
1234
+																<input type="text" ng-model="qualitycheckInspection.acidValue" name="acidValue" ng-readonly="isNotEdit" validNumber=true>
1194 1235
 															</label>
1195 1236
 														</td>
1196 1237
 													</tr>
@@ -1198,13 +1239,13 @@
1198 1239
 														<td class="text-center" colspan="2">过氧化值(mmol/kg)</td>
1199 1240
 														<td>
1200 1241
 															<label class="input">
1201
-																<input type="text" ng-model="qualitycheck.peroxideValue" name="peroxideValue" ng-readonly="isNotEdit">
1242
+																<input type="text" ng-model="qualitycheck.peroxideValue" name="peroxideValue" ng-readonly="isNotEdit" validNumber=true>
1202 1243
 															</label>
1203 1244
 														</td>
1204 1245
 														<td class="text-center" colspan="2">溶剂残留量(mg/kg)</td>
1205 1246
 														<td>
1206 1247
 															<label class="input">
1207
-																<input type="text" ng-model="qualitycheck.residualSolvent" name="residualSolvent" ng-readonly="isNotEdit">
1248
+																<input type="text" ng-model="qualitycheck.residualSolvent" name="residualSolvent" ng-readonly="isNotEdit" validNumber=true>
1208 1249
 															</label>
1209 1250
 														</td>
1210 1251
 													</tr>
@@ -1212,7 +1253,7 @@
1212 1253
 														<td class="text-center" colspan="2">含皂量%</td>
1213 1254
 														<td>
1214 1255
 															<label class="input">
1215
-																<input type="text" ng-model="qualitycheckInspection.soapContent" name="soapContent" ng-readonly="isNotEdit">
1256
+																<input type="text" ng-model="qualitycheckInspection.soapContent" name="soapContent" ng-readonly="isNotEdit" validNumber=true>
1216 1257
 															</label>
1217 1258
 														</td>
1218 1259
 														<td class="text-center" colspan="2">加热实验(280℃)</td>
@@ -1260,7 +1301,8 @@
1260 1301
 									</div>
1261 1302
 									
1262 1303
 									<!-- 大米 -->
1263
-									<div ng-if="qualitycheck.subType==7107">
1304
+								  <div ng-if="qualitycheck.subType==7107">
1305
+									<div>
1264 1306
 										<header>质量指标</header>
1265 1307
 										<fieldset>
1266 1308
 											<div class="col-xs-15 col-sm-15">
@@ -1269,14 +1311,14 @@
1269 1311
 														<td class="text-center" colspan="2">水分%</td>
1270 1312
 														<td>
1271 1313
 															<label class="input">
1272
-																<input type="text" ng-model="qualitycheck.water" name="water" ng-readonly="isNotEdit">
1314
+																<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
1273 1315
 															</label>
1274 1316
 														</td>
1275 1317
 														<td rowspan="7" class="text-center" style="vertical-align: middle;">不完善粒</td>
1276 1318
 														<td class="text-center" colspan="2">总量</td>
1277 1319
 														<td class="text-center" colspan="2">
1278 1320
 															<label class="input">
1279
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-readonly="isNotEdit">
1321
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsTotal" name="imperfectgrainsTotal" ng-blur="zjzl()" ng-readonly="true">
1280 1322
 															</label>
1281 1323
 														</td>
1282 1324
 													</tr>
@@ -1284,14 +1326,14 @@
1284 1326
 														<td class="text-center" colspan="2">平均长度</td>
1285 1327
 														<td>
1286 1328
 															<label class="input">
1287
-																<input type="text" ng-model="qualitycheckInspection.avgLength" name="avgLength" ng-readonly="isNotEdit">
1329
+																<input type="text" ng-model="qualitycheckInspection.avgLength" name="avgLength" ng-blur="zjzl()" ng-readonly="isNotEdit">
1288 1330
 															</label>
1289 1331
 														</td>
1290 1332
 														<!-- <td></td> -->
1291 1333
 														<td class="text-center" colspan="2">含量%</td>
1292 1334
 														<td class="text-center" colspan="2">
1293 1335
 															<label class="input">
1294
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsContent" name="avgLength" ng-readonly="isNotEdit">
1336
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsContent" name="avgLength" ng-blur="zjzl()" ng-readonly="isNotEdit">
1295 1337
 															</label>
1296 1338
 														</td>
1297 1339
 													</tr>
@@ -1299,14 +1341,14 @@
1299 1341
 														<td class="text-center" colspan="2">完整米粒</td>
1300 1342
 														<td>
1301 1343
 															<label class="input">
1302
-																<input type="text" ng-model="qualitycheckInspection.riceGrains" name="riceGrains" ng-readonly="isNotEdit">
1344
+																<input type="text" ng-model="qualitycheckInspection.riceGrains" name="riceGrains" ng-blur="zjzl()" ng-readonly="isNotEdit">
1303 1345
 															</label>
1304 1346
 														</td>
1305 1347
 														<!-- <td></td> -->
1306 1348
 														<td class="text-center" colspan="2">未熟粒%</td>
1307 1349
 														<td class="text-center" colspan="2">
1308 1350
 															<label class="input">
1309
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsImmaturegrain" name="imperfectgrainsImmaturegrain" ng-readonly="isNotEdit">
1351
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsImmaturegrain" ng-blur="zjzl()" name="imperfectgrainsImmaturegrain" ng-readonly="isNotEdit">
1310 1352
 															</label>
1311 1353
 														</td>
1312 1354
 													</tr>
@@ -1316,13 +1358,13 @@
1316 1358
 														<td class="text-center">总量</td>
1317 1359
 														<td>
1318 1360
 															<label class="input">
1319
-																<input type="text" ng-model="qualitycheckInspection.brokenriceTotal" name="brokenriceTotal" ng-readonly="isNotEdit">
1361
+																<input type="text" ng-model="qualitycheckInspection.brokenriceTotal" ng-blur="zjzl()" name="brokenriceTotal" ng-readonly="true">
1320 1362
 															</label>
1321 1363
 														</td>
1322 1364
 														<td class="text-center" colspan="2">虫蚀粒%</td>
1323 1365
 														<td class="text-center" colspan="2">
1324 1366
 															<label class="input">
1325
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
1367
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" ng-blur="zjzl()" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
1326 1368
 															</label>
1327 1369
 														</td>
1328 1370
 													</tr>
@@ -1330,13 +1372,13 @@
1330 1372
 														<td class="text-center">大碎米</td>
1331 1373
 														<td >
1332 1374
 															<label class="input">
1333
-																<input type="text" ng-model="qualitycheckInspection.brokenriceBig" name="brokenriceBig" ng-readonly="isNotEdit">
1375
+																<input type="text" ng-model="qualitycheckInspection.brokenriceBig" ng-blur="zjzl()" name="brokenriceBig" ng-readonly="isNotEdit">
1334 1376
 															</label>
1335 1377
 														</td>
1336 1378
 														<td class="text-center" colspan="2">病斑粒</td>
1337 1379
 														<td class="text-center" colspan="2">
1338 1380
 															<label class="input">
1339
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" name="imperfectgrainsScab" ng-readonly="isNotEdit">
1381
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsScab" ng-blur="zjzl()" name="imperfectgrainsScab" ng-readonly="isNotEdit">
1340 1382
 															</label>
1341 1383
 														</td>
1342 1384
 													</tr>
@@ -1344,13 +1386,13 @@
1344 1386
 														<td class="text-center">小碎米</td>
1345 1387
 														<td >
1346 1388
 															<label class="input">
1347
-																<input type="text" ng-model="qualitycheckInspection.brokenriceSmall" name="brokenriceSmall" ng-readonly="isNotEdit">
1389
+																<input type="text" ng-model="qualitycheckInspection.brokenriceSmall" ng-blur="zjzl()" name="brokenriceSmall" ng-readonly="isNotEdit">
1348 1390
 															</label>
1349 1391
 														</td>
1350 1392
 														<td class="text-center" colspan="2">糙米粒%</td>
1351 1393
 														<td class="text-center" colspan="2">
1352 1394
 															<label class="input">
1353
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsBrownrice" name="imperfectgrainsBrownrice" ng-readonly="isNotEdit">
1395
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsBrownrice" ng-blur="zjzl()" name="imperfectgrainsBrownrice" ng-readonly="isNotEdit">
1354 1396
 															</label>
1355 1397
 														</td>
1356 1398
 													</tr>
@@ -1360,7 +1402,7 @@
1360 1402
 														<td class="text-center" colspan="2">生霉粒%</td>
1361 1403
 														<td class="text-center" colspan="2">
1362 1404
 															<label class="input">
1363
-																<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-readonly="isNotEdit">
1405
+																<input type="text" ng-model="qualitycheck.mildewCount" name="mildewCount" ng-blur="zjzl()" ng-readonly="isNotEdit">
1364 1406
 															</label>
1365 1407
 														</td>
1366 1408
 													</tr>
@@ -1370,13 +1412,13 @@
1370 1412
 														<td class="text-center">精碾</td>
1371 1413
 														<td>
1372 1414
 															<label class="input">
1373
-																<input type="text" ng-model="qualitycheckInspection.machiningaccuracyEssence" name="machiningaccuracyEssence" ng-readonly="isNotEdit">
1415
+																<input type="text" ng-model="qualitycheckInspection.machiningaccuracyEssence" ng-blur="zjzl()" name="machiningaccuracyEssence" ng-readonly="isNotEdit">
1374 1416
 															</label>
1375 1417
 														</td>
1376 1418
 														<td class="text-center" colspan="3">黄粒米%</td>
1377 1419
 														<td class="text-center" colspan="2">
1378 1420
 															<label class="input">
1379
-																<input type="text" ng-model="qualitycheckInspection.yellowRice" name="yellowRice" ng-readonly="isNotEdit">
1421
+																<input type="text" ng-model="qualitycheckInspection.yellowRice" ng-blur="zjzl()" name="yellowRice" ng-readonly="isNotEdit">
1380 1422
 															</label>
1381 1423
 														</td>
1382 1424
 													</tr>
@@ -1384,13 +1426,13 @@
1384 1426
 														<td class="text-center">适碾</td>
1385 1427
 														<td >
1386 1428
 															<label class="input">
1387
-																<input type="text" ng-model="qualitycheckInspection.machiningaccuracySuitable" name="machiningaccuracySuitable" ng-readonly="isNotEdit">
1429
+																<input type="text" ng-model="qualitycheckInspection.machiningaccuracySuitable" ng-blur="zjzl()" name="machiningaccuracySuitable" ng-readonly="isNotEdit">
1388 1430
 															</label>
1389 1431
 														</td>
1390 1432
 														<td class="text-center" colspan="3">互混率%</td>
1391 1433
 														<td class="text-center" colspan="2">
1392 1434
 															<label class="input">
1393
-																<input type="text" ng-model="qualitycheck.intermixingRate" name="intermixingRate" ng-readonly="isNotEdit">
1435
+																<input type="text" ng-model="qualitycheck.intermixingRate" name="intermixingRate" ng-blur="zjzl()" ng-readonly="isNotEdit">
1394 1436
 															</label>
1395 1437
 														</td>
1396 1438
 													</tr>
@@ -1400,13 +1442,13 @@
1400 1442
 														<td class="text-center">总量</td>
1401 1443
 														<td>
1402 1444
 															<label class="input">
1403
-																<input type="text" ng-model="qualitycheckInspection.impurityTotal" name="impurityTotal" ng-readonly="isNotEdit">
1445
+																<input type="text" ng-model="qualitycheckInspection.impurityTotal" ng-blur="zjzl()" name="impurityTotal" ng-readonly="true">
1404 1446
 															</label>
1405 1447
 														</td>
1406 1448
 														<td class="text-center" colspan="3">垩白度%</td>
1407 1449
 														<td class="text-center" colspan="2">
1408 1450
 															<label class="input">
1409
-																<input type="text" ng-model="qualitycheckInspection.chalkiness" name="chalkiness" ng-readonly="isNotEdit">
1451
+																<input type="text" ng-model="qualitycheckInspection.chalkiness" name="chalkiness" ng-blur="zjzl()" ng-readonly="isNotEdit">
1410 1452
 															</label>
1411 1453
 														</td>
1412 1454
 													</tr>
@@ -1414,13 +1456,13 @@
1414 1456
 														<td class="text-center">糠粉%</td>
1415 1457
 														<td >
1416 1458
 															<label class="input">
1417
-																<input type="text" ng-model="qualitycheckInspection.impurityBranPowder" name="impurityBranPowder" ng-readonly="isNotEdit">
1459
+																<input type="text" ng-model="qualitycheckInspection.impurityBranPowder" ng-blur="zjzl()" name="impurityBranPowder" ng-readonly="isNotEdit">
1418 1460
 															</label>
1419 1461
 														</td>
1420 1462
 														<td class="text-center" colspan="3">直链淀粉含量%</td>
1421 1463
 														<td class="text-center" colspan="2">
1422 1464
 															<label class="input">
1423
-																<input type="text" ng-model="qualitycheckInspection.amylose" name="amylose" ng-readonly="isNotEdit">
1465
+																<input type="text" ng-model="qualitycheckInspection.amylose" name="amylose" ng-blur="zjzl()" ng-readonly="isNotEdit">
1424 1466
 															</label>
1425 1467
 														</td>
1426 1468
 													</tr>
@@ -1428,7 +1470,7 @@
1428 1470
 														<td class="text-center">有机杂质%</td>
1429 1471
 														<td >
1430 1472
 															<label class="input">
1431
-																<input type="text" ng-model="qualitycheckInspection.impurityOrganic" name="impurityOrganic" ng-readonly="isNotEdit">
1473
+																<input type="text" ng-model="qualitycheckInspection.impurityOrganic" ng-blur="zjzl()" name="impurityOrganic" ng-readonly="isNotEdit">
1432 1474
 															</label>
1433 1475
 														</td>
1434 1476
 														<td class="text-center" colspan="3"></td>
@@ -1438,7 +1480,7 @@
1438 1480
 														<td class="text-center">无机杂质%</td>
1439 1481
 														<td >
1440 1482
 															<label class="input">
1441
-																<input type="text" ng-model="qualitycheckInspection.impurityInorganic" name="impurityInorganic" ng-readonly="isNotEdit">
1483
+																<input type="text" ng-model="qualitycheckInspection.impurityInorganic" ng-blur="zjzl()" name="impurityInorganic" ng-readonly="isNotEdit">
1442 1484
 															</label>
1443 1485
 														</td>
1444 1486
 														<td class="text-center" colspan="3">
@@ -1452,6 +1494,16 @@
1452 1494
 															</label>
1453 1495
 														</td>
1454 1496
 													</tr>
1497
+													<tr>
1498
+														<td class="text-center" colspan="2">色泽、气味</td>
1499
+														<td >
1500
+															<label class="input">
1501
+																<input type="text" ng-model="qualitycheckInspection.colorSmell"  name="colorSmell" ng-readonly="isNotEdit">
1502
+															</label>
1503
+														</td>
1504
+														<td class="text-center" colspan="3"></td>
1505
+														<td class="text-center" colspan="2"></td>
1506
+													</tr>
1455 1507
 												</table>
1456 1508
 											</div>
1457 1509
 										</fieldset>
@@ -1478,7 +1530,7 @@
1478 1530
 											</div>
1479 1531
 										</fieldset>
1480 1532
 									</div>
1481
-
1533
+						</div>
1482 1534
 									<!-- 小麦粉7038和混合小麦粉7051 -->
1483 1535
 									<div ng-if="qualitycheck.subType==7051 || qualitycheck.subType==7038">
1484 1536
 										<header>质量指标</header>
@@ -1489,13 +1541,13 @@
1489 1541
 														<td class="text-center" colspan="2">水分%</td>
1490 1542
 														<td colspan="2">
1491 1543
 															<label class="input">
1492
-																<input type="text" ng-model="qualitycheck.water" name="water" ng-readonly="isNotEdit">
1544
+																<input type="text" ng-model="qualitycheck.water" name="water" ng-blur="zjzl()" ng-readonly="isNotEdit">
1493 1545
 															</label>
1494 1546
 														</td>
1495 1547
 														<td class="text-center" colspan="2">含沙量%</td>
1496 1548
 														<td class="text-center" colspan="2">
1497 1549
 															<label class="input">
1498
-																<input type="text" ng-model="qualitycheckInspection.siltContent" name="siltContent" ng-readonly="isNotEdit">
1550
+																<input type="text" ng-model="qualitycheckInspection.siltContent" name="siltContent" ng-readonly="isNotEdit" validNumber=true>
1499 1551
 															</label>
1500 1552
 														</td>
1501 1553
 													</tr>
@@ -1517,7 +1569,7 @@
1517 1569
 														<td class="text-center" colspan="2">灰分%(以干物计)</td>
1518 1570
 														<td colspan="2">
1519 1571
 															<label class="input">
1520
-																<input type="text" ng-model="qualitycheckInspection.ashContent" name="ashContent" ng-readonly="isNotEdit">
1572
+																<input type="text" ng-model="qualitycheckInspection.ashContent" name="ashContent" ng-readonly="isNotEdit" validNumber=true>
1521 1573
 															</label>
1522 1574
 														</td>
1523 1575
 														<td class="text-center" colspan="2">脂肪酸值(以湿基计)</td>
@@ -1531,7 +1583,7 @@
1531 1583
 														<td class="text-center" colspan="2">粗细度%</td>
1532 1584
 														<td colspan="2">
1533 1585
 															<label class="input">
1534
-																<input type="text" ng-model="qualitycheckInspection.coarseness" name="coarseness" ng-readonly="isNotEdit">
1586
+																<input type="text" ng-model="qualitycheckInspection.coarseness" name="coarseness" ng-readonly="isNotEdit" validNumber=true>
1535 1587
 															</label>
1536 1588
 														</td>
1537 1589
 														<td class="text-center" colspan="2">气味、口味</td>
@@ -1545,7 +1597,7 @@
1545 1597
 														<td class="text-center" colspan="2">面筋质%(以湿重计)</td>
1546 1598
 														<td colspan="2">
1547 1599
 															<label class="input">
1548
-																<input type="text" ng-model="qualitycheckInspection.gluten" name="gluten" ng-readonly="isNotEdit">
1600
+																<input type="text" ng-model="qualitycheckInspection.gluten" name="gluten" ng-readonly="isNotEdit" validNumber=true>
1549 1601
 															</label>
1550 1602
 														</td>
1551 1603
 														<td class="text-center" colspan="2">
@@ -1886,7 +1938,7 @@
1886 1938
 						<td style="width: 20%;vertical-align: middle;text-align: center;color: #888;">
1887 1939
 							{{qualitycheck.water}}
1888 1940
 						</td>
1889
-						<td rowspan="9" style="vertical-align: middle;text-align: center;width:10%;">不完善粒</td>
1941
+						<td rowspan="10" style="vertical-align: middle;text-align: center;width:10%;">不完善粒</td>
1890 1942
 						<td colspan="2" style="vertical-align: middle;text-align: center;width:20%;">总量</td>
1891 1943
 						<td colspan="2" style="vertical-align: middle;text-align: center;width:20%;color: #888;">
1892 1944
 							{{qualitycheckInspection.imperfectgrainsTotal}}
@@ -1965,17 +2017,25 @@
1965 2017
 						</td>
1966 2018
 					</tr>
1967 2019
 					<tr>
1968
-						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">
1969
-							{{qualitycheckInspection.inputOne}}
1970
-						</td>
2020
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">色泽、气味</td>
1971 2021
 						<td style="vertical-align: middle;text-align: center;color: #888;">
1972
-							{{qualitycheckInspection.inputTwo}}
2022
+						  {{qualitycheckInspection.colorSmell}}
1973 2023
 						</td>
1974 2024
 						<td colspan="2" style="vertical-align: middle;text-align: center;">生霉粒%</td>
1975 2025
 						<td colspan="2" style="vertical-align: middle;text-align: center;color: #888;">
1976 2026
 							{{qualitycheck.mildewCount}}
1977 2027
 						</td>
1978 2028
 					</tr>
2029
+					<tr>
2030
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">
2031
+							{{qualitycheckInspection.inputOne}}
2032
+						</td>
2033
+						<td style="vertical-align: middle;text-align: center;color: #888;">
2034
+							{{qualitycheckInspection.inputTwo}}
2035
+						</td>
2036
+						<td colspan="2" style="vertical-align: middle;text-align: center;"></td>
2037
+						<td colspan="2" style="vertical-align: middle;text-align: center;color: #888;"></td>
2038
+					</tr>
1979 2039
 					<tr ng-if="qualitycheckInspection.inputThree != null">
1980 2040
 						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">
1981 2041
 							{{qualitycheckInspection.inputThree}}
@@ -2020,7 +2080,7 @@
2020 2080
 						<td style="width:20%;vertical-align: middle;text-align: center; color:#888;">
2021 2081
 							{{qualitycheck.water}}
2022 2082
 						</td>
2023
-						<td rowspan="8" style="vertical-align: middle;text-align: center;width:10%;">不完善粒</td>
2083
+						<td rowspan="9" style="vertical-align: middle;text-align: center;width:10%;">不完善粒</td>
2024 2084
 						<td colspan="2" style="vertical-align: middle;text-align: center;width:20%;">总量</td>
2025 2085
 						<td colspan="2" style="width:20%;vertical-align: middle;text-align: center; color:#888;">
2026 2086
 							{{qualitycheckInspection.imperfectgrainsTotal}}
@@ -2037,7 +2097,7 @@
2037 2097
 						</td>
2038 2098
 					</tr>
2039 2099
 					<tr>
2040
-						<td rowspan="3" style="vertical-align: middle;text-align: center;">杂质</td>
2100
+						<td rowspan="4" style="vertical-align: middle;text-align: center;">杂质</td>
2041 2101
 						<td style="height:30px;vertical-align: middle;text-align: center;">总量%</td>
2042 2102
 						<td style="vertical-align: middle;text-align: center; color:#888;">
2043 2103
 							{{qualitycheckInspection.impurityTotal}}
@@ -2068,9 +2128,9 @@
2068 2128
 						</td>
2069 2129
 					</tr>
2070 2130
 					<tr>
2071
-						<td ccolspan="2" style="height:30px;vertical-align: middle;text-align: center;">霉变粒%</td>
2131
+						<td style="height:30px;vertical-align: middle;text-align: center;">筛下物%</td>
2072 2132
 						<td style="vertical-align: middle;text-align: center; color:#888;">
2073
-							{{qualitycheckInspection.mildew}}
2133
+							{{qualitycheckInspection.sieveResidue}}
2074 2134
 						</td>
2075 2135
 						<td colspan="2" style="vertical-align: middle;text-align: center;">生霉粒%</td>
2076 2136
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
@@ -2078,8 +2138,10 @@
2078 2138
 						</td>
2079 2139
 					</tr>
2080 2140
 					<tr>
2081
-						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;"></td>
2082
-						<td></td>
2141
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">霉变粒%</td>
2142
+						<td style="vertical-align: middle;text-align: center; color:#888;">
2143
+							{{qualitycheckInspection.mildew}}
2144
+						</td>
2083 2145
 						<td rowspan="2" style="vertical-align: middle;text-align: center;">热损伤粒%</td>
2084 2146
 						<td style="height:30px;vertical-align: middle;text-align: center;">自然热损伤粒</td>
2085 2147
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
@@ -2087,21 +2149,22 @@
2087 2149
 						</td>
2088 2150
 					</tr>
2089 2151
 					<tr>
2090
-						<td colspan="2" class="text-center"></td>
2091
-						<td></td>
2152
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">色泽、气味</td>
2153
+						<td>{{qualitycheckInspection.colorSmell}}</td>
2092 2154
 						<td style="height:30px;vertical-align: middle;text-align: center;">烘干热损伤粒</td>
2093 2155
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
2094 2156
 							{{qualitycheckInspection.stoving}}
2095 2157
 						</td>
2158
+						
2096 2159
 					</tr>
2097 2160
 					<tr>
2098
-						<td colspan="2" class="text-center">
2161
+						<td colspan="2"  style="height:30px;vertical-align: middle;text-align: center;">
2099 2162
 							{{qualitycheckInspection.inputOne}}
2100 2163
 						</td>
2101 2164
 						<td style="vertical-align: middle;text-align: center; color:#888;">
2102 2165
 							{{qualitycheckInspection.inputTwo}}
2103 2166
 						</td>
2104
-						<td colspan="3" class="text-center">
2167
+						<td colspan="2"  style="height:30px;vertical-align: middle;text-align: center;">
2105 2168
 							{{qualitycheckInspection.inputThree}}
2106 2169
 						</td>
2107 2170
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
@@ -2223,6 +2286,16 @@
2223 2286
 							{{qualitycheckInspection.inputTwo}}
2224 2287
 						</td>
2225 2288
 					</tr>
2289
+					<tr>
2290
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">色泽、气味</td>
2291
+						<td style="vertical-align: middle;text-align: center; color:#888;">
2292
+							{{qualitycheckInspection.colorSmell}}
2293
+						</td>
2294
+						<td colspan="3" style="vertical-align: middle;text-align: center;"></td>
2295
+						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;"></td>
2296
+							
2297
+						
2298
+					</tr>
2226 2299
 					<tr ng-if="qualitycheckInspection.inputThree != null">
2227 2300
 						<td colspan="2" class="text-center">
2228 2301
 							{{qualitycheckInspection.inputThree}}
@@ -2347,6 +2420,15 @@
2347 2420
 							{{qualitycheckInspection.inputTwo}}
2348 2421
 						</td>
2349 2422
 					</tr>
2423
+					<tr>
2424
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">色泽、气味</td>
2425
+						<td style="vertical-align: middle;text-align: center; color:#888;">
2426
+							{{qualitycheckInspection.colorSmell}}
2427
+						</td>
2428
+						<td colspan="3" style="vertical-align: middle;text-align: center;"></td>
2429
+						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;"></td>
2430
+						
2431
+					</tr>
2350 2432
 					<tr ng-if="qualitycheckInspection.inputThree != null">
2351 2433
 						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">
2352 2434
 							{{qualitycheckInspection.inputThree}}
@@ -2526,8 +2608,9 @@
2526 2608
 
2527 2609
 		<div ng-if="qualitycheck.subType==7107">
2528 2610
 			<div class="col-xs-15 col-sm-15">
2529
-				<table class="table table-striped  table-bordered table-hover" style="border-collapse:collapse;border:none;" border="1" width="100%">
2530
-					<tr colspan="8">
2611
+			<table class="table table-striped  table-bordered table-hover" bordercolor="#999999" style="border-style:solid;border-collapse:collapse;" border="1" width="100%">
2612
+<!-- 				<table class="table table-striped  table-bordered table-hover" style="border-collapse:collapse;border:none;" border="1" width="100%">
2613
+ -->					<tr colspan="8">
2531 2614
 						<td colspan="2" style="height:30px;width:20%;vertical-align: middle;text-align: center;">水分%</td>
2532 2615
 						<td style="width:20%;vertical-align: middle;text-align: center; color:#888;">
2533 2616
 							{{qualitycheck.water}}
@@ -2613,7 +2696,7 @@
2613 2696
 						<td style="vertical-align: middle;text-align: center; color:#888;">
2614 2697
 							{{qualitycheckInspection.machiningaccuracySuitable}}
2615 2698
 						</td>
2616
-						<td ccolspan="3" style="vertical-align: middle;text-align: center;">互混率%</td>
2699
+						<td colspan="3" style="vertical-align: middle;text-align: center;">互混率%</td>
2617 2700
 						<td colspan="2" style="vertical-align: middle;text-align: center; color:#888;">
2618 2701
 							{{qualitycheck.intermixingRate}}
2619 2702
 						</td>
@@ -2659,6 +2742,14 @@
2659 2742
 							{{qualitycheckInspection.inputTwo}}
2660 2743
 						</td>
2661 2744
 					</tr>
2745
+					<tr>
2746
+						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">色泽、气味</td>
2747
+						<td style="vertical-align: middle;text-align: center; color:#888;">
2748
+							{{qualitycheckInspection.colorSmell}}
2749
+						</td>
2750
+						<td colspan="3" style="vertical-align: middle;text-align: center;"></td>
2751
+						<td colspan="2" style="vertical-align: middle;text-align: center;"></td>
2752
+					</tr>
2662 2753
 					<tr ng-if="qualitycheckInspection.inputThree != null">
2663 2754
 						<td colspan="2" style="height:30px;vertical-align: middle;text-align: center;">
2664 2755
 							{{qualitycheckInspection.inputThree}}

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

@@ -211,7 +211,7 @@
211 211
 											</section>
212 212
 											<section class="col col-3">
213 213
 												<label class="select">
214
-													<label class="label">样品数量:<span style="color: red;">*</span></label>
214
+													<label class="label">样品数量(kg):<span style="color: red;">*</span></label>
215 215
 													<label class="input">
216 216
 														<input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
217 217
 															   name="ypsl"  placeholder="样品数量" validNumber="true" required />
@@ -220,7 +220,7 @@
220 220
 											</section>
221 221
 											<section class="col col-3">
222 222
 												<label class="select">
223
-													<label class="label">代表数量:<span style="color: red;">*</span></label>
223
+													<label class="label">代表数量(kg):<span style="color: red;">*</span></label>
224 224
 													<label class="input">
225 225
 														<input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
226 226
 															   name="dbsl"  placeholder="代表数量" validNumber="true" required />

文件差異過大導致無法顯示
+ 715 - 381
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-outcheck-edit.html


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

@@ -200,7 +200,7 @@
200 200
 											</section>
201 201
 											<section class="col col-3">
202 202
 												<label class="select">
203
-													<label class="label">样品数量:<span style="color: red;">*</span></label>
203
+													<label class="label">样品数量(kg):<span style="color: red;">*</span></label>
204 204
 													<label class="input">
205 205
 														<input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
206 206
 															   name="ypsl"  placeholder="样品数量" validNumber="true" required />
@@ -209,7 +209,7 @@
209 209
 											</section>
210 210
 											<section class="col col-3">
211 211
 												<label class="select">
212
-													<label class="label">代表数量:<span style="color: red;">*</span></label>
212
+													<label class="label">代表数量(kg):<span style="color: red;">*</span></label>
213 213
 													<label class="input">
214 214
 														<input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
215 215
 															   name="dbsl"  placeholder="代表数量" validNumber="true" required />

+ 3 - 3
src/main/resources/static/app/storage/views/qualitycheck/qualitycheck-springcheck-edit.html

@@ -340,7 +340,7 @@
340 340
 											</section>
341 341
 											<section class="col col-3">
342 342
 												<label class="select">
343
-													<label class="label">样品数量:</label>
343
+													<label class="label">样品数量(kg):</label>
344 344
 													<label class="input">
345 345
 														<input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
346 346
 															   name="ypsl"  placeholder="样品数量" validNumber="true">
@@ -349,7 +349,7 @@
349 349
 											</section>
350 350
 											<section class="col col-3">
351 351
 												<label class="select">
352
-													<label class="label">代表数量:</label>
352
+													<label class="label">代表数量(kg):</label>
353 353
 													<label class="input">
354 354
 														<input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
355 355
 															   name="dbsl"  placeholder="代表数量" validNumber="true">
@@ -596,7 +596,7 @@
596 596
 														<td class="text-center" colspan="2">虫蚀粒%</td>
597 597
 														<td class="text-center" colspan="2">
598 598
 															<label class="input">
599
-																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-readonly="isNotEdit">
599
+																<input type="text" ng-model="qualitycheckInspection.imperfectgrainsInjuredkernel" name="imperfectgrainsInjuredkernel" ng-blur="zjzl()" ng-readonly="isNotEdit">
600 600
 															</label>
601 601
 														</td>
602 602
 													</tr>