eoss-ui 0.6.64 → 0.6.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/lib/calogin.js +208 -208
  2. package/lib/eoss-ui.common.js +1225 -948
  3. package/lib/flow-list.js +178 -150
  4. package/lib/flow.js +548 -323
  5. package/lib/index.js +1 -1
  6. package/lib/login.js +128 -104
  7. package/lib/main.js +132 -132
  8. package/lib/qr-code.js +13 -13
  9. package/lib/theme-chalk/index.css +1 -1
  10. package/lib/theme-chalk/login.css +1 -1
  11. package/package.json +160 -160
  12. package/packages/button/index.js +5 -5
  13. package/packages/button/src/main.vue +418 -418
  14. package/packages/button-group/index.js +5 -5
  15. package/packages/button-group/src/main.vue +298 -298
  16. package/packages/calendar/index.js +5 -5
  17. package/packages/calogin/index.js +5 -5
  18. package/packages/calogin/src/main.vue +131 -131
  19. package/packages/calogin/src/plugin.js +748 -748
  20. package/packages/card/index.js +5 -5
  21. package/packages/card/src/main.vue +156 -156
  22. package/packages/cascader/index.js +5 -5
  23. package/packages/cascader/src/main.vue +168 -168
  24. package/packages/checkbox-group/index.js +5 -5
  25. package/packages/checkbox-group/src/main.vue +333 -333
  26. package/packages/clients/index.js +5 -5
  27. package/packages/clients/src/main.vue +151 -151
  28. package/packages/data-table/index.js +5 -5
  29. package/packages/data-table/src/children.vue +39 -39
  30. package/packages/data-table/src/column.vue +989 -989
  31. package/packages/data-table/src/main.vue +1822 -1822
  32. package/packages/data-table/src/sizer.vue +195 -195
  33. package/packages/data-table-form/index.js +5 -5
  34. package/packages/data-table-form/src/checkbox.vue +101 -101
  35. package/packages/data-table-form/src/colgroup.vue +17 -17
  36. package/packages/data-table-form/src/main.vue +181 -181
  37. package/packages/data-table-form/src/radio.vue +65 -65
  38. package/packages/data-table-form/src/table.vue +233 -233
  39. package/packages/data-table-form/src/tbody.vue +336 -336
  40. package/packages/data-table-form/src/thead.vue +68 -68
  41. package/packages/date-picker/index.js +5 -5
  42. package/packages/date-picker/src/main.vue +236 -236
  43. package/packages/dialog/index.js +5 -5
  44. package/packages/enable-drag/index.js +5 -5
  45. package/packages/enterprise/index.js +5 -5
  46. package/packages/enterprise/src/main.vue +66 -66
  47. package/packages/error-page/index.js +5 -5
  48. package/packages/error-page/src/main.vue +44 -44
  49. package/packages/flow/index.js +5 -5
  50. package/packages/flow/src/component/Circulate.vue +332 -322
  51. package/packages/flow/src/component/CommonOpinions.vue +346 -346
  52. package/packages/flow/src/component/CustomPreset.vue +322 -322
  53. package/packages/flow/src/component/FileList.vue +99 -99
  54. package/packages/flow/src/component/Preset.vue +255 -255
  55. package/packages/flow/src/component/SendMsg.vue +241 -241
  56. package/packages/flow/src/component/TimeLimit.vue +190 -190
  57. package/packages/flow/src/component/taskUnionExamine.vue +619 -619
  58. package/packages/flow/src/form.vue +121 -121
  59. package/packages/flow/src/freeStartFlow.vue +2843 -2843
  60. package/packages/flow/src/main.vue +3359 -3275
  61. package/packages/flow/src/processForm.vue +1091 -1091
  62. package/packages/flow/src/processReject.vue +294 -294
  63. package/packages/flow/src/reset.vue +900 -900
  64. package/packages/flow/src/startTaskRead.vue +659 -659
  65. package/packages/flow/src/supervise.vue +149 -149
  66. package/packages/flow/src/table.vue +58 -58
  67. package/packages/flow-group/index.js +5 -5
  68. package/packages/flow-group/src/main.vue +688 -688
  69. package/packages/flow-list/index.js +5 -5
  70. package/packages/flow-list/src/main.vue +1750 -1724
  71. package/packages/form/index.js +5 -5
  72. package/packages/form/src/main.vue +3581 -3581
  73. package/packages/form/src/table.vue +1426 -1426
  74. package/packages/handle-user/index.js +5 -5
  75. package/packages/handle-user/src/main.vue +138 -138
  76. package/packages/handler/index.js +5 -5
  77. package/packages/handler/src/main.vue +493 -493
  78. package/packages/icon/index.js +5 -5
  79. package/packages/icon/src/main.vue +101 -101
  80. package/packages/icons/index.js +5 -5
  81. package/packages/icons/src/main.vue +81 -81
  82. package/packages/input/index.js +5 -5
  83. package/packages/input/src/main.vue +356 -356
  84. package/packages/input-number/index.js +5 -5
  85. package/packages/input-number/src/main.vue +106 -106
  86. package/packages/label/index.js +5 -5
  87. package/packages/label/src/main.vue +457 -457
  88. package/packages/layout/index.js +5 -5
  89. package/packages/layout/src/item.vue +152 -152
  90. package/packages/layout/src/main.vue +31 -31
  91. package/packages/login/index.js +5 -5
  92. package/packages/login/src/main.vue +1988 -1976
  93. package/packages/login/src/resetPassword.vue +562 -562
  94. package/packages/main/index.js +5 -5
  95. package/packages/main/src/default/message.vue +249 -249
  96. package/packages/main/src/default/notice.vue +157 -157
  97. package/packages/main/src/default/userinfo.vue +503 -503
  98. package/packages/main/src/public/online.vue +89 -89
  99. package/packages/main/src/public/search.vue +462 -462
  100. package/packages/main/src/public/settings.vue +221 -221
  101. package/packages/main/src/simplicity/apps.vue +388 -388
  102. package/packages/main/src/simplicity/avatar.vue +83 -83
  103. package/packages/main/src/simplicity/handler.vue +259 -259
  104. package/packages/main/src/simplicity/index.vue +2089 -2089
  105. package/packages/main/src/simplicity/lists.vue +84 -84
  106. package/packages/main/src/simplicity/menu-list.vue +135 -135
  107. package/packages/main/src/simplicity/message.vue +259 -259
  108. package/packages/main/src/simplicity/notice.vue +190 -190
  109. package/packages/main/src/simplicity/router-page.vue +45 -45
  110. package/packages/main/src/simplicity/sub-menu.vue +264 -264
  111. package/packages/main/src/simplicity/user.vue +257 -257
  112. package/packages/main/src/simplicity/userinfo.vue +312 -312
  113. package/packages/menu/index.js +5 -5
  114. package/packages/menu/src/main.vue +584 -584
  115. package/packages/nav/index.js +5 -5
  116. package/packages/nav/src/main.vue +351 -351
  117. package/packages/notify/index.js +5 -5
  118. package/packages/notify/src/main.vue +538 -538
  119. package/packages/page/index.js +5 -5
  120. package/packages/page/src/main.vue +167 -167
  121. package/packages/pagination/index.js +5 -5
  122. package/packages/pagination/src/main.vue +96 -96
  123. package/packages/player/index.js +5 -5
  124. package/packages/player/src/main.vue +194 -194
  125. package/packages/qr-code/index.js +5 -5
  126. package/packages/qr-code/src/main.vue +170 -170
  127. package/packages/radio-group/index.js +6 -6
  128. package/packages/radio-group/src/main.vue +319 -319
  129. package/packages/retrial-auth/index.js +5 -5
  130. package/packages/retrial-auth/src/main.vue +280 -280
  131. package/packages/select/index.js +5 -5
  132. package/packages/select/src/main.vue +778 -778
  133. package/packages/select-ganged/index.js +5 -5
  134. package/packages/select-ganged/src/main.vue +724 -724
  135. package/packages/selector/index.js +5 -5
  136. package/packages/selector/src/main.vue +687 -687
  137. package/packages/selector-panel/index.js +5 -5
  138. package/packages/selector-panel/src/main.vue +1027 -1027
  139. package/packages/selector-panel/src/selection.vue +177 -177
  140. package/packages/selector-panel/src/tree.vue +129 -129
  141. package/packages/sizer/index.js +5 -5
  142. package/packages/sizer/src/main.vue +254 -254
  143. package/packages/steps/index.js +5 -5
  144. package/packages/steps/src/main.vue +181 -181
  145. package/packages/switch/index.js +5 -5
  146. package/packages/switch/src/main.vue +154 -154
  147. package/packages/table-form/index.js +5 -5
  148. package/packages/tabs/index.js +5 -5
  149. package/packages/tabs/src/main.vue +788 -788
  150. package/packages/tabs-panel/index.js +5 -5
  151. package/packages/tabs-panel/src/main.vue +29 -29
  152. package/packages/theme-chalk/lib/index.css +1 -1
  153. package/packages/theme-chalk/lib/login.css +1 -1
  154. package/packages/theme-chalk/src/base.scss +261 -261
  155. package/packages/theme-chalk/src/button-group.scss +176 -176
  156. package/packages/theme-chalk/src/button.scss +24 -24
  157. package/packages/theme-chalk/src/calendar.scss +113 -113
  158. package/packages/theme-chalk/src/card.scss +99 -99
  159. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  160. package/packages/theme-chalk/src/clients.scss +87 -87
  161. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  162. package/packages/theme-chalk/src/data-table.scss +293 -293
  163. package/packages/theme-chalk/src/date-picker.scss +7 -7
  164. package/packages/theme-chalk/src/dialog.scss +77 -77
  165. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  166. package/packages/theme-chalk/src/enterprise.scss +5 -5
  167. package/packages/theme-chalk/src/error-page.scss +18 -18
  168. package/packages/theme-chalk/src/flow-group.scss +110 -110
  169. package/packages/theme-chalk/src/flow-list.scss +39 -39
  170. package/packages/theme-chalk/src/flow.scss +343 -343
  171. package/packages/theme-chalk/src/form.scss +496 -496
  172. package/packages/theme-chalk/src/handle-user.scss +40 -40
  173. package/packages/theme-chalk/src/handler.scss +143 -143
  174. package/packages/theme-chalk/src/icon.scss +1792 -1792
  175. package/packages/theme-chalk/src/icons.scss +99 -99
  176. package/packages/theme-chalk/src/input.scss +9 -9
  177. package/packages/theme-chalk/src/label.scss +24 -24
  178. package/packages/theme-chalk/src/layout.scss +46 -46
  179. package/packages/theme-chalk/src/login.scss +981 -981
  180. package/packages/theme-chalk/src/main.scss +663 -663
  181. package/packages/theme-chalk/src/menu.scss +222 -222
  182. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  183. package/packages/theme-chalk/src/nav.scss +111 -111
  184. package/packages/theme-chalk/src/page.scss +3 -3
  185. package/packages/theme-chalk/src/pagination.scss +29 -29
  186. package/packages/theme-chalk/src/player.scss +9 -9
  187. package/packages/theme-chalk/src/qr-code.scss +17 -17
  188. package/packages/theme-chalk/src/radio-group.scss +9 -9
  189. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  190. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  191. package/packages/theme-chalk/src/select.scss +8 -8
  192. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  193. package/packages/theme-chalk/src/selector.scss +91 -91
  194. package/packages/theme-chalk/src/simplicity.scss +1355 -1355
  195. package/packages/theme-chalk/src/sizer.scss +36 -36
  196. package/packages/theme-chalk/src/steps.scss +88 -88
  197. package/packages/theme-chalk/src/switch.scss +3 -3
  198. package/packages/theme-chalk/src/table-form.scss +1 -1
  199. package/packages/theme-chalk/src/tabs.scss +87 -87
  200. package/packages/theme-chalk/src/tips.scss +7 -7
  201. package/packages/theme-chalk/src/toolbar.scss +179 -179
  202. package/packages/theme-chalk/src/tree-group.scss +72 -72
  203. package/packages/theme-chalk/src/tree.scss +165 -165
  204. package/packages/theme-chalk/src/upload.scss +168 -168
  205. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  206. package/packages/tips/index.js +5 -5
  207. package/packages/tips/src/main.vue +141 -141
  208. package/packages/toolbar/index.js +5 -5
  209. package/packages/toolbar/src/main.vue +430 -430
  210. package/packages/tree/index.js +5 -5
  211. package/packages/tree-group/index.js +5 -5
  212. package/packages/upload/index.js +5 -5
  213. package/packages/upload/src/main.vue +1347 -1347
  214. package/packages/upload/src/picture.js +15 -15
  215. package/packages/wujie/index.js +5 -5
  216. package/packages/wujie/src/main.vue +145 -145
  217. package/packages/wxlogin/index.js +5 -5
  218. package/packages/wxlogin/src/main.vue +128 -128
  219. package/src/config/api.js +290 -290
  220. package/src/config/image.js +2 -2
  221. package/src/index.js +163 -163
  222. package/src/utils/bus.js +3 -3
  223. package/src/utils/date-util.js +312 -312
  224. package/src/utils/http.js +50 -50
  225. package/src/utils/rules.js +18 -18
  226. package/src/utils/store.js +21 -21
  227. package/src/utils/webSocket.js +107 -107
  228. package/lib/.DS_Store +0 -0
  229. package/packages/.DS_Store +0 -0
  230. package/packages/autocomplete/.DS_Store +0 -0
  231. package/packages/date-picker/.DS_Store +0 -0
  232. package/packages/date-picker/src/.DS_Store +0 -0
  233. package/packages/main/.DS_Store +0 -0
  234. package/packages/main/src/.DS_Store +0 -0
  235. package/packages/menu/.DS_Store +0 -0
  236. package/packages/scrollbar/.DS_Store +0 -0
  237. package/packages/select/.DS_Store +0 -0
  238. package/packages/theme-chalk/src/.DS_Store +0 -0
  239. package/packages/upload/.DS_Store +0 -0
  240. package/src/.DS_Store +0 -0
  241. package/src/utils/.DS_Store +0 -0
@@ -1,1724 +1,1750 @@
1
- <template>
2
- <div class="es-flow-list">
3
- <div
4
- class="es-flow-list-item"
5
- v-for="(item, index) in content"
6
- :key="index"
7
- v-show="
8
- (item.type == 'splitReading' &&
9
- splitReadingData &&
10
- splitReadingData.length > 0) ||
11
- (item.type == 'preset' &&
12
- presetData &&
13
- presetData.length > 0 &&
14
- currentUserHasPresetInfoAuth) ||
15
- (item.type != 'splitReading' && item.type != 'preset')
16
- "
17
- >
18
- <div
19
- class="es-flow-list-box"
20
- :ref="item.type"
21
- :style="`position:${height == 'auto' ? 'unset' : 'absolute'}`"
22
- >
23
- <es-data-table
24
- v-if="show"
25
- :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
26
- :display="display"
27
- :numbers="numbers"
28
- @cell-click="handleCellClick"
29
- :full="height !== 'auto'"
30
- v-bind="item"
31
- :data="returnData(item.type)"
32
- @btn-click="handleBtnClick"
33
- @selection-change="handleSelectionChange"
34
- ></es-data-table>
35
- </div>
36
- </div>
37
- <es-dialog
38
- append-to-body
39
- :close-on-click-modal="false"
40
- title="查看附件"
41
- :visible.sync="showFileList"
42
- v-if="showFileList"
43
- >
44
- <FileList
45
- :ownId="wfpendingid"
46
- :code="flowTableInfo.adjunctCode"
47
- :deleted="false"
48
- :disabled="true"
49
- @cancel="showFileList = false"
50
- />
51
- </es-dialog>
52
- <es-dialog
53
- append-to-body
54
- :close-on-click-modal="false"
55
- title="查看催办记录"
56
- :visible.sync="showPress"
57
- height="500px"
58
- v-if="showPress"
59
- >
60
- <div style="height: 400px" v-loading="pressLoading">
61
- <es-data-table
62
- v-if="show"
63
- :data="pressTableList"
64
- :thead="pressThead"
65
- @page-size-change="handleSizeChange"
66
- @page-current-change="handleCurrentChange"
67
- stripe
68
- full
69
- style="width: 100%"
70
- @sort-change="sortChange"
71
- :page="pageInfo"
72
- />
73
- </div>
74
- </es-dialog>
75
- <es-dialog
76
- append-to-body
77
- :close-on-click-modal="false"
78
- title="删除"
79
- :visible.sync="showDel"
80
- height="auto"
81
- class="del-flow"
82
- v-if="showDel"
83
- >
84
- <es-form
85
- v-loading="delLoading"
86
- :model="formData"
87
- :contents="formItemList"
88
- @submit="handleFormSubmit"
89
- >
90
- </es-form>
91
- </es-dialog>
92
- </div>
93
- </template>
94
-
95
- <script>
96
- import {
97
- findCodeValues,
98
- deletePresetInfo,
99
- pendedhistoryListJson,
100
- toPresetInfoListIndex,
101
- pressListJson,
102
- pendedhistoryListWithCircularReadJson,
103
- deleteFlow,
104
- taskReadWithDraw,
105
- fyListJson,
106
- circularReadWithdraw
107
- } from 'eoss-ui/src/config/api';
108
- import FileList from '../../flow/src/component/FileList.vue';
109
- import util from 'eoss-ui/src/utils/util';
110
- export default {
111
- name: 'EsFlowList',
112
- components: {
113
- [FileList.name]: FileList
114
- },
115
- props: {
116
- businessId: {
117
- type: String,
118
- default: ''
119
- },
120
- getListCount: {
121
- type: Function,
122
- default: () => {}
123
- },
124
- hide: {
125
- type: String,
126
- default: ''
127
- },
128
- hideBtn:{
129
- type: Boolean,
130
- default: false
131
- },
132
- params: {
133
- type: Object,
134
- default: () => {
135
- return {};
136
- }
137
- },
138
- toolbar: {
139
- type: Array,
140
- default: () => []
141
- },
142
- headFields: {
143
- type: Array,
144
- default: () => []
145
- },
146
- contents: {
147
- type: Array,
148
- default() {
149
- return ['flow', 'splitReading', 'preset'];
150
- }
151
- },
152
- numbers: {
153
- type: Boolean,
154
- default: false
155
- },
156
- height: {
157
- type: String,
158
- default: ''
159
- },
160
-
161
- theadWidth: {
162
- type: Object,
163
- default: () => {
164
- return {};
165
- }
166
- },
167
- type: {
168
- type: String,
169
- default: ''
170
- },
171
- display: Boolean
172
- },
173
- inheritAttrs: false,
174
- data() {
175
- return {
176
- pressLoading: false,
177
- pressTableList: [],
178
- circularData: [],
179
- selectList: [],
180
- flowHeight: '',
181
- presetHeight: '',
182
- signHeight: '',
183
- splitReadingHeight: '',
184
- circularHeight: '',
185
- untreatedReadHeight: '',
186
- processedReadHeight: '',
187
- untreatedReadData: [],
188
- processedReadData: [],
189
- hasCircularReadWithdrawAuthority: false,
190
- currentPage: 1,
191
- pageSize: 20,
192
- flowListCount: {},
193
- currentUserHasPresetInfoAuth: false,
194
- pressThead: [
195
- {
196
- title: '催办节点',
197
- align: 'center',
198
- sortable: true,
199
- field: 'urge_item'
200
- },
201
- {
202
- title: '催办人名称',
203
- sortable: true,
204
- align: 'center',
205
- field: 'urge_man_name'
206
- },
207
- {
208
- title: '催办时间',
209
- sortable: true,
210
- align: 'center',
211
- field: 'urge_time'
212
- },
213
- {
214
- title: '被催办人名称',
215
- align: 'center',
216
- sortable: true,
217
- field: 'urged_man_name'
218
- }
219
- ],
220
- wfpendingid: '',
221
- showFileList: false,
222
- flowData: [],
223
- splitReadingData: [],
224
- presetData: [],
225
- signData: [],
226
- loading: '', //加载中
227
- preset_type: [], //预设类型
228
- showPress: false, //查看催办记录弹窗
229
- modify: false,
230
- formData: { reason: '' },
231
- formItemList: [
232
- {
233
- name: 'reason',
234
- label: '删除原因',
235
- type: 'textarea',
236
- placeholder: '请输入删除原因',
237
- rules: {
238
- required: true,
239
- message: '请输入删除原因',
240
- trigger: 'blur'
241
- },
242
- value: '',
243
- rows: 5
244
- },
245
- {
246
- type: 'submit',
247
- skin: 'lay-form-btns',
248
- contents: [
249
- {
250
- type: 'primary',
251
- plain: true,
252
- text: '保存',
253
- event: 'confirm'
254
- }
255
- ]
256
- }
257
- ],
258
- delLoading: false,
259
- showDel: false,
260
- attachmentPaperClipCssStyle: '',
261
- is_edit: [], //是否可编辑
262
- flowTableInfo: {
263
- adjunctCode: '',
264
- hasAgent: '1' //是否展示代办人 1:展示 0:不展示
265
- },
266
- show: false,
267
- taskReadName: '', //非流程列表名称
268
- options: [
269
- { label: '时间排序', value: '1' },
270
- { label: '部门排序', value: '2' },
271
- { label: '树形排序', value: '3' }
272
- ],
273
- isShort: 0, //是否隐藏筛选
274
- viewType: '1', //排序方式
275
- flowTableList: [], //流程列表
276
- fyTableList: [], //分阅列表
277
- showSuggest: 'all', //筛选显示数据
278
- presetInfoListHiddenColumns: '', //隐藏表格展示数据
279
- canDelete: false, //是否展示操作按钮
280
- historyId: '',
281
- sidx: '',
282
- sord: '',
283
- total: 0
284
- };
285
- },
286
- computed: {
287
- toolbars() {
288
- return {
289
- flow: [
290
- {
291
- type: 'text',
292
- contents: '流程列表'
293
- },
294
- {
295
- type: 'search',
296
- contents: [
297
- {
298
- name: 'showSuggest',
299
- type: 'radio',
300
- changeSearch: true,
301
- data: [
302
- {
303
- value: 'all',
304
- name: '显示全部',
305
- checked: true
306
- },
307
- { value: 'have', name: '显示已填意见' }
308
- ],
309
- events: {
310
- change: (key, value) => {
311
- this.handleChange(key, value);
312
- }
313
- }
314
- },
315
- {
316
- type: 'select',
317
- placeholder: '请选择',
318
- name: 'viewType',
319
- width: '140px',
320
- changeSearch: true,
321
- events: {
322
- change: (key, value) => {
323
- this.handleChange(key, value);
324
- }
325
- },
326
- data: [
327
- {
328
- value: 1,
329
- selected: true,
330
- name: '时间排序'
331
- },
332
- {
333
- value: 2,
334
- name: '部门排序'
335
- },
336
- {
337
- value: 3,
338
- name: '树形排序'
339
- }
340
- ]
341
- }
342
- ]
343
- }
344
- ],
345
- preset: [
346
- {
347
- type: 'text',
348
- contents: '预设列表'
349
- }
350
- ],
351
- sign: [
352
- {
353
- type: 'button',
354
- contents: [
355
- {
356
- text: '生成处理签',
357
- type: 'primary'
358
- }
359
- ]
360
- }
361
- ],
362
- splitReading: [
363
- {
364
- type: 'text',
365
- contents:
366
- (this.taskReadName ? this.taskReadName : '非流程') + '列表'
367
- }
368
- ],
369
- circular: [
370
- {
371
- type: 'text',
372
- contents: '传阅列表'
373
- }
374
- ],
375
- untreatedRead: [
376
- {
377
- type: 'text',
378
- contents: '未处理分阅列表'
379
- },
380
- {
381
- type: 'button',
382
- contents: [
383
- {
384
- text: '撤销分阅',
385
- fun: 'recallRead'
386
- }
387
- ]
388
- }
389
- ],
390
- processedRead: [
391
- {
392
- type: 'text',
393
- contents: '已处理分阅列表'
394
- }
395
- ]
396
- // Reading situation
397
- };
398
- },
399
- pageInfo() {
400
- return {
401
- pageNum: this.currentPage,
402
- pageSize: this.pageSize,
403
- totalCount: this.total
404
- };
405
- },
406
- theads() {
407
- const _that = this;
408
- return {
409
- flow: [
410
- {
411
- label: '经办部门',
412
- field: 'deptid',
413
- align: 'center',
414
- key: 'jbbm',
415
- showOverflowTooltip: true,
416
- width: this.theadWidth.deptid || 150,
417
- render: (h, params) => {
418
- return h(
419
- 'span',
420
- {},
421
- params.row.doDeptName
422
- ? params.row.doDeptName
423
- : params.row.deptName
424
- );
425
- }
426
- },
427
- {
428
- label: '步骤',
429
- field: 'itemname',
430
- align: 'center',
431
- key: 'bz',
432
- showOverflowTooltip: true,
433
- width: this.theadWidth.itemname || 110
434
- },
435
- {
436
- label: '办理人',
437
- field: 'userName',
438
- align: 'center',
439
- key: 'blr',
440
- showOverflowTooltip: true,
441
- width: this.theadWidth.userName || 110
442
- },
443
- {
444
- label: '办理人部门',
445
- field: 'deptName',
446
- align: 'center',
447
- showOverflowTooltip: true,
448
- key: 'blrbm',
449
- width: this.theadWidth.deptName || 110
450
- },
451
- {
452
- label: '状态',
453
- field: 'pendstate',
454
- key: 'zt',
455
- align: 'center',
456
- showOverflowTooltip: true,
457
- width: this.theadWidth.pendstate || 80,
458
- render: (h, params) => {
459
- return h('span', {
460
- style: {
461
- color:
462
- params.row.pendstate == 0 || params.row.pendstate == 3
463
- ? 'red'
464
- : params.row.pendstate == 1
465
- ? 'green'
466
- : 'deepskyblue'
467
- },
468
- domProps: { innerHTML: params.row.querykeywords }
469
- });
470
- }
471
- },
472
- {
473
- label: '办理意见',
474
- field: 'doresult',
475
- align: 'center',
476
- width: this.theadWidth.doresult,
477
- showOverflowTooltip: true,
478
- key: 'blyj',
479
- render: (h, params) => {
480
- if (
481
- params.row.doresult &&
482
- (params.row.doresult.startsWith('http') ||
483
- params.row.doresult.startsWith('https'))
484
- ) {
485
- return h('img', {
486
- attrs: { src: params.row.doresult },
487
- style: { width: '100px', height: '100px' }
488
- });
489
- } else {
490
- return h('span', {}, [
491
- params.row.doresult
492
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
493
- : '',
494
- h(
495
- 'span',
496
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
497
- params.row.handleInfo || ''
498
- )
499
- ]);
500
- }
501
- }
502
- },
503
- {
504
- label: '验签',
505
- field: 'authTypeStr',
506
- align: 'center',
507
- key: 'yq',
508
- showOverflowTooltip: true,
509
- width: this.theadWidth.authTypeStr || 70,
510
- render: (h, params) => {
511
- return h(
512
- 'span',
513
- { style: { color: 'deepskyblue' } },
514
- params.row.authTypeStr
515
- );
516
- }
517
- },
518
- {
519
- label: '附件',
520
- key: 'fj',
521
- field: 'hasAdjunct',
522
- align: 'center',
523
- showOverflowTooltip: true,
524
- width: this.theadWidth.hasAdjunct || 70,
525
- render: (h, params) => {
526
- if (params.row.hasAdjunct) {
527
- return h('span', {
528
- style: _that.attachmentPaperClipCssStyle
529
- ? _that.attachmentPaperClipCssStyle
530
- : { color: 'red', fontSize: '20px' },
531
- class: 'iconfont es-icon-fujian'
532
- });
533
- } else {
534
- return h('span', {}, '');
535
- }
536
- }
537
- },
538
- {
539
- label: '时间',
540
- field: 'doetime',
541
- align: 'center',
542
- key: 'sj',
543
- showOverflowTooltip: true,
544
- width: this.theadWidth.doetime || 150,
545
- render: (h, params) => {
546
- return h(
547
- 'span',
548
- {},
549
- params.row.doetime
550
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
551
- : ''
552
- );
553
- }
554
- },
555
- {
556
- label: '代办人',
557
- field: 'douserid',
558
- align: 'center',
559
- key: 'dbr',
560
- showOverflowTooltip: true,
561
- width: this.theadWidth.douserid || 80,
562
- hide: _that.flowTableInfo.hasAgent != '1'
563
- },
564
- {
565
- label: '催办',
566
- field: 'pressTimes',
567
- align: 'center',
568
- key: 'cb',
569
- showOverflowTooltip: true,
570
- width: this.theadWidth.pressTimes || 150,
571
- render: (h, params) => {
572
- return h(
573
- 'span',
574
- { style: 'color:deepskyblue;cursor: pointer;' },
575
- params.row.pressTimes
576
- );
577
- }
578
- },
579
- {
580
- title: '操作',
581
- type: 'handle',
582
- width: this.modify ? '130' : '100',
583
- template: '',
584
- hide:this.hideBtn,
585
- events: [
586
- {
587
- text: '删除',
588
- rules: (rows) => {
589
- return rows.canDelete;
590
- }
591
- }
592
- // {
593
- // text: '修改',
594
- // rules: (rows) => {
595
- // return this.modify && rows.pendstate == 2;
596
- // }
597
- // }
598
- ]
599
- }
600
- ],
601
- preset: this.thead,
602
- splitReading: [
603
- {
604
- label: '经办部门',
605
- field: 'deptid',
606
- key: 'jbbm',
607
- align: 'center',
608
- showOverflowTooltip: true,
609
- width: this.theadWidth.deptid || 150
610
- },
611
- {
612
- label: '步骤',
613
- field: 'itemname',
614
- align: 'center',
615
- key: 'bz',
616
- showOverflowTooltip: true,
617
- width: this.theadWidth.itemname || 110
618
- },
619
- {
620
- label: '办理人',
621
- field: 'userName',
622
- align: 'center',
623
- key: 'blr',
624
- showOverflowTooltip: true,
625
- width: this.theadWidth.userName || 110
626
- },
627
- {
628
- label: '状态',
629
- field: 'pendstate',
630
- align: 'center',
631
- key: 'zt',
632
- showOverflowTooltip: true,
633
- width: this.theadWidth.pendstate || 80,
634
- render: (h, params) => {
635
- return h('span', {
636
- style: {
637
- color:
638
- params.row.pendstate == 0 || params.row.pendstate == 3
639
- ? 'red'
640
- : params.row.pendstate == 1
641
- ? 'green'
642
- : 'deepskyblue'
643
- },
644
- domProps: { innerHTML: params.row.querykeywords }
645
- });
646
- }
647
- },
648
- {
649
- label: '办理意见',
650
- field: 'doresult',
651
- align: 'center',
652
- key: 'blyj',
653
- width: this.theadWidth.doresult,
654
- showOverflowTooltip: true,
655
- render: (h, params) => {
656
- if (
657
- params.row.doresult &&
658
- (params.row.doresult.startsWith('http') ||
659
- params.row.doresult.startsWith('https'))
660
- ) {
661
- return h('img', {
662
- attrs: { src: params.row.doresult },
663
- style: { width: '100px', height: '100px' }
664
- });
665
- } else {
666
- return h('span', {}, [
667
- params.row.doresult
668
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
669
- : '',
670
- h(
671
- 'span',
672
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
673
- params.row.handleInfo || ''
674
- )
675
- ]);
676
- }
677
- }
678
- },
679
- {
680
- label: '验签',
681
- field: 'authTypeStr',
682
- align: 'center',
683
- key: 'yq',
684
- showOverflowTooltip: true,
685
- width: this.theadWidth.authTypeStr || 70,
686
- render: (h, params) => {
687
- return h(
688
- 'span',
689
- { style: { color: 'deepskyblue' } },
690
- params.row.authTypeStr
691
- );
692
- }
693
- },
694
- {
695
- label: '附件',
696
- field: 'hasAdjunct',
697
- align: 'center',
698
- key: 'fj',
699
- showOverflowTooltip: true,
700
- width: this.theadWidth.hasAdjunct || 70,
701
- render: (h, params) => {
702
- if (params.row.hasAdjunct) {
703
- return h('span', {
704
- style: _that.attachmentPaperClipCssStyle
705
- ? _that.attachmentPaperClipCssStyle
706
- : { color: 'red', fontSize: '20px' },
707
- class: 'iconfont es-icon-fujian'
708
- });
709
- } else {
710
- return h('span', {}, '');
711
- }
712
- }
713
- },
714
- {
715
- label: '时间',
716
- field: 'doetime',
717
- align: 'center',
718
- key: 'sj',
719
- showOverflowTooltip: true,
720
- width: this.theadWidth.doetime || 150,
721
- render: (h, params) => {
722
- return h(
723
- 'span',
724
- {},
725
- params.row.doetime
726
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
727
- : ''
728
- );
729
- }
730
- },
731
- {
732
- label: '代办人',
733
- field: 'douserid',
734
- align: 'center',
735
- key: 'dbr',
736
- showOverflowTooltip: true,
737
- width: this.theadWidth.douserid || 80,
738
- hide: _that.flowTableInfo.hasAgent != '1'
739
- },
740
- {
741
- label: '催办',
742
- field: 'pressTimes',
743
- align: 'center',
744
- key: 'cb',
745
- showOverflowTooltip: true,
746
- width: this.theadWidth.pressTimes || 150,
747
- render: (h, params) => {
748
- return h(
749
- 'span',
750
- { style: 'color:deepskyblue;cursor: pointer;' },
751
- params.row.pressTimes
752
- );
753
- }
754
- },
755
- {
756
- title: '操作',
757
- type: 'handle',
758
- width: '100',
759
- template: '',
760
- hide:this.hideBtn,
761
- events: [
762
- {
763
- text: '删除',
764
- rules: (rows) => {
765
- return rows.canDelete;
766
- }
767
- }
768
- ]
769
- }
770
- ],
771
- circular: [
772
- {
773
- label: '发起人',
774
- field: 'circularReadInitiatorName',
775
- align: 'center',
776
- key: 'fqr',
777
- showOverflowTooltip: true,
778
- width: this.theadWidth.circularReadInitiatorName || 150
779
- },
780
- {
781
- label: '传阅部门',
782
- field: 'circularReadOrgName',
783
- align: 'center',
784
- key: 'cybm',
785
- showOverflowTooltip: true,
786
- width: this.theadWidth.circularReadOrgName || 110
787
- },
788
- {
789
- label: '传阅人',
790
- field: 'userName',
791
- align: 'center',
792
- key: 'cyr',
793
- showOverflowTooltip: true,
794
- width: this.theadWidth.userName || 110
795
- },
796
- {
797
- label: '步骤',
798
- field: 'itemname',
799
- align: 'center',
800
- showOverflowTooltip: true,
801
- key: 'bz',
802
- width: this.theadWidth.itemname || 110
803
- },
804
- {
805
- label: '状态',
806
- field: 'pendstate',
807
- key: 'zt',
808
- align: 'center',
809
- showOverflowTooltip: true,
810
- width: this.theadWidth.pendstate || 140,
811
- render: (h, params) => {
812
- return h('span', {
813
- style: {
814
- color:
815
- params.row.pendstate == 0 || params.row.pendstate == 3
816
- ? 'red'
817
- : params.row.pendstate == 1
818
- ? 'green'
819
- : 'deepskyblue',
820
- cursor: this.hasCircularReadWithdrawAuthority
821
- ? 'pointer'
822
- : 'unset'
823
- },
824
- domProps: {
825
- innerHTML:
826
- params.row.querykeywords +
827
- (this.hasCircularReadWithdrawAuthority
828
- ? `<span style="color:#7AB0D5">(撤回)</span>`
829
- : '')
830
- }
831
- });
832
- }
833
- },
834
- {
835
- label: '送达时间',
836
- field: 'createtime',
837
- align: 'center',
838
- key: 'sdsj',
839
- showOverflowTooltip: true,
840
- width: this.theadWidth.createtime || 170
841
- },
842
- {
843
- label: '办理时间',
844
- field: 'doetime',
845
- align: 'center',
846
- key: 'blsj',
847
- showOverflowTooltip: true,
848
- width: this.theadWidth.doetime || 150
849
- },
850
-
851
- {
852
- label: '附件',
853
- key: 'fj',
854
- field: 'hasAdjunct',
855
- align: 'center',
856
- showOverflowTooltip: true,
857
- width: this.theadWidth.hasAdjunct || 70,
858
- render: (h, params) => {
859
- if (params.row.hasAdjunct) {
860
- return h('span', {
861
- style: _that.attachmentPaperClipCssStyle
862
- ? _that.attachmentPaperClipCssStyle
863
- : { color: 'red', fontSize: '20px' },
864
- class: 'iconfont es-icon-fujian'
865
- });
866
- } else {
867
- return h('span', {}, '');
868
- }
869
- }
870
- },
871
- {
872
- label: '提醒',
873
- field: 'pressTimes',
874
- align: 'center',
875
- key: 'tx',
876
- showOverflowTooltip: true,
877
- width: this.theadWidth.pressTimes || 150,
878
- render: (h, params) => {
879
- return h(
880
- 'span',
881
- { style: 'color:deepskyblue;cursor: pointer;' },
882
- params.row.pressTimes
883
- );
884
- }
885
- },
886
- {
887
- label: '阅结意见 & 说明',
888
- field: 'doresult',
889
- align: 'center',
890
- width: this.theadWidth.doresult,
891
- showOverflowTooltip: true,
892
- key: 'blyj',
893
- render: (h, params) => {
894
- if (
895
- params.row.doresult &&
896
- (params.row.doresult.startsWith('http') ||
897
- params.row.doresult.startsWith('https'))
898
- ) {
899
- return h('img', {
900
- attrs: { src: params.row.doresult },
901
- style: { width: '100px', height: '100px' }
902
- });
903
- } else {
904
- return h('span', {}, [
905
- params.row.doresult
906
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
907
- : '',
908
- h(
909
- 'span',
910
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
911
- params.row.handleInfo || ''
912
- )
913
- ]);
914
- }
915
- }
916
- }
917
- ],
918
- untreatedRead: [
919
- {
920
- label: '步骤',
921
- field: 'itemid',
922
- align: 'center',
923
- key: 'bz',
924
- showOverflowTooltip: true,
925
- width: this.theadWidth.itemid || 110
926
- },
927
- {
928
- label: '办理人',
929
- field: 'userName',
930
- align: 'center',
931
- key: 'blr',
932
- showOverflowTooltip: true,
933
- width: this.theadWidth.userName
934
- },
935
- {
936
- label: '办理状态',
937
- field: 'pendstate',
938
- key: 'blzt',
939
- align: 'center',
940
- showOverflowTooltip: true,
941
- width: this.theadWidth.pendstate || 110,
942
- render: (h, params) => {
943
- return h('span', {
944
- style: {
945
- color:
946
- params.row.pendstate == 0 || params.row.pendstate == 3
947
- ? 'red'
948
- : params.row.pendstate == 1
949
- ? 'green'
950
- : 'deepskyblue'
951
- },
952
- domProps: { innerHTML: params.row.querykeywords }
953
- });
954
- }
955
- },
956
- {
957
- label: '创建时间',
958
- field: 'createtime',
959
- align: 'center',
960
- key: 'cjsj',
961
- showOverflowTooltip: true,
962
- width: this.theadWidth.createtime || 150,
963
- render: (h, params) => {
964
- return h(
965
- 'span',
966
- {},
967
- params.row.doetime
968
- ? util.formatDate(params.row.createtime, 'yyyy-MM-dd HH:mm')
969
- : ''
970
- );
971
- }
972
- }
973
- ],
974
- processedRead: [
975
- {
976
- label: '步骤',
977
- field: 'itemid',
978
- align: 'center',
979
- key: 'bz',
980
- showOverflowTooltip: true,
981
- width: this.theadWidth.itemid || 110
982
- },
983
- {
984
- label: '办理人',
985
- field: 'userName',
986
- align: 'center',
987
- key: 'blr',
988
- showOverflowTooltip: true,
989
- width: this.theadWidth.userName
990
- },
991
- {
992
- label: '办理状态',
993
- field: 'pendstate',
994
- key: 'blzt',
995
- align: 'center',
996
- showOverflowTooltip: true,
997
- width: this.theadWidth.pendstate || 110,
998
- render: (h, params) => {
999
- return h('span', {
1000
- style: {
1001
- color:
1002
- params.row.pendstate == 0 || params.row.pendstate == 3
1003
- ? 'red'
1004
- : params.row.pendstate == 1
1005
- ? 'green'
1006
- : 'deepskyblue'
1007
- },
1008
- domProps: { innerHTML: params.row.querykeywords }
1009
- });
1010
- }
1011
- },
1012
- {
1013
- label: '办理时间',
1014
- field: 'doetime',
1015
- align: 'center',
1016
- key: 'blsj',
1017
- showOverflowTooltip: true,
1018
- width: this.theadWidth.doetime || 150,
1019
- render: (h, params) => {
1020
- return h(
1021
- 'span',
1022
- {},
1023
- params.row.doetime
1024
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
1025
- : ''
1026
- );
1027
- }
1028
- },
1029
- {
1030
- label: '代办人',
1031
- field: 'douserid',
1032
- align: 'center',
1033
- key: 'dbr',
1034
- showOverflowTooltip: true,
1035
- width: this.theadWidth.douserid
1036
- },
1037
- {
1038
- label: '意见',
1039
- field: 'doresult',
1040
- align: 'center',
1041
- key: 'yj',
1042
- showOverflowTooltip: true,
1043
- width: this.theadWidth.doresult
1044
- }
1045
- ]
1046
- };
1047
- },
1048
- content() {
1049
- const _that = this;
1050
- let newContents = JSON.parse(JSON.stringify(this.contents));
1051
- if (this.contents.indexOf('circular') != -1) {
1052
- newContents = newContents.filter((item) => item != 'splitReading');
1053
- }
1054
- if (newContents.indexOf('readingSituation') != -1) {
1055
- newContents = ['untreatedRead', 'processedRead'];
1056
- }
1057
- let contents = newContents.map((item) => {
1058
- if (typeof item === 'string') {
1059
- let data = [];
1060
- if (_that.headFields.length > 0) {
1061
- _that.headFields.map((headFiled) => {
1062
- if (headFiled.showDefault) {
1063
- _that.theads[item].map((theadItem) => {
1064
- if (theadItem.field === headFiled.field) {
1065
- data.push({ ...theadItem, ...headFiled });
1066
- }
1067
- });
1068
- } else {
1069
- data.push(headFiled);
1070
- }
1071
- });
1072
- _that.theads[item].map((x) => {
1073
- if (x.type == 'handle') {
1074
- data.push(x);
1075
- }
1076
- });
1077
- }
1078
- return {
1079
- type: item,
1080
- checkbox: newContents.indexOf('untreatedRead') != -1,
1081
- toolbar: this.toolbars[item],
1082
- thead: data.length > 0 ? data : this.theads[item],
1083
- showFormBtn: false
1084
- };
1085
- } else {
1086
- if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
1087
- let toolbars = this.toolbars[item.type];
1088
- return { ...item, toolbars };
1089
- }
1090
- if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
1091
- let thead = this.theads[item.type];
1092
- return { ...item, thead };
1093
- }
1094
- return item;
1095
- }
1096
- });
1097
- return contents;
1098
- },
1099
- newToolbar() {
1100
- if (this.toolbar && this.toolbar.length > 0) {
1101
- return this.toolbar;
1102
- } else {
1103
- return [];
1104
- }
1105
- },
1106
- thead() {
1107
- let table = [
1108
- {
1109
- title: '步骤',
1110
- align: 'center',
1111
- width: this.theadWidth.nodeName || '100',
1112
- field: 'nodeName'
1113
- },
1114
- {
1115
- title: '预设办理人',
1116
- width: this.theadWidth.presetUserName || '120',
1117
- align: 'center',
1118
- field: 'presetUserName'
1119
- },
1120
- {
1121
- title: '是否可编辑',
1122
- key: 'sfkbj',
1123
- align: 'center',
1124
- width: this.theadWidth.isEdit || '100',
1125
- render: (h, params) => {
1126
- return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
1127
- },
1128
- field: 'isEdit'
1129
- },
1130
- {
1131
- key: 'zt',
1132
- title: '状态',
1133
- width: this.theadWidth.statusName || '80',
1134
- align: 'center',
1135
- field: 'statusName'
1136
- },
1137
- {
1138
- title: '预设类型',
1139
- key: 'yslx',
1140
- width: this.theadWidth.presetType || '120',
1141
- align: 'center',
1142
- render: (h, params) => {
1143
- return h(
1144
- 'span',
1145
- this.getCodeValue(params.row.presetType, 'preset_type')
1146
- );
1147
- },
1148
- field: 'presetType'
1149
- },
1150
- {
1151
- title: '流程名称',
1152
- key: 'lcmc',
1153
- width: this.theadWidth.processDefName,
1154
- align: 'center',
1155
- field: 'processDefName'
1156
- },
1157
- {
1158
- title: '上一步骤',
1159
- key: 'sybz',
1160
- align: 'center',
1161
- width: this.theadWidth.lastNodeName,
1162
- field: 'lastNodeName'
1163
- },
1164
- {
1165
- title: '创建步骤',
1166
- key: 'cjbz',
1167
- align: 'center',
1168
- width: this.theadWidth.operationNodeName,
1169
- field: 'operationNodeName'
1170
- },
1171
- {
1172
- title: '创建人',
1173
- key: 'cjr',
1174
- width: this.theadWidth.creatorName || '120',
1175
- align: 'center',
1176
- field: 'creatorName'
1177
- },
1178
- {
1179
- title: '创建时间',
1180
- width: this.theadWidth.createTime || '150',
1181
- key: 'cjsj',
1182
- align: 'center',
1183
- render: (h, params) => {
1184
- return h(
1185
- 'span',
1186
- util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
1187
- );
1188
- },
1189
- field: 'createTime'
1190
- },
1191
- {
1192
- title: '操作区域',
1193
- type: 'handle',
1194
- align: 'center',
1195
- width: '120',
1196
- events: [
1197
- {
1198
- text: '置为失效'
1199
- }
1200
- ]
1201
- }
1202
- ];
1203
- if (
1204
- this.presetInfoListHiddenColumns != undefined &&
1205
- this.presetInfoListHiddenColumns != ''
1206
- ) {
1207
- table = table.filter(
1208
- (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
1209
- );
1210
- }
1211
- if (!this.canDelete) table.splice(table.length - 1, 1);
1212
- return table;
1213
- }
1214
- },
1215
- async mounted() {
1216
- this.loading = util.loading(this.$loading, '加载中...');
1217
- if (this.contents.indexOf('readingSituation') != -1) {
1218
- await this.getFyListJson(1);
1219
- await this.getFyListJson(2);
1220
- this.getListCount(this.flowListCount);
1221
- this.show = true;
1222
- } else {
1223
- this.getFlowList();
1224
- }
1225
- this.getSysInfo('preset_type');
1226
- this.getSysInfo('is_edit');
1227
- this.getListInfo();
1228
- },
1229
-
1230
- methods: {
1231
- recallReadFun() {
1232
- const _that = this;
1233
- let pendingIds = _that.selectList.map((x) => x.id).join(',');
1234
- let params = {
1235
- url: taskReadWithDraw,
1236
- params: {
1237
- pendingIds
1238
- }
1239
- };
1240
- _that.loading = util.loading(_that.$loading, '撤销中...');
1241
- util.ajax(params).then(async (res) => {
1242
- _that.loading.close();
1243
- if (res.rCode == 0 || res.status == 'success') {
1244
- _that.$message.success('撤销成功!');
1245
- await _that.getFyListJson(1);
1246
- _that.getListCount(_that.flowListCount);
1247
- } else {
1248
- _that.$message.error(res.message);
1249
- }
1250
- });
1251
- },
1252
- recallRead() {
1253
- if (this.selectList.length == 0)
1254
- return this.$message.warning('请选择需要撤销的分阅');
1255
- this.$confirm('是否确认撤销选中的分阅?', '提示', {
1256
- confirmButtonText: '确定',
1257
- cancelButtonText: '取消',
1258
- type: 'warning'
1259
- }).then(() => {
1260
- this.recallReadFun();
1261
- });
1262
- },
1263
- handleSelectionChange(val) {
1264
- this.selectList = val;
1265
- },
1266
- handledraw(pendedHistoryId) {
1267
- let params = {
1268
- url: circularReadWithdraw,
1269
- params: { pendedHistoryId }
1270
- };
1271
- this.$confirm('是否确定撤回当前传阅', {
1272
- confirmButtonText: '确定',
1273
- cancelButtonText: '取消',
1274
- type: 'warning'
1275
- })
1276
- .then(() => {
1277
- this.loading = util.loading(this.$loading, '撤回中...');
1278
- util.ajax(params).then((res) => {
1279
- this.loading.close();
1280
- if (res.rCode == 0) {
1281
- this.$message({
1282
- message: '撤回成功',
1283
- type: 'success'
1284
- });
1285
- this.getCircularReadList();
1286
- }
1287
- });
1288
- // _that.subMit(res.results,type)
1289
- })
1290
- .catch(() => {});
1291
- },
1292
- getCircularReadList() {
1293
- const _that = this;
1294
- let params = {
1295
- url: pendedhistoryListWithCircularReadJson,
1296
- params: { apprecordid: _that.businessId }
1297
- };
1298
- util.ajax(params).then((res) => {
1299
- if (res.status == 'success' || res.rCode == 0) {
1300
- _that.circularData = res.data.fyHistoryList;
1301
- _that.hasCircularReadWithdrawAuthority =
1302
- res.data.hasCircularReadWithdrawAuthority;
1303
- _that.$nextTick(() => {
1304
- _that.getListCount(_that.flowListCount);
1305
- });
1306
- }
1307
- });
1308
- },
1309
- returnData(type) {
1310
- switch (type) {
1311
- case 'preset':
1312
- this.flowListCount.preset = this.presetData.length;
1313
- return this.presetData;
1314
- case 'sign':
1315
- this.flowListCount.sign = this.signData.length;
1316
- return this.signData;
1317
- case 'splitReading':
1318
- this.flowListCount.splitReading = this.splitReadingData.length;
1319
- return this.splitReadingData;
1320
- case 'circular':
1321
- this.flowListCount.circular = this.circularData.length;
1322
- return this.circularData;
1323
- case 'untreatedRead':
1324
- this.flowListCount.untreatedRead = this.untreatedReadData.length;
1325
- return this.untreatedReadData;
1326
- case 'processedRead':
1327
- this.flowListCount.processedRead = this.processedReadData.length;
1328
- return this.processedReadData;
1329
- default:
1330
- this.flowListCount.flow = this.flowData.length;
1331
- return this.flowData;
1332
- }
1333
- },
1334
- handleCellClick(row, column) {
1335
- if (column.property == 'hasAdjunct' && row.hasAdjunct) {
1336
- this.showFile(row.wfpendingid);
1337
- } else if (column.property == 'pressTimes') {
1338
- this.goPress(row.id);
1339
- } else if (
1340
- column.property == 'pendstate' &&
1341
- this.hasCircularReadWithdrawAuthority
1342
- ) {
1343
- this.handledraw(row.id);
1344
- }
1345
- },
1346
- handleBtnClick(data) {
1347
- // recallRead
1348
- const { handle, row } = data;
1349
- if (handle.text == '删除') {
1350
- this.del(row.id);
1351
- } else if (handle.fun == 'recallRead') {
1352
- this[handle.fun]();
1353
- }
1354
- },
1355
- /**
1356
- * handleFormSubmit
1357
- * @desc:删除节点点击事件
1358
- * @param {Object} formData 点击删除的form数据
1359
- * @author liufan
1360
- * @date 2022年11月29日
1361
- **/
1362
- handleFormSubmit(formData) {
1363
- this.delLoading = true;
1364
- let params = {
1365
- url: deleteFlow,
1366
- method: 'POST',
1367
- data: { id: this.historyId, reason: formData.reason }
1368
- };
1369
- util
1370
- .ajax(params)
1371
- .then((res) => {
1372
- const { status, message } = res;
1373
- this.delLoading = false;
1374
- if (status === 'success') {
1375
- this.$message.success('删除成功');
1376
- this.showDel = false;
1377
- this.handleChange();
1378
- } else {
1379
- this.$message.error(message || '系统错误,请联系管理员!');
1380
- }
1381
- })
1382
- .catch((err) => {
1383
- this.delLoading = false;
1384
- if (err.message && err.message !== 'canceled') {
1385
- this.$message.error(err.message);
1386
- }
1387
- });
1388
- },
1389
- /**
1390
- * del
1391
- * @desc:展示删除弹窗
1392
- * @param {String} id 当前点击数据id
1393
- * @author liufan
1394
- * @date 2022年11月29日
1395
- **/
1396
- del(id) {
1397
- this.historyId = id;
1398
- this.showDel = true;
1399
- },
1400
- /**
1401
- * handleCurrentChange
1402
- * @desc:监听页码变化
1403
- * @param {String} val 当前页
1404
- * @author liufan
1405
- * @date 2022年11月29日
1406
- **/
1407
- handleCurrentChange(val) {
1408
- this.currentPage = val;
1409
- this.getPressList();
1410
- },
1411
- /**
1412
- * handleSizeChange
1413
- * @desc:监听每页数据显示数量变化
1414
- * @param {String} val 每页展示数量
1415
- * @author liufan
1416
- * @date 2022年11月29日
1417
- **/
1418
- handleSizeChange(val) {
1419
- this.pageSize = val;
1420
- this.getPressList();
1421
- },
1422
- /**
1423
- * sortChange
1424
- * @desc:监听排序变化
1425
- * @param {Object} info 需要排序的字段及排序方式
1426
- * @author liufan
1427
- * @date 2022年11月29日
1428
- **/
1429
- sortChange(info) {
1430
- let { prop, order } = info;
1431
- this.sidx = prop;
1432
- this.sord = order.replace('ending', '');
1433
- this.getPressList();
1434
- },
1435
- /**
1436
- * getPressList
1437
- * @desc:催办列表数据
1438
- * @author liufan
1439
- * @date 2022年11月29日
1440
- **/
1441
- getPressList() {
1442
- const { historyId, pageSize, sidx, sord, currentPage } = this;
1443
- this.pressLoading = true;
1444
- let params = {
1445
- url: pressListJson,
1446
- params: { historyId },
1447
- method: 'POST',
1448
- data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
1449
- };
1450
- util
1451
- .ajax(params)
1452
- .then((res) => {
1453
- this.pressTableList = res.data;
1454
- this.total = res.totalrecords;
1455
- this.pressLoading = false;
1456
- })
1457
- .catch((err) => {
1458
- this.pressLoading = false;
1459
- if (err.message && err.message !== 'canceled') {
1460
- this.$message.error(err.message);
1461
- }
1462
- });
1463
- },
1464
- /**
1465
- * goPress
1466
- * @desc:催办列表查看
1467
- * @param {String} id 催办列表id
1468
- * @author liufan
1469
- * @date 2022年11月29日
1470
- **/
1471
- goPress(id) {
1472
- this.historyId = id;
1473
- this.showPress = true;
1474
- this.getPressList();
1475
- },
1476
- /**
1477
- * showFile
1478
- * @desc:附件查看
1479
- * @param {String} ownId 附件id
1480
- * @author liufan
1481
- * @date 2022年11月29日
1482
- **/
1483
- showFile(ownId) {
1484
- this.wfpendingid = ownId;
1485
- this.showFileList = true;
1486
- },
1487
- /**
1488
- * handleChange
1489
- * @desc:切换排序方式
1490
- * @author liufan
1491
- * @date 2022年11月22日
1492
- **/
1493
- handleChange(key, value) {
1494
- if (value) {
1495
- this[key] = value;
1496
- }
1497
- // this.show = false;
1498
- this.loading = util.loading(this.$loading, '加载中...');
1499
- this.getFlowList();
1500
- },
1501
- async getFyListJson(type) {
1502
- let params = {
1503
- url: fyListJson,
1504
- params: {
1505
- appRecordId: this.businessId,
1506
- status: type
1507
- }
1508
- };
1509
- await util.ajax(params).then((res) => {
1510
- if (type == 1) {
1511
- this.untreatedReadData = res.data;
1512
- } else {
1513
- this.processedReadData = res.data;
1514
- }
1515
- });
1516
- },
1517
- /**
1518
- * getFlowList
1519
- * @desc:获取流程列表
1520
- * @author liufan
1521
- * @date 2022年11月22日
1522
- **/
1523
- getFlowList() {
1524
- let params = {
1525
- url: pendedhistoryListJson,
1526
- params: {
1527
- apprecordid: this.businessId,
1528
- pendingAttr: 0,
1529
- viewType: this.viewType,
1530
- showSuggest: this.showSuggest,
1531
- ...this.params
1532
- }
1533
- };
1534
- util
1535
- .ajax(params)
1536
- .then((res) => {
1537
- const {
1538
- status,
1539
- message,
1540
- data: {
1541
- adjunctCode,
1542
- wfHistoryList,
1543
- fyHistoryList,
1544
- hasAgent,
1545
- isShort,
1546
- modify,
1547
- taskReadName
1548
- }
1549
- } = res;
1550
- this.loading.close();
1551
- if (status == 'success') {
1552
- this.flowTableInfo.adjunctCode = adjunctCode;
1553
- this.flowTableInfo.hasAgent = hasAgent;
1554
- this.attachmentPaperClipCssStyle =
1555
- res.data.attachmentPaperClipCssStyle;
1556
- this.isShort = isShort;
1557
- this.taskReadName = taskReadName;
1558
- this.flowData = wfHistoryList;
1559
- this.flowData.map((x) => {
1560
- if (!x.deptid) {
1561
- x.deptid = x.deptName;
1562
- }
1563
- });
1564
- this.splitReadingData = fyHistoryList;
1565
- this.modify = modify;
1566
- this.show = true;
1567
- if (this.height == 'auto') {
1568
- this.$nextTick(() => {
1569
- this.content.map((x) => {
1570
- this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1571
- });
1572
- });
1573
- }
1574
- if (this.contents.indexOf('circular') != -1) {
1575
- this.getCircularReadList();
1576
- } else {
1577
- this.$nextTick(() => {
1578
- this.getListCount(this.flowListCount);
1579
- });
1580
- }
1581
- } else {
1582
- this.$message.error(message || '系统错误,请联系管理员!');
1583
- }
1584
- })
1585
- .catch((err) => {
1586
- this.loading.close();
1587
- if (err.message && err.message !== 'canceled') {
1588
- this.$message.error(err.message);
1589
- }
1590
- this.show = true;
1591
- });
1592
- },
1593
- /**
1594
- * handleClick
1595
- * @desc:表单点击事件
1596
- * @param {Object} val 当前点击行数据及按钮
1597
- * @author liufan
1598
- * @date 2022年11月10日
1599
- **/
1600
- handleClick(val) {
1601
- const {
1602
- handle: { text },
1603
- row: { id, status }
1604
- } = val;
1605
- if (text === '置为失效') {
1606
- if (status == 0) {
1607
- this.$confirm('您确定要置为失效吗?')
1608
- .then(() => {
1609
- this.loading = util.loading(this.$loading, '提交中...');
1610
- let param = {
1611
- url: deletePresetInfo,
1612
- headers: { Accept: 'application/json,text/plain' },
1613
- method: 'post',
1614
- params: { id }
1615
- };
1616
- util
1617
- .ajax(param)
1618
- .then((res) => {
1619
- const { status, message } = res;
1620
- this.loading.close();
1621
- if (status === 'success') {
1622
- this.$message.success('操作成功');
1623
- this.getListInfo();
1624
- } else {
1625
- this.$message.error(message || '系统错误,请联系管理员!');
1626
- }
1627
- })
1628
- .catch((err) => {
1629
- this.loading.close();
1630
- if (err.message && err.message !== 'canceled') {
1631
- this.$message.error(err.message);
1632
- }
1633
- });
1634
- })
1635
- .catch((e) => {
1636
- // on cancel
1637
- });
1638
- } else {
1639
- this.$message.warning('当前数据已为失效状态');
1640
- }
1641
- }
1642
- },
1643
- /**
1644
- * getCodeValue
1645
- * @desc:获取代码表过滤后的值
1646
- * @param {String} value 展示数据的代码值
1647
- * @param {String} type 代码表类型
1648
- * @author liufan
1649
- * @date 2022年11月10日
1650
- **/
1651
- getCodeValue(value, type) {
1652
- let val = this[type].filter((item) => item.cciValue == value);
1653
- return val[0].shortName;
1654
- },
1655
- /**
1656
- * getSysInfo
1657
- * @desc:获取代码表
1658
- * @param {String} code 编码code值
1659
- * @author liufan
1660
- * @date 2022年11月10日
1661
- **/
1662
- getSysInfo(code) {
1663
- let params = {
1664
- url: findCodeValues,
1665
- params: { ccCode: code }
1666
- };
1667
- util
1668
- .ajax(params)
1669
- .then((res) => {
1670
- const { status, message, data } = res;
1671
- if (status == 'success') {
1672
- this[code] = data;
1673
- } else {
1674
- this.$message.error(message || '系统错误,请联系管理员!');
1675
- }
1676
- })
1677
- .catch((e) => {});
1678
- },
1679
- /**
1680
- * getListInfo
1681
- * @desc:获取预设列表数据
1682
- * @author liufan
1683
- * @date 2022年11月10日
1684
- **/
1685
- getListInfo() {
1686
- let param = {
1687
- url: toPresetInfoListIndex,
1688
- params: { apprecordid: this.businessId }
1689
- };
1690
- util
1691
- .ajax(param)
1692
- .then((res) => {
1693
- const {
1694
- status,
1695
- message,
1696
- data: {
1697
- presetInfoList,
1698
- presetInfoListHiddenColumns,
1699
- canDelete,
1700
- currentUserHasPresetInfoAuth
1701
- }
1702
- } = res;
1703
- this.loading.close();
1704
- if (status == 'success') {
1705
- presetInfoList && (this.presetData = presetInfoList);
1706
- this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1707
- this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1708
- this.canDelete = canDelete;
1709
- } else {
1710
- this.$message.error(message || '系统错误,请联系管理员!');
1711
- }
1712
- })
1713
- .catch((err) => {
1714
- this.loading.close();
1715
- if (err.message && err.message !== 'canceled') {
1716
- this.$message.error(err.message);
1717
- }
1718
- });
1719
- }
1720
- }
1721
- };
1722
- </script>
1723
-
1724
- <style></style>
1
+ <template>
2
+ <div class="es-flow-list">
3
+ <div
4
+ class="es-flow-list-item"
5
+ v-for="(item, index) in content"
6
+ :key="index"
7
+ v-show="
8
+ (item.type == 'splitReading' &&
9
+ splitReadingData &&
10
+ splitReadingData.length > 0) ||
11
+ (item.type == 'preset' &&
12
+ presetData &&
13
+ presetData.length > 0 &&
14
+ currentUserHasPresetInfoAuth) ||
15
+ (item.type != 'splitReading' && item.type != 'preset')
16
+ "
17
+ >
18
+ <div
19
+ class="es-flow-list-box"
20
+ :ref="item.type"
21
+ :style="`position:${height == 'auto' ? 'unset' : 'absolute'}`"
22
+ >
23
+ <es-data-table
24
+ v-if="show"
25
+ :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
26
+ :display="display"
27
+ :numbers="numbers"
28
+ @cell-click="handleCellClick"
29
+ :full="height !== 'auto'"
30
+ v-bind="item"
31
+ :data="returnData(item.type)"
32
+ @btn-click="handleBtnClick"
33
+ @selection-change="handleSelectionChange"
34
+ ></es-data-table>
35
+ </div>
36
+ </div>
37
+ <es-dialog
38
+ append-to-body
39
+ :close-on-click-modal="false"
40
+ title="查看附件"
41
+ :visible.sync="showFileList"
42
+ v-if="showFileList"
43
+ >
44
+ <FileList
45
+ :ownId="wfpendingid"
46
+ :code="flowTableInfo.adjunctCode"
47
+ :deleted="false"
48
+ :disabled="true"
49
+ @cancel="showFileList = false"
50
+ />
51
+ </es-dialog>
52
+ <es-dialog
53
+ append-to-body
54
+ :close-on-click-modal="false"
55
+ title="查看催办记录"
56
+ :visible.sync="showPress"
57
+ height="500px"
58
+ v-if="showPress"
59
+ >
60
+ <div style="height: 400px" v-loading="pressLoading">
61
+ <es-data-table
62
+ v-if="show"
63
+ :data="pressTableList"
64
+ :thead="pressThead"
65
+ @page-size-change="handleSizeChange"
66
+ @page-current-change="handleCurrentChange"
67
+ stripe
68
+ full
69
+ style="width: 100%"
70
+ @sort-change="sortChange"
71
+ :page="pageInfo"
72
+ />
73
+ </div>
74
+ </es-dialog>
75
+ <es-dialog
76
+ append-to-body
77
+ :close-on-click-modal="false"
78
+ title="删除"
79
+ :visible.sync="showDel"
80
+ height="auto"
81
+ class="del-flow"
82
+ v-if="showDel"
83
+ >
84
+ <es-form
85
+ v-loading="delLoading"
86
+ :model="formData"
87
+ :contents="formItemList"
88
+ @submit="handleFormSubmit"
89
+ >
90
+ </es-form>
91
+ </es-dialog>
92
+ </div>
93
+ </template>
94
+
95
+ <script>
96
+ import {
97
+ findCodeValues,
98
+ deletePresetInfo,
99
+ pendedhistoryListJson,
100
+ toPresetInfoListIndex,
101
+ pressListJson,
102
+ pendedhistoryListWithCircularReadJson,
103
+ deleteFlow,
104
+ taskReadWithDraw,
105
+ fyListJson,
106
+ circularReadWithdraw
107
+ } from 'eoss-ui/src/config/api';
108
+ import FileList from '../../flow/src/component/FileList.vue';
109
+ import util from 'eoss-ui/src/utils/util';
110
+ export default {
111
+ name: 'EsFlowList',
112
+ components: {
113
+ [FileList.name]: FileList
114
+ },
115
+ props: {
116
+ businessId: {
117
+ type: String,
118
+ default: ''
119
+ },
120
+ getListCount: {
121
+ type: Function,
122
+ default: () => {}
123
+ },
124
+ hide: {
125
+ type: String,
126
+ default: ''
127
+ },
128
+ hideBtn: {
129
+ type: Boolean,
130
+ default: false
131
+ },
132
+ params: {
133
+ type: Object,
134
+ default: () => {
135
+ return {};
136
+ }
137
+ },
138
+ toolbar: {
139
+ type: Array,
140
+ default: () => []
141
+ },
142
+ headFields: {
143
+ type: Array,
144
+ default: () => []
145
+ },
146
+ contents: {
147
+ type: Array,
148
+ default() {
149
+ return ['flow', 'splitReading', 'preset'];
150
+ }
151
+ },
152
+ numbers: {
153
+ type: Boolean,
154
+ default: false
155
+ },
156
+ height: {
157
+ type: String,
158
+ default: ''
159
+ },
160
+ showDoresult: {
161
+ type: Boolean,
162
+ default: false
163
+ },
164
+ theadWidth: {
165
+ type: Object,
166
+ default: () => {
167
+ return {};
168
+ }
169
+ },
170
+ type: {
171
+ type: String,
172
+ default: ''
173
+ },
174
+ display: Boolean
175
+ },
176
+ inheritAttrs: false,
177
+ data() {
178
+ return {
179
+ pressLoading: false,
180
+ pressTableList: [],
181
+ circularData: [],
182
+ selectList: [],
183
+ flowHeight: '',
184
+ presetHeight: '',
185
+ signHeight: '',
186
+ splitReadingHeight: '',
187
+ circularHeight: '',
188
+ untreatedReadHeight: '',
189
+ processedReadHeight: '',
190
+ untreatedReadData: [],
191
+ processedReadData: [],
192
+ hasCircularReadWithdrawAuthority: false,
193
+ currentPage: 1,
194
+ pageSize: 20,
195
+ flowListCount: {},
196
+ currentUserHasPresetInfoAuth: false,
197
+ pressThead: [
198
+ {
199
+ title: '催办节点',
200
+ align: 'center',
201
+ sortable: true,
202
+ field: 'urge_item'
203
+ },
204
+ {
205
+ title: '催办人名称',
206
+ sortable: true,
207
+ align: 'center',
208
+ field: 'urge_man_name'
209
+ },
210
+ {
211
+ title: '催办时间',
212
+ sortable: true,
213
+ align: 'center',
214
+ field: 'urge_time'
215
+ },
216
+ {
217
+ title: '被催办人名称',
218
+ align: 'center',
219
+ sortable: true,
220
+ field: 'urged_man_name'
221
+ }
222
+ ],
223
+ wfpendingid: '',
224
+ showFileList: false,
225
+ flowData: [],
226
+ splitReadingData: [],
227
+ presetData: [],
228
+ signData: [],
229
+ loading: '', //加载中
230
+ preset_type: [], //预设类型
231
+ showPress: false, //查看催办记录弹窗
232
+ modify: false,
233
+ formData: { reason: '' },
234
+ formItemList: [
235
+ {
236
+ name: 'reason',
237
+ label: '删除原因',
238
+ type: 'textarea',
239
+ placeholder: '请输入删除原因',
240
+ rules: {
241
+ required: true,
242
+ message: '请输入删除原因',
243
+ trigger: 'blur'
244
+ },
245
+ value: '',
246
+ rows: 5
247
+ },
248
+ {
249
+ type: 'submit',
250
+ skin: 'lay-form-btns',
251
+ contents: [
252
+ {
253
+ type: 'primary',
254
+ plain: true,
255
+ text: '保存',
256
+ event: 'confirm'
257
+ }
258
+ ]
259
+ }
260
+ ],
261
+ delLoading: false,
262
+ showDel: false,
263
+ attachmentPaperClipCssStyle: '',
264
+ is_edit: [], //是否可编辑
265
+ flowTableInfo: {
266
+ adjunctCode: '',
267
+ hasAgent: '1' //是否展示代办人 1:展示 0:不展示
268
+ },
269
+ show: false,
270
+ taskReadName: '', //非流程列表名称
271
+ options: [
272
+ { label: '时间排序', value: '1' },
273
+ { label: '部门排序', value: '2' },
274
+ { label: '树形排序', value: '3' }
275
+ ],
276
+ isShort: 0, //是否隐藏筛选
277
+ viewType: '1', //排序方式
278
+ flowTableList: [], //流程列表
279
+ fyTableList: [], //分阅列表
280
+ showSuggest: 'all', //筛选显示数据
281
+ presetInfoListHiddenColumns: '', //隐藏表格展示数据
282
+ canDelete: false, //是否展示操作按钮
283
+ historyId: '',
284
+ sidx: '',
285
+ sord: '',
286
+ total: 0
287
+ };
288
+ },
289
+ computed: {
290
+ toolbars() {
291
+ return {
292
+ flow: [
293
+ {
294
+ type: 'text',
295
+ contents: '流程列表'
296
+ },
297
+ {
298
+ type: 'search',
299
+ contents: [
300
+ {
301
+ name: 'showSuggest',
302
+ type: 'radio',
303
+ changeSearch: true,
304
+ data: [
305
+ {
306
+ value: 'all',
307
+ name: '显示全部',
308
+ checked: true
309
+ },
310
+ { value: 'have', name: '显示已填意见' }
311
+ ],
312
+ events: {
313
+ change: (key, value) => {
314
+ this.handleChange(key, value);
315
+ }
316
+ }
317
+ },
318
+ {
319
+ type: 'select',
320
+ placeholder: '请选择',
321
+ name: 'viewType',
322
+ width: '140px',
323
+ changeSearch: true,
324
+ events: {
325
+ change: (key, value) => {
326
+ this.handleChange(key, value);
327
+ }
328
+ },
329
+ data: [
330
+ {
331
+ value: 1,
332
+ selected: true,
333
+ name: '时间排序'
334
+ },
335
+ {
336
+ value: 2,
337
+ name: '部门排序'
338
+ },
339
+ {
340
+ value: 3,
341
+ name: '树形排序'
342
+ }
343
+ ]
344
+ }
345
+ ]
346
+ }
347
+ ],
348
+ preset: [
349
+ {
350
+ type: 'text',
351
+ contents: '预设列表'
352
+ }
353
+ ],
354
+ sign: [
355
+ {
356
+ type: 'button',
357
+ contents: [
358
+ {
359
+ text: '生成处理签',
360
+ type: 'primary'
361
+ }
362
+ ]
363
+ }
364
+ ],
365
+ splitReading: [
366
+ {
367
+ type: 'text',
368
+ contents:
369
+ (this.taskReadName ? this.taskReadName : '非流程') + '列表'
370
+ }
371
+ ],
372
+ circular: [
373
+ {
374
+ type: 'text',
375
+ contents: '传阅列表'
376
+ }
377
+ ],
378
+ untreatedRead: [
379
+ {
380
+ type: 'text',
381
+ contents: '未处理分阅列表'
382
+ },
383
+ {
384
+ type: 'button',
385
+ contents: [
386
+ {
387
+ text: '撤销分阅',
388
+ fun: 'recallRead'
389
+ }
390
+ ]
391
+ }
392
+ ],
393
+ processedRead: [
394
+ {
395
+ type: 'text',
396
+ contents: '已处理分阅列表'
397
+ }
398
+ ]
399
+ // Reading situation
400
+ };
401
+ },
402
+ pageInfo() {
403
+ return {
404
+ pageNum: this.currentPage,
405
+ pageSize: this.pageSize,
406
+ totalCount: this.total
407
+ };
408
+ },
409
+ theads() {
410
+ const _that = this;
411
+ return {
412
+ flow: [
413
+ {
414
+ label: '经办部门',
415
+ field: 'deptid',
416
+ align: 'center',
417
+ key: 'jbbm',
418
+ showOverflowTooltip: true,
419
+ width: this.theadWidth.deptid || 150,
420
+ render: (h, params) => {
421
+ return h(
422
+ 'span',
423
+ {},
424
+ params.row.doDeptName
425
+ ? params.row.doDeptName
426
+ : params.row.deptName
427
+ );
428
+ }
429
+ },
430
+ {
431
+ label: '步骤',
432
+ field: 'itemname',
433
+ align: 'center',
434
+ key: 'bz',
435
+ showOverflowTooltip: true,
436
+ width: this.theadWidth.itemname || 110
437
+ },
438
+ {
439
+ label: '办理人',
440
+ field: 'userName',
441
+ align: 'center',
442
+ key: 'blr',
443
+ showOverflowTooltip: true,
444
+ width: this.theadWidth.userName || 110
445
+ },
446
+ {
447
+ label: '办理人部门',
448
+ field: 'deptName',
449
+ align: 'center',
450
+ showOverflowTooltip: true,
451
+ key: 'blrbm',
452
+ width: this.theadWidth.deptName || 110
453
+ },
454
+ {
455
+ label: '状态',
456
+ field: 'pendstate',
457
+ key: 'zt',
458
+ align: 'center',
459
+ showOverflowTooltip: true,
460
+ width: this.theadWidth.pendstate || 80,
461
+ render: (h, params) => {
462
+ return h('span', {
463
+ style: {
464
+ color:
465
+ params.row.pendstate == 0 || params.row.pendstate == 3
466
+ ? 'red'
467
+ : params.row.pendstate == 1
468
+ ? 'green'
469
+ : 'deepskyblue'
470
+ },
471
+ domProps: { innerHTML: params.row.querykeywords }
472
+ });
473
+ }
474
+ },
475
+ {
476
+ label: '办理意见',
477
+ field: 'doresult',
478
+ align: 'center',
479
+ width: this.theadWidth.doresult,
480
+ showOverflowTooltip: true,
481
+ key: 'blyj',
482
+ render: (h, params) => {
483
+ if (
484
+ params.row.doresult &&
485
+ (params.row.doresult.startsWith('http') ||
486
+ params.row.doresult.startsWith('https'))
487
+ ) {
488
+ return h('img', {
489
+ attrs: { src: params.row.doresult },
490
+ style: { width: '100px', height: '100px' }
491
+ });
492
+ } else {
493
+ return h('span', {}, [
494
+ params.row.doresult
495
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
496
+ : '',
497
+ h(
498
+ 'span',
499
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
500
+ params.row.handleInfo || ''
501
+ )
502
+ ]);
503
+ }
504
+ }
505
+ },
506
+ {
507
+ label: '验签',
508
+ field: 'authTypeStr',
509
+ align: 'center',
510
+ key: 'yq',
511
+ showOverflowTooltip: true,
512
+ width: this.theadWidth.authTypeStr || 70,
513
+ render: (h, params) => {
514
+ return h(
515
+ 'span',
516
+ { style: { color: 'deepskyblue' } },
517
+ params.row.authTypeStr
518
+ );
519
+ }
520
+ },
521
+ {
522
+ label: '附件',
523
+ key: 'fj',
524
+ field: 'hasAdjunct',
525
+ align: 'center',
526
+ showOverflowTooltip: true,
527
+ width: this.theadWidth.hasAdjunct || 70,
528
+ render: (h, params) => {
529
+ if (params.row.hasAdjunct) {
530
+ return h('span', {
531
+ style: _that.attachmentPaperClipCssStyle
532
+ ? _that.attachmentPaperClipCssStyle
533
+ : { color: 'red', fontSize: '20px' },
534
+ class: 'iconfont es-icon-fujian'
535
+ });
536
+ } else {
537
+ return h('span', {}, '');
538
+ }
539
+ }
540
+ },
541
+ {
542
+ label: '时间',
543
+ field: 'doetime',
544
+ align: 'center',
545
+ key: 'sj',
546
+ showOverflowTooltip: true,
547
+ width: this.theadWidth.doetime || 150,
548
+ render: (h, params) => {
549
+ return h(
550
+ 'span',
551
+ {},
552
+ params.row.doetime
553
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
554
+ : ''
555
+ );
556
+ }
557
+ },
558
+ {
559
+ label: '代办人',
560
+ field: 'douserid',
561
+ align: 'center',
562
+ key: 'dbr',
563
+ showOverflowTooltip: true,
564
+ width: this.theadWidth.douserid || 80,
565
+ hide: _that.flowTableInfo.hasAgent != '1'
566
+ },
567
+ {
568
+ label: '催办',
569
+ field: 'pressTimes',
570
+ align: 'center',
571
+ key: 'cb',
572
+ showOverflowTooltip: true,
573
+ width: this.theadWidth.pressTimes || 150,
574
+ render: (h, params) => {
575
+ return h(
576
+ 'span',
577
+ { style: 'color:deepskyblue;cursor: pointer;' },
578
+ params.row.pressTimes
579
+ );
580
+ }
581
+ },
582
+ {
583
+ title: '操作',
584
+ type: 'handle',
585
+ width: this.modify ? '130' : '100',
586
+ template: '',
587
+ hide: this.hideBtn,
588
+ events: [
589
+ {
590
+ text: '删除',
591
+ rules: (rows) => {
592
+ return rows.canDelete;
593
+ }
594
+ }
595
+ // {
596
+ // text: '修改',
597
+ // rules: (rows) => {
598
+ // return this.modify && rows.pendstate == 2;
599
+ // }
600
+ // }
601
+ ]
602
+ }
603
+ ],
604
+ preset: this.thead,
605
+ splitReading: [
606
+ {
607
+ label: '经办部门',
608
+ field: 'deptid',
609
+ key: 'jbbm',
610
+ align: 'center',
611
+ showOverflowTooltip: true,
612
+ width: this.theadWidth.deptid || 150
613
+ },
614
+ {
615
+ label: '步骤',
616
+ field: 'itemname',
617
+ align: 'center',
618
+ key: 'bz',
619
+ showOverflowTooltip: true,
620
+ width: this.theadWidth.itemname || 110
621
+ },
622
+ {
623
+ label: '办理人',
624
+ field: 'userName',
625
+ align: 'center',
626
+ key: 'blr',
627
+ showOverflowTooltip: true,
628
+ width: this.theadWidth.userName || 110
629
+ },
630
+ {
631
+ label: '状态',
632
+ field: 'pendstate',
633
+ align: 'center',
634
+ key: 'zt',
635
+ showOverflowTooltip: true,
636
+ width: this.theadWidth.pendstate || 80,
637
+ render: (h, params) => {
638
+ return h('span', {
639
+ style: {
640
+ color:
641
+ params.row.pendstate == 0 || params.row.pendstate == 3
642
+ ? 'red'
643
+ : params.row.pendstate == 1
644
+ ? 'green'
645
+ : 'deepskyblue'
646
+ },
647
+ domProps: { innerHTML: params.row.querykeywords }
648
+ });
649
+ }
650
+ },
651
+ {
652
+ label: '办理意见',
653
+ field: 'doresult',
654
+ align: 'center',
655
+ key: 'blyj',
656
+ width: this.theadWidth.doresult,
657
+ showOverflowTooltip: true,
658
+ render: (h, params) => {
659
+ if (
660
+ params.row.doresult &&
661
+ (params.row.doresult.startsWith('http') ||
662
+ params.row.doresult.startsWith('https'))
663
+ ) {
664
+ return h('img', {
665
+ attrs: { src: params.row.doresult },
666
+ style: { width: '100px', height: '100px' }
667
+ });
668
+ } else {
669
+ return h('span', {}, [
670
+ params.row.doresult
671
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
672
+ : '',
673
+ h(
674
+ 'span',
675
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
676
+ params.row.handleInfo || ''
677
+ )
678
+ ]);
679
+ }
680
+ }
681
+ },
682
+ {
683
+ label: '验签',
684
+ field: 'authTypeStr',
685
+ align: 'center',
686
+ key: 'yq',
687
+ showOverflowTooltip: true,
688
+ width: this.theadWidth.authTypeStr || 70,
689
+ render: (h, params) => {
690
+ return h(
691
+ 'span',
692
+ { style: { color: 'deepskyblue' } },
693
+ params.row.authTypeStr
694
+ );
695
+ }
696
+ },
697
+ {
698
+ label: '附件',
699
+ field: 'hasAdjunct',
700
+ align: 'center',
701
+ key: 'fj',
702
+ showOverflowTooltip: true,
703
+ width: this.theadWidth.hasAdjunct || 70,
704
+ render: (h, params) => {
705
+ if (params.row.hasAdjunct) {
706
+ return h('span', {
707
+ style: _that.attachmentPaperClipCssStyle
708
+ ? _that.attachmentPaperClipCssStyle
709
+ : { color: 'red', fontSize: '20px' },
710
+ class: 'iconfont es-icon-fujian'
711
+ });
712
+ } else {
713
+ return h('span', {}, '');
714
+ }
715
+ }
716
+ },
717
+ {
718
+ label: '时间',
719
+ field: 'doetime',
720
+ align: 'center',
721
+ key: 'sj',
722
+ showOverflowTooltip: true,
723
+ width: this.theadWidth.doetime || 150,
724
+ render: (h, params) => {
725
+ return h(
726
+ 'span',
727
+ {},
728
+ params.row.doetime
729
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
730
+ : ''
731
+ );
732
+ }
733
+ },
734
+ {
735
+ label: '代办人',
736
+ field: 'douserid',
737
+ align: 'center',
738
+ key: 'dbr',
739
+ showOverflowTooltip: true,
740
+ width: this.theadWidth.douserid || 80,
741
+ hide: _that.flowTableInfo.hasAgent != '1'
742
+ },
743
+ {
744
+ label: '催办',
745
+ field: 'pressTimes',
746
+ align: 'center',
747
+ key: 'cb',
748
+ showOverflowTooltip: true,
749
+ width: this.theadWidth.pressTimes || 150,
750
+ render: (h, params) => {
751
+ return h(
752
+ 'span',
753
+ { style: 'color:deepskyblue;cursor: pointer;' },
754
+ params.row.pressTimes
755
+ );
756
+ }
757
+ },
758
+ {
759
+ title: '操作',
760
+ type: 'handle',
761
+ width: '100',
762
+ template: '',
763
+ hide: this.hideBtn,
764
+ events: [
765
+ {
766
+ text: '删除',
767
+ rules: (rows) => {
768
+ return rows.canDelete;
769
+ }
770
+ }
771
+ ]
772
+ }
773
+ ],
774
+ circular: [
775
+ {
776
+ label: '发起人',
777
+ field: 'circularReadInitiatorName',
778
+ align: 'center',
779
+ key: 'fqr',
780
+ showOverflowTooltip: true,
781
+ width: this.theadWidth.circularReadInitiatorName || 150
782
+ },
783
+ {
784
+ label: '传阅部门',
785
+ field: 'circularReadOrgName',
786
+ align: 'center',
787
+ key: 'cybm',
788
+ showOverflowTooltip: true,
789
+ width: this.theadWidth.circularReadOrgName || 110
790
+ },
791
+ {
792
+ label: '传阅人',
793
+ field: 'userName',
794
+ align: 'center',
795
+ key: 'cyr',
796
+ showOverflowTooltip: true,
797
+ width: this.theadWidth.userName || 110
798
+ },
799
+ {
800
+ label: '步骤',
801
+ field: 'itemname',
802
+ align: 'center',
803
+ showOverflowTooltip: true,
804
+ key: 'bz',
805
+ width: this.theadWidth.itemname || 110
806
+ },
807
+ {
808
+ label: '状态',
809
+ field: 'pendstate',
810
+ key: 'zt',
811
+ align: 'center',
812
+ showOverflowTooltip: true,
813
+ width: this.theadWidth.pendstate || 140,
814
+ render: (h, params) => {
815
+ return h('span', {
816
+ style: {
817
+ color:
818
+ params.row.pendstate == 0 || params.row.pendstate == 3
819
+ ? 'red'
820
+ : params.row.pendstate == 1
821
+ ? 'green'
822
+ : 'deepskyblue',
823
+ cursor: this.hasCircularReadWithdrawAuthority
824
+ ? 'pointer'
825
+ : 'unset'
826
+ },
827
+ domProps: {
828
+ innerHTML:
829
+ params.row.querykeywords +
830
+ (this.hasCircularReadWithdrawAuthority
831
+ ? `<span style="color:#7AB0D5">(撤回)</span>`
832
+ : '')
833
+ }
834
+ });
835
+ }
836
+ },
837
+ {
838
+ label: '送达时间',
839
+ field: 'createtime',
840
+ align: 'center',
841
+ key: 'sdsj',
842
+ showOverflowTooltip: true,
843
+ width: this.theadWidth.createtime || 170
844
+ },
845
+ {
846
+ label: '办理时间',
847
+ field: 'doetime',
848
+ align: 'center',
849
+ key: 'blsj',
850
+ showOverflowTooltip: true,
851
+ width: this.theadWidth.doetime || 150
852
+ },
853
+
854
+ {
855
+ label: '附件',
856
+ key: 'fj',
857
+ field: 'hasAdjunct',
858
+ align: 'center',
859
+ showOverflowTooltip: true,
860
+ width: this.theadWidth.hasAdjunct || 70,
861
+ render: (h, params) => {
862
+ if (params.row.hasAdjunct) {
863
+ return h('span', {
864
+ style: _that.attachmentPaperClipCssStyle
865
+ ? _that.attachmentPaperClipCssStyle
866
+ : { color: 'red', fontSize: '20px' },
867
+ class: 'iconfont es-icon-fujian'
868
+ });
869
+ } else {
870
+ return h('span', {}, '');
871
+ }
872
+ }
873
+ },
874
+ {
875
+ label: '提醒',
876
+ field: 'pressTimes',
877
+ align: 'center',
878
+ key: 'tx',
879
+ showOverflowTooltip: true,
880
+ width: this.theadWidth.pressTimes || 150,
881
+ render: (h, params) => {
882
+ return h(
883
+ 'span',
884
+ { style: 'color:deepskyblue;cursor: pointer;' },
885
+ params.row.pressTimes
886
+ );
887
+ }
888
+ },
889
+ {
890
+ label: '阅结意见 & 说明',
891
+ field: 'doresult',
892
+ align: 'center',
893
+ width: this.theadWidth.doresult,
894
+ showOverflowTooltip: true,
895
+ key: 'blyj',
896
+ render: (h, params) => {
897
+ if (
898
+ params.row.doresult &&
899
+ (params.row.doresult.startsWith('http') ||
900
+ params.row.doresult.startsWith('https'))
901
+ ) {
902
+ return h('img', {
903
+ attrs: { src: params.row.doresult },
904
+ style: { width: '100px', height: '100px' }
905
+ });
906
+ } else {
907
+ return h('span', {}, [
908
+ params.row.doresult
909
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
910
+ : '',
911
+ h(
912
+ 'span',
913
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
914
+ params.row.handleInfo || ''
915
+ )
916
+ ]);
917
+ }
918
+ }
919
+ }
920
+ ],
921
+ untreatedRead: [
922
+ {
923
+ label: '步骤',
924
+ field: 'itemid',
925
+ align: 'center',
926
+ key: 'bz',
927
+ showOverflowTooltip: true,
928
+ width: this.theadWidth.itemid || 110
929
+ },
930
+ {
931
+ label: '办理人',
932
+ field: 'userName',
933
+ align: 'center',
934
+ key: 'blr',
935
+ showOverflowTooltip: true,
936
+ width: this.theadWidth.userName
937
+ },
938
+ {
939
+ label: '办理状态',
940
+ field: 'pendstate',
941
+ key: 'blzt',
942
+ align: 'center',
943
+ showOverflowTooltip: true,
944
+ width: this.theadWidth.pendstate || 110,
945
+ render: (h, params) => {
946
+ return h('span', {
947
+ style: {
948
+ color:
949
+ params.row.pendstate == 0 || params.row.pendstate == 3
950
+ ? 'red'
951
+ : params.row.pendstate == 1
952
+ ? 'green'
953
+ : 'deepskyblue'
954
+ },
955
+ domProps: { innerHTML: params.row.querykeywords }
956
+ });
957
+ }
958
+ },
959
+ {
960
+ label: '创建时间',
961
+ field: 'createtime',
962
+ align: 'center',
963
+ key: 'cjsj',
964
+ showOverflowTooltip: true,
965
+ width: this.theadWidth.createtime || 150,
966
+ render: (h, params) => {
967
+ return h(
968
+ 'span',
969
+ {},
970
+ params.row.doetime
971
+ ? util.formatDate(params.row.createtime, 'yyyy-MM-dd HH:mm')
972
+ : ''
973
+ );
974
+ }
975
+ }
976
+ ],
977
+ processedRead: [
978
+ {
979
+ label: '步骤',
980
+ field: 'itemid',
981
+ align: 'center',
982
+ key: 'bz',
983
+ showOverflowTooltip: true,
984
+ width: this.theadWidth.itemid || 110
985
+ },
986
+ {
987
+ label: '办理人',
988
+ field: 'userName',
989
+ align: 'center',
990
+ key: 'blr',
991
+ showOverflowTooltip: true,
992
+ width: this.theadWidth.userName
993
+ },
994
+ {
995
+ label: '办理状态',
996
+ field: 'pendstate',
997
+ key: 'blzt',
998
+ align: 'center',
999
+ showOverflowTooltip: true,
1000
+ width: this.theadWidth.pendstate || 110,
1001
+ render: (h, params) => {
1002
+ return h('span', {
1003
+ style: {
1004
+ color:
1005
+ params.row.pendstate == 0 || params.row.pendstate == 3
1006
+ ? 'red'
1007
+ : params.row.pendstate == 1
1008
+ ? 'green'
1009
+ : 'deepskyblue'
1010
+ },
1011
+ domProps: { innerHTML: params.row.querykeywords }
1012
+ });
1013
+ }
1014
+ },
1015
+ {
1016
+ label: '办理时间',
1017
+ field: 'doetime',
1018
+ align: 'center',
1019
+ key: 'blsj',
1020
+ showOverflowTooltip: true,
1021
+ width: this.theadWidth.doetime || 150,
1022
+ render: (h, params) => {
1023
+ return h(
1024
+ 'span',
1025
+ {},
1026
+ params.row.doetime
1027
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
1028
+ : ''
1029
+ );
1030
+ }
1031
+ },
1032
+ {
1033
+ label: '代办人',
1034
+ field: 'douserid',
1035
+ align: 'center',
1036
+ key: 'dbr',
1037
+ showOverflowTooltip: true,
1038
+ width: this.theadWidth.douserid
1039
+ },
1040
+ {
1041
+ label: '意见',
1042
+ field: 'doresult',
1043
+ align: 'center',
1044
+ key: 'yj',
1045
+ showOverflowTooltip: true,
1046
+ width: this.theadWidth.doresult
1047
+ }
1048
+ ]
1049
+ };
1050
+ },
1051
+ content() {
1052
+ const _that = this;
1053
+ let newContents = JSON.parse(JSON.stringify(this.contents));
1054
+ if (this.contents.indexOf('circular') != -1) {
1055
+ newContents = newContents.filter((item) => item != 'splitReading');
1056
+ }
1057
+ if (newContents.indexOf('readingSituation') != -1) {
1058
+ newContents = ['untreatedRead', 'processedRead'];
1059
+ }
1060
+ let contents = newContents.map((item) => {
1061
+ if (typeof item === 'string') {
1062
+ let data = [];
1063
+ if (_that.headFields.length > 0) {
1064
+ _that.headFields.map((headFiled) => {
1065
+ if (headFiled.showDefault) {
1066
+ _that.theads[item].map((theadItem) => {
1067
+ if (theadItem.field === headFiled.field) {
1068
+ data.push({ ...theadItem, ...headFiled });
1069
+ }
1070
+ });
1071
+ } else {
1072
+ data.push(headFiled);
1073
+ }
1074
+ });
1075
+ _that.theads[item].map((x) => {
1076
+ if (x.type == 'handle') {
1077
+ data.push(x);
1078
+ }
1079
+ });
1080
+ }
1081
+ return {
1082
+ type: item,
1083
+ checkbox: newContents.indexOf('untreatedRead') != -1,
1084
+ toolbar: this.toolbars[item],
1085
+ thead: data.length > 0 ? data : this.theads[item],
1086
+ showFormBtn: false
1087
+ };
1088
+ } else {
1089
+ if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
1090
+ let toolbars = this.toolbars[item.type];
1091
+ return { ...item, toolbars };
1092
+ }
1093
+ if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
1094
+ let thead = this.theads[item.type];
1095
+ return { ...item, thead };
1096
+ }
1097
+ return item;
1098
+ }
1099
+ });
1100
+ return contents;
1101
+ },
1102
+ newToolbar() {
1103
+ if (this.toolbar && this.toolbar.length > 0) {
1104
+ return this.toolbar;
1105
+ } else {
1106
+ return [];
1107
+ }
1108
+ },
1109
+ thead() {
1110
+ let table = [
1111
+ {
1112
+ title: '步骤',
1113
+ align: 'center',
1114
+ width: this.theadWidth.nodeName || '100',
1115
+ field: 'nodeName'
1116
+ },
1117
+ {
1118
+ title: '预设办理人',
1119
+ width: this.theadWidth.presetUserName || '120',
1120
+ align: 'center',
1121
+ field: 'presetUserName'
1122
+ },
1123
+ {
1124
+ title: '是否可编辑',
1125
+ key: 'sfkbj',
1126
+ align: 'center',
1127
+ width: this.theadWidth.isEdit || '100',
1128
+ render: (h, params) => {
1129
+ return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
1130
+ },
1131
+ field: 'isEdit'
1132
+ },
1133
+ {
1134
+ key: 'zt',
1135
+ title: '状态',
1136
+ width: this.theadWidth.statusName || '80',
1137
+ align: 'center',
1138
+ field: 'statusName'
1139
+ },
1140
+ {
1141
+ title: '预设类型',
1142
+ key: 'yslx',
1143
+ width: this.theadWidth.presetType || '120',
1144
+ align: 'center',
1145
+ render: (h, params) => {
1146
+ return h(
1147
+ 'span',
1148
+ this.getCodeValue(params.row.presetType, 'preset_type')
1149
+ );
1150
+ },
1151
+ field: 'presetType'
1152
+ },
1153
+ {
1154
+ title: '流程名称',
1155
+ key: 'lcmc',
1156
+ width: this.theadWidth.processDefName,
1157
+ align: 'center',
1158
+ field: 'processDefName'
1159
+ },
1160
+ {
1161
+ title: '上一步骤',
1162
+ key: 'sybz',
1163
+ align: 'center',
1164
+ width: this.theadWidth.lastNodeName,
1165
+ field: 'lastNodeName'
1166
+ },
1167
+ {
1168
+ title: '创建步骤',
1169
+ key: 'cjbz',
1170
+ align: 'center',
1171
+ width: this.theadWidth.operationNodeName,
1172
+ field: 'operationNodeName'
1173
+ },
1174
+ {
1175
+ title: '创建人',
1176
+ key: 'cjr',
1177
+ width: this.theadWidth.creatorName || '120',
1178
+ align: 'center',
1179
+ field: 'creatorName'
1180
+ },
1181
+ {
1182
+ title: '创建时间',
1183
+ width: this.theadWidth.createTime || '150',
1184
+ key: 'cjsj',
1185
+ align: 'center',
1186
+ render: (h, params) => {
1187
+ return h(
1188
+ 'span',
1189
+ util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
1190
+ );
1191
+ },
1192
+ field: 'createTime'
1193
+ },
1194
+ {
1195
+ title: '操作区域',
1196
+ type: 'handle',
1197
+ align: 'center',
1198
+ width: '120',
1199
+ events: [
1200
+ {
1201
+ text: '置为失效'
1202
+ }
1203
+ ]
1204
+ }
1205
+ ];
1206
+ if (
1207
+ this.presetInfoListHiddenColumns != undefined &&
1208
+ this.presetInfoListHiddenColumns != ''
1209
+ ) {
1210
+ table = table.filter(
1211
+ (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
1212
+ );
1213
+ }
1214
+ if (!this.canDelete) table.splice(table.length - 1, 1);
1215
+ return table;
1216
+ }
1217
+ },
1218
+ async mounted() {
1219
+ this.loading = util.loading(this.$loading, '加载中...');
1220
+ if (this.contents.indexOf('readingSituation') != -1) {
1221
+ await this.getFyListJson(1);
1222
+ await this.getFyListJson(2);
1223
+ this.getListCount(this.flowListCount);
1224
+ this.show = true;
1225
+ } else {
1226
+ this.getFlowList();
1227
+ }
1228
+ this.getSysInfo('preset_type');
1229
+ this.getSysInfo('is_edit');
1230
+ this.getListInfo();
1231
+ },
1232
+
1233
+ methods: {
1234
+ recallReadFun() {
1235
+ const _that = this;
1236
+ let pendingIds = _that.selectList.map((x) => x.id).join(',');
1237
+ let params = {
1238
+ url: taskReadWithDraw,
1239
+ params: {
1240
+ pendingIds
1241
+ }
1242
+ };
1243
+ _that.loading = util.loading(_that.$loading, '撤销中...');
1244
+ util.ajax(params).then(async (res) => {
1245
+ _that.loading.close();
1246
+ if (res.rCode == 0 || res.status == 'success') {
1247
+ _that.$message.success('撤销成功!');
1248
+ await _that.getFyListJson(1);
1249
+ _that.getListCount(_that.flowListCount);
1250
+ } else {
1251
+ _that.$message.error(res.message);
1252
+ }
1253
+ });
1254
+ },
1255
+ recallRead() {
1256
+ if (this.selectList.length == 0)
1257
+ return this.$message.warning('请选择需要撤销的分阅');
1258
+ this.$confirm('是否确认撤销选中的分阅?', '提示', {
1259
+ confirmButtonText: '确定',
1260
+ cancelButtonText: '取消',
1261
+ type: 'warning'
1262
+ }).then(() => {
1263
+ this.recallReadFun();
1264
+ });
1265
+ },
1266
+ handleSelectionChange(val) {
1267
+ this.selectList = val;
1268
+ },
1269
+ handledraw(pendedHistoryId) {
1270
+ let params = {
1271
+ url: circularReadWithdraw,
1272
+ params: { pendedHistoryId }
1273
+ };
1274
+ this.$confirm('是否确定撤回当前传阅', {
1275
+ confirmButtonText: '确定',
1276
+ cancelButtonText: '取消',
1277
+ type: 'warning'
1278
+ })
1279
+ .then(() => {
1280
+ this.loading = util.loading(this.$loading, '撤回中...');
1281
+ util.ajax(params).then((res) => {
1282
+ this.loading.close();
1283
+ if (res.rCode == 0) {
1284
+ this.$message({
1285
+ message: '撤回成功',
1286
+ type: 'success'
1287
+ });
1288
+ this.getCircularReadList();
1289
+ }
1290
+ });
1291
+ // _that.subMit(res.results,type)
1292
+ })
1293
+ .catch(() => {});
1294
+ },
1295
+ getCircularReadList() {
1296
+ const _that = this;
1297
+ let params = {
1298
+ url: pendedhistoryListWithCircularReadJson,
1299
+ params: { apprecordid: _that.businessId }
1300
+ };
1301
+ util.ajax(params).then((res) => {
1302
+ if (res.status == 'success' || res.rCode == 0) {
1303
+ if (this.showDoresult && res.data.fyHistoryList) {
1304
+ res.data.fyHistoryList = res.data.fyHistoryList.filter(
1305
+ (x) => x.doresult || x.handleInfo
1306
+ );
1307
+ }
1308
+ _that.circularData = res.data.fyHistoryList;
1309
+ _that.hasCircularReadWithdrawAuthority =
1310
+ res.data.hasCircularReadWithdrawAuthority;
1311
+ _that.$nextTick(() => {
1312
+ _that.getListCount(_that.flowListCount);
1313
+ });
1314
+ }
1315
+ });
1316
+ },
1317
+ returnData(type) {
1318
+ switch (type) {
1319
+ case 'preset':
1320
+ this.flowListCount.preset = this.presetData.length;
1321
+ return this.presetData;
1322
+ case 'sign':
1323
+ this.flowListCount.sign = this.signData.length;
1324
+ return this.signData;
1325
+ case 'splitReading':
1326
+ this.flowListCount.splitReading = this.splitReadingData.length;
1327
+ return this.splitReadingData;
1328
+ case 'circular':
1329
+ this.flowListCount.circular = this.circularData.length;
1330
+ return this.circularData;
1331
+ case 'untreatedRead':
1332
+ this.flowListCount.untreatedRead = this.untreatedReadData.length;
1333
+ return this.untreatedReadData;
1334
+ case 'processedRead':
1335
+ this.flowListCount.processedRead = this.processedReadData.length;
1336
+ return this.processedReadData;
1337
+ default:
1338
+ this.flowListCount.flow = this.flowData.length;
1339
+ return this.flowData;
1340
+ }
1341
+ },
1342
+ handleCellClick(row, column) {
1343
+ if (column.property == 'hasAdjunct' && row.hasAdjunct) {
1344
+ this.showFile(row.wfpendingid);
1345
+ } else if (column.property == 'pressTimes') {
1346
+ this.goPress(row.id);
1347
+ } else if (
1348
+ column.property == 'pendstate' &&
1349
+ this.hasCircularReadWithdrawAuthority
1350
+ ) {
1351
+ this.handledraw(row.id);
1352
+ }
1353
+ },
1354
+ handleBtnClick(data) {
1355
+ // recallRead
1356
+ const { handle, row } = data;
1357
+ if (handle.text == '删除') {
1358
+ this.del(row.id);
1359
+ } else if (handle.fun == 'recallRead') {
1360
+ this[handle.fun]();
1361
+ }
1362
+ },
1363
+ /**
1364
+ * handleFormSubmit
1365
+ * @desc:删除节点点击事件
1366
+ * @param {Object} formData 点击删除的form数据
1367
+ * @author liufan
1368
+ * @date 2022年11月29日
1369
+ **/
1370
+ handleFormSubmit(formData) {
1371
+ this.delLoading = true;
1372
+ let params = {
1373
+ url: deleteFlow,
1374
+ method: 'POST',
1375
+ data: { id: this.historyId, reason: formData.reason }
1376
+ };
1377
+ util
1378
+ .ajax(params)
1379
+ .then((res) => {
1380
+ const { status, message } = res;
1381
+ this.delLoading = false;
1382
+ if (status === 'success') {
1383
+ this.$message.success('删除成功');
1384
+ this.showDel = false;
1385
+ this.handleChange();
1386
+ } else {
1387
+ this.$message.error(message || '系统错误,请联系管理员!');
1388
+ }
1389
+ })
1390
+ .catch((err) => {
1391
+ this.delLoading = false;
1392
+ if (err.message && err.message !== 'canceled') {
1393
+ this.$message.error(err.message);
1394
+ }
1395
+ });
1396
+ },
1397
+ /**
1398
+ * del
1399
+ * @desc:展示删除弹窗
1400
+ * @param {String} id 当前点击数据id
1401
+ * @author liufan
1402
+ * @date 2022年11月29日
1403
+ **/
1404
+ del(id) {
1405
+ this.historyId = id;
1406
+ this.showDel = true;
1407
+ },
1408
+ /**
1409
+ * handleCurrentChange
1410
+ * @desc:监听页码变化
1411
+ * @param {String} val 当前页
1412
+ * @author liufan
1413
+ * @date 2022年11月29日
1414
+ **/
1415
+ handleCurrentChange(val) {
1416
+ this.currentPage = val;
1417
+ this.getPressList();
1418
+ },
1419
+ /**
1420
+ * handleSizeChange
1421
+ * @desc:监听每页数据显示数量变化
1422
+ * @param {String} val 每页展示数量
1423
+ * @author liufan
1424
+ * @date 2022年11月29日
1425
+ **/
1426
+ handleSizeChange(val) {
1427
+ this.pageSize = val;
1428
+ this.getPressList();
1429
+ },
1430
+ /**
1431
+ * sortChange
1432
+ * @desc:监听排序变化
1433
+ * @param {Object} info 需要排序的字段及排序方式
1434
+ * @author liufan
1435
+ * @date 2022年11月29日
1436
+ **/
1437
+ sortChange(info) {
1438
+ let { prop, order } = info;
1439
+ this.sidx = prop;
1440
+ this.sord = order.replace('ending', '');
1441
+ this.getPressList();
1442
+ },
1443
+ /**
1444
+ * getPressList
1445
+ * @desc:催办列表数据
1446
+ * @author liufan
1447
+ * @date 2022年11月29日
1448
+ **/
1449
+ getPressList() {
1450
+ const { historyId, pageSize, sidx, sord, currentPage } = this;
1451
+ this.pressLoading = true;
1452
+ let params = {
1453
+ url: pressListJson,
1454
+ params: { historyId },
1455
+ method: 'POST',
1456
+ data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
1457
+ };
1458
+ util
1459
+ .ajax(params)
1460
+ .then((res) => {
1461
+ this.pressTableList = res.data;
1462
+ this.total = res.totalrecords;
1463
+ this.pressLoading = false;
1464
+ })
1465
+ .catch((err) => {
1466
+ this.pressLoading = false;
1467
+ if (err.message && err.message !== 'canceled') {
1468
+ this.$message.error(err.message);
1469
+ }
1470
+ });
1471
+ },
1472
+ /**
1473
+ * goPress
1474
+ * @desc:催办列表查看
1475
+ * @param {String} id 催办列表id
1476
+ * @author liufan
1477
+ * @date 2022年11月29日
1478
+ **/
1479
+ goPress(id) {
1480
+ this.historyId = id;
1481
+ this.showPress = true;
1482
+ this.getPressList();
1483
+ },
1484
+ /**
1485
+ * showFile
1486
+ * @desc:附件查看
1487
+ * @param {String} ownId 附件id
1488
+ * @author liufan
1489
+ * @date 2022年11月29日
1490
+ **/
1491
+ showFile(ownId) {
1492
+ this.wfpendingid = ownId;
1493
+ this.showFileList = true;
1494
+ },
1495
+ /**
1496
+ * handleChange
1497
+ * @desc:切换排序方式
1498
+ * @author liufan
1499
+ * @date 2022年11月22日
1500
+ **/
1501
+ handleChange(key, value) {
1502
+ if (value) {
1503
+ this[key] = value;
1504
+ }
1505
+ // this.show = false;
1506
+ this.loading = util.loading(this.$loading, '加载中...');
1507
+ this.getFlowList();
1508
+ },
1509
+ async getFyListJson(type) {
1510
+ let params = {
1511
+ url: fyListJson,
1512
+ params: {
1513
+ appRecordId: this.businessId,
1514
+ status: type
1515
+ }
1516
+ };
1517
+ await util.ajax(params).then((res) => {
1518
+ if (this.showDoresult && res.data) {
1519
+ res.data = res.data.filter((x) => x.doresult || x.handleInfo);
1520
+ }
1521
+ if (type == 1) {
1522
+ this.untreatedReadData = res.data;
1523
+ } else {
1524
+ this.processedReadData = res.data;
1525
+ }
1526
+ });
1527
+ },
1528
+ /**
1529
+ * getFlowList
1530
+ * @desc:获取流程列表
1531
+ * @author liufan
1532
+ * @date 2022年11月22日
1533
+ **/
1534
+ getFlowList() {
1535
+ let params = {
1536
+ url: pendedhistoryListJson,
1537
+ params: {
1538
+ apprecordid: this.businessId,
1539
+ pendingAttr: 0,
1540
+ viewType: this.viewType,
1541
+ showSuggest: this.showSuggest,
1542
+ ...this.params
1543
+ }
1544
+ };
1545
+ util
1546
+ .ajax(params)
1547
+ .then((res) => {
1548
+ let {
1549
+ status,
1550
+ message,
1551
+ data: {
1552
+ adjunctCode,
1553
+ wfHistoryList,
1554
+ fyHistoryList,
1555
+ hasAgent,
1556
+ isShort,
1557
+ modify,
1558
+ taskReadName
1559
+ }
1560
+ } = res;
1561
+ this.loading.close();
1562
+ if (status == 'success') {
1563
+ if (this.showDoresult) {
1564
+ wfHistoryList &&
1565
+ (wfHistoryList = wfHistoryList.filter(
1566
+ (x) => x.doresult || x.handleInfo
1567
+ ));
1568
+ fyHistoryList &&
1569
+ (fyHistoryList = fyHistoryList.filter(
1570
+ (x) => x.doresult || x.handleInfo
1571
+ ));
1572
+ }
1573
+ this.flowTableInfo.adjunctCode = adjunctCode;
1574
+ this.flowTableInfo.hasAgent = hasAgent;
1575
+ this.attachmentPaperClipCssStyle =
1576
+ res.data.attachmentPaperClipCssStyle;
1577
+ this.isShort = isShort;
1578
+ this.taskReadName = taskReadName;
1579
+ this.flowData = wfHistoryList;
1580
+ this.flowData.map((x) => {
1581
+ if (!x.deptid) {
1582
+ x.deptid = x.deptName;
1583
+ }
1584
+ });
1585
+ this.splitReadingData = fyHistoryList;
1586
+ this.modify = modify;
1587
+ this.show = true;
1588
+ if (this.height == 'auto') {
1589
+ this.$nextTick(() => {
1590
+ this.content.map((x) => {
1591
+ this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1592
+ });
1593
+ });
1594
+ }
1595
+ if (this.contents.indexOf('circular') != -1) {
1596
+ this.getCircularReadList();
1597
+ } else {
1598
+ this.$nextTick(() => {
1599
+ this.getListCount(this.flowListCount);
1600
+ });
1601
+ }
1602
+ } else {
1603
+ this.$message.error(message || '系统错误,请联系管理员!');
1604
+ }
1605
+ })
1606
+ .catch((err) => {
1607
+ this.loading.close();
1608
+ if (err.message && err.message !== 'canceled') {
1609
+ this.$message.error(err.message);
1610
+ }
1611
+ this.show = true;
1612
+ });
1613
+ },
1614
+ /**
1615
+ * handleClick
1616
+ * @desc:表单点击事件
1617
+ * @param {Object} val 当前点击行数据及按钮
1618
+ * @author liufan
1619
+ * @date 2022年11月10日
1620
+ **/
1621
+ handleClick(val) {
1622
+ const {
1623
+ handle: { text },
1624
+ row: { id, status }
1625
+ } = val;
1626
+ if (text === '置为失效') {
1627
+ if (status == 0) {
1628
+ this.$confirm('您确定要置为失效吗?')
1629
+ .then(() => {
1630
+ this.loading = util.loading(this.$loading, '提交中...');
1631
+ let param = {
1632
+ url: deletePresetInfo,
1633
+ headers: { Accept: 'application/json,text/plain' },
1634
+ method: 'post',
1635
+ params: { id }
1636
+ };
1637
+ util
1638
+ .ajax(param)
1639
+ .then((res) => {
1640
+ const { status, message } = res;
1641
+ this.loading.close();
1642
+ if (status === 'success') {
1643
+ this.$message.success('操作成功');
1644
+ this.getListInfo();
1645
+ } else {
1646
+ this.$message.error(message || '系统错误,请联系管理员!');
1647
+ }
1648
+ })
1649
+ .catch((err) => {
1650
+ this.loading.close();
1651
+ if (err.message && err.message !== 'canceled') {
1652
+ this.$message.error(err.message);
1653
+ }
1654
+ });
1655
+ })
1656
+ .catch((e) => {
1657
+ // on cancel
1658
+ });
1659
+ } else {
1660
+ this.$message.warning('当前数据已为失效状态');
1661
+ }
1662
+ }
1663
+ },
1664
+ /**
1665
+ * getCodeValue
1666
+ * @desc:获取代码表过滤后的值
1667
+ * @param {String} value 展示数据的代码值
1668
+ * @param {String} type 代码表类型
1669
+ * @author liufan
1670
+ * @date 2022年11月10日
1671
+ **/
1672
+ getCodeValue(value, type) {
1673
+ let val = this[type].filter((item) => item.cciValue == value);
1674
+ return val[0].shortName;
1675
+ },
1676
+ /**
1677
+ * getSysInfo
1678
+ * @desc:获取代码表
1679
+ * @param {String} code 编码code值
1680
+ * @author liufan
1681
+ * @date 2022年11月10日
1682
+ **/
1683
+ getSysInfo(code) {
1684
+ let params = {
1685
+ url: findCodeValues,
1686
+ params: { ccCode: code }
1687
+ };
1688
+ util
1689
+ .ajax(params)
1690
+ .then((res) => {
1691
+ const { status, message, data } = res;
1692
+ if (status == 'success') {
1693
+ this[code] = data;
1694
+ } else {
1695
+ this.$message.error(message || '系统错误,请联系管理员!');
1696
+ }
1697
+ })
1698
+ .catch((e) => {});
1699
+ },
1700
+ /**
1701
+ * getListInfo
1702
+ * @desc:获取预设列表数据
1703
+ * @author liufan
1704
+ * @date 2022年11月10日
1705
+ **/
1706
+ getListInfo() {
1707
+ let param = {
1708
+ url: toPresetInfoListIndex,
1709
+ params: { apprecordid: this.businessId }
1710
+ };
1711
+ util
1712
+ .ajax(param)
1713
+ .then((res) => {
1714
+ let {
1715
+ status,
1716
+ message,
1717
+ data: {
1718
+ presetInfoList,
1719
+ presetInfoListHiddenColumns,
1720
+ canDelete,
1721
+ currentUserHasPresetInfoAuth
1722
+ }
1723
+ } = res;
1724
+ this.loading.close();
1725
+ if (status == 'success') {
1726
+ if (this.showDoresult && presetInfoList) {
1727
+ presetInfoList = presetInfoList.filter(
1728
+ (x) => x.doresult || x.handleInfo
1729
+ );
1730
+ }
1731
+ presetInfoList && (this.presetData = presetInfoList);
1732
+ this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1733
+ this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1734
+ this.canDelete = canDelete;
1735
+ } else {
1736
+ this.$message.error(message || '系统错误,请联系管理员!');
1737
+ }
1738
+ })
1739
+ .catch((err) => {
1740
+ this.loading.close();
1741
+ if (err.message && err.message !== 'canceled') {
1742
+ this.$message.error(err.message);
1743
+ }
1744
+ });
1745
+ }
1746
+ }
1747
+ };
1748
+ </script>
1749
+
1750
+ <style></style>