eoss-ui 0.6.43 → 0.6.45

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 (285) hide show
  1. package/lib/button.js +2 -2
  2. package/lib/cascader.js +2 -2
  3. package/lib/date-picker.js +2 -2
  4. package/lib/enable-drag.js +839 -0
  5. package/lib/enterprise.js +2 -2
  6. package/lib/eoss-ui.common.js +1459 -828
  7. package/lib/error-page.js +2 -2
  8. package/lib/flow-group.js +2 -2
  9. package/lib/flow-list.js +83 -83
  10. package/lib/flow.js +292 -292
  11. package/lib/form.js +3 -2
  12. package/lib/handle-user.js +2 -2
  13. package/lib/handler.js +5 -6
  14. package/lib/icon.js +9 -9
  15. package/lib/icons.js +2 -2
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +2 -2
  18. package/lib/input.js +2 -2
  19. package/lib/label.js +2 -2
  20. package/lib/main.js +409 -314
  21. package/lib/menu.js +2 -2
  22. package/lib/nav.js +29 -104
  23. package/lib/notify.js +2 -2
  24. package/lib/page.js +2 -2
  25. package/lib/pagination.js +2 -2
  26. package/lib/player.js +2 -2
  27. package/lib/qr-code.js +15 -15
  28. package/lib/radio-group.js +2 -2
  29. package/lib/retrial-auth.js +2 -2
  30. package/lib/select-ganged.js +2 -2
  31. package/lib/select.js +2 -2
  32. package/lib/selector.js +9 -9
  33. package/lib/sizer.js +2 -2
  34. package/lib/steps.js +2 -2
  35. package/lib/switch.js +9 -9
  36. package/lib/table-form.js +2 -2
  37. package/lib/tabs-panel.js +2 -2
  38. package/lib/tabs.js +2 -2
  39. package/lib/theme-chalk/enable-drag.css +1 -0
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/theme-chalk/login.css +1 -1
  42. package/lib/theme-chalk/main.css +1 -1
  43. package/lib/theme-chalk/nav.css +1 -1
  44. package/lib/theme-chalk/simplicity.css +1 -1
  45. package/lib/tips.js +2 -2
  46. package/lib/toolbar.js +2 -2
  47. package/lib/tree-group.js +2 -2
  48. package/lib/tree.js +2 -2
  49. package/lib/wujie.js +2 -2
  50. package/lib/wxlogin.js +145 -145
  51. package/package.json +159 -159
  52. package/packages/.DS_Store +0 -0
  53. package/packages/button/index.js +5 -5
  54. package/packages/button/src/main.vue +418 -418
  55. package/packages/button-group/index.js +5 -5
  56. package/packages/button-group/src/main.vue +298 -298
  57. package/packages/calendar/index.js +5 -5
  58. package/packages/card/index.js +5 -5
  59. package/packages/card/src/main.vue +156 -156
  60. package/packages/cascader/index.js +5 -5
  61. package/packages/cascader/src/main.vue +168 -168
  62. package/packages/checkbox-group/index.js +5 -5
  63. package/packages/checkbox-group/src/main.vue +333 -333
  64. package/packages/clients/index.js +5 -5
  65. package/packages/clients/src/main.vue +144 -144
  66. package/packages/data-table/.DS_Store +0 -0
  67. package/packages/data-table/index.js +5 -5
  68. package/packages/data-table/src/children.vue +39 -39
  69. package/packages/data-table/src/column.vue +989 -989
  70. package/packages/data-table/src/main.vue +1822 -1822
  71. package/packages/data-table/src/sizer.vue +195 -195
  72. package/packages/data-table-form/.DS_Store +0 -0
  73. package/packages/data-table-form/index.js +5 -5
  74. package/packages/data-table-form/src/checkbox.vue +101 -101
  75. package/packages/data-table-form/src/colgroup.vue +17 -17
  76. package/packages/data-table-form/src/main.vue +181 -181
  77. package/packages/data-table-form/src/radio.vue +65 -65
  78. package/packages/data-table-form/src/table.vue +233 -233
  79. package/packages/data-table-form/src/tbody.vue +336 -336
  80. package/packages/data-table-form/src/thead.vue +68 -68
  81. package/packages/date-picker/index.js +5 -5
  82. package/packages/date-picker/src/main.vue +236 -236
  83. package/packages/dialog/index.js +5 -5
  84. package/packages/enable-drag/index.js +5 -0
  85. package/packages/enable-drag/src/main.vue +362 -0
  86. package/packages/enterprise/index.js +5 -5
  87. package/packages/enterprise/src/main.vue +66 -66
  88. package/packages/error-page/.DS_Store +0 -0
  89. package/packages/error-page/index.js +5 -5
  90. package/packages/error-page/src/main.vue +44 -44
  91. package/packages/flow/.DS_Store +0 -0
  92. package/packages/flow/index.js +5 -5
  93. package/packages/flow/src/component/CommonOpinions.vue +345 -345
  94. package/packages/flow/src/component/CustomPreset.vue +322 -322
  95. package/packages/flow/src/component/FileList.vue +99 -99
  96. package/packages/flow/src/component/Preset.vue +255 -255
  97. package/packages/flow/src/component/SendMsg.vue +229 -229
  98. package/packages/flow/src/component/TimeLimit.vue +190 -190
  99. package/packages/flow/src/component/taskUnionExamine.vue +611 -611
  100. package/packages/flow/src/form.vue +121 -121
  101. package/packages/flow/src/freeStartFlow.vue +2843 -2843
  102. package/packages/flow/src/main.vue +2952 -2952
  103. package/packages/flow/src/processForm.vue +1018 -1018
  104. package/packages/flow/src/processReject.vue +293 -293
  105. package/packages/flow/src/reset.vue +899 -899
  106. package/packages/flow/src/startTaskRead.vue +596 -596
  107. package/packages/flow/src/table.vue +58 -58
  108. package/packages/flow-group/index.js +5 -5
  109. package/packages/flow-group/src/main.vue +688 -688
  110. package/packages/flow-list/index.js +5 -5
  111. package/packages/flow-list/src/main.vue +1183 -1183
  112. package/packages/form/.DS_Store +0 -0
  113. package/packages/form/index.js +5 -5
  114. package/packages/form/src/main.vue +3584 -3584
  115. package/packages/form/src/table.vue +1420 -1420
  116. package/packages/handle-user/index.js +5 -5
  117. package/packages/handle-user/src/main.vue +138 -138
  118. package/packages/handler/index.js +5 -5
  119. package/packages/handler/src/main.vue +474 -474
  120. package/packages/icon/index.js +5 -5
  121. package/packages/icon/src/main.vue +101 -101
  122. package/packages/icons/index.js +5 -5
  123. package/packages/icons/src/main.vue +81 -81
  124. package/packages/input/index.js +5 -5
  125. package/packages/input/src/main.vue +356 -356
  126. package/packages/input-number/index.js +5 -5
  127. package/packages/input-number/src/main.vue +106 -106
  128. package/packages/label/index.js +5 -5
  129. package/packages/label/src/main.vue +457 -457
  130. package/packages/layout/index.js +5 -5
  131. package/packages/layout/src/item.vue +152 -152
  132. package/packages/layout/src/main.vue +31 -31
  133. package/packages/login/.DS_Store +0 -0
  134. package/packages/login/index.js +5 -5
  135. package/packages/login/src/main.vue +1935 -1935
  136. package/packages/login/src/resetPassword.vue +562 -562
  137. package/packages/main/.DS_Store +0 -0
  138. package/packages/main/index.js +5 -5
  139. package/packages/main/src/.DS_Store +0 -0
  140. package/packages/main/src/default/index.vue +166 -171
  141. package/packages/main/src/default/message.vue +249 -249
  142. package/packages/main/src/default/notice.vue +157 -157
  143. package/packages/main/src/default/userinfo.vue +505 -505
  144. package/packages/main/src/public/online.vue +89 -89
  145. package/packages/main/src/public/search.vue +461 -461
  146. package/packages/main/src/public/settings.vue +221 -221
  147. package/packages/main/src/simplicity/apps.vue +388 -388
  148. package/packages/main/src/simplicity/avatar.vue +82 -82
  149. package/packages/main/src/simplicity/handler.vue +259 -259
  150. package/packages/main/src/simplicity/index.vue +2044 -2047
  151. package/packages/main/src/simplicity/lists.vue +84 -84
  152. package/packages/main/src/simplicity/menu-list.vue +128 -128
  153. package/packages/main/src/simplicity/message.vue +259 -259
  154. package/packages/main/src/simplicity/notice.vue +190 -190
  155. package/packages/main/src/simplicity/router-page.vue +45 -45
  156. package/packages/main/src/simplicity/sub-menu.vue +241 -241
  157. package/packages/main/src/simplicity/user.vue +257 -257
  158. package/packages/main/src/simplicity/userinfo.vue +312 -312
  159. package/packages/menu/index.js +5 -5
  160. package/packages/menu/src/main.vue +536 -536
  161. package/packages/nav/index.js +5 -5
  162. package/packages/nav/src/main.vue +351 -402
  163. package/packages/notify/index.js +5 -5
  164. package/packages/notify/src/main.vue +538 -538
  165. package/packages/page/index.js +5 -5
  166. package/packages/page/src/main.vue +167 -167
  167. package/packages/pagination/index.js +5 -5
  168. package/packages/pagination/src/main.vue +96 -96
  169. package/packages/player/index.js +5 -5
  170. package/packages/player/src/main.vue +194 -194
  171. package/packages/qr-code/index.js +5 -5
  172. package/packages/qr-code/src/main.vue +170 -170
  173. package/packages/radio-group/index.js +6 -6
  174. package/packages/radio-group/src/main.vue +319 -319
  175. package/packages/retrial-auth/index.js +5 -5
  176. package/packages/retrial-auth/src/main.vue +280 -280
  177. package/packages/select/index.js +5 -5
  178. package/packages/select/src/main.vue +775 -775
  179. package/packages/select-ganged/index.js +5 -5
  180. package/packages/select-ganged/src/main.vue +724 -724
  181. package/packages/selector/.DS_Store +0 -0
  182. package/packages/selector/index.js +5 -5
  183. package/packages/selector/src/main.vue +689 -689
  184. package/packages/selector-panel/.DS_Store +0 -0
  185. package/packages/selector-panel/index.js +5 -5
  186. package/packages/selector-panel/src/main.vue +1027 -1027
  187. package/packages/selector-panel/src/selection.vue +177 -177
  188. package/packages/selector-panel/src/tree.vue +129 -129
  189. package/packages/sizer/.DS_Store +0 -0
  190. package/packages/sizer/index.js +5 -5
  191. package/packages/sizer/src/main.vue +254 -254
  192. package/packages/steps/index.js +5 -5
  193. package/packages/steps/src/main.vue +181 -181
  194. package/packages/switch/index.js +5 -5
  195. package/packages/switch/src/main.vue +154 -154
  196. package/packages/table-form/index.js +5 -5
  197. package/packages/tabs/.DS_Store +0 -0
  198. package/packages/tabs/index.js +5 -5
  199. package/packages/tabs/src/main.vue +788 -788
  200. package/packages/tabs-panel/index.js +5 -5
  201. package/packages/tabs-panel/src/main.vue +29 -29
  202. package/packages/theme-chalk/lib/enable-drag.css +1 -0
  203. package/packages/theme-chalk/lib/index.css +1 -1
  204. package/packages/theme-chalk/lib/login.css +1 -1
  205. package/packages/theme-chalk/lib/main.css +1 -1
  206. package/packages/theme-chalk/lib/nav.css +1 -1
  207. package/packages/theme-chalk/lib/simplicity.css +1 -1
  208. package/packages/theme-chalk/src/.DS_Store +0 -0
  209. package/packages/theme-chalk/src/base.scss +260 -260
  210. package/packages/theme-chalk/src/button-group.scss +175 -175
  211. package/packages/theme-chalk/src/button.scss +24 -24
  212. package/packages/theme-chalk/src/calendar.scss +113 -113
  213. package/packages/theme-chalk/src/card.scss +99 -99
  214. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  215. package/packages/theme-chalk/src/clients.scss +87 -87
  216. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  217. package/packages/theme-chalk/src/data-table.scss +293 -293
  218. package/packages/theme-chalk/src/date-picker.scss +7 -7
  219. package/packages/theme-chalk/src/dialog.scss +77 -77
  220. package/packages/theme-chalk/src/enable-drag.scss +181 -0
  221. package/packages/theme-chalk/src/enterprise.scss +5 -5
  222. package/packages/theme-chalk/src/error-page.scss +18 -18
  223. package/packages/theme-chalk/src/flow-group.scss +110 -110
  224. package/packages/theme-chalk/src/flow-list.scss +36 -36
  225. package/packages/theme-chalk/src/flow.scss +318 -318
  226. package/packages/theme-chalk/src/form.scss +496 -496
  227. package/packages/theme-chalk/src/handle-user.scss +40 -40
  228. package/packages/theme-chalk/src/handler.scss +143 -143
  229. package/packages/theme-chalk/src/icon.scss +1789 -1789
  230. package/packages/theme-chalk/src/icons.scss +99 -99
  231. package/packages/theme-chalk/src/index.scss +1 -0
  232. package/packages/theme-chalk/src/input.scss +9 -9
  233. package/packages/theme-chalk/src/label.scss +24 -24
  234. package/packages/theme-chalk/src/layout.scss +46 -46
  235. package/packages/theme-chalk/src/login.scss +969 -947
  236. package/packages/theme-chalk/src/main.scss +656 -639
  237. package/packages/theme-chalk/src/menu.scss +222 -222
  238. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  239. package/packages/theme-chalk/src/nav.scss +111 -125
  240. package/packages/theme-chalk/src/page.scss +3 -3
  241. package/packages/theme-chalk/src/pagination.scss +29 -29
  242. package/packages/theme-chalk/src/player.scss +9 -9
  243. package/packages/theme-chalk/src/qr-code.scss +17 -17
  244. package/packages/theme-chalk/src/radio-group.scss +9 -9
  245. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  246. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  247. package/packages/theme-chalk/src/select.scss +8 -8
  248. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  249. package/packages/theme-chalk/src/selector.scss +91 -91
  250. package/packages/theme-chalk/src/simplicity.scss +1265 -1262
  251. package/packages/theme-chalk/src/sizer.scss +36 -36
  252. package/packages/theme-chalk/src/steps.scss +88 -88
  253. package/packages/theme-chalk/src/switch.scss +3 -3
  254. package/packages/theme-chalk/src/table-form.scss +1 -1
  255. package/packages/theme-chalk/src/tabs.scss +87 -87
  256. package/packages/theme-chalk/src/tips.scss +7 -7
  257. package/packages/theme-chalk/src/toolbar.scss +179 -179
  258. package/packages/theme-chalk/src/tree-group.scss +72 -72
  259. package/packages/theme-chalk/src/tree.scss +165 -165
  260. package/packages/theme-chalk/src/upload.scss +167 -167
  261. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  262. package/packages/tips/index.js +5 -5
  263. package/packages/tips/src/main.vue +141 -141
  264. package/packages/toolbar/index.js +5 -5
  265. package/packages/toolbar/src/main.vue +430 -430
  266. package/packages/tree/index.js +5 -5
  267. package/packages/tree-group/index.js +5 -5
  268. package/packages/upload/.DS_Store +0 -0
  269. package/packages/upload/index.js +5 -5
  270. package/packages/upload/src/main.vue +1334 -1334
  271. package/packages/upload/src/picture.js +15 -15
  272. package/packages/wujie/index.js +5 -5
  273. package/packages/wujie/src/main.vue +145 -145
  274. package/packages/wxlogin/index.js +5 -5
  275. package/packages/wxlogin/src/main.vue +128 -128
  276. package/src/.DS_Store +0 -0
  277. package/src/config/api.js +248 -248
  278. package/src/config/image.js +2 -2
  279. package/src/index.js +160 -157
  280. package/src/utils/bus.js +3 -3
  281. package/src/utils/date-util.js +312 -312
  282. package/src/utils/http.js +50 -50
  283. package/src/utils/rules.js +18 -18
  284. package/src/utils/store.js +21 -21
  285. package/src/utils/webSocket.js +107 -107
@@ -1,1183 +1,1183 @@
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 class="es-flow-list-box">
19
- <es-data-table
20
- v-if="show"
21
- :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
22
- :display="display"
23
- number
24
- @cell-click="handleCellClick"
25
- full
26
- v-bind="item"
27
- :data="returnData(item.type)"
28
- @btn-click="handleBtnClick"
29
- ></es-data-table>
30
- </div>
31
- </div>
32
- <es-dialog
33
- append-to-body
34
- :close-on-click-modal="false"
35
- title="查看附件"
36
- :visible.sync="showFileList"
37
- v-if="showFileList"
38
- >
39
- <FileList
40
- :ownId="wfpendingid"
41
- :code="flowTableInfo.adjunctCode"
42
- :deleted="false"
43
- :disabled="true"
44
- @cancel="showFileList = false"
45
- />
46
- </es-dialog>
47
- <es-dialog
48
- append-to-body
49
- :close-on-click-modal="false"
50
- title="查看催办记录"
51
- :visible.sync="showPress"
52
- height="500px"
53
- v-if="showPress"
54
- >
55
- <div style="height: 400px" v-loading="pressLoading">
56
- <es-data-table
57
- v-if="show"
58
- :data="pressTableList"
59
- :thead="pressThead"
60
- @page-size-change="handleSizeChange"
61
- @page-current-change="handleCurrentChange"
62
- stripe
63
- full
64
- style="width: 100%"
65
- @sort-change="sortChange"
66
- :page="pageInfo"
67
- />
68
- </div>
69
- </es-dialog>
70
- <es-dialog
71
- append-to-body
72
- :close-on-click-modal="false"
73
- title="删除"
74
- :visible.sync="showDel"
75
- height="auto"
76
- class="del-flow"
77
- v-if="showDel"
78
- >
79
- <es-form
80
- v-loading="delLoading"
81
- :model="formData"
82
- :contents="formItemList"
83
- @submit="handleFormSubmit"
84
- >
85
- </es-form>
86
- </es-dialog>
87
- </div>
88
- </template>
89
-
90
- <script>
91
- import {
92
- findCodeValues,
93
- deletePresetInfo,
94
- pendedhistoryListJson,
95
- toPresetInfoListIndex,
96
- pressListJson,
97
- deleteFlow
98
- } from 'eoss-ui/src/config/api';
99
- import FileList from '../../flow/src/component/FileList.vue';
100
- import util from 'eoss-ui/src/utils/util';
101
- export default {
102
- name: 'EsFlowList',
103
- components: {
104
- [FileList.name]: FileList
105
- },
106
- props: {
107
- businessId: {
108
- type: String,
109
- default: ''
110
- },
111
- hide: {
112
- type: String,
113
- default: ''
114
- },
115
- params: {
116
- type: Object,
117
- default: () => {return {}}
118
- },
119
- toolbar: {
120
- type: Array,
121
- default: () => []
122
- },
123
- contents: {
124
- type: Array,
125
- default() {
126
- return ['flow', 'splitReading', 'preset'];
127
- },
128
- },
129
- theadWidth:{
130
- type:Object,
131
- default: () => {
132
- return {}
133
- }
134
- },
135
- display: Boolean
136
- },
137
- inheritAttrs: false,
138
- data() {
139
- return {
140
- pressLoading: false,
141
- pressTableList: [],
142
- currentPage: 1,
143
- pageSize: 20,
144
- currentUserHasPresetInfoAuth: false,
145
- pressThead: [
146
- {
147
- title: '催办节点',
148
- align: 'center',
149
- sortable: true,
150
- field: 'urge_item'
151
- },
152
- {
153
- title: '催办人名称',
154
- sortable: true,
155
- align: 'center',
156
- field: 'urge_man_name'
157
- },
158
- {
159
- title: '催办时间',
160
- sortable: true,
161
- align: 'center',
162
- field: 'urge_time'
163
- },
164
- {
165
- title: '被催办人名称',
166
- align: 'center',
167
- sortable: true,
168
- field: 'urged_man_name'
169
- }
170
- ],
171
- wfpendingid: '',
172
- showFileList: false,
173
- flowData: [],
174
- splitReadingData: [],
175
- presetData: [],
176
- signData: [],
177
- loading: '', //加载中
178
- preset_type: [], //预设类型
179
- showPress: false, //查看催办记录弹窗
180
- modify: false,
181
- formData: { reason: '' },
182
- formItemList: [
183
- {
184
- name: 'reason',
185
- label: '删除原因',
186
- type: 'textarea',
187
- placeholder: '请输入删除原因',
188
- rules: {
189
- required: true,
190
- message: '请输入删除原因',
191
- trigger: 'blur'
192
- },
193
- value: '',
194
- rows: 5
195
- },
196
- {
197
- type: 'submit',
198
- skin: 'lay-form-btns',
199
- contents: [
200
- {
201
- type: 'primary',
202
- plain: true,
203
- text: '保存',
204
- event: 'confirm'
205
- }
206
- ]
207
- }
208
- ],
209
- delLoading: false,
210
- showDel: false,
211
- attachmentPaperClipCssStyle: '',
212
- is_edit: [], //是否可编辑
213
- flowTableInfo: {
214
- adjunctCode: '',
215
- hasAgent: '1' //是否展示代办人 1:展示 0:不展示
216
- },
217
- show: false,
218
- taskReadName: '', //非流程列表名称
219
- options: [
220
- { label: '时间排序', value: '1' },
221
- { label: '部门排序', value: '2' },
222
- { label: '树形排序', value: '3' }
223
- ],
224
- isShort: 0, //是否隐藏筛选
225
- viewType: '1', //排序方式
226
- flowTableList: [], //流程列表
227
- fyTableList: [], //分阅列表
228
- showSuggest: 'all', //筛选显示数据
229
- presetInfoListHiddenColumns: '', //隐藏表格展示数据
230
- canDelete: false, //是否展示操作按钮
231
- historyId: '',
232
- sidx: '',
233
- sord: '',
234
- total: 0
235
- };
236
- },
237
- computed: {
238
- toolbars() {
239
- return {
240
- flow: [
241
- {
242
- type: 'text',
243
- contents: '流程列表'
244
- },
245
- {
246
- type: 'search',
247
- contents: [
248
- {
249
- name: 'showSuggest',
250
- type: 'radio',
251
- changeSearch: true,
252
- data: [
253
- {
254
- value: 'all',
255
- name: '显示全部',
256
- checked: true
257
- },
258
- { value: 'have', name: '显示已填意见' }
259
- ],
260
- events: {
261
- change: (key, value) => {
262
- this.handleChange(key, value);
263
- }
264
- }
265
- },
266
- {
267
- type: 'select',
268
- placeholder: '请选择',
269
- name: 'viewType',
270
- width: '140px',
271
- changeSearch: true,
272
- events: {
273
- change: (key, value) => {
274
- this.handleChange(key, value);
275
- }
276
- },
277
- data: [
278
- {
279
- value: 1,
280
- selected: true,
281
- name: '时间排序'
282
- },
283
- {
284
- value: 2,
285
- name: '部门排序'
286
- },
287
- {
288
- value: 3,
289
- name: '树形排序'
290
- }
291
- ]
292
- }
293
- ]
294
- }
295
- ],
296
- preset: [
297
- {
298
- type: 'text',
299
- contents: '预设列表'
300
- }
301
- ],
302
- sign: [
303
- {
304
- type: 'button',
305
- contents: [
306
- {
307
- text: '生成处理签',
308
- type: 'primary'
309
- }
310
- ]
311
- }
312
- ],
313
- splitReading: [
314
- {
315
- type: 'text',
316
- contents:
317
- (this.taskReadName ? this.taskReadName : '非流程') + '列表'
318
- }
319
- ]
320
- };
321
- },
322
- pageInfo() {
323
- return {
324
- pageNum: this.currentPage,
325
- pageSize: this.pageSize,
326
- totalCount: this.total
327
- };
328
- },
329
- theads() {
330
- const _that = this;
331
- return {
332
- flow: [
333
- {
334
- label: '经办部门',
335
- field: 'deptid',
336
- align: 'center',
337
- key: 'jbbm',
338
- showOverflowTooltip: true,
339
- width:this.theadWidth.deptid || 150
340
- },
341
- {
342
- label: '步骤',
343
- field: 'itemname',
344
- align: 'center',
345
- key: 'bz',
346
- showOverflowTooltip: true,
347
- width:this.theadWidth.itemname || 110
348
- },
349
- {
350
- label: '办理人',
351
- field: 'userName',
352
- align: 'center',
353
- key: 'blr',
354
- showOverflowTooltip: true,
355
- width:this.theadWidth.userName || 110
356
- },
357
- {
358
- label: '办理人部门',
359
- field: 'deptName',
360
- align: 'center',
361
- showOverflowTooltip: true,
362
- key: 'blrbm',
363
- width:this.theadWidth.deptName || 110
364
- },
365
- {
366
- label: '状态',
367
- field: 'pendstate',
368
- key: 'zt',
369
- align: 'center',
370
- showOverflowTooltip: true,
371
- width:this.theadWidth.pendstate || 80,
372
- render: (h, params) => {
373
- return h('span', {
374
- style: {
375
- color:
376
- params.row.pendstate == 0 || params.row.pendstate == 3
377
- ? 'red'
378
- : params.row.pendstate == 1
379
- ? 'green'
380
- : 'deepskyblue'
381
- },
382
- domProps: { innerHTML: params.row.querykeywords }
383
- });
384
- }
385
- },
386
- {
387
- label: '办理意见',
388
- field: 'doresult',
389
- align: 'center',
390
- width:this.theadWidth.doresult,
391
- showOverflowTooltip: true,
392
- key: 'blyj',
393
- render: (h, params) => {
394
- if(params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))){
395
- return h('img', {attrs:{src: params.row.doresult},style:{width:'100px',height:'100px'}});
396
- }else{
397
- return h('span', {}, [
398
- params.row.doresult
399
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
400
- : '',
401
- h(
402
- 'span',
403
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
404
- params.row.handleInfo || ''
405
- )
406
- ]);
407
- }
408
- }
409
- },
410
- {
411
- label: '验签',
412
- field: 'authTypeStr',
413
- align: 'center',
414
- key: 'yq',
415
- showOverflowTooltip: true,
416
- width:this.theadWidth.authTypeStr || 70,
417
- render: (h, params) => {
418
- return h(
419
- 'span',
420
- { style: { color: 'deepskyblue' } },
421
- params.row.authTypeStr
422
- );
423
- }
424
- },
425
- {
426
- label: '附件',
427
- key: 'fj',
428
- field: 'hasAdjunct',
429
- align: 'center',
430
- showOverflowTooltip: true,
431
- width:this.theadWidth.hasAdjunct || 70,
432
- render: (h, params) => {
433
- if (params.row.hasAdjunct) {
434
- return h('span', {
435
- style: _that.attachmentPaperClipCssStyle
436
- ? _that.attachmentPaperClipCssStyle
437
- : { color: 'red', fontSize: '20px' },
438
- class: 'iconfont es-icon-fujian'
439
- });
440
- } else {
441
- return h('span', {}, '');
442
- }
443
- }
444
- },
445
- {
446
- label: '时间',
447
- field: 'doetime',
448
- align: 'center',
449
- key: 'sj',
450
- showOverflowTooltip: true,
451
- width:this.theadWidth.doetime || 150,
452
- render: (h, params) => {
453
- return h(
454
- 'span',
455
- {},
456
- params.row.doetime
457
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
458
- : ''
459
- );
460
- }
461
- },
462
- {
463
- label: '代办人',
464
- field: 'douserid',
465
- align: 'center',
466
- key: 'dbr',
467
- showOverflowTooltip: true,
468
- width:this.theadWidth.douserid || 80,
469
- hide: _that.flowTableInfo.hasAgent != '1'
470
- },
471
- {
472
- label: '催办',
473
- field: 'pressTimes',
474
- align: 'center',
475
- key: 'cb',
476
- showOverflowTooltip: true,
477
- width:this.theadWidth.pressTimes || 150,
478
- render: (h, params) => {
479
- return h(
480
- 'span',
481
- { style: 'color:deepskyblue;cursor: pointer;' },
482
- params.row.pressTimes
483
- );
484
- }
485
- },
486
- {
487
- title: '操作',
488
- type: 'handle',
489
- width: this.modify ? '130' : '100',
490
- template: '',
491
- events: [
492
- {
493
- text: '删除',
494
- rules: (rows) => {
495
- return rows.canDelete;
496
- }
497
- }
498
- // {
499
- // text: '修改',
500
- // rules: (rows) => {
501
- // return this.modify && rows.pendstate == 2;
502
- // }
503
- // }
504
- ]
505
- }
506
- ],
507
- preset: this.thead,
508
- splitReading: [
509
- {
510
- label: '经办部门',
511
- field: 'deptid',
512
- key: 'jbbm',
513
- align: 'center',
514
- showOverflowTooltip: true,
515
- width:this.theadWidth.deptid || 150
516
- },
517
- {
518
- label: '步骤',
519
- field: 'itemname',
520
- align: 'center',
521
- key: 'bz',
522
- showOverflowTooltip: true,
523
- width:this.theadWidth.itemname || 110
524
- },
525
- {
526
- label: '办理人',
527
- field: 'userName',
528
- align: 'center',
529
- key: 'blr',
530
- showOverflowTooltip: true,
531
- width:this.theadWidth.userName || 110
532
- },
533
- {
534
- label: '状态',
535
- field: 'pendstate',
536
- align: 'center',
537
- key: 'zt',
538
- showOverflowTooltip: true,
539
- width:this.theadWidth.pendstate || 80,
540
- render: (h, params) => {
541
- return h('span', {
542
- style: {
543
- color:
544
- params.row.pendstate == 0 || params.row.pendstate == 3
545
- ? 'red'
546
- : params.row.pendstate == 1
547
- ? 'green'
548
- : 'deepskyblue'
549
- },
550
- domProps: { innerHTML: params.row.querykeywords }
551
- });
552
- }
553
- },
554
- {
555
- label: '办理意见',
556
- field: 'doresult',
557
- align: 'center',
558
- key: 'blyj',
559
- width:this.theadWidth.doresult,
560
- showOverflowTooltip: true,
561
- render: (h, params) => {
562
- if(params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))){
563
- return h('img', {attrs:{src: params.row.doresult},style:{width:'100px',height:'100px'}});
564
- }else{
565
- return h('span', {}, [
566
- params.row.doresult
567
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
568
- : '',
569
- h(
570
- 'span',
571
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
572
- params.row.handleInfo || ''
573
- )
574
- ]);
575
- }
576
- }
577
- },
578
- {
579
- label: '验签',
580
- field: 'authTypeStr',
581
- align: 'center',
582
- key: 'yq',
583
- showOverflowTooltip: true,
584
- width:this.theadWidth.authTypeStr || 70,
585
- render: (h, params) => {
586
- return h(
587
- 'span',
588
- { style: { color: 'deepskyblue' } },
589
- params.row.authTypeStr
590
- );
591
- }
592
- },
593
- {
594
- label: '附件',
595
- field: 'hasAdjunct',
596
- align: 'center',
597
- key: 'fj',
598
- showOverflowTooltip: true,
599
- width:this.theadWidth.hasAdjunct || 70,
600
- render: (h, params) => {
601
- if (params.row.hasAdjunct) {
602
- return h('span', {
603
- style: _that.attachmentPaperClipCssStyle
604
- ? _that.attachmentPaperClipCssStyle
605
- : { color: 'red', fontSize: '20px' },
606
- class: 'iconfont es-icon-fujian'
607
- });
608
- } else {
609
- return h('span', {}, '');
610
- }
611
- }
612
- },
613
- {
614
- label: '时间',
615
- field: 'doetime',
616
- align: 'center',
617
- key: 'sj',
618
- showOverflowTooltip: true,
619
- width:this.theadWidth.doetime || 150,
620
- render: (h, params) => {
621
- return h(
622
- 'span',
623
- {},
624
- params.row.doetime
625
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
626
- : ''
627
- );
628
- }
629
- },
630
- {
631
- label: '代办人',
632
- field: 'douserid',
633
- align: 'center',
634
- key: 'dbr',
635
- showOverflowTooltip: true,
636
- width:this.theadWidth.douserid || 80,
637
- hide: _that.flowTableInfo.hasAgent != '1'
638
- },
639
- {
640
- label: '催办',
641
- field: 'pressTimes',
642
- align: 'center',
643
- key: 'cb',
644
- showOverflowTooltip: true,
645
- width:this.theadWidth.pressTimes || 150,
646
- render: (h, params) => {
647
- return h(
648
- 'span',
649
- { style: 'color:deepskyblue;cursor: pointer;' },
650
- params.row.pressTimes
651
- );
652
- }
653
- },
654
- {
655
- title: '操作',
656
- type: 'handle',
657
- width: '100',
658
- template: '',
659
- events: [
660
- {
661
- text: '删除',
662
- rules: (rows) => {
663
- return rows.canDelete;
664
- }
665
- }
666
- ]
667
- }
668
- ]
669
- };
670
- },
671
- content() {
672
- let contents = this.contents.map((item) => {
673
- if (typeof item === 'string') {
674
- return {
675
- type: item,
676
- toolbar: this.toolbars[item],
677
- thead: this.theads[item],
678
- showFormBtn: false
679
- };
680
- } else {
681
- if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
682
- let toolbars = this.toolbars[item.type];
683
- return { ...item, toolbars };
684
- }
685
- if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
686
- let thead = this.theads[item.type];
687
- return { ...item, thead };
688
- }
689
- return item;
690
- }
691
- });
692
- return contents;
693
- },
694
- newToolbar() {
695
- if (this.toolbar && this.toolbar.length > 0) {
696
- return this.toolbar;
697
- } else {
698
- return [];
699
- }
700
- },
701
- thead() {
702
- let table = [
703
- {
704
- title: '步骤',
705
- align: 'center',
706
- width:this.theadWidth.nodeName || '100',
707
- field: 'nodeName'
708
- },
709
- {
710
- title: '预设办理人',
711
- width:this.theadWidth.presetUserName || '120',
712
- align: 'center',
713
- field: 'presetUserName'
714
- },
715
- {
716
- title: '是否可编辑',
717
- key: 'sfkbj',
718
- align: 'center',
719
- width:this.theadWidth.isEdit || '100',
720
- render: (h, params) => {
721
- return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
722
- },
723
- field: 'isEdit'
724
- },
725
- {
726
- key: 'zt',
727
- title: '状态',
728
- width:this.theadWidth.statusName || '80',
729
- align: 'center',
730
- field: 'statusName'
731
- },
732
- {
733
- title: '预设类型',
734
- key: 'yslx',
735
- width:this.theadWidth.presetType || '120',
736
- align: 'center',
737
- render: (h, params) => {
738
- return h(
739
- 'span',
740
- this.getCodeValue(params.row.presetType, 'preset_type')
741
- );
742
- },
743
- field: 'presetType'
744
- },
745
- {
746
- title: '流程名称',
747
- key: 'lcmc',
748
- width:this.theadWidth.processDefName,
749
- align: 'center',
750
- field: 'processDefName'
751
- },
752
- {
753
- title: '上一步骤',
754
- key: 'sybz',
755
- align: 'center',
756
- width:this.theadWidth.lastNodeName,
757
- field: 'lastNodeName'
758
- },
759
- {
760
- title: '创建步骤',
761
- key: 'cjbz',
762
- align: 'center',
763
- width:this.theadWidth.operationNodeName,
764
- field: 'operationNodeName'
765
- },
766
- {
767
- title: '创建人',
768
- key: 'cjr',
769
- width:this.theadWidth.creatorName || '120',
770
- align: 'center',
771
- field: 'creatorName'
772
- },
773
- {
774
- title: '创建时间',
775
- width:this.theadWidth.createTime || '150',
776
- key: 'cjsj',
777
- align: 'center',
778
- render: (h, params) => {
779
- return h(
780
- 'span',
781
- util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
782
- );
783
- },
784
- field: 'createTime'
785
- },
786
- {
787
- title: '操作区域',
788
- type: 'handle',
789
- align: 'center',
790
- width: '120',
791
- events: [
792
- {
793
- text: '置为失效'
794
- }
795
- ]
796
- }
797
- ];
798
- if (
799
- this.presetInfoListHiddenColumns != undefined &&
800
- this.presetInfoListHiddenColumns != ''
801
- ) {
802
- table = table.filter(
803
- (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
804
- );
805
- }
806
- if (!this.canDelete) table.splice(table.length - 1, 1);
807
- return table;
808
- }
809
- },
810
- mounted() {
811
- this.loading = util.loading(this.$loading, '加载中...');
812
- this.getFlowList();
813
- this.getSysInfo('preset_type');
814
- this.getSysInfo('is_edit');
815
- this.getListInfo();
816
- },
817
-
818
- methods: {
819
- returnData(type) {
820
- switch (type) {
821
- case 'preset':
822
- return this.presetData;
823
- case 'sign':
824
- return this.signData;
825
- case 'splitReading':
826
- return this.splitReadingData;
827
- default:
828
- return this.flowData;
829
- }
830
- },
831
- handleCellClick(row, column) {
832
- if (column.property == 'hasAdjunct' && row.hasAdjunct) {
833
- this.showFile(row.wfpendingid);
834
- } else if (column.property == 'pressTimes') {
835
- this.goPress(row.id);
836
- }
837
- },
838
- handleBtnClick(data) {
839
- const { handle, row } = data;
840
- if (handle.text == '删除') {
841
- this.del(row.id);
842
- }
843
- },
844
- /**
845
- * handleFormSubmit
846
- * @desc:删除节点点击事件
847
- * @param {Object} formData 点击删除的form数据
848
- * @author liufan
849
- * @date 2022年11月29日
850
- **/
851
- handleFormSubmit(formData) {
852
- this.delLoading = true;
853
- let params = {
854
- url: deleteFlow,
855
- method: 'POST',
856
- data: { id: this.historyId, reason: formData.reason }
857
- };
858
- util
859
- .ajax(params)
860
- .then((res) => {
861
- const { status, message } = res;
862
- this.delLoading = false;
863
- if (status === 'success') {
864
- this.$message.success('删除成功');
865
- this.showDel = false;
866
- this.handleChange();
867
- } else {
868
- this.$message.error(message || '系统错误,请联系管理员!');
869
- }
870
- })
871
- .catch((err) => {
872
- this.delLoading = false;
873
- if (err.message && err.message !== 'canceled') {
874
- this.$message.error(err.message);
875
- }
876
- });
877
- },
878
- /**
879
- * del
880
- * @desc:展示删除弹窗
881
- * @param {String} id 当前点击数据id
882
- * @author liufan
883
- * @date 2022年11月29日
884
- **/
885
- del(id) {
886
- this.historyId = id;
887
- this.showDel = true;
888
- },
889
- /**
890
- * handleCurrentChange
891
- * @desc:监听页码变化
892
- * @param {String} val 当前页
893
- * @author liufan
894
- * @date 2022年11月29日
895
- **/
896
- handleCurrentChange(val) {
897
- this.currentPage = val;
898
- this.getPressList();
899
- },
900
- /**
901
- * handleSizeChange
902
- * @desc:监听每页数据显示数量变化
903
- * @param {String} val 每页展示数量
904
- * @author liufan
905
- * @date 2022年11月29日
906
- **/
907
- handleSizeChange(val) {
908
- this.pageSize = val;
909
- this.getPressList();
910
- },
911
- /**
912
- * sortChange
913
- * @desc:监听排序变化
914
- * @param {Object} info 需要排序的字段及排序方式
915
- * @author liufan
916
- * @date 2022年11月29日
917
- **/
918
- sortChange(info) {
919
- let { prop, order } = info;
920
- this.sidx = prop;
921
- this.sord = order.replace('ending', '');
922
- this.getPressList();
923
- },
924
- /**
925
- * getPressList
926
- * @desc:催办列表数据
927
- * @author liufan
928
- * @date 2022年11月29日
929
- **/
930
- getPressList() {
931
- const { historyId, pageSize, sidx, sord, currentPage } = this;
932
- this.pressLoading = true;
933
- let params = {
934
- url: pressListJson,
935
- params: { historyId },
936
- method: 'POST',
937
- data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
938
- };
939
- util
940
- .ajax(params)
941
- .then((res) => {
942
- this.pressTableList = res.data;
943
- this.total = res.totalrecords;
944
- this.pressLoading = false;
945
- })
946
- .catch((err) => {
947
- this.pressLoading = false;
948
- if (err.message && err.message !== 'canceled') {
949
- this.$message.error(err.message);
950
- }
951
- });
952
- },
953
- /**
954
- * goPress
955
- * @desc:催办列表查看
956
- * @param {String} id 催办列表id
957
- * @author liufan
958
- * @date 2022年11月29日
959
- **/
960
- goPress(id) {
961
- this.historyId = id;
962
- this.showPress = true;
963
- this.getPressList();
964
- },
965
- /**
966
- * showFile
967
- * @desc:附件查看
968
- * @param {String} ownId 附件id
969
- * @author liufan
970
- * @date 2022年11月29日
971
- **/
972
- showFile(ownId) {
973
- this.wfpendingid = ownId;
974
- this.showFileList = true;
975
- },
976
- /**
977
- * handleChange
978
- * @desc:切换排序方式
979
- * @author liufan
980
- * @date 2022年11月22日
981
- **/
982
- handleChange(key, value) {
983
- if (value) {
984
- this[key] = value;
985
- }
986
- // this.show = false;
987
- this.loading = util.loading(this.$loading, '加载中...');
988
- this.getFlowList();
989
- },
990
- /**
991
- * getFlowList
992
- * @desc:获取流程列表
993
- * @author liufan
994
- * @date 2022年11月22日
995
- **/
996
- getFlowList() {
997
- let params = {
998
- url: pendedhistoryListJson,
999
- params: {
1000
- apprecordid: this.businessId,
1001
- pendingAttr: 0,
1002
- viewType: this.viewType,
1003
- showSuggest: this.showSuggest,
1004
- ...this.params
1005
- }
1006
- };
1007
- util
1008
- .ajax(params)
1009
- .then((res) => {
1010
- const {
1011
- status,
1012
- message,
1013
- data: {
1014
- adjunctCode,
1015
- wfHistoryList,
1016
- fyHistoryList,
1017
- hasAgent,
1018
- isShort,
1019
- modify,
1020
- taskReadName
1021
- }
1022
- } = res;
1023
- this.loading.close();
1024
- if (status == 'success') {
1025
- this.flowTableInfo.adjunctCode = adjunctCode;
1026
- this.flowTableInfo.hasAgent = hasAgent;
1027
- this.attachmentPaperClipCssStyle =
1028
- res.data.attachmentPaperClipCssStyle;
1029
- this.isShort = isShort;
1030
- this.taskReadName = taskReadName;
1031
- this.flowData = wfHistoryList;
1032
- this.flowData.map((x) => {
1033
- if (!x.deptid) {
1034
- x.deptid = x.deptName;
1035
- }
1036
- });
1037
- this.splitReadingData = fyHistoryList;
1038
- this.modify = modify;
1039
- this.show = true;
1040
- } else {
1041
- this.$message.error(message || '系统错误,请联系管理员!');
1042
- }
1043
- })
1044
- .catch((err) => {
1045
- this.loading.close();
1046
- if (err.message && err.message !== 'canceled') {
1047
- this.$message.error(err.message);
1048
- }
1049
- this.show = true;
1050
- });
1051
- },
1052
- /**
1053
- * handleClick
1054
- * @desc:表单点击事件
1055
- * @param {Object} val 当前点击行数据及按钮
1056
- * @author liufan
1057
- * @date 2022年11月10日
1058
- **/
1059
- handleClick(val) {
1060
- const {
1061
- handle: { text },
1062
- row: { id, status }
1063
- } = val;
1064
- if (text === '置为失效') {
1065
- if (status == 0) {
1066
- this.$confirm('您确定要置为失效吗?')
1067
- .then(() => {
1068
- this.loading = util.loading(this.$loading, '提交中...');
1069
- let param = {
1070
- url: deletePresetInfo,
1071
- headers: { Accept: 'application/json,text/plain' },
1072
- method: 'post',
1073
- params: { id }
1074
- };
1075
- util
1076
- .ajax(param)
1077
- .then((res) => {
1078
- const { status, message } = res;
1079
- this.loading.close();
1080
- if (status === 'success') {
1081
- this.$message.success('操作成功');
1082
- this.getListInfo();
1083
- } else {
1084
- this.$message.error(message || '系统错误,请联系管理员!');
1085
- }
1086
- })
1087
- .catch((err) => {
1088
- this.loading.close();
1089
- if (err.message && err.message !== 'canceled') {
1090
- this.$message.error(err.message);
1091
- }
1092
- });
1093
- })
1094
- .catch((e) => {
1095
- // on cancel
1096
- });
1097
- } else {
1098
- this.$message.warning('当前数据已为失效状态');
1099
- }
1100
- }
1101
- },
1102
- /**
1103
- * getCodeValue
1104
- * @desc:获取代码表过滤后的值
1105
- * @param {String} value 展示数据的代码值
1106
- * @param {String} type 代码表类型
1107
- * @author liufan
1108
- * @date 2022年11月10日
1109
- **/
1110
- getCodeValue(value, type) {
1111
- let val = this[type].filter((item) => item.cciValue == value);
1112
- return val[0].shortName;
1113
- },
1114
- /**
1115
- * getSysInfo
1116
- * @desc:获取代码表
1117
- * @param {String} code 编码code值
1118
- * @author liufan
1119
- * @date 2022年11月10日
1120
- **/
1121
- getSysInfo(code) {
1122
- let params = {
1123
- url: findCodeValues,
1124
- params: { ccCode: code }
1125
- };
1126
- util
1127
- .ajax(params)
1128
- .then((res) => {
1129
- const { status, message, data } = res;
1130
- if (status == 'success') {
1131
- this[code] = data;
1132
- } else {
1133
- this.$message.error(message || '系统错误,请联系管理员!');
1134
- }
1135
- })
1136
- .catch((e) => {});
1137
- },
1138
- /**
1139
- * getListInfo
1140
- * @desc:获取预设列表数据
1141
- * @author liufan
1142
- * @date 2022年11月10日
1143
- **/
1144
- getListInfo() {
1145
- let param = {
1146
- url: toPresetInfoListIndex,
1147
- params: { apprecordid: this.businessId }
1148
- };
1149
- util
1150
- .ajax(param)
1151
- .then((res) => {
1152
- const {
1153
- status,
1154
- message,
1155
- data: {
1156
- presetInfoList,
1157
- presetInfoListHiddenColumns,
1158
- canDelete,
1159
- currentUserHasPresetInfoAuth
1160
- }
1161
- } = res;
1162
- this.loading.close();
1163
- if (status == 'success') {
1164
- presetInfoList && (this.presetData = presetInfoList);
1165
- this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1166
- this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1167
- this.canDelete = canDelete;
1168
- } else {
1169
- this.$message.error(message || '系统错误,请联系管理员!');
1170
- }
1171
- })
1172
- .catch((err) => {
1173
- this.loading.close();
1174
- if (err.message && err.message !== 'canceled') {
1175
- this.$message.error(err.message);
1176
- }
1177
- });
1178
- }
1179
- }
1180
- };
1181
- </script>
1182
-
1183
- <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 class="es-flow-list-box">
19
+ <es-data-table
20
+ v-if="show"
21
+ :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
22
+ :display="display"
23
+ number
24
+ @cell-click="handleCellClick"
25
+ full
26
+ v-bind="item"
27
+ :data="returnData(item.type)"
28
+ @btn-click="handleBtnClick"
29
+ ></es-data-table>
30
+ </div>
31
+ </div>
32
+ <es-dialog
33
+ append-to-body
34
+ :close-on-click-modal="false"
35
+ title="查看附件"
36
+ :visible.sync="showFileList"
37
+ v-if="showFileList"
38
+ >
39
+ <FileList
40
+ :ownId="wfpendingid"
41
+ :code="flowTableInfo.adjunctCode"
42
+ :deleted="false"
43
+ :disabled="true"
44
+ @cancel="showFileList = false"
45
+ />
46
+ </es-dialog>
47
+ <es-dialog
48
+ append-to-body
49
+ :close-on-click-modal="false"
50
+ title="查看催办记录"
51
+ :visible.sync="showPress"
52
+ height="500px"
53
+ v-if="showPress"
54
+ >
55
+ <div style="height: 400px" v-loading="pressLoading">
56
+ <es-data-table
57
+ v-if="show"
58
+ :data="pressTableList"
59
+ :thead="pressThead"
60
+ @page-size-change="handleSizeChange"
61
+ @page-current-change="handleCurrentChange"
62
+ stripe
63
+ full
64
+ style="width: 100%"
65
+ @sort-change="sortChange"
66
+ :page="pageInfo"
67
+ />
68
+ </div>
69
+ </es-dialog>
70
+ <es-dialog
71
+ append-to-body
72
+ :close-on-click-modal="false"
73
+ title="删除"
74
+ :visible.sync="showDel"
75
+ height="auto"
76
+ class="del-flow"
77
+ v-if="showDel"
78
+ >
79
+ <es-form
80
+ v-loading="delLoading"
81
+ :model="formData"
82
+ :contents="formItemList"
83
+ @submit="handleFormSubmit"
84
+ >
85
+ </es-form>
86
+ </es-dialog>
87
+ </div>
88
+ </template>
89
+
90
+ <script>
91
+ import {
92
+ findCodeValues,
93
+ deletePresetInfo,
94
+ pendedhistoryListJson,
95
+ toPresetInfoListIndex,
96
+ pressListJson,
97
+ deleteFlow
98
+ } from 'eoss-ui/src/config/api';
99
+ import FileList from '../../flow/src/component/FileList.vue';
100
+ import util from 'eoss-ui/src/utils/util';
101
+ export default {
102
+ name: 'EsFlowList',
103
+ components: {
104
+ [FileList.name]: FileList
105
+ },
106
+ props: {
107
+ businessId: {
108
+ type: String,
109
+ default: ''
110
+ },
111
+ hide: {
112
+ type: String,
113
+ default: ''
114
+ },
115
+ params: {
116
+ type: Object,
117
+ default: () => {return {}}
118
+ },
119
+ toolbar: {
120
+ type: Array,
121
+ default: () => []
122
+ },
123
+ contents: {
124
+ type: Array,
125
+ default() {
126
+ return ['flow', 'splitReading', 'preset'];
127
+ },
128
+ },
129
+ theadWidth:{
130
+ type:Object,
131
+ default: () => {
132
+ return {}
133
+ }
134
+ },
135
+ display: Boolean
136
+ },
137
+ inheritAttrs: false,
138
+ data() {
139
+ return {
140
+ pressLoading: false,
141
+ pressTableList: [],
142
+ currentPage: 1,
143
+ pageSize: 20,
144
+ currentUserHasPresetInfoAuth: false,
145
+ pressThead: [
146
+ {
147
+ title: '催办节点',
148
+ align: 'center',
149
+ sortable: true,
150
+ field: 'urge_item'
151
+ },
152
+ {
153
+ title: '催办人名称',
154
+ sortable: true,
155
+ align: 'center',
156
+ field: 'urge_man_name'
157
+ },
158
+ {
159
+ title: '催办时间',
160
+ sortable: true,
161
+ align: 'center',
162
+ field: 'urge_time'
163
+ },
164
+ {
165
+ title: '被催办人名称',
166
+ align: 'center',
167
+ sortable: true,
168
+ field: 'urged_man_name'
169
+ }
170
+ ],
171
+ wfpendingid: '',
172
+ showFileList: false,
173
+ flowData: [],
174
+ splitReadingData: [],
175
+ presetData: [],
176
+ signData: [],
177
+ loading: '', //加载中
178
+ preset_type: [], //预设类型
179
+ showPress: false, //查看催办记录弹窗
180
+ modify: false,
181
+ formData: { reason: '' },
182
+ formItemList: [
183
+ {
184
+ name: 'reason',
185
+ label: '删除原因',
186
+ type: 'textarea',
187
+ placeholder: '请输入删除原因',
188
+ rules: {
189
+ required: true,
190
+ message: '请输入删除原因',
191
+ trigger: 'blur'
192
+ },
193
+ value: '',
194
+ rows: 5
195
+ },
196
+ {
197
+ type: 'submit',
198
+ skin: 'lay-form-btns',
199
+ contents: [
200
+ {
201
+ type: 'primary',
202
+ plain: true,
203
+ text: '保存',
204
+ event: 'confirm'
205
+ }
206
+ ]
207
+ }
208
+ ],
209
+ delLoading: false,
210
+ showDel: false,
211
+ attachmentPaperClipCssStyle: '',
212
+ is_edit: [], //是否可编辑
213
+ flowTableInfo: {
214
+ adjunctCode: '',
215
+ hasAgent: '1' //是否展示代办人 1:展示 0:不展示
216
+ },
217
+ show: false,
218
+ taskReadName: '', //非流程列表名称
219
+ options: [
220
+ { label: '时间排序', value: '1' },
221
+ { label: '部门排序', value: '2' },
222
+ { label: '树形排序', value: '3' }
223
+ ],
224
+ isShort: 0, //是否隐藏筛选
225
+ viewType: '1', //排序方式
226
+ flowTableList: [], //流程列表
227
+ fyTableList: [], //分阅列表
228
+ showSuggest: 'all', //筛选显示数据
229
+ presetInfoListHiddenColumns: '', //隐藏表格展示数据
230
+ canDelete: false, //是否展示操作按钮
231
+ historyId: '',
232
+ sidx: '',
233
+ sord: '',
234
+ total: 0
235
+ };
236
+ },
237
+ computed: {
238
+ toolbars() {
239
+ return {
240
+ flow: [
241
+ {
242
+ type: 'text',
243
+ contents: '流程列表'
244
+ },
245
+ {
246
+ type: 'search',
247
+ contents: [
248
+ {
249
+ name: 'showSuggest',
250
+ type: 'radio',
251
+ changeSearch: true,
252
+ data: [
253
+ {
254
+ value: 'all',
255
+ name: '显示全部',
256
+ checked: true
257
+ },
258
+ { value: 'have', name: '显示已填意见' }
259
+ ],
260
+ events: {
261
+ change: (key, value) => {
262
+ this.handleChange(key, value);
263
+ }
264
+ }
265
+ },
266
+ {
267
+ type: 'select',
268
+ placeholder: '请选择',
269
+ name: 'viewType',
270
+ width: '140px',
271
+ changeSearch: true,
272
+ events: {
273
+ change: (key, value) => {
274
+ this.handleChange(key, value);
275
+ }
276
+ },
277
+ data: [
278
+ {
279
+ value: 1,
280
+ selected: true,
281
+ name: '时间排序'
282
+ },
283
+ {
284
+ value: 2,
285
+ name: '部门排序'
286
+ },
287
+ {
288
+ value: 3,
289
+ name: '树形排序'
290
+ }
291
+ ]
292
+ }
293
+ ]
294
+ }
295
+ ],
296
+ preset: [
297
+ {
298
+ type: 'text',
299
+ contents: '预设列表'
300
+ }
301
+ ],
302
+ sign: [
303
+ {
304
+ type: 'button',
305
+ contents: [
306
+ {
307
+ text: '生成处理签',
308
+ type: 'primary'
309
+ }
310
+ ]
311
+ }
312
+ ],
313
+ splitReading: [
314
+ {
315
+ type: 'text',
316
+ contents:
317
+ (this.taskReadName ? this.taskReadName : '非流程') + '列表'
318
+ }
319
+ ]
320
+ };
321
+ },
322
+ pageInfo() {
323
+ return {
324
+ pageNum: this.currentPage,
325
+ pageSize: this.pageSize,
326
+ totalCount: this.total
327
+ };
328
+ },
329
+ theads() {
330
+ const _that = this;
331
+ return {
332
+ flow: [
333
+ {
334
+ label: '经办部门',
335
+ field: 'deptid',
336
+ align: 'center',
337
+ key: 'jbbm',
338
+ showOverflowTooltip: true,
339
+ width:this.theadWidth.deptid || 150
340
+ },
341
+ {
342
+ label: '步骤',
343
+ field: 'itemname',
344
+ align: 'center',
345
+ key: 'bz',
346
+ showOverflowTooltip: true,
347
+ width:this.theadWidth.itemname || 110
348
+ },
349
+ {
350
+ label: '办理人',
351
+ field: 'userName',
352
+ align: 'center',
353
+ key: 'blr',
354
+ showOverflowTooltip: true,
355
+ width:this.theadWidth.userName || 110
356
+ },
357
+ {
358
+ label: '办理人部门',
359
+ field: 'deptName',
360
+ align: 'center',
361
+ showOverflowTooltip: true,
362
+ key: 'blrbm',
363
+ width:this.theadWidth.deptName || 110
364
+ },
365
+ {
366
+ label: '状态',
367
+ field: 'pendstate',
368
+ key: 'zt',
369
+ align: 'center',
370
+ showOverflowTooltip: true,
371
+ width:this.theadWidth.pendstate || 80,
372
+ render: (h, params) => {
373
+ return h('span', {
374
+ style: {
375
+ color:
376
+ params.row.pendstate == 0 || params.row.pendstate == 3
377
+ ? 'red'
378
+ : params.row.pendstate == 1
379
+ ? 'green'
380
+ : 'deepskyblue'
381
+ },
382
+ domProps: { innerHTML: params.row.querykeywords }
383
+ });
384
+ }
385
+ },
386
+ {
387
+ label: '办理意见',
388
+ field: 'doresult',
389
+ align: 'center',
390
+ width:this.theadWidth.doresult,
391
+ showOverflowTooltip: true,
392
+ key: 'blyj',
393
+ render: (h, params) => {
394
+ if(params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))){
395
+ return h('img', {attrs:{src: params.row.doresult},style:{width:'100px',height:'100px'}});
396
+ }else{
397
+ return h('span', {}, [
398
+ params.row.doresult
399
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
400
+ : '',
401
+ h(
402
+ 'span',
403
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
404
+ params.row.handleInfo || ''
405
+ )
406
+ ]);
407
+ }
408
+ }
409
+ },
410
+ {
411
+ label: '验签',
412
+ field: 'authTypeStr',
413
+ align: 'center',
414
+ key: 'yq',
415
+ showOverflowTooltip: true,
416
+ width:this.theadWidth.authTypeStr || 70,
417
+ render: (h, params) => {
418
+ return h(
419
+ 'span',
420
+ { style: { color: 'deepskyblue' } },
421
+ params.row.authTypeStr
422
+ );
423
+ }
424
+ },
425
+ {
426
+ label: '附件',
427
+ key: 'fj',
428
+ field: 'hasAdjunct',
429
+ align: 'center',
430
+ showOverflowTooltip: true,
431
+ width:this.theadWidth.hasAdjunct || 70,
432
+ render: (h, params) => {
433
+ if (params.row.hasAdjunct) {
434
+ return h('span', {
435
+ style: _that.attachmentPaperClipCssStyle
436
+ ? _that.attachmentPaperClipCssStyle
437
+ : { color: 'red', fontSize: '20px' },
438
+ class: 'iconfont es-icon-fujian'
439
+ });
440
+ } else {
441
+ return h('span', {}, '');
442
+ }
443
+ }
444
+ },
445
+ {
446
+ label: '时间',
447
+ field: 'doetime',
448
+ align: 'center',
449
+ key: 'sj',
450
+ showOverflowTooltip: true,
451
+ width:this.theadWidth.doetime || 150,
452
+ render: (h, params) => {
453
+ return h(
454
+ 'span',
455
+ {},
456
+ params.row.doetime
457
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
458
+ : ''
459
+ );
460
+ }
461
+ },
462
+ {
463
+ label: '代办人',
464
+ field: 'douserid',
465
+ align: 'center',
466
+ key: 'dbr',
467
+ showOverflowTooltip: true,
468
+ width:this.theadWidth.douserid || 80,
469
+ hide: _that.flowTableInfo.hasAgent != '1'
470
+ },
471
+ {
472
+ label: '催办',
473
+ field: 'pressTimes',
474
+ align: 'center',
475
+ key: 'cb',
476
+ showOverflowTooltip: true,
477
+ width:this.theadWidth.pressTimes || 150,
478
+ render: (h, params) => {
479
+ return h(
480
+ 'span',
481
+ { style: 'color:deepskyblue;cursor: pointer;' },
482
+ params.row.pressTimes
483
+ );
484
+ }
485
+ },
486
+ {
487
+ title: '操作',
488
+ type: 'handle',
489
+ width: this.modify ? '130' : '100',
490
+ template: '',
491
+ events: [
492
+ {
493
+ text: '删除',
494
+ rules: (rows) => {
495
+ return rows.canDelete;
496
+ }
497
+ }
498
+ // {
499
+ // text: '修改',
500
+ // rules: (rows) => {
501
+ // return this.modify && rows.pendstate == 2;
502
+ // }
503
+ // }
504
+ ]
505
+ }
506
+ ],
507
+ preset: this.thead,
508
+ splitReading: [
509
+ {
510
+ label: '经办部门',
511
+ field: 'deptid',
512
+ key: 'jbbm',
513
+ align: 'center',
514
+ showOverflowTooltip: true,
515
+ width:this.theadWidth.deptid || 150
516
+ },
517
+ {
518
+ label: '步骤',
519
+ field: 'itemname',
520
+ align: 'center',
521
+ key: 'bz',
522
+ showOverflowTooltip: true,
523
+ width:this.theadWidth.itemname || 110
524
+ },
525
+ {
526
+ label: '办理人',
527
+ field: 'userName',
528
+ align: 'center',
529
+ key: 'blr',
530
+ showOverflowTooltip: true,
531
+ width:this.theadWidth.userName || 110
532
+ },
533
+ {
534
+ label: '状态',
535
+ field: 'pendstate',
536
+ align: 'center',
537
+ key: 'zt',
538
+ showOverflowTooltip: true,
539
+ width:this.theadWidth.pendstate || 80,
540
+ render: (h, params) => {
541
+ return h('span', {
542
+ style: {
543
+ color:
544
+ params.row.pendstate == 0 || params.row.pendstate == 3
545
+ ? 'red'
546
+ : params.row.pendstate == 1
547
+ ? 'green'
548
+ : 'deepskyblue'
549
+ },
550
+ domProps: { innerHTML: params.row.querykeywords }
551
+ });
552
+ }
553
+ },
554
+ {
555
+ label: '办理意见',
556
+ field: 'doresult',
557
+ align: 'center',
558
+ key: 'blyj',
559
+ width:this.theadWidth.doresult,
560
+ showOverflowTooltip: true,
561
+ render: (h, params) => {
562
+ if(params.row.doresult && (params.row.doresult.startsWith('http') || params.row.doresult.startsWith('https'))){
563
+ return h('img', {attrs:{src: params.row.doresult},style:{width:'100px',height:'100px'}});
564
+ }else{
565
+ return h('span', {}, [
566
+ params.row.doresult
567
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
568
+ : '',
569
+ h(
570
+ 'span',
571
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
572
+ params.row.handleInfo || ''
573
+ )
574
+ ]);
575
+ }
576
+ }
577
+ },
578
+ {
579
+ label: '验签',
580
+ field: 'authTypeStr',
581
+ align: 'center',
582
+ key: 'yq',
583
+ showOverflowTooltip: true,
584
+ width:this.theadWidth.authTypeStr || 70,
585
+ render: (h, params) => {
586
+ return h(
587
+ 'span',
588
+ { style: { color: 'deepskyblue' } },
589
+ params.row.authTypeStr
590
+ );
591
+ }
592
+ },
593
+ {
594
+ label: '附件',
595
+ field: 'hasAdjunct',
596
+ align: 'center',
597
+ key: 'fj',
598
+ showOverflowTooltip: true,
599
+ width:this.theadWidth.hasAdjunct || 70,
600
+ render: (h, params) => {
601
+ if (params.row.hasAdjunct) {
602
+ return h('span', {
603
+ style: _that.attachmentPaperClipCssStyle
604
+ ? _that.attachmentPaperClipCssStyle
605
+ : { color: 'red', fontSize: '20px' },
606
+ class: 'iconfont es-icon-fujian'
607
+ });
608
+ } else {
609
+ return h('span', {}, '');
610
+ }
611
+ }
612
+ },
613
+ {
614
+ label: '时间',
615
+ field: 'doetime',
616
+ align: 'center',
617
+ key: 'sj',
618
+ showOverflowTooltip: true,
619
+ width:this.theadWidth.doetime || 150,
620
+ render: (h, params) => {
621
+ return h(
622
+ 'span',
623
+ {},
624
+ params.row.doetime
625
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
626
+ : ''
627
+ );
628
+ }
629
+ },
630
+ {
631
+ label: '代办人',
632
+ field: 'douserid',
633
+ align: 'center',
634
+ key: 'dbr',
635
+ showOverflowTooltip: true,
636
+ width:this.theadWidth.douserid || 80,
637
+ hide: _that.flowTableInfo.hasAgent != '1'
638
+ },
639
+ {
640
+ label: '催办',
641
+ field: 'pressTimes',
642
+ align: 'center',
643
+ key: 'cb',
644
+ showOverflowTooltip: true,
645
+ width:this.theadWidth.pressTimes || 150,
646
+ render: (h, params) => {
647
+ return h(
648
+ 'span',
649
+ { style: 'color:deepskyblue;cursor: pointer;' },
650
+ params.row.pressTimes
651
+ );
652
+ }
653
+ },
654
+ {
655
+ title: '操作',
656
+ type: 'handle',
657
+ width: '100',
658
+ template: '',
659
+ events: [
660
+ {
661
+ text: '删除',
662
+ rules: (rows) => {
663
+ return rows.canDelete;
664
+ }
665
+ }
666
+ ]
667
+ }
668
+ ]
669
+ };
670
+ },
671
+ content() {
672
+ let contents = this.contents.map((item) => {
673
+ if (typeof item === 'string') {
674
+ return {
675
+ type: item,
676
+ toolbar: this.toolbars[item],
677
+ thead: this.theads[item],
678
+ showFormBtn: false
679
+ };
680
+ } else {
681
+ if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
682
+ let toolbars = this.toolbars[item.type];
683
+ return { ...item, toolbars };
684
+ }
685
+ if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
686
+ let thead = this.theads[item.type];
687
+ return { ...item, thead };
688
+ }
689
+ return item;
690
+ }
691
+ });
692
+ return contents;
693
+ },
694
+ newToolbar() {
695
+ if (this.toolbar && this.toolbar.length > 0) {
696
+ return this.toolbar;
697
+ } else {
698
+ return [];
699
+ }
700
+ },
701
+ thead() {
702
+ let table = [
703
+ {
704
+ title: '步骤',
705
+ align: 'center',
706
+ width:this.theadWidth.nodeName || '100',
707
+ field: 'nodeName'
708
+ },
709
+ {
710
+ title: '预设办理人',
711
+ width:this.theadWidth.presetUserName || '120',
712
+ align: 'center',
713
+ field: 'presetUserName'
714
+ },
715
+ {
716
+ title: '是否可编辑',
717
+ key: 'sfkbj',
718
+ align: 'center',
719
+ width:this.theadWidth.isEdit || '100',
720
+ render: (h, params) => {
721
+ return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
722
+ },
723
+ field: 'isEdit'
724
+ },
725
+ {
726
+ key: 'zt',
727
+ title: '状态',
728
+ width:this.theadWidth.statusName || '80',
729
+ align: 'center',
730
+ field: 'statusName'
731
+ },
732
+ {
733
+ title: '预设类型',
734
+ key: 'yslx',
735
+ width:this.theadWidth.presetType || '120',
736
+ align: 'center',
737
+ render: (h, params) => {
738
+ return h(
739
+ 'span',
740
+ this.getCodeValue(params.row.presetType, 'preset_type')
741
+ );
742
+ },
743
+ field: 'presetType'
744
+ },
745
+ {
746
+ title: '流程名称',
747
+ key: 'lcmc',
748
+ width:this.theadWidth.processDefName,
749
+ align: 'center',
750
+ field: 'processDefName'
751
+ },
752
+ {
753
+ title: '上一步骤',
754
+ key: 'sybz',
755
+ align: 'center',
756
+ width:this.theadWidth.lastNodeName,
757
+ field: 'lastNodeName'
758
+ },
759
+ {
760
+ title: '创建步骤',
761
+ key: 'cjbz',
762
+ align: 'center',
763
+ width:this.theadWidth.operationNodeName,
764
+ field: 'operationNodeName'
765
+ },
766
+ {
767
+ title: '创建人',
768
+ key: 'cjr',
769
+ width:this.theadWidth.creatorName || '120',
770
+ align: 'center',
771
+ field: 'creatorName'
772
+ },
773
+ {
774
+ title: '创建时间',
775
+ width:this.theadWidth.createTime || '150',
776
+ key: 'cjsj',
777
+ align: 'center',
778
+ render: (h, params) => {
779
+ return h(
780
+ 'span',
781
+ util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
782
+ );
783
+ },
784
+ field: 'createTime'
785
+ },
786
+ {
787
+ title: '操作区域',
788
+ type: 'handle',
789
+ align: 'center',
790
+ width: '120',
791
+ events: [
792
+ {
793
+ text: '置为失效'
794
+ }
795
+ ]
796
+ }
797
+ ];
798
+ if (
799
+ this.presetInfoListHiddenColumns != undefined &&
800
+ this.presetInfoListHiddenColumns != ''
801
+ ) {
802
+ table = table.filter(
803
+ (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
804
+ );
805
+ }
806
+ if (!this.canDelete) table.splice(table.length - 1, 1);
807
+ return table;
808
+ }
809
+ },
810
+ mounted() {
811
+ this.loading = util.loading(this.$loading, '加载中...');
812
+ this.getFlowList();
813
+ this.getSysInfo('preset_type');
814
+ this.getSysInfo('is_edit');
815
+ this.getListInfo();
816
+ },
817
+
818
+ methods: {
819
+ returnData(type) {
820
+ switch (type) {
821
+ case 'preset':
822
+ return this.presetData;
823
+ case 'sign':
824
+ return this.signData;
825
+ case 'splitReading':
826
+ return this.splitReadingData;
827
+ default:
828
+ return this.flowData;
829
+ }
830
+ },
831
+ handleCellClick(row, column) {
832
+ if (column.property == 'hasAdjunct' && row.hasAdjunct) {
833
+ this.showFile(row.wfpendingid);
834
+ } else if (column.property == 'pressTimes') {
835
+ this.goPress(row.id);
836
+ }
837
+ },
838
+ handleBtnClick(data) {
839
+ const { handle, row } = data;
840
+ if (handle.text == '删除') {
841
+ this.del(row.id);
842
+ }
843
+ },
844
+ /**
845
+ * handleFormSubmit
846
+ * @desc:删除节点点击事件
847
+ * @param {Object} formData 点击删除的form数据
848
+ * @author liufan
849
+ * @date 2022年11月29日
850
+ **/
851
+ handleFormSubmit(formData) {
852
+ this.delLoading = true;
853
+ let params = {
854
+ url: deleteFlow,
855
+ method: 'POST',
856
+ data: { id: this.historyId, reason: formData.reason }
857
+ };
858
+ util
859
+ .ajax(params)
860
+ .then((res) => {
861
+ const { status, message } = res;
862
+ this.delLoading = false;
863
+ if (status === 'success') {
864
+ this.$message.success('删除成功');
865
+ this.showDel = false;
866
+ this.handleChange();
867
+ } else {
868
+ this.$message.error(message || '系统错误,请联系管理员!');
869
+ }
870
+ })
871
+ .catch((err) => {
872
+ this.delLoading = false;
873
+ if (err.message && err.message !== 'canceled') {
874
+ this.$message.error(err.message);
875
+ }
876
+ });
877
+ },
878
+ /**
879
+ * del
880
+ * @desc:展示删除弹窗
881
+ * @param {String} id 当前点击数据id
882
+ * @author liufan
883
+ * @date 2022年11月29日
884
+ **/
885
+ del(id) {
886
+ this.historyId = id;
887
+ this.showDel = true;
888
+ },
889
+ /**
890
+ * handleCurrentChange
891
+ * @desc:监听页码变化
892
+ * @param {String} val 当前页
893
+ * @author liufan
894
+ * @date 2022年11月29日
895
+ **/
896
+ handleCurrentChange(val) {
897
+ this.currentPage = val;
898
+ this.getPressList();
899
+ },
900
+ /**
901
+ * handleSizeChange
902
+ * @desc:监听每页数据显示数量变化
903
+ * @param {String} val 每页展示数量
904
+ * @author liufan
905
+ * @date 2022年11月29日
906
+ **/
907
+ handleSizeChange(val) {
908
+ this.pageSize = val;
909
+ this.getPressList();
910
+ },
911
+ /**
912
+ * sortChange
913
+ * @desc:监听排序变化
914
+ * @param {Object} info 需要排序的字段及排序方式
915
+ * @author liufan
916
+ * @date 2022年11月29日
917
+ **/
918
+ sortChange(info) {
919
+ let { prop, order } = info;
920
+ this.sidx = prop;
921
+ this.sord = order.replace('ending', '');
922
+ this.getPressList();
923
+ },
924
+ /**
925
+ * getPressList
926
+ * @desc:催办列表数据
927
+ * @author liufan
928
+ * @date 2022年11月29日
929
+ **/
930
+ getPressList() {
931
+ const { historyId, pageSize, sidx, sord, currentPage } = this;
932
+ this.pressLoading = true;
933
+ let params = {
934
+ url: pressListJson,
935
+ params: { historyId },
936
+ method: 'POST',
937
+ data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
938
+ };
939
+ util
940
+ .ajax(params)
941
+ .then((res) => {
942
+ this.pressTableList = res.data;
943
+ this.total = res.totalrecords;
944
+ this.pressLoading = false;
945
+ })
946
+ .catch((err) => {
947
+ this.pressLoading = false;
948
+ if (err.message && err.message !== 'canceled') {
949
+ this.$message.error(err.message);
950
+ }
951
+ });
952
+ },
953
+ /**
954
+ * goPress
955
+ * @desc:催办列表查看
956
+ * @param {String} id 催办列表id
957
+ * @author liufan
958
+ * @date 2022年11月29日
959
+ **/
960
+ goPress(id) {
961
+ this.historyId = id;
962
+ this.showPress = true;
963
+ this.getPressList();
964
+ },
965
+ /**
966
+ * showFile
967
+ * @desc:附件查看
968
+ * @param {String} ownId 附件id
969
+ * @author liufan
970
+ * @date 2022年11月29日
971
+ **/
972
+ showFile(ownId) {
973
+ this.wfpendingid = ownId;
974
+ this.showFileList = true;
975
+ },
976
+ /**
977
+ * handleChange
978
+ * @desc:切换排序方式
979
+ * @author liufan
980
+ * @date 2022年11月22日
981
+ **/
982
+ handleChange(key, value) {
983
+ if (value) {
984
+ this[key] = value;
985
+ }
986
+ // this.show = false;
987
+ this.loading = util.loading(this.$loading, '加载中...');
988
+ this.getFlowList();
989
+ },
990
+ /**
991
+ * getFlowList
992
+ * @desc:获取流程列表
993
+ * @author liufan
994
+ * @date 2022年11月22日
995
+ **/
996
+ getFlowList() {
997
+ let params = {
998
+ url: pendedhistoryListJson,
999
+ params: {
1000
+ apprecordid: this.businessId,
1001
+ pendingAttr: 0,
1002
+ viewType: this.viewType,
1003
+ showSuggest: this.showSuggest,
1004
+ ...this.params
1005
+ }
1006
+ };
1007
+ util
1008
+ .ajax(params)
1009
+ .then((res) => {
1010
+ const {
1011
+ status,
1012
+ message,
1013
+ data: {
1014
+ adjunctCode,
1015
+ wfHistoryList,
1016
+ fyHistoryList,
1017
+ hasAgent,
1018
+ isShort,
1019
+ modify,
1020
+ taskReadName
1021
+ }
1022
+ } = res;
1023
+ this.loading.close();
1024
+ if (status == 'success') {
1025
+ this.flowTableInfo.adjunctCode = adjunctCode;
1026
+ this.flowTableInfo.hasAgent = hasAgent;
1027
+ this.attachmentPaperClipCssStyle =
1028
+ res.data.attachmentPaperClipCssStyle;
1029
+ this.isShort = isShort;
1030
+ this.taskReadName = taskReadName;
1031
+ this.flowData = wfHistoryList;
1032
+ this.flowData.map((x) => {
1033
+ if (!x.deptid) {
1034
+ x.deptid = x.deptName;
1035
+ }
1036
+ });
1037
+ this.splitReadingData = fyHistoryList;
1038
+ this.modify = modify;
1039
+ this.show = true;
1040
+ } else {
1041
+ this.$message.error(message || '系统错误,请联系管理员!');
1042
+ }
1043
+ })
1044
+ .catch((err) => {
1045
+ this.loading.close();
1046
+ if (err.message && err.message !== 'canceled') {
1047
+ this.$message.error(err.message);
1048
+ }
1049
+ this.show = true;
1050
+ });
1051
+ },
1052
+ /**
1053
+ * handleClick
1054
+ * @desc:表单点击事件
1055
+ * @param {Object} val 当前点击行数据及按钮
1056
+ * @author liufan
1057
+ * @date 2022年11月10日
1058
+ **/
1059
+ handleClick(val) {
1060
+ const {
1061
+ handle: { text },
1062
+ row: { id, status }
1063
+ } = val;
1064
+ if (text === '置为失效') {
1065
+ if (status == 0) {
1066
+ this.$confirm('您确定要置为失效吗?')
1067
+ .then(() => {
1068
+ this.loading = util.loading(this.$loading, '提交中...');
1069
+ let param = {
1070
+ url: deletePresetInfo,
1071
+ headers: { Accept: 'application/json,text/plain' },
1072
+ method: 'post',
1073
+ params: { id }
1074
+ };
1075
+ util
1076
+ .ajax(param)
1077
+ .then((res) => {
1078
+ const { status, message } = res;
1079
+ this.loading.close();
1080
+ if (status === 'success') {
1081
+ this.$message.success('操作成功');
1082
+ this.getListInfo();
1083
+ } else {
1084
+ this.$message.error(message || '系统错误,请联系管理员!');
1085
+ }
1086
+ })
1087
+ .catch((err) => {
1088
+ this.loading.close();
1089
+ if (err.message && err.message !== 'canceled') {
1090
+ this.$message.error(err.message);
1091
+ }
1092
+ });
1093
+ })
1094
+ .catch((e) => {
1095
+ // on cancel
1096
+ });
1097
+ } else {
1098
+ this.$message.warning('当前数据已为失效状态');
1099
+ }
1100
+ }
1101
+ },
1102
+ /**
1103
+ * getCodeValue
1104
+ * @desc:获取代码表过滤后的值
1105
+ * @param {String} value 展示数据的代码值
1106
+ * @param {String} type 代码表类型
1107
+ * @author liufan
1108
+ * @date 2022年11月10日
1109
+ **/
1110
+ getCodeValue(value, type) {
1111
+ let val = this[type].filter((item) => item.cciValue == value);
1112
+ return val[0].shortName;
1113
+ },
1114
+ /**
1115
+ * getSysInfo
1116
+ * @desc:获取代码表
1117
+ * @param {String} code 编码code值
1118
+ * @author liufan
1119
+ * @date 2022年11月10日
1120
+ **/
1121
+ getSysInfo(code) {
1122
+ let params = {
1123
+ url: findCodeValues,
1124
+ params: { ccCode: code }
1125
+ };
1126
+ util
1127
+ .ajax(params)
1128
+ .then((res) => {
1129
+ const { status, message, data } = res;
1130
+ if (status == 'success') {
1131
+ this[code] = data;
1132
+ } else {
1133
+ this.$message.error(message || '系统错误,请联系管理员!');
1134
+ }
1135
+ })
1136
+ .catch((e) => {});
1137
+ },
1138
+ /**
1139
+ * getListInfo
1140
+ * @desc:获取预设列表数据
1141
+ * @author liufan
1142
+ * @date 2022年11月10日
1143
+ **/
1144
+ getListInfo() {
1145
+ let param = {
1146
+ url: toPresetInfoListIndex,
1147
+ params: { apprecordid: this.businessId }
1148
+ };
1149
+ util
1150
+ .ajax(param)
1151
+ .then((res) => {
1152
+ const {
1153
+ status,
1154
+ message,
1155
+ data: {
1156
+ presetInfoList,
1157
+ presetInfoListHiddenColumns,
1158
+ canDelete,
1159
+ currentUserHasPresetInfoAuth
1160
+ }
1161
+ } = res;
1162
+ this.loading.close();
1163
+ if (status == 'success') {
1164
+ presetInfoList && (this.presetData = presetInfoList);
1165
+ this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1166
+ this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1167
+ this.canDelete = canDelete;
1168
+ } else {
1169
+ this.$message.error(message || '系统错误,请联系管理员!');
1170
+ }
1171
+ })
1172
+ .catch((err) => {
1173
+ this.loading.close();
1174
+ if (err.message && err.message !== 'canceled') {
1175
+ this.$message.error(err.message);
1176
+ }
1177
+ });
1178
+ }
1179
+ }
1180
+ };
1181
+ </script>
1182
+
1183
+ <style></style>