Index: ssts-web/src/main/webapp/disinfectsystem/washanddisinfectmanager/washanddisinfectrecord/washAndDisinfectForm.js =================================================================== diff -u -r14128 -r14135 --- ssts-web/src/main/webapp/disinfectsystem/washanddisinfectmanager/washanddisinfectrecord/washAndDisinfectForm.js (.../washAndDisinfectForm.js) (revision 14128) +++ ssts-web/src/main/webapp/disinfectsystem/washanddisinfectmanager/washanddisinfectrecord/washAndDisinfectForm.js (.../washAndDisinfectForm.js) (revision 14135) @@ -415,6 +415,9 @@ } var root = top.Ext.getCmp('basketTreePanel').root; root.appendChild(basket); + if(basket.attributes.personInCharge != null && basket.attributes.personInCharge != ''){ + top.Ext.getCmp('personInCharge').setValue(basket.attributes.personInCharge); + } } } @@ -1445,6 +1448,24 @@ }else{ root.appendChild(newBasket); } + }else{ + root.eachChild(function(child) { + var personInCharge = child.attributes.personInCharge; + alert(personInCharge); + if( child.attributes.personInCharge == null || child.attributes.personInCharge == ''){ + child.attributes.personInCharge = result.fullName; + child.attributes.personInChargeCode = result.name; + var newBasket = cloneBasket(child); + var curIndex = root.indexOf(child); + var nextNode = child.nextSibling; + root.removeChild(child); + if(nextNode != null){ + root.insertBefore(newBasket,nextNode); + }else{ + root.appendChild(newBasket); + } + } + }); } }else{ showResult('找不到该条码所对应的人员信息');