|
@@ -25,7 +25,7 @@ module.exports = app => {
|
|
|
async getStageData(stage, cancel = false) {
|
|
async getStageData(stage, cancel = false) {
|
|
|
const data = await this.getAllDataByCondition({where: { sid: stage.id }});
|
|
const data = await this.getAllDataByCondition({where: { sid: stage.id }});
|
|
|
if (!stage || cancel || !stage.readOnly || this.ctx.tender.isTourist || stage.status === auditConst.status.checked
|
|
if (!stage || cancel || !stage.readOnly || this.ctx.tender.isTourist || stage.status === auditConst.status.checked
|
|
|
- || (stage.flowAuditorIds && stage.flowAuditorIds.indexOf(this.ctx.session.sessionUser.accountId) > 0)) return data;
|
|
|
|
|
|
|
+ || (stage.flowAuditorIds && stage.flowAuditorIds.indexOf(this.ctx.session.sessionUser.accountId) >= 0)) return data;
|
|
|
|
|
|
|
|
for (const d of data) {
|
|
for (const d of data) {
|
|
|
const his = d.shistory ? JSON.parse(d.shistory) : [];
|
|
const his = d.shistory ? JSON.parse(d.shistory) : [];
|