|
|
@@ -788,12 +788,12 @@ module.exports = app => {
|
|
|
return rptAdvance.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
- // params = { }
|
|
|
- async contract_management(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
- const RptAdvance = require('../lib/rm/contract');
|
|
|
- const rptAdvance = new RptAdvance(this.ctx);
|
|
|
+ // params = { tender_id: int }
|
|
|
+ async contract(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ const RptContract = require('../lib/rm/contract');
|
|
|
+ const rptContract= new RptContract(this.ctx);
|
|
|
|
|
|
- return rptAdvance.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
+ return rptContract.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
// params = { safe_stage_id: uuid }
|
|
|
@@ -804,6 +804,14 @@ module.exports = app => {
|
|
|
return rptSafeStage.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
+ // params = { phase_pay_id: uuid }
|
|
|
+ async safe_stage(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ const RptPhasePay = require('../lib/rm/phase_pay');
|
|
|
+ const rptPhasePay = new RptPhasePay(this.ctx);
|
|
|
+
|
|
|
+ return rptPhasePay.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
+ }
|
|
|
+
|
|
|
async getReportData(source_type, params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
this.clearReportCache();
|
|
|
const sourceType = sourceTypeConst.sourceTypeData.find(x => { return x.id === source_type; });
|