Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js =================================================================== diff -u -r37513 -r37667 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 37513) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/storageLocationLookView.js (.../storageLocationLookView.js) (revision 37667) @@ -230,21 +230,25 @@ } //BJDXZLYY-44:取出托盘 -function sendKardexContainerTCPCommand() { +function sendKardexContainerTCPCommand(status) { var storageLocationAddr = Ext.getCmp("addr").getValue() || ''; var storageLocationId = $Id("parm_s_id").value; - if (storageLocationId == '' || storageLocationId == 0 || storageLocationId == '0') { - showResult('请先选择了托盘后再操作。'); + if(storageLocationAddr == ''){ + showResult('开口不能为空'); return; } - if (storageLocationAddr == '') { - showResult('请选择开口!'); - return; + if(status == '取出'){ + if (storageLocationId == '' || storageLocationId == 0 || storageLocationId == '0') { + showResult('请先选择了托盘后再操作!'); + return; + } + }else { + storageLocationId = 0; } var params = { storageLocationId: storageLocationId, addr: storageLocationAddr, - status: '取出', + status: status, host: kardexContainerHost, port: kardexContainerPort } @@ -967,6 +971,7 @@ Ext.getCmp('btn1').show(); Ext.getCmp('btn2').show(); Ext.getCmp('btn3').hide(); + Ext.getCmp('btn4').hide(); Ext.getCmp('retrievalBtn').hide(); resetStorageLocation(); //BJDXZLYY-47:存入扫描多个条码 @@ -978,6 +983,7 @@ Ext.getCmp('btn1').hide(); Ext.getCmp('btn2').hide(); Ext.getCmp('btn3').show(); + Ext.getCmp('btn4').show(); Ext.getCmp('retrievalBtn').hide(); resetStorageLocation(); drawerStore.load(); @@ -987,6 +993,7 @@ Ext.getCmp('btn1').hide(); Ext.getCmp('btn2').hide(); Ext.getCmp('btn3').show(); + Ext.getCmp('btn4').show(); Ext.getCmp('retrievalBtn').show(); resetStorageLocation(); drawerStore.load(); @@ -1020,8 +1027,18 @@ id: 'btn3', hidden: true, handler: function () { - sendKardexContainerTCPCommand(); + sendKardexContainerTCPCommand('取出'); } + }, { + xtype: 'button', + text: '存入托盘', + minWidth: 70, + id: 'btn4', + hidden: true, + handler: function () { + //BJDXZLYY-49:新增存入托盘 + sendKardexContainerTCPCommand('存入'); + } }] });