Bladeren bron

增加已办流程提醒

lamphua 10 uur geleden
bovenliggende
commit
e58906bd12

+ 5
- 3
oa-ui-app/pages/form/borrow/borrow.vue Bestand weergeven

@@ -648,10 +648,12 @@ export default {
648 648
     async sendQyMessage(userIds) {
649 649
       if (userIds && userIds.length > 0) {
650 650
         let formData = new FormData();
651
-        let message = "您有一条新的借款申请:  \n>" + 
651
+        let message = "您有一条新的借款申请 \n>" + 
652 652
         "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" + 
653
-        "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元  \n>" + 
654
-        "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + "  \n>";
653
+        "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元 \n>" + 
654
+        "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + " \n>" + 
655
+        "\n>" + 
656
+		"已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
655 657
         formData.append('message', message);
656 658
         let userString = [];
657 659
         for (let u of userIds) {

+ 3
- 1
oa-ui-app/pages/form/car/car.vue Bestand weergeven

@@ -753,7 +753,9 @@ export default {
753 753
         "用车事由:" + this.form.applyReason + " \n>" + 
754 754
         "开始日期:" + this.form.beginDate + " \n>" + 
755 755
         "结束日期:" + this.form.endDate + " \n>" + 
756
-        "乘车人数:" + this.form.passengers + "人  \n>";
756
+        "乘车人数:" + this.form.passengers + "人 \n>" + 
757
+        "\n>" + 
758
+		"已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
757 759
         formData.append('message', message);
758 760
         let userString = [];
759 761
         for (let u of userIds) {

+ 5
- 3
oa-ui-app/pages/form/device/device.vue Bestand weergeven

@@ -835,11 +835,13 @@ export default {
835 835
           }
836 836
         }
837 837
         
838
-        message = "您有一条新的设备申请:  \n>" + 
839
-        "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font>  \n>" + 
838
+        message = "您有一条新的设备申请 \n>" + 
839
+        "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" + 
840 840
         "开始日期:" + this.form.beginDate + " \n>" + 
841 841
         "结束日期:" + this.form.endDate + " \n>" +  
842
-        "申请事由:" + this.form.applyReason + "  \n>";
842
+        "申请事由:" + this.form.applyReason + " \n>" + 
843
+        "\n>" + 
844
+		"已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
843 845
         
844 846
         formData.append('message', message);
845 847
         formData.append('userString', userString.join('|') + '|YuSiHan|WangRongHua')

+ 1
- 1
oa-ui/src/views/flowable/form/changeForm.vue Bestand weergeven

@@ -299,7 +299,7 @@ export default {
299 299
     async sendQyMessage(userIds) {
300 300
       if (userIds && userIds.length > 0) {
301 301
         let formData = new FormData();
302
-        let message = "经营发展部发起项目变更通知:  \n>" +
302
+        let message = "经营发展部发起项目变更通知 \n>" +
303 303
           "登记人:<font color='info'>" + this.getUserName(this.form.registrant) + "</font> \n>" +
304 304
           "变更项目:" + this.chooseProject.projectNumber + "-" + this.chooseProject.projectName + " \n>" +
305 305
           "变更内容:" + this.form.content + " \n>";

+ 19
- 15
oa-ui/src/views/flowable/form/finance/borrowForm.vue Bestand weergeven

@@ -832,7 +832,7 @@ export default {
832 832
               else if (this.taskName == '总经理审核') {
833 833
                 this.$set(this.taskForm.variables, "exceed", this.exceed);
834 834
                 if (!this.exceed) {
835
-                  userIds = this.submitFD();
835
+                  userIds = await this.submitFD();
836 836
                 }
837 837
                 else {
838 838
                   const res1 = await getUserByPost({ postName: '董事长' });
@@ -842,10 +842,10 @@ export default {
842 842
                 }
843 843
               }
844 844
               else if (this.taskName == '董事长批准') {
845
-                userIds = this.submitFD();
845
+                userIds = await this.submitFD();
846 846
               }
847 847
               else if (this.taskName == '党工团审核') {
848
-                userIds = this.submitFD();
848
+                userIds = await this.submitFD();
849 849
               }
850 850
               else if (this.taskName == '财务处理') {
851 851
                 this.handleComplete(this.taskForm);
@@ -854,15 +854,17 @@ export default {
854 854
                 let { data } = await getUser(u)
855 855
                 userString.push(data.pinyin)
856 856
               }
857
-              message = "您有一条新的借款申请:  \n>" + 
858
-              "申请人:<font color='info'>" + this.form.applierUser.nickName + "</font>  \n>" + 
859
-              "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元  \n>" + 
860
-              "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + "  \n>"
857
+              message = "您有一条新的借款申请: \n>" +
858
+                "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" +
859
+                "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元 \n>" +
860
+                "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + " \n>" +
861
+                "\n>" +
862
+                "已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
861 863
               formData.append('message', message)
862 864
               formData.append('userString', userString.join('|') + '|YuSiHan|WangRongHua')
863
-              
865
+
864 866
               if (userIds.length > 0)
865
-                sendQyMessage(formData);
867
+                await sendQyMessage(formData);
866 868
 
867 869
             } else {
868 870
               delBorrowDetail(this.taskForm.formId).then(() => {
@@ -884,15 +886,17 @@ export default {
884 886
                 let { data } = await getUser(u)
885 887
                 userString.push(data.pinyin)
886 888
               }
887
-              message = "您有一条新的借款申请:  \n>" + 
888
-              "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font>  \n>" + 
889
-              "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元  \n>" + 
890
-              "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + "  \n>"
889
+              message = "您有一条新的借款申请: \n>" +
890
+                "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" +
891
+                "借款金额:<font color='warning'>" + this.form.applyAmount + "</font> 元 \n>" +
892
+                "借款说明:" + (this.form.applyReason ? this.form.applyReason : this.form.remark) + " \n>" +
893
+                "\n>" +
894
+                "已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
891 895
               formData.append('message', message)
892 896
               formData.append('userString', userString.join('|') + '|YuSiHan|WangRongHua')
893
-              
897
+
894 898
               if (userIds.length > 0)
895
-                sendQyMessage(formData);
899
+                await sendQyMessage(formData);
896 900
             }
897 901
           } else {
898 902
             this.$message.error('请完善必填项')

+ 16
- 13
oa-ui/src/views/flowable/form/oa/carForm.vue Bestand weergeven

@@ -2,7 +2,7 @@
2 2
  * @Author: ysh
3 3
  * @Date: 2024-02-29 11:44:28
4 4
  * @LastEditors: wrh
5
- * @LastEditTime: 2026-03-03 17:28:05
5
+ * @LastEditTime: 2026-03-13 16:09:18
6 6
 -->
7 7
 
8 8
 <template>
@@ -56,17 +56,17 @@
56 56
                 </el-select> -->
57 57
                 <el-descriptions border v-if="isSelect" style="margin-top: 10px;" :column="1">
58 58
                   <el-descriptions-item label="项目编号" label-class-name="my-label">{{ chooseProject.projectNumber
59
-                    }}</el-descriptions-item>
59
+                  }}</el-descriptions-item>
60 60
                   <el-descriptions-item label="项目名称" label-class-name="my-label">{{ chooseProject.projectName
61
-                    }}</el-descriptions-item>
61
+                  }}</el-descriptions-item>
62 62
                   <el-descriptions-item label="项目负责人" label-class-name="my-label">{{ chooseProject.projectLeaderUser ?
63 63
                     chooseProject.projectLeaderUser.nickName : ''
64
-                    }}</el-descriptions-item>
64
+                  }}</el-descriptions-item>
65 65
                   <el-descriptions-item label="承担部门" label-class-name="my-label">
66 66
                     <el-tag size="small">{{ chooseProject.undertakingDeptName }}</el-tag>
67 67
                   </el-descriptions-item>
68 68
                   <el-descriptions-item label="项目类型" label-class-name="my-label">{{ chooseProject.projectType
69
-                    }}</el-descriptions-item>
69
+                  }}</el-descriptions-item>
70 70
                 </el-descriptions>
71 71
               </el-form-item>
72 72
               <el-form-item label="用车事由:" prop="applyReason">
@@ -252,7 +252,8 @@
252 252
             </el-row>
253 253
             <el-row style="text-align: center;" v-else>
254 254
               <el-button type="warning" @click="saves()" v-if="taskName == '安排用车'">保存</el-button>
255
-              <el-button type="primary" v-if="taskName" @click="completeApply" :disabled="taskName == '安排用车' && !form.returnDate">完成审批</el-button>
255
+              <el-button type="primary" v-if="taskName" @click="completeApply"
256
+                :disabled="taskName == '安排用车' && !form.returnDate">完成审批</el-button>
256 257
             </el-row>
257 258
           </div>
258 259
         </el-card>
@@ -554,7 +555,7 @@ export default {
554 555
     },
555 556
     saves() {
556 557
       if (this.taskName == '安排用车') {
557
-        if(!this.form.dispatchComment){
558
+        if (!this.form.dispatchComment) {
558 559
           this.$message.error('请填写安排用车意见')
559 560
           return
560 561
         }
@@ -801,12 +802,14 @@ export default {
801 802
     async sendQyMessage(userIds) {
802 803
       if (userIds && userIds.length > 0) {
803 804
         let formData = new FormData();
804
-        let message = "您有一条新的用车申请:  \n>" + 
805
-        "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" + 
806
-        "用车事由:" + this.form.applyReason + " \n>" + 
807
-        "开始日期:" + this.form.beginDate + " \n>" + 
808
-        "结束日期:" + this.form.endDate + " \n>" + 
809
-        "乘车人数:" + this.form.passengers + "人  \n>";
805
+        let message = "您有一条新的用车申请:  \n>" +
806
+          "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" +
807
+          "用车事由:" + this.form.applyReason + " \n>" +
808
+          "开始日期:" + this.form.beginDate + " \n>" +
809
+          "结束日期:" + this.form.endDate + " \n>" +
810
+          "乘车人数:" + this.form.passengers + "人 \n>" +
811
+          "\n>" +
812
+          "已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
810 813
         formData.append('message', message);
811 814
         let userString = [];
812 815
         for (let u of userIds) {

+ 24
- 20
oa-ui/src/views/flowable/form/oa/deviceForm.vue Bestand weergeven

@@ -469,18 +469,20 @@ export default {
469 469
                 userString.push(data.pinyin);
470 470
               }
471 471
             }
472
-            
473
-            message = "您有一条新的设备申请:  \n>" + 
474
-            "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font>  \n>" + 
475
-            "开始日期:" + this.form.beginDate + " \n>" + 
476
-            "结束日期:" + this.form.endDate + " \n>" +  
477
-            "申请事由:" + this.form.applyReason + "  \n>";
478
-            
472
+
473
+            message = "您有一条新的设备申请:  \n>" +
474
+              "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" +
475
+              "开始日期:" + this.form.beginDate + " \n>" +
476
+              "结束日期:" + this.form.endDate + " \n>" +
477
+              "申请事由:" + this.form.applyReason + " \n>" +
478
+              "\n>" +
479
+              "已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
480
+
479 481
             formData.append('message', message);
480 482
             formData.append('userString', userString.join('|') + '|YuSiHan|WangRongHua')
481
-            
483
+
482 484
             if (userIds.length > 0) {
483
-              sendQyMessage(formData);
485
+              await sendQyMessage(formData);
484 486
             }
485 487
           })
486 488
         } else {
@@ -520,25 +522,27 @@ export default {
520 522
             let userString = [];
521 523
             let message = '';
522 524
             let formData = new FormData();
523
-            
525
+
524 526
             for (let u of userIds) {
525 527
               let { data } = await getUser(u);
526 528
               if (data) {
527 529
                 userString.push(data.pinyin);
528 530
               }
529 531
             }
530
-            
531
-            message = "您有一条新的设备申请:  \n>" + 
532
-            "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font>  \n>" + 
533
-            "开始日期:" + this.form.beginDate + " \n>" + 
534
-            "结束日期:" + this.form.endDate + " \n>" +  
535
-            "申请事由:" + this.form.applyReason + "  \n>";
536
-            
532
+
533
+            message = "您有一条新的设备申请:  \n>" +
534
+              "申请人:<font color='info'>" + this.getUserName(this.form.applier) + "</font> \n>" +
535
+              "开始日期:" + this.form.beginDate + " \n>" +
536
+              "结束日期:" + this.form.endDate + " \n>" +
537
+              "申请事由:" + this.form.applyReason + " \n>" +
538
+              "\n>" +
539
+              "已办流程:<font color='comment'>" + this.taskName + "</font> \n>";
540
+
537 541
             formData.append('message', message);
538 542
             formData.append('userString', userString.join('|') + '|YuSiHan|WangRongHua')
539
-            
543
+
540 544
             if (userIds.length > 0) {
541
-              sendQyMessage(formData);
545
+              await sendQyMessage(formData);
542 546
             }
543 547
           })
544 548
         } else {
@@ -558,7 +562,7 @@ export default {
558 562
           this.$emit('goBack')
559 563
         });
560 564
       } else if (this.taskName == '安排设备') {
561
-        const res = await getUsersManageLeader({ userId: this.form.applier });        
565
+        const res = await getUsersManageLeader({ userId: this.form.applier });
562 566
         res.data.forEach(user => {
563 567
           userIds.push(user.userId)
564 568
         })

Laden…
Annuleren
Opslaan