| 
					
				 | 
			
			
				@@ -1017,13 +1017,11 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 await ctx.service.stageAudit.start(ctx.stage.id, ctx.stage.times); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // const auditor = await ctx.service.stageAudit.getCurAuditor(ctx.stage.id, ctx.stage.times); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // ctx.body = { err: 0, msg: '', data: [] }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ctx.redirect(ctx.request.header.referer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ctx.body = { err: 0, msg: '', data: [] }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.log(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ctx.redirect(ctx.request.header.referer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // ctx.body = this.ajaxErrorBody(err, '上报失败'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ctx.body = this.ajaxErrorBody(err, '上报失败'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1040,7 +1038,7 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (!this.ctx.stage.curAuditor || this.ctx.stage.curAuditor.aid !== ctx.session.sessionUser.accountId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     throw '您无权进行该操作'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                const data = ctx.request.body; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const data = JSON.parse(ctx.request.body.data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 data.checkType = parseInt(data.checkType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // const data = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 //     checkType: parseInt(ctx.request.body.checkType), 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1056,20 +1054,11 @@ module.exports = app => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 await ctx.service.stageAudit.check(ctx.stage.id, data, ctx.stage.times); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // const stageOrder = parseInt(ctx.params.order); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // const stage = await ctx.service.stage.getDataByCondition({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //     tid: ctx.tender.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //     order: stageOrder, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // const auditor = await ctx.service.stageAudit.getCurAuditor(ctx.stage.id, ctx.stage.times); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // ctx.body = { err: 0, msg: '', data: [] }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ctx.redirect(ctx.request.header.referer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ctx.body = { err: 0, msg: '', data: [] }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (err) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // console.log(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 this.log(err); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // ctx.body = this.ajaxErrorBody(err, '提交失败'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                // ctx.session.postError = err.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ctx.redirect(ctx.request.header.referer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ctx.body = this.ajaxErrorBody(err, '提交失败'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ctx.session.postError = err.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         /** 
			 |