|
@@ -533,6 +533,7 @@ module.exports = app => {
|
|
|
return rst;
|
|
|
}
|
|
|
|
|
|
+ // params = { tender_id: int, detail_id: int }
|
|
|
async payment_safe(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
const RptPaymentSafe = require('../lib/rm/payment_safe');
|
|
|
const rptPaymentSafe = new RptPaymentSafe(this.ctx);
|
|
@@ -540,6 +541,7 @@ module.exports = app => {
|
|
|
return rptPaymentSafe.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
+ // params = { tender_id: int, detail_id: int }
|
|
|
async payment(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
const RptPayment = require('../lib/rm/payment');
|
|
|
const rptPayment = new RptPayment(this.ctx);
|
|
@@ -547,6 +549,7 @@ module.exports = app => {
|
|
|
return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
+ // params = { sp_id: int, budget_id: int }
|
|
|
async budget(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
const RptPayment = require('../lib/rm/budget');
|
|
|
const rptPayment = new RptPayment(this.ctx);
|
|
@@ -554,13 +557,38 @@ module.exports = app => {
|
|
|
return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
- async budget(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ // params = { change_id: uuid }
|
|
|
+ async change(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
const RptPayment = require('../lib/rm/change');
|
|
|
const rptPayment = new RptPayment(this.ctx);
|
|
|
|
|
|
return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
}
|
|
|
|
|
|
+ // params = { change_plan_id: int }
|
|
|
+ async changePlan(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ const RptPayment = require('../lib/rm/change_plan');
|
|
|
+ const rptPayment = new RptPayment(this.ctx);
|
|
|
+
|
|
|
+ return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ // params = { change_project_id: int }
|
|
|
+ async changeProject(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ const RptPayment = require('../lib/rm/change_project');
|
|
|
+ const rptPayment = new RptPayment(this.ctx);
|
|
|
+
|
|
|
+ return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ // params = { change_apply_id: int }
|
|
|
+ async changeApply(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
+ const RptPayment = require('../lib/rm/change_apply');
|
|
|
+ const rptPayment = new RptPayment(this.ctx);
|
|
|
+
|
|
|
+ return rptPayment.getReportData(params, sourceFilters, memFieldKeys, customDefine, customSelect);
|
|
|
+ }
|
|
|
+
|
|
|
async getReportData(source_type, params, sourceFilters, memFieldKeys, customDefine, customSelect) {
|
|
|
const sourceType = sourceTypeConst.sourceTypeData.find(x => { return x.id === source_type; });
|
|
|
if (!sourceType && !this[sourceType.key]) return {};
|