|
@@ -1281,7 +1281,20 @@ module.exports = app => {
|
|
|
result.mem_gather_change.push(...change);
|
|
|
result.mem_gather_change_bills.push(...changeBills);
|
|
|
}
|
|
|
- return result
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ async getGatherAdvancePay(memFieldKeys, gsDefine, gsCustom) {
|
|
|
+ if (!gsDefine || !gsDefine.enable) return [];
|
|
|
+ if (!gsCustom || !gsCustom.tenders || gsCustom.tenders.length === 0) return [];
|
|
|
+
|
|
|
+ const result = { mem_gather_advance_pay: [] };
|
|
|
+ for (const t of gsCustom.tenders) {
|
|
|
+ // const tender = await this.ctx.service.tender.getCheckTender(t.tid);
|
|
|
+ const advance_pay = await this.ctx.service.advance.getAllDataByCondition({ where: { tid: params.tender_id } };
|
|
|
+ result.mem_gather_advance_pay.push(...advance_pay);
|
|
|
+ }
|
|
|
+ return result;
|
|
|
}
|
|
|
|
|
|
async _gatherStageJgcl(tender, stage) {
|