Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/addTousse.jsp =================================================================== diff -u -r27504 -r27506 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/addTousse.jsp (.../addTousse.jsp) (revision 27504) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/addTousse.jsp (.../addTousse.jsp) (revision 27506) @@ -41,7 +41,7 @@ parent.layer.close(index); } } - + //锁定键盘 function lockup(e){ e.preventDefault(); } //高亮层不锁定 @@ -101,12 +101,21 @@ urgentAmount:0, errorDamageQmKey:errorDamageQmKey, spelling:spelling - }; - if(window.parent.addToussItem(toussItem,sstsConfig.addTousseAtLastForRecycle)){ - window.parent.highlightExistTousseItem(row); + }; + + if(sstsConfig.enableUserManuallyCloseAddTousseWindow){ + if(window.parent.addToussItem(toussItem,sstsConfig.addTousseAtLastForRecycle)){ + window.parent.highlightExistTousseItem(row); + }else { + alertDiv(tousseName + ",回收列表已存在!"); + } }else { - alertDiv(tousseName + ",回收列表已存在!"); + if(window.parent.addToussItem(toussItem,sstsConfig.addTousseAtLastForRecycle)){ + window.parent.highlightExistTousseItem(row); + } + closeLayer(); } + //已删除又添加该物品jsonArray处理 window.parent.cleanDeleteTousseItem(tousseDefinitionId); window.parent.addBindGoods(toussItem,sstsConfig.addTousseAtLastForRecycle); Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js =================================================================== diff -u -r27504 -r27506 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 27504) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 27506) @@ -2614,8 +2614,13 @@ if(($('#tousseDefinitionID'+i).val() == tousseDefinitionID)||(tousseType == '消毒物品' && $('#tousseName'+i).val() == tousseName)){ //显示的列表中是否有该器械包 if($('#deleted'+i).val() == '0'){ - b = false; - highlightExistTousseItem(i); + var enableUserManuallyCloseAddTousseWindow = sstsConfig.enableUserManuallyCloseAddTousseWindow || false; + + if(!enableUserManuallyCloseAddTousseWindow){ + alertDiv(tousseName + ",回收列表已存在!"); + } + b = false; + highlightExistTousseItem(i); //删除后再添加该消毒物品,删除的项还原,原因是添加的消毒物品包定义和申请项的包定义不一样 }else if(tousseType == '消毒物品'){ $('#deleted'+i).val('0');