|
@@ -2418,7 +2418,6 @@ module.exports = app => {
|
|
|
for (const c of changes) {
|
|
|
c.curAuditor = await ctx.service.changeApplyAudit.getAuditorByStatus(c.id, c.status, c.times);
|
|
|
}
|
|
|
-
|
|
|
const tender_userInfo = await ctx.service.projectAccount.getDataById(ctx.tender.data.user_id);
|
|
|
// 分页相关
|
|
|
const pageInfo = {
|
|
@@ -2466,6 +2465,13 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
const changeProjectList = await ctx.service.changeProject.getAllDataByCondition({ where: { tid: tender.id, status: audit.changeProject.status.checked } });
|
|
|
+ const allProjectCodes = await ctx.service.changeApply.getAllDataByCondition({
|
|
|
+ columns: ['project_code'],
|
|
|
+ where: {
|
|
|
+ tid: tender.id,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ const pcLists = allProjectCodes.length > 0 ? ctx.app._.uniq(ctx.app._.map(allProjectCodes, 'project_code')) : [];
|
|
|
const renderData = {
|
|
|
uid: ctx.session.sessionUser.accountId,
|
|
|
tender,
|
|
@@ -2484,6 +2490,7 @@ module.exports = app => {
|
|
|
ruleConst: codeRuleConst.measure,
|
|
|
changeConst,
|
|
|
changeProjectList,
|
|
|
+ pcLists,
|
|
|
tenderMenu: this.menu.tenderMenu,
|
|
|
preUrl: '/tender/' + tender.id,
|
|
|
jsFiles: this.app.jsFiles.common.concat(this.app.jsFiles.change.apply),
|