|  | @@ -831,14 +831,14 @@
 | 
	
		
			
				|  |  |          const maxIdx = (adList.length - 1) || 0;
 | 
	
		
			
				|  |  |          adList.forEach((advance, adIndex) => {
 | 
	
		
			
				|  |  |              let dispStr = '';
 | 
	
		
			
				|  |  | +            current_advance_order = adIndex + 1;
 | 
	
		
			
				|  |  |              if (!hasMatch && adIndex === maxIdx || current_advance_id === advance.id) {
 | 
	
		
			
				|  |  |                  current_advance_id = advance.id;
 | 
	
		
			
				|  |  |                  BUSINESS_ID = advance.id;
 | 
	
		
			
				|  |  | -                current_advance_order = adIndex + 1;
 | 
	
		
			
				|  |  |                  $("#btnCurrentAdvancePay")[0].innerText = `第${current_advance_order}期`;
 | 
	
		
			
				|  |  |                  dispStr = ';display:none';
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            const str = `<a class="dropdown-item" style="cursor:pointer${dispStr}" onclick="changeCurrentAdvance(this)" advance_id = "${advance.id}">第${current_advance_order}期</a>`;
 | 
	
		
			
				|  |  | +            const str = `<a class="dropdown-item" style="cursor:pointer${dispStr}" onclick="changeCurrentAdvance(this)" advance_id = "${advance.id}" advance_order="${current_advance_order}">第${current_advance_order}期</a>`;
 | 
	
		
			
				|  |  |              $("#optionSelectableAdvancePays").append(str);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          if (current_advance_id > 0) {
 | 
	
	
		
			
				|  | @@ -852,9 +852,9 @@
 | 
	
		
			
				|  |  |          const maxIdx = (MATERIAL_LIST.length - 1) || 0;
 | 
	
		
			
				|  |  |          MATERIAL_LIST.forEach((materialAdj, maIndex) => {
 | 
	
		
			
				|  |  |              let dispStr = '';
 | 
	
		
			
				|  |  | +            current_material_order = maIndex + 1;
 | 
	
		
			
				|  |  |              if (current_material_id === -1 && maIndex === maxIdx || current_material_id === materialAdj.id) {
 | 
	
		
			
				|  |  |                  current_material_id = materialAdj.id;
 | 
	
		
			
				|  |  | -                current_material_order = maIndex + 1;
 | 
	
		
			
				|  |  |                  BUSINESS_ID = materialAdj.id;
 | 
	
		
			
				|  |  |                  $("#btnCurrentMaterial")[0].innerText = `第${current_material_order}期`;
 | 
	
		
			
				|  |  |                  dispStr = ';display:none';
 | 
	
	
		
			
				|  | @@ -900,6 +900,7 @@
 | 
	
		
			
				|  |  |          $('#optionSelectableAdvancePays a').show();
 | 
	
		
			
				|  |  |          $(ele).hide();
 | 
	
		
			
				|  |  |          current_advance_id = +ele.attributes[3].value;
 | 
	
		
			
				|  |  | +        current_advance_order = +ele.attributes[4].value;
 | 
	
		
			
				|  |  |          BUSINESS_ID = current_advance_id;
 | 
	
		
			
				|  |  |          $('#optionSelectableAdvancePays').siblings('button').text($(ele).text());
 | 
	
		
			
				|  |  |          // 刷新报表模板
 |