|
@@ -1740,7 +1740,7 @@ module.exports = app => {
|
|
async getPhasePay(tid, sid) {
|
|
async getPhasePay(tid, sid) {
|
|
await this.ctx.service.tender.checkTender(tid);
|
|
await this.ctx.service.tender.checkTender(tid);
|
|
await this.ctx.service.stage.checkStage(sid);
|
|
await this.ctx.service.stage.checkStage(sid);
|
|
- await this.ctx.service.phasePay.checkStageRelaPhasePay(tid, sid);
|
|
|
|
|
|
+ await this.ctx.service.phasePay.checkStageRelaPhasePay(this.ctx.stage);
|
|
|
|
|
|
return this.ctx.stageRelaPhasePay || {};
|
|
return this.ctx.stageRelaPhasePay || {};
|
|
}
|
|
}
|
|
@@ -1748,7 +1748,7 @@ module.exports = app => {
|
|
async getPhasePayDetail(tid, sid) {
|
|
async getPhasePayDetail(tid, sid) {
|
|
await this.ctx.service.tender.checkTender(tid);
|
|
await this.ctx.service.tender.checkTender(tid);
|
|
await this.ctx.service.stage.checkStage(sid);
|
|
await this.ctx.service.stage.checkStage(sid);
|
|
- await this.ctx.service.phasePay.checkStageRelaPhasePay(tid, sid);
|
|
|
|
|
|
+ await this.ctx.service.phasePay.checkStageRelaPhasePay(this.ctx.stage);
|
|
|
|
|
|
if (!this.ctx.stageRelaPhasePay) return [];
|
|
if (!this.ctx.stageRelaPhasePay) return [];
|
|
const data = await this.ctx.service.phasePayDetail.getDetailData(this.ctx.stageRelaPhasePay);
|
|
const data = await this.ctx.service.phasePayDetail.getDetailData(this.ctx.stageRelaPhasePay);
|