|  | @@ -292,6 +292,9 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                          await transaction.select(this.ctx.service.materialStage.tableName, { where: { mid: this.ctx.material.id, id: ms_id } });
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  await transaction.update(this.tableName, data);
 | 
	
		
			
				|  |  | +                if (this.ctx.material.is_stage_self) {
 | 
	
		
			
				|  |  | +                    result.billsData = await transaction.select(this.tableName, { where: { id: data.id } });
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  result.m_tp = await this.calcMaterialMTp(transaction);
 | 
	
		
			
				|  |  |                  await transaction.commit();
 | 
	
		
			
				|  |  |                  return result;
 | 
	
	
		
			
				|  | @@ -410,6 +413,7 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                      await this.ctx.service.materialStage.updateMtp(transaction, ms_id);
 | 
	
		
			
				|  |  |                      result.stageBillsData = await transaction.select(this.ctx.service.materialStageBills.tableName, { where: { mid: this.ctx.material.id } });
 | 
	
		
			
				|  |  |                      result.stageData = await transaction.select(this.ctx.service.materialStage.tableName, { where: { mid: this.ctx.material.id } });
 | 
	
		
			
				|  |  | +                    result.billsData = await transaction.select(this.tableName, { where: { mid: this.ctx.material.id } });
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  result.m_tp = await this.calcMaterialMTp(transaction);
 | 
	
		
			
				|  |  |                  await transaction.commit();
 |