Index: ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementView.jsp =================================================================== diff -u -r35988 -r40839 --- ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementView.jsp (.../instrumentRepairManagementView.jsp) (revision 35988) +++ ssts-web/src/main/webapp/disinfectsystem/instrumentRepairManagement/instrumentRepairManagementView.jsp (.../instrumentRepairManagementView.jsp) (revision 40839) @@ -34,6 +34,9 @@ + + + Index: ssts-web/src/main/webapp/disinfectsystem/instrumentInstanceManager/instrumentInstanceView.js =================================================================== diff -u -r35455 -r40839 --- ssts-web/src/main/webapp/disinfectsystem/instrumentInstanceManager/instrumentInstanceView.js (.../instrumentInstanceView.js) (revision 35455) +++ ssts-web/src/main/webapp/disinfectsystem/instrumentInstanceManager/instrumentInstanceView.js (.../instrumentInstanceView.js) (revision 40839) @@ -283,6 +283,9 @@ listStore.proxy.extraParams.udi = params.udi; listStore.proxy.extraParams.instrumentBarcode = params.instrumentBarcode; listStore.proxy.extraParams.pageSize = pageSize; + listStore.proxy.extraParams.idCardInstanceBarcode = params.idCardInstanceBarcode; + listStore.proxy.extraParams.tousseName = params.tousseName; + listStore.proxy.extraParams.repairStatus = params.repairStatus; if (Ext4.getCmp('pageNowForList')) { listStore.proxy.extraParams.pageNum = Ext4.getCmp('pageNowForList').getValue(); } else { @@ -316,18 +319,18 @@ }, 1000); var height = Ext4.getBody().dom.clientHeight; - if(!height || height == 0){ + if (!height || height == 0) { height = document.documentElement.clientHeight; } - + instrumentGrid = new Ext4.grid.GridPanel({ title: '器械实例列表', columns: columns, frame: false, autoScroll: false, store: listStore, tbar: tbar, - height: height - 85, + height: height - 105, bbar: [{ xtype: 'button', text: '', @@ -431,15 +434,33 @@ return instrumentGrid; } +var sessionRecord = null; //加载查询条件 function searchForm() { + var tousseDefinitionStore = new Ext4.data.Store({ + proxy: { + type: 'ajax', + url: WWWROOT + '/disinfectSystem/baseData/tousseDefinitionAction!getTousseAndDiposableGoodsData.do?type=' + encodeURI('器械包和外来器械包'), + reader: { + root: 'data', + totalProperty: 'totalCount' + } + }, + fields: [ + { name: 'id', mapping: 'id' }, + { name: 'spelling', mapping: 'spelling' }, + { name: 'name', mapping: 'name' }, + { name: 'displayName', mapping: 'displayName' }, + { name: 'amount', mapping: 'amount' } + ] + }); var form = new Ext4.form.Panel({ region: 'north', buttonAlign: 'center', border: 0, frame: true, bodyStyle: 'padding:0px auto;margin:0px', - height: 80, + height: 100, id: 'searchForm', fieldDefaults: { labelAlign: 'right', @@ -450,7 +471,7 @@ autoHeight: true, items: [{ layout: 'form', - columnWidth: .2, + columnWidth: .25, items: [{ xtype: 'textfield', border: 0, @@ -462,7 +483,7 @@ }] }, { layout: 'form', - columnWidth: .3, + columnWidth: .25, items: [{ xtype: 'textfield', border: 0, @@ -472,6 +493,150 @@ name: 'instrumentBarcode', anchor: '100%' }] + }, { + layout: 'form', + columnWidth: .25, + height: 27, + items: [{ + xtype: 'combo', + fieldLabel: '所属器械包', + id: 'tousseName', + name: 'tousseName', + queryParam: 'spell', + minChars: 0, + valueField: 'name', + displayField: 'name', + store: tousseDefinitionStore, + lazyInit: true, + triggerAction: 'all', + hideTrigger: true, + typeAhead: false, + allowBlank: false, + anchor: '100%' + }] + }, { + layout: 'form', + columnWidth: .25, + items: [{ + xtype: 'textfield', + border: 0, + fieldLabel: '标识牌条码', + allowBlank: true, + id: 'idCardInstanceBarcode', + name: 'idCardInstanceBarcode', + anchor: '100%' + }] + }, { + layout: 'form', + columnWidth: .25, + items: [{ + xtype: 'combo', + fieldLabel: '器械维修状态', + valueField: 'name', + displayField: 'value', + id: 'repairStatus', + name: 'repairStatus', + mode: 'local', + triggerAction: 'all', + forceSelection: true, + editable: false, + multiSelect: true, + store: new Ext4.data.Store({ + fields: [{ name: 'value' }, { name: 'name' }, { name: 'checked' }], + data: [{ + name: '全部', + value: '全部', + checked: false + }, { + name: '待使用', + value: '待使用', + checked: false + }, { + name: '使用中', + value: '使用中', + checked: false + }, { + name: '待维修', + value: '待维修', + checked: false + }, { + name: '维修中', + value: '维修中', + checked: false + }, { + name: '报废', + value: '报废', + checked: false + }] + }), + listConfig: { + getInnerTpl: function () { + return '