Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js =================================================================== diff -u -r36513 -r36555 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36513) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recycleForTouchScreen.js (.../recycleForTouchScreen.js) (revision 36555) @@ -4055,7 +4055,8 @@ var showTousseName = tousseName; var addButton = '+'; var reduceButton = '-'; - var onclickFun = 'onclick="openUpdateAmount(this,' + row + ');"'; + var onclickFun = 'onclick="clickAmount(this,' + row + ');"'; + var ondblclickFun = 'ondblclick="dblClickAmount(this,' + row + ');"'; var urgentAmountElement = ""; if (!isUndefinedOrNull(urgentAmount) && urgentAmount > 0) { var msg = urgentAmount; @@ -4152,7 +4153,7 @@ '' + '' + addButton + - '' + + '' + reduceButton + '' + '入筐' + @@ -4330,17 +4331,35 @@ return materialMsg; } +var timeoutAmount = null; + +function clickAmount(obj, row){ + clearTimeout(timeoutAmount); + //执行延时 + timeoutAmount = setTimeout( function () { + openUpdateAmount(obj, row, 1) + }, 200); +} + +function dblClickAmount(obj, row){ + clearTimeout(timeoutAmount); + //执行延时 + timeoutAmount = setTimeout( function () { + openUpdateAmount(obj, row, 2) + }, 200); +} + // 打开编辑数量的窗口 var openElement; -function openUpdateAmount(obj, row) { +function openUpdateAmount(obj, row, clickType) { var isApplyEntireTousse = $('#isApplyEntireTousse' + row).val(); var tousseType = $('#tousseType' + row).val(); if (tousseType == '外来器械包') { alertDiv("外来器械包回收数量修改请使用旁边的按钮操作"); return; } - if (tousseType == '消毒物品') { + if (tousseType == '消毒物品'&& clickType == 1) { amendDisinfectionTousse(row,'updateAmount'); return; }