Browse Source

代办公文发起消息文案修改

SanHQin 1 year ago
parent
commit
e2d3f8b35c

File diff suppressed because it is too large
+ 0 - 0
dist/css/9834.aaab5623.css


+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.f92325f6.js"></script><script defer="defer" src="/js/app.fe5636c2.js"></script><link href="/css/chunk-vendors.0225060a.css" rel="stylesheet"><link href="/css/app.b3459279.css" rel="stylesheet"></head><body><div id="app"></div></body></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>双创学院管理系统</title><script defer="defer" src="/js/chunk-vendors.f92325f6.js"></script><script defer="defer" src="/js/app.e9ae0a77.js"></script><link href="/css/chunk-vendors.0225060a.css" rel="stylesheet"><link href="/css/app.b3459279.css" rel="stylesheet"></head><body><div id="app"></div></body></html>

File diff suppressed because it is too large
+ 0 - 0
dist/js/4166.528602d9.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/4166.528602d9.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/7814.5a3488a4.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/7814.5a3488a4.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/9834.c254c856.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/9834.c254c856.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.e9ae0a77.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/app.e9ae0a77.js.map


+ 82 - 82
src/views/commission/components/projectBook.vue

@@ -496,7 +496,7 @@ export default {
           // console.log(res);
           this.$message.success("签批成功");
           this.getSign();
-          // this.sendTask();
+          this.sendTask();
 					this.getData()
           this.dialogVisible = false;
         },
@@ -594,87 +594,87 @@ export default {
 
       return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
     },
-    // sendTask() {
-    //   var tType =
-    //     this.$store.state.userInfo.type == 1
-    //       ? "老师"
-    //       : this.$store.state.userInfo.type == 2
-    //       ? "学生"
-    //       : this.$store.state.userInfo.type == 3
-    //       ? "二级学院领导"
-    //       : this.$store.state.userInfo.type == 4
-    //       ? "院长"
-    //       : this.$store.state.userInfo.type == 5
-    //       ? "学术委员会"
-    //       : this.$store.state.userInfo.type == 6
-    //       ? "科研办"
-    //       : "管理员";
-    //   var nid =
-    //     "SC" +
-    //     this.getNowTimeByNumber() +
-    //     this.getRamDom4() +
-    //     this.getRamDom2();
-    //   let param = [
-    //     {
-    //       taskInfo: JSON.stringify({
-    //         inserttasks: [
-    //           {
-    //             app_id: this.getRamDom16(),
-    //             assignments: [
-    //               {
-    //                 assign_dept: this.$store.state.userInfo.bm,
-    //                 assign_id: this.$store.state.userInfo.userid,
-    //                 assign_name: this.$store.state.userInfo.username,
-    //               },
-    //             ],
-    //             biz_domain: this.$store.state.userInfo.bm,
-    //             biz_key: "bizkey_" + this.getRamDom7(),
-    //             created_by_depts: this.$store.state.userInfo.bm,
-    //             created_by_ids: this.$store.state.userInfo.userid,
-    //             created_by_names: this.$store.state.userInfo.username,
-    //             created_on: this.getNowTime(),
-    //             form_url: "",
-    //             form_url_view: "",
-    //             node_id: nid,
-    //             node_name: tType + "审核",
-    //             priority: 0,
-    //             process_delete_flag: 0,
-    //             process_id: "SC_leave_" + this.getRamDom10(),
-    //             process_instance_form_view: "",
-    //             process_instance_id:
-    //               "SC" + this.getNowTimeByNumber() + this.getRamDom4(),
-    //             process_instance_image_url: "",
-    //             process_instance_initiator: this.$store.state.userInfo.username,
-    //             process_instance_initiator_dp: this.$store.state.userInfo.bm,
-    //             process_instance_initiator_id: "ampadmin",
-    //             process_instance_start_date: this.getNowTime(),
-    //             process_instance_status: "RUNNING",
-    //             process_instance_subject:
-    //               "代办公文流程:" + this.$store.state.userInfo.username,
-    //             process_name: "代办公文流程:",
-    //             process_version: "1.0",
-    //             status: "ACTIVE",
-    //             subject:
-    //               this.$store.state.userInfo.username +
-    //               "_发起代办公文流程-" +
-    //               this.bookData.title,
-    //             task_delete_flag: 0,
-    //             task_id: nid,
-    //           },
-    //         ],
-    //         updatetasks: [],
-    //       }),
-    //     },
-    //   ];
-    //   this.ajax.post(this.$store.state.api + "/getTest", param).then(
-    //     (res) => {
-    //       console.log(res);
-    //     },
-    //     (err) => {
-    //       console.log(err);
-    //     }
-    //   );
-    // },
+    sendTask() {
+      var tType =
+        this.$store.state.userInfo.type == 1
+          ? "老师"
+          : this.$store.state.userInfo.type == 2
+          ? "学生"
+          : this.$store.state.userInfo.type == 3
+          ? "二级学院领导"
+          : this.$store.state.userInfo.type == 4
+          ? "院长"
+          : this.$store.state.userInfo.type == 5
+          ? "学术委员会"
+          : this.$store.state.userInfo.type == 6
+          ? "科研办"
+          : "管理员";
+      var nid =
+        "SC" +
+        this.getNowTimeByNumber() +
+        this.getRamDom4() +
+        this.getRamDom2();
+      let param = [
+        {
+          taskInfo: JSON.stringify({
+            inserttasks: [
+              {
+                app_id: this.getRamDom16(),
+                assignments: [
+                  {
+                    assign_dept: this.$store.state.userInfo.bm,
+                    assign_id: this.$store.state.userInfo.userid,
+                    assign_name: this.$store.state.userInfo.username,
+                  },
+                ],
+                biz_domain: this.$store.state.userInfo.bm,
+                biz_key: "bizkey_" + this.getRamDom7(),
+                created_by_depts: this.$store.state.userInfo.bm,
+                created_by_ids: this.$store.state.userInfo.userid,
+                created_by_names: this.$store.state.userInfo.username,
+                created_on: this.getNowTime(),
+                form_url: "",
+                form_url_view: "",
+                node_id: nid,
+                node_name: tType + "审核",
+                priority: 0,
+                process_delete_flag: 0,
+                process_id: "SC_leave_" + this.getRamDom10(),
+                process_instance_form_view: "",
+                process_instance_id:
+                  "SC" + this.getNowTimeByNumber() + this.getRamDom4(),
+                process_instance_image_url: "",
+                process_instance_initiator: this.$store.state.userInfo.username,
+                process_instance_initiator_dp: this.$store.state.userInfo.bm,
+                process_instance_initiator_id: "ampadmin",
+                process_instance_start_date: this.getNowTime(),
+                process_instance_status: "RUNNING",
+                process_instance_subject:
+                  "代办公文流程:" + this.$store.state.userInfo.username,
+                process_name: "代办公文流程:",
+                process_version: "1.0",
+                status: "ACTIVE",
+                subject:
+                  this.$store.state.userInfo.username +    
+                  "_已完成代办公文操作-" +
+                  this.bookData.title,//用户名称_已完成代办公文操作-项目名称
+                task_delete_flag: 0,
+                task_id: nid,
+              },
+            ],
+            updatetasks: [],
+          }),
+        },
+      ];
+      this.ajax.post(this.$store.state.api + "/getTest", param).then(
+        (res) => {
+          console.log(res);
+        },
+        (err) => {
+          console.log(err);
+        }
+      );
+    },
   },
 	computed:{
 	  showBtn(){

Some files were not shown because too many files changed in this diff