Index: ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js =================================================================== diff -u -r16228 -r16499 --- ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 16228) +++ ssts-web/src/main/webapp/disinfectsystem/invoice/invoicePlanExtractedView.js (.../invoicePlanExtractedView.js) (revision 16499) @@ -6,15 +6,19 @@ * @param isSetDateValue 是否要设置开始时间和结束时间 * @param isLoad 是否要重新加载 */ -function refreshList(isSetDateValue,isLoad){ - //对已选择的进行变量赋值 +var selectedApplyDate; +var selectedTousseType; +var appFormType = ''; +var invoiceDepartGroups = ''; + +function processListParams(isSetDateValue,isLoad){ selectedApplyDate = Ext.getCmp('applyDate').getValue(); selectedTousseType = Ext.getCmp('tousseType').getValue(); - + invoiceDepartGroups = Ext.getCmp('invoiceDepartGroup').getValue(); var startDate = Ext.getCmp('startDate'); var endDate = Ext.getCmp('endDate'); - var appFormType = Ext.getCmp('appFormType').getValue(); + appFormType = Ext.getCmp('appFormType').getValue(); if (!isUndefinedOrNullOrEmpty(isSetDateValue) && isSetDateValue == true){ var dateArray = selectedApplyDate.split(';'); startDate.setValue(dateArray[0]); @@ -30,8 +34,11 @@ } selectedApplyDate = startDateValue.concat(';').concat(endDateValue); } +} +function refreshList(isSetDateValue,isLoad){ + processListParams(isSetDateValue,isLoad); var store = grid.getStore(); - store.baseParams['departCode'] = Ext.getCmp('invoiceDepartGroup').getValue(); + store.baseParams['departCode'] = invoiceDepartGroups; store.baseParams['applyDate'] = selectedApplyDate; store.baseParams['tousseType'] = selectedTousseType; store.baseParams['appFormType'] = appFormType;