|
|
@@ -1118,7 +1118,7 @@ module.exports = app => {
|
|
|
await this._indexForBGL(ctx, sourceTypeConst.sourceType.change_apply, -303);
|
|
|
}
|
|
|
|
|
|
- async _indexForContract(ctx, source_type, stage_id, preUrl) {
|
|
|
+ async _indexForContract(ctx, source_type, stage_id, preUrl, thisUrl) {
|
|
|
// 合同管理报表入口(项目、标段级别)
|
|
|
try {
|
|
|
await this._getStageAuditViewData(ctx);
|
|
|
@@ -1218,7 +1218,7 @@ module.exports = app => {
|
|
|
used_list: JSON.stringify(usedList),
|
|
|
tenderMenu,
|
|
|
preUrl,
|
|
|
- thisUrl: `/sp/${ctx.params.id}/contract/detail`, // 合同专有
|
|
|
+ thisUrl,
|
|
|
measureType,
|
|
|
categoryData,
|
|
|
tenderList,
|
|
|
@@ -1259,14 +1259,17 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async indexForProjectContract(ctx) {
|
|
|
- const preUrl = `/sp/${ctx.params.prjid}/contract/panel`;
|
|
|
- await this._indexForContract(ctx, sourceTypeConst.sourceType.contract, -600, preUrl);
|
|
|
+ // const preUrl = `/sp/${ctx.params.prjid}/contract/panel`;
|
|
|
+ const preUrl = '';
|
|
|
+ const thisUrl = `/sp/${ctx.params.id}/contract/detail`;
|
|
|
+ await this._indexForContract(ctx, sourceTypeConst.sourceType.contract, -600, preUrl, thisUrl);
|
|
|
}
|
|
|
|
|
|
async indexForTenderContract(ctx) {
|
|
|
// const preUrl = `/sp/${ctx.params.prjid}/contract/panel`;
|
|
|
const preUrl = '';
|
|
|
- await this._indexForContract(ctx, sourceTypeConst.sourceType.contract, -600, preUrl);
|
|
|
+ const thisUrl = `/sp/${ctx.params.id}/contract/tender/${ctx.params.tid}/detail`;
|
|
|
+ await this._indexForContract(ctx, sourceTypeConst.sourceType.contract, -600, preUrl, thisUrl);
|
|
|
}
|
|
|
|
|
|
/**
|