|
|
@@ -340,6 +340,10 @@ module.exports = app => {
|
|
|
let sp_id = -1;
|
|
|
if (this.ctx.subProject) sp_id = this.ctx.subProject.id;
|
|
|
|
|
|
+ // 私有化
|
|
|
+ const permissions = await ctx.service.rptPermission.getAllTenderPermissions(tender.id);
|
|
|
+ // console.log(permissions);
|
|
|
+
|
|
|
const renderData = {
|
|
|
accountGroup: newAccountGroup,
|
|
|
accountList,
|
|
|
@@ -403,6 +407,7 @@ module.exports = app => {
|
|
|
otherChangeList: 'null',
|
|
|
otherHintName: '',
|
|
|
advanceConst,
|
|
|
+ permissions: JSON.stringify(permissions),
|
|
|
};
|
|
|
if (ctx.stage) renderData.spGroupList = await ctx.service.shenpiGroup.getGroupListByStage(ctx.tender.id, shenpiConst.sp_type.stage);
|
|
|
await this.layout('report/index.ejs', renderData, 'report/rpt_all_popup.ejs');
|
|
|
@@ -610,6 +615,7 @@ module.exports = app => {
|
|
|
changes: 'null',
|
|
|
otherChangeList: 'null',
|
|
|
otherHintName: '',
|
|
|
+ permissions: '[]',
|
|
|
};
|
|
|
/*
|
|
|
//*/
|
|
|
@@ -750,6 +756,7 @@ module.exports = app => {
|
|
|
changes: 'null',
|
|
|
otherChangeList: 'null',
|
|
|
otherHintName: '',
|
|
|
+ permissions: '[]',
|
|
|
};
|
|
|
await this.layout('report/index.ejs', renderData, 'report/rpt_all_popup.ejs');
|
|
|
|
|
|
@@ -953,6 +960,7 @@ module.exports = app => {
|
|
|
otherChangeList: JSON.stringify(otherChangeList || []),
|
|
|
otherHintName,
|
|
|
bizId: bglObj.BUSINESS_ID,
|
|
|
+ permissions: '[]',
|
|
|
};
|
|
|
await this.layout('report/index.ejs', renderData, 'report/rpt_all_popup.ejs');
|
|
|
} catch (err) {
|