|
@@ -1372,7 +1372,8 @@ module.exports = app => {
|
|
for (const order of data.roles) {
|
|
for (const order of data.roles) {
|
|
const data = { order, bills: [], pos: [] };
|
|
const data = { order, bills: [], pos: [] };
|
|
const compareTimes = ctx.stage.status === auditConst.status.checkNo && !ctx.stage.readOnly
|
|
const compareTimes = ctx.stage.status === auditConst.status.checkNo && !ctx.stage.readOnly
|
|
- ? ctx.stage.curTimes - 1 : ctx.stage.curTimes;
|
|
|
|
|
|
+ ? ( order === 0 ? ctx.stage.curTimes : ctx.stage.curTimes - 1)
|
|
|
|
+ : ctx.stage.curTimes;
|
|
data.bills = await ctx.service.stageBills.getAuditorStageData2(ctx.tender.id, ctx.stage.id, compareTimes, order);
|
|
data.bills = await ctx.service.stageBills.getAuditorStageData2(ctx.tender.id, ctx.stage.id, compareTimes, order);
|
|
data.pos = await ctx.service.stagePos.getAuditorStageData2(ctx.tender.id, ctx.stage.id, compareTimes, order);
|
|
data.pos = await ctx.service.stagePos.getAuditorStageData2(ctx.tender.id, ctx.stage.id, compareTimes, order);
|
|
result.roles.push(data);
|
|
result.roles.push(data);
|