Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.js =================================================================== diff -u -r27343 -r34350 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.js (.../goodsAccess.js) (revision 27343) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.js (.../goodsAccess.js) (revision 34350) @@ -55,6 +55,7 @@ } } Ext.getCmp("drawerName").setValue(result.name);//抽屉名称 + Ext.getCmp("storageLocationId").setValue(result.id);//抽屉id Ext.getCmp('warsehouse').setValue(result.wareHouseName);//仓库 Ext.getCmp('superiorWarsehouse').setValue(result.parentStorageLocationPath);//上级库位 Ext.getCmp('drawerCode').setValue(result.barcode);//库位条码 @@ -209,17 +210,20 @@ }); var basketPanel = new Ext.FormPanel({ - frame : true, - border : 0, - labelSeparator : ':', - bodyStyle : 'padding:5px 5px 0px 5px', - labelAlign:'right', - autoScroll : false, - layout: 'column', + region: 'north', + labelAlign: 'right', + buttonAlign: 'center', + collapsible: true, + collapseMode: 'mini', + split: true, + border: 0, + frame: true, + bodyStyle: 'padding:0px auto;margin:0px',// padding:1px;padding-top:5px; + height: 140, + labelWidth: 90, items : [{ layout : 'column', width:document.body.clientWidth, - height:100, items : [{ xtype : 'hidden', id : 'drawerCode', @@ -233,7 +237,11 @@ id : 'oldBarcode', name : 'oldBarcode' },{ - columnWidth : 0.5, + xtype : 'hidden', + id : 'storageLocationId', + name : 'storageLocationId' + },{ + columnWidth : 0.3, layout : 'form', items : [{ xtype : 'textfield', @@ -243,7 +251,7 @@ disabled : true }] },{ - columnWidth : .4, + columnWidth : .3, layout : 'form', items : [{ xtype : 'textfield', @@ -253,7 +261,7 @@ disabled : true }] },{ - columnWidth : 0.5, + columnWidth : 0.3, layout : 'form', items : [{ xtype : 'textfield', @@ -295,7 +303,7 @@ } }] },{ - columnWidth : 0.4, + columnWidth : 0.3, layout : 'form', items : [{ xtype : 'textfield', @@ -305,8 +313,30 @@ disabled : true }] },{ - columnWidth : 0.5, + columnWidth : .3, layout : 'form', + hidden:!sstsConfig.enableWarehousePositionModuleInterfaceWithKardexContainer, + items : [{ + xtype : 'combo', + id : 'addr', + name : 'addr', + valueField : 'queryValue', + displayField : 'queryMode', + width:180, + fieldLabel : '开口选择', + mode : 'local', + readOnly : true, + editable: false, + triggerAction : 'all', + forceSelection : true, + store : new Ext.data.SimpleStore({ + fields : ['queryMode','queryValue'], + data : [['一号开口','S01-1'],['二号开口','S01-2'],['三号开口','S01-3']] + }) + }] + },{ + columnWidth : 1, + layout : 'form', items : [ new Ext.ux.RadioGroup({ allowBlank : false, @@ -334,29 +364,85 @@ } }) ] - },{ - columnWidth : 0.4, - layout : 'form', - labelAlign:"right", - items : [{ - xtype : 'button', - text : '清空列表', - iconCls : 'icon_set', - handler : function() { - stasticsStore.removeAll(); - tousseListStore.removeAll(); + }] + }], + buttons:[{ + xtype : 'button', + text : '发送命令给货柜', + minWidth : 70, + hidden:!sstsConfig.enableWarehousePositionModuleInterfaceWithKardexContainer, + iconCls : 'icon_search', + handler : function() { + var storageLocationId = Ext.getCmp("storageLocationId").getValue(); + var addr = Ext.getCmp("addr").getValue(); + var status = Ext.getCmp("queryType").getValue(); + var params = { + storageLocationId:storageLocationId, + addr:addr, + status:status + } + if(storageLocationId == ''){ + showResult('抽屉不能为空'); + return; + } + Ext.Ajax.request({ + url : WWWROOT + '/disinfectSystem/baseData/storageRecordAction!sendKardexContainerTCPCommand.do', + async:false, + params : params, + success : function(response) { + var result = Ext.decode(response.responseText); + showResult(result.message); + }, + failure : function(response, options) { + showResult(response.responseText); } - }] + }); + } + },{ + xtype : 'button', + text : '清空列表', + minWidth : 70, + iconCls : 'icon_set', + handler : function() { + stasticsStore.removeAll(); + tousseListStore.removeAll(); + } + }] + }); + + var reportForm = new Ext.form.FormPanel({ + frame: false,//渲染面板 + autoScroll: true,//自动显示滚动条 + collapsible: true,//允许展开和收缩 + bodyStyle: 'border:1px solid #afd7af', + bodyPadding: 0, + anchor: '100% 100%', + items: [{ + layout: 'column', + items: [{ + columnWidth: 1, + layout: 'form', + items: [stasticsGrid] }] - },stasticsGrid,tousseListGrid] + }, { + layout: 'column', + items: [{ + columnWidth: 1, + layout: 'form', + items: [tousseListGrid] + }] + }] }); + + var viewport = new Ext.Viewport({ layout : 'border', - items:[{ - region : 'center', - margins : '0 0 0 0', - layout : 'fit', - items : [basketPanel] + items: [basketPanel, { + id: 'reportPanel', + region: 'center', + margins: '0 0 0 0', + layout: 'fit', + items: reportForm }] }); Ext.getCmp('barcode').focus(); Index: ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.jsp =================================================================== diff -u -r29513 -r34350 --- ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.jsp (.../goodsAccess.jsp) (revision 29513) +++ ssts-web/src/main/webapp/disinfectsystem/storageLocationManage/goodsAccess.jsp (.../goodsAccess.jsp) (revision 34350) @@ -4,6 +4,7 @@ 物品存取 +