浏览代码

修改短信,待办页显示方式

laiguoran 5 年之前
父节点
当前提交
c0edb3ab84
共有 4 个文件被更改,包括 13 次插入13 次删除
  1. 1 1
      app/extend/helper.js
  2. 4 4
      app/service/ledger_audit.js
  3. 6 6
      app/service/stage_audit.js
  4. 2 2
      app/view/dashboard/index.ejs

+ 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 = '【纵横计量支付】' + tenderName + msg;
+            const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '台帐需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '台帐需要您审批。';
+                                const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '台账审批通过,请登录系统处理。';
+                            const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '台账审批退回,请登录系统处理。';
+                        const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                            const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,审批通过。';
+                        const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,审批退回。';
+                    const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.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 = '【纵横计量支付】' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
+                        const content = '【纵横计量支付】' + this.ctx.sessionProject.name + '-' + tenderName + '第' + stageInfo.order + '期,需要您审批。';
                         sms.send(smsUser.auth_mobile, content);
                     }
                 }

+ 2 - 2
app/view/dashboard/index.ejs

@@ -275,8 +275,8 @@
                 <div class="col-2">
                     <div class="card">
                         <div class="card-body">
-                            <h4 class="card-title"><%= salesmanData.username %></h4>
-                            <h6 class="card-subtitle mb-2 text-muted"><%= officeName %></h6>
+                            <h5 class="card-title">纵横技术支持</h5>
+                            <h6 class="card-subtitle mb-2 text-muted"><%= salesmanData.username %></h6>
                         </div>
                         <ul class="list-group list-group-flush">
                             <li class="list-group-item" data-toggle="tooltip" data-placement="bottom" title="腾讯QQ"><i class="fa fa-qq"></i> <%=salesmanData.qq%></li>