Browse Source

修改一些细节

余思翰 1 year ago
parent
commit
b789954f9d

+ 23
- 56
oa-ui/src/views/flowable/form/scTable.vue View File

4
     <table class="table" ref="tableDatas">
4
     <table class="table" ref="tableDatas">
5
       <tr>
5
       <tr>
6
         <td class="table-title">项目编号</td>
6
         <td class="table-title">项目编号</td>
7
-        <td colspan="1">
7
+        <td colspan="1" style="text-align:left;padding-left:10px;">
8
           {{ tableForm.projectNumber }}
8
           {{ tableForm.projectNumber }}
9
         </td>
9
         </td>
10
         <td class="table-title">项目名称</td>
10
         <td class="table-title">项目名称</td>
14
       </tr>
14
       </tr>
15
       <tr>
15
       <tr>
16
         <td class="table-title">姓名</td>
16
         <td class="table-title">姓名</td>
17
-        <td style="text-align:left;padding-left:10px;">{{ user.nickName }}</td>
17
+        <td style="text-align:left;padding-left:10px;">{{ tableForm.nickName }}</td>
18
         <td class="table-title">考核年度</td>
18
         <td class="table-title">考核年度</td>
19
-        <td></td>
19
+        <td> {{ tableForm.assessTime }}</td>
20
         <td colspan="3" class="table-title">部门负责人考核意见</td>
20
         <td colspan="3" class="table-title">部门负责人考核意见</td>
21
         <td colspan="3" class="table-title">分管领导考核意见</td>
21
         <td colspan="3" class="table-title">分管领导考核意见</td>
22
       </tr>
22
       </tr>
23
       <tr>
23
       <tr>
24
         <td class="table-title">所在部门</td>
24
         <td class="table-title">所在部门</td>
25
-        <td colspan="3" style="text-align:left;padding-left:10px;">{{ user.dept ? user.dept.deptName : "" }}</td>
25
+        <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.deptName }}</td>
26
         <td colspan="3">
26
         <td colspan="3">
27
           <el-radio-group v-model="tableForm.deptAssessment" :disabled="!isDeptLeader">
27
           <el-radio-group v-model="tableForm.deptAssessment" :disabled="!isDeptLeader">
28
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
28
             <el-radio v-for="dict in dict.type.cmc_accessment" :key="dict.value" :label="dict.value">
40
       </tr>
40
       </tr>
41
       <tr>
41
       <tr>
42
         <td class="table-title">部门职务</td>
42
         <td class="table-title">部门职务</td>
43
-        <td colspan="3" style="text-align:left;padding-left:10px;">{{ user.postGroup }}</td>
43
+        <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.postGroup }}</td>
44
         <td colspan="3" rowspan="5">
44
         <td colspan="3" rowspan="5">
45
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.deptAdvice" :disabled="!isDeptLeader">
45
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.deptAdvice" :disabled="!isDeptLeader">
46
           </el-input>
46
           </el-input>
47
-          <el-row justify="center">
48
-            <el-col :span="12">考核人:</el-col>
49
-            <el-col :span="12">日期:</el-col>
47
+          <el-row justify="center" type="flex">
48
+            <el-col :span="12">考核人:<el-input v-model="tableForm.deptAssesser" style="width:150px;" placeholder="请输入考核人" :disabled="!isDeptLeader"></el-input> </el-col>
49
+            <el-col :span="12">日期:<el-date-picker type="date"  placeholder="请选择考核日期" v-model="tableForm.deptTime" style="width:150px;" :disabled="!isDeptLeader"></el-date-picker> </el-col>
50
           </el-row>
50
           </el-row>
51
         </td>
51
         </td>
52
         <td colspan="3" rowspan="5">
52
         <td colspan="3" rowspan="5">
53
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.managerAdvice" :disabled="!isManager">
53
           <el-input type="textarea" :rows="4" placeholder="请输入考核意见" v-model="tableForm.managerAdvice" :disabled="!isManager">
54
           </el-input>
54
           </el-input>
55
           <el-row justify="center">
55
           <el-row justify="center">
56
-            <el-col :span="12">考核人:</el-col>
57
-            <el-col :span="12">日期:</el-col>
56
+            <el-col :span="12">考核人:<el-input v-model="tableForm.managerAssesser" style="width:150px;" placeholder="请输入考核人" :disabled="!isManager"></el-input></el-col>
57
+            <el-col :span="12">日期:<el-date-picker type="date"  placeholder="请选择考核日期" v-model="tableForm.managerTime" style="width:150px;" :disabled="!isManager"></el-date-picker></el-col>
58
           </el-row>
58
           </el-row>
59
         </td>
59
         </td>
60
       </tr>
60
       </tr>
61
       <tr>
61
       <tr>
62
         <td class="table-title">项目经理</td>
62
         <td class="table-title">项目经理</td>
63
-        <td colspan="3" style="text-align:left;padding-left:10px;">{{ user.pmLevel }}</td>
63
+        <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.pmLevel }}</td>
64
       </tr>
64
       </tr>
65
       <tr>
65
       <tr>
66
         <td class="table-title">技术职称</td>
66
         <td class="table-title">技术职称</td>
67
-        <td colspan="3" style="text-align:left;padding-left:10px;">{{ user.titles }}</td>
67
+        <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.titles }}</td>
68
       </tr>
68
       </tr>
69
       <tr>
69
       <tr>
70
         <td class="table-title">作业类别</td>
70
         <td class="table-title">作业类别</td>
71
-        <td colspan="3" style="text-align:left;padding-left:10px;">{{ user.remark }}</td>
71
+        <td colspan="3" style="text-align:left;padding-left:10px;">{{ tableForm.remark }}</td>
72
       </tr>
72
       </tr>
73
       <tr>
73
       <tr>
74
         <td class="table-title">入职年月</td>
74
         <td class="table-title">入职年月</td>
75
-        <td style="text-align:left;padding-left:10px;">{{ user.entryDate }}</td>
75
+        <td style="text-align:left;padding-left:10px;">{{ tableForm.entryDate }}</td>
76
         <td class="table-title">年龄</td>
76
         <td class="table-title">年龄</td>
77
-        <td style="text-align:left;padding-left:10px;">{{ user.age }}</td>
77
+        <td style="text-align:left;padding-left:10px;">{{ tableForm.age }}</td>
78
       </tr>
78
       </tr>
79
       <tr>
79
       <tr>
80
         <td rowspan="2" class="table-title">考核内容</td>
80
         <td rowspan="2" class="table-title">考核内容</td>
1522
       </tr>
1522
       </tr>
1523
       <tr style="height:90px;">
1523
       <tr style="height:90px;">
1524
         <td>其他工作</td>
1524
         <td>其他工作</td>
1525
-        <td colspan="9">{{ tableForm.otherWork }}</td>
1525
+        <td colspan="9">
1526
+          <span v-if="!isStaff">{{ tableForm.otherWork }}</span>
1527
+          <el-input v-if="isStaff" v-model="tableForm.otherWork" type="textarea" :rows="2"></el-input>
1528
+        </td>
1526
       </tr>
1529
       </tr>
1527
       <tr style="height:90px;">
1530
       <tr style="height:90px;">
1528
         <td>年度自述</td>
1531
         <td>年度自述</td>
1529
-        <td colspan="9">{{ tableForm.selfAssess }}</td>
1532
+        <td colspan="9">
1533
+          <span v-if="!isStaff">{{ tableForm.selfAssess }}</span>
1534
+          <el-input v-if="isStaff" v-model="tableForm.selfAssess" type="textarea" :rows="2"></el-input>
1535
+        </td>
1530
       </tr>
1536
       </tr>
1531
     </table>
1537
     </table>
1532
     <el-row justify="center" type="flex" style="margin-top:20px;"
1538
     <el-row justify="center" type="flex" style="margin-top:20px;"
1540
 <script>
1546
 <script>
1541
 import { SCContent } from '@/assets/datas/SCContent'
1547
 import { SCContent } from '@/assets/datas/SCContent'
1542
 import { getDicts as getDicts } from '@/api/system/dict/data'
1548
 import { getDicts as getDicts } from '@/api/system/dict/data'
1543
-import { getUserProfile } from '../../../api/system/user'
1544
 export default {
1549
 export default {
1545
   dicts: ['cmc_role', 'cmc_skill', 'cmc_accessment'],
1550
   dicts: ['cmc_role', 'cmc_skill', 'cmc_accessment'],
1546
   props: {
1551
   props: {
1565
       isPiLeader: false,
1570
       isPiLeader: false,
1566
       isManager: false,
1571
       isManager: false,
1567
       isStaff: false,
1572
       isStaff: false,
1568
-      user: {}
1569
     }
1573
     }
1570
   },
1574
   },
1571
   created() {
1575
   created() {
1572
     this.initForm();
1576
     this.initForm();
1573
-    this.getUseInfo();
1574
   },
1577
   },
1575
   mounted() {
1578
   mounted() {
1576
     this.formatForm();
1579
     this.formatForm();
1577
   },
1580
   },
1578
   methods: {
1581
   methods: {
1579
-    getUseInfo() {
1580
-      getUserProfile().then(res => {
1581
-        console.log(res);
1582
-        if (res.data) {
1583
-          this.user = res.data;
1584
-          this.user.postGroup = res.postGroup
1585
-        }
1586
-      })
1587
-    },
1588
     initForm() {
1582
     initForm() {
1589
       for (let i = 0; i < SCContent.length + 1; i++) {
1583
       for (let i = 0; i < SCContent.length + 1; i++) {
1590
         if (i.toString().length == 1) {
1584
         if (i.toString().length == 1) {
1658
         if (this.tableForm[name] !== undefined)
1652
         if (this.tableForm[name] !== undefined)
1659
           this.tableForm[name] = value
1653
           this.tableForm[name] = value
1660
       }
1654
       }
1661
-    },
1662
-    addDoubleClickEvent() {
1663
-      document.querySelector('.personInput').addEventListener('dblclick', this.handleDoubleClickEvent)
1664
-    },
1665
-    handleDoubleClickEvent(e) {
1666
-      const input = document.createElement("input");
1667
-      input.type = "text";
1668
-      e.target.append(input);
1669
-      input.style.display = "block";
1670
-      input.value = e.target.innerText;
1671
-      input.focus();
1672
-      input.addEventListener("keyup", function (ev) {
1673
-        if (ev.key === "Enter") {
1674
-          e.target.innerText = input.value;
1675
-          input.style.display = "none";
1676
-        }
1677
-      });
1678
-      input.addEventListener("blur", function (e) {
1679
-        e.target.innerText = input.value;
1680
-        input.style.display = "none";
1681
-      });
1682
-    },
1683
-    removeDoubleClickEvent() {
1684
-      let dom = document.querySelector('.personInput')
1685
-      if (dom.removeEventListener)
1686
-        dom.removeEventListener('dblclick', this.handleDoubleClickEvent)
1687
-
1688
     }
1655
     }
1689
   },
1656
   },
1690
 }
1657
 }

+ 30
- 2
oa-ui/src/views/flowable/task/finished/detail/index.vue View File

7
       </div>
7
       </div>
8
       <el-tabs  tab-position="top" v-model="activeName" @tab-click="handleClick">
8
       <el-tabs  tab-position="top" v-model="activeName" @tab-click="handleClick">
9
         <!--表单信息-->
9
         <!--表单信息-->
10
-        <el-tab-pane label="表单信息" name="1">
10
+        <!-- <el-tab-pane label="表单信息" name="1">
11
           <el-col :span="16" :offset="4" v-if="variableOpen">
11
           <el-col :span="16" :offset="4" v-if="variableOpen">
12
             <div class="test-form">
12
             <div class="test-form">
13
               <parser :key="new Date().getTime()" :form-conf="variablesData" />
13
               <parser :key="new Date().getTime()" :form-conf="variablesData" />
14
             </div>
14
             </div>
15
           </el-col>
15
           </el-col>
16
+        </el-tab-pane> -->
17
+        <el-tab-pane label="表单信息" name="1">
18
+          <ScTable :tableForm="tableForm"></ScTable>
16
         </el-tab-pane>
19
         </el-tab-pane>
17
         <!--流程流转记录-->
20
         <!--流程流转记录-->
18
         <el-tab-pane label="流转记录" name="2">
21
         <el-tab-pane label="流转记录" name="2">
74
 import {getProcessVariables, flowXmlAndNode} from "@/api/flowable/definition";
77
 import {getProcessVariables, flowXmlAndNode} from "@/api/flowable/definition";
75
 import flow from '@/views/flowable/task/finished/detail/flow'
78
 import flow from '@/views/flowable/task/finished/detail/flow'
76
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
79
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
80
+import ScTable from "../../../form/scTable.vue";
81
+import { getAssess, modifyAssess } from '@/api/oa/assess/assess'
77
 
82
 
78
 export default {
83
 export default {
79
   name: "Record",
84
   name: "Record",
80
   components: {
85
   components: {
81
     Parser,
86
     Parser,
82
     flow,
87
     flow,
83
-  },
88
+    ScTable
89
+},
84
   props: {},
90
   props: {},
85
   data() {
91
   data() {
86
     return {
92
     return {
116
       variables: [], // 流程变量数据
122
       variables: [], // 流程变量数据
117
       variablesData: {}, // 流程变量数据
123
       variablesData: {}, // 流程变量数据
118
       variableOpen: false, // 是否加载流程变量数据
124
       variableOpen: false, // 是否加载流程变量数据
125
+      // 表单信息
126
+      tableForm: {}
119
     };
127
     };
120
   },
128
   },
121
   created() {
129
   created() {
122
     this.taskForm.deployId = this.$route.query && this.$route.query.deployId;
130
     this.taskForm.deployId = this.$route.query && this.$route.query.deployId;
123
     this.taskForm.taskId  = this.$route.query && this.$route.query.taskId;
131
     this.taskForm.taskId  = this.$route.query && this.$route.query.taskId;
124
     this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId;
132
     this.taskForm.procInsId = this.$route.query && this.$route.query.procInsId;
133
+    this.taskForm.formId = this.$route.query.formId;
125
     // 回显流程记录
134
     // 回显流程记录
126
     // 流程任务重获取变量表单
135
     // 流程任务重获取变量表单
127
     if (this.taskForm.taskId){
136
     if (this.taskForm.taskId){
128
       this.processVariables( this.taskForm.taskId)
137
       this.processVariables( this.taskForm.taskId)
138
+      this.getAssessByAssessId(this.taskForm.formId)
129
     }
139
     }
130
     this.getFlowRecordList( this.taskForm.procInsId, this.taskForm.deployId);
140
     this.getFlowRecordList( this.taskForm.procInsId, this.taskForm.deployId);
141
+    
131
   },
142
   },
132
   methods: {
143
   methods: {
133
     handleClick(tab, event) {
144
     handleClick(tab, event) {
177
       const obj = { path: "/task/finished", query: { t: Date.now()} };
188
       const obj = { path: "/task/finished", query: { t: Date.now()} };
178
       this.$tab.closeOpenPage(obj);
189
       this.$tab.closeOpenPage(obj);
179
     },
190
     },
191
+    // 获取需要处理的表单表格信息
192
+    getAssessByAssessId(formId) {
193
+      getAssess(formId).then(res => {
194
+        let data = res.data;
195
+        for (let d in data) {
196
+          if (d.includes('role')) {
197
+            data[d] = data[d].split(',')
198
+          }
199
+          if (d.includes('familiar')) {
200
+            data[d] = parseInt(data[d])
201
+          }
202
+        }
203
+        this.tableForm = data;
204
+        this.tableForm.taskId = this.$route.query.taskId;
205
+        this.tableForm.taskName = this.$route.query.taskName;
206
+      })
207
+    },
180
   }
208
   }
181
 };
209
 };
182
 </script>
210
 </script>

+ 44
- 67
oa-ui/src/views/flowable/task/finished/index.vue View File

2
   <div class="app-container">
2
   <div class="app-container">
3
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
3
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
4
       <el-form-item label="名称" prop="name">
4
       <el-form-item label="名称" prop="name">
5
-        <el-input
6
-          v-model="queryParams.name"
7
-          placeholder="请输入名称"
8
-          clearable
9
-          size="small"
10
-          @keyup.enter.native="handleQuery"
11
-        />
5
+        <el-input v-model="queryParams.name" placeholder="请输入名称" clearable size="small"
6
+          @keyup.enter.native="handleQuery" />
12
       </el-form-item>
7
       </el-form-item>
13
       <el-form-item label="开始时间" prop="deployTime">
8
       <el-form-item label="开始时间" prop="deployTime">
14
-        <el-date-picker clearable size="small"
15
-                        v-model="queryParams.deployTime"
16
-                        type="date"
17
-                        value-format="yyyy-MM-dd"
18
-                        placeholder="选择时间">
9
+        <el-date-picker clearable size="small" v-model="queryParams.deployTime" type="date" value-format="yyyy-MM-dd"
10
+          placeholder="选择时间">
19
         </el-date-picker>
11
         </el-date-picker>
20
       </el-form-item>
12
       </el-form-item>
21
       <el-form-item>
13
       <el-form-item>
26
 
18
 
27
     <el-row :gutter="10" class="mb8">
19
     <el-row :gutter="10" class="mb8">
28
       <el-col :span="1.5">
20
       <el-col :span="1.5">
29
-        <el-button
30
-          type="danger"
31
-          plain
32
-          icon="el-icon-delete"
33
-          size="mini"
34
-          :disabled="multiple"
35
-          @click="handleDelete"
36
-          v-hasPermi="['system:deployment:remove']"
37
-        >删除</el-button>
21
+        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
22
+          v-hasPermi="['system:deployment:remove']">删除</el-button>
38
       </el-col>
23
       </el-col>
39
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
24
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
40
     </el-row>
25
     </el-row>
41
 
26
 
42
     <el-table v-loading="loading" :data="finishedList" border @selection-change="handleSelectionChange">
27
     <el-table v-loading="loading" :data="finishedList" border @selection-change="handleSelectionChange">
43
       <el-table-column type="selection" width="55" align="center" />
28
       <el-table-column type="selection" width="55" align="center" />
44
-      <el-table-column label="任务编号" align="center" prop="taskId" :show-overflow-tooltip="true"/>
45
-      <el-table-column label="流程名称" align="center" prop="procDefName" :show-overflow-tooltip="true"/>
29
+      <el-table-column label="任务编号" align="center" prop="taskId" :show-overflow-tooltip="true" />
30
+      <el-table-column label="流程名称" align="center" prop="procDefName" :show-overflow-tooltip="true" />
46
       <el-table-column label="任务节点" align="center" prop="taskName" />
31
       <el-table-column label="任务节点" align="center" prop="taskName" />
47
       <el-table-column label="流程发起人" align="center">
32
       <el-table-column label="流程发起人" align="center">
48
         <template slot-scope="scope">
33
         <template slot-scope="scope">
49
-          <label>{{scope.row.startUserName}} <el-tag type="info" size="mini">{{scope.row.startDeptName}}</el-tag></label>
34
+          <label>{{ scope.row.startUserName }} <el-tag type="info" size="mini">{{ scope.row.startDeptName }}</el-tag></label>
50
         </template>
35
         </template>
51
       </el-table-column>
36
       </el-table-column>
52
-      <el-table-column label="接收时间" align="center" prop="createTime" width="180"/>
53
-      <el-table-column label="审批时间" align="center" prop="finishTime" width="180"/>
54
-      <el-table-column label="耗时" align="center" prop="duration" width="180"/>
37
+      <el-table-column label="接收时间" align="center" prop="createTime" width="180" />
38
+      <el-table-column label="审批时间" align="center" prop="finishTime" width="180" />
39
+      <el-table-column label="耗时" align="center" prop="duration" width="180" />
55
       <el-table-column label="操作" width="150" fixed="right" class-name="small-padding fixed-width">
40
       <el-table-column label="操作" width="150" fixed="right" class-name="small-padding fixed-width">
56
         <template slot-scope="scope">
41
         <template slot-scope="scope">
57
-          <el-button
58
-            size="mini"
59
-            type="text"
60
-            icon="el-icon-tickets"
61
-            @click="handleFlowRecord(scope.row)"
62
-          >流转记录</el-button>
63
-           <el-button
64
-            size="mini"
65
-            type="text"
66
-            icon="el-icon-refresh-left"
67
-            @click="handleRevoke(scope.row)"
68
-          >撤回
42
+          <el-button size="mini" type="text" icon="el-icon-tickets" @click="handleFlowRecord(scope.row)">流转记录</el-button>
43
+          <el-button size="mini" type="text" icon="el-icon-refresh-left" @click="handleRevoke(scope.row)">撤回
69
           </el-button>
44
           </el-button>
70
         </template>
45
         </template>
71
       </el-table-column>
46
       </el-table-column>
72
     </el-table>
47
     </el-table>
73
 
48
 
74
-    <pagination
75
-      v-show="total>0"
76
-      :total="total"
77
-      :page.sync="queryParams.pageNum"
78
-      :limit.sync="queryParams.pageSize"
79
-      @pagination="getList"
80
-    />
49
+    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
50
+      @pagination="getList" />
81
   </div>
51
   </div>
82
 </template>
52
 </template>
83
 
53
 
84
 <script>
54
 <script>
85
 import { finishedList, getDeployment, delDeployment, addDeployment, updateDeployment, exportDeployment, revokeProcess } from "@/api/flowable/finished";
55
 import { finishedList, getDeployment, delDeployment, addDeployment, updateDeployment, exportDeployment, revokeProcess } from "@/api/flowable/finished";
86
-
56
+import { getProcessVariables } from "@/api/flowable/definition";
87
 export default {
57
 export default {
88
   name: "Deploy",
58
   name: "Deploy",
89
   components: {
59
   components: {
164
       };
134
       };
165
       this.resetForm("form");
135
       this.resetForm("form");
166
     },
136
     },
167
-    setIcon(val){
168
-      if (val){
137
+    setIcon(val) {
138
+      if (val) {
169
         return "el-icon-check";
139
         return "el-icon-check";
170
-      }else {
140
+      } else {
171
         return "el-icon-time";
141
         return "el-icon-time";
172
       }
142
       }
173
 
143
 
174
     },
144
     },
175
-    setColor(val){
176
-      if (val){
145
+    setColor(val) {
146
+      if (val) {
177
         return "#2bc418";
147
         return "#2bc418";
178
-      }else {
148
+      } else {
179
         return "#b3bdbb";
149
         return "#b3bdbb";
180
       }
150
       }
181
 
151
 
193
     // 多选框选中数据
163
     // 多选框选中数据
194
     handleSelectionChange(selection) {
164
     handleSelectionChange(selection) {
195
       this.ids = selection.map(item => item.id)
165
       this.ids = selection.map(item => item.id)
196
-      this.single = selection.length!==1
166
+      this.single = selection.length !== 1
197
       this.multiple = !selection.length
167
       this.multiple = !selection.length
198
     },
168
     },
199
     /** 新增按钮操作 */
169
     /** 新增按钮操作 */
203
       this.title = "添加流程定义";
173
       this.title = "添加流程定义";
204
     },
174
     },
205
     /** 流程流转记录 */
175
     /** 流程流转记录 */
206
-    handleFlowRecord(row){
207
-      this.$router.push({ path: '/flowable/task/finished/detail/index',
208
-        query: {
209
-          procInsId: row.procInsId,
210
-          deployId: row.deployId,
211
-          taskId: row.taskId,
212
-      }})
176
+    handleFlowRecord(row) {
177
+      console.log(row);
178
+
179
+      getProcessVariables(row.taskId).then(res => {
180
+        this.$router.push({
181
+          path: '/flowable/task/finished/detail/index',
182
+          query: {
183
+            procInsId: row.procInsId,
184
+            deployId: row.deployId,
185
+            taskId: row.taskId,
186
+            formId: res.data.formId
187
+          }
188
+        })
189
+      })
213
     },
190
     },
214
     /** 撤回任务 */
191
     /** 撤回任务 */
215
-    handleRevoke(row){
192
+    handleRevoke(row) {
216
       const params = {
193
       const params = {
217
         instanceId: row.procInsId
194
         instanceId: row.procInsId
218
       }
195
       }
219
-      revokeProcess(params).then( res => {
220
-       this.$modal.msgSuccess(res.msg);
196
+      revokeProcess(params).then(res => {
197
+        this.$modal.msgSuccess(res.msg);
221
         this.getList();
198
         this.getList();
222
       });
199
       });
223
     },
200
     },
258
         confirmButtonText: "确定",
235
         confirmButtonText: "确定",
259
         cancelButtonText: "取消",
236
         cancelButtonText: "取消",
260
         type: "warning"
237
         type: "warning"
261
-      }).then(function() {
238
+      }).then(function () {
262
         return delDeployment(ids);
239
         return delDeployment(ids);
263
       }).then(() => {
240
       }).then(() => {
264
         this.getList();
241
         this.getList();
265
-       this.$modal.msgSuccess("删除成功");
242
+        this.$modal.msgSuccess("删除成功");
266
       })
243
       })
267
     },
244
     },
268
     /** 导出按钮操作 */
245
     /** 导出按钮操作 */
272
         confirmButtonText: "确定",
249
         confirmButtonText: "确定",
273
         cancelButtonText: "取消",
250
         cancelButtonText: "取消",
274
         type: "warning"
251
         type: "warning"
275
-      }).then(function() {
252
+      }).then(function () {
276
         return exportDeployment(queryParams);
253
         return exportDeployment(queryParams);
277
       }).then(response => {
254
       }).then(response => {
278
         this.download(response.msg);
255
         this.download(response.msg);

+ 2
- 2
oa-ui/src/views/flowable/task/myProcess/index.vue View File

33
       <el-table-column label="流程编号" align="center" prop="procInsId" :show-overflow-tooltip="true" />
33
       <el-table-column label="流程编号" align="center" prop="procInsId" :show-overflow-tooltip="true" />
34
       <el-table-column label="流程名称" align="center" prop="procDefName" :show-overflow-tooltip="true" />
34
       <el-table-column label="流程名称" align="center" prop="procDefName" :show-overflow-tooltip="true" />
35
       <el-table-column label="流程类别" align="center" prop="category" width="100px" />
35
       <el-table-column label="流程类别" align="center" prop="category" width="100px" />
36
-      <el-table-column label="流程版本" align="center" width="80px">
36
+      <!-- <el-table-column label="流程版本" align="center" width="80px">
37
         <template slot-scope="scope">
37
         <template slot-scope="scope">
38
           <el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
38
           <el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
39
         </template>
39
         </template>
40
-      </el-table-column>
40
+      </el-table-column> -->
41
       <el-table-column label="提交时间" align="center" prop="createTime" width="180" />
41
       <el-table-column label="提交时间" align="center" prop="createTime" width="180" />
42
       <el-table-column label="流程状态" align="center" width="100">
42
       <el-table-column label="流程状态" align="center" width="100">
43
         <template slot-scope="scope">
43
         <template slot-scope="scope">

+ 1
- 1
oa-ui/src/views/flowable/task/record/index.vue View File

16
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">委派</el-button>-->
16
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">委派</el-button>-->
17
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign">转办</el-button>-->
17
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign">转办</el-button>-->
18
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">签收</el-button>-->
18
 <!--                <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">签收</el-button>-->
19
-            <el-button  icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
19
+            <!-- <el-button  icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button> -->
20
             <el-button  icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
20
             <el-button  icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
21
           </div>
21
           </div>
22
      </el-col>
22
      </el-col>

+ 2
- 21
oa-ui/src/views/flowable/task/todo/detail/index.vue View File

9
       </div>
9
       </div>
10
       <el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick">
10
       <el-tabs tab-position="top" v-model="activeName" @tab-click="handleClick">
11
         <!--表单信息-->
11
         <!--表单信息-->
12
-        <!-- <el-tab-pane label="表单信息" name="1">
13
-          <el-col :span="16" :offset="4">
14
-            <div class="test-form">
15
-                           <parser :key="new Date().getTime()" :form-conf="variablesData"/>
16
-              <parser :key="new Date().getTime()" :form-conf="variablesData" @submit="submitForm" ref="parser" />
17
-
18
-            </div>
19
-            <div style="margin-left:15%;margin-bottom: 20px;font-size: 14px;">
20
-              <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
21
-                @click="handleComplete">审批
22
-              </el-button>
23
-              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">委派</el-button>
24
-              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleAssign">转办</el-button>
25
-              <el-button  icon="el-icon-edit-outline" type="primary" size="mini" @click="handleDelegate">签收</el-button>
26
-              <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
27
-              <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
28
-            </div>
29
-          </el-col>
30
-        </el-tab-pane> -->
31
         <el-tab-pane label="表单信息" name="1">
12
         <el-tab-pane label="表单信息" name="1">
32
           <ScTable :tableForm="tableForm" @submit="handleComplete"></ScTable>
13
           <ScTable :tableForm="tableForm" @submit="handleComplete"></ScTable>
33
           <el-row type="flex" justify="center" v-if="taskName != '员工修改'">
14
           <el-row type="flex" justify="center" v-if="taskName != '员工修改'">
34
             <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
15
             <el-button v-if="!formKeyExist" icon="el-icon-edit-outline" type="success" size="mini"
35
               @click="handleComplete">审核通过
16
               @click="handleComplete">审核通过
36
             </el-button>
17
             </el-button>
37
-            <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button>
18
+            <!-- <el-button icon="el-icon-refresh-left" type="warning" size="mini" @click="handleReturn">退回</el-button> -->
38
             <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
19
             <el-button icon="el-icon-circle-close" type="danger" size="mini" @click="handleReject">驳回</el-button>
39
           </el-row>
20
           </el-row>
40
         </el-tab-pane>
21
         </el-tab-pane>
515
             }
496
             }
516
           }
497
           }
517
           this.completeOpen = true;
498
           this.completeOpen = true;
518
-          this.completeTitle = "流程审批";
499
+          this.completeTitle = "选择下一节点审核人";
519
         })
500
         })
520
       });
501
       });
521
     },
502
     },

+ 2
- 2
oa-ui/src/views/flowable/task/todo/index.vue View File

30
       <el-table-column label="任务编号" align="center" prop="taskId" :show-overflow-tooltip="true" />
30
       <el-table-column label="任务编号" align="center" prop="taskId" :show-overflow-tooltip="true" />
31
       <el-table-column label="流程名称" align="center" prop="procDefName" />
31
       <el-table-column label="流程名称" align="center" prop="procDefName" />
32
       <el-table-column label="当前节点" align="center" prop="taskName" />
32
       <el-table-column label="当前节点" align="center" prop="taskName" />
33
-      <el-table-column label="流程版本" align="center">
33
+      <!-- <el-table-column label="流程版本" align="center">
34
         <template slot-scope="scope">
34
         <template slot-scope="scope">
35
           <el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
35
           <el-tag size="medium">v{{ scope.row.procDefVersion }}</el-tag>
36
         </template>
36
         </template>
37
-      </el-table-column>
37
+      </el-table-column> -->
38
       <el-table-column label="流程发起人" align="center">
38
       <el-table-column label="流程发起人" align="center">
39
         <template slot-scope="scope">
39
         <template slot-scope="scope">
40
           <label>{{ scope.row.startUserName }} <el-tag type="info" size="mini">{{ scope.row.startDeptName
40
           <label>{{ scope.row.startUserName }} <el-tag type="info" size="mini">{{ scope.row.startDeptName

+ 3
- 3
oa-ui/src/views/index.vue View File

2
  * @Author: ysh
2
  * @Author: ysh
3
  * @Date: 2024-01-03 09:23:11
3
  * @Date: 2024-01-03 09:23:11
4
  * @LastEditors: Please set LastEditors
4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-01-24 09:11:33
5
+ * @LastEditTime: 2024-02-05 14:56:35
6
 -->
6
 -->
7
 <template>
7
 <template>
8
   <div class="app-container home">
8
   <div class="app-container home">
11
       <div class="user-info">
11
       <div class="user-info">
12
         <el-row align="bottom" :gutter="40">
12
         <el-row align="bottom" :gutter="40">
13
           <el-col :span="4">
13
           <el-col :span="4">
14
-            <h3 style="font-weight: bold;text-align: right;font-size: 18px;"> {{ user.userName }},您好! </h3>
14
+            <h3 style="font-weight: bold;text-align: right;font-size: 18px;"> {{ user.nickName }},您好! </h3>
15
             <h2 style="text-align: right;font-size: 24px;font-weight: bold;"> {{ 10 }}℃ </h2>
15
             <h2 style="text-align: right;font-size: 24px;font-weight: bold;"> {{ 10 }}℃ </h2>
16
             <el-row style="font-size:12px;text-align: right;"> {{ "2024-01-22" }} {{ "星期一" }} </el-row>
16
             <el-row style="font-size:12px;text-align: right;"> {{ "2024-01-22" }} {{ "星期一" }} </el-row>
17
           </el-col>
17
           </el-col>
20
           </el-col>
20
           </el-col>
21
           <el-col :span="16">
21
           <el-col :span="16">
22
             <el-row style="font-size: 20px;font-weight: bold;margin-bottom: 20px;">
22
             <el-row style="font-size: 20px;font-weight: bold;margin-bottom: 20px;">
23
-              {{ user.userName }} <el-tag type="warning">{{ "高级工程师" }}</el-tag>
23
+              {{ user.nickName }} <el-tag type="warning">{{ "高级工程师" }}</el-tag>
24
             </el-row>
24
             </el-row>
25
             <el-row>
25
             <el-row>
26
               <el-col :span="4">
26
               <el-col :span="4">

Loading…
Cancel
Save