| 
					
				 | 
			
			
				@@ -511,13 +511,25 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     const ledgerListData = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     const posListData = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     for (const s of ctx.material.stage_id.split(',')) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        ledgerListData.push(await ctx.service.stageBills.getStagesData(ctx.tender.id, s.toString())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        const curLedgerPcData = await ctx.service.stageBillsPc.getStagesData(ctx.tender.id, s.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        const curLedgerData = await ctx.service.stageBills.getStagesData(ctx.tender.id, s.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        for (const cl of curLedgerData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            const clpc = ctx.helper._.find(curLedgerPcData, { lid: cl.lid }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            ctx.helper._.assign(cl, clpc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ledgerListData.push(curLedgerData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         posListData.push(await ctx.service.stagePos.getStagesData(ctx.tender.id, s.toString(), 'list')); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     responseData.data.ledgerListData = ledgerListData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     responseData.data.posListData = posListData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    responseData.data.curLedgerData = await ctx.service.stageBills.getStagesData(ctx.tender.id, ctx.material.stage_id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const curLedgerPcData = await ctx.service.stageBillsPc.getStagesData(ctx.tender.id, ctx.material.stage_id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    const curLedgerData = await ctx.service.stageBills.getStagesData(ctx.tender.id, ctx.material.stage_id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    for (const cl of curLedgerData) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        const clpc = ctx.helper._.find(curLedgerPcData, { lid: cl.lid }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ctx.helper._.assign(cl, clpc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    responseData.data.curLedgerData = curLedgerData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     responseData.data.curPosData = await ctx.service.stagePos.getStagesData(ctx.tender.id, ctx.material.stage_id, 'list'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 获取清单设置已选清单 
			 |