|
@@ -36,6 +36,7 @@ module.exports = app => {
|
|
|
}
|
|
|
const stages = await this.ctx.service.stage.getAllDataByCondition({ where: { tid: ctx.tender.id }, orders: [['order', 'AEC']] });
|
|
|
const validStages = stages.filter(s => {
|
|
|
+ if (s.status !== audit.stage.status.checked) return false;
|
|
|
return !relaStage.find(r => { return s.id === r.stage_id; });
|
|
|
});
|
|
|
this.ctx.service.phasePay.calculatePhasePay(phasePays);
|