Index: ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js =================================================================== diff -u -r30253 -r30288 --- ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js (.../reviewView.js) (revision 30253) +++ ssts-web/src/main/webapp/disinfectsystem/packing/reviewView.js (.../reviewView.js) (revision 30288) @@ -530,7 +530,7 @@ var currentSterilingMode = selectedRecords[i].data["sterilingMode"]; //showResult("【"+ selectedRecords[i].data["tousseDefinition.name"] +"】"+ (currentSterilingMode ? ("属于【"+ currentSterilingMode +"】物品") : "") +"与原有"+ (sterilingModeFromLeftReviewGrid ? ("【"+ sterilingModeFromLeftReviewGrid +"】物品") : "物品灭菌方式") +"不一致,不能入框审核"); noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(selectedRecords[0].data["tousseDefinition.name"] , currentSterilingMode, sterilingModeFromLeftReviewGrid , "审核") , afterNoticeMessageBoxClosed); - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); return false; } } @@ -649,7 +649,7 @@ validateSterilizer(needValidateRecords); } } - Ext.getCmp('barcode').focus(); + Ext.getCmp('barcodes').focus(); } //验证炉号 @@ -865,7 +865,7 @@ // if(barcodeEnd == '') { if(hiddenEndBarcode || currentScanMode == 'single'){ - Ext.getCmp('barcode').setValue("");//如果未使用虚拟篮筐机制或者使用篮筐机制但扫描模式为单个扫描,扫描成功后需要清除该文本内容 + Ext.getCmp('barcodes').setValue("");//如果未使用虚拟篮筐机制或者使用篮筐机制但扫描模式为单个扫描,扫描成功后需要清除该文本内容 }else{ Ext.getCmp('barcodeEnd').focus();//否则不清除,条码/篮筐(尾)获得焦点 } @@ -886,7 +886,7 @@ //灭菌方式对话框关闭后执行的事情 function afterNoticeMessageBoxClosed(){ - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); } Ext.onReady(function() { @@ -954,7 +954,7 @@ clearBarcodeAndBasketName(); clearReviewInfoByConfig(); onScannedTousseAmountChanged();// 待审核包数量数量变化处理 - Ext.getCmp('barcode').focus(); + Ext.getCmp('barcodes').focus(); } }, failure : function(response, options) { @@ -1711,21 +1711,21 @@ text : beginBarcodeLabel },{ xtype : 'textfield', - id : "barcode", + id : "barcodes", name : 'barcode', width:100, enableKeyEvent : true, listeners : { render : function(c) { c.getEl().on('keypress',function(e) { if (e.getKey() == 13) {// 输入;号键,grid重新加载 - if(Ext.getCmp('barcode').getValue() == ''){ + if(Ext.getCmp('barcodes').getValue() == ''){ showResult("请输入或扫描相关信息。" , null , sstsConfig.messagePauseTimeOnReviewPage); return; } - var isExist = Ext.getCmp('forReviewGrid').getStore().find('barcode', Ext.getCmp('barcode').getValue().trim()); + var isExist = Ext.getCmp('forReviewGrid').getStore().find('barcode', Ext.getCmp('barcodes').getValue().trim()); if(isExist==-1){ - var barcode = Ext.getCmp('barcode').getValue(); + var barcode = Ext.getCmp('barcodes').getValue(); clearScanText(); ForeignProxyDisinfectionTableManager.getResultJsonStrByBarcode(barcode,"审核",function(jsonStr){ var obj = Ext.util.JSON.decode(jsonStr); @@ -1741,23 +1741,23 @@ }else{ showResult(obj.message , null , sstsConfig.messagePauseTimeOnReviewPage); } - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); }else if(returnType=="basketNotFound"){//条码不存在 showResult("找不到该包或篮筐或人员信息。" , null , sstsConfig.messagePauseTimeOnReviewPage) } else if (returnType == "basketUsed") { showResult("无法录入篮筐,篮筐正处于[" + obj.status + "]状态" , null , sstsConfig.messagePauseTimeOnReviewPage); clearBarcodeAndBasketName(); } else if (returnType == "erroeStatus"){ showResult("器械包状态异常,请录入待"+reviewViewText+"的器械包" , null , sstsConfig.messagePauseTimeOnReviewPage); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); // clearBarcodeAndBasketName(); } else if(returnType == "tousseInstanceSuccess"){//扫描的是包(返回结果为单个器械包,暂保留) // showResult("只能扫描灭菌篮框和审核人条码。"); // clearBarcodeAndBasketName(); // return false; if(taskGroup != obj.taskGroup){ showResult("该条码所对应的器械包不属于当前任务组。" , null , sstsConfig.messagePauseTimeOnReviewPage); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); return; } @@ -1769,7 +1769,7 @@ //只有在扫完清洗篮筐后,发现有扫描的器械包的灭菌方式不一致时才提示 if(!isObjEmpty(basketName) && (obj["sterilingMode"] || sterilingModeFromLeftReviewGrid) && obj["sterilingMode"] != sterilingModeFromLeftReviewGrid){ noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(obj.tousseName , obj["sterilingMode"], sterilingModeFromLeftReviewGrid , "审核") , afterNoticeMessageBoxClosed); - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); return false; } } @@ -1802,7 +1802,7 @@ if(tousseInstanceArray && tousseInstanceArray.length > 0){ if(taskGroup != tousseInstanceArray[0].taskGroup){ showResult("该条码所对应的器械包不属于当前任务组。" , null , sstsConfig.messagePauseTimeOnReviewPage); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); return; } var alreadyAdd = 0; @@ -1832,7 +1832,7 @@ } if(alreadyAdd > 0){ if(hiddenEndBarcode || currentScanMode == 'single'){ - Ext.getCmp('barcode').setValue("");//如果未使用虚拟篮筐机制或者使用篮筐机制但扫描模式为单个扫描,扫描成功后需要清除该文本内容 + Ext.getCmp('barcodes').setValue("");//如果未使用虚拟篮筐机制或者使用篮筐机制但扫描模式为单个扫描,扫描成功后需要清除该文本内容 }else{ Ext.getCmp('barcodeEnd').focus();//否则不清除,条码/篮筐(尾)获得焦点 } @@ -1862,7 +1862,7 @@ } Ext.getCmp("basketName").setValue(obj.containerName); Ext.getCmp('basketBarcode').setValue(barcode); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); speaker.speak(obj.containerName); }else{ showResult(""+reviewViewText+"入筐只能使用灭菌筐。" , null , sstsConfig.messagePauseTimeOnReviewPage); @@ -1892,8 +1892,8 @@ } Ext.getCmp("basketName").setValue(obj.containerName); Ext.getCmp('basketBarcode').setValue(barcode); - Ext.getCmp('barcode').setValue(''); - Ext.getCmp('barcode').focus(); + Ext.getCmp('barcodes').setValue(''); + Ext.getCmp('barcodes').focus(); speaker.speak(obj.containerName); } }); @@ -1907,12 +1907,12 @@ }); } else { showResult('已存在相同条形码的器械包' , null , sstsConfig.messagePauseTimeOnReviewPage); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); } } }); c.getEl().on('focus',function(e) { - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); }); } } @@ -1930,11 +1930,11 @@ render : function(c) { c.getEl().on('keypress',function(e) { if (e.getKey() == 13) {// 输入;号键,grid重新加载 - if(Ext.getCmp('barcode').getValue() == '' || Ext.getCmp('barcodeEnd').getValue() == ''){ + if(Ext.getCmp('barcodes').getValue() == '' || Ext.getCmp('barcodeEnd').getValue() == ''){ showResult("请输入或扫描相关信息。" , null , sstsConfig.messagePauseTimeOnReviewPage); return; } - var barcode = Ext.getCmp('barcode').getValue(); + var barcode = Ext.getCmp('barcodes').getValue(); var barcodeEnd = Ext.getCmp('barcodeEnd').getValue(); ForeignProxyDisinfectionTableManager.getResultJsonStrByBarcode(barcode + ";" + barcodeEnd,"审核",function(jsonStr){ var obj = Ext.util.JSON.decode(jsonStr); @@ -1965,7 +1965,7 @@ && firstSterilingMode != sterilingModeFromLeftReviewGrid){ //showResult("【"+ tousseInstanceArray[0]["tousseDefinition.name"] +"】属于【"+ tousseInstanceArray[i]["sterilingMode"] +"】物品与原有"+ (sterilingModeFromLeftReviewGrid ? ("【"+ sterilingModeFromLeftReviewGrid +"】物品") : "物品灭菌方式") +"不一致,不能入框审核"); noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseInstanceArray[0]["tousseDefinition.name"] , firstSterilingMode, sterilingModeFromLeftReviewGrid , "审核") , afterNoticeMessageBoxClosed); - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); return false; } if(tousseInstanceArray.length > 1){ @@ -1977,7 +1977,7 @@ if(firstSterilingMode != sterilingModeOfItem){ //showResult("【"+ tousseInstanceArray[i]["tousseName"] +"】属于【"+ tousseInstanceArray[i]["sterilingMode"] +"】物品与原有"+ (sterilingModeFromLeftReviewGrid ? ("【"+ sterilingModeFromLeftReviewGrid +"】物品") : "物品灭菌方式") +"不一致,不能入框审核"); noticeDiffSterilingMessage(top.Ext , getDiffSterilingModeMessage(tousseInstanceArray[i]["tousseName"] , tousseInstanceArray[i]["sterilingMode"], sterilingModeFromLeftReviewGrid , "审核") , afterNoticeMessageBoxClosed); - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); return false; } } @@ -2013,7 +2013,7 @@ showResult("未找到相应的器械包或器械包已扫描" , null , sstsConfig.messagePauseTimeOnReviewPage); } speakBasket.speakContent(); - //Ext.getCmp('barcode').setValue(""); + //Ext.getCmp('barcodes').setValue(""); onScannedTousseAmountChanged();// 待审核包数量数量变化处理 } }else if(returnType == "noResult"){//无结果输出 @@ -2036,7 +2036,7 @@ } Ext.getCmp("basketName").setValue(obj.containerName); Ext.getCmp('basketBarcode').setValue(barcode); - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); speaker.speak(obj.containerName); }else{ showResult(""+reviewViewText+"入筐只能使用灭菌筐。" , null , sstsConfig.messagePauseTimeOnReviewPage); @@ -2134,7 +2134,7 @@ } }); function clearBarcodeAndBasketName(){ - Ext.getCmp('barcode').setValue(''); + Ext.getCmp('barcodes').setValue(''); Ext.getCmp('basketName').setValue(''); Ext.getCmp('basketBarcode').setValue(''); } @@ -2417,7 +2417,7 @@ } ); - Ext.getCmp('barcode').focus(false, 100); + Ext.getCmp('barcodes').focus(false, 100); }); /**