|
@@ -496,7 +496,7 @@ export default {
|
|
|
// console.log(res);
|
|
// console.log(res);
|
|
|
this.$message.success("签批成功");
|
|
this.$message.success("签批成功");
|
|
|
this.getSign();
|
|
this.getSign();
|
|
|
- this.sendTask();
|
|
|
|
|
|
|
+ // this.sendTask();
|
|
|
this.getData()
|
|
this.getData()
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
},
|
|
},
|
|
@@ -594,87 +594,87 @@ export default {
|
|
|
|
|
|
|
|
return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
|
|
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:{
|
|
computed:{
|
|
|
showBtn(){
|
|
showBtn(){
|