Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r20272 -r20353 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 20272) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 20353) @@ -22,7 +22,26 @@ var taskGroupObj = null; //丢失报损按钮响应函数 var onErrorDamageBtnClick = null; - +//判断是否ie和ie7 +var isIE6OrIE7 = top.Ext4.isIE6 || top.Ext4.isIE7; +var appDepartJsonStore = new Ext4.data.Store({ + //limit参数,每页显示条数,默认为25 + pageSize: isIE6OrIE7 ? 15 : 50, + autoLoad:false, + proxy : { + type : 'ajax', + url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getApplicationDepartJson.do', + reader : { + type : 'json', + totalProperty : 'totalCount', + root : 'data' + } + }, + fields : [ + {name : 'id',mapping : 'id'}, + {name : 'name',mapping : 'name'} + ] +}); //申请科室Store var appDepartJsonStoreExt2 = new Ext4.data.Store({ proxy : new Ext4.data.HttpProxy({ @@ -192,9 +211,11 @@ function initQueryValueAndReload() { var tousseName = Ext4.getCmp('tousseName').getValue(); + var orgUnit = Ext4.getCmp('orgUnit').getValue(); packingRecordStore .load({ params: { - tousseName: tousseName + tousseName: tousseName, + orgUnit: orgUnit }}); } @@ -3473,6 +3494,28 @@ } } }] + },{ + width : 400, + layout : 'form', + items : [{ + xtype : 'combo', + id : 'orgUnit', + name : 'orgUnit', + fieldLabel : '科室', + labelWidth : 50, + queryParam : 'spell', + minChars : 0, + valueField : 'name', + displayField : 'name', + pageSize : 100, + store : appDepartJsonStore, + forceSelection : false, + lazyInit : true, + triggerAction : 'all', + hideTrigger : true, + typeAhead : false, + anchor : '95%' + }] }, { width : 80, layout : 'form', @@ -3495,6 +3538,7 @@ iconCls : 'icon_set', handler : function() { Ext4.getCmp('tousseName').setValue(""); + Ext4.getCmp('orgUnit').setValue(""); // $Id('tousseName').value = ""; } }]