Index: ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js =================================================================== diff -u -r27249 -r27254 --- ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js (.../operationReservationView.js) (revision 27249) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/operationReservationView.js (.../operationReservationView.js) (revision 27254) @@ -2,6 +2,7 @@ var grid; var operationReservationWindow; var lastSelIdArray = []; +var saveOrgUnitCode = null; function initQueryValueAndReload() { setQueryValues(); grid.getStore().lastOptions.params['start'] = 0; @@ -213,7 +214,8 @@ root : 'data' },[ {name : 'id',mapping : 'id'}, - {name : 'operationRoomName',mapping : 'operationRoomName'} + {name : 'operationRoomName',mapping : 'operationRoomName'}, + {name : 'orgUnitCoding',mapping : 'orgUnitCoding'} ] ), listeners: { @@ -359,7 +361,11 @@ top.Ext.getCmp('depart').setValue(record.data.name); operationNameStore.load(); handleDepartStore.load(); - top.Ext.getCmp('operatingRoom').setValue(""); + if(saveOrgUnitCode != null && saveOrgUnitCode != record.data.id){ + top.Ext.getCmp('operatingRoom').setValue(""); + saveOrgUnitCode = null; + } + operationRoomJsonStore.baseParams.orgUnitCode = record.data.id; operationRoomJsonStore.load(); @@ -368,7 +374,6 @@ var departVal = top.Ext.getCmp("depart").getRawValue(); if(departVal == "" || departVal == null || departVal == undefined){ top.Ext.getCmp('departCoding').setValue(""); - top.Ext.getCmp('operatingRoom').setValue(""); operationRoomJsonStore.baseParams.orgUnitCode = ""; operationRoomJsonStore.load(); } @@ -422,7 +427,12 @@ hideTrigger : sstsConfig.onlySelectExistedOperationRoom ? false: true,//隐藏向下箭头 typeAhead : false, editable: sstsConfig.onlySelectExistedOperationRoom ? false : true, - forceSelection : sstsConfig.onlySelectExistedOperationRoom ? true: false + forceSelection : sstsConfig.onlySelectExistedOperationRoom ? true: false, + listeners :{ + select:function(combo, record, index ){ + saveOrgUnitCode = record.data.orgUnitCoding; + } + } /* xtype : 'textfield', fieldLabel : '手术间',