|
@@ -140,7 +140,7 @@ module.exports = app => {
|
|
|
t.lastStage.user_id !== this.ctx.session.sessionUser.accountId) {
|
|
|
t.lastStage = await this.ctx.service.stage.getLastestStage(t.id);
|
|
|
}
|
|
|
- if (t.lastStage) await this.ctx.service.stage.checkStageGatherData(t.lastStage);
|
|
|
+ if (t.lastStage) await this.ctx.service.stage.checkStageGatherData(t.lastStage, this.ctx.session.sessionUser.is_admin);
|
|
|
t.completeStage = await this.ctx.service.stage.getLastestCompleteStage(t.id);
|
|
|
if ((!bCalcTp) && t.measure_type === measureType.gcl.value) {
|
|
|
bCalcTp = t.lastStage && t.lastStage.status !== auditConst.stage.status.checked && !t.lastStage.readOnly;
|
|
@@ -400,7 +400,7 @@ module.exports = app => {
|
|
|
const stages = await ctx.service.stage.getValidStages(ctx.tender.id);
|
|
|
const lastStage = stages.length > 0 ? stages[0] : null; // await ctx.service.stage.getLastestStage(ctx.tender.id);
|
|
|
if (lastStage) {
|
|
|
- await this.ctx.service.stage.checkStageGatherData(lastStage);
|
|
|
+ await this.ctx.service.stage.checkStageGatherData(lastStage, this.ctx.session.sessionUser.is_admin);
|
|
|
|
|
|
if ((!bCalcTp) && tender.measure_type === measureType.gcl.value) {
|
|
|
bCalcTp = lastStage.status !== auditConst.stage.status.checked && !lastStage.readOnly;
|
|
@@ -552,6 +552,7 @@ module.exports = app => {
|
|
|
map_json.lat = mapInfo.lat;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
const renderData = {
|
|
|
tenders,
|
|
|
categoryData,
|