MaiXinRong 1 rok pred
rodič
commit
cf2ec7a1dc

+ 1 - 1
app/lib/rm/change_apply.js

@@ -18,7 +18,7 @@ class rptMemChange extends RptMemBase {
 
     async doCheckChangeApply(id) {
         if (this.ctx.change_apply) return;
-        this.ctx.change_apply = await this.ctx.service.change.getDataById(id);
+        this.ctx.change_apply = await this.ctx.service.changeApply.getDataById(id);
     }
 
     async doCheckTender(tenderId) {

+ 1 - 1
app/lib/rm/change_plan.js

@@ -18,7 +18,7 @@ class rptMemChange extends RptMemBase {
 
     async doCheckChangePlan(id) {
         if (this.ctx.change_plan) return;
-        this.ctx.change_plan = await this.ctx.service.change.getDataById(id);
+        this.ctx.change_plan = await this.ctx.service.changePlan.getDataById(id);
     }
 
     async doCheckTender(tenderId) {

+ 1 - 1
app/lib/rm/change_project.js

@@ -18,7 +18,7 @@ class rptMemChange extends RptMemBase {
 
     async doCheckChangeProject(id) {
         if (this.ctx.change_project) return;
-        this.ctx.change_project = await this.ctx.service.change.getDataById(id);
+        this.ctx.change_project = await this.ctx.service.changeProject.getDataById(id);
     }
 
     async doCheckTender(tenderId) {

+ 3 - 3
app/service/report.js

@@ -567,7 +567,7 @@ module.exports = app => {
         }
 
         // params = { change_plan_id: int }
-        async changePlan(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
+        async change_plan(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
             const RptPayment = require('../lib/rm/change_plan');
             const rptPayment = new RptPayment(this.ctx);
 
@@ -575,7 +575,7 @@ module.exports = app => {
         }
 
         // params = { change_project_id: int }
-        async changeProject(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
+        async change_project(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
             const RptPayment = require('../lib/rm/change_project');
             const rptPayment = new RptPayment(this.ctx);
 
@@ -583,7 +583,7 @@ module.exports = app => {
         }
 
         // params = { change_apply_id: int }
-        async changeApply(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
+        async change_apply(params, sourceFilters, memFieldKeys, customDefine, customSelect) {
             const RptPayment = require('../lib/rm/change_apply');
             const rptPayment = new RptPayment(this.ctx);