Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js =================================================================== diff -u -r36603 -r36616 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36603) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36616) @@ -520,7 +520,7 @@ } // 增加物品(即点击左边的“+”图标) -function add(row) { +function add(row,isPlayAudio) { var recycleAmount = $('#recycleAmount' + row).val() == '' ? 0 : parseInt($('#recycleAmount' + row).val(), 10); //是否整包申请 var isApplyEntireTousse = $('#isApplyEntireTousse' + row).val(); @@ -531,17 +531,35 @@ return; } if (tousseType == '消毒物品' && '是' != isApplyEntireTousse) { - alertDiv("拆包申请的消毒物品回收数量不能大于1,请点击器械包名修改材料数量!"); + alertDiv("拆包申请的消毒物品回收包数不能大于1,请点击回收数量单元格修改材料数量!"); return; } } increaseAmount(row); setTousseItemLoadedAmountCss(row); updateBindGoods(row); var recycleAmountChange = recycleAmount + 1; - playAudioAndTts(recycleAmountChange, 'recycleAudioAmount'); + if(isPlayAudio){ + playAudioAndTts(recycleAmountChange, 'recycleAudioAmount'); + } } +var downTimeOut = null; +function mouseDown(row,type){ + downTimeOut = setTimeout(function(){ + if(type == 0){ + add(row,false); + }else { + reduce(row,false); + } + mouseDown(row,type); + },400) +} + +function mouseUp(){ + clearTimeout(downTimeOut); +} + // 验证加急数量是否大于回收数量。如果加急数量大于回收数量,返回true,否则返回false function validateUrgentAmount(row, recycleAmount) { var urgentAmount = $('#urgentAmount' + row).val() == '' ? 0 : parseInt($('#urgentAmount' + row).val(), 10); @@ -586,7 +604,7 @@ } // 减少物品(即点击左边的“-”图标) -function reduce(row) { +function reduce(row,isPlayAudio) { var recycleAmount = $('#recycleAmount' + row).val() == '' ? 0 : parseInt($('#recycleAmount' + row).val(), 10) - 1; if (validateReduceAmount(recycleAmount, row).length > 0) { var arr = validateReduceAmount(recycleAmount, row); @@ -604,7 +622,9 @@ if (recycleAmount <= 0) { recycleAmount = "0"; } - playAudioAndTts(recycleAmount, 'recycleAudioAmount'); + if(isPlayAudio){ + playAudioAndTts(recycleAmount, 'recycleAudioAmount'); + } } // 扫描器械包条码和标识牌,添加丢失报损备注到已经存在的回收项 @@ -4055,10 +4075,9 @@ }); if (b) { var showTousseName = tousseName; - var addButton = '