index.vue
11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<template>
<div class="app-container">
<el-input v-model="queryParams.name" placeholder="名称" style="width:200px;"></el-input>
<el-select v-model="queryParams.type" filterable reserve-keyword>
<el-option label="建筑垃圾许可证审批" value="workflow_constructsite"/>
<el-option label="消纳合同申报备案" value="workflow_conract"/>
<el-option label="处理场所备案" value="workflow_earthsites"/>
<el-option label="运输企业准入流程" value="workflow_company"/>
<el-option label="运输车辆准入流程" value="workflow_vehicle"/>
<el-option label="驾驶员信息审批" value="workflow_driver"/>
<el-option label="报工审批" value="workflow_threestep"/>
<el-option label="交办案卷" value="workflow_caseoffline"/>
<el-option label="预警信息" value="workflow_casefile"/>
<el-option label="预警提醒" value="violation_warning"/>
<el-option label="办文办事" value="handleAffairs"/>
<el-option label="后勤管理" value="logistics"/>
<el-option label="会议事务" value="conference"/>
<el-option label="假勤管理" value="workflow_leave"/>
<el-option label="纪检督察" value="supervision-gongdi,supervision_anjuan,supervision_company,supervision_xnc"/>
</el-select>
<el-button type="primary" size="mini" @click="queryParams.pageNum = 1;getList();">搜索</el-button>
<el-button size="mini" @click="resetQuery">重置</el-button>
<taskCard :task="task" v-for="task in taskList" @sendToParent="showTask"/>
<h5Page :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
<el-dialog :title="title" :visible.sync="open2" width="300px" append-to-body>
<threestepInfo :businessKey="businessKey" v-if="open2"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<el-dialog :title="title" :visible.sync="construct" width="300px" append-to-body>
<companyInfo :businessKey="businessKey" :businessType="2" :signData="signData" v-if="construct"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<!-- 会议管理 -->
<el-dialog :title="title" :visible.sync="conferenceOpen" width="300px" append-to-body>
<conferenceInfo :idInfo="idInfo" v-if="conferenceOpen"/>
</el-dialog>
<!-- 请假申请 -->
<el-dialog :title="title" :visible.sync="leaveApplicationOpen" width="300px" append-to-body>
<leaveApplicationInfo :idInfo="idInfo" v-if="leaveApplicationOpen"/>
</el-dialog>
<el-dialog :title="title" :visible.sync="earthsites" width="300px" append-to-body>
<companyInfo :businessKey="businessKey" :businessType="3" v-if="earthsites"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<el-dialog :title="title" :visible.sync="contract" width="300px" append-to-body>
<companyInfo :businessKey="businessKey" :businessType="4" v-if="contract"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<!-- 后勤管理 -->
<el-dialog :title="title" :visible.sync="logisticsInfoOpen" width="300px" append-to-body
:close-on-click-modal="false">
<logisticsInfo :idInfo="idInfo" v-if="logisticsInfoOpen"/>
</el-dialog>
<!-- 办文办事 -->
<el-dialog :title="title" :visible.sync="handleAffairsInfoOpen" width="300px" append-to-body
:close-on-click-modal="false">
<handleInfo ref="handleAffairsInfoRef" :idInfo="idInfo" v-if="handleAffairsInfoOpen" :depts="depts"
:businessKey="definitionKey"
:controlId="controlId"/>
</el-dialog>
<!-- 线下案卷交办 -->
<el-dialog :title="title" :visible.sync="caseOffline" width="300px" append-to-body :close-on-click-modal="false">
<caseOfflineInfo :businessKey="businessKey" v-if="caseOffline"/>
</el-dialog>
<!-- 平台违规信息 -->
<el-dialog :title="title" :visible.sync="violationCaseFile" width="300px" append-to-body :close-on-click-modal="false">
<violationCaseFileInfo :idInfo="businessKey" v-if="violationCaseFile" :entryType="0"/>
</el-dialog>
<!-- 违规预警信息 -->
<el-dialog :title="title" :visible.sync="violationCaseFile1" width="300px" append-to-body :close-on-click-modal="false">
<violationWarningInformationInfo :idInfo="businessKey" v-if="violationCaseFile1" :entryType="0"/>
</el-dialog>
<el-dialog :title="title" :visible.sync="supervisionOpen" width="300px" append-to-body :close-on-click-modal="false">
<supervisionInfo :infoData="supervisionData"/>
</el-dialog>
<el-dialog :title="title" :visible.sync="company" width="300px" append-to-body :close-on-click-modal="false">
<companyInfo :businessKey="businessKey" :businessType="0" v-if="company"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<el-dialog :title="title" :visible.sync="vehicle" width="300px" append-to-body :close-on-click-modal="false">
<companyInfo :businessKey="businessKey" :businessType="1" v-if="vehicle"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
<el-dialog :title="title" :visible.sync="driver" width="300px" append-to-body :close-on-click-modal="false">
<companyInfo :businessKey="businessKey" :businessType="5" v-if="driver"/>
<el-table :data="hisfromData" v-if="hisfromData != null">
<el-table-column label="处理意见" align="center" prop="controlValue"/>
<el-table-column label="处理人" align="center" prop="createName"/>
<el-table-column label="处理时间" align="center" prop="createTime"/>
</el-table>
</el-dialog>
</div>
</template>
<script>
import {
listEndTask,
listTask,
formDataShow
} from "@/api/activiti/taskhistory";
import Treeselect from "@riophae/vue-treeselect";
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import { getSignByObjId, addSign, updateSign } from "@/api/sign/sign";
import h5Page from '@/views/h5/Pagination';
import threestepInfo from "@/views/h5/task/threestepInfo";
import taskCard from "@/views/h5/task/taskCard";
import conferenceInfo from "@/views/h5/task/conferenceInfo";
import leaveApplicationInfo from "@/views/h5/leaveApplication/leaveApplicationInfo";
import constructsiteInfo from "@/views/h5/task/constructsiteInfo";
import earthsitesInfo from "@/views/h5/task/earthsitesInfo";
import contractInfo from "@/views/h5/task/contractInfo";
import logisticsInfo from "@/views/h5/task/logisticsInfo";
import handleInfo from "@/views/h5/task/handleInfo";
import caseOfflineInfo from "@/views/h5/caseOffline/caseOfflineInfo";
import violationCaseFileInfo from "@/views/h5/task/violationCaseFileInfo";
import violationWarningInformationInfo from "@/views/h5/task/violationWarningInformationInfo";
import supervisionInfo from "@/views/h5/task/SupervisionInfo";
import companyInfo from "@/views/h5/task/companyInfo";
import driverInfo from "@/views/activiti/task/driverInfo";
import vehicleInfo from "@/views/activiti/task/vehicleInfo";
import taskhismethod from '@/api/taskhismethod'
import {
getArea,
getDict,
getUsers,
getSupervision
} from "@/api/dict";
export default {
name: "taskHistory",
mixins: [taskhismethod],
props: {
type: {
type: Number
}
},
components: {
taskCard,
threestepInfo,
conferenceInfo,
leaveApplicationInfo,
logisticsInfo,
handleInfo,
constructsiteInfo,
Treeselect,
earthsitesInfo,
contractInfo,
caseOfflineInfo,
violationCaseFileInfo,
h5Page,
violationWarningInformationInfo,
supervisionInfo,
companyInfo,
driverInfo,
vehicleInfo
},
data() {
return {
id: '',
definitionKey: '',
businessKey: '',
// 遮罩层
loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 请假表格数据
taskList: [],
// 弹出层标题
title: "",
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
},
// 表单参数
form: {
formData: []
},
needShow:false,
// 表单校验
rules: {},
uploadImageDialog: false,
idInfo:null,
signData:null,
supervisionData: null,
// 是否显示弹出层
earthsites: false,
contract: false,
logisticsInfoOpen: false,
handleAffairsInfoOpen: false,
caseOffline: false,
violationCaseFile: false,
violationCaseFile1: false,
supervisionOpen: false,
open: false,
open2: false,
conferenceOpen: false,
construct: false,
leaveApplicationOpen: false,
company:false,
driver:false,
vehicle:false,
hisfromData:[],
};
},
created() {
let dep = {type: "CSUserDepartmentType"};
getDict(dep).then(res => {
this.depts = res.result;
});
let role = {type: "CSUserPostType"};
getDict(role).then(res => {
this.roles = res.result;
});
this.getList();
},
methods: {
}
};
</script>
<style>
@import '../../../assets/css/task.css'
</style>
<style scope>
.el-select-dropdown__item{
width:300px;
}
</style>