|
@@ -1,7 +1,7 @@
|
|
|
'use strict';
|
|
|
|
|
|
/**
|
|
|
- *
|
|
|
+ *
|
|
|
*
|
|
|
* @author Mai
|
|
|
* @date 20250613
|
|
@@ -14,34 +14,58 @@ class reportMemoryFinancial {
|
|
|
}
|
|
|
|
|
|
async checkTender(tid) {
|
|
|
- this.tender = this.ctx.tender ? this.ctx.tender : await this.ctx.tender.getDataById(tid);
|
|
|
+ this.tender = this.ctx.tender ? this.ctx.tender : await this.ctx.service.tender.getDataById(tid);
|
|
|
}
|
|
|
|
|
|
async pay(tid) {
|
|
|
await this.checkTender(tid);
|
|
|
+ if (!this.tender) return [];
|
|
|
+ return await this.ctx.service.financialPay.getAllDataByCondition({ where: { tid }});
|
|
|
+ }
|
|
|
+
|
|
|
+ async payContract(tid) {
|
|
|
+ await this.checkTender(tid);
|
|
|
+ if (!this.tender) return [];
|
|
|
+ return await this.ctx.service.financialPayContract.getAllDataByCondition({ where: { tid } });
|
|
|
+ }
|
|
|
+
|
|
|
+ async payTender(tid) {
|
|
|
+ await this.checkTender(tid);
|
|
|
+ if (!this.tender) return [];
|
|
|
+ return await this.ctx.service.financialPayTender.getAllDataByCondition({ where: { tid } });
|
|
|
+ }
|
|
|
+
|
|
|
+ async transferTender(tid) {
|
|
|
+ await this.checkTender(tid);
|
|
|
+ if (!this.tender) return [];
|
|
|
+ return await this.ctx.service.financialTransferTender.getAllDataByCondition({ where: { tid } });
|
|
|
+ }
|
|
|
+
|
|
|
+ async projectPay(tid) {
|
|
|
+ await this.checkTender(tid);
|
|
|
if (!this.tender || !this.tender.spid) return [];
|
|
|
return await this.ctx.service.financialPay.getAllDataByCondition({ where: { spid: this.tender.spid }});
|
|
|
}
|
|
|
|
|
|
- async payContract(tid) {
|
|
|
+ async projectPayContract(tid) {
|
|
|
await this.checkTender(tid);
|
|
|
if (!this.tender || !this.tender.spid) return [];
|
|
|
return await this.ctx.service.financialPayContract.getAllDataByCondition({ where: { spid: this.tender.spid } });
|
|
|
}
|
|
|
|
|
|
- async payTender(tid) {
|
|
|
+ async projectPayTender(tid) {
|
|
|
await this.checkTender(tid);
|
|
|
if (!this.tender || !this.tender.spid) return [];
|
|
|
return await this.ctx.service.financialPayTender.getAllDataByCondition({ where: { spid: this.tender.spid } });
|
|
|
}
|
|
|
|
|
|
- async transfer(tid) {
|
|
|
+ async projectTransfer(tid) {
|
|
|
await this.checkTender(tid);
|
|
|
if (!this.tender || !this.tender.spid) return [];
|
|
|
return await this.ctx.service.financialTransfer.getAllDataByCondition({ where: { spid: this.tender.spid } });
|
|
|
}
|
|
|
|
|
|
- async transferTender(tid) {
|
|
|
+ async projectTransferTender(tid) {
|
|
|
await this.checkTender(tid);
|
|
|
if (!this.tender || !this.tender.spid) return [];
|
|
|
return await this.ctx.service.financialTransferTender.getAllDataByCondition({ where: { spid: this.tender.spid } });
|