|  | @@ -195,7 +195,9 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  await transaction.update(this.ctx.service.material.tableName, {
 | 
	
		
			
				|  |  |                      id: materialId, status: auditConst.status.checking,
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                // 添加记录至推送表
 | 
	
		
			
				|  |  | +                await transaction.insert('zh_notice', { type: 'material', uid: audit.aid, status: auditConst.status.checking, is_read: 0, content: '待审核' });
 | 
	
		
			
				|  |  | +                console.log('1111');
 | 
	
		
			
				|  |  |                  // 本期一些必要数据(如应耗数量和上期调差金额)插入到material_bills_history表里
 | 
	
		
			
				|  |  |                  const materialBillsData = await this.ctx.service.materialBills.getAllDataByCondition({ where: { tid: this.ctx.tender.id } });
 | 
	
		
			
				|  |  |                  if (materialBillsData.length === 0) {
 | 
	
	
		
			
				|  | @@ -410,7 +412,6 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              const time = new Date();
 | 
	
		
			
				|  |  |              // 整理当前流程审核人状态更新
 | 
	
		
			
				|  |  |              const audit = await this.getDataByCondition({ mid: materialId, times, status: auditConst.status.checking });
 | 
	
		
			
				|  |  | -            console.log('audit', audit);
 | 
	
		
			
				|  |  |              if (!audit || audit.order <= 1) {
 | 
	
		
			
				|  |  |                  throw '审核数据错误';
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -459,8 +460,6 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              if (checkData.checkType !== auditConst.status.checked && checkData.checkType !== auditConst.status.checkNo && checkData.checkType !== auditConst.status.checkNoPre) {
 | 
	
		
			
				|  |  |                  throw '提交数据错误';
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            console.log('checkData:', checkData);
 | 
	
		
			
				|  |  | -            console.log('times', times);
 | 
	
		
			
				|  |  |              switch (checkData.checkType) {
 | 
	
		
			
				|  |  |                  case auditConst.status.checked:
 | 
	
		
			
				|  |  |                      await this._checked(materialId, checkData, times);
 |