Index: ssts-web/src/main/webapp/disinfectsystem/borrow/borrowingTousseForm.js =================================================================== diff -u -r12848 -r14069 --- ssts-web/src/main/webapp/disinfectsystem/borrow/borrowingTousseForm.js (.../borrowingTousseForm.js) (revision 12848) +++ ssts-web/src/main/webapp/disinfectsystem/borrow/borrowingTousseForm.js (.../borrowingTousseForm.js) (revision 14069) @@ -239,7 +239,7 @@ } function addTousseLeaseItem(){ - var name = top.Ext.getCmp('leaseTousseName').getRawValue(); + var name = top.Ext.getCmp('leaseTousseNameHidden').getValue(); var id = top.Ext.getCmp('leaseTousseName').getValue(); var count = top.Ext.getCmp('applicantAmount').getValue(); var rowNum = tousseAndDiposableGoodsStoreForBorrowing.find("id",id); @@ -266,6 +266,7 @@ }else{ var parentNode = createTousseLeaseNode(true,'0',name,'申请借物',count,Ext.util.Format.date(new Date(), "Y-m-d H:i"),borrowPrice); rootNode.appendChild(parentNode); + top.Ext.getCmp('leaseTousseNameHidden').setValue(""); top.Ext.getCmp('leaseTousseName').setValue(""); top.Ext.getCmp('applicantAmount').setValue(""); top.Ext.getCmp('leaseTousseName').focus(); @@ -607,6 +608,8 @@ listeners : { select : function(combo, record, index){ top.Ext.getCmp('applicantAmount').focus(); + top.Ext.getCmp('leaseTousseName').setRawValue(record.data.name); + top.Ext.getCmp('leaseTousseNameHidden').setValue(record.data.name); }, specialkey : function(field,event){ if(event.getKey() == Ext.EventObject.ENTER){ @@ -615,6 +618,10 @@ } } },{ + xtype : 'hidden', + name : 'leaseTousseNameHidden', + id : 'leaseTousseNameHidden' + },{ text:'数量:' },{ xtype : 'numberfield', @@ -677,6 +684,7 @@ }, failure : function(form, action) { showResult(action.result.message); + b.enable(); } }); }