Pārlūkot izejas kodu

修复审批bug

laiguoran 5 gadi atpakaļ
vecāks
revīzija
6f97775f2f
3 mainītis faili ar 11 papildinājumiem un 11 dzēšanām
  1. 1 1
      app/extend/helper.js
  2. 4 4
      app/service/ledger_audit.js
  3. 6 6
      app/service/stage_audit.js

+ 1 - 1
app/extend/helper.js

@@ -878,7 +878,7 @@ module.exports = {
         if (mobiles.length > 0) {
             const sms = new SMS(this.ctx);
             const tenderName = await sms.contentChange(this.ctx.tender.data.name);
-            const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + msg;
+            const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + msg;
             sms.send(mobiles, content);
         }
     },

+ 4 - 4
app/service/ledger_audit.js

@@ -221,7 +221,7 @@ module.exports = app => {
                         const tenderInfo = await this.ctx.service.tender.getDataById(tenderId);
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '台帐需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '台帐需要您审批。';
                         sms.send(smsUser.auth_mobile, content);
                     }
                 }
@@ -270,7 +270,7 @@ module.exports = app => {
                                 const tenderInfo = await this.ctx.service.tender.getDataById(tenderId);
                                 const sms = new SMS(this.ctx);
                                 const tenderName = await sms.contentChange(tenderInfo.name);
-                                const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '台帐需要您审批。';
+                                const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '台帐需要您审批。';
                                 sms.send(smsUser.auth_mobile, content);
                             }
                         }
@@ -301,7 +301,7 @@ module.exports = app => {
                         if (mobile_array.length > 0) {
                             const sms = new SMS(this.ctx);
                             const tenderName = await sms.contentChange(tenderInfo.name);
-                            const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '台账审批通过,请登录系统处理。';
+                            const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '台账审批通过,请登录系统处理。';
                             sms.send(mobile_array, content);
                         }
                     }
@@ -341,7 +341,7 @@ module.exports = app => {
                     if (mobile_array.length > 0) {
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '台账审批退回,请登录系统处理。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '台账审批退回,请登录系统处理。';
                         sms.send(mobile_array, content);
                     }
                 }

+ 6 - 6
app/service/stage_audit.js

@@ -243,7 +243,7 @@ module.exports = app => {
                         const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
                         sms.send(smsUser.auth_mobile, content);
                     }
                 }
@@ -299,7 +299,7 @@ module.exports = app => {
                             const stageInfo = await this.ctx.service.stage.getDataById(nextAudit.sid);
                             const sms = new SMS(this.ctx);
                             const tenderName = await sms.contentChange(tenderInfo.name);
-                            const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                            const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
                             sms.send(smsUser.auth_mobile, content);
                         }
                     }
@@ -343,7 +343,7 @@ module.exports = app => {
                         const tenderInfo = await this.ctx.service.tender.getDataById(stageInfo.tid);
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,审批通过。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,审批通过。';
                         sms.send(mobile_array, content);
                     }
                 }
@@ -420,7 +420,7 @@ module.exports = app => {
                     const tenderInfo = await this.ctx.service.tender.getDataById(stageInfo.tid);
                     const sms = new SMS(this.ctx);
                     const tenderName = await sms.contentChange(tenderInfo.name);
-                    const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,审批退回。';
+                    const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,审批退回。';
                     sms.send(mobile_array, content);
                 }
 
@@ -503,7 +503,7 @@ module.exports = app => {
                         const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
                         sms.send(smsUser.auth_mobile, content);
                     }
                 }
@@ -717,7 +717,7 @@ module.exports = app => {
                         const stageInfo = await this.ctx.service.stage.getDataById(audit.sid);
                         const sms = new SMS(this.ctx);
                         const tenderName = await sms.contentChange(tenderInfo.name);
-                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.session.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
                         sms.send(smsUser.auth_mobile, content);
                     }
                 }