eoss-ui 0.7.85 → 0.7.86

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 (361) hide show
  1. package/lib/button-group.js +155 -143
  2. package/lib/button.js +155 -143
  3. package/lib/calogin.js +388 -376
  4. package/lib/checkbox-group.js +157 -145
  5. package/lib/config/api.js +8 -0
  6. package/lib/data-table-form.js +157 -145
  7. package/lib/data-table.js +160 -148
  8. package/lib/date-picker.js +155 -143
  9. package/lib/dialog.js +155 -143
  10. package/lib/eoss-ui.common.js +1702 -1005
  11. package/lib/flow-group.js +155 -143
  12. package/lib/flow-list.js +1030 -333
  13. package/lib/flow.js +537 -521
  14. package/lib/form.js +157 -145
  15. package/lib/handle-user.js +156 -144
  16. package/lib/handler.js +156 -144
  17. package/lib/icon.js +156 -144
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +155 -143
  20. package/lib/input.js +155 -143
  21. package/lib/login.js +170 -158
  22. package/lib/main.js +502 -490
  23. package/lib/nav.js +155 -143
  24. package/lib/notify.js +158 -146
  25. package/lib/page.js +155 -143
  26. package/lib/pagination.js +155 -143
  27. package/lib/player.js +155 -143
  28. package/lib/qr-code.js +168 -156
  29. package/lib/radio-group.js +157 -145
  30. package/lib/retrial-auth.js +159 -147
  31. package/lib/select-ganged.js +157 -145
  32. package/lib/select.js +157 -145
  33. package/lib/selector-panel.js +173 -161
  34. package/lib/selector.js +157 -145
  35. package/lib/sizer.js +157 -145
  36. package/lib/steps.js +155 -143
  37. package/lib/switch.js +155 -143
  38. package/lib/table-form.js +155 -143
  39. package/lib/tabs.js +155 -143
  40. package/lib/theme-chalk/flow-list.css +1 -1
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/tips.js +156 -144
  43. package/lib/tree-group.js +155 -143
  44. package/lib/tree.js +156 -144
  45. package/lib/upload.js +168 -156
  46. package/lib/wujie.js +155 -143
  47. package/lib/wxlogin.js +155 -143
  48. package/package.json +161 -161
  49. package/packages/button/index.js +5 -5
  50. package/packages/button/src/main.vue +418 -418
  51. package/packages/button-group/index.js +5 -5
  52. package/packages/button-group/src/main.vue +346 -346
  53. package/packages/calendar/index.js +5 -5
  54. package/packages/calogin/index.js +5 -5
  55. package/packages/calogin/src/main.vue +412 -412
  56. package/packages/calogin/src/plugin.js +915 -915
  57. package/packages/card/index.js +5 -5
  58. package/packages/card/src/main.vue +156 -156
  59. package/packages/cascader/index.js +5 -5
  60. package/packages/cascader/src/main.vue +168 -168
  61. package/packages/checkbox-group/index.js +5 -5
  62. package/packages/checkbox-group/src/main.vue +333 -333
  63. package/packages/clients/index.js +5 -5
  64. package/packages/clients/src/main.vue +151 -151
  65. package/packages/data-table/index.js +5 -5
  66. package/packages/data-table/src/children.vue +39 -39
  67. package/packages/data-table/src/column.vue +992 -992
  68. package/packages/data-table/src/main.vue +1840 -1840
  69. package/packages/data-table/src/sizer.vue +195 -195
  70. package/packages/data-table-form/index.js +5 -5
  71. package/packages/data-table-form/src/checkbox.vue +101 -101
  72. package/packages/data-table-form/src/colgroup.vue +17 -17
  73. package/packages/data-table-form/src/main.vue +181 -181
  74. package/packages/data-table-form/src/radio.vue +65 -65
  75. package/packages/data-table-form/src/table.vue +233 -233
  76. package/packages/data-table-form/src/tbody.vue +336 -336
  77. package/packages/data-table-form/src/thead.vue +68 -68
  78. package/packages/date-picker/index.js +5 -5
  79. package/packages/date-picker/src/main.vue +236 -236
  80. package/packages/dialog/index.js +5 -5
  81. package/packages/enable-drag/index.js +5 -5
  82. package/packages/enterprise/index.js +5 -5
  83. package/packages/enterprise/src/main.vue +66 -66
  84. package/packages/error-page/index.js +5 -5
  85. package/packages/error-page/src/main.vue +44 -44
  86. package/packages/flow/index.js +5 -5
  87. package/packages/flow/src/component/Circulate.vue +417 -417
  88. package/packages/flow/src/component/CommonOpinions.vue +376 -376
  89. package/packages/flow/src/component/CustomPreset.vue +324 -324
  90. package/packages/flow/src/component/FileList.vue +97 -97
  91. package/packages/flow/src/component/FreeCirculation.vue +244 -244
  92. package/packages/flow/src/component/Preset.vue +257 -257
  93. package/packages/flow/src/component/SendMsg.vue +242 -242
  94. package/packages/flow/src/component/SortFlow.vue +110 -110
  95. package/packages/flow/src/component/TimeLimit.vue +190 -190
  96. package/packages/flow/src/component/taskUnionExamine.vue +761 -761
  97. package/packages/flow/src/form.vue +123 -123
  98. package/packages/flow/src/freeStartFlow.vue +2855 -2855
  99. package/packages/flow/src/main.vue +4139 -4135
  100. package/packages/flow/src/processForm.vue +1671 -1671
  101. package/packages/flow/src/processReject.vue +309 -309
  102. package/packages/flow/src/reset.vue +946 -946
  103. package/packages/flow/src/startTaskRead.vue +695 -695
  104. package/packages/flow/src/supervise.vue +159 -159
  105. package/packages/flow/src/table.vue +58 -58
  106. package/packages/flow-group/index.js +5 -5
  107. package/packages/flow-group/src/main.vue +727 -727
  108. package/packages/flow-list/index.js +5 -5
  109. package/packages/flow-list/src/main.vue +2306 -1803
  110. package/packages/form/index.js +5 -5
  111. package/packages/form/src/main.vue +3901 -3901
  112. package/packages/form/src/table.vue +1512 -1512
  113. package/packages/handle-user/index.js +5 -5
  114. package/packages/handle-user/src/main.vue +137 -137
  115. package/packages/handler/index.js +5 -5
  116. package/packages/handler/src/main.vue +496 -496
  117. package/packages/icon/index.js +5 -5
  118. package/packages/icon/src/main.vue +104 -104
  119. package/packages/icons/index.js +5 -5
  120. package/packages/icons/src/main.vue +81 -81
  121. package/packages/input/index.js +5 -5
  122. package/packages/input/src/main.vue +356 -356
  123. package/packages/input-number/index.js +5 -5
  124. package/packages/input-number/src/main.vue +106 -106
  125. package/packages/label/index.js +5 -5
  126. package/packages/label/src/main.vue +457 -457
  127. package/packages/layout/index.js +5 -5
  128. package/packages/layout/src/item.vue +152 -152
  129. package/packages/layout/src/main.vue +31 -31
  130. package/packages/login/index.js +5 -5
  131. package/packages/login/src/main.vue +2087 -2087
  132. package/packages/login/src/resetPassword.vue +557 -557
  133. package/packages/main/index.js +5 -5
  134. package/packages/main/src/default/message.vue +249 -249
  135. package/packages/main/src/default/notice.vue +157 -157
  136. package/packages/main/src/default/userinfo.vue +503 -503
  137. package/packages/main/src/public/online.vue +89 -89
  138. package/packages/main/src/public/search.vue +464 -464
  139. package/packages/main/src/public/settings.vue +273 -273
  140. package/packages/main/src/simplicity/apps.vue +388 -388
  141. package/packages/main/src/simplicity/avatar.vue +82 -82
  142. package/packages/main/src/simplicity/handler.vue +158 -158
  143. package/packages/main/src/simplicity/index.vue +2328 -2328
  144. package/packages/main/src/simplicity/lists.vue +84 -84
  145. package/packages/main/src/simplicity/menu-list.vue +135 -135
  146. package/packages/main/src/simplicity/message.vue +293 -293
  147. package/packages/main/src/simplicity/notice.vue +222 -222
  148. package/packages/main/src/simplicity/router-page.vue +45 -45
  149. package/packages/main/src/simplicity/sub-menu.vue +276 -276
  150. package/packages/main/src/simplicity/user.vue +259 -259
  151. package/packages/main/src/simplicity/userinfo.vue +401 -401
  152. package/packages/main/src/simplicityTop/apps.vue +388 -388
  153. package/packages/main/src/simplicityTop/avatar.vue +82 -82
  154. package/packages/main/src/simplicityTop/handler.vue +215 -215
  155. package/packages/main/src/simplicityTop/index.vue +2618 -2618
  156. package/packages/main/src/simplicityTop/lists.vue +84 -84
  157. package/packages/main/src/simplicityTop/menu-list.vue +135 -135
  158. package/packages/main/src/simplicityTop/message.vue +293 -293
  159. package/packages/main/src/simplicityTop/notice.vue +222 -222
  160. package/packages/main/src/simplicityTop/router-page.vue +45 -45
  161. package/packages/main/src/simplicityTop/sub-menu.vue +274 -274
  162. package/packages/main/src/simplicityTop/user.vue +259 -259
  163. package/packages/main/src/simplicityTop/userinfo.vue +401 -401
  164. package/packages/menu/index.js +5 -5
  165. package/packages/menu/src/main.vue +595 -595
  166. package/packages/nav/index.js +5 -5
  167. package/packages/nav/src/main.vue +351 -351
  168. package/packages/notify/index.js +5 -5
  169. package/packages/notify/src/main.vue +538 -538
  170. package/packages/page/index.js +5 -5
  171. package/packages/page/src/main.vue +167 -167
  172. package/packages/pagination/index.js +5 -5
  173. package/packages/pagination/src/main.vue +96 -96
  174. package/packages/player/index.js +5 -5
  175. package/packages/player/src/main.vue +194 -194
  176. package/packages/qr-code/index.js +5 -5
  177. package/packages/qr-code/src/main.vue +170 -170
  178. package/packages/radio-group/index.js +6 -6
  179. package/packages/radio-group/src/main.vue +319 -319
  180. package/packages/retrial-auth/index.js +5 -5
  181. package/packages/retrial-auth/src/main.vue +280 -280
  182. package/packages/select/index.js +5 -5
  183. package/packages/select/src/main.vue +782 -782
  184. package/packages/select-ganged/index.js +5 -5
  185. package/packages/select-ganged/src/main.vue +724 -724
  186. package/packages/selector/index.js +5 -5
  187. package/packages/selector/src/main.vue +761 -761
  188. package/packages/selector-panel/index.js +5 -5
  189. package/packages/selector-panel/src/main.vue +1036 -1036
  190. package/packages/selector-panel/src/selection.vue +174 -174
  191. package/packages/selector-panel/src/tree.vue +129 -129
  192. package/packages/sizer/index.js +5 -5
  193. package/packages/sizer/src/main.vue +254 -254
  194. package/packages/steps/index.js +5 -5
  195. package/packages/steps/src/main.vue +181 -181
  196. package/packages/switch/index.js +5 -5
  197. package/packages/switch/src/main.vue +170 -170
  198. package/packages/table-form/index.js +5 -5
  199. package/packages/tabs/index.js +5 -5
  200. package/packages/tabs/src/main.vue +788 -788
  201. package/packages/tabs-panel/index.js +5 -5
  202. package/packages/tabs-panel/src/main.vue +29 -29
  203. package/packages/theme-chalk/gulpfile.js +25 -0
  204. package/packages/theme-chalk/src/base.scss +261 -261
  205. package/packages/theme-chalk/src/button-group.scss +176 -176
  206. package/packages/theme-chalk/src/button.scss +24 -24
  207. package/packages/theme-chalk/src/calendar.scss +113 -113
  208. package/packages/theme-chalk/src/card.scss +99 -99
  209. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  210. package/packages/theme-chalk/src/clients.scss +87 -87
  211. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  212. package/packages/theme-chalk/src/data-table.scss +297 -297
  213. package/packages/theme-chalk/src/date-picker.scss +7 -7
  214. package/packages/theme-chalk/src/dialog.scss +77 -77
  215. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  216. package/packages/theme-chalk/src/enterprise.scss +5 -5
  217. package/packages/theme-chalk/src/error-page.scss +18 -18
  218. package/packages/theme-chalk/src/flow-group.scss +110 -110
  219. package/packages/theme-chalk/src/flow-list.scss +55 -39
  220. package/packages/theme-chalk/src/flow.scss +373 -373
  221. package/packages/theme-chalk/src/form.scss +501 -501
  222. package/packages/theme-chalk/src/handle-user.scss +40 -40
  223. package/packages/theme-chalk/src/handler.scss +148 -148
  224. package/packages/theme-chalk/src/icon.scss +3452 -3452
  225. package/packages/theme-chalk/src/icons.scss +99 -99
  226. package/packages/theme-chalk/src/input.scss +9 -9
  227. package/packages/theme-chalk/src/label.scss +24 -24
  228. package/packages/theme-chalk/src/layout.scss +46 -46
  229. package/packages/theme-chalk/src/login.scss +1006 -1006
  230. package/packages/theme-chalk/src/main.scss +664 -664
  231. package/packages/theme-chalk/src/menu.scss +224 -224
  232. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  233. package/packages/theme-chalk/src/nav.scss +111 -111
  234. package/packages/theme-chalk/src/page.scss +3 -3
  235. package/packages/theme-chalk/src/pagination.scss +29 -29
  236. package/packages/theme-chalk/src/player.scss +9 -9
  237. package/packages/theme-chalk/src/qr-code.scss +17 -17
  238. package/packages/theme-chalk/src/radio-group.scss +9 -9
  239. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  240. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  241. package/packages/theme-chalk/src/select.scss +8 -8
  242. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  243. package/packages/theme-chalk/src/selector.scss +114 -114
  244. package/packages/theme-chalk/src/simplicity-top.scss +1845 -1845
  245. package/packages/theme-chalk/src/simplicity.scss +1403 -1403
  246. package/packages/theme-chalk/src/sizer.scss +36 -36
  247. package/packages/theme-chalk/src/steps.scss +88 -88
  248. package/packages/theme-chalk/src/switch.scss +3 -3
  249. package/packages/theme-chalk/src/table-form.scss +1 -1
  250. package/packages/theme-chalk/src/tabs.scss +87 -87
  251. package/packages/theme-chalk/src/tips.scss +7 -7
  252. package/packages/theme-chalk/src/toolbar.scss +179 -179
  253. package/packages/theme-chalk/src/tree-group.scss +72 -72
  254. package/packages/theme-chalk/src/tree.scss +165 -165
  255. package/packages/theme-chalk/src/upload.scss +172 -172
  256. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  257. package/packages/tips/index.js +5 -5
  258. package/packages/tips/src/main.vue +141 -141
  259. package/packages/toolbar/index.js +5 -5
  260. package/packages/toolbar/src/main.vue +430 -430
  261. package/packages/tree/index.js +5 -5
  262. package/packages/tree-group/index.js +5 -5
  263. package/packages/upload/index.js +5 -5
  264. package/packages/upload/src/main.vue +1344 -1344
  265. package/packages/upload/src/picture.js +15 -15
  266. package/packages/wujie/index.js +5 -5
  267. package/packages/wujie/src/main.vue +146 -146
  268. package/packages/wxlogin/index.js +5 -5
  269. package/packages/wxlogin/src/main.vue +128 -128
  270. package/src/config/api.js +348 -340
  271. package/src/config/image.js +2 -2
  272. package/src/index.js +163 -163
  273. package/src/utils/bus.js +3 -3
  274. package/src/utils/date-util.js +312 -312
  275. package/src/utils/http.js +50 -50
  276. package/src/utils/rules.js +18 -18
  277. package/src/utils/store.js +21 -21
  278. package/src/utils/webSocket.js +107 -107
  279. package/packages/.DS_Store +0 -0
  280. package/packages/calogin/.DS_Store +0 -0
  281. package/packages/date-picker/.DS_Store +0 -0
  282. package/packages/date-picker/src/.DS_Store +0 -0
  283. package/packages/dialog/.DS_Store +0 -0
  284. package/packages/flow/.DS_Store +0 -0
  285. package/packages/flow/src/.DS_Store +0 -0
  286. package/packages/flow-list/.DS_Store +0 -0
  287. package/packages/form/.DS_Store +0 -0
  288. package/packages/icon/.DS_Store +0 -0
  289. package/packages/login/.DS_Store +0 -0
  290. package/packages/main/.DS_Store +0 -0
  291. package/packages/main/src/.DS_Store +0 -0
  292. package/packages/menu/.DS_Store +0 -0
  293. package/packages/select/.DS_Store +0 -0
  294. package/packages/selector/.DS_Store +0 -0
  295. package/packages/selector-panel/.DS_Store +0 -0
  296. package/packages/theme-chalk/lib/base.css +0 -1
  297. package/packages/theme-chalk/lib/button-group.css +0 -1
  298. package/packages/theme-chalk/lib/button.css +0 -1
  299. package/packages/theme-chalk/lib/calendar.css +0 -1
  300. package/packages/theme-chalk/lib/calogin.css +0 -0
  301. package/packages/theme-chalk/lib/card.css +0 -1
  302. package/packages/theme-chalk/lib/cascader.css +0 -0
  303. package/packages/theme-chalk/lib/checkbox-group.css +0 -1
  304. package/packages/theme-chalk/lib/clients.css +0 -1
  305. package/packages/theme-chalk/lib/data-table-form.css +0 -1
  306. package/packages/theme-chalk/lib/data-table.css +0 -1
  307. package/packages/theme-chalk/lib/date-picker.css +0 -1
  308. package/packages/theme-chalk/lib/dialog.css +0 -1
  309. package/packages/theme-chalk/lib/enable-drag.css +0 -1
  310. package/packages/theme-chalk/lib/enterprise.css +0 -1
  311. package/packages/theme-chalk/lib/error-page.css +0 -1
  312. package/packages/theme-chalk/lib/flow-chart.css +0 -0
  313. package/packages/theme-chalk/lib/flow-group.css +0 -1
  314. package/packages/theme-chalk/lib/flow-list.css +0 -1
  315. package/packages/theme-chalk/lib/flow.css +0 -1
  316. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  317. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  318. package/packages/theme-chalk/lib/form.css +0 -1
  319. package/packages/theme-chalk/lib/handle-user.css +0 -1
  320. package/packages/theme-chalk/lib/handler.css +0 -1
  321. package/packages/theme-chalk/lib/icon.css +0 -1
  322. package/packages/theme-chalk/lib/icons.css +0 -1
  323. package/packages/theme-chalk/lib/index.css +0 -1
  324. package/packages/theme-chalk/lib/input-number.css +0 -0
  325. package/packages/theme-chalk/lib/input.css +0 -1
  326. package/packages/theme-chalk/lib/label.css +0 -1
  327. package/packages/theme-chalk/lib/layout.css +0 -1
  328. package/packages/theme-chalk/lib/login.css +0 -1
  329. package/packages/theme-chalk/lib/main.css +0 -1
  330. package/packages/theme-chalk/lib/menu.css +0 -1
  331. package/packages/theme-chalk/lib/nav.css +0 -1
  332. package/packages/theme-chalk/lib/notify.css +0 -0
  333. package/packages/theme-chalk/lib/page.css +0 -1
  334. package/packages/theme-chalk/lib/pagination.css +0 -1
  335. package/packages/theme-chalk/lib/player.css +0 -1
  336. package/packages/theme-chalk/lib/qr-code.css +0 -1
  337. package/packages/theme-chalk/lib/radio-group.css +0 -1
  338. package/packages/theme-chalk/lib/retrial-auth.css +0 -1
  339. package/packages/theme-chalk/lib/select-ganged.css +0 -1
  340. package/packages/theme-chalk/lib/select.css +0 -1
  341. package/packages/theme-chalk/lib/selector-panel.css +0 -1
  342. package/packages/theme-chalk/lib/selector.css +0 -1
  343. package/packages/theme-chalk/lib/simplicity-top.css +0 -1
  344. package/packages/theme-chalk/lib/simplicity.css +0 -1
  345. package/packages/theme-chalk/lib/sizer.css +0 -1
  346. package/packages/theme-chalk/lib/steps.css +0 -1
  347. package/packages/theme-chalk/lib/switch.css +0 -1
  348. package/packages/theme-chalk/lib/table-form.css +0 -0
  349. package/packages/theme-chalk/lib/tabs-panel.css +0 -0
  350. package/packages/theme-chalk/lib/tabs.css +0 -1
  351. package/packages/theme-chalk/lib/tips.css +0 -1
  352. package/packages/theme-chalk/lib/toolbar.css +0 -1
  353. package/packages/theme-chalk/lib/tree-group.css +0 -1
  354. package/packages/theme-chalk/lib/tree.css +0 -1
  355. package/packages/theme-chalk/lib/upload.css +0 -1
  356. package/packages/theme-chalk/lib/wujie.css +0 -0
  357. package/packages/theme-chalk/lib/wxlogin.css +0 -1
  358. package/packages/theme-chalk/src/.DS_Store +0 -0
  359. package/packages/upload/.DS_Store +0 -0
  360. package/src/.DS_Store +0 -0
  361. package/src/utils/.DS_Store +0 -0
@@ -1,1803 +1,2306 @@
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
- @cell-click="handleCellClick"
28
- :full="height !== 'auto'"
29
- v-bind="item"
30
- :data="
31
- showDoresult
32
- ? returnData(item.type).filter(
33
- (x) => x.doresult || x.handleInfo || x.pendstate != 2
34
- )
35
- : returnData(item.type)
36
- "
37
- @btn-click="handleBtnClick"
38
- @selection-change="handleSelectionChange"
39
- ></es-data-table>
40
- </div>
41
- </div>
42
- <es-dialog
43
- append-to-body
44
- :close-on-click-modal="false"
45
- title="查看附件"
46
- :visible.sync="showFileList"
47
- v-if="showFileList"
48
- >
49
- <FileList
50
- :ownId="wfpendingid"
51
- :code="flowTableInfo.adjunctCode"
52
- :deleted="false"
53
- :disabled="true"
54
- @cancel="showFileList = false"
55
- />
56
- </es-dialog>
57
- <es-dialog
58
- append-to-body
59
- :close-on-click-modal="false"
60
- title="查看催办记录"
61
- :visible.sync="showPress"
62
- height="500px"
63
- v-if="showPress"
64
- >
65
- <div style="height: 400px" v-loading="pressLoading">
66
- <es-data-table
67
- v-if="show"
68
- :data="pressTableList"
69
- :thead="pressThead"
70
- @page-size-change="handleSizeChange"
71
- @page-current-change="handleCurrentChange"
72
- stripe
73
- full
74
- style="width: 100%"
75
- @sort-change="sortChange"
76
- :page="pageInfo"
77
- />
78
- </div>
79
- </es-dialog>
80
- <es-dialog
81
- append-to-body
82
- :close-on-click-modal="false"
83
- :title="modalType == 'del' ? '删除' : '修改意见'"
84
- :visible.sync="showDel"
85
- height="auto"
86
- class="del-flow"
87
- v-if="showDel"
88
- >
89
- <es-form
90
- v-loading="delLoading"
91
- :model="formData"
92
- :contents="formItemList"
93
- @submit="handleFormSubmit"
94
- >
95
- </es-form>
96
- </es-dialog>
97
- </div>
98
- </template>
99
-
100
- <script>
101
- import {
102
- findCodeValues,
103
- deletePresetInfo,
104
- pendedhistoryListJson,
105
- toPresetInfoListIndex,
106
- pressListJson,
107
- pendedhistoryListWithCircularReadJson,
108
- deleteFlow,
109
- taskReadWithDraw,
110
- fyListJson,
111
- circularReadWithdraw,
112
- modifyFlow
113
- } from 'eoss-ui/src/config/api';
114
- import FileList from '../../flow/src/component/FileList.vue';
115
- import util from 'eoss-ui/src/utils/util';
116
- export default {
117
- name: 'EsFlowList',
118
- components: {
119
- [FileList.name]: FileList
120
- },
121
- props: {
122
- businessId: {
123
- type: String,
124
- default: ''
125
- },
126
- getListCount: {
127
- type: Function,
128
- default: () => {}
129
- },
130
- flowViewType:{
131
- type: [Number,String],
132
- default: 0
133
- },
134
- hide: {
135
- type: String,
136
- default: ''
137
- },
138
- hideBtn: {
139
- type: Boolean,
140
- default: false
141
- },
142
- params: {
143
- type: Object,
144
- default: () => {
145
- return {};
146
- }
147
- },
148
- toolbar: {
149
- type: Array,
150
- default: () => []
151
- },
152
- headFields: {
153
- type: Array,
154
- default: () => []
155
- },
156
- contents: {
157
- type: Array,
158
- default() {
159
- return ['flow', 'splitReading', 'preset'];
160
- }
161
- },
162
- numbers: {
163
- type: Boolean,
164
- default: false
165
- },
166
- height: {
167
- type: String,
168
- default: ''
169
- },
170
- showDoresult: {
171
- type: Boolean,
172
- default: false
173
- },
174
- theadWidth: {
175
- type: Object,
176
- default: () => {
177
- return {};
178
- }
179
- },
180
- type: {
181
- type: String,
182
- default: ''
183
- },
184
- display: Boolean
185
- },
186
- inheritAttrs: false,
187
- data() {
188
- return {
189
- pressLoading: false,
190
- pressTableList: [],
191
- circularData: [],
192
- selectList: [],
193
- flowHeight: '',
194
- presetHeight: '',
195
- signHeight: '',
196
- splitReadingHeight: '',
197
- circularHeight: '',
198
- untreatedReadHeight: '',
199
- processedReadHeight: '',
200
- untreatedReadData: [],
201
- processedReadData: [],
202
- hasCircularReadWithdrawAuthority: false,
203
- currentPage: 1,
204
- pageSize: 20,
205
- flowListCount: {},
206
- currentUserHasPresetInfoAuth: false,
207
- pressThead: [
208
- {
209
- title: '催办节点',
210
- align: 'center',
211
- sortable: true,
212
- field: 'urge_item'
213
- },
214
- {
215
- title: '催办人名称',
216
- sortable: true,
217
- align: 'center',
218
- field: 'urge_man_name'
219
- },
220
- {
221
- title: '催办时间',
222
- sortable: true,
223
- align: 'center',
224
- field: 'urge_time'
225
- },
226
- {
227
- title: '被催办人名称',
228
- align: 'center',
229
- sortable: true,
230
- field: 'urged_man_name'
231
- }
232
- ],
233
- wfpendingid: '',
234
- showFileList: false,
235
- flowData: [],
236
- splitReadingData: [],
237
- presetData: [],
238
- signData: [],
239
- loading: '', //加载中
240
- preset_type: [], //预设类型
241
- showPress: false, //查看催办记录弹窗
242
- modify: false,
243
- formData: { reason: '' },
244
-
245
- delLoading: false,
246
- showDel: false,
247
- attachmentPaperClipCssStyle: '',
248
- is_edit: [], //是否可编辑
249
- flowTableInfo: {
250
- adjunctCode: '',
251
- hasAgent: '1' //是否展示代办人 1:展示 0:不展示
252
- },
253
- show: false,
254
- taskReadName: '', //非流程列表名称
255
- options: [
256
- { label: '时间排序', value: '1' },
257
- { label: '部门排序', value: '2' }
258
- // { label: '树形排序', value: '3' }
259
- ],
260
- isShort: 0, //是否隐藏筛选
261
- viewType: '1', //排序方式
262
- flowTableList: [], //流程列表
263
- fyTableList: [], //分阅列表
264
- showSuggest: 'all', //筛选显示数据
265
- presetInfoListHiddenColumns: '', //隐藏表格展示数据
266
- canDelete: false, //是否展示操作按钮
267
- historyId: '',
268
- sidx: '',
269
- sord: '',
270
- modalType:'',
271
- total: 0
272
- };
273
- },
274
- watch: {
275
- flowViewType:{
276
- handler(val) {
277
- if(val){
278
- this.loading = util.loading(this.$loading, '加载中...');
279
- this.getFlowList(val);
280
- }
281
- },
282
- deep:true,
283
- immediate:true
284
- }
285
- },
286
-
287
- computed: {
288
- formItemList(){
289
- return [
290
- {
291
- name: 'reason',
292
- label:this.modalType == 'del' ? '删除原因' : '办理意见',
293
- type: 'textarea',
294
- placeholder: `请输入${this.modalType == 'del' ? '删除原因' : '办理意见'}`,
295
- rules: {
296
- required:this.modalType == 'del',
297
- message: '请输入删除原因',
298
- trigger: 'blur'
299
- },
300
- value: '',
301
- rows: 5
302
- },
303
- {
304
- type: 'submit',
305
- skin: 'lay-form-btns',
306
- contents: [
307
- {
308
- type: 'primary',
309
- plain: true,
310
- text: '保存',
311
- event: 'confirm'
312
- }
313
- ]
314
- }
315
- ]
316
- },
317
- toolbars() {
318
- return {
319
- flow: [
320
- {
321
- type: 'text',
322
- contents: '流程列表'
323
- },
324
- {
325
- type: 'search',
326
- contents: [
327
- {
328
- name: 'showSuggest',
329
- type: 'radio',
330
- changeSearch: true,
331
- data: [
332
- {
333
- value: 'all',
334
- name: '显示全部',
335
- checked: true
336
- },
337
- { value: 'have', name: '显示已填意见' }
338
- ],
339
- events: {
340
- change: (key, value) => {
341
- this.handleChange(key, value);
342
- }
343
- }
344
- },
345
- {
346
- type: 'select',
347
- placeholder: '请选择',
348
- name: 'viewType',
349
- width: '140px',
350
- changeSearch: true,
351
- events: {
352
- change: (key, value) => {
353
- this.handleChange(key, value);
354
- }
355
- },
356
- data: [
357
- {
358
- value: 1,
359
- selected: true,
360
- name: '时间排序'
361
- },
362
- {
363
- value: 2,
364
- name: '部门排序'
365
- },
366
- // {
367
- // value: 3,
368
- // name: '树形排序'
369
- // }
370
- ]
371
- }
372
- ]
373
- }
374
- ],
375
- preset: [
376
- {
377
- type: 'text',
378
- contents: '预设列表'
379
- }
380
- ],
381
- sign: [
382
- {
383
- type: 'button',
384
- contents: [
385
- {
386
- text: '生成处理签',
387
- type: 'primary'
388
- }
389
- ]
390
- }
391
- ],
392
- splitReading: [
393
- {
394
- type: 'text',
395
- contents:
396
- (this.taskReadName ? this.taskReadName : '非流程') + '列表'
397
- }
398
- ],
399
- circular: [
400
- {
401
- type: 'text',
402
- contents: '传阅列表'
403
- }
404
- ],
405
- untreatedRead: [
406
- {
407
- type: 'text',
408
- contents: '未处理分阅列表'
409
- },
410
- {
411
- type: 'button',
412
- contents: [
413
- {
414
- text: '撤销分阅',
415
- fun: 'recallRead'
416
- }
417
- ]
418
- }
419
- ],
420
- processedRead: [
421
- {
422
- type: 'text',
423
- contents: '已处理分阅列表'
424
- }
425
- ]
426
- // Reading situation
427
- };
428
- },
429
- pageInfo() {
430
- return {
431
- pageNum: this.currentPage,
432
- pageSize: this.pageSize,
433
- totalCount: this.total
434
- };
435
- },
436
- theads() {
437
- const _that = this;
438
- let newThead = {
439
- flow: [
440
- {
441
- label: '经办部门',
442
- field: 'deptid',
443
- align: 'center',
444
- key: 'jbbm',
445
- showOverflowTooltip: true,
446
- width: this.theadWidth.deptid || 150,
447
- render: (h, params) => {
448
- return h(
449
- 'span',
450
- {},
451
- params.row.doDeptName
452
- ? params.row.doDeptName
453
- : params.row.deptName
454
- );
455
- }
456
- },
457
- {
458
- label: '步骤',
459
- field: 'itemname',
460
- align: 'center',
461
- key: 'bz',
462
- showOverflowTooltip: true,
463
- width: this.theadWidth.itemname || 110
464
- },
465
- {
466
- label: '办理人',
467
- field: 'userName',
468
- align: 'center',
469
- key: 'blr',
470
- showOverflowTooltip: true,
471
- width: this.theadWidth.userName || 110
472
- },
473
- {
474
- label: '办理人部门',
475
- field: 'deptName',
476
- align: 'center',
477
- showOverflowTooltip: true,
478
- key: 'blrbm',
479
- width: this.theadWidth.deptName || 110
480
- },
481
- {
482
- label: '状态',
483
- field: 'pendstate',
484
- key: 'zt',
485
- align: 'center',
486
- showOverflowTooltip: true,
487
- width: this.theadWidth.pendstate || 80,
488
- render: (h, params) => {
489
- return h('span', {
490
- style: {
491
- color:
492
- params.row.pendstate == 0 || params.row.pendstate == 3
493
- ? 'red'
494
- : params.row.pendstate == 1
495
- ? 'green' : params.row.pendstate == -1 ? 'orange'
496
- : 'deepskyblue'
497
- },
498
- domProps: { innerHTML: params.row.querykeywords }
499
- });
500
- }
501
- },
502
- {
503
- label: '办理意见',
504
- field: 'doresult',
505
- align: 'center',
506
- width: this.theadWidth.doresult,
507
- showOverflowTooltip: true,
508
- key: 'blyj',
509
- render: (h, params) => {
510
- if (
511
- params.row.doresult &&
512
- (params.row.doresult.startsWith('http') ||
513
- params.row.doresult.startsWith('https'))
514
- ) {
515
- return h('img', {
516
- attrs: { src: params.row.doresult },
517
- style: { width: '100px', height: '100px' }
518
- });
519
- } else {
520
- return h('span', {}, [
521
- params.row.doresult
522
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
523
- : '',
524
- h(
525
- 'span',
526
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
527
- params.row.handleInfo || ''
528
- )
529
- ]);
530
- }
531
- }
532
- },
533
- {
534
- label: '验签',
535
- field: 'authTypeStr',
536
- align: 'center',
537
- key: 'yq',
538
- showOverflowTooltip: true,
539
- width: this.theadWidth.authTypeStr || 70,
540
- render: (h, params) => {
541
- return h(
542
- 'span',
543
- { style: { color: 'deepskyblue' } },
544
- params.row.authTypeStr
545
- );
546
- }
547
- },
548
- {
549
- label: '附件',
550
- key: 'fj',
551
- field: 'hasAdjunct',
552
- align: 'center',
553
- showOverflowTooltip: true,
554
- width: this.theadWidth.hasAdjunct || 70,
555
- render: (h, params) => {
556
- if (params.row.hasAdjunct) {
557
- return h('span', {
558
- style: _that.attachmentPaperClipCssStyle
559
- ? _that.attachmentPaperClipCssStyle
560
- : { color: 'red', fontSize: '20px' },
561
- class: 'iconfont es-icon-fujian'
562
- });
563
- } else {
564
- return h('span', {}, '');
565
- }
566
- }
567
- },
568
- {
569
- label: '时间',
570
- field: 'doetime',
571
- align: 'center',
572
- key: 'sj',
573
- showOverflowTooltip: true,
574
- width: this.theadWidth.doetime || 150,
575
- render: (h, params) => {
576
- return h(
577
- 'span',
578
- {},
579
- params.row.doetime
580
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
581
- : ''
582
- );
583
- }
584
- },
585
- {
586
- label: '代办人',
587
- field: 'douserid',
588
- align: 'center',
589
- key: 'dbr',
590
- showOverflowTooltip: true,
591
- width: this.theadWidth.douserid || 80,
592
- hide: _that.flowTableInfo.hasAgent != '1'
593
- },
594
- {
595
- label: '催办',
596
- field: 'pressTimes',
597
- align: 'center',
598
- key: 'cb',
599
- showOverflowTooltip: true,
600
- width: this.theadWidth.pressTimes || 150,
601
- render: (h, params) => {
602
- return h(
603
- 'span',
604
- { style: 'color:deepskyblue;cursor: pointer;' },
605
- params.row.pressTimes != 0 ? params.row.pressTimes : ''
606
- );
607
- }
608
- },
609
- {
610
- title: '操作',
611
- type: 'handle',
612
- width: this.modify ? '130' : '100',
613
- template: '',
614
- hide: this.hideBtn || (!this.canDelete && !this.modify),
615
- events: [
616
- {
617
- text: '删除',
618
- rules: (rows) => {
619
- return rows.canDelete || this.canDelete;
620
- }
621
- },
622
- {
623
- text: '修改',
624
- rules: (rows) => {
625
- return this.modify && rows.pendstate == 2;
626
- }
627
- }
628
- ]
629
- }
630
- ],
631
- preset: this.thead,
632
- splitReading: [
633
- {
634
- label: '经办部门',
635
- field: 'deptid',
636
- key: 'jbbm',
637
- align: 'center',
638
- showOverflowTooltip: true,
639
- width: this.theadWidth.deptid || 150
640
- },
641
- {
642
- label: '步骤',
643
- field: 'itemname',
644
- align: 'center',
645
- key: 'bz',
646
- showOverflowTooltip: true,
647
- width: this.theadWidth.itemname || 110
648
- },
649
- {
650
- label: '办理人',
651
- field: 'userName',
652
- align: 'center',
653
- key: 'blr',
654
- showOverflowTooltip: true,
655
- width: this.theadWidth.userName || 110
656
- },
657
- {
658
- label: '状态',
659
- field: 'pendstate',
660
- align: 'center',
661
- key: 'zt',
662
- showOverflowTooltip: true,
663
- width: this.theadWidth.pendstate || 80,
664
- render: (h, params) => {
665
- return h('span', {
666
- style: {
667
- color:
668
- params.row.pendstate == 0 || params.row.pendstate == 3
669
- ? 'red'
670
- : params.row.pendstate == 1
671
- ? 'green': params.row.pendstate == -1 ? 'orange'
672
- : 'deepskyblue'
673
- },
674
- domProps: { innerHTML: params.row.querykeywords }
675
- });
676
- }
677
- },
678
- {
679
- label: '办理意见',
680
- field: 'doresult',
681
- align: 'center',
682
- key: 'blyj',
683
- width: this.theadWidth.doresult,
684
- showOverflowTooltip: true,
685
- render: (h, params) => {
686
- if (
687
- params.row.doresult &&
688
- (params.row.doresult.startsWith('http') ||
689
- params.row.doresult.startsWith('https'))
690
- ) {
691
- return h('img', {
692
- attrs: { src: params.row.doresult },
693
- style: { width: '100px', height: '100px' }
694
- });
695
- } else {
696
- return h('span', {}, [
697
- params.row.doresult
698
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
699
- : '',
700
- h(
701
- 'span',
702
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
703
- params.row.handleInfo || ''
704
- )
705
- ]);
706
- }
707
- }
708
- },
709
- {
710
- label: '验签',
711
- field: 'authTypeStr',
712
- align: 'center',
713
- key: 'yq',
714
- showOverflowTooltip: true,
715
- width: this.theadWidth.authTypeStr || 70,
716
- render: (h, params) => {
717
- return h(
718
- 'span',
719
- { style: { color: 'deepskyblue' } },
720
- params.row.authTypeStr
721
- );
722
- }
723
- },
724
- {
725
- label: '附件',
726
- field: 'hasAdjunct',
727
- align: 'center',
728
- key: 'fj',
729
- showOverflowTooltip: true,
730
- width: this.theadWidth.hasAdjunct || 70,
731
- render: (h, params) => {
732
- if (params.row.hasAdjunct) {
733
- return h('span', {
734
- style: _that.attachmentPaperClipCssStyle
735
- ? _that.attachmentPaperClipCssStyle
736
- : { color: 'red', fontSize: '20px' },
737
- class: 'iconfont es-icon-fujian'
738
- });
739
- } else {
740
- return h('span', {}, '');
741
- }
742
- }
743
- },
744
- {
745
- label: '时间',
746
- field: 'doetime',
747
- align: 'center',
748
- key: 'sj',
749
- showOverflowTooltip: true,
750
- width: this.theadWidth.doetime || 150,
751
- render: (h, params) => {
752
- return h(
753
- 'span',
754
- {},
755
- params.row.doetime
756
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
757
- : ''
758
- );
759
- }
760
- },
761
- {
762
- label: '代办人',
763
- field: 'douserid',
764
- align: 'center',
765
- key: 'dbr',
766
- showOverflowTooltip: true,
767
- width: this.theadWidth.douserid || 80,
768
- hide: _that.flowTableInfo.hasAgent != '1'
769
- },
770
- {
771
- label: '催办',
772
- field: 'pressTimes',
773
- align: 'center',
774
- key: 'cb',
775
- showOverflowTooltip: true,
776
- width: this.theadWidth.pressTimes || 150,
777
- render: (h, params) => {
778
- return h(
779
- 'span',
780
- { style: 'color:deepskyblue;cursor: pointer;' },
781
- params.row.pressTimes != 0 ? params.row.pressTimes : ''
782
- );
783
- }
784
- },
785
- {
786
- title: '操作',
787
- type: 'handle',
788
- width: '100',
789
- template: '',
790
- hide: this.hideBtn || (!this.canDelete && !this.modify),
791
- events: [
792
- {
793
- text: '删除',
794
- rules: (rows) => {
795
- return rows.canDelete || this.canDelete;
796
- }
797
- }
798
- ]
799
- }
800
- ],
801
- circular: [
802
- {
803
- label: '发起人',
804
- field: 'circularReadInitiatorName',
805
- align: 'center',
806
- key: 'fqr',
807
- showOverflowTooltip: true,
808
- width: this.theadWidth.circularReadInitiatorName || 150
809
- },
810
- {
811
- label: '传阅部门',
812
- field: 'circularReadOrgName',
813
- align: 'center',
814
- key: 'cybm',
815
- showOverflowTooltip: true,
816
- width: this.theadWidth.circularReadOrgName || 110
817
- },
818
- {
819
- label: '传阅人',
820
- field: 'userName',
821
- align: 'center',
822
- key: 'cyr',
823
- showOverflowTooltip: true,
824
- width: this.theadWidth.userName || 110
825
- },
826
- {
827
- label: '步骤',
828
- field: 'itemname',
829
- align: 'center',
830
- showOverflowTooltip: true,
831
- key: 'bz',
832
- width: this.theadWidth.itemname || 110
833
- },
834
- {
835
- label: '状态',
836
- field: 'pendstate',
837
- key: 'zt',
838
- align: 'center',
839
- showOverflowTooltip: true,
840
- width: this.theadWidth.pendstate || 140,
841
- render: (h, params) => {
842
- return h('span', {
843
- style: {
844
- color:
845
- params.row.pendstate == 0 || params.row.pendstate == 3
846
- ? 'red'
847
- : params.row.pendstate == 1
848
- ? 'green': params.row.pendstate == -1 ? 'orange'
849
- : 'deepskyblue',
850
- cursor: this.hasCircularReadWithdrawAuthority
851
- ? 'pointer'
852
- : 'unset'
853
- },
854
- domProps: {
855
- innerHTML:
856
- params.row.querykeywords +
857
- (this.hasCircularReadWithdrawAuthority
858
- ? `<span style="color:#7AB0D5">(撤回)</span>`
859
- : '')
860
- }
861
- });
862
- }
863
- },
864
- {
865
- label: '送达时间',
866
- field: 'createtime',
867
- align: 'center',
868
- key: 'sdsj',
869
- showOverflowTooltip: true,
870
- width: this.theadWidth.createtime || 170
871
- },
872
- {
873
- label: '办理时间',
874
- field: 'doetime',
875
- align: 'center',
876
- key: 'blsj',
877
- showOverflowTooltip: true,
878
- width: this.theadWidth.doetime || 150
879
- },
880
-
881
- {
882
- label: '附件',
883
- key: 'fj',
884
- field: 'hasAdjunct',
885
- align: 'center',
886
- showOverflowTooltip: true,
887
- width: this.theadWidth.hasAdjunct || 70,
888
- render: (h, params) => {
889
- if (params.row.hasAdjunct) {
890
- return h('span', {
891
- style: _that.attachmentPaperClipCssStyle
892
- ? _that.attachmentPaperClipCssStyle
893
- : { color: 'red', fontSize: '20px' },
894
- class: 'iconfont es-icon-fujian'
895
- });
896
- } else {
897
- return h('span', {}, '');
898
- }
899
- }
900
- },
901
- {
902
- label: '提醒',
903
- field: 'pressTimes',
904
- align: 'center',
905
- key: 'tx',
906
- showOverflowTooltip: true,
907
- width: this.theadWidth.pressTimes || 150,
908
- render: (h, params) => {
909
- return h(
910
- 'span',
911
- { style: 'color:deepskyblue;cursor: pointer;' },
912
- params.row.pressTimes
913
- );
914
- }
915
- },
916
- {
917
- label: '阅结意见 & 说明',
918
- field: 'doresult',
919
- align: 'center',
920
- width: this.theadWidth.doresult,
921
- showOverflowTooltip: true,
922
- key: 'blyj',
923
- render: (h, params) => {
924
- if (
925
- params.row.doresult &&
926
- (params.row.doresult.startsWith('http') ||
927
- params.row.doresult.startsWith('https'))
928
- ) {
929
- return h('img', {
930
- attrs: { src: params.row.doresult },
931
- style: { width: '100px', height: '100px' }
932
- });
933
- } else {
934
- return h('span', {}, [
935
- params.row.doresult
936
- ? params.row.doresult + (params.row.handleInfo ? '&' : '')
937
- : '',
938
- h(
939
- 'span',
940
- { style: { color: '#A5A5A5', marginLeft: '2px' } },
941
- params.row.handleInfo || ''
942
- )
943
- ]);
944
- }
945
- }
946
- }
947
- ],
948
- untreatedRead: [
949
- {
950
- label: '步骤',
951
- field: 'itemid',
952
- align: 'center',
953
- key: 'bz',
954
- showOverflowTooltip: true,
955
- width: this.theadWidth.itemid || 110
956
- },
957
- {
958
- label: '办理人',
959
- field: 'userName',
960
- align: 'center',
961
- key: 'blr',
962
- showOverflowTooltip: true,
963
- width: this.theadWidth.userName
964
- },
965
- {
966
- label: '办理状态',
967
- field: 'pendstate',
968
- key: 'blzt',
969
- align: 'center',
970
- showOverflowTooltip: true,
971
- width: this.theadWidth.pendstate || 110,
972
- render: (h, params) => {
973
- return h('span', {
974
- style: {
975
- color:
976
- params.row.pendstate == 0 || params.row.pendstate == 3
977
- ? 'red'
978
- : params.row.pendstate == 1
979
- ? 'green'
980
- : 'deepskyblue'
981
- },
982
- domProps: { innerHTML: params.row.querykeywords }
983
- });
984
- }
985
- },
986
- {
987
- label: '创建时间',
988
- field: 'createtime',
989
- align: 'center',
990
- key: 'cjsj',
991
- showOverflowTooltip: true,
992
- width: this.theadWidth.createtime || 150,
993
- render: (h, params) => {
994
- return h(
995
- 'span',
996
- {},
997
- params.row.doetime
998
- ? util.formatDate(params.row.createtime, 'yyyy-MM-dd HH:mm')
999
- : ''
1000
- );
1001
- }
1002
- }
1003
- ],
1004
- processedRead: [
1005
- {
1006
- label: '步骤',
1007
- field: 'itemid',
1008
- align: 'center',
1009
- key: 'bz',
1010
- showOverflowTooltip: true,
1011
- width: this.theadWidth.itemid || 110
1012
- },
1013
- {
1014
- label: '办理人',
1015
- field: 'userName',
1016
- align: 'center',
1017
- key: 'blr',
1018
- showOverflowTooltip: true,
1019
- width: this.theadWidth.userName
1020
- },
1021
- {
1022
- label: '办理状态',
1023
- field: 'pendstate',
1024
- key: 'blzt',
1025
- align: 'center',
1026
- showOverflowTooltip: true,
1027
- width: this.theadWidth.pendstate || 110,
1028
- render: (h, params) => {
1029
- return h('span', {
1030
- style: {
1031
- color:
1032
- params.row.pendstate == 0 || params.row.pendstate == 3
1033
- ? 'red'
1034
- : params.row.pendstate == 1
1035
- ? 'green'
1036
- : 'deepskyblue'
1037
- },
1038
- domProps: { innerHTML: params.row.querykeywords }
1039
- });
1040
- }
1041
- },
1042
- {
1043
- label: '办理时间',
1044
- field: 'doetime',
1045
- align: 'center',
1046
- key: 'blsj',
1047
- showOverflowTooltip: true,
1048
- width: this.theadWidth.doetime || 150,
1049
- render: (h, params) => {
1050
- return h(
1051
- 'span',
1052
- {},
1053
- params.row.doetime
1054
- ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
1055
- : ''
1056
- );
1057
- }
1058
- },
1059
- {
1060
- label: '代办人',
1061
- field: 'douserid',
1062
- align: 'center',
1063
- key: 'dbr',
1064
- showOverflowTooltip: true,
1065
- width: this.theadWidth.douserid
1066
- },
1067
- {
1068
- label: '意见',
1069
- field: 'doresult',
1070
- align: 'center',
1071
- key: 'yj',
1072
- showOverflowTooltip: true,
1073
- width: this.theadWidth.doresult
1074
- }
1075
- ]
1076
- };
1077
- if (this.numbers) {
1078
- for (let key in newThead) {
1079
- newThead[key].unshift({
1080
- label: '序号',
1081
- field: 'sort',
1082
- align: 'center',
1083
- key: 'xh',
1084
- showOverflowTooltip: true,
1085
- width: 50
1086
- });
1087
- }
1088
- }
1089
- return newThead;
1090
- },
1091
- content() {
1092
- const _that = this;
1093
- let newContents = JSON.parse(JSON.stringify(this.contents));
1094
- if (this.contents.indexOf('circular') != -1) {
1095
- newContents = newContents.filter((item) => item != 'splitReading');
1096
- }
1097
- if (newContents.indexOf('readingSituation') != -1) {
1098
- newContents = ['untreatedRead', 'processedRead'];
1099
- }
1100
- let contents = newContents.map((item) => {
1101
- if (typeof item === 'string') {
1102
- let data = [];
1103
- if (_that.headFields.length > 0) {
1104
- _that.headFields.map((headFiled) => {
1105
- if (headFiled.showDefault) {
1106
- _that.theads[item].map((theadItem) => {
1107
- if (theadItem.field === headFiled.field) {
1108
- data.push({ ...theadItem, ...headFiled });
1109
- }
1110
- });
1111
- } else {
1112
- data.push(headFiled);
1113
- }
1114
- });
1115
- _that.theads[item].map((x) => {
1116
- if (x.type == 'handle') {
1117
- data.push(x);
1118
- }
1119
- });
1120
- }
1121
- return {
1122
- type: item,
1123
- checkbox: newContents.indexOf('untreatedRead') != -1,
1124
- toolbar: this.toolbars[item],
1125
- thead: data.length > 0 ? data : this.theads[item],
1126
- showFormBtn: false
1127
- };
1128
- } else {
1129
- if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
1130
- let toolbars = this.toolbars[item.type];
1131
- return { ...item, toolbars };
1132
- }
1133
- if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
1134
- let thead = this.theads[item.type];
1135
- return { ...item, thead };
1136
- }
1137
- return item;
1138
- }
1139
- });
1140
- return contents;
1141
- },
1142
- newToolbar() {
1143
- if (this.toolbar && this.toolbar.length > 0) {
1144
- return this.toolbar;
1145
- } else {
1146
- return [];
1147
- }
1148
- },
1149
- thead() {
1150
- let table = [
1151
- {
1152
- title: '步骤',
1153
- align: 'center',
1154
- width: this.theadWidth.nodeName || '100',
1155
- field: 'nodeName'
1156
- },
1157
- {
1158
- title: '预设办理人',
1159
- width: this.theadWidth.presetUserName || '120',
1160
- align: 'center',
1161
- field: 'presetUserName'
1162
- },
1163
- {
1164
- title: '是否可编辑',
1165
- key: 'sfkbj',
1166
- align: 'center',
1167
- width: this.theadWidth.isEdit || '100',
1168
- render: (h, params) => {
1169
- return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
1170
- },
1171
- field: 'isEdit'
1172
- },
1173
- {
1174
- key: 'zt',
1175
- title: '状态',
1176
- width: this.theadWidth.statusName || '80',
1177
- align: 'center',
1178
- field: 'statusName'
1179
- },
1180
- {
1181
- title: '预设类型',
1182
- key: 'yslx',
1183
- width: this.theadWidth.presetType || '120',
1184
- align: 'center',
1185
- render: (h, params) => {
1186
- return h(
1187
- 'span',
1188
- this.getCodeValue(params.row.presetType, 'preset_type')
1189
- );
1190
- },
1191
- field: 'presetType'
1192
- },
1193
- {
1194
- title: '流程名称',
1195
- key: 'lcmc',
1196
- width: this.theadWidth.processDefName,
1197
- align: 'center',
1198
- field: 'processDefName'
1199
- },
1200
- {
1201
- title: '上一步骤',
1202
- key: 'sybz',
1203
- align: 'center',
1204
- width: this.theadWidth.lastNodeName,
1205
- field: 'lastNodeName'
1206
- },
1207
- {
1208
- title: '创建步骤',
1209
- key: 'cjbz',
1210
- align: 'center',
1211
- width: this.theadWidth.operationNodeName,
1212
- field: 'operationNodeName'
1213
- },
1214
- {
1215
- title: '创建人',
1216
- key: 'cjr',
1217
- width: this.theadWidth.creatorName || '120',
1218
- align: 'center',
1219
- field: 'creatorName'
1220
- },
1221
- {
1222
- title: '创建时间',
1223
- width: this.theadWidth.createTime || '150',
1224
- key: 'cjsj',
1225
- align: 'center',
1226
- render: (h, params) => {
1227
- return h(
1228
- 'span',
1229
- util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
1230
- );
1231
- },
1232
- field: 'createTime'
1233
- },
1234
- {
1235
- title: '操作区域',
1236
- type: 'handle',
1237
- align: 'center',
1238
- width: '120',
1239
- events: [
1240
- {
1241
- text: '置为失效'
1242
- }
1243
- ]
1244
- }
1245
- ];
1246
- if (
1247
- this.presetInfoListHiddenColumns != undefined &&
1248
- this.presetInfoListHiddenColumns != ''
1249
- ) {
1250
- table = table.filter(
1251
- (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
1252
- );
1253
- }
1254
- if (!this.canDelete) table.splice(table.length - 1, 1);
1255
- return table;
1256
- }
1257
- },
1258
- async mounted() {
1259
- this.loading = util.loading(this.$loading, '加载中...');
1260
- if (this.contents.indexOf('readingSituation') != -1) {
1261
- await this.getFyListJson(1);
1262
- await this.getFyListJson(2);
1263
- this.getListCount(this.flowListCount);
1264
- this.show = true;
1265
- } else {
1266
- this.getFlowList();
1267
- }
1268
- this.getSysInfo('preset_type');
1269
- this.getSysInfo('is_edit');
1270
- this.getListInfo();
1271
- },
1272
-
1273
- methods: {
1274
- recallReadFun() {
1275
- const _that = this;
1276
- let pendingIds = _that.selectList.map((x) => x.id).join(',');
1277
- let params = {
1278
- url: taskReadWithDraw,
1279
- params: {
1280
- pendingIds
1281
- }
1282
- };
1283
- _that.loading = util.loading(_that.$loading, '撤销中...');
1284
- util.ajax(params).then(async (res) => {
1285
- _that.loading.close();
1286
- if (res.rCode == 0 || res.status == 'success') {
1287
- _that.$message.success('撤销成功!');
1288
- await _that.getFyListJson(1);
1289
- _that.getListCount(_that.flowListCount);
1290
- } else {
1291
- _that.$message.error(res.message);
1292
- }
1293
- });
1294
- },
1295
- recallRead() {
1296
- if (this.selectList.length == 0)
1297
- return this.$message.warning('请选择需要撤销的分阅');
1298
- this.$confirm('是否确认撤销选中的分阅?', '提示', {
1299
- confirmButtonText: '确定',
1300
- cancelButtonText: '取消',
1301
- type: 'warning'
1302
- }).then(() => {
1303
- this.recallReadFun();
1304
- });
1305
- },
1306
- handleSelectionChange(val) {
1307
- this.selectList = val;
1308
- },
1309
- handledraw(pendedHistoryId) {
1310
- let params = {
1311
- url: circularReadWithdraw,
1312
- params: { pendedHistoryId }
1313
- };
1314
- this.$confirm('是否确定撤回当前传阅', {
1315
- confirmButtonText: '确定',
1316
- cancelButtonText: '取消',
1317
- type: 'warning'
1318
- })
1319
- .then(() => {
1320
- this.loading = util.loading(this.$loading, '撤回中...');
1321
- util.ajax(params).then((res) => {
1322
- this.loading.close();
1323
- if (res.rCode == 0) {
1324
- this.$message({
1325
- message: '撤回成功',
1326
- type: 'success'
1327
- });
1328
- this.getCircularReadList();
1329
- }
1330
- });
1331
- // _that.subMit(res.results,type)
1332
- })
1333
- .catch(() => {});
1334
- },
1335
- getCircularReadList() {
1336
- const _that = this;
1337
- let params = {
1338
- url: pendedhistoryListWithCircularReadJson,
1339
- params: { apprecordid: _that.businessId }
1340
- };
1341
- util.ajax(params).then((res) => {
1342
- if (res.status == 'success' || res.rCode == 0) {
1343
- _that.circularData = res.data.fyHistoryList;
1344
- _that.circularData.map((x, i) => {
1345
- x.sort = i + 1;
1346
- });
1347
- _that.hasCircularReadWithdrawAuthority =
1348
- res.data.hasCircularReadWithdrawAuthority;
1349
- _that.$nextTick(() => {
1350
- _that.getListCount(_that.flowListCount);
1351
- });
1352
- }
1353
- });
1354
- },
1355
- returnData(type) {
1356
- switch (type) {
1357
- case 'preset':
1358
- this.flowListCount.preset = this.presetData.length;
1359
- this.flowListCount.presetData = this.presetData;
1360
- return this.presetData;
1361
- case 'sign':
1362
- this.flowListCount.sign = this.signData.length;
1363
- this.flowListCount.signData = this.signData;
1364
- return this.signData;
1365
- case 'splitReading':
1366
- this.flowListCount.splitReading = this.splitReadingData.length;
1367
- this.flowListCount.splitReadingData = this.splitReadingData;
1368
- return this.splitReadingData;
1369
- case 'circular':
1370
- this.flowListCount.circular = this.circularData.length;
1371
- this.flowListCount.circularData = this.circularData;
1372
- return this.circularData;
1373
- case 'untreatedRead':
1374
- this.flowListCount.untreatedRead = this.untreatedReadData.length;
1375
- this.flowListCount.untreatedReadData = this.untreatedReadData;
1376
- return this.untreatedReadData;
1377
- case 'processedRead':
1378
- this.flowListCount.processedRead = this.processedReadData.length;
1379
- this.flowListCount.processedReadData = this.processedReadData;
1380
- return this.processedReadData;
1381
- default:
1382
- this.flowListCount.flow = this.flowData.length;
1383
- this.flowListCount.flowData = this.flowData;
1384
- return this.flowData;
1385
- }
1386
- },
1387
- handleCellClick(row, column) {
1388
- if (column.property == 'hasAdjunct' && row.hasAdjunct) {
1389
- this.showFile(row.wfpendingid);
1390
- } else if (column.property == 'pressTimes') {
1391
- if(row.pressTimes != 0){
1392
- this.goPress(row.id);
1393
- }
1394
- } else if (
1395
- column.property == 'pendstate' &&
1396
- this.hasCircularReadWithdrawAuthority
1397
- ) {
1398
- this.handledraw(row.id);
1399
- }
1400
- },
1401
- handleBtnClick(data) {
1402
- // recallRead
1403
- const { handle, row } = data;
1404
- if (handle.text == '删除' || handle.text == '修改') {
1405
- this.formData.reason = handle.text == '修改' ? row.doresult : ''
1406
- this.del(row.id,handle.text == '删除'?'del':'modify');
1407
- } else if (handle.fun == 'recallRead') {
1408
- this[handle.fun]();
1409
- }
1410
- },
1411
- /**
1412
- * handleFormSubmit
1413
- * @desc:删除节点点击事件
1414
- * @param {Object} formData 点击删除的form数据
1415
- * @author liufan
1416
- * @date 2022年11月29日
1417
- **/
1418
- handleFormSubmit(formData) {
1419
- this.delLoading = true;
1420
- let params = {
1421
- url:this.modalType == 'del' ? deleteFlow : modifyFlow,
1422
- method: 'POST',
1423
- data: { id: this.historyId, reason: formData.reason }
1424
- };
1425
- if(this.modalType != 'del'){
1426
- delete params.data.reason;
1427
- params.data.doResult = formData.reason
1428
- params.data.doresult = formData.reason
1429
- }
1430
- util
1431
- .ajax(params)
1432
- .then((res) => {
1433
- const { status, message } = res;
1434
- this.delLoading = false;
1435
- if (status === 'success') {
1436
- this.$message.success(`${this.modalType == 'del' ? '删除' : '修改'}成功`);
1437
- this.showDel = false;
1438
- this.handleChange();
1439
- } else {
1440
- this.$message.error(message || '系统错误,请联系管理员!');
1441
- }
1442
- })
1443
- .catch((err) => {
1444
- this.delLoading = false;
1445
- if (err.message && err.message !== 'canceled') {
1446
- this.$message.error(err.message);
1447
- }
1448
- });
1449
- },
1450
- /**
1451
- * del
1452
- * @desc:展示删除弹窗
1453
- * @param {String} id 当前点击数据id
1454
- * @author liufan
1455
- * @date 2022年11月29日
1456
- **/
1457
- del(id,type) {
1458
- this.modalType = type;
1459
- this.historyId = id;
1460
- this.showDel = true;
1461
- },
1462
- /**
1463
- * handleCurrentChange
1464
- * @desc:监听页码变化
1465
- * @param {String} val 当前页
1466
- * @author liufan
1467
- * @date 2022年11月29日
1468
- **/
1469
- handleCurrentChange(val) {
1470
- this.currentPage = val;
1471
- this.getPressList();
1472
- },
1473
- /**
1474
- * handleSizeChange
1475
- * @desc:监听每页数据显示数量变化
1476
- * @param {String} val 每页展示数量
1477
- * @author liufan
1478
- * @date 2022年11月29日
1479
- **/
1480
- handleSizeChange(val) {
1481
- this.pageSize = val;
1482
- this.getPressList();
1483
- },
1484
- /**
1485
- * sortChange
1486
- * @desc:监听排序变化
1487
- * @param {Object} info 需要排序的字段及排序方式
1488
- * @author liufan
1489
- * @date 2022年11月29日
1490
- **/
1491
- sortChange(info) {
1492
- let { prop, order } = info;
1493
- this.sidx = prop;
1494
- this.sord = order.replace('ending', '');
1495
- this.getPressList();
1496
- },
1497
- /**
1498
- * getPressList
1499
- * @desc:催办列表数据
1500
- * @author liufan
1501
- * @date 2022年11月29日
1502
- **/
1503
- getPressList() {
1504
- const { historyId, pageSize, sidx, sord, currentPage } = this;
1505
- this.pressLoading = true;
1506
- let params = {
1507
- url: pressListJson,
1508
- params: { historyId },
1509
- method: 'POST',
1510
- data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
1511
- };
1512
- util
1513
- .ajax(params)
1514
- .then((res) => {
1515
- this.pressTableList = res.data;
1516
- this.total = res.totalrecords;
1517
- this.pressLoading = false;
1518
- })
1519
- .catch((err) => {
1520
- this.pressLoading = false;
1521
- if (err.message && err.message !== 'canceled') {
1522
- this.$message.error(err.message);
1523
- }
1524
- });
1525
- },
1526
- /**
1527
- * goPress
1528
- * @desc:催办列表查看
1529
- * @param {String} id 催办列表id
1530
- * @author liufan
1531
- * @date 2022年11月29日
1532
- **/
1533
- goPress(id) {
1534
- this.historyId = id;
1535
- this.showPress = true;
1536
- this.getPressList();
1537
- },
1538
- /**
1539
- * showFile
1540
- * @desc:附件查看
1541
- * @param {String} ownId 附件id
1542
- * @author liufan
1543
- * @date 2022年11月29日
1544
- **/
1545
- showFile(ownId) {
1546
- this.wfpendingid = ownId;
1547
- this.showFileList = true;
1548
- },
1549
- /**
1550
- * handleChange
1551
- * @desc:切换排序方式
1552
- * @author liufan
1553
- * @date 2022年11月22日
1554
- **/
1555
- handleChange(key, value) {
1556
- if (value) {
1557
- this[key] = value;
1558
- }
1559
- // this.show = false;
1560
- this.loading = util.loading(this.$loading, '加载中...');
1561
- this.getFlowList();
1562
- },
1563
- async getFyListJson(type) {
1564
- let params = {
1565
- url: fyListJson,
1566
- params: {
1567
- appRecordId: this.businessId,
1568
- status: type
1569
- }
1570
- };
1571
- await util.ajax(params).then((res) => {
1572
- if (type == 1) {
1573
- this.untreatedReadData = res.data;
1574
- this.untreatedReadData.map((x, i) => {
1575
- x.sort = i + 1;
1576
- });
1577
- } else {
1578
- this.processedReadData = res.data;
1579
- this.processedReadData.map((x, i) => {
1580
- x.sort = i + 1;
1581
- });
1582
- }
1583
- });
1584
- },
1585
- /**
1586
- * getFlowList
1587
- * @desc:获取流程列表
1588
- * @author liufan
1589
- * @date 2022年11月22日
1590
- **/
1591
- getFlowList(type) {
1592
- let params = {
1593
- url: pendedhistoryListJson,
1594
- params: {
1595
- apprecordid: this.businessId,
1596
- pendingAttr: 0,
1597
- viewType:type || this.viewType,
1598
- showSuggest: this.showSuggest,
1599
- ...this.params
1600
- }
1601
- };
1602
- util
1603
- .ajax(params)
1604
- .then((res) => {
1605
- let {
1606
- status,
1607
- message,
1608
- data: {
1609
- adjunctCode,
1610
- wfHistoryList,
1611
- fyHistoryList,
1612
- hasAgent,
1613
- isShort,
1614
- modify,
1615
- canDelete,
1616
- taskReadName
1617
- }
1618
- } = res;
1619
- this.loading.close();
1620
- if (status == 'success') {
1621
- this.flowTableInfo.adjunctCode = adjunctCode;
1622
- this.flowTableInfo.hasAgent = hasAgent;
1623
- this.attachmentPaperClipCssStyle =
1624
- res.data.attachmentPaperClipCssStyle;
1625
- this.isShort = isShort;
1626
- this.taskReadName = taskReadName;
1627
- this.flowData = wfHistoryList;
1628
- this.flowData.map((x, i) => {
1629
- x.sort = i + 1;
1630
- if (!x.deptid) {
1631
- x.deptid = x.deptName;
1632
- }
1633
- });
1634
- this.splitReadingData = fyHistoryList;
1635
- this.splitReadingData.map((x, i) => {
1636
- x.sort = i + 1;
1637
- });
1638
- this.modify = modify;
1639
- this.canDelete = canDelete;
1640
- this.show = true;
1641
- if (this.height == 'auto') {
1642
- this.$nextTick(() => {
1643
- this.content.map((x) => {
1644
- this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1645
- });
1646
- });
1647
- }
1648
- if (this.contents.indexOf('circular') != -1) {
1649
- this.getCircularReadList();
1650
- } else {
1651
- this.$nextTick(() => {
1652
- this.getListCount(this.flowListCount);
1653
- });
1654
- }
1655
- } else {
1656
- this.$message.error(message || '系统错误,请联系管理员!');
1657
- }
1658
- })
1659
- .catch((err) => {
1660
- this.loading.close();
1661
- if (err.message && err.message !== 'canceled') {
1662
- this.$message.error(err.message);
1663
- }
1664
- this.show = true;
1665
- });
1666
- },
1667
- /**
1668
- * handleClick
1669
- * @desc:表单点击事件
1670
- * @param {Object} val 当前点击行数据及按钮
1671
- * @author liufan
1672
- * @date 2022年11月10日
1673
- **/
1674
- handleClick(val) {
1675
- const {
1676
- handle: { text },
1677
- row: { id, status }
1678
- } = val;
1679
- if (text === '置为失效') {
1680
- if (status == 0) {
1681
- this.$confirm('您确定要置为失效吗?')
1682
- .then(() => {
1683
- this.loading = util.loading(this.$loading, '提交中...');
1684
- let param = {
1685
- url: deletePresetInfo,
1686
- headers: { Accept: 'application/json,text/plain' },
1687
- method: 'post',
1688
- params: { id }
1689
- };
1690
- util
1691
- .ajax(param)
1692
- .then((res) => {
1693
- const { status, message } = res;
1694
- this.loading.close();
1695
- if (status === 'success') {
1696
- this.$message.success('操作成功');
1697
- this.getListInfo();
1698
- } else {
1699
- this.$message.error(message || '系统错误,请联系管理员!');
1700
- }
1701
- })
1702
- .catch((err) => {
1703
- this.loading.close();
1704
- if (err.message && err.message !== 'canceled') {
1705
- this.$message.error(err.message);
1706
- }
1707
- });
1708
- })
1709
- .catch((e) => {
1710
- // on cancel
1711
- });
1712
- } else {
1713
- this.$message.warning('当前数据已为失效状态');
1714
- }
1715
- }
1716
- },
1717
- /**
1718
- * getCodeValue
1719
- * @desc:获取代码表过滤后的值
1720
- * @param {String} value 展示数据的代码值
1721
- * @param {String} type 代码表类型
1722
- * @author liufan
1723
- * @date 2022年11月10日
1724
- **/
1725
- getCodeValue(value, type) {
1726
- let val = this[type].filter((item) => item.cciValue == value);
1727
- return val[0].shortName;
1728
- },
1729
- /**
1730
- * getSysInfo
1731
- * @desc:获取代码表
1732
- * @param {String} code 编码code值
1733
- * @author liufan
1734
- * @date 2022年11月10日
1735
- **/
1736
- getSysInfo(code) {
1737
- let params = {
1738
- url: findCodeValues,
1739
- params: { ccCode: code }
1740
- };
1741
- util
1742
- .ajax(params)
1743
- .then((res) => {
1744
- const { status, message, data } = res;
1745
- if (status == 'success') {
1746
- this[code] = data;
1747
- } else {
1748
- this.$message.error(message || '系统错误,请联系管理员!');
1749
- }
1750
- })
1751
- .catch((e) => {});
1752
- },
1753
- /**
1754
- * getListInfo
1755
- * @desc:获取预设列表数据
1756
- * @author liufan
1757
- * @date 2022年11月10日
1758
- **/
1759
- getListInfo() {
1760
- let param = {
1761
- url: toPresetInfoListIndex,
1762
- params: { apprecordid: this.businessId }
1763
- };
1764
- util
1765
- .ajax(param)
1766
- .then((res) => {
1767
- let {
1768
- status,
1769
- message,
1770
- data: {
1771
- presetInfoList,
1772
- presetInfoListHiddenColumns,
1773
- canDelete,
1774
- currentUserHasPresetInfoAuth
1775
- }
1776
- } = res;
1777
- this.loading.close();
1778
- if (status == 'success') {
1779
- if (presetInfoList) {
1780
- this.presetData = presetInfoList;
1781
- this.presetData.map((x, i) => {
1782
- x.sort = i + 1;
1783
- });
1784
- }
1785
- this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1786
- this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1787
- this.canDelete = canDelete;
1788
- } else {
1789
- this.$message.error(message || '系统错误,请联系管理员!');
1790
- }
1791
- })
1792
- .catch((err) => {
1793
- this.loading.close();
1794
- if (err.message && err.message !== 'canceled') {
1795
- this.$message.error(err.message);
1796
- }
1797
- });
1798
- }
1799
- }
1800
- };
1801
- </script>
1802
-
1803
- <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
+ @cell-click="handleCellClick"
28
+ :full="height !== 'auto'"
29
+ v-bind="item"
30
+ :data="
31
+ showDoresult
32
+ ? returnData(item.type).filter(
33
+ (x) => x.doresult || x.handleInfo || x.pendstate != 2
34
+ )
35
+ : returnData(item.type)
36
+ "
37
+ @btn-click="handleBtnClick"
38
+ @selection-change="handleSelectionChange"
39
+ ></es-data-table>
40
+ </div>
41
+ </div>
42
+ <es-dialog
43
+ append-to-body
44
+ :close-on-click-modal="false"
45
+ title="查看附件"
46
+ :visible.sync="showFileList"
47
+ v-if="showFileList"
48
+ >
49
+ <FileList
50
+ :ownId="wfpendingid"
51
+ :code="flowTableInfo.adjunctCode"
52
+ :deleted="false"
53
+ :disabled="true"
54
+ @cancel="showFileList = false"
55
+ />
56
+ </es-dialog>
57
+ <es-dialog
58
+ append-to-body
59
+ class="es-flow-list-dialog"
60
+ :close-on-click-modal="false"
61
+ title="流程历史批量删除"
62
+ :visible.sync="showBatchDelete"
63
+ v-if="showBatchDelete"
64
+ >
65
+ <div style="height: 100%" v-loading="batchDeleteLoading">
66
+ <es-data-table
67
+ v-if="showBatchDelete"
68
+ checkbox
69
+ :data="batchdeleteTableList"
70
+ :thead="batchdeleteThead"
71
+ numbers
72
+ full
73
+ @selection-change="handleSelectionChange($event,'batchDelete')"
74
+ style="width: 100%"
75
+ />
76
+ <div class="batch-delete-footer">
77
+ <el-input class="batch-delete-footer-input" v-model="batchdeletereason" placeholder="请输入批量删除的原因"></el-input>
78
+ <es-button type="primary" @click="handleBatchDelete">批量删除</es-button>
79
+ <es-button type="primary" @click="showBatchDelete = false">取消</es-button>
80
+ </div>
81
+ </div>
82
+ </es-dialog>
83
+ <es-dialog
84
+ append-to-body
85
+ class="es-flow-list-dialog"
86
+ :close-on-click-modal="false"
87
+ title="查看删除记录"
88
+ :visible.sync="showDelete"
89
+ v-if="showDelete"
90
+ >
91
+ <div style="height: 100%" v-loading="deleteLoading">
92
+ <es-data-table
93
+ v-if="showDelete"
94
+ :data="deleteTableList"
95
+ :thead="deleteThead"
96
+ @btn-click="handleBtnShowClick"
97
+ @page-size-change="handleSizeChange($event, 'delete')"
98
+ @page-current-change="handleCurrentChange($event, 'delete')"
99
+ numbers
100
+ full
101
+ style="width: 100%"
102
+ @sort-change="sortChange($event, 'delete')"
103
+ :page="pageInfo"
104
+ />
105
+ </div>
106
+ </es-dialog>
107
+ <es-dialog
108
+ append-to-body
109
+ class="es-flow-list-dialog"
110
+ :close-on-click-modal="false"
111
+ title="查看重设记录"
112
+ :visible.sync="showReset"
113
+ v-if="showReset"
114
+ >
115
+ <div style="height: 100%" v-loading="resetLoading">
116
+ <es-data-table
117
+ v-if="showReset"
118
+ :data="resetTableList"
119
+ :thead="resetThead"
120
+ @page-size-change="handleSizeChange($event, 'reset')"
121
+ @page-current-change="handleCurrentChange($event, 'reset')"
122
+ numbers
123
+ full
124
+ style="width: 100%"
125
+ @sort-change="sortChange($event, 'reset')"
126
+ :page="pageInfo"
127
+ />
128
+ </div>
129
+ </es-dialog>
130
+ <es-dialog
131
+ append-to-body
132
+ :close-on-click-modal="false"
133
+ title="查看催办记录"
134
+ :visible.sync="showPress"
135
+ v-if="showPress"
136
+ >
137
+ <div style="height: 100%" v-loading="pressLoading">
138
+ <es-data-table
139
+ v-if="show"
140
+ :data="pressTableList"
141
+ :thead="pressThead"
142
+ @page-size-change="handleSizeChange($event, 'press')"
143
+ @page-current-change="handleCurrentChange($event, 'press')"
144
+ stripe
145
+ full
146
+ style="width: 100%"
147
+ @sort-change="sortChange($event, 'press')"
148
+ :page="pageInfo"
149
+ />
150
+ </div>
151
+ </es-dialog>
152
+ <es-dialog
153
+ append-to-body
154
+ :close-on-click-modal="false"
155
+ :title="modalType == 'del' ? '删除' : '修改意见'"
156
+ :visible.sync="showDel"
157
+ height="auto"
158
+ class="del-flow"
159
+ v-if="showDel"
160
+ >
161
+ <es-form
162
+ v-loading="delLoading"
163
+ :model="formData"
164
+ :contents="formItemList"
165
+ @submit="handleFormSubmit"
166
+ >
167
+ </es-form>
168
+ </es-dialog>
169
+ </div>
170
+ </template>
171
+
172
+ <script>
173
+ import {
174
+ findCodeValues,
175
+ deletePresetInfo,
176
+ pendedhistoryListJson,
177
+ toPresetInfoListIndex,
178
+ pressListJson,
179
+ pendedhistoryListWithCircularReadJson,
180
+ deleteFlow,
181
+ taskReadWithDraw,
182
+ fyListJson,
183
+ circularReadWithdraw,
184
+ resetJson,
185
+ deletedListJson,
186
+ restoredHistory,
187
+ batchDelete,
188
+ modifyFlow
189
+ } from 'eoss-ui/src/config/api';
190
+ import FileList from '../../flow/src/component/FileList.vue';
191
+ import util from 'eoss-ui/src/utils/util';
192
+ export default {
193
+ name: 'EsFlowList',
194
+ components: {
195
+ [FileList.name]: FileList
196
+ },
197
+ props: {
198
+ businessId: {
199
+ type: String,
200
+ default: ''
201
+ },
202
+ getListCount: {
203
+ type: Function,
204
+ default: () => {}
205
+ },
206
+ flowViewType: {
207
+ type: [Number, String],
208
+ default: 0
209
+ },
210
+ hide: {
211
+ type: String,
212
+ default: ''
213
+ },
214
+ hideBtn: {
215
+ type: Boolean,
216
+ default: false
217
+ },
218
+ params: {
219
+ type: Object,
220
+ default: () => {
221
+ return {};
222
+ }
223
+ },
224
+ toolbar: {
225
+ type: Array,
226
+ default: () => []
227
+ },
228
+ headFields: {
229
+ type: Array,
230
+ default: () => []
231
+ },
232
+ contents: {
233
+ type: Array,
234
+ default() {
235
+ return ['flow', 'splitReading', 'preset'];
236
+ }
237
+ },
238
+ numbers: {
239
+ type: Boolean,
240
+ default: false
241
+ },
242
+ height: {
243
+ type: String,
244
+ default: ''
245
+ },
246
+ showDoresult: {
247
+ type: Boolean,
248
+ default: false
249
+ },
250
+ theadWidth: {
251
+ type: Object,
252
+ default: () => {
253
+ return {};
254
+ }
255
+ },
256
+ type: {
257
+ type: String,
258
+ default: ''
259
+ },
260
+ display: Boolean
261
+ },
262
+ inheritAttrs: false,
263
+ data() {
264
+ return {
265
+ pressLoading: false,
266
+ pressTableList: [],
267
+ circularData: [],
268
+ selectList: [],
269
+ batchDeleteSelectList:[],
270
+ flowHeight: '',
271
+ presetHeight: '',
272
+ signHeight: '',
273
+ splitReadingHeight: '',
274
+ circularHeight: '',
275
+ untreatedReadHeight: '',
276
+ processedReadHeight: '',
277
+ untreatedReadData: [],
278
+ processedReadData: [],
279
+ hasCircularReadWithdrawAuthority: false,
280
+ currentPage: 1,
281
+ pageSize: 20,
282
+ flowListCount: {},
283
+ currentUserHasPresetInfoAuth: false,
284
+ pressThead: [
285
+ {
286
+ title: '催办节点',
287
+ align: 'center',
288
+ sortable: true,
289
+ field: 'urge_item'
290
+ },
291
+ {
292
+ title: '催办人名称',
293
+ sortable: true,
294
+ align: 'center',
295
+ field: 'urge_man_name'
296
+ },
297
+ {
298
+ title: '催办时间',
299
+ sortable: true,
300
+ align: 'center',
301
+ field: 'urge_time'
302
+ },
303
+ {
304
+ title: '被催办人名称',
305
+ align: 'center',
306
+ sortable: true,
307
+ field: 'urged_man_name'
308
+ }
309
+ ],
310
+ wfpendingid: '',
311
+ showFileList: false,
312
+ flowData: [],
313
+ splitReadingData: [],
314
+ presetData: [],
315
+ signData: [],
316
+ loading: '', //加载中
317
+ preset_type: [], //预设类型
318
+ showPress: false, //查看催办记录弹窗
319
+ showDelete: false, //删除记录弹窗
320
+ showBatchDelete: false,
321
+ deleteLoading: false,
322
+ batchDeleteLoading: false,
323
+ deleteTableList: [],
324
+ batchdeleteTableList: [],
325
+ batchdeletereason:'',
326
+ batchdeleteThead: [
327
+ {
328
+ title: '步骤',
329
+ align: 'center',
330
+ // sortable: true,
331
+ showOverflowTooltip: true,
332
+ field: 'itemname'
333
+ },
334
+ {
335
+ title: '办理人',
336
+ align: 'center',
337
+ showOverflowTooltip: true,
338
+ width: 120,
339
+ // sortable: true,
340
+ field: 'userName'
341
+ },
342
+ {
343
+ label: '状态',
344
+ field: 'pendstate',
345
+ key: 'zt',
346
+ align: 'center',
347
+ showOverflowTooltip: true,
348
+ width: this.theadWidth.pendstate || 80,
349
+ render: (h, params) => {
350
+ return h('span', {
351
+ style: {
352
+ color:
353
+ params.row.pendstate == 0 || params.row.pendstate == 3
354
+ ? 'red'
355
+ : params.row.pendstate == 1
356
+ ? 'green'
357
+ : params.row.pendstate == -1
358
+ ? 'orange'
359
+ : 'deepskyblue'
360
+ },
361
+ domProps: { innerHTML: params.row.querykeywords }
362
+ });
363
+ }
364
+ },
365
+ {
366
+ title: '办理意见',
367
+ align: 'center',
368
+ showOverflowTooltip: true,
369
+ // sortable: true,
370
+ field: 'doresult'
371
+ },
372
+ {
373
+ title: '办理时间',
374
+ align: 'center',
375
+ showOverflowTooltip: true,
376
+ // sortable: true,
377
+ field: 'doetime',
378
+ render: (h, params) => {
379
+ return h(
380
+ 'span',
381
+ {},
382
+ params.row.doetime
383
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
384
+ : ''
385
+ );
386
+ }
387
+ }
388
+ ],
389
+ deleteThead: [
390
+ {
391
+ title: '步骤',
392
+ align: 'center',
393
+ // sortable: true,
394
+ showOverflowTooltip: true,
395
+ field: 'itemname'
396
+ },
397
+ {
398
+ title: '办理人',
399
+ align: 'center',
400
+ showOverflowTooltip: true,
401
+ width: 120,
402
+ // sortable: true,
403
+ field: 'userName'
404
+ },
405
+ {
406
+ title: '办理意见',
407
+ align: 'center',
408
+ showOverflowTooltip: true,
409
+ width: 240,
410
+ // sortable: true,
411
+ field: 'doresult'
412
+ },
413
+ {
414
+ title: '办理时间',
415
+ align: 'center',
416
+ width: 150,
417
+ showOverflowTooltip: true,
418
+ // sortable: true,
419
+ field: 'doetime'
420
+ },
421
+ {
422
+ title: '删除人',
423
+ showOverflowTooltip: true,
424
+ width: 120,
425
+ align: 'center',
426
+ // sortable: true,
427
+ field: 'querykeywords'
428
+ },
429
+ {
430
+ title: '删除原因',
431
+ align: 'center',
432
+ width: 240,
433
+ showOverflowTooltip: true,
434
+ // sortable: true,
435
+ field: 'upstepInfo'
436
+ },
437
+ {
438
+ title: '删除时间',
439
+ align: 'center',
440
+ width: 150,
441
+ showOverflowTooltip: true,
442
+ // sortable: true,
443
+ field: 'statechangetime'
444
+ },
445
+ {
446
+ title: '操作',
447
+ type: 'handle',
448
+ events: [
449
+ {
450
+ text: '恢复'
451
+ }
452
+ ]
453
+ }
454
+ ],
455
+ showReset: false, //重设记录弹窗
456
+ resetLoading: false,
457
+ resetTableList: [],
458
+ resetThead: [
459
+ {
460
+ title: '重设人登录名',
461
+ align: 'center',
462
+ // sortable: true,
463
+ showOverflowTooltip: true,
464
+ field: 'reset_person_login_name'
465
+ },
466
+ {
467
+ title: '重设人姓名',
468
+ align: 'center',
469
+ showOverflowTooltip: true,
470
+ // sortable: true,
471
+ field: 'reset_person_name'
472
+ },
473
+ {
474
+ title: '重设前节点',
475
+ align: 'center',
476
+ showOverflowTooltip: true,
477
+ // sortable: true,
478
+ field: 'reset_bf_item'
479
+ },
480
+ {
481
+ title: '重设前执行人',
482
+ align: 'center',
483
+ showOverflowTooltip: true,
484
+ // sortable: true,
485
+ field: 'reset_bf_user'
486
+ },
487
+ {
488
+ title: '重设后节点',
489
+ showOverflowTooltip: true,
490
+ align: 'center',
491
+ // sortable: true,
492
+ field: 'reset_af_item'
493
+ },
494
+ {
495
+ title: '重设后执行人',
496
+ align: 'center',
497
+ showOverflowTooltip: true,
498
+ // sortable: true,
499
+ field: 'reset_af_user'
500
+ },
501
+ {
502
+ title: '重设时间',
503
+ align: 'center',
504
+ showOverflowTooltip: true,
505
+ // sortable: true,
506
+ field: 'reset_time'
507
+ },
508
+ {
509
+ title: '操作IP',
510
+ align: 'center',
511
+ showOverflowTooltip: true,
512
+ // sortable: true,
513
+ field: 'reset_ip'
514
+ }
515
+ ],
516
+ modify: false,
517
+ formData: { reason: '' },
518
+
519
+ delLoading: false,
520
+ showDel: false,
521
+ attachmentPaperClipCssStyle: '',
522
+ is_edit: [], //是否可编辑
523
+ flowTableInfo: {
524
+ adjunctCode: '',
525
+ hasAgent: '1' //是否展示代办人 1:展示 0:不展示
526
+ },
527
+ show: false,
528
+ taskReadName: '', //非流程列表名称
529
+ options: [
530
+ { label: '时间排序', value: '1' },
531
+ { label: '部门排序', value: '2' }
532
+ // { label: '树形排序', value: '3' }
533
+ ],
534
+ isShort: 0, //是否隐藏筛选
535
+ viewType: '1', //排序方式
536
+ flowTableList: [], //流程列表
537
+ fyTableList: [], //分阅列表
538
+ showSuggest: 'all', //筛选显示数据
539
+ presetInfoListHiddenColumns: '', //隐藏表格展示数据
540
+ canDelete: false, //是否展示操作按钮
541
+ canBatchDelete: false, //是否可以批量删除
542
+ isSuperRole: false, //是否管理员
543
+ isShowReset: false, //是否显示重设记录
544
+ historyId: '',
545
+ sidx: '',
546
+ sord: 'asc',
547
+ modalType: '',
548
+ total: 0
549
+ };
550
+ },
551
+ watch: {
552
+ flowViewType: {
553
+ handler(val) {
554
+ if (val) {
555
+ this.loading = util.loading(this.$loading, '加载中...');
556
+ this.getFlowList(val);
557
+ }
558
+ },
559
+ deep: true,
560
+ immediate: true
561
+ }
562
+ },
563
+
564
+ computed: {
565
+ formItemList() {
566
+ return [
567
+ {
568
+ name: 'reason',
569
+ label: this.modalType == 'del' ? '删除原因' : '办理意见',
570
+ type: 'textarea',
571
+ placeholder: `请输入${
572
+ this.modalType == 'del' ? '删除原因' : '办理意见'
573
+ }`,
574
+ rules: {
575
+ required: this.modalType == 'del',
576
+ message: '请输入删除原因',
577
+ trigger: 'blur'
578
+ },
579
+ value: '',
580
+ rows: 5
581
+ },
582
+ {
583
+ type: 'submit',
584
+ skin: 'lay-form-btns',
585
+ contents: [
586
+ {
587
+ type: 'primary',
588
+ plain: true,
589
+ text: '保存',
590
+ event: 'confirm'
591
+ }
592
+ ]
593
+ }
594
+ ];
595
+ },
596
+ toolbars() {
597
+ return {
598
+ flow: [
599
+ {
600
+ type: 'text',
601
+ contents: '流程列表'
602
+ },
603
+ {
604
+ type: 'search',
605
+ contents: [
606
+ {
607
+ name: 'showSuggest',
608
+ type: 'radio',
609
+ changeSearch: true,
610
+ data: [
611
+ {
612
+ value: 'all',
613
+ name: '显示全部',
614
+ checked: true
615
+ },
616
+ { value: 'have', name: '显示已填意见' }
617
+ ],
618
+ events: {
619
+ change: (key, value) => {
620
+ this.handleChange(key, value);
621
+ }
622
+ }
623
+ },
624
+
625
+ {
626
+ type: 'select',
627
+ placeholder: '请选择',
628
+ name: 'viewType',
629
+ width: '140px',
630
+ changeSearch: true,
631
+ events: {
632
+ change: (key, value) => {
633
+ this.handleChange(key, value);
634
+ }
635
+ },
636
+ data: [
637
+ {
638
+ value: 1,
639
+ selected: true,
640
+ name: '时间排序'
641
+ },
642
+ {
643
+ value: 2,
644
+ name: '部门排序'
645
+ }
646
+ // {
647
+ // value: 3,
648
+ // name: '树形排序'
649
+ // }
650
+ ]
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ type: 'button',
656
+ name: 'btn',
657
+ width: '140px',
658
+ contents: [
659
+ {
660
+ text: '删除记录',
661
+ type: 'primary',
662
+ hide: !this.canDelete && !this.isSuperRole,
663
+ event: (res) => {
664
+ // click: (key, value) => {
665
+ this.showDelete = true;
666
+ this.currentPage = 1;
667
+ this.pageSize = 20;
668
+ this.getDeletList();
669
+ // }
670
+ }
671
+ },
672
+ {
673
+ text: '批量删除',
674
+ type: 'primary',
675
+ hide: !this.canBatchDelete && !this.isSuperRole,
676
+ event: (res) => {
677
+ // click: (key, value) => {
678
+ this.showBatchDelete = true;
679
+ this.batchdeleteTableList = this.flowData.filter((x) => x.pendstate == 2);
680
+ console.log(res, '批量删除');
681
+ // }
682
+ }
683
+ },
684
+ {
685
+ text: '重设记录',
686
+ type: 'primary',
687
+ hide: !this.isShowReset,
688
+ event: (res) => {
689
+ // click: (key, value) => {
690
+ this.showReset = true;
691
+ this.currentPage = 1;
692
+ this.pageSize = 20;
693
+ this.getResetList();
694
+ console.log(res, '重设记录');
695
+ // }
696
+ }
697
+ }
698
+ ]
699
+ }
700
+ ],
701
+ preset: [
702
+ {
703
+ type: 'text',
704
+ contents: '预设列表'
705
+ }
706
+ ],
707
+ sign: [
708
+ {
709
+ type: 'button',
710
+ contents: [
711
+ {
712
+ text: '生成处理签',
713
+ type: 'primary'
714
+ }
715
+ ]
716
+ }
717
+ ],
718
+ splitReading: [
719
+ {
720
+ type: 'text',
721
+ contents:
722
+ (this.taskReadName ? this.taskReadName : '非流程') + '列表'
723
+ }
724
+ ],
725
+ circular: [
726
+ {
727
+ type: 'text',
728
+ contents: '传阅列表'
729
+ }
730
+ ],
731
+ untreatedRead: [
732
+ {
733
+ type: 'text',
734
+ contents: '未处理分阅列表'
735
+ },
736
+ {
737
+ type: 'button',
738
+ contents: [
739
+ {
740
+ text: '撤销分阅',
741
+ fun: 'recallRead'
742
+ }
743
+ ]
744
+ }
745
+ ],
746
+ processedRead: [
747
+ {
748
+ type: 'text',
749
+ contents: '已处理分阅列表'
750
+ }
751
+ ]
752
+ // Reading situation
753
+ };
754
+ },
755
+ pageInfo() {
756
+ return {
757
+ pageNum: this.currentPage,
758
+ pageSize: this.pageSize,
759
+ totalCount: this.total
760
+ };
761
+ },
762
+ theads() {
763
+ const _that = this;
764
+ let newThead = {
765
+ flow: [
766
+ {
767
+ label: '经办部门',
768
+ field: 'deptid',
769
+ align: 'center',
770
+ key: 'jbbm',
771
+ showOverflowTooltip: true,
772
+ width: this.theadWidth.deptid || 150,
773
+ render: (h, params) => {
774
+ return h(
775
+ 'span',
776
+ {},
777
+ params.row.doDeptName
778
+ ? params.row.doDeptName
779
+ : params.row.deptName
780
+ );
781
+ }
782
+ },
783
+ {
784
+ label: '步骤',
785
+ field: 'itemname',
786
+ align: 'center',
787
+ key: 'bz',
788
+ showOverflowTooltip: true,
789
+ width: this.theadWidth.itemname || 110
790
+ },
791
+ {
792
+ label: '办理人',
793
+ field: 'userName',
794
+ align: 'center',
795
+ key: 'blr',
796
+ showOverflowTooltip: true,
797
+ width: this.theadWidth.userName || 110
798
+ },
799
+ {
800
+ label: '办理人部门',
801
+ field: 'deptName',
802
+ align: 'center',
803
+ showOverflowTooltip: true,
804
+ key: 'blrbm',
805
+ width: this.theadWidth.deptName || 110
806
+ },
807
+ {
808
+ label: '状态',
809
+ field: 'pendstate',
810
+ key: 'zt',
811
+ align: 'center',
812
+ showOverflowTooltip: true,
813
+ width: this.theadWidth.pendstate || 80,
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
+ : params.row.pendstate == -1
823
+ ? 'orange'
824
+ : 'deepskyblue'
825
+ },
826
+ domProps: { innerHTML: params.row.querykeywords }
827
+ });
828
+ }
829
+ },
830
+ {
831
+ label: '办理意见',
832
+ field: 'doresult',
833
+ align: 'center',
834
+ width: this.theadWidth.doresult,
835
+ showOverflowTooltip: true,
836
+ key: 'blyj',
837
+ render: (h, params) => {
838
+ if (
839
+ params.row.doresult &&
840
+ (params.row.doresult.startsWith('http') ||
841
+ params.row.doresult.startsWith('https'))
842
+ ) {
843
+ return h('img', {
844
+ attrs: { src: params.row.doresult },
845
+ style: { width: '100px', height: '100px' }
846
+ });
847
+ } else {
848
+ return h('span', {}, [
849
+ params.row.doresult
850
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
851
+ : '',
852
+ h(
853
+ 'span',
854
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
855
+ params.row.handleInfo || ''
856
+ )
857
+ ]);
858
+ }
859
+ }
860
+ },
861
+ {
862
+ label: '验签',
863
+ field: 'authTypeStr',
864
+ align: 'center',
865
+ key: 'yq',
866
+ showOverflowTooltip: true,
867
+ width: this.theadWidth.authTypeStr || 70,
868
+ render: (h, params) => {
869
+ return h(
870
+ 'span',
871
+ { style: { color: 'deepskyblue' } },
872
+ params.row.authTypeStr
873
+ );
874
+ }
875
+ },
876
+ {
877
+ label: '附件',
878
+ key: 'fj',
879
+ field: 'hasAdjunct',
880
+ align: 'center',
881
+ showOverflowTooltip: true,
882
+ width: this.theadWidth.hasAdjunct || 70,
883
+ render: (h, params) => {
884
+ if (params.row.hasAdjunct) {
885
+ return h('span', {
886
+ style: _that.attachmentPaperClipCssStyle
887
+ ? _that.attachmentPaperClipCssStyle
888
+ : { color: 'red', fontSize: '20px' },
889
+ class: 'iconfont es-icon-fujian'
890
+ });
891
+ } else {
892
+ return h('span', {}, '');
893
+ }
894
+ }
895
+ },
896
+ {
897
+ label: '时间',
898
+ field: 'doetime',
899
+ align: 'center',
900
+ key: 'sj',
901
+ showOverflowTooltip: true,
902
+ width: this.theadWidth.doetime || 150,
903
+ render: (h, params) => {
904
+ return h(
905
+ 'span',
906
+ {},
907
+ params.row.doetime
908
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
909
+ : ''
910
+ );
911
+ }
912
+ },
913
+ {
914
+ label: '代办人',
915
+ field: 'douserid',
916
+ align: 'center',
917
+ key: 'dbr',
918
+ showOverflowTooltip: true,
919
+ width: this.theadWidth.douserid || 80,
920
+ hide: _that.flowTableInfo.hasAgent != '1'
921
+ },
922
+ {
923
+ label: '催办',
924
+ field: 'pressTimes',
925
+ align: 'center',
926
+ key: 'cb',
927
+ showOverflowTooltip: true,
928
+ width: this.theadWidth.pressTimes || 150,
929
+ render: (h, params) => {
930
+ return h(
931
+ 'span',
932
+ { style: 'color:deepskyblue;cursor: pointer;' },
933
+ params.row.pressTimes != 0 ? params.row.pressTimes : ''
934
+ );
935
+ }
936
+ },
937
+ {
938
+ title: '操作',
939
+ type: 'handle',
940
+ width: this.modify ? '130' : '100',
941
+ template: '',
942
+ hide: this.hideBtn || (!this.canDelete && !this.modify),
943
+ events: [
944
+ {
945
+ text: '删除',
946
+ rules: (rows) => {
947
+ return rows.canDelete || this.canDelete;
948
+ }
949
+ },
950
+ {
951
+ text: '修改',
952
+ rules: (rows) => {
953
+ return this.modify && rows.pendstate == 2;
954
+ }
955
+ }
956
+ ]
957
+ }
958
+ ],
959
+ preset: this.thead,
960
+ splitReading: [
961
+ {
962
+ label: '经办部门',
963
+ field: 'deptid',
964
+ key: 'jbbm',
965
+ align: 'center',
966
+ showOverflowTooltip: true,
967
+ width: this.theadWidth.deptid || 150
968
+ },
969
+ {
970
+ label: '步骤',
971
+ field: 'itemname',
972
+ align: 'center',
973
+ key: 'bz',
974
+ showOverflowTooltip: true,
975
+ width: this.theadWidth.itemname || 110
976
+ },
977
+ {
978
+ label: '办理人',
979
+ field: 'userName',
980
+ align: 'center',
981
+ key: 'blr',
982
+ showOverflowTooltip: true,
983
+ width: this.theadWidth.userName || 110
984
+ },
985
+ {
986
+ label: '状态',
987
+ field: 'pendstate',
988
+ align: 'center',
989
+ key: 'zt',
990
+ showOverflowTooltip: true,
991
+ width: this.theadWidth.pendstate || 80,
992
+ render: (h, params) => {
993
+ return h('span', {
994
+ style: {
995
+ color:
996
+ params.row.pendstate == 0 || params.row.pendstate == 3
997
+ ? 'red'
998
+ : params.row.pendstate == 1
999
+ ? 'green'
1000
+ : params.row.pendstate == -1
1001
+ ? 'orange'
1002
+ : 'deepskyblue'
1003
+ },
1004
+ domProps: { innerHTML: params.row.querykeywords }
1005
+ });
1006
+ }
1007
+ },
1008
+ {
1009
+ label: '办理意见',
1010
+ field: 'doresult',
1011
+ align: 'center',
1012
+ key: 'blyj',
1013
+ width: this.theadWidth.doresult,
1014
+ showOverflowTooltip: true,
1015
+ render: (h, params) => {
1016
+ if (
1017
+ params.row.doresult &&
1018
+ (params.row.doresult.startsWith('http') ||
1019
+ params.row.doresult.startsWith('https'))
1020
+ ) {
1021
+ return h('img', {
1022
+ attrs: { src: params.row.doresult },
1023
+ style: { width: '100px', height: '100px' }
1024
+ });
1025
+ } else {
1026
+ return h('span', {}, [
1027
+ params.row.doresult
1028
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
1029
+ : '',
1030
+ h(
1031
+ 'span',
1032
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
1033
+ params.row.handleInfo || ''
1034
+ )
1035
+ ]);
1036
+ }
1037
+ }
1038
+ },
1039
+ {
1040
+ label: '验签',
1041
+ field: 'authTypeStr',
1042
+ align: 'center',
1043
+ key: 'yq',
1044
+ showOverflowTooltip: true,
1045
+ width: this.theadWidth.authTypeStr || 70,
1046
+ render: (h, params) => {
1047
+ return h(
1048
+ 'span',
1049
+ { style: { color: 'deepskyblue' } },
1050
+ params.row.authTypeStr
1051
+ );
1052
+ }
1053
+ },
1054
+ {
1055
+ label: '附件',
1056
+ field: 'hasAdjunct',
1057
+ align: 'center',
1058
+ key: 'fj',
1059
+ showOverflowTooltip: true,
1060
+ width: this.theadWidth.hasAdjunct || 70,
1061
+ render: (h, params) => {
1062
+ if (params.row.hasAdjunct) {
1063
+ return h('span', {
1064
+ style: _that.attachmentPaperClipCssStyle
1065
+ ? _that.attachmentPaperClipCssStyle
1066
+ : { color: 'red', fontSize: '20px' },
1067
+ class: 'iconfont es-icon-fujian'
1068
+ });
1069
+ } else {
1070
+ return h('span', {}, '');
1071
+ }
1072
+ }
1073
+ },
1074
+ {
1075
+ label: '时间',
1076
+ field: 'doetime',
1077
+ align: 'center',
1078
+ key: 'sj',
1079
+ showOverflowTooltip: true,
1080
+ width: this.theadWidth.doetime || 150,
1081
+ render: (h, params) => {
1082
+ return h(
1083
+ 'span',
1084
+ {},
1085
+ params.row.doetime
1086
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
1087
+ : ''
1088
+ );
1089
+ }
1090
+ },
1091
+ {
1092
+ label: '代办人',
1093
+ field: 'douserid',
1094
+ align: 'center',
1095
+ key: 'dbr',
1096
+ showOverflowTooltip: true,
1097
+ width: this.theadWidth.douserid || 80,
1098
+ hide: _that.flowTableInfo.hasAgent != '1'
1099
+ },
1100
+ {
1101
+ label: '催办',
1102
+ field: 'pressTimes',
1103
+ align: 'center',
1104
+ key: 'cb',
1105
+ showOverflowTooltip: true,
1106
+ width: this.theadWidth.pressTimes || 150,
1107
+ render: (h, params) => {
1108
+ return h(
1109
+ 'span',
1110
+ { style: 'color:deepskyblue;cursor: pointer;' },
1111
+ params.row.pressTimes != 0 ? params.row.pressTimes : ''
1112
+ );
1113
+ }
1114
+ },
1115
+ {
1116
+ title: '操作',
1117
+ type: 'handle',
1118
+ width: '100',
1119
+ template: '',
1120
+ hide: this.hideBtn || (!this.canDelete && !this.modify),
1121
+ events: [
1122
+ {
1123
+ text: '删除',
1124
+ rules: (rows) => {
1125
+ return rows.canDelete || this.canDelete;
1126
+ }
1127
+ }
1128
+ ]
1129
+ }
1130
+ ],
1131
+ circular: [
1132
+ {
1133
+ label: '发起人',
1134
+ field: 'circularReadInitiatorName',
1135
+ align: 'center',
1136
+ key: 'fqr',
1137
+ showOverflowTooltip: true,
1138
+ width: this.theadWidth.circularReadInitiatorName || 150
1139
+ },
1140
+ {
1141
+ label: '传阅部门',
1142
+ field: 'circularReadOrgName',
1143
+ align: 'center',
1144
+ key: 'cybm',
1145
+ showOverflowTooltip: true,
1146
+ width: this.theadWidth.circularReadOrgName || 110
1147
+ },
1148
+ {
1149
+ label: '传阅人',
1150
+ field: 'userName',
1151
+ align: 'center',
1152
+ key: 'cyr',
1153
+ showOverflowTooltip: true,
1154
+ width: this.theadWidth.userName || 110
1155
+ },
1156
+ {
1157
+ label: '步骤',
1158
+ field: 'itemname',
1159
+ align: 'center',
1160
+ showOverflowTooltip: true,
1161
+ key: 'bz',
1162
+ width: this.theadWidth.itemname || 110
1163
+ },
1164
+ {
1165
+ label: '状态',
1166
+ field: 'pendstate',
1167
+ key: 'zt',
1168
+ align: 'center',
1169
+ showOverflowTooltip: true,
1170
+ width: this.theadWidth.pendstate || 140,
1171
+ render: (h, params) => {
1172
+ return h('span', {
1173
+ style: {
1174
+ color:
1175
+ params.row.pendstate == 0 || params.row.pendstate == 3
1176
+ ? 'red'
1177
+ : params.row.pendstate == 1
1178
+ ? 'green'
1179
+ : params.row.pendstate == -1
1180
+ ? 'orange'
1181
+ : 'deepskyblue',
1182
+ cursor: this.hasCircularReadWithdrawAuthority
1183
+ ? 'pointer'
1184
+ : 'unset'
1185
+ },
1186
+ domProps: {
1187
+ innerHTML:
1188
+ params.row.querykeywords +
1189
+ (this.hasCircularReadWithdrawAuthority
1190
+ ? `<span style="color:#7AB0D5">(撤回)</span>`
1191
+ : '')
1192
+ }
1193
+ });
1194
+ }
1195
+ },
1196
+ {
1197
+ label: '送达时间',
1198
+ field: 'createtime',
1199
+ align: 'center',
1200
+ key: 'sdsj',
1201
+ showOverflowTooltip: true,
1202
+ width: this.theadWidth.createtime || 170
1203
+ },
1204
+ {
1205
+ label: '办理时间',
1206
+ field: 'doetime',
1207
+ align: 'center',
1208
+ key: 'blsj',
1209
+ showOverflowTooltip: true,
1210
+ width: this.theadWidth.doetime || 150
1211
+ },
1212
+
1213
+ {
1214
+ label: '附件',
1215
+ key: 'fj',
1216
+ field: 'hasAdjunct',
1217
+ align: 'center',
1218
+ showOverflowTooltip: true,
1219
+ width: this.theadWidth.hasAdjunct || 70,
1220
+ render: (h, params) => {
1221
+ if (params.row.hasAdjunct) {
1222
+ return h('span', {
1223
+ style: _that.attachmentPaperClipCssStyle
1224
+ ? _that.attachmentPaperClipCssStyle
1225
+ : { color: 'red', fontSize: '20px' },
1226
+ class: 'iconfont es-icon-fujian'
1227
+ });
1228
+ } else {
1229
+ return h('span', {}, '');
1230
+ }
1231
+ }
1232
+ },
1233
+ {
1234
+ label: '提醒',
1235
+ field: 'pressTimes',
1236
+ align: 'center',
1237
+ key: 'tx',
1238
+ showOverflowTooltip: true,
1239
+ width: this.theadWidth.pressTimes || 150,
1240
+ render: (h, params) => {
1241
+ return h(
1242
+ 'span',
1243
+ { style: 'color:deepskyblue;cursor: pointer;' },
1244
+ params.row.pressTimes
1245
+ );
1246
+ }
1247
+ },
1248
+ {
1249
+ label: '阅结意见 & 说明',
1250
+ field: 'doresult',
1251
+ align: 'center',
1252
+ width: this.theadWidth.doresult,
1253
+ showOverflowTooltip: true,
1254
+ key: 'blyj',
1255
+ render: (h, params) => {
1256
+ if (
1257
+ params.row.doresult &&
1258
+ (params.row.doresult.startsWith('http') ||
1259
+ params.row.doresult.startsWith('https'))
1260
+ ) {
1261
+ return h('img', {
1262
+ attrs: { src: params.row.doresult },
1263
+ style: { width: '100px', height: '100px' }
1264
+ });
1265
+ } else {
1266
+ return h('span', {}, [
1267
+ params.row.doresult
1268
+ ? params.row.doresult + (params.row.handleInfo ? '&' : '')
1269
+ : '',
1270
+ h(
1271
+ 'span',
1272
+ { style: { color: '#A5A5A5', marginLeft: '2px' } },
1273
+ params.row.handleInfo || ''
1274
+ )
1275
+ ]);
1276
+ }
1277
+ }
1278
+ }
1279
+ ],
1280
+ untreatedRead: [
1281
+ {
1282
+ label: '步骤',
1283
+ field: 'itemid',
1284
+ align: 'center',
1285
+ key: 'bz',
1286
+ showOverflowTooltip: true,
1287
+ width: this.theadWidth.itemid || 110
1288
+ },
1289
+ {
1290
+ label: '办理人',
1291
+ field: 'userName',
1292
+ align: 'center',
1293
+ key: 'blr',
1294
+ showOverflowTooltip: true,
1295
+ width: this.theadWidth.userName
1296
+ },
1297
+ {
1298
+ label: '办理状态',
1299
+ field: 'pendstate',
1300
+ key: 'blzt',
1301
+ align: 'center',
1302
+ showOverflowTooltip: true,
1303
+ width: this.theadWidth.pendstate || 110,
1304
+ render: (h, params) => {
1305
+ return h('span', {
1306
+ style: {
1307
+ color:
1308
+ params.row.pendstate == 0 || params.row.pendstate == 3
1309
+ ? 'red'
1310
+ : params.row.pendstate == 1
1311
+ ? 'green'
1312
+ : 'deepskyblue'
1313
+ },
1314
+ domProps: { innerHTML: params.row.querykeywords }
1315
+ });
1316
+ }
1317
+ },
1318
+ {
1319
+ label: '创建时间',
1320
+ field: 'createtime',
1321
+ align: 'center',
1322
+ key: 'cjsj',
1323
+ showOverflowTooltip: true,
1324
+ width: this.theadWidth.createtime || 150,
1325
+ render: (h, params) => {
1326
+ return h(
1327
+ 'span',
1328
+ {},
1329
+ params.row.doetime
1330
+ ? util.formatDate(params.row.createtime, 'yyyy-MM-dd HH:mm')
1331
+ : ''
1332
+ );
1333
+ }
1334
+ }
1335
+ ],
1336
+ processedRead: [
1337
+ {
1338
+ label: '步骤',
1339
+ field: 'itemid',
1340
+ align: 'center',
1341
+ key: 'bz',
1342
+ showOverflowTooltip: true,
1343
+ width: this.theadWidth.itemid || 110
1344
+ },
1345
+ {
1346
+ label: '办理人',
1347
+ field: 'userName',
1348
+ align: 'center',
1349
+ key: 'blr',
1350
+ showOverflowTooltip: true,
1351
+ width: this.theadWidth.userName
1352
+ },
1353
+ {
1354
+ label: '办理状态',
1355
+ field: 'pendstate',
1356
+ key: 'blzt',
1357
+ align: 'center',
1358
+ showOverflowTooltip: true,
1359
+ width: this.theadWidth.pendstate || 110,
1360
+ render: (h, params) => {
1361
+ return h('span', {
1362
+ style: {
1363
+ color:
1364
+ params.row.pendstate == 0 || params.row.pendstate == 3
1365
+ ? 'red'
1366
+ : params.row.pendstate == 1
1367
+ ? 'green'
1368
+ : 'deepskyblue'
1369
+ },
1370
+ domProps: { innerHTML: params.row.querykeywords }
1371
+ });
1372
+ }
1373
+ },
1374
+ {
1375
+ label: '办理时间',
1376
+ field: 'doetime',
1377
+ align: 'center',
1378
+ key: 'blsj',
1379
+ showOverflowTooltip: true,
1380
+ width: this.theadWidth.doetime || 150,
1381
+ render: (h, params) => {
1382
+ return h(
1383
+ 'span',
1384
+ {},
1385
+ params.row.doetime
1386
+ ? util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
1387
+ : ''
1388
+ );
1389
+ }
1390
+ },
1391
+ {
1392
+ label: '代办人',
1393
+ field: 'douserid',
1394
+ align: 'center',
1395
+ key: 'dbr',
1396
+ showOverflowTooltip: true,
1397
+ width: this.theadWidth.douserid
1398
+ },
1399
+ {
1400
+ label: '意见',
1401
+ field: 'doresult',
1402
+ align: 'center',
1403
+ key: 'yj',
1404
+ showOverflowTooltip: true,
1405
+ width: this.theadWidth.doresult
1406
+ }
1407
+ ]
1408
+ };
1409
+ if (this.numbers) {
1410
+ for (let key in newThead) {
1411
+ newThead[key].unshift({
1412
+ label: '序号',
1413
+ field: 'sort',
1414
+ align: 'center',
1415
+ key: 'xh',
1416
+ showOverflowTooltip: true,
1417
+ width: 50
1418
+ });
1419
+ }
1420
+ }
1421
+ return newThead;
1422
+ },
1423
+ content() {
1424
+ const _that = this;
1425
+ let newContents = JSON.parse(JSON.stringify(this.contents));
1426
+ if (this.contents.indexOf('circular') != -1) {
1427
+ newContents = newContents.filter((item) => item != 'splitReading');
1428
+ }
1429
+ if (newContents.indexOf('readingSituation') != -1) {
1430
+ newContents = ['untreatedRead', 'processedRead'];
1431
+ }
1432
+ let contents = newContents.map((item) => {
1433
+ if (typeof item === 'string') {
1434
+ let data = [];
1435
+ if (_that.headFields.length > 0) {
1436
+ _that.headFields.map((headFiled) => {
1437
+ if (headFiled.showDefault) {
1438
+ _that.theads[item].map((theadItem) => {
1439
+ if (theadItem.field === headFiled.field) {
1440
+ data.push({ ...theadItem, ...headFiled });
1441
+ }
1442
+ });
1443
+ } else {
1444
+ data.push(headFiled);
1445
+ }
1446
+ });
1447
+ _that.theads[item].map((x) => {
1448
+ if (x.type == 'handle') {
1449
+ data.push(x);
1450
+ }
1451
+ });
1452
+ }
1453
+ return {
1454
+ type: item,
1455
+ checkbox: newContents.indexOf('untreatedRead') != -1,
1456
+ toolbar: this.toolbars[item],
1457
+ thead: data.length > 0 ? data : this.theads[item],
1458
+ showFormBtn: false
1459
+ };
1460
+ } else {
1461
+ if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
1462
+ let toolbars = this.toolbars[item.type];
1463
+ return { ...item, toolbars };
1464
+ }
1465
+ if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
1466
+ let thead = this.theads[item.type];
1467
+ return { ...item, thead };
1468
+ }
1469
+ return item;
1470
+ }
1471
+ });
1472
+ return contents;
1473
+ },
1474
+ newToolbar() {
1475
+ if (this.toolbar && this.toolbar.length > 0) {
1476
+ return this.toolbar;
1477
+ } else {
1478
+ return [];
1479
+ }
1480
+ },
1481
+ thead() {
1482
+ let table = [
1483
+ {
1484
+ title: '步骤',
1485
+ align: 'center',
1486
+ width: this.theadWidth.nodeName || '100',
1487
+ field: 'nodeName'
1488
+ },
1489
+ {
1490
+ title: '预设办理人',
1491
+ width: this.theadWidth.presetUserName || '120',
1492
+ align: 'center',
1493
+ field: 'presetUserName'
1494
+ },
1495
+ {
1496
+ title: '是否可编辑',
1497
+ key: 'sfkbj',
1498
+ align: 'center',
1499
+ width: this.theadWidth.isEdit || '100',
1500
+ render: (h, params) => {
1501
+ return h('span', this.getCodeValue(params.row.isEdit, 'is_edit'));
1502
+ },
1503
+ field: 'isEdit'
1504
+ },
1505
+ {
1506
+ key: 'zt',
1507
+ title: '状态',
1508
+ width: this.theadWidth.statusName || '80',
1509
+ align: 'center',
1510
+ field: 'statusName'
1511
+ },
1512
+ {
1513
+ title: '预设类型',
1514
+ key: 'yslx',
1515
+ width: this.theadWidth.presetType || '120',
1516
+ align: 'center',
1517
+ render: (h, params) => {
1518
+ return h(
1519
+ 'span',
1520
+ this.getCodeValue(params.row.presetType, 'preset_type')
1521
+ );
1522
+ },
1523
+ field: 'presetType'
1524
+ },
1525
+ {
1526
+ title: '流程名称',
1527
+ key: 'lcmc',
1528
+ width: this.theadWidth.processDefName,
1529
+ align: 'center',
1530
+ field: 'processDefName'
1531
+ },
1532
+ {
1533
+ title: '上一步骤',
1534
+ key: 'sybz',
1535
+ align: 'center',
1536
+ width: this.theadWidth.lastNodeName,
1537
+ field: 'lastNodeName'
1538
+ },
1539
+ {
1540
+ title: '创建步骤',
1541
+ key: 'cjbz',
1542
+ align: 'center',
1543
+ width: this.theadWidth.operationNodeName,
1544
+ field: 'operationNodeName'
1545
+ },
1546
+ {
1547
+ title: '创建人',
1548
+ key: 'cjr',
1549
+ width: this.theadWidth.creatorName || '120',
1550
+ align: 'center',
1551
+ field: 'creatorName'
1552
+ },
1553
+ {
1554
+ title: '创建时间',
1555
+ width: this.theadWidth.createTime || '150',
1556
+ key: 'cjsj',
1557
+ align: 'center',
1558
+ render: (h, params) => {
1559
+ return h(
1560
+ 'span',
1561
+ util.formatDate(params.row.createTime, 'yyyy-MM-dd HH:mm')
1562
+ );
1563
+ },
1564
+ field: 'createTime'
1565
+ },
1566
+ {
1567
+ title: '操作区域',
1568
+ type: 'handle',
1569
+ align: 'center',
1570
+ width: '120',
1571
+ events: [
1572
+ {
1573
+ text: '置为失效'
1574
+ }
1575
+ ]
1576
+ }
1577
+ ];
1578
+ if (
1579
+ this.presetInfoListHiddenColumns != undefined &&
1580
+ this.presetInfoListHiddenColumns != ''
1581
+ ) {
1582
+ table = table.filter(
1583
+ (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
1584
+ );
1585
+ }
1586
+ if (!this.canDelete) table.splice(table.length - 1, 1);
1587
+ return table;
1588
+ }
1589
+ },
1590
+ async mounted() {
1591
+ this.loading = util.loading(this.$loading, '加载中...');
1592
+ if (this.contents.indexOf('readingSituation') != -1) {
1593
+ await this.getFyListJson(1);
1594
+ await this.getFyListJson(2);
1595
+ this.getListCount(this.flowListCount);
1596
+ this.show = true;
1597
+ } else {
1598
+ this.getFlowList();
1599
+ }
1600
+ this.getSysInfo('preset_type');
1601
+ this.getSysInfo('is_edit');
1602
+ this.getListInfo();
1603
+ },
1604
+
1605
+ methods: {
1606
+ /**
1607
+ * handleBatchDelete
1608
+ * @desc:批量删除
1609
+ * @author liufan
1610
+ * @date 2025年12月31日
1611
+ **/
1612
+ handleBatchDelete(){
1613
+ if(this.batchDeleteSelectList.length == 0){
1614
+ this.$message.error('请选择需要删除的流程历史数据!');
1615
+ return;
1616
+ }
1617
+ if(!this.batchdeletereason){
1618
+ this.$message.error('请输入批量删除的原因!');
1619
+ return;
1620
+ }
1621
+ let ids = this.batchDeleteSelectList.map(item => item.id).join(',');
1622
+ let params = {
1623
+ url:batchDelete,
1624
+ method: 'POST',
1625
+ data: { ids,reason:this.batchdeletereason }
1626
+ };
1627
+ console.log(params);
1628
+ this.$confirm('您确定要批量删除勾选上的流程历史数据吗?', {
1629
+ confirmButtonText: '确定',
1630
+ cancelButtonText: '取消',
1631
+ type: 'warning'
1632
+ })
1633
+ .then(() => {
1634
+ this.loading = util.loading(this.$loading, '批量删除中...');
1635
+ util
1636
+ .ajax(params)
1637
+ .then((res) => {
1638
+ this.loading.close();
1639
+ if (res.rCode == 0 || res.status == 'success') {
1640
+ this.flowData = this.flowData.filter(item => ids.indexOf(item.id) == -1);
1641
+ this.batchdeleteTableList = this.flowData.filter((x) => x.pendstate == 2)
1642
+ this.batchdeletereason='';
1643
+ this.show = false
1644
+ setTimeout(() => {
1645
+ this.show = true;
1646
+ }, 0);
1647
+ this.$message({
1648
+ message: '删除成功',
1649
+ type: 'success'
1650
+ });
1651
+ }else{
1652
+ this.$message.error(res.message);
1653
+ }
1654
+ })
1655
+ .catch((err) => {
1656
+ this.loading.close();
1657
+ if (err.message && err.message !== 'canceled') {
1658
+ this.$message.error(err.message);
1659
+ }
1660
+ }); }).catch(() => {});
1661
+
1662
+
1663
+ },
1664
+ handleBtnShowClick(val) {
1665
+ const { handle, row } = val;
1666
+ if (handle.text == '恢复') {
1667
+ let params = {
1668
+ url: restoredHistory,
1669
+ params: {
1670
+ id: row.id
1671
+ }
1672
+ };
1673
+ this.$confirm('您确定要恢复这条办理历史吗?', {
1674
+ confirmButtonText: '确定',
1675
+ cancelButtonText: '取消',
1676
+ type: 'warning'
1677
+ })
1678
+ .then(() => {
1679
+ this.loading = util.loading(this.$loading, '恢复中...');
1680
+ util.ajax(params).then((res) => {
1681
+ this.loading.close();
1682
+ if (res.rCode == 0 || res.status == 'success') {
1683
+ this.getDeletList();
1684
+ this.getFlowList();
1685
+ this.$message({
1686
+ message: '恢复成功',
1687
+ type: 'success'
1688
+ });
1689
+ }
1690
+ });
1691
+ // _that.subMit(res.results,type)
1692
+ })
1693
+ .catch(() => {});
1694
+ }
1695
+ },
1696
+ recallReadFun() {
1697
+ const _that = this;
1698
+ let pendingIds = _that.selectList.map((x) => x.id).join(',');
1699
+ let params = {
1700
+ url: taskReadWithDraw,
1701
+ params: {
1702
+ pendingIds
1703
+ }
1704
+ };
1705
+ _that.loading = util.loading(_that.$loading, '撤销中...');
1706
+ util.ajax(params).then(async (res) => {
1707
+ _that.loading.close();
1708
+ if (res.rCode == 0 || res.status == 'success') {
1709
+ _that.$message.success('撤销成功!');
1710
+ await _that.getFyListJson(1);
1711
+ _that.getListCount(_that.flowListCount);
1712
+ } else {
1713
+ _that.$message.error(res.message);
1714
+ }
1715
+ });
1716
+ },
1717
+ recallRead() {
1718
+ if (this.selectList.length == 0)
1719
+ return this.$message.warning('请选择需要撤销的分阅');
1720
+ this.$confirm('是否确认撤销选中的分阅?', '提示', {
1721
+ confirmButtonText: '确定',
1722
+ cancelButtonText: '取消',
1723
+ type: 'warning'
1724
+ }).then(() => {
1725
+ this.recallReadFun();
1726
+ });
1727
+ },
1728
+ handleSelectionChange(val,type) {
1729
+ if(type == 'batchDelete'){
1730
+ this.batchDeleteSelectList = val
1731
+ console.log(this.batchDeleteSelectList,'this.batchDeleteSelectList')
1732
+ }else{
1733
+ this.selectList = val;
1734
+ }
1735
+ },
1736
+ handledraw(pendedHistoryId) {
1737
+ let params = {
1738
+ url: circularReadWithdraw,
1739
+ params: { pendedHistoryId }
1740
+ };
1741
+ this.$confirm('是否确定撤回当前传阅', {
1742
+ confirmButtonText: '确定',
1743
+ cancelButtonText: '取消',
1744
+ type: 'warning'
1745
+ })
1746
+ .then(() => {
1747
+ this.loading = util.loading(this.$loading, '撤回中...');
1748
+ util.ajax(params).then((res) => {
1749
+ this.loading.close();
1750
+ if (res.rCode == 0) {
1751
+ this.$message({
1752
+ message: '撤回成功',
1753
+ type: 'success'
1754
+ });
1755
+ this.getCircularReadList();
1756
+ }
1757
+ });
1758
+ // _that.subMit(res.results,type)
1759
+ })
1760
+ .catch(() => {});
1761
+ },
1762
+ getCircularReadList() {
1763
+ const _that = this;
1764
+ let params = {
1765
+ url: pendedhistoryListWithCircularReadJson,
1766
+ params: { apprecordid: _that.businessId }
1767
+ };
1768
+ util.ajax(params).then((res) => {
1769
+ if (res.status == 'success' || res.rCode == 0) {
1770
+ _that.circularData = res.data.fyHistoryList;
1771
+ _that.circularData.map((x, i) => {
1772
+ x.sort = i + 1;
1773
+ });
1774
+ _that.hasCircularReadWithdrawAuthority =
1775
+ res.data.hasCircularReadWithdrawAuthority;
1776
+ _that.$nextTick(() => {
1777
+ _that.getListCount(_that.flowListCount);
1778
+ });
1779
+ }
1780
+ });
1781
+ },
1782
+ returnData(type) {
1783
+ switch (type) {
1784
+ case 'preset':
1785
+ this.flowListCount.preset = this.presetData.length;
1786
+ this.flowListCount.presetData = this.presetData;
1787
+ return this.presetData;
1788
+ case 'sign':
1789
+ this.flowListCount.sign = this.signData.length;
1790
+ this.flowListCount.signData = this.signData;
1791
+ return this.signData;
1792
+ case 'splitReading':
1793
+ this.flowListCount.splitReading = this.splitReadingData.length;
1794
+ this.flowListCount.splitReadingData = this.splitReadingData;
1795
+ return this.splitReadingData;
1796
+ case 'circular':
1797
+ this.flowListCount.circular = this.circularData.length;
1798
+ this.flowListCount.circularData = this.circularData;
1799
+ return this.circularData;
1800
+ case 'untreatedRead':
1801
+ this.flowListCount.untreatedRead = this.untreatedReadData.length;
1802
+ this.flowListCount.untreatedReadData = this.untreatedReadData;
1803
+ return this.untreatedReadData;
1804
+ case 'processedRead':
1805
+ this.flowListCount.processedRead = this.processedReadData.length;
1806
+ this.flowListCount.processedReadData = this.processedReadData;
1807
+ return this.processedReadData;
1808
+ default:
1809
+ this.flowListCount.flow = this.flowData.length;
1810
+ this.flowListCount.flowData = this.flowData;
1811
+ return this.flowData;
1812
+ }
1813
+ },
1814
+ handleCellClick(row, column) {
1815
+ if (column.property == 'hasAdjunct' && row.hasAdjunct) {
1816
+ this.showFile(row.wfpendingid);
1817
+ } else if (column.property == 'pressTimes') {
1818
+ if (row.pressTimes != 0) {
1819
+ this.goPress(row.id);
1820
+ }
1821
+ } else if (
1822
+ column.property == 'pendstate' &&
1823
+ this.hasCircularReadWithdrawAuthority
1824
+ ) {
1825
+ this.handledraw(row.id);
1826
+ }
1827
+ },
1828
+ handleBtnClick(data) {
1829
+ // recallRead
1830
+ const { handle, row } = data;
1831
+ if (handle.text == '删除' || handle.text == '修改') {
1832
+ this.formData.reason = handle.text == '修改' ? row.doresult : '';
1833
+ this.del(row.id, handle.text == '删除' ? 'del' : 'modify');
1834
+ } else if (handle.fun == 'recallRead') {
1835
+ this[handle.fun]();
1836
+ }
1837
+ },
1838
+ /**
1839
+ * handleFormSubmit
1840
+ * @desc:删除节点点击事件
1841
+ * @param {Object} formData 点击删除的form数据
1842
+ * @author liufan
1843
+ * @date 2022年11月29日
1844
+ **/
1845
+ handleFormSubmit(formData) {
1846
+ this.delLoading = true;
1847
+ let params = {
1848
+ url: this.modalType == 'del' ? deleteFlow : modifyFlow,
1849
+ method: 'POST',
1850
+ data: { id: this.historyId, reason: formData.reason }
1851
+ };
1852
+ if (this.modalType != 'del') {
1853
+ delete params.data.reason;
1854
+ params.data.doResult = formData.reason;
1855
+ params.data.doresult = formData.reason;
1856
+ }
1857
+ util
1858
+ .ajax(params)
1859
+ .then((res) => {
1860
+ const { status, message } = res;
1861
+ this.delLoading = false;
1862
+ if (status === 'success') {
1863
+ this.$message.success(
1864
+ `${this.modalType == 'del' ? '删除' : '修改'}成功`
1865
+ );
1866
+ this.showDel = false;
1867
+ this.handleChange();
1868
+ } else {
1869
+ this.$message.error(message || '系统错误,请联系管理员!');
1870
+ }
1871
+ })
1872
+ .catch((err) => {
1873
+ this.delLoading = false;
1874
+ if (err.message && err.message !== 'canceled') {
1875
+ this.$message.error(err.message);
1876
+ }
1877
+ });
1878
+ },
1879
+ /**
1880
+ * del
1881
+ * @desc:展示删除弹窗
1882
+ * @param {String} id 当前点击数据id
1883
+ * @author liufan
1884
+ * @date 2022年11月29日
1885
+ **/
1886
+ del(id, type) {
1887
+ this.modalType = type;
1888
+ this.historyId = id;
1889
+ this.showDel = true;
1890
+ },
1891
+ /**
1892
+ * handleCurrentChange
1893
+ * @desc:监听页码变化
1894
+ * @param {String} val 当前页
1895
+ * @author liufan
1896
+ * @date 2022年11月29日
1897
+ **/
1898
+ handleCurrentChange(val, type) {
1899
+ this.currentPage = val;
1900
+ if (type == 'press') {
1901
+ this.getPressList();
1902
+ }
1903
+ },
1904
+ /**
1905
+ * handleSizeChange
1906
+ * @desc:监听每页数据显示数量变化
1907
+ * @param {String} val 每页展示数量
1908
+ * @author liufan
1909
+ * @date 2022年11月29日
1910
+ **/
1911
+ handleSizeChange(val) {
1912
+ this.pageSize = val;
1913
+ if (type == 'press') {
1914
+ this.getPressList();
1915
+ }
1916
+ },
1917
+ /**
1918
+ * sortChange
1919
+ * @desc:监听排序变化
1920
+ * @param {Object} info 需要排序的字段及排序方式
1921
+ * @author liufan
1922
+ * @date 2022年11月29日
1923
+ **/
1924
+ sortChange(info, type) {
1925
+ console.log(info);
1926
+ let { prop } = info;
1927
+ this.sidx = prop;
1928
+ this.sord = this.sord == 'asc' ? 'desc' : 'asc';
1929
+ if (type == 'press') {
1930
+ this.getPressList();
1931
+ } else if (type == 'reset') {
1932
+ this.getResetList();
1933
+ } else if (type == 'delete') {
1934
+ this.getDeletList();
1935
+ }
1936
+ },
1937
+ /**
1938
+ * getDeletList
1939
+ * @desc:删除列表数据
1940
+ * @author liufan
1941
+ * @date 2025年12月30日
1942
+ **/
1943
+ getDeletList() {
1944
+ const { pageSize, sidx, sord, currentPage, businessId } = this;
1945
+ this.deleteLoading = true;
1946
+ let params = {
1947
+ url: deletedListJson + '?apprecordId=' + businessId,
1948
+ method: 'POST',
1949
+ data: { page: currentPage, rows: pageSize, sidx, sord }
1950
+ };
1951
+ util
1952
+ .ajax(params)
1953
+ .then((res) => {
1954
+ this.deleteTableList = res.data;
1955
+ this.total = res.totalrecords;
1956
+ this.deleteLoading = false;
1957
+ })
1958
+ .catch((err) => {
1959
+ this.deleteLoading = false;
1960
+ if (err.message && err.message !== 'canceled') {
1961
+ this.$message.error(err.message);
1962
+ }
1963
+ });
1964
+ },
1965
+ /**
1966
+ * getResetList
1967
+ * @desc:重设列表数据
1968
+ * @author liufan
1969
+ * @date 2025年12月30日
1970
+ **/
1971
+ getResetList() {
1972
+ const { pageSize, sidx, sord, currentPage, businessId } = this;
1973
+ this.resetLoading = true;
1974
+ let params = {
1975
+ url: resetJson + '?appRecordId=' + businessId,
1976
+ params: { appRecordId: businessId },
1977
+ method: 'POST',
1978
+ data: { page: currentPage, rows: pageSize, sidx, sord }
1979
+ };
1980
+ util
1981
+ .ajax(params)
1982
+ .then((res) => {
1983
+ this.resetTableList = res.data;
1984
+ this.total = res.totalrecords;
1985
+ this.resetLoading = false;
1986
+ })
1987
+ .catch((err) => {
1988
+ this.resetLoading = false;
1989
+ if (err.message && err.message !== 'canceled') {
1990
+ this.$message.error(err.message);
1991
+ }
1992
+ });
1993
+ },
1994
+ /**
1995
+ * getPressList
1996
+ * @desc:催办列表数据
1997
+ * @author liufan
1998
+ * @date 2022年11月29日
1999
+ **/
2000
+ getPressList() {
2001
+ const { historyId, pageSize, sidx, sord, currentPage } = this;
2002
+ this.pressLoading = true;
2003
+ let params = {
2004
+ url: pressListJson,
2005
+ params: { historyId },
2006
+ method: 'POST',
2007
+ data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
2008
+ };
2009
+ util
2010
+ .ajax(params)
2011
+ .then((res) => {
2012
+ this.pressTableList = res.data;
2013
+ this.total = res.totalrecords;
2014
+ this.pressLoading = false;
2015
+ })
2016
+ .catch((err) => {
2017
+ this.pressLoading = false;
2018
+ if (err.message && err.message !== 'canceled') {
2019
+ this.$message.error(err.message);
2020
+ }
2021
+ });
2022
+ },
2023
+ /**
2024
+ * goPress
2025
+ * @desc:催办列表查看
2026
+ * @param {String} id 催办列表id
2027
+ * @author liufan
2028
+ * @date 2022年11月29日
2029
+ **/
2030
+ goPress(id) {
2031
+ this.historyId = id;
2032
+ this.showPress = true;
2033
+ this.getPressList();
2034
+ },
2035
+ /**
2036
+ * showFile
2037
+ * @desc:附件查看
2038
+ * @param {String} ownId 附件id
2039
+ * @author liufan
2040
+ * @date 2022年11月29日
2041
+ **/
2042
+ showFile(ownId) {
2043
+ this.wfpendingid = ownId;
2044
+ this.showFileList = true;
2045
+ },
2046
+ /**
2047
+ * handleChange
2048
+ * @desc:切换排序方式
2049
+ * @author liufan
2050
+ * @date 2022年11月22日
2051
+ **/
2052
+ handleChange(key, value) {
2053
+ if (value) {
2054
+ this[key] = value;
2055
+ }
2056
+ // this.show = false;
2057
+ this.loading = util.loading(this.$loading, '加载中...');
2058
+ this.getFlowList();
2059
+ },
2060
+ async getFyListJson(type) {
2061
+ let params = {
2062
+ url: fyListJson,
2063
+ params: {
2064
+ appRecordId: this.businessId,
2065
+ status: type
2066
+ }
2067
+ };
2068
+ await util.ajax(params).then((res) => {
2069
+ if (type == 1) {
2070
+ this.untreatedReadData = res.data;
2071
+ this.untreatedReadData.map((x, i) => {
2072
+ x.sort = i + 1;
2073
+ });
2074
+ } else {
2075
+ this.processedReadData = res.data;
2076
+ this.processedReadData.map((x, i) => {
2077
+ x.sort = i + 1;
2078
+ });
2079
+ }
2080
+ });
2081
+ },
2082
+ /**
2083
+ * getFlowList
2084
+ * @desc:获取流程列表
2085
+ * @author liufan
2086
+ * @date 2022年11月22日
2087
+ **/
2088
+ getFlowList(type) {
2089
+ let params = {
2090
+ url: pendedhistoryListJson,
2091
+ params: {
2092
+ apprecordid: this.businessId,
2093
+ pendingAttr: 0,
2094
+ viewType: type || this.viewType,
2095
+ showSuggest: this.showSuggest,
2096
+ ...this.params
2097
+ }
2098
+ };
2099
+ util
2100
+ .ajax(params)
2101
+ .then((res) => {
2102
+ let {
2103
+ status,
2104
+ message,
2105
+ data: {
2106
+ adjunctCode,
2107
+ wfHistoryList,
2108
+ fyHistoryList,
2109
+ hasAgent,
2110
+ isShort,
2111
+ modify,
2112
+ canDelete,
2113
+ canBatchDelete,
2114
+ isSuperRole,
2115
+ isShowReset,
2116
+ taskReadName
2117
+ }
2118
+ } = res;
2119
+ this.loading.close();
2120
+ if (status == 'success') {
2121
+ this.flowTableInfo.adjunctCode = adjunctCode;
2122
+ this.flowTableInfo.hasAgent = hasAgent;
2123
+ this.attachmentPaperClipCssStyle =
2124
+ res.data.attachmentPaperClipCssStyle;
2125
+ this.isShort = isShort;
2126
+ this.taskReadName = taskReadName;
2127
+ this.flowData = wfHistoryList;
2128
+ this.flowData.map((x, i) => {
2129
+ x.sort = i + 1;
2130
+ if (!x.deptid) {
2131
+ x.deptid = x.deptName;
2132
+ }
2133
+ });
2134
+ this.splitReadingData = fyHistoryList;
2135
+ this.splitReadingData.map((x, i) => {
2136
+ x.sort = i + 1;
2137
+ });
2138
+ this.modify = modify;
2139
+ this.canDelete = canDelete;
2140
+ this.canBatchDelete = canBatchDelete;
2141
+ this.isSuperRole = isSuperRole;
2142
+ this.isShowReset = isShowReset;
2143
+ this.show = true;
2144
+ if (this.height == 'auto') {
2145
+ this.$nextTick(() => {
2146
+ this.content.map((x) => {
2147
+ this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
2148
+ });
2149
+ });
2150
+ }
2151
+ if (this.contents.indexOf('circular') != -1) {
2152
+ this.getCircularReadList();
2153
+ } else {
2154
+ this.$nextTick(() => {
2155
+ this.getListCount(this.flowListCount);
2156
+ });
2157
+ }
2158
+ } else {
2159
+ this.$message.error(message || '系统错误,请联系管理员!');
2160
+ }
2161
+ })
2162
+ .catch((err) => {
2163
+ this.loading.close();
2164
+ if (err.message && err.message !== 'canceled') {
2165
+ this.$message.error(err.message);
2166
+ }
2167
+ this.show = true;
2168
+ });
2169
+ },
2170
+ /**
2171
+ * handleClick
2172
+ * @desc:表单点击事件
2173
+ * @param {Object} val 当前点击行数据及按钮
2174
+ * @author liufan
2175
+ * @date 2022年11月10日
2176
+ **/
2177
+ handleClick(val) {
2178
+ const {
2179
+ handle: { text },
2180
+ row: { id, status }
2181
+ } = val;
2182
+ if (text === '置为失效') {
2183
+ if (status == 0) {
2184
+ this.$confirm('您确定要置为失效吗?')
2185
+ .then(() => {
2186
+ this.loading = util.loading(this.$loading, '提交中...');
2187
+ let param = {
2188
+ url: deletePresetInfo,
2189
+ headers: { Accept: 'application/json,text/plain' },
2190
+ method: 'post',
2191
+ params: { id }
2192
+ };
2193
+ util
2194
+ .ajax(param)
2195
+ .then((res) => {
2196
+ const { status, message } = res;
2197
+ this.loading.close();
2198
+ if (status === 'success') {
2199
+ this.$message.success('操作成功');
2200
+ this.getListInfo();
2201
+ } else {
2202
+ this.$message.error(message || '系统错误,请联系管理员!');
2203
+ }
2204
+ })
2205
+ .catch((err) => {
2206
+ this.loading.close();
2207
+ if (err.message && err.message !== 'canceled') {
2208
+ this.$message.error(err.message);
2209
+ }
2210
+ });
2211
+ })
2212
+ .catch((e) => {
2213
+ // on cancel
2214
+ });
2215
+ } else {
2216
+ this.$message.warning('当前数据已为失效状态');
2217
+ }
2218
+ }
2219
+ },
2220
+ /**
2221
+ * getCodeValue
2222
+ * @desc:获取代码表过滤后的值
2223
+ * @param {String} value 展示数据的代码值
2224
+ * @param {String} type 代码表类型
2225
+ * @author liufan
2226
+ * @date 2022年11月10日
2227
+ **/
2228
+ getCodeValue(value, type) {
2229
+ let val = this[type].filter((item) => item.cciValue == value);
2230
+ return val[0].shortName;
2231
+ },
2232
+ /**
2233
+ * getSysInfo
2234
+ * @desc:获取代码表
2235
+ * @param {String} code 编码code值
2236
+ * @author liufan
2237
+ * @date 2022年11月10日
2238
+ **/
2239
+ getSysInfo(code) {
2240
+ let params = {
2241
+ url: findCodeValues,
2242
+ params: { ccCode: code }
2243
+ };
2244
+ util
2245
+ .ajax(params)
2246
+ .then((res) => {
2247
+ const { status, message, data } = res;
2248
+ if (status == 'success') {
2249
+ this[code] = data;
2250
+ } else {
2251
+ this.$message.error(message || '系统错误,请联系管理员!');
2252
+ }
2253
+ })
2254
+ .catch((e) => {});
2255
+ },
2256
+ /**
2257
+ * getListInfo
2258
+ * @desc:获取预设列表数据
2259
+ * @author liufan
2260
+ * @date 2022年11月10日
2261
+ **/
2262
+ getListInfo() {
2263
+ let param = {
2264
+ url: toPresetInfoListIndex,
2265
+ params: { apprecordid: this.businessId }
2266
+ };
2267
+ util
2268
+ .ajax(param)
2269
+ .then((res) => {
2270
+ let {
2271
+ status,
2272
+ message,
2273
+ data: {
2274
+ presetInfoList,
2275
+ presetInfoListHiddenColumns,
2276
+ canDelete,
2277
+ currentUserHasPresetInfoAuth
2278
+ }
2279
+ } = res;
2280
+ this.loading.close();
2281
+ if (status == 'success') {
2282
+ if (presetInfoList) {
2283
+ this.presetData = presetInfoList;
2284
+ this.presetData.map((x, i) => {
2285
+ x.sort = i + 1;
2286
+ });
2287
+ }
2288
+ this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
2289
+ this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
2290
+ this.canDelete = canDelete;
2291
+ } else {
2292
+ this.$message.error(message || '系统错误,请联系管理员!');
2293
+ }
2294
+ })
2295
+ .catch((err) => {
2296
+ this.loading.close();
2297
+ if (err.message && err.message !== 'canceled') {
2298
+ this.$message.error(err.message);
2299
+ }
2300
+ });
2301
+ }
2302
+ }
2303
+ };
2304
+ </script>
2305
+
2306
+ <style></style>