|
@@ -324,6 +324,9 @@ module.exports = app => {
|
|
|
// 获取所有项目参与者
|
|
|
const { accountList, newAccountGroup, advance } = await this._getInvolveAcc(ctx, this.ctx.tender.id);
|
|
|
|
|
|
+ let sp_id = -1;
|
|
|
+ if (this.ctx.subProject) sp_id = this.ctx.subProject.id;
|
|
|
+
|
|
|
const renderData = {
|
|
|
accountGroup: newAccountGroup,
|
|
|
accountList,
|
|
@@ -340,7 +343,8 @@ module.exports = app => {
|
|
|
tender_id: tender.id,
|
|
|
tender_name: tender.data.name,
|
|
|
budget_id: -1,
|
|
|
- sp_id: -1,
|
|
|
+ // sp_id: -1,
|
|
|
+ sp_id,
|
|
|
detail_id: -1,
|
|
|
stg_id: stage_id,
|
|
|
stg_order: stage_order,
|
|
@@ -752,7 +756,9 @@ module.exports = app => {
|
|
|
const paymentDetail_id = -1;
|
|
|
const pid = ctx.session.sessionProject.id;
|
|
|
const budget_id = -1;
|
|
|
- const sp_id = -1;
|
|
|
+ // const sp_id = -1;
|
|
|
+ let sp_id = -1;
|
|
|
+ if (this.ctx.subProject) sp_id = this.ctx.subProject.id;
|
|
|
const { treeNodes, custCfg } = await this._createNodes(ctx, source_type, pid);
|
|
|
// const { treeNodes, custCfg, allTreeItems, allIndivTreeItems } = await this._createNodes(ctx, sourceTypeConst.sourceType.tender, tender.data.project_id);
|
|
|
const state = ctx.subProject.page_show.openChangeState && ctx.query.state ? parseInt(ctx.query.state) : 0;
|