Index: ssts-web/src/main/webapp/buttjoint/useRecord/useRecordForm.js =================================================================== diff -u -r41463 -r41465 --- ssts-web/src/main/webapp/buttjoint/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 41463) +++ ssts-web/src/main/webapp/buttjoint/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 41465) @@ -11,7 +11,7 @@ var urgentLevelData = {}; //加急急别的json键值对,key为加急急别的id,值为加载对象的json var urgentLevelDataMap = {}; -var departJsonStore; + Ext4.define('TousseInstance', { extend: 'Ext4.data.Model', fields: ['id', 'barcode', 'tousseDefinitionName', @@ -358,25 +358,12 @@ Ext4.getCmp('operationScheduleId').setValue(patientInfo.operationScheduleId); } if (patientInfo.ascriptionDepartment) { - departJsonStore.each(function (record) { - var name = record.get("name"); - if (name == patientInfo.ascriptionDepartment) { - Ext4.getCmp('departNameOfpatient').setRawValue(patientInfo.ascriptionDepartment); - Ext4.getCmp('departCodeOfpatient').setValue(record.get("id")); - return false; - } - }); + Ext4.getCmp('departNameOfpatient').setValue(patientInfo.ascriptionDepartment); + Ext4.getCmp('departCodeOfpatient').setValue(patientInfo.ascriptionDepartCode); } if (patientInfo.doctorAccountDepart) { - departJsonStore.each(function (record) { - var name = record.get("name"); - if (name == patientInfo.doctorAccountDepart) { - Ext4.getCmp('doctorAccountDepart').setRawValue(patientInfo.doctorAccountDepart); - //设置主刀医生核算科室的编码 - Ext4.getCmp('doctorAccountDepartCode').setValue(record.get("id")); - return false; - } - }); + Ext4.getCmp('doctorAccountDepart').setValue(patientInfo.doctorAccountDepart); + Ext4.getCmp('doctorAccountDepartCode').setValue(patientInfo.doctorAccountDepartCode); } if (patientInfo.patientArea) { Ext4.getCmp('patientArea').setRawValue(patientInfo.patientArea); @@ -658,7 +645,7 @@ data: patientAreaList }); - departJsonStore = new Ext4.data.Store({ + var departJsonStore = new Ext4.data.Store({ proxy: { type: 'ajax', url: WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getAllOrgUnitName.do?related=false',