|
@@ -122,7 +122,7 @@ module.exports = app => {
|
|
|
throw '修订已审批通过,不可作废';
|
|
|
}
|
|
|
if (revise.valid) {
|
|
|
- const result = await ctx.service.ledgerRevise.cancelRevise(revise.id);
|
|
|
+ const result = await ctx.service.ledgerRevise.cancelRevise(revise);
|
|
|
}
|
|
|
|
|
|
ctx.redirect('/tender/' + ctx.tender.id + '/revise/');
|
|
@@ -207,7 +207,6 @@ module.exports = app => {
|
|
|
const [stdBills, stdChapters] = await this.ctx.service.valuation.getValuationStdList(ctx.tender.data.valuation);
|
|
|
const curAuditor = await ctx.service.reviseAudit.getCurAuditor(revise.id, revise.times);
|
|
|
const auditors = await ctx.service.reviseAudit.getAuditors(revise.id, revise.times);
|
|
|
- console.log(auditors);
|
|
|
const user = await ctx.service.projectAccount.getAccountInfoById(revise.uid);
|
|
|
const auditHistory = [];
|
|
|
if (revise.times > 1) {
|
|
@@ -215,7 +214,6 @@ module.exports = app => {
|
|
|
auditHistory.push(await ctx.service.reviseAudit.getAuditors(revise.id, i));
|
|
|
}
|
|
|
}
|
|
|
- console.log(auditHistory);
|
|
|
return {
|
|
|
revise: revise, tender: ctx.tender.data,
|
|
|
reviseBills, revisePos, ledgerSpread, posSpread, tenderMenu, measureType,
|
|
@@ -493,7 +491,6 @@ module.exports = app => {
|
|
|
}
|
|
|
ctx.body = responseData;
|
|
|
} catch (err) {
|
|
|
- console.log(err);
|
|
|
this.log(err);
|
|
|
ctx.body = this.ajaxErrorBody(err, '数据错误');
|
|
|
}
|
|
@@ -542,7 +539,6 @@ module.exports = app => {
|
|
|
async removeAuditor(ctx) {
|
|
|
try {
|
|
|
const data = JSON.parse(ctx.request.body.data);
|
|
|
- console.log(data);
|
|
|
const id = data.auditorId instanceof Number ? data.auditorId : this.app._.toNumber(data.auditorId);
|
|
|
if (isNaN(id) || id <= 0) {
|
|
|
throw '参数错误';
|