Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js =================================================================== diff -u -r28348 -r28581 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 28348) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/tousse/tousseForm.js (.../tousseForm.js) (revision 28581) @@ -478,6 +478,21 @@ } } }); + + var assetsBelongStore = new Ext.data.Store({ + proxy : new Ext.data.HttpProxy({ + url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getSettleAccountsDepartJson.do', + method : 'POST' + }), + reader : new Ext.data.JsonReader({ + root : 'data' + },[ + {name : 'id',mapping : 'id'}, + {name : 'name',mapping : 'name'}, + {name : 'orgUnitName',mapping : 'orgUnitName'} + ] + ) + }); //标签纸类型combo的store idCardBarcodePaperTypeStore = new Ext.data.JsonStore({ @@ -1484,18 +1499,36 @@ triggerAction : 'all', anchor : '100%' }] - }, { + },{ + xtype : 'hidden', + id : 'assetsBelongCode', + name : 'assetsBelongCode' + }, { columnWidth : colWidth, layout : 'form', labelWidth : fontSize == 12 ? 90 : 100, labelAlign:"right", items:[{ - xtype : 'textfield', - fieldLabel : "资产归属", - allowBlank : true, - name : "assetsBelong", - id : "assetsBelong", - anchor : '100%' + xtype : 'combo', + fieldLabel : '资产归属', + id : 'assetsBelong', + name : 'assetsBelong', + store : assetsBelongStore, + queryParam : 'spell', + minChars : 0, + valueField : 'id', + displayField : 'name', + forceSelection : true, + lazyInit : true, + triggerAction : 'all', + typeAhead : false, + allowBlank : true, + anchor : '95%', + listeners : { + select : function (combo, record, index ){ + top.Ext.getCmp('assetsBelongCode').setValue(record.data.id); + } + } }] },{ columnWidth : colWidth, @@ -2971,7 +3004,6 @@ } function validateAndSubmit2(TousseName,isExpend){ - var orginalName = top.Ext.getCmp('orginalName').getValue(); //原器械包名称 var orginalSpelling = top.Ext.getCmp('orginalSpelling').getValue(); //原拼音码 var name = top.Ext.getCmp('name').getValue();