Index: ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js =================================================================== diff -u -r16219 -r16229 --- ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 16219) +++ ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 16229) @@ -440,12 +440,12 @@ //从store用用名字再次寻找deptCoding,比较页面上的deptCoding和从store找出来的deptCoding一样不,如果不一样, 有可能用户是复制粘贴科室名称上去, //而没有从下拉选项中选择(由于做了分页,如果用户粘贴了一个不在当前页面的科室名,下拉选项是不会有值的,所以不用担心从store里找不到该科室的coding) var storeDeptCoding = getStoreDepartCoding(applyDepartJsonStore,depart); - if (deptCoding != storeDeptCoding){ + if (!Ext.isEmpty(storeDeptCoding) && deptCoding != storeDeptCoding){ //如果不一样,则将deptCoding改成storeDeptCoding deptCoding = storeDeptCoding; } var storeDeptCoding2 = getStoreDepartCoding(settleDepartJsonStore,settleAccountsDepart); - if (deptCoding2 != storeDeptCoding2){ + if (!Ext.isEmpty(storeDeptCoding) && deptCoding2 != storeDeptCoding2){ //如果不一样,则将deptCoding改成storeDeptCoding2 deptCoding2 = storeDeptCoding2; }