Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp =================================================================== diff -u -r30315 -r31565 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp (.../recyclingErrors.jsp) (revision 30315) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp (.../recyclingErrors.jsp) (revision 31565) @@ -223,7 +223,21 @@ newJsonArray.push(item); } } - //newJsonArray = newArray2(newJsonArray); + if(isErrorAmountZero && $("#errorRemark").val() != ""){ + alert("填写了备注,请选择丢失的材料!"); + return; + } + var maxAmount = 0; + for(var i=0;i 0){ + for(var i=0;i maxAmount){ + isReturn = true; + } + } + } + + return isReturn; +} + // 打开材料报损的窗口 function openRecyclingDamagePage(row, tousseName, tousseItemId, errorDamageQmKey) { var tousseType = $('#tousseType' + row).val(); @@ -2425,6 +2451,8 @@ refreshDamageMaterialsView(row); } + + // 将丢失报损的材料json字符串格式化为 名称*数量;名称*数量 的形式.如果数量为0,则排除 function formatErrorOrDamageMaterials(materialArrayStr) { if (!isUndefinedOrNullOrEmpty(materialArrayStr)) { @@ -4624,7 +4652,7 @@ var jsonStr = getJsonParams(confirmation, isConfirm); if (jsonStr == '') { return; } var jSONe = JSON.parse(jsonStr); - //console.log(jSONe);return + console.log(jSONe);return alertDiv("保存中,请稍候......", true); if (IntheBoxState == true) { jSONe.tally = true;