| 
					
				 | 
			
			
				@@ -32,6 +32,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!rptAudit) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     throw '当前人不存在报表角色中'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let sign_time = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if ((this.ctx.detail.status !== auditConst.status.uncheck && this.ctx.detail.status !== auditConst.status.checkNo && this.ctx.detail.uid === uid) || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     (this._.findIndex(this.ctx.detail.auditors, { aid: uid }) === -1 && this.ctx.detail.uid !== uid) || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     (this._.findIndex(this.ctx.detail.auditors, { aid: uid }) !== -1 && this.ctx.detail.curAuditor && this.ctx.detail.curAuditor.aid !== uid)) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,8 +43,9 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         id: this.ctx.detail.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         report_json: JSON.stringify(report_json), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    sign_time = new Date(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                await transaction.update(this.tableName, { sign_time: new Date(), signature_msg: JSON.stringify(signature_msg) }, { where: { td_id, uid } }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                await transaction.update(this.tableName, { sign_time, signature_msg: JSON.stringify(signature_msg) }, { where: { td_id, uid } }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 await transaction.commit(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (error) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -52,6 +54,10 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        async updateSignTime(transaction, id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return await transaction.update(this.tableName, { id, sign_time: new Date() }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         async clearSignatureMsg(transaction, td_id, uid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return await transaction.update(this.tableName, { sign_time: null, signature_msg: null }, { where: { td_id, uid } }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |