eoss-ui 0.7.53 → 0.7.55

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 (306) hide show
  1. package/lib/button-group.js +2 -2
  2. package/lib/button.js +2 -2
  3. package/lib/calogin.js +235 -235
  4. package/lib/checkbox-group.js +2 -2
  5. package/lib/config/api.js +1 -1
  6. package/lib/data-table-form.js +2 -2
  7. package/lib/data-table.js +2 -2
  8. package/lib/date-picker.js +2 -2
  9. package/lib/dialog.js +2 -2
  10. package/lib/eoss-ui.common.js +882 -795
  11. package/lib/flow-group.js +2 -2
  12. package/lib/flow-list.js +83 -83
  13. package/lib/flow.js +294 -292
  14. package/lib/form.js +2 -2
  15. package/lib/handle-user.js +2 -2
  16. package/lib/handler.js +2 -2
  17. package/lib/icon.js +2 -2
  18. package/lib/icons.js +1 -1
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +2 -2
  21. package/lib/input.js +2 -2
  22. package/lib/login.js +6 -6
  23. package/lib/main.js +238 -153
  24. package/lib/nav.js +2 -2
  25. package/lib/notify.js +2 -2
  26. package/lib/page.js +2 -2
  27. package/lib/pagination.js +2 -2
  28. package/lib/player.js +2 -2
  29. package/lib/qr-code.js +15 -15
  30. package/lib/radio-group.js +2 -2
  31. package/lib/retrial-auth.js +2 -2
  32. package/lib/select-ganged.js +2 -2
  33. package/lib/select.js +2 -2
  34. package/lib/selector-panel.js +2 -2
  35. package/lib/selector.js +2 -2
  36. package/lib/sizer.js +2 -2
  37. package/lib/steps.js +2 -2
  38. package/lib/switch.js +2 -2
  39. package/lib/table-form.js +2 -2
  40. package/lib/tabs.js +2 -2
  41. package/lib/theme-chalk/base.css +1 -1
  42. package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
  43. package/lib/theme-chalk/fonts/iconfont.woff +0 -0
  44. package/lib/theme-chalk/icon.css +1 -1
  45. package/lib/theme-chalk/index.css +1 -1
  46. package/lib/theme-chalk/main.css +1 -1
  47. package/lib/theme-chalk/menu.css +1 -1
  48. package/lib/theme-chalk/simplicity.css +1 -1
  49. package/lib/theme-chalk/sizer.css +1 -1
  50. package/lib/theme-chalk/upload.css +1 -1
  51. package/lib/tips.js +2 -2
  52. package/lib/tree-group.js +2 -2
  53. package/lib/tree.js +2 -2
  54. package/lib/upload.js +15 -15
  55. package/lib/wujie.js +2 -2
  56. package/lib/wxlogin.js +2 -2
  57. package/package.json +160 -160
  58. package/packages/.DS_Store +0 -0
  59. package/packages/button/index.js +5 -5
  60. package/packages/button/src/main.vue +418 -418
  61. package/packages/button-group/index.js +5 -5
  62. package/packages/button-group/src/main.vue +346 -346
  63. package/packages/calendar/index.js +5 -5
  64. package/packages/calogin/.DS_Store +0 -0
  65. package/packages/calogin/index.js +5 -5
  66. package/packages/calogin/src/main.vue +412 -412
  67. package/packages/calogin/src/plugin.js +915 -915
  68. package/packages/card/index.js +5 -5
  69. package/packages/card/src/main.vue +156 -156
  70. package/packages/cascader/index.js +5 -5
  71. package/packages/cascader/src/main.vue +168 -168
  72. package/packages/checkbox-group/index.js +5 -5
  73. package/packages/checkbox-group/src/main.vue +333 -333
  74. package/packages/clients/index.js +5 -5
  75. package/packages/clients/src/main.vue +151 -151
  76. package/packages/data-table/index.js +5 -5
  77. package/packages/data-table/src/children.vue +39 -39
  78. package/packages/data-table/src/column.vue +992 -992
  79. package/packages/data-table/src/main.vue +1840 -1840
  80. package/packages/data-table/src/sizer.vue +195 -195
  81. package/packages/data-table-form/index.js +5 -5
  82. package/packages/data-table-form/src/checkbox.vue +101 -101
  83. package/packages/data-table-form/src/colgroup.vue +17 -17
  84. package/packages/data-table-form/src/main.vue +181 -181
  85. package/packages/data-table-form/src/radio.vue +65 -65
  86. package/packages/data-table-form/src/table.vue +233 -233
  87. package/packages/data-table-form/src/tbody.vue +336 -336
  88. package/packages/data-table-form/src/thead.vue +68 -68
  89. package/packages/date-picker/.DS_Store +0 -0
  90. package/packages/date-picker/index.js +5 -5
  91. package/packages/date-picker/src/.DS_Store +0 -0
  92. package/packages/date-picker/src/main.vue +236 -236
  93. package/packages/dialog/.DS_Store +0 -0
  94. package/packages/dialog/index.js +5 -5
  95. package/packages/enable-drag/index.js +5 -5
  96. package/packages/enterprise/index.js +5 -5
  97. package/packages/enterprise/src/main.vue +66 -66
  98. package/packages/error-page/index.js +5 -5
  99. package/packages/error-page/src/main.vue +44 -44
  100. package/packages/flow/.DS_Store +0 -0
  101. package/packages/flow/index.js +5 -5
  102. package/packages/flow/src/.DS_Store +0 -0
  103. package/packages/flow/src/component/Circulate.vue +413 -413
  104. package/packages/flow/src/component/CommonOpinions.vue +373 -373
  105. package/packages/flow/src/component/CustomPreset.vue +322 -322
  106. package/packages/flow/src/component/FileList.vue +97 -97
  107. package/packages/flow/src/component/FreeCirculation.vue +241 -240
  108. package/packages/flow/src/component/Preset.vue +255 -255
  109. package/packages/flow/src/component/SendMsg.vue +242 -242
  110. package/packages/flow/src/component/TimeLimit.vue +190 -190
  111. package/packages/flow/src/component/taskUnionExamine.vue +756 -756
  112. package/packages/flow/src/form.vue +121 -121
  113. package/packages/flow/src/freeStartFlow.vue +2846 -2846
  114. package/packages/flow/src/main.vue +3878 -3878
  115. package/packages/flow/src/processForm.vue +1365 -1365
  116. package/packages/flow/src/processReject.vue +309 -309
  117. package/packages/flow/src/reset.vue +942 -942
  118. package/packages/flow/src/startTaskRead.vue +692 -692
  119. package/packages/flow/src/supervise.vue +159 -159
  120. package/packages/flow/src/table.vue +58 -58
  121. package/packages/flow-group/index.js +5 -5
  122. package/packages/flow-group/src/main.vue +717 -717
  123. package/packages/flow-list/.DS_Store +0 -0
  124. package/packages/flow-list/index.js +5 -5
  125. package/packages/flow-list/src/main.vue +1801 -1801
  126. package/packages/form/.DS_Store +0 -0
  127. package/packages/form/index.js +5 -5
  128. package/packages/form/src/main.vue +3901 -3901
  129. package/packages/form/src/table.vue +1512 -1512
  130. package/packages/handle-user/index.js +5 -5
  131. package/packages/handle-user/src/main.vue +137 -137
  132. package/packages/handler/index.js +5 -5
  133. package/packages/handler/src/main.vue +496 -496
  134. package/packages/icon/.DS_Store +0 -0
  135. package/packages/icon/index.js +5 -5
  136. package/packages/icon/src/main.vue +104 -104
  137. package/packages/icons/index.js +5 -5
  138. package/packages/icons/src/icon.json +1 -1
  139. package/packages/icons/src/main.vue +81 -81
  140. package/packages/input/index.js +5 -5
  141. package/packages/input/src/main.vue +356 -356
  142. package/packages/input-number/index.js +5 -5
  143. package/packages/input-number/src/main.vue +106 -106
  144. package/packages/label/index.js +5 -5
  145. package/packages/label/src/main.vue +457 -457
  146. package/packages/layout/index.js +5 -5
  147. package/packages/layout/src/item.vue +152 -152
  148. package/packages/layout/src/main.vue +31 -31
  149. package/packages/login/.DS_Store +0 -0
  150. package/packages/login/index.js +5 -5
  151. package/packages/login/src/main.vue +2082 -2082
  152. package/packages/login/src/resetPassword.vue +557 -557
  153. package/packages/main/.DS_Store +0 -0
  154. package/packages/main/index.js +5 -5
  155. package/packages/main/src/.DS_Store +0 -0
  156. package/packages/main/src/default/message.vue +249 -249
  157. package/packages/main/src/default/notice.vue +157 -157
  158. package/packages/main/src/default/userinfo.vue +503 -503
  159. package/packages/main/src/public/online.vue +89 -89
  160. package/packages/main/src/public/search.vue +464 -464
  161. package/packages/main/src/public/settings.vue +227 -227
  162. package/packages/main/src/simplicity/apps.vue +388 -388
  163. package/packages/main/src/simplicity/avatar.vue +82 -82
  164. package/packages/main/src/simplicity/handler.vue +160 -160
  165. package/packages/main/src/simplicity/index.vue +2307 -2277
  166. package/packages/main/src/simplicity/lists.vue +84 -84
  167. package/packages/main/src/simplicity/menu-list.vue +135 -135
  168. package/packages/main/src/simplicity/message.vue +293 -293
  169. package/packages/main/src/simplicity/notice.vue +222 -222
  170. package/packages/main/src/simplicity/router-page.vue +45 -45
  171. package/packages/main/src/simplicity/sub-menu.vue +274 -274
  172. package/packages/main/src/simplicity/user.vue +259 -259
  173. package/packages/main/src/simplicity/userinfo.vue +401 -401
  174. package/packages/menu/.DS_Store +0 -0
  175. package/packages/menu/index.js +5 -5
  176. package/packages/menu/src/main.vue +595 -595
  177. package/packages/nav/index.js +5 -5
  178. package/packages/nav/src/main.vue +351 -351
  179. package/packages/notify/index.js +5 -5
  180. package/packages/notify/src/main.vue +538 -538
  181. package/packages/page/index.js +5 -5
  182. package/packages/page/src/main.vue +167 -167
  183. package/packages/pagination/index.js +5 -5
  184. package/packages/pagination/src/main.vue +96 -96
  185. package/packages/player/index.js +5 -5
  186. package/packages/player/src/main.vue +194 -194
  187. package/packages/qr-code/index.js +5 -5
  188. package/packages/qr-code/src/main.vue +170 -170
  189. package/packages/radio-group/index.js +6 -6
  190. package/packages/radio-group/src/main.vue +319 -319
  191. package/packages/retrial-auth/index.js +5 -5
  192. package/packages/retrial-auth/src/main.vue +280 -280
  193. package/packages/select/.DS_Store +0 -0
  194. package/packages/select/index.js +5 -5
  195. package/packages/select/src/main.vue +782 -782
  196. package/packages/select-ganged/index.js +5 -5
  197. package/packages/select-ganged/src/main.vue +724 -724
  198. package/packages/selector/.DS_Store +0 -0
  199. package/packages/selector/index.js +5 -5
  200. package/packages/selector/src/main.vue +761 -761
  201. package/packages/selector-panel/.DS_Store +0 -0
  202. package/packages/selector-panel/index.js +5 -5
  203. package/packages/selector-panel/src/main.vue +1027 -1027
  204. package/packages/selector-panel/src/selection.vue +170 -170
  205. package/packages/selector-panel/src/tree.vue +129 -129
  206. package/packages/sizer/index.js +5 -5
  207. package/packages/sizer/src/main.vue +254 -254
  208. package/packages/steps/index.js +5 -5
  209. package/packages/steps/src/main.vue +181 -181
  210. package/packages/switch/index.js +5 -5
  211. package/packages/switch/src/main.vue +170 -170
  212. package/packages/table-form/index.js +5 -5
  213. package/packages/tabs/index.js +5 -5
  214. package/packages/tabs/src/main.vue +788 -788
  215. package/packages/tabs-panel/index.js +5 -5
  216. package/packages/tabs-panel/src/main.vue +29 -29
  217. package/packages/theme-chalk/lib/base.css +1 -1
  218. package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
  219. package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
  220. package/packages/theme-chalk/lib/icon.css +1 -1
  221. package/packages/theme-chalk/lib/index.css +1 -1
  222. package/packages/theme-chalk/lib/main.css +1 -1
  223. package/packages/theme-chalk/lib/menu.css +1 -1
  224. package/packages/theme-chalk/lib/simplicity.css +1 -1
  225. package/packages/theme-chalk/lib/sizer.css +1 -1
  226. package/packages/theme-chalk/lib/upload.css +1 -1
  227. package/packages/theme-chalk/src/.DS_Store +0 -0
  228. package/packages/theme-chalk/src/base.scss +261 -261
  229. package/packages/theme-chalk/src/button-group.scss +176 -176
  230. package/packages/theme-chalk/src/button.scss +24 -24
  231. package/packages/theme-chalk/src/calendar.scss +113 -113
  232. package/packages/theme-chalk/src/card.scss +99 -99
  233. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  234. package/packages/theme-chalk/src/clients.scss +87 -87
  235. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  236. package/packages/theme-chalk/src/data-table.scss +297 -297
  237. package/packages/theme-chalk/src/date-picker.scss +7 -7
  238. package/packages/theme-chalk/src/dialog.scss +77 -77
  239. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  240. package/packages/theme-chalk/src/enterprise.scss +5 -5
  241. package/packages/theme-chalk/src/error-page.scss +18 -18
  242. package/packages/theme-chalk/src/flow-group.scss +110 -110
  243. package/packages/theme-chalk/src/flow-list.scss +39 -39
  244. package/packages/theme-chalk/src/flow.scss +351 -351
  245. package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
  246. package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
  247. package/packages/theme-chalk/src/form.scss +501 -501
  248. package/packages/theme-chalk/src/handle-user.scss +40 -40
  249. package/packages/theme-chalk/src/handler.scss +148 -148
  250. package/packages/theme-chalk/src/icon.scss +1608 -1540
  251. package/packages/theme-chalk/src/icons.scss +99 -99
  252. package/packages/theme-chalk/src/input.scss +9 -9
  253. package/packages/theme-chalk/src/label.scss +24 -24
  254. package/packages/theme-chalk/src/layout.scss +46 -46
  255. package/packages/theme-chalk/src/login.scss +1006 -1006
  256. package/packages/theme-chalk/src/main.scss +663 -663
  257. package/packages/theme-chalk/src/menu.scss +224 -224
  258. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  259. package/packages/theme-chalk/src/nav.scss +111 -111
  260. package/packages/theme-chalk/src/page.scss +3 -3
  261. package/packages/theme-chalk/src/pagination.scss +29 -29
  262. package/packages/theme-chalk/src/player.scss +9 -9
  263. package/packages/theme-chalk/src/qr-code.scss +17 -17
  264. package/packages/theme-chalk/src/radio-group.scss +9 -9
  265. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  266. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  267. package/packages/theme-chalk/src/select.scss +8 -8
  268. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  269. package/packages/theme-chalk/src/selector.scss +114 -114
  270. package/packages/theme-chalk/src/simplicity.scss +1404 -1395
  271. package/packages/theme-chalk/src/sizer.scss +36 -36
  272. package/packages/theme-chalk/src/steps.scss +88 -88
  273. package/packages/theme-chalk/src/switch.scss +3 -3
  274. package/packages/theme-chalk/src/table-form.scss +1 -1
  275. package/packages/theme-chalk/src/tabs.scss +87 -87
  276. package/packages/theme-chalk/src/tips.scss +7 -7
  277. package/packages/theme-chalk/src/toolbar.scss +179 -179
  278. package/packages/theme-chalk/src/tree-group.scss +72 -72
  279. package/packages/theme-chalk/src/tree.scss +165 -165
  280. package/packages/theme-chalk/src/upload.scss +172 -172
  281. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  282. package/packages/tips/index.js +5 -5
  283. package/packages/tips/src/main.vue +141 -141
  284. package/packages/toolbar/index.js +5 -5
  285. package/packages/toolbar/src/main.vue +430 -430
  286. package/packages/tree/index.js +5 -5
  287. package/packages/tree-group/index.js +5 -5
  288. package/packages/upload/.DS_Store +0 -0
  289. package/packages/upload/index.js +5 -5
  290. package/packages/upload/src/main.vue +1344 -1344
  291. package/packages/upload/src/picture.js +15 -15
  292. package/packages/wujie/index.js +5 -5
  293. package/packages/wujie/src/main.vue +145 -145
  294. package/packages/wxlogin/index.js +5 -5
  295. package/packages/wxlogin/src/main.vue +128 -128
  296. package/src/.DS_Store +0 -0
  297. package/src/config/api.js +317 -317
  298. package/src/config/image.js +2 -2
  299. package/src/index.js +163 -163
  300. package/src/utils/.DS_Store +0 -0
  301. package/src/utils/bus.js +3 -3
  302. package/src/utils/date-util.js +312 -312
  303. package/src/utils/http.js +50 -50
  304. package/src/utils/rules.js +18 -18
  305. package/src/utils/store.js +21 -21
  306. package/src/utils/webSocket.js +107 -107
@@ -1,1801 +1,1801 @@
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'
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
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'
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
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'
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
- this.goPress(row.id);
1392
- } else if (
1393
- column.property == 'pendstate' &&
1394
- this.hasCircularReadWithdrawAuthority
1395
- ) {
1396
- this.handledraw(row.id);
1397
- }
1398
- },
1399
- handleBtnClick(data) {
1400
- // recallRead
1401
- const { handle, row } = data;
1402
- if (handle.text == '删除' || handle.text == '修改') {
1403
- this.formData.reason = handle.text == '修改' ? row.doresult : ''
1404
- this.del(row.id,handle.text == '删除'?'del':'modify');
1405
- } else if (handle.fun == 'recallRead') {
1406
- this[handle.fun]();
1407
- }
1408
- },
1409
- /**
1410
- * handleFormSubmit
1411
- * @desc:删除节点点击事件
1412
- * @param {Object} formData 点击删除的form数据
1413
- * @author liufan
1414
- * @date 2022年11月29日
1415
- **/
1416
- handleFormSubmit(formData) {
1417
- this.delLoading = true;
1418
- let params = {
1419
- url:this.modalType == 'del' ? deleteFlow : modifyFlow,
1420
- method: 'POST',
1421
- data: { id: this.historyId, reason: formData.reason }
1422
- };
1423
- if(this.modalType != 'del'){
1424
- delete params.data.reason;
1425
- params.data.doResult = formData.reason
1426
- params.data.doresult = formData.reason
1427
- }
1428
- util
1429
- .ajax(params)
1430
- .then((res) => {
1431
- const { status, message } = res;
1432
- this.delLoading = false;
1433
- if (status === 'success') {
1434
- this.$message.success(`${this.modalType == 'del' ? '删除' : '修改'}成功`);
1435
- this.showDel = false;
1436
- this.handleChange();
1437
- } else {
1438
- this.$message.error(message || '系统错误,请联系管理员!');
1439
- }
1440
- })
1441
- .catch((err) => {
1442
- this.delLoading = false;
1443
- if (err.message && err.message !== 'canceled') {
1444
- this.$message.error(err.message);
1445
- }
1446
- });
1447
- },
1448
- /**
1449
- * del
1450
- * @desc:展示删除弹窗
1451
- * @param {String} id 当前点击数据id
1452
- * @author liufan
1453
- * @date 2022年11月29日
1454
- **/
1455
- del(id,type) {
1456
- this.modalType = type;
1457
- this.historyId = id;
1458
- this.showDel = true;
1459
- },
1460
- /**
1461
- * handleCurrentChange
1462
- * @desc:监听页码变化
1463
- * @param {String} val 当前页
1464
- * @author liufan
1465
- * @date 2022年11月29日
1466
- **/
1467
- handleCurrentChange(val) {
1468
- this.currentPage = val;
1469
- this.getPressList();
1470
- },
1471
- /**
1472
- * handleSizeChange
1473
- * @desc:监听每页数据显示数量变化
1474
- * @param {String} val 每页展示数量
1475
- * @author liufan
1476
- * @date 2022年11月29日
1477
- **/
1478
- handleSizeChange(val) {
1479
- this.pageSize = val;
1480
- this.getPressList();
1481
- },
1482
- /**
1483
- * sortChange
1484
- * @desc:监听排序变化
1485
- * @param {Object} info 需要排序的字段及排序方式
1486
- * @author liufan
1487
- * @date 2022年11月29日
1488
- **/
1489
- sortChange(info) {
1490
- let { prop, order } = info;
1491
- this.sidx = prop;
1492
- this.sord = order.replace('ending', '');
1493
- this.getPressList();
1494
- },
1495
- /**
1496
- * getPressList
1497
- * @desc:催办列表数据
1498
- * @author liufan
1499
- * @date 2022年11月29日
1500
- **/
1501
- getPressList() {
1502
- const { historyId, pageSize, sidx, sord, currentPage } = this;
1503
- this.pressLoading = true;
1504
- let params = {
1505
- url: pressListJson,
1506
- params: { historyId },
1507
- method: 'POST',
1508
- data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
1509
- };
1510
- util
1511
- .ajax(params)
1512
- .then((res) => {
1513
- this.pressTableList = res.data;
1514
- this.total = res.totalrecords;
1515
- this.pressLoading = false;
1516
- })
1517
- .catch((err) => {
1518
- this.pressLoading = false;
1519
- if (err.message && err.message !== 'canceled') {
1520
- this.$message.error(err.message);
1521
- }
1522
- });
1523
- },
1524
- /**
1525
- * goPress
1526
- * @desc:催办列表查看
1527
- * @param {String} id 催办列表id
1528
- * @author liufan
1529
- * @date 2022年11月29日
1530
- **/
1531
- goPress(id) {
1532
- this.historyId = id;
1533
- this.showPress = true;
1534
- this.getPressList();
1535
- },
1536
- /**
1537
- * showFile
1538
- * @desc:附件查看
1539
- * @param {String} ownId 附件id
1540
- * @author liufan
1541
- * @date 2022年11月29日
1542
- **/
1543
- showFile(ownId) {
1544
- this.wfpendingid = ownId;
1545
- this.showFileList = true;
1546
- },
1547
- /**
1548
- * handleChange
1549
- * @desc:切换排序方式
1550
- * @author liufan
1551
- * @date 2022年11月22日
1552
- **/
1553
- handleChange(key, value) {
1554
- if (value) {
1555
- this[key] = value;
1556
- }
1557
- // this.show = false;
1558
- this.loading = util.loading(this.$loading, '加载中...');
1559
- this.getFlowList();
1560
- },
1561
- async getFyListJson(type) {
1562
- let params = {
1563
- url: fyListJson,
1564
- params: {
1565
- appRecordId: this.businessId,
1566
- status: type
1567
- }
1568
- };
1569
- await util.ajax(params).then((res) => {
1570
- if (type == 1) {
1571
- this.untreatedReadData = res.data;
1572
- this.untreatedReadData.map((x, i) => {
1573
- x.sort = i + 1;
1574
- });
1575
- } else {
1576
- this.processedReadData = res.data;
1577
- this.processedReadData.map((x, i) => {
1578
- x.sort = i + 1;
1579
- });
1580
- }
1581
- });
1582
- },
1583
- /**
1584
- * getFlowList
1585
- * @desc:获取流程列表
1586
- * @author liufan
1587
- * @date 2022年11月22日
1588
- **/
1589
- getFlowList(type) {
1590
- let params = {
1591
- url: pendedhistoryListJson,
1592
- params: {
1593
- apprecordid: this.businessId,
1594
- pendingAttr: 0,
1595
- viewType:type || this.viewType,
1596
- showSuggest: this.showSuggest,
1597
- ...this.params
1598
- }
1599
- };
1600
- util
1601
- .ajax(params)
1602
- .then((res) => {
1603
- let {
1604
- status,
1605
- message,
1606
- data: {
1607
- adjunctCode,
1608
- wfHistoryList,
1609
- fyHistoryList,
1610
- hasAgent,
1611
- isShort,
1612
- modify,
1613
- canDelete,
1614
- taskReadName
1615
- }
1616
- } = res;
1617
- this.loading.close();
1618
- if (status == 'success') {
1619
- this.flowTableInfo.adjunctCode = adjunctCode;
1620
- this.flowTableInfo.hasAgent = hasAgent;
1621
- this.attachmentPaperClipCssStyle =
1622
- res.data.attachmentPaperClipCssStyle;
1623
- this.isShort = isShort;
1624
- this.taskReadName = taskReadName;
1625
- this.flowData = wfHistoryList;
1626
- this.flowData.map((x, i) => {
1627
- x.sort = i + 1;
1628
- if (!x.deptid) {
1629
- x.deptid = x.deptName;
1630
- }
1631
- });
1632
- this.splitReadingData = fyHistoryList;
1633
- this.splitReadingData.map((x, i) => {
1634
- x.sort = i + 1;
1635
- });
1636
- this.modify = modify;
1637
- this.canDelete = canDelete;
1638
- this.show = true;
1639
- if (this.height == 'auto') {
1640
- this.$nextTick(() => {
1641
- this.content.map((x) => {
1642
- this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1643
- });
1644
- });
1645
- }
1646
- if (this.contents.indexOf('circular') != -1) {
1647
- this.getCircularReadList();
1648
- } else {
1649
- this.$nextTick(() => {
1650
- this.getListCount(this.flowListCount);
1651
- });
1652
- }
1653
- } else {
1654
- this.$message.error(message || '系统错误,请联系管理员!');
1655
- }
1656
- })
1657
- .catch((err) => {
1658
- this.loading.close();
1659
- if (err.message && err.message !== 'canceled') {
1660
- this.$message.error(err.message);
1661
- }
1662
- this.show = true;
1663
- });
1664
- },
1665
- /**
1666
- * handleClick
1667
- * @desc:表单点击事件
1668
- * @param {Object} val 当前点击行数据及按钮
1669
- * @author liufan
1670
- * @date 2022年11月10日
1671
- **/
1672
- handleClick(val) {
1673
- const {
1674
- handle: { text },
1675
- row: { id, status }
1676
- } = val;
1677
- if (text === '置为失效') {
1678
- if (status == 0) {
1679
- this.$confirm('您确定要置为失效吗?')
1680
- .then(() => {
1681
- this.loading = util.loading(this.$loading, '提交中...');
1682
- let param = {
1683
- url: deletePresetInfo,
1684
- headers: { Accept: 'application/json,text/plain' },
1685
- method: 'post',
1686
- params: { id }
1687
- };
1688
- util
1689
- .ajax(param)
1690
- .then((res) => {
1691
- const { status, message } = res;
1692
- this.loading.close();
1693
- if (status === 'success') {
1694
- this.$message.success('操作成功');
1695
- this.getListInfo();
1696
- } else {
1697
- this.$message.error(message || '系统错误,请联系管理员!');
1698
- }
1699
- })
1700
- .catch((err) => {
1701
- this.loading.close();
1702
- if (err.message && err.message !== 'canceled') {
1703
- this.$message.error(err.message);
1704
- }
1705
- });
1706
- })
1707
- .catch((e) => {
1708
- // on cancel
1709
- });
1710
- } else {
1711
- this.$message.warning('当前数据已为失效状态');
1712
- }
1713
- }
1714
- },
1715
- /**
1716
- * getCodeValue
1717
- * @desc:获取代码表过滤后的值
1718
- * @param {String} value 展示数据的代码值
1719
- * @param {String} type 代码表类型
1720
- * @author liufan
1721
- * @date 2022年11月10日
1722
- **/
1723
- getCodeValue(value, type) {
1724
- let val = this[type].filter((item) => item.cciValue == value);
1725
- return val[0].shortName;
1726
- },
1727
- /**
1728
- * getSysInfo
1729
- * @desc:获取代码表
1730
- * @param {String} code 编码code值
1731
- * @author liufan
1732
- * @date 2022年11月10日
1733
- **/
1734
- getSysInfo(code) {
1735
- let params = {
1736
- url: findCodeValues,
1737
- params: { ccCode: code }
1738
- };
1739
- util
1740
- .ajax(params)
1741
- .then((res) => {
1742
- const { status, message, data } = res;
1743
- if (status == 'success') {
1744
- this[code] = data;
1745
- } else {
1746
- this.$message.error(message || '系统错误,请联系管理员!');
1747
- }
1748
- })
1749
- .catch((e) => {});
1750
- },
1751
- /**
1752
- * getListInfo
1753
- * @desc:获取预设列表数据
1754
- * @author liufan
1755
- * @date 2022年11月10日
1756
- **/
1757
- getListInfo() {
1758
- let param = {
1759
- url: toPresetInfoListIndex,
1760
- params: { apprecordid: this.businessId }
1761
- };
1762
- util
1763
- .ajax(param)
1764
- .then((res) => {
1765
- let {
1766
- status,
1767
- message,
1768
- data: {
1769
- presetInfoList,
1770
- presetInfoListHiddenColumns,
1771
- canDelete,
1772
- currentUserHasPresetInfoAuth
1773
- }
1774
- } = res;
1775
- this.loading.close();
1776
- if (status == 'success') {
1777
- if (presetInfoList) {
1778
- this.presetData = presetInfoList;
1779
- this.presetData.map((x, i) => {
1780
- x.sort = i + 1;
1781
- });
1782
- }
1783
- this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1784
- this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1785
- this.canDelete = canDelete;
1786
- } else {
1787
- this.$message.error(message || '系统错误,请联系管理员!');
1788
- }
1789
- })
1790
- .catch((err) => {
1791
- this.loading.close();
1792
- if (err.message && err.message !== 'canceled') {
1793
- this.$message.error(err.message);
1794
- }
1795
- });
1796
- }
1797
- }
1798
- };
1799
- </script>
1800
-
1801
- <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
+ :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'
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
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'
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
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'
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
+ this.goPress(row.id);
1392
+ } else if (
1393
+ column.property == 'pendstate' &&
1394
+ this.hasCircularReadWithdrawAuthority
1395
+ ) {
1396
+ this.handledraw(row.id);
1397
+ }
1398
+ },
1399
+ handleBtnClick(data) {
1400
+ // recallRead
1401
+ const { handle, row } = data;
1402
+ if (handle.text == '删除' || handle.text == '修改') {
1403
+ this.formData.reason = handle.text == '修改' ? row.doresult : ''
1404
+ this.del(row.id,handle.text == '删除'?'del':'modify');
1405
+ } else if (handle.fun == 'recallRead') {
1406
+ this[handle.fun]();
1407
+ }
1408
+ },
1409
+ /**
1410
+ * handleFormSubmit
1411
+ * @desc:删除节点点击事件
1412
+ * @param {Object} formData 点击删除的form数据
1413
+ * @author liufan
1414
+ * @date 2022年11月29日
1415
+ **/
1416
+ handleFormSubmit(formData) {
1417
+ this.delLoading = true;
1418
+ let params = {
1419
+ url:this.modalType == 'del' ? deleteFlow : modifyFlow,
1420
+ method: 'POST',
1421
+ data: { id: this.historyId, reason: formData.reason }
1422
+ };
1423
+ if(this.modalType != 'del'){
1424
+ delete params.data.reason;
1425
+ params.data.doResult = formData.reason
1426
+ params.data.doresult = formData.reason
1427
+ }
1428
+ util
1429
+ .ajax(params)
1430
+ .then((res) => {
1431
+ const { status, message } = res;
1432
+ this.delLoading = false;
1433
+ if (status === 'success') {
1434
+ this.$message.success(`${this.modalType == 'del' ? '删除' : '修改'}成功`);
1435
+ this.showDel = false;
1436
+ this.handleChange();
1437
+ } else {
1438
+ this.$message.error(message || '系统错误,请联系管理员!');
1439
+ }
1440
+ })
1441
+ .catch((err) => {
1442
+ this.delLoading = false;
1443
+ if (err.message && err.message !== 'canceled') {
1444
+ this.$message.error(err.message);
1445
+ }
1446
+ });
1447
+ },
1448
+ /**
1449
+ * del
1450
+ * @desc:展示删除弹窗
1451
+ * @param {String} id 当前点击数据id
1452
+ * @author liufan
1453
+ * @date 2022年11月29日
1454
+ **/
1455
+ del(id,type) {
1456
+ this.modalType = type;
1457
+ this.historyId = id;
1458
+ this.showDel = true;
1459
+ },
1460
+ /**
1461
+ * handleCurrentChange
1462
+ * @desc:监听页码变化
1463
+ * @param {String} val 当前页
1464
+ * @author liufan
1465
+ * @date 2022年11月29日
1466
+ **/
1467
+ handleCurrentChange(val) {
1468
+ this.currentPage = val;
1469
+ this.getPressList();
1470
+ },
1471
+ /**
1472
+ * handleSizeChange
1473
+ * @desc:监听每页数据显示数量变化
1474
+ * @param {String} val 每页展示数量
1475
+ * @author liufan
1476
+ * @date 2022年11月29日
1477
+ **/
1478
+ handleSizeChange(val) {
1479
+ this.pageSize = val;
1480
+ this.getPressList();
1481
+ },
1482
+ /**
1483
+ * sortChange
1484
+ * @desc:监听排序变化
1485
+ * @param {Object} info 需要排序的字段及排序方式
1486
+ * @author liufan
1487
+ * @date 2022年11月29日
1488
+ **/
1489
+ sortChange(info) {
1490
+ let { prop, order } = info;
1491
+ this.sidx = prop;
1492
+ this.sord = order.replace('ending', '');
1493
+ this.getPressList();
1494
+ },
1495
+ /**
1496
+ * getPressList
1497
+ * @desc:催办列表数据
1498
+ * @author liufan
1499
+ * @date 2022年11月29日
1500
+ **/
1501
+ getPressList() {
1502
+ const { historyId, pageSize, sidx, sord, currentPage } = this;
1503
+ this.pressLoading = true;
1504
+ let params = {
1505
+ url: pressListJson,
1506
+ params: { historyId },
1507
+ method: 'POST',
1508
+ data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
1509
+ };
1510
+ util
1511
+ .ajax(params)
1512
+ .then((res) => {
1513
+ this.pressTableList = res.data;
1514
+ this.total = res.totalrecords;
1515
+ this.pressLoading = false;
1516
+ })
1517
+ .catch((err) => {
1518
+ this.pressLoading = false;
1519
+ if (err.message && err.message !== 'canceled') {
1520
+ this.$message.error(err.message);
1521
+ }
1522
+ });
1523
+ },
1524
+ /**
1525
+ * goPress
1526
+ * @desc:催办列表查看
1527
+ * @param {String} id 催办列表id
1528
+ * @author liufan
1529
+ * @date 2022年11月29日
1530
+ **/
1531
+ goPress(id) {
1532
+ this.historyId = id;
1533
+ this.showPress = true;
1534
+ this.getPressList();
1535
+ },
1536
+ /**
1537
+ * showFile
1538
+ * @desc:附件查看
1539
+ * @param {String} ownId 附件id
1540
+ * @author liufan
1541
+ * @date 2022年11月29日
1542
+ **/
1543
+ showFile(ownId) {
1544
+ this.wfpendingid = ownId;
1545
+ this.showFileList = true;
1546
+ },
1547
+ /**
1548
+ * handleChange
1549
+ * @desc:切换排序方式
1550
+ * @author liufan
1551
+ * @date 2022年11月22日
1552
+ **/
1553
+ handleChange(key, value) {
1554
+ if (value) {
1555
+ this[key] = value;
1556
+ }
1557
+ // this.show = false;
1558
+ this.loading = util.loading(this.$loading, '加载中...');
1559
+ this.getFlowList();
1560
+ },
1561
+ async getFyListJson(type) {
1562
+ let params = {
1563
+ url: fyListJson,
1564
+ params: {
1565
+ appRecordId: this.businessId,
1566
+ status: type
1567
+ }
1568
+ };
1569
+ await util.ajax(params).then((res) => {
1570
+ if (type == 1) {
1571
+ this.untreatedReadData = res.data;
1572
+ this.untreatedReadData.map((x, i) => {
1573
+ x.sort = i + 1;
1574
+ });
1575
+ } else {
1576
+ this.processedReadData = res.data;
1577
+ this.processedReadData.map((x, i) => {
1578
+ x.sort = i + 1;
1579
+ });
1580
+ }
1581
+ });
1582
+ },
1583
+ /**
1584
+ * getFlowList
1585
+ * @desc:获取流程列表
1586
+ * @author liufan
1587
+ * @date 2022年11月22日
1588
+ **/
1589
+ getFlowList(type) {
1590
+ let params = {
1591
+ url: pendedhistoryListJson,
1592
+ params: {
1593
+ apprecordid: this.businessId,
1594
+ pendingAttr: 0,
1595
+ viewType:type || this.viewType,
1596
+ showSuggest: this.showSuggest,
1597
+ ...this.params
1598
+ }
1599
+ };
1600
+ util
1601
+ .ajax(params)
1602
+ .then((res) => {
1603
+ let {
1604
+ status,
1605
+ message,
1606
+ data: {
1607
+ adjunctCode,
1608
+ wfHistoryList,
1609
+ fyHistoryList,
1610
+ hasAgent,
1611
+ isShort,
1612
+ modify,
1613
+ canDelete,
1614
+ taskReadName
1615
+ }
1616
+ } = res;
1617
+ this.loading.close();
1618
+ if (status == 'success') {
1619
+ this.flowTableInfo.adjunctCode = adjunctCode;
1620
+ this.flowTableInfo.hasAgent = hasAgent;
1621
+ this.attachmentPaperClipCssStyle =
1622
+ res.data.attachmentPaperClipCssStyle;
1623
+ this.isShort = isShort;
1624
+ this.taskReadName = taskReadName;
1625
+ this.flowData = wfHistoryList;
1626
+ this.flowData.map((x, i) => {
1627
+ x.sort = i + 1;
1628
+ if (!x.deptid) {
1629
+ x.deptid = x.deptName;
1630
+ }
1631
+ });
1632
+ this.splitReadingData = fyHistoryList;
1633
+ this.splitReadingData.map((x, i) => {
1634
+ x.sort = i + 1;
1635
+ });
1636
+ this.modify = modify;
1637
+ this.canDelete = canDelete;
1638
+ this.show = true;
1639
+ if (this.height == 'auto') {
1640
+ this.$nextTick(() => {
1641
+ this.content.map((x) => {
1642
+ this[`${x.type}Height`] = this.$refs[x.type][0].offsetHeight;
1643
+ });
1644
+ });
1645
+ }
1646
+ if (this.contents.indexOf('circular') != -1) {
1647
+ this.getCircularReadList();
1648
+ } else {
1649
+ this.$nextTick(() => {
1650
+ this.getListCount(this.flowListCount);
1651
+ });
1652
+ }
1653
+ } else {
1654
+ this.$message.error(message || '系统错误,请联系管理员!');
1655
+ }
1656
+ })
1657
+ .catch((err) => {
1658
+ this.loading.close();
1659
+ if (err.message && err.message !== 'canceled') {
1660
+ this.$message.error(err.message);
1661
+ }
1662
+ this.show = true;
1663
+ });
1664
+ },
1665
+ /**
1666
+ * handleClick
1667
+ * @desc:表单点击事件
1668
+ * @param {Object} val 当前点击行数据及按钮
1669
+ * @author liufan
1670
+ * @date 2022年11月10日
1671
+ **/
1672
+ handleClick(val) {
1673
+ const {
1674
+ handle: { text },
1675
+ row: { id, status }
1676
+ } = val;
1677
+ if (text === '置为失效') {
1678
+ if (status == 0) {
1679
+ this.$confirm('您确定要置为失效吗?')
1680
+ .then(() => {
1681
+ this.loading = util.loading(this.$loading, '提交中...');
1682
+ let param = {
1683
+ url: deletePresetInfo,
1684
+ headers: { Accept: 'application/json,text/plain' },
1685
+ method: 'post',
1686
+ params: { id }
1687
+ };
1688
+ util
1689
+ .ajax(param)
1690
+ .then((res) => {
1691
+ const { status, message } = res;
1692
+ this.loading.close();
1693
+ if (status === 'success') {
1694
+ this.$message.success('操作成功');
1695
+ this.getListInfo();
1696
+ } else {
1697
+ this.$message.error(message || '系统错误,请联系管理员!');
1698
+ }
1699
+ })
1700
+ .catch((err) => {
1701
+ this.loading.close();
1702
+ if (err.message && err.message !== 'canceled') {
1703
+ this.$message.error(err.message);
1704
+ }
1705
+ });
1706
+ })
1707
+ .catch((e) => {
1708
+ // on cancel
1709
+ });
1710
+ } else {
1711
+ this.$message.warning('当前数据已为失效状态');
1712
+ }
1713
+ }
1714
+ },
1715
+ /**
1716
+ * getCodeValue
1717
+ * @desc:获取代码表过滤后的值
1718
+ * @param {String} value 展示数据的代码值
1719
+ * @param {String} type 代码表类型
1720
+ * @author liufan
1721
+ * @date 2022年11月10日
1722
+ **/
1723
+ getCodeValue(value, type) {
1724
+ let val = this[type].filter((item) => item.cciValue == value);
1725
+ return val[0].shortName;
1726
+ },
1727
+ /**
1728
+ * getSysInfo
1729
+ * @desc:获取代码表
1730
+ * @param {String} code 编码code值
1731
+ * @author liufan
1732
+ * @date 2022年11月10日
1733
+ **/
1734
+ getSysInfo(code) {
1735
+ let params = {
1736
+ url: findCodeValues,
1737
+ params: { ccCode: code }
1738
+ };
1739
+ util
1740
+ .ajax(params)
1741
+ .then((res) => {
1742
+ const { status, message, data } = res;
1743
+ if (status == 'success') {
1744
+ this[code] = data;
1745
+ } else {
1746
+ this.$message.error(message || '系统错误,请联系管理员!');
1747
+ }
1748
+ })
1749
+ .catch((e) => {});
1750
+ },
1751
+ /**
1752
+ * getListInfo
1753
+ * @desc:获取预设列表数据
1754
+ * @author liufan
1755
+ * @date 2022年11月10日
1756
+ **/
1757
+ getListInfo() {
1758
+ let param = {
1759
+ url: toPresetInfoListIndex,
1760
+ params: { apprecordid: this.businessId }
1761
+ };
1762
+ util
1763
+ .ajax(param)
1764
+ .then((res) => {
1765
+ let {
1766
+ status,
1767
+ message,
1768
+ data: {
1769
+ presetInfoList,
1770
+ presetInfoListHiddenColumns,
1771
+ canDelete,
1772
+ currentUserHasPresetInfoAuth
1773
+ }
1774
+ } = res;
1775
+ this.loading.close();
1776
+ if (status == 'success') {
1777
+ if (presetInfoList) {
1778
+ this.presetData = presetInfoList;
1779
+ this.presetData.map((x, i) => {
1780
+ x.sort = i + 1;
1781
+ });
1782
+ }
1783
+ this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
1784
+ this.currentUserHasPresetInfoAuth = currentUserHasPresetInfoAuth;
1785
+ this.canDelete = canDelete;
1786
+ } else {
1787
+ this.$message.error(message || '系统错误,请联系管理员!');
1788
+ }
1789
+ })
1790
+ .catch((err) => {
1791
+ this.loading.close();
1792
+ if (err.message && err.message !== 'canceled') {
1793
+ this.$message.error(err.message);
1794
+ }
1795
+ });
1796
+ }
1797
+ }
1798
+ };
1799
+ </script>
1800
+
1801
+ <style></style>