Index: ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js =================================================================== diff -u -r34406 -r34439 --- ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 34406) +++ ssts-web/src/main/webapp/disinfectsystem/useRecord/useRecordForm.js (.../useRecordForm.js) (revision 34439) @@ -1098,6 +1098,8 @@ showResult('请正确填写表单各值'); return false; }*/ + var specialInfection = top.Ext.getCmp('specialInfection').getValue(); + specialInfection = specialInfection.replace(/\s*/g,""); //如果不为科室使用记录时 if (!fromDepartmentUseRecord) { if (sstsConfig.notAllowBlankFieldsOnUseRecordPage && typeof sstsConfig.notAllowBlankFieldsOnUseRecordPage == 'object') { @@ -1256,7 +1258,7 @@ showResult(visitIdName + '不能为空'); return result; } - if (!specialInfectionAllowBlank && top.Ext.getCmp('specialInfection').getValue() == '') { + if (!specialInfectionAllowBlank && specialInfection == '') { btObj.enable(); top.Ext.getCmp('specialInfection').focus(); showResult(specialInfectionName + '不能为空'); @@ -2884,7 +2886,17 @@ store: new Ext.data.SimpleStore({ fields: ['specialInfection'], autoLoad: false, - data: specialInfectionList + data: specialInfectionList, + listeners: { + load: function (thiz, records, options) { + if (thiz.getCount() > 1) { + var specialInfectionRecord = top.Ext.data.Record.create([ + { name: 'specialInfection' } + ]); + thiz.insert(0, new specialInfectionRecord({ specialInfection: '  ' })); + } + } + } }), anchor: '96%' }]