Index: ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js =================================================================== diff -u -r41152 -r41426 --- ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 41152) +++ ssts-web/src/main/webapp/disinfectsystem/common/cssdUtils.js (.../cssdUtils.js) (revision 41426) @@ -262,7 +262,15 @@ } //主刀医生核算科室 if(obj.getCmp('doctorAccountDepart') && patientInfo.doctorAccountDepart){ - obj.getCmp('doctorAccountDepart').setValue(patientInfo.doctorAccountDepart); + departJsonStore.each(function (record) { + var nameOfDepartJsonStore = record.get("name"); + if (nameOfDepartJsonStore == patientInfo.doctorAccountDepart) { + obj.getCmp('doctorAccountDepart').setRawValue(patientInfo.doctorAccountDepart); + //设置主刀医生核算科室的编码 + obj.getCmp('doctorAccountDepartCode').setValue(record.get("id")); + return false; + } + }); } //HDQRMYY-59:记帐号 if(obj.getCmp('patientSerialNumber') && patientInfo.serialNumber){