Index: ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js =================================================================== diff -u -r14497 -r14500 --- ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 14497) +++ ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 14500) @@ -1,6 +1,7 @@ var foreignTousseStore; var foreignTousseForm; var foreignTousseApplyWindow; +var applyDepartJsonStore; top.Ext4.define('foreignTousseTreeGrid',{ extend: 'top.Ext4.tree.Panel', @@ -368,6 +369,27 @@ function submintForeignTousseForm(actionType){ + /** + * 修复IE6下快速粘贴申请科室,科室编码未赋值问题 + */ + var depart = top.Ext4.ComponentQuery.query("#foreignToussForm #depart")[0].getValue(); + var deptCoding = getStoreDepartCoding(applyDepartJsonStore,depart); + top.Ext4.ComponentQuery.query("#foreignToussForm #departCoding")[0].setValue(deptCoding); + + if(deptCoding == ""){ + showResult("申请科室编码不能为空!"); + return false; + } + + var settleAccountsDepart = top.Ext4.ComponentQuery.query("#foreignToussForm #settleAccountsDepart")[0].getValue(); + var deptCoding2 = getStoreDepartCoding(applyDepartJsonStore,settleAccountsDepart); + top.Ext4.ComponentQuery.query("#foreignToussForm #settleAccountsDepartCoding")[0].setValue(deptCoding2); + + if(deptCoding2 == ""){ + showResult("结算科室编码不能为空!"); + return false; + } + foreignTousseForm.form.submit({ url : WWWROOT + '/disinfectSystem/foreigntousseapplication/foreignTousseApplicationAction!saveForeignTousseApplication.do', method : 'POST', @@ -866,7 +888,7 @@ }); settleDepartJsonStore.load(); - var applyDepartJsonStore = new Ext4.data.Store({ + applyDepartJsonStore = new Ext4.data.Store({ proxy : { type : 'ajax', url : WWWROOT + '/disinfectSystem/baseData/supplyRoomConfigAction!getApplicationDepartJson.do', @@ -995,11 +1017,6 @@ allowBlank : false, flex : 1, listeners:{ - select:function(combo, record, index){ - var depart = top.Ext4.ComponentQuery.query("#foreignToussForm #depart")[0].getValue(); - var deptCoding = getStoreDepartCoding(applyDepartJsonStore,depart); - top.Ext4.ComponentQuery.query("#foreignToussForm #departCoding")[0].setValue(deptCoding); - }, focus : function(thiz){ thiz.selectText(); } @@ -1022,11 +1039,6 @@ allowBlank : false, flex : 1, listeners:{ - select:function(combo, record, index){ - var settleAccountsDepart = top.Ext4.ComponentQuery.query("#foreignToussForm #settleAccountsDepart")[0].getValue(); - var deptCoding = getStoreDepartCoding(applyDepartJsonStore,settleAccountsDepart); - top.Ext4.ComponentQuery.query("#foreignToussForm #settleAccountsDepartCoding")[0].setValue(deptCoding); - }, focus : function(thiz){ thiz.selectText(); }