eoss-ui 0.6.77 → 0.6.79

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 (246) hide show
  1. package/lib/calogin.js +233 -233
  2. package/lib/eoss-ui.common.js +1602 -995
  3. package/lib/flow-list.js +81 -81
  4. package/lib/flow.js +1137 -530
  5. package/lib/index.js +1 -1
  6. package/lib/main.js +132 -132
  7. package/lib/qr-code.js +13 -13
  8. package/lib/theme-chalk/flow.css +1 -1
  9. package/lib/theme-chalk/index.css +1 -1
  10. package/package.json +160 -160
  11. package/packages/button/index.js +5 -5
  12. package/packages/button/src/main.vue +418 -418
  13. package/packages/button-group/index.js +5 -5
  14. package/packages/button-group/src/main.vue +298 -298
  15. package/packages/calendar/index.js +5 -5
  16. package/packages/calogin/index.js +5 -5
  17. package/packages/calogin/src/main.vue +412 -412
  18. package/packages/calogin/src/plugin.js +915 -915
  19. package/packages/card/index.js +5 -5
  20. package/packages/card/src/main.vue +156 -156
  21. package/packages/cascader/index.js +5 -5
  22. package/packages/cascader/src/main.vue +168 -168
  23. package/packages/checkbox-group/index.js +5 -5
  24. package/packages/checkbox-group/src/main.vue +333 -333
  25. package/packages/clients/index.js +5 -5
  26. package/packages/clients/src/main.vue +151 -151
  27. package/packages/data-table/index.js +5 -5
  28. package/packages/data-table/src/children.vue +39 -39
  29. package/packages/data-table/src/column.vue +989 -989
  30. package/packages/data-table/src/main.vue +1822 -1822
  31. package/packages/data-table/src/sizer.vue +195 -195
  32. package/packages/data-table-form/index.js +5 -5
  33. package/packages/data-table-form/src/checkbox.vue +101 -101
  34. package/packages/data-table-form/src/colgroup.vue +17 -17
  35. package/packages/data-table-form/src/main.vue +181 -181
  36. package/packages/data-table-form/src/radio.vue +65 -65
  37. package/packages/data-table-form/src/table.vue +233 -233
  38. package/packages/data-table-form/src/tbody.vue +336 -336
  39. package/packages/data-table-form/src/thead.vue +68 -68
  40. package/packages/date-picker/index.js +5 -5
  41. package/packages/date-picker/src/main.vue +236 -236
  42. package/packages/dialog/index.js +5 -5
  43. package/packages/enable-drag/index.js +5 -5
  44. package/packages/enterprise/index.js +5 -5
  45. package/packages/enterprise/src/main.vue +66 -66
  46. package/packages/error-page/index.js +5 -5
  47. package/packages/error-page/src/main.vue +44 -44
  48. package/packages/flow/index.js +5 -5
  49. package/packages/flow/src/component/Circulate.vue +370 -363
  50. package/packages/flow/src/component/CommonOpinions.vue +364 -346
  51. package/packages/flow/src/component/CustomPreset.vue +322 -322
  52. package/packages/flow/src/component/FileList.vue +99 -99
  53. package/packages/flow/src/component/Preset.vue +255 -255
  54. package/packages/flow/src/component/SendMsg.vue +241 -241
  55. package/packages/flow/src/component/TimeLimit.vue +190 -190
  56. package/packages/flow/src/component/taskUnionExamine.vue +627 -627
  57. package/packages/flow/src/form.vue +121 -121
  58. package/packages/flow/src/freeStartFlow.vue +2843 -2843
  59. package/packages/flow/src/main.vue +3564 -3445
  60. package/packages/flow/src/processForm.vue +1214 -1096
  61. package/packages/flow/src/processReject.vue +294 -294
  62. package/packages/flow/src/reset.vue +918 -905
  63. package/packages/flow/src/startTaskRead.vue +677 -659
  64. package/packages/flow/src/supervise.vue +149 -149
  65. package/packages/flow/src/table.vue +58 -58
  66. package/packages/flow-group/index.js +5 -5
  67. package/packages/flow-group/src/main.vue +688 -688
  68. package/packages/flow-list/index.js +5 -5
  69. package/packages/flow-list/src/main.vue +1770 -1770
  70. package/packages/form/index.js +5 -5
  71. package/packages/form/src/main.vue +3797 -3797
  72. package/packages/form/src/table.vue +1502 -1502
  73. package/packages/handle-user/index.js +5 -5
  74. package/packages/handle-user/src/main.vue +138 -138
  75. package/packages/handler/index.js +5 -5
  76. package/packages/handler/src/main.vue +493 -493
  77. package/packages/icon/index.js +5 -5
  78. package/packages/icon/src/main.vue +101 -101
  79. package/packages/icons/index.js +5 -5
  80. package/packages/icons/src/main.vue +81 -81
  81. package/packages/input/index.js +5 -5
  82. package/packages/input/src/main.vue +356 -356
  83. package/packages/input-number/index.js +5 -5
  84. package/packages/input-number/src/main.vue +106 -106
  85. package/packages/label/index.js +5 -5
  86. package/packages/label/src/main.vue +457 -457
  87. package/packages/layout/index.js +5 -5
  88. package/packages/layout/src/item.vue +152 -152
  89. package/packages/layout/src/main.vue +31 -31
  90. package/packages/login/index.js +5 -5
  91. package/packages/login/src/main.vue +2001 -2001
  92. package/packages/login/src/resetPassword.vue +562 -562
  93. package/packages/main/index.js +5 -5
  94. package/packages/main/src/default/message.vue +249 -249
  95. package/packages/main/src/default/notice.vue +157 -157
  96. package/packages/main/src/default/userinfo.vue +503 -503
  97. package/packages/main/src/public/online.vue +89 -89
  98. package/packages/main/src/public/search.vue +458 -458
  99. package/packages/main/src/public/settings.vue +221 -221
  100. package/packages/main/src/simplicity/apps.vue +388 -388
  101. package/packages/main/src/simplicity/avatar.vue +82 -82
  102. package/packages/main/src/simplicity/handler.vue +259 -259
  103. package/packages/main/src/simplicity/index.vue +2102 -2102
  104. package/packages/main/src/simplicity/lists.vue +84 -84
  105. package/packages/main/src/simplicity/menu-list.vue +135 -135
  106. package/packages/main/src/simplicity/message.vue +259 -259
  107. package/packages/main/src/simplicity/notice.vue +190 -190
  108. package/packages/main/src/simplicity/router-page.vue +45 -45
  109. package/packages/main/src/simplicity/sub-menu.vue +264 -264
  110. package/packages/main/src/simplicity/user.vue +260 -260
  111. package/packages/main/src/simplicity/userinfo.vue +312 -312
  112. package/packages/menu/index.js +5 -5
  113. package/packages/menu/src/main.vue +584 -584
  114. package/packages/nav/index.js +5 -5
  115. package/packages/nav/src/main.vue +351 -351
  116. package/packages/notify/index.js +5 -5
  117. package/packages/notify/src/main.vue +538 -538
  118. package/packages/page/index.js +5 -5
  119. package/packages/page/src/main.vue +167 -167
  120. package/packages/pagination/index.js +5 -5
  121. package/packages/pagination/src/main.vue +96 -96
  122. package/packages/player/index.js +5 -5
  123. package/packages/player/src/main.vue +194 -194
  124. package/packages/qr-code/index.js +5 -5
  125. package/packages/qr-code/src/main.vue +170 -170
  126. package/packages/radio-group/index.js +6 -6
  127. package/packages/radio-group/src/main.vue +319 -319
  128. package/packages/retrial-auth/index.js +5 -5
  129. package/packages/retrial-auth/src/main.vue +280 -280
  130. package/packages/select/index.js +5 -5
  131. package/packages/select/src/main.vue +778 -778
  132. package/packages/select-ganged/index.js +5 -5
  133. package/packages/select-ganged/src/main.vue +724 -724
  134. package/packages/selector/index.js +5 -5
  135. package/packages/selector/src/main.vue +729 -729
  136. package/packages/selector-panel/index.js +5 -5
  137. package/packages/selector-panel/src/main.vue +1027 -1027
  138. package/packages/selector-panel/src/selection.vue +170 -170
  139. package/packages/selector-panel/src/tree.vue +129 -129
  140. package/packages/sizer/index.js +5 -5
  141. package/packages/sizer/src/main.vue +254 -254
  142. package/packages/steps/index.js +5 -5
  143. package/packages/steps/src/main.vue +181 -181
  144. package/packages/switch/index.js +5 -5
  145. package/packages/switch/src/main.vue +154 -154
  146. package/packages/table-form/index.js +5 -5
  147. package/packages/tabs/index.js +5 -5
  148. package/packages/tabs/src/main.vue +788 -788
  149. package/packages/tabs-panel/index.js +5 -5
  150. package/packages/tabs-panel/src/main.vue +29 -29
  151. package/packages/theme-chalk/lib/flow.css +1 -1
  152. package/packages/theme-chalk/lib/index.css +1 -1
  153. package/packages/theme-chalk/src/base.scss +261 -261
  154. package/packages/theme-chalk/src/button-group.scss +176 -176
  155. package/packages/theme-chalk/src/button.scss +24 -24
  156. package/packages/theme-chalk/src/calendar.scss +113 -113
  157. package/packages/theme-chalk/src/card.scss +99 -99
  158. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  159. package/packages/theme-chalk/src/clients.scss +87 -87
  160. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  161. package/packages/theme-chalk/src/data-table.scss +293 -293
  162. package/packages/theme-chalk/src/date-picker.scss +7 -7
  163. package/packages/theme-chalk/src/dialog.scss +77 -77
  164. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  165. package/packages/theme-chalk/src/enterprise.scss +5 -5
  166. package/packages/theme-chalk/src/error-page.scss +18 -18
  167. package/packages/theme-chalk/src/flow-group.scss +110 -110
  168. package/packages/theme-chalk/src/flow-list.scss +39 -39
  169. package/packages/theme-chalk/src/flow.scss +348 -343
  170. package/packages/theme-chalk/src/form.scss +499 -499
  171. package/packages/theme-chalk/src/handle-user.scss +40 -40
  172. package/packages/theme-chalk/src/handler.scss +143 -143
  173. package/packages/theme-chalk/src/icon.scss +1792 -1792
  174. package/packages/theme-chalk/src/icons.scss +99 -99
  175. package/packages/theme-chalk/src/input.scss +9 -9
  176. package/packages/theme-chalk/src/label.scss +24 -24
  177. package/packages/theme-chalk/src/layout.scss +46 -46
  178. package/packages/theme-chalk/src/login.scss +984 -984
  179. package/packages/theme-chalk/src/main.scss +663 -663
  180. package/packages/theme-chalk/src/menu.scss +222 -222
  181. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  182. package/packages/theme-chalk/src/nav.scss +111 -111
  183. package/packages/theme-chalk/src/page.scss +3 -3
  184. package/packages/theme-chalk/src/pagination.scss +29 -29
  185. package/packages/theme-chalk/src/player.scss +9 -9
  186. package/packages/theme-chalk/src/qr-code.scss +17 -17
  187. package/packages/theme-chalk/src/radio-group.scss +9 -9
  188. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  189. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  190. package/packages/theme-chalk/src/select.scss +8 -8
  191. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  192. package/packages/theme-chalk/src/selector.scss +91 -91
  193. package/packages/theme-chalk/src/simplicity.scss +1355 -1355
  194. package/packages/theme-chalk/src/sizer.scss +36 -36
  195. package/packages/theme-chalk/src/steps.scss +88 -88
  196. package/packages/theme-chalk/src/switch.scss +3 -3
  197. package/packages/theme-chalk/src/table-form.scss +1 -1
  198. package/packages/theme-chalk/src/tabs.scss +87 -87
  199. package/packages/theme-chalk/src/tips.scss +7 -7
  200. package/packages/theme-chalk/src/toolbar.scss +179 -179
  201. package/packages/theme-chalk/src/tree-group.scss +72 -72
  202. package/packages/theme-chalk/src/tree.scss +165 -165
  203. package/packages/theme-chalk/src/upload.scss +172 -172
  204. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  205. package/packages/tips/index.js +5 -5
  206. package/packages/tips/src/main.vue +141 -141
  207. package/packages/toolbar/index.js +5 -5
  208. package/packages/toolbar/src/main.vue +430 -430
  209. package/packages/tree/index.js +5 -5
  210. package/packages/tree-group/index.js +5 -5
  211. package/packages/upload/index.js +5 -5
  212. package/packages/upload/src/main.vue +1348 -1348
  213. package/packages/upload/src/picture.js +15 -15
  214. package/packages/wujie/index.js +5 -5
  215. package/packages/wujie/src/main.vue +145 -145
  216. package/packages/wxlogin/index.js +5 -5
  217. package/packages/wxlogin/src/main.vue +128 -128
  218. package/src/config/api.js +294 -294
  219. package/src/config/image.js +2 -2
  220. package/src/index.js +163 -163
  221. package/src/utils/bus.js +3 -3
  222. package/src/utils/date-util.js +312 -312
  223. package/src/utils/http.js +50 -50
  224. package/src/utils/rules.js +18 -18
  225. package/src/utils/store.js +21 -21
  226. package/src/utils/webSocket.js +107 -107
  227. package/packages/.DS_Store +0 -0
  228. package/packages/autocomplete/.DS_Store +0 -0
  229. package/packages/calogin/.DS_Store +0 -0
  230. package/packages/date-picker/.DS_Store +0 -0
  231. package/packages/date-picker/src/.DS_Store +0 -0
  232. package/packages/flow/.DS_Store +0 -0
  233. package/packages/flow-list/.DS_Store +0 -0
  234. package/packages/form/.DS_Store +0 -0
  235. package/packages/login/.DS_Store +0 -0
  236. package/packages/main/.DS_Store +0 -0
  237. package/packages/main/src/.DS_Store +0 -0
  238. package/packages/menu/.DS_Store +0 -0
  239. package/packages/scrollbar/.DS_Store +0 -0
  240. package/packages/select/.DS_Store +0 -0
  241. package/packages/selector/.DS_Store +0 -0
  242. package/packages/selector-panel/.DS_Store +0 -0
  243. package/packages/theme-chalk/src/.DS_Store +0 -0
  244. package/packages/upload/.DS_Store +0 -0
  245. package/src/.DS_Store +0 -0
  246. package/src/utils/.DS_Store +0 -0
@@ -1,905 +1,918 @@
1
- <template>
2
- <div
3
- v-loading="loading"
4
- class="es-flow-form"
5
- element-loading-text="加载中..."
6
- element-loading-spinner="el-icon-loading"
7
- element-loading-background="rgba(255, 255,255, 0.8)"
8
- style="height: 100%"
9
- >
10
- <el-form
11
- ref="nextNode"
12
- :model="nextNode"
13
- class="es-reset-flow demo-dynamic"
14
- label-width="100px"
15
- label-position="left"
16
- >
17
- <div class="es-reset-flow-form-box">
18
- <el-form-item prop="nodeName" label="标题">
19
- <el-input v-model="pendtitle" disabled />
20
- </el-form-item>
21
- <el-form-item prop="nodeName" label="当前步骤">
22
- <el-input v-model="nextNode.nodeName" disabled />
23
- </el-form-item>
24
- <el-form-item prop="newOpinion" label="意见">
25
- <CommonOpinions class="opinions" :rows="3" @change="changeOpinion" />
26
- </el-form-item>
27
- <el-form-item
28
- prop="nextNode"
29
- label="下步节点"
30
- :rules="[
31
- { required: true, message: `请选择下步节点`, trigger: 'blur' }
32
- ]"
33
- >
34
- <el-select
35
- v-model="nextNode.nextNode"
36
- :placeholder="`请选择下步节点`"
37
- @change="changeSel"
38
- >
39
- <el-option
40
- v-for="items in nextNode.nodeInfo"
41
- :key="items.nodeId"
42
- :label="items.nodeName"
43
- :value="items.nodeId"
44
- ></el-option>
45
- </el-select>
46
- </el-form-item>
47
- <el-form-item
48
- v-if="countersignaturetypeCode != 0"
49
- prop="countersignaturetypeText"
50
- label="处理方式"
51
- >
52
- <el-input
53
- v-model="nextNode.countersignaturetypeText"
54
- placeholder="请输入内容"
55
- disabled
56
- />
57
- </el-form-item>
58
- <el-form-item prop="nextNode" label="办理角色" v-if="showRoleUser">
59
- <SelectUser
60
- :nextUser="nextNode.nextRoleId"
61
- :radioList="radioList"
62
- :multiple="multiple"
63
- :isCustomUser="isCustomUser"
64
- :options="options"
65
- :presetEdit="presetEdit"
66
- :isDefSelectedObj="isDefSelectedObj"
67
- :selectUserList="selectUserList"
68
- @change="changeSelectUser"
69
- :types="nextUserTypes"
70
- :params="params"
71
- />
72
- </el-form-item>
73
- <!-- showRoleUser -->
74
- <el-form-item
75
- v-if="
76
- !showRoleUser &&
77
- nodeInfoExtAttr.nodeType != 1 &&
78
- nodeInfoExtAttr.nodeType != 2
79
- "
80
- :prop="isShowNextUser ? 'nextUser' : 'nextOrgId'"
81
- :label="isShowNextUser ? '下步办理人' : '办理对象'"
82
- >
83
- <SelectUser
84
- :nextUser="isShowNextUser ? nextNode.nextUser : nextNode.nextOrgId"
85
- :radioList="radioList"
86
- :multiple="multiple"
87
- :isCustomUser="!isShowNextUser ? 1 : isCustomUser"
88
- :options="options"
89
- :presetEdit="presetEdit"
90
- :mix="multiple"
91
- :isDefSelectedObj="isDefSelectedObj"
92
- :selectUserList="selectUserList"
93
- @change="
94
- changeSelectUser(
95
- $event,
96
- isShowNextUser ? 'nextUser' : 'nextOrgId'
97
- )
98
- "
99
- :types="
100
- !isShowNextUser
101
- ? nextUserTypes
102
- : isCdjxjTaskHandle != 'true'
103
- ? ['employee', 'persongroup']
104
- : ['employee']
105
- "
106
- :params="isShowNextUser ? params : {}"
107
- :tabs="nextUserTabs"
108
- />
109
- </el-form-item>
110
- <el-form-item
111
- prop="nextReadUserId"
112
- v-if="isTaskread == 1"
113
- label="
114
- 分阅用户
115
- "
116
- >
117
- <SelectUser
118
- :nextUser="nextNode.nextReadUserId"
119
- :multiple="true"
120
- :selectUserList="selectReadUserList"
121
- :options="userOptions"
122
- title="分阅用户"
123
- :mix="true"
124
- :types="types"
125
- @change="changeSelectReadUser($event, 'nextReadUserId')"
126
- :tabs="tabs"
127
- />
128
- </el-form-item>
129
- <el-form-item
130
- prop="presetReadUserId"
131
- v-if="canPresetRead"
132
- label="
133
- 自动分阅
134
- "
135
- >
136
- <SelectUser
137
- :nextUser="nextNode.presetReadUserId"
138
- :multiple="true"
139
- :selectUserList="selectPresetUserList"
140
- :options="presetOptions"
141
- title="分阅用户"
142
- :radioList="presetReadUserId"
143
- :presetEdit="1"
144
- :mix="true"
145
- :types="types"
146
- @change="changeSelectReadUser($event, 'presetReadUserId')"
147
- :tabs="tabs"
148
- />
149
- </el-form-item>
150
- <el-form-item
151
- v-if="isHandleExplain == 1"
152
- prop="handleExplain"
153
- label="办理说明"
154
- >
155
- <el-input
156
- placeholder="请输入办理说明"
157
- v-model="nextNode.handleExplain"
158
- />
159
- </el-form-item>
160
- <el-form-item prop="noticeType" label="通知方式">
161
- <el-checkbox-group
162
- v-if="showNoticeType"
163
- v-model="nextNode.noticeType"
164
- >
165
- <el-checkbox
166
- v-for="item of nextNode.noticeList"
167
- :key="item.cciValue"
168
- :label="item.cciValue"
169
- :disabled="
170
- readOnlyNotificationType
171
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
172
- : false
173
- "
174
- >
175
- {{ item.shortName }}
176
- </el-checkbox>
177
- </el-checkbox-group>
178
- </el-form-item>
179
- <el-form-item
180
- v-show="nextNode.noticeType.length != 0"
181
- prop="nextNode"
182
- label="通知消息"
183
- >
184
- <es-input
185
- style="
186
- border-color: #ccc;
187
- padding: 5px;
188
- border-radius: 5px;
189
- font-size: 13px;
190
- "
191
- type="textarea"
192
- v-model="nextNode.noticeInfo"
193
- :readonly="notificationMessageReadOnly"
194
- />
195
- </el-form-item>
196
- </div>
197
- <el-form-item style="margin-bottom: 0px">
198
- <div style="text-align: right">
199
- <el-button
200
- type="primary"
201
- size="small"
202
- @click="subProcess('nextNode')"
203
- >
204
- 确认
205
- </el-button>
206
- <el-button size="small" @click="quit"> 取消 </el-button>
207
- </div>
208
- </el-form-item>
209
- </el-form>
210
- </div>
211
- </template>
212
-
213
- <script>
214
- import {
215
- toResetProcessIndex,
216
- toTaskContinuationIndex,
217
- taskContinuation,
218
- getNodeInfo,
219
- findSysCodes,
220
- getNotificationMsg,
221
- findCodeValues,
222
- loginUserInfo,
223
- resetProcess
224
- } from 'eoss-ui/src/config/api';
225
- import util from 'eoss-ui/src/utils/util';
226
- import SelectUser from './selectUser.vue';
227
- import CommonOpinions from './component/CommonOpinions.vue';
228
- export default {
229
- name: 'resetForm',
230
-
231
- components: {
232
- [Option.name]: Option,
233
- [SelectUser.name]: SelectUser,
234
- [CommonOpinions.name]: CommonOpinions
235
- },
236
- props: {
237
- flowParams: {
238
- type: Object,
239
- default: () => {}
240
- },
241
- subParams: {
242
- type: Object,
243
- default: () => {}
244
- },
245
- appId: {
246
- type: String,
247
- default: ''
248
- },
249
- type: { type: String }
250
- },
251
- data() {
252
- return {
253
- loading: false,
254
- isCustomUser: 0,
255
- selectUser: false,
256
- multiple: false,
257
- showNoticeType: false,
258
- readMultiple: true,
259
- customPresetHintMessage: '', //流程预设标题
260
- notificationMessageReadOnly: false,
261
- readOnlyNotificationType: '',
262
- show: true,
263
- radioList: [],
264
- activeNames: '',
265
- selectUserList: [],
266
- defaultNextNode: '',
267
- presetUserJson: [],
268
- isTaskread: 0, //是否显示分阅用户
269
- isHandleExplain: 0, //是否展示办理说明
270
- isOpinionRequired: 0,
271
- options: [],
272
- presetList: [],
273
- presetReadUserId: [], //自动分阅
274
- canPresetRead: false, //是否展示自动分阅
275
- nextUserTypes: ['employee', 'persongroup'],
276
- isSinglePage: false,
277
- presetEdit: 0,
278
- taskExamine: {},
279
- isDefSelectedObj: 0,
280
- isChooseNextNode: 0,
281
- isHideDefaultOperation: 0,
282
- countersignaturetypeCode: 0,
283
- presetTaskNodeKeyStr: '', //预设办理人顺序
284
- presetTaskNodeMap: {}, //预设办理人
285
- params: {
286
- filid: 'all', //选择范围(my:本单位/ "" or all:全部)
287
- selectmix: 'true1',
288
- deptid: '' //指定部门(my:本部门)
289
- },
290
- newOpinion: '',
291
- operationList: [],
292
- tabs: {
293
- employee: {
294
- param: {
295
- filid: JSON.parse(util.getStorage('mainConfig')).userModel
296
- .orgId,
297
- name: '本单位用户'
298
- }
299
- },
300
- department: {
301
- param: {
302
- filid: JSON.parse(util.getStorage('mainConfig')).userModel
303
- .orgId
304
- }
305
- }
306
- },
307
- userModel: {},
308
- nextUserTabs: {},
309
- selectPresetUserList: [],
310
- presetOptions: [],
311
- selectReadUserList: [],
312
- userOptions: [],
313
- mixReadList: [],
314
- mixPresetList: [],
315
- nodeInfoExtAttr: {},
316
- isCdjxjTaskHandle: '',
317
- isShowNextUser: true,
318
- showRoleUser: false,
319
- pendtitle: '',
320
- mixOrgIdList: [], //办理对象混选
321
- nextNode: {
322
- nodeName: '',
323
- newOpinion: '',
324
- countersignaturetypeText: '',
325
- nextNode: '',
326
- nextReadUserId: [],
327
- nextOrgId: [],
328
- noticeType: [],
329
- nextOperate: '1',
330
- nextUser: [],
331
- presetReadUserId: [], //自动分阅
332
- noticeInfo: '',
333
- nodeInfo: [],
334
- userInfo: [],
335
- handleExplain: '',
336
- noticeList: []
337
- }
338
- };
339
- },
340
- computed: {
341
- types() {
342
- if (this.isCdjxjTaskHandle == 'true') {
343
- return ['employee', 'enterprise', 'department'];
344
- } else {
345
- return ['employee', 'enterprise', 'department', 'persongroup'];
346
- }
347
- }
348
- },
349
- created() {
350
- this.getUserInfo();
351
- this.getResetFlow();
352
- },
353
- mounted() {},
354
- methods: {
355
- changeOpinion(val) {
356
- this.nextNode.newOpinion = val;
357
- },
358
- getUserInfo() {
359
- let mainConfig = util.getStorage('mainConfig');
360
- if (mainConfig) {
361
- this.userModel = JSON.parse(mainConfig).userModel;
362
- } else {
363
- util
364
- .ajax({ url: loginUserInfo })
365
- .then((res) => {
366
- const { status, data } = res;
367
- if (status == 'success') {
368
- this.userModel = data;
369
- } else {
370
- let msg = res.msg || '系统错误,请联系管理员!';
371
- this.$message.error(msg);
372
- }
373
- })
374
- .catch((err) => {
375
- if (err.message && err.message !== 'canceled') {
376
- this.$message.error(err.message);
377
- }
378
- });
379
- }
380
- },
381
- getIsShowNextUser(val) {
382
- if (
383
- val == 7 ||
384
- val == 8 ||
385
- val == 9 ||
386
- val == 10 ||
387
- val == 11 ||
388
- val == 12
389
- ) {
390
- this.isShowNextUser = false;
391
- //设置办理角色
392
- // $("#orgRoleCode").val(handleRoleId);
393
- if (val == 7 || val == 8) {
394
- this.nextUserTypes = ['department'];
395
- this.nextUserTabs = {
396
- department: {
397
- param: {
398
- filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId
399
- }
400
- }
401
- };
402
- this.multiple = true;
403
- } else if (val == 9 || val == 10) {
404
- this.nextUserTypes = ['enterprise'];
405
- this.nextUserTabs = { enterprise: { param: { filid: 'other' } } };
406
- this.multiple = true;
407
- } else if (val == 11 || val == 12) {
408
- this.nextUserTypes = ['department', 'enterprise'];
409
- this.nextUserTabs = {
410
- enterprise: { param: { filid: 'other' } },
411
- department: {
412
- param: {
413
- filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId
414
- }
415
- }
416
- };
417
- this.multiple = true;
418
- }
419
- }
420
- if (val == 7 || val == 9 || val == 11) {
421
- this.multiple = false;
422
- }
423
- },
424
- // 分阅是否多选
425
- isReadMultiple(nextReadUserSelectType) {
426
- if (nextReadUserSelectType == 1) {
427
- this.readMultiple = false;
428
- } else if (nextReadUserSelectType == 2) {
429
- this.readMultiple = true;
430
- } else if (nextReadUserSelectType == 3) {
431
- this.readMultiple = false;
432
- } else if (nextReadUserSelectType == 4) {
433
- this.readMultiple = true;
434
- } else if (nextReadUserSelectType == 5) {
435
- this.readMultiple = false;
436
- } else if (nextReadUserSelectType == 6) {
437
- this.readMultiple = true;
438
- }
439
- },
440
- changeSelectReadUser(val, type) {
441
- const { nextUser, mixList } = val;
442
- this.nextNode[type] = nextUser;
443
- if (type === 'presetReadUserId') {
444
- this.mixPresetList = mixList;
445
- } else {
446
- this.mixReadList = mixList;
447
- }
448
- },
449
- changeSelectUser(val, type) {
450
- const { nextUser, options, mixList } = val;
451
- this.nextNode[type] = nextUser;
452
- this.mixOrgIdList = mixList;
453
- },
454
- getNodeType() {
455
- util
456
- .ajax({
457
- url: findCodeValues,
458
- params: {
459
- ccCode: 'notification_type',
460
- userId: util.getStorage('userId')
461
- }
462
- })
463
- .then((res) => {
464
- const { status, data } = res;
465
- if (status === 'success') {
466
- this.nextNode.noticeList = data;
467
- this.getFind();
468
- }
469
- })
470
- .catch((err) => {
471
- this.loading = false;
472
- if (err.message && err.message !== 'canceled') {
473
- this.$message.error(err.message);
474
- }
475
- });
476
- },
477
- //获取通知信息
478
- getMessage() {
479
- let params = {
480
- processDefinitionId: this.processDefinitionId,
481
- nodeId: this.nextNode.nextNode,
482
- businessId: this.taskExamine.businessId
483
- };
484
- util
485
- .ajax({ url: getNotificationMsg, params, methods: 'post' })
486
- .then((res) => {
487
- if (res.status === 'success') {
488
- this.nextNode.noticeInfo = res.message;
489
- }
490
- })
491
- .catch((err) => {
492
- this.loading = false;
493
- if (err.message && err.message !== 'canceled') {
494
- this.$message.error(err.message);
495
- }
496
- });
497
- },
498
- // 提交表单
499
- subProcess(formName) {
500
- this.saveProcess(formName);
501
- },
502
- saveProcess(formName) {
503
- this.$refs[formName].validate((valid) => {
504
- if (valid) {
505
- const {
506
- nextNode,
507
- nextUser,
508
- noticeInfo,
509
- noticeType,
510
- handleExplain,
511
- presetReadUserId,
512
- nextReadUserId,
513
- nextOrgId,
514
- nextRoleId,
515
- nextOperate,
516
- newOpinion
517
- } = this.nextNode;
518
- if (noticeType.length === 0) {
519
- return this.$message.warning('请选择通知方式');
520
- }
521
- if (
522
- this.nodeInfoExtAttr.nodeType != 1 &&
523
- this.nodeInfoExtAttr.nodeType != 2 &&
524
- !this.showRoleUser
525
- ) {
526
- if (this.isShowNextUser) {
527
- if (nextUser == '' || (this.multiple && nextUser.length == 0)) {
528
- return this.$message.warning('请选择下步办理人');
529
- }
530
- } else {
531
- if (nextOrgId == '' || (this.multiple && nextOrgId.length == 0)) {
532
- return this.$message.warning('请选择办理对象');
533
- }
534
- }
535
- }
536
- if (
537
- (this.showRoleUser && nextRoleId == '') ||
538
- (this.multiple && nextUser.length == 0)
539
- ) {
540
- return this.$message.warning('请选择办理角色');
541
- }
542
- if (this.isOpinionRequired && !this.newOpinion && !newOpinion) {
543
- return this.$message.warning('请选择输入审批意见');
544
- }
545
- this.loading = true;
546
- let newNextUser = [];
547
- if (this.multiple) {
548
- nextUser && nextUser.map((item) => newNextUser.push(item));
549
- }
550
- let newNoticeType = '';
551
- if (noticeType) {
552
- newNoticeType = noticeType.join(',');
553
- }
554
- let params = {
555
- processDefinitionId: this.processDefinitionId,
556
- nextUserId: this.multiple ? newNextUser.join(',') : nextUser,
557
- nextNodeId: nextNode,
558
- nextOperate: nextOperate,
559
- businessId: this.taskExamine.businessId,
560
- pendingId: this.taskExamine.pendingId,
561
- notificationType: newNoticeType,
562
- userId: util.getStorage('userId'),
563
- notificationMsg: noticeInfo,
564
- customPresetUserJson: JSON.stringify(this.presetList),
565
- presetUserJson: JSON.stringify(this.presetUserJson),
566
- nextReadUserId: this.readMultiple
567
- ? this.mixReadList && this.mixReadList.join('|')
568
- : nextReadUserId,
569
- nextOrgId: !this.isShowNextUser
570
- ? this.multiple
571
- ? this.mixOrgIdList && this.mixOrgIdList.join('|')
572
- : nextOrgId
573
- : '',
574
- handleExplain: handleExplain,
575
- presetReadUserId:
576
- this.mixPresetList && this.mixPresetList.length > 0
577
- ? this.mixPresetList.join('|')
578
- : presetReadUserId.join(','),
579
- opinion: this.newOpinion || newOpinion,
580
- ...this.subParams
581
- };
582
- if (this.activeNames != '1') delete params.customPresetUserJson;
583
- util
584
- .ajax({
585
- url: this.type == 'reset' ? resetProcess : taskContinuation,
586
- method: 'post',
587
- data: params
588
- })
589
- .then((res) => {
590
- const { status, message } = res;
591
- this.loading = false;
592
- if (status === 'success') {
593
- this.quit(true);
594
- this.$message.success('操作成功');
595
- } else {
596
- this.$message.error(message || '系统错误,请联系管理员!');
597
- }
598
- })
599
- .catch((err) => {
600
- this.loading = false;
601
- if (err.message && err.message !== 'canceled') {
602
- this.$message.error(err.message);
603
- }
604
- });
605
- } else {
606
- return false;
607
- }
608
- });
609
- },
610
- getNodeInfos(nodeId, index) {
611
- let params = {
612
- processDefinitionId: this.processDefinitionId,
613
- nextNodeId: nodeId ? nodeId : this.nextNode.nextNode,
614
- businessId: this.taskExamine.businessId,
615
- pendingId: this.taskExamine.pendingId
616
- };
617
- util
618
- .ajax({ url: getNodeInfo, params })
619
- .then((res) => {
620
- const {
621
- status,
622
- message,
623
- data: {
624
- nextUserList,
625
- nodeExtAttr,
626
- countersignaturetypeText,
627
- countersignaturetypeCode
628
- }
629
- } = res;
630
- this.loading = false;
631
- if (status === 'success') {
632
- this.nextNode.userInfo = nextUserList;
633
- this.countersignaturetypeCode = countersignaturetypeCode;
634
- this.nextNode.countersignaturetypeText = countersignaturetypeText;
635
- this.isTaskread = nodeExtAttr.isTaskread;
636
- this.isHandleExplain = nodeExtAttr.isHandleExplain;
637
- this.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
638
- this.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
639
- this.nodeInfoExtAttr = nodeExtAttr;
640
- this.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
641
-
642
- if (
643
- nodeExtAttr.userSelectionType == 7 ||
644
- nodeExtAttr.userSelectionType == 8 ||
645
- nodeExtAttr.userSelectionType == 9 ||
646
- nodeExtAttr.userSelectionType == 10 ||
647
- nodeExtAttr.userSelectionType == 11 ||
648
- nodeExtAttr.userSelectionType == 12
649
- ) {
650
- this.getIsShowNextUser(
651
- nodeExtAttr && nodeExtAttr.userSelectionType
652
- );
653
- } else if (
654
- nodeExtAttr.userSelectionType == 13 ||
655
- nodeExtAttr.userSelectionType == 14
656
- ) {
657
- this.showRoleUser = true;
658
- if (data.nextRole) {
659
- this.radioList = [
660
- { showid: data.nextRole.id, showname: data.nextRole.rolename }
661
- ];
662
- if (this.isDefSelectedObj == 1) {
663
- this.nextNode.nextRoleId.push(data.nextRole.id);
664
- this.selectUserList.push({
665
- showname: data.nextRole.rolename,
666
- showid: data.nextRole.id
667
- });
668
- }
669
- }
670
- } else {
671
- const { multiple, params } = this.isMultiple(
672
- nodeExtAttr.userSelectionType
673
- );
674
- this.multiple = multiple;
675
- this.params = params;
676
- }
677
- // this.isReadMultiple(nodeExtAttr.userSelectionType);
678
-
679
- nextUserList.map((item) => {
680
- if (
681
- this.multiple &&
682
- nodeExtAttr.isDefSelectedObj == 1 &&
683
- nextUserList !== undefined
684
- ) {
685
- this.nextNode.nextUser.push(item.userId);
686
- this.selectUserList.push({
687
- showname: item.username,
688
- showid: item.userId
689
- });
690
- }
691
-
692
- this.options.push({
693
- showname: item.username,
694
- showid: item.userId
695
- });
696
- });
697
- if (this.multiple) {
698
- this.nextNode.nextReadUserId = [];
699
- } else {
700
- this.nextNode.nextReadUserId = '';
701
- }
702
- if (
703
- nextUserList.length > 0 &&
704
- nodeExtAttr.isDefSelectedObj == 1 &&
705
- !this.multiple
706
- ) {
707
- this.nextNode.nextUser = nextUserList[0].userId;
708
- this.selectUserList.push({
709
- showname: nextUserList[0].username,
710
- showid: nextUserList[0].userId
711
- });
712
- }
713
- this.radioList = this.options;
714
- } else {
715
- this.$message.error(message || '系统错误,请联系管理员!');
716
- }
717
- nodeId && this.$refs.selectUser[index].changeInfo();
718
- })
719
- .catch((err) => {
720
- this.loading = false;
721
- if (err.message && err.message !== 'canceled') {
722
- this.$message.error(err.message);
723
- }
724
- });
725
- },
726
- changeSel(val) {
727
- this.nextNode.nextUser = [];
728
- this.options = [];
729
- this.selectUserList = [];
730
- this.radioList = [];
731
- this.loading = true;
732
- this.getNodeInfos();
733
- },
734
- // 取消
735
- quit(val) {
736
- if (val === true) return this.$emit('cancel', val);
737
- this.$emit('cancel', false);
738
- },
739
- getFind() {
740
- util
741
- .ajax({
742
- url: findSysCodes
743
- })
744
- .then((res) => {
745
- const { status, message } = res;
746
- if (status === 'success') {
747
- this.nextNode.noticeType = message.split(',');
748
- let arr = [];
749
- this.nextNode.noticeList.map((item) => {
750
- this.nextNode.noticeType.map((x) => {
751
- if (x == item.cciValue) {
752
- arr.push(x);
753
- }
754
- });
755
- });
756
- this.nextNode.noticeType = arr;
757
- this.showNoticeType = true;
758
- } else {
759
- this.$message.error(message || '系统错误,请联系管理员!');
760
- }
761
- })
762
- .catch((err) => {
763
- this.loading = false;
764
- if (err.message && err.message !== 'canceled') {
765
- this.$message.error(err.message);
766
- }
767
- });
768
- },
769
- /**
770
- * isMultiple
771
- * @desc:是否多选
772
- * @author liufan
773
- * @date 2022年9月13日
774
- **/
775
- isMultiple(val, choiceOrgId, choiceDeptId, pOrgId) {
776
- let multiple = false;
777
- let params = {};
778
- if (val == 2 || val == 4 || val == 6 || val == 16 || val == 12) {
779
- multiple = true;
780
- }
781
- if (val == 1 || val == 2 || val == 5) {
782
- params.filid = this.userModel.orgId;
783
- params.only_filid = true;
784
- if (choiceOrgId) {
785
- params.filid = choiceOrgId;
786
- }
787
- }
788
- if (val == 5 || val == 6) {
789
- params.filid = this.userModel.orgId;
790
- params.deptid = this.userModel.orgId;
791
- if (choiceDeptId) {
792
- params.deptid = choiceDeptId;
793
- }
794
- if (choiceOrgId) {
795
- params.filid = choiceOrgId;
796
- }
797
- }
798
- if (val == 15 || val == 16) {
799
- params.filid = this.userModel.orgId;
800
- if (pOrgId) {
801
- params.filid = pOrgId;
802
- }
803
- }
804
- return { multiple, params };
805
- },
806
- getResetFlow() {
807
- let params = {
808
- url:
809
- this.type == 'continuation'
810
- ? toTaskContinuationIndex
811
- : toResetProcessIndex,
812
- params: {
813
- appId: this.appId,
814
- ...this.flowParams
815
- }
816
- };
817
- this.loading = true;
818
- // 获取节点
819
- util
820
- .ajax(params)
821
- .then((res) => {
822
- //pc接口返回数据处理
823
- this.loading = false;
824
- const { status, message, data } = res;
825
- if (status == 'success') {
826
- this.pendtitle = data.pendtitle || data.taskExamine.businessName;
827
- this.customPresetHintMessage = data.customPresetHintMessage;
828
- this.readOnlyNotificationType = data.readOnlyNotificationType;
829
- this.notificationMessageReadOnly =
830
- data.notificationMessageReadOnly == 'true';
831
- let flowList = [];
832
- if (data.taskNodeList && data.taskNodeList.length > 0) {
833
- for (let key in data.taskNodeList[0]) {
834
- flowList.push({
835
- nodeName: data.taskNodeList[0][key],
836
- nodeId: key
837
- });
838
- }
839
- } else {
840
- for (let key in data.taskNodeMap) {
841
- flowList.push({
842
- nodeName: data.taskNodeMap[key],
843
- nodeId: key
844
- });
845
- }
846
- }
847
-
848
- this.nextNode.nodeInfo = flowList;
849
- this.nextNode.nextNode = flowList[0].nodeId;
850
- this.taskExamine = data.taskExamine;
851
- this.processDefinitionId = data.taskExamine.processDefinitionId;
852
- this.isOpinionRequired =
853
- data.nodeInfoMap.nodeExtAttr.isOpinionRequired;
854
- this.isHideDefaultOperation =
855
- data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
856
- this.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
857
- this.isChooseNextNode =
858
- data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
859
- this.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
860
- this.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
861
- this.presetTaskNodeMap = data.presetTaskNodeMap;
862
- this.isSinglePage = data.taskExamine.isSinglePage;
863
- this.isSinglePage &&
864
- (this.nextNode.opinion = data.taskExamine.opinion);
865
- // this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
866
- this.nextNode.nodeName = data.taskExamine.nodeName;
867
- this.canPresetRead = data.canPresetRead;
868
- if (data.canPresetRead) {
869
- let ids =
870
- data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
871
- let names =
872
- data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(
873
- ','
874
- );
875
- ids.map((item, index) => {
876
- this.presetReadUserId.push({
877
- showid: item,
878
- showname: names[index]
879
- });
880
- this.selectPresetUserList.push({
881
- showid: item,
882
- showname: names[index]
883
- });
884
- this.nextNode.presetReadUserId.push(item);
885
- });
886
- }
887
- this.getNodeInfos();
888
- // this.getPresetFlowInfo();
889
-
890
- this.getNodeType();
891
- this.getMessage();
892
- } else {
893
- this.$message.error(message || '系统错误,请联系管理员!');
894
- }
895
- })
896
- .catch((err) => {
897
- this.loading = false;
898
- if (err.message && err.message !== 'canceled') {
899
- this.$message.error(err.message);
900
- }
901
- });
902
- }
903
- }
904
- };
905
- </script>
1
+ <template>
2
+ <div
3
+ v-loading="loading"
4
+ class="es-flow-form"
5
+ element-loading-text="加载中..."
6
+ element-loading-spinner="el-icon-loading"
7
+ element-loading-background="rgba(255, 255,255, 0.8)"
8
+ style="height: 100%"
9
+ >
10
+ <el-form
11
+ ref="nextNode"
12
+ :model="nextNode"
13
+ class="es-reset-flow demo-dynamic"
14
+ label-width="100px"
15
+ label-position="left"
16
+ >
17
+ <div class="es-reset-flow-form-box">
18
+ <el-form-item prop="nodeName" label="标题">
19
+ <el-input v-model="pendtitle" disabled />
20
+ </el-form-item>
21
+ <el-form-item prop="nodeName" label="当前步骤">
22
+ <el-input v-model="nextNode.nodeName" disabled />
23
+ </el-form-item>
24
+ <el-form-item prop="newOpinion" label="意见">
25
+ <CommonOpinions class="opinions" :rows="3" @change="changeOpinion" />
26
+ </el-form-item>
27
+ <el-form-item
28
+ prop="nextNode"
29
+ label="下步节点"
30
+ :rules="[
31
+ { required: true, message: `请选择下步节点`, trigger: 'blur' }
32
+ ]"
33
+ >
34
+ <el-select
35
+ v-if="nextNodeCheckType == 'select'"
36
+ v-model="nextNode.nextNode"
37
+ :placeholder="`请选择下步节点`"
38
+ @change="changeSel"
39
+ >
40
+ <el-option
41
+ v-for="items in nextNode.nodeInfo"
42
+ :key="items.nodeId"
43
+ :label="items.nodeName"
44
+ :value="items.nodeId"
45
+ ></el-option>
46
+ </el-select>
47
+ <es-radio-group
48
+ v-else-if="nextNodeCheckType == 'radio'"
49
+ v-model="nextNode.nextNode"
50
+ :data="nextNode.nodeInfo"
51
+ @change="changeSel"
52
+ value-key="nodeId"
53
+ label-key="nodeName"
54
+ ></es-radio-group>
55
+ </el-form-item>
56
+ <el-form-item
57
+ v-if="countersignaturetypeCode != 0"
58
+ prop="countersignaturetypeText"
59
+ label="处理方式"
60
+ >
61
+ <el-input
62
+ v-model="nextNode.countersignaturetypeText"
63
+ placeholder="请输入内容"
64
+ disabled
65
+ />
66
+ </el-form-item>
67
+ <el-form-item prop="nextNode" label="办理角色" v-if="showRoleUser">
68
+ <SelectUser
69
+ :nextUser="nextNode.nextRoleId"
70
+ :radioList="radioList"
71
+ :multiple="multiple"
72
+ :isCustomUser="isCustomUser"
73
+ :options="options"
74
+ :presetEdit="presetEdit"
75
+ :isDefSelectedObj="isDefSelectedObj"
76
+ :selectUserList="selectUserList"
77
+ @change="changeSelectUser"
78
+ :types="nextUserTypes"
79
+ :params="params"
80
+ />
81
+ </el-form-item>
82
+ <!-- showRoleUser -->
83
+ <el-form-item
84
+ v-if="
85
+ !showRoleUser &&
86
+ nodeInfoExtAttr.nodeType != 1 &&
87
+ nodeInfoExtAttr.nodeType != 2
88
+ "
89
+ :prop="isShowNextUser ? 'nextUser' : 'nextOrgId'"
90
+ :label="isShowNextUser ? '下步办理人' : '办理对象'"
91
+ >
92
+ <SelectUser
93
+ :nextUser="isShowNextUser ? nextNode.nextUser : nextNode.nextOrgId"
94
+ :radioList="radioList"
95
+ :multiple="multiple"
96
+ :isCustomUser="!isShowNextUser ? 1 : isCustomUser"
97
+ :options="options"
98
+ :presetEdit="presetEdit"
99
+ :mix="multiple"
100
+ :isDefSelectedObj="isDefSelectedObj"
101
+ :selectUserList="selectUserList"
102
+ @change="
103
+ changeSelectUser(
104
+ $event,
105
+ isShowNextUser ? 'nextUser' : 'nextOrgId'
106
+ )
107
+ "
108
+ :types="
109
+ !isShowNextUser
110
+ ? nextUserTypes
111
+ : isCdjxjTaskHandle != 'true'
112
+ ? ['employee', 'persongroup']
113
+ : ['employee']
114
+ "
115
+ :params="isShowNextUser ? params : {}"
116
+ :tabs="nextUserTabs"
117
+ />
118
+ </el-form-item>
119
+ <el-form-item
120
+ prop="nextReadUserId"
121
+ v-if="isTaskread == 1"
122
+ label="
123
+ 分阅用户
124
+ "
125
+ >
126
+ <SelectUser
127
+ :nextUser="nextNode.nextReadUserId"
128
+ :multiple="true"
129
+ :selectUserList="selectReadUserList"
130
+ :options="userOptions"
131
+ title="分阅用户"
132
+ :mix="true"
133
+ :types="types"
134
+ @change="changeSelectReadUser($event, 'nextReadUserId')"
135
+ :tabs="tabs"
136
+ />
137
+ </el-form-item>
138
+ <el-form-item
139
+ prop="presetReadUserId"
140
+ v-if="canPresetRead"
141
+ label="
142
+ 自动分阅
143
+ "
144
+ >
145
+ <SelectUser
146
+ :nextUser="nextNode.presetReadUserId"
147
+ :multiple="true"
148
+ :selectUserList="selectPresetUserList"
149
+ :options="presetOptions"
150
+ title="分阅用户"
151
+ :radioList="presetReadUserId"
152
+ :presetEdit="1"
153
+ :mix="true"
154
+ :types="types"
155
+ @change="changeSelectReadUser($event, 'presetReadUserId')"
156
+ :tabs="tabs"
157
+ />
158
+ </el-form-item>
159
+ <el-form-item
160
+ v-if="isHandleExplain == 1"
161
+ prop="handleExplain"
162
+ label="办理说明"
163
+ >
164
+ <el-input
165
+ placeholder="请输入办理说明"
166
+ v-model="nextNode.handleExplain"
167
+ />
168
+ </el-form-item>
169
+ <el-form-item prop="noticeType" label="通知方式">
170
+ <el-checkbox-group
171
+ v-if="showNoticeType"
172
+ v-model="nextNode.noticeType"
173
+ >
174
+ <el-checkbox
175
+ v-for="item of nextNode.noticeList"
176
+ :key="item.cciValue"
177
+ :label="item.cciValue"
178
+ :disabled="
179
+ readOnlyNotificationType
180
+ ? readOnlyNotificationType.indexOf(item.cciValue) != -1
181
+ : false
182
+ "
183
+ >
184
+ {{ item.shortName }}
185
+ </el-checkbox>
186
+ </el-checkbox-group>
187
+ </el-form-item>
188
+ <el-form-item
189
+ v-show="nextNode.noticeType.length != 0"
190
+ prop="nextNode"
191
+ label="通知消息"
192
+ >
193
+ <es-input
194
+ style="
195
+ border-color: #ccc;
196
+ padding: 5px;
197
+ border-radius: 5px;
198
+ font-size: 13px;
199
+ "
200
+ type="textarea"
201
+ v-model="nextNode.noticeInfo"
202
+ :readonly="notificationMessageReadOnly"
203
+ />
204
+ </el-form-item>
205
+ </div>
206
+ <el-form-item style="margin-bottom: 0px">
207
+ <div style="text-align: right">
208
+ <el-button
209
+ type="primary"
210
+ size="small"
211
+ @click="subProcess('nextNode')"
212
+ >
213
+ 确认
214
+ </el-button>
215
+ <el-button size="small" @click="quit"> 取消 </el-button>
216
+ </div>
217
+ </el-form-item>
218
+ </el-form>
219
+ </div>
220
+ </template>
221
+
222
+ <script>
223
+ import {
224
+ toResetProcessIndex,
225
+ toTaskContinuationIndex,
226
+ taskContinuation,
227
+ getNodeInfo,
228
+ findSysCodes,
229
+ getNotificationMsg,
230
+ findCodeValues,
231
+ loginUserInfo,
232
+ resetProcess
233
+ } from 'eoss-ui/src/config/api';
234
+ import util from 'eoss-ui/src/utils/util';
235
+ import SelectUser from './selectUser.vue';
236
+ import CommonOpinions from './component/CommonOpinions.vue';
237
+ export default {
238
+ name: 'resetForm',
239
+
240
+ components: {
241
+ [Option.name]: Option,
242
+ [SelectUser.name]: SelectUser,
243
+ [CommonOpinions.name]: CommonOpinions
244
+ },
245
+ props: {
246
+ flowParams: {
247
+ type: Object,
248
+ default: () => {}
249
+ },
250
+ subParams: {
251
+ type: Object,
252
+ default: () => {}
253
+ },
254
+ appId: {
255
+ type: String,
256
+ default: ''
257
+ },
258
+ type: { type: String }
259
+ },
260
+ data() {
261
+ return {
262
+ loading: false,
263
+ isCustomUser: 0,
264
+ selectUser: false,
265
+ nextNodeCheckType: 'select',
266
+ multiple: false,
267
+ showNoticeType: false,
268
+ readMultiple: true,
269
+ customPresetHintMessage: '', //流程预设标题
270
+ notificationMessageReadOnly: false,
271
+ readOnlyNotificationType: '',
272
+ show: true,
273
+ radioList: [],
274
+ activeNames: '',
275
+ selectUserList: [],
276
+ defaultNextNode: '',
277
+ presetUserJson: [],
278
+ isTaskread: 0, //是否显示分阅用户
279
+ isHandleExplain: 0, //是否展示办理说明
280
+ isOpinionRequired: 0,
281
+ options: [],
282
+ presetList: [],
283
+ presetReadUserId: [], //自动分阅
284
+ canPresetRead: false, //是否展示自动分阅
285
+ nextUserTypes: ['employee', 'persongroup'],
286
+ isSinglePage: false,
287
+ presetEdit: 0,
288
+ taskExamine: {},
289
+ isDefSelectedObj: 0,
290
+ isChooseNextNode: 0,
291
+ isHideDefaultOperation: 0,
292
+ countersignaturetypeCode: 0,
293
+ presetTaskNodeKeyStr: '', //预设办理人顺序
294
+ presetTaskNodeMap: {}, //预设办理人
295
+ params: {
296
+ filid: 'all', //选择范围(my:本单位/ "" or all:全部)
297
+ selectmix: 'true1',
298
+ deptid: '' //指定部门(my:本部门)
299
+ },
300
+ newOpinion: '',
301
+ operationList: [],
302
+ tabs: {
303
+ employee: {
304
+ param: {
305
+ filid: JSON.parse(util.getStorage('mainConfig')).userModel
306
+ .orgId,
307
+ name: '本单位用户'
308
+ }
309
+ },
310
+ department: {
311
+ param: {
312
+ filid: JSON.parse(util.getStorage('mainConfig')).userModel
313
+ .orgId
314
+ }
315
+ }
316
+ },
317
+ userModel: {},
318
+ nextUserTabs: {},
319
+ selectPresetUserList: [],
320
+ presetOptions: [],
321
+ selectReadUserList: [],
322
+ userOptions: [],
323
+ mixReadList: [],
324
+ mixPresetList: [],
325
+ nodeInfoExtAttr: {},
326
+ isCdjxjTaskHandle: '',
327
+ isShowNextUser: true,
328
+ showRoleUser: false,
329
+ pendtitle: '',
330
+ mixOrgIdList: [], //办理对象混选
331
+ nextNode: {
332
+ nodeName: '',
333
+ newOpinion: '',
334
+ countersignaturetypeText: '',
335
+ nextNode: '',
336
+ nextReadUserId: [],
337
+ nextOrgId: [],
338
+ noticeType: [],
339
+ nextOperate: '1',
340
+ nextUser: [],
341
+ presetReadUserId: [], //自动分阅
342
+ noticeInfo: '',
343
+ nodeInfo: [],
344
+ userInfo: [],
345
+ handleExplain: '',
346
+ noticeList: []
347
+ }
348
+ };
349
+ },
350
+ computed: {
351
+ types() {
352
+ if (this.isCdjxjTaskHandle == 'true') {
353
+ return ['employee', 'enterprise', 'department'];
354
+ } else {
355
+ return ['employee', 'enterprise', 'department', 'persongroup'];
356
+ }
357
+ }
358
+ },
359
+ created() {
360
+ this.getUserInfo();
361
+ this.getResetFlow();
362
+ },
363
+ mounted() {},
364
+ methods: {
365
+ changeOpinion(val) {
366
+ this.nextNode.newOpinion = val;
367
+ },
368
+ getUserInfo() {
369
+ let mainConfig = util.getStorage('mainConfig');
370
+ if (mainConfig) {
371
+ this.userModel = JSON.parse(mainConfig).userModel;
372
+ } else {
373
+ util
374
+ .ajax({ url: loginUserInfo })
375
+ .then((res) => {
376
+ const { status, data } = res;
377
+ if (status == 'success') {
378
+ this.userModel = data;
379
+ } else {
380
+ let msg = res.msg || '系统错误,请联系管理员!';
381
+ this.$message.error(msg);
382
+ }
383
+ })
384
+ .catch((err) => {
385
+ if (err.message && err.message !== 'canceled') {
386
+ this.$message.error(err.message);
387
+ }
388
+ });
389
+ }
390
+ },
391
+ getIsShowNextUser(val) {
392
+ if (
393
+ val == 7 ||
394
+ val == 8 ||
395
+ val == 9 ||
396
+ val == 10 ||
397
+ val == 11 ||
398
+ val == 12
399
+ ) {
400
+ this.isShowNextUser = false;
401
+ //设置办理角色
402
+ // $("#orgRoleCode").val(handleRoleId);
403
+ if (val == 7 || val == 8) {
404
+ this.nextUserTypes = ['department'];
405
+ this.nextUserTabs = {
406
+ department: {
407
+ param: {
408
+ filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId
409
+ }
410
+ }
411
+ };
412
+ this.multiple = true;
413
+ } else if (val == 9 || val == 10) {
414
+ this.nextUserTypes = ['enterprise'];
415
+ this.nextUserTabs = { enterprise: { param: { filid: 'other' } } };
416
+ this.multiple = true;
417
+ } else if (val == 11 || val == 12) {
418
+ this.nextUserTypes = ['department', 'enterprise'];
419
+ this.nextUserTabs = {
420
+ enterprise: { param: { filid: 'other' } },
421
+ department: {
422
+ param: {
423
+ filid: JSON.parse(util.getStorage('mainConfig')).userModel.orgId
424
+ }
425
+ }
426
+ };
427
+ this.multiple = true;
428
+ }
429
+ }
430
+ if (val == 7 || val == 9 || val == 11) {
431
+ this.multiple = false;
432
+ }
433
+ },
434
+ // 分阅是否多选
435
+ isReadMultiple(nextReadUserSelectType) {
436
+ if (nextReadUserSelectType == 1) {
437
+ this.readMultiple = false;
438
+ } else if (nextReadUserSelectType == 2) {
439
+ this.readMultiple = true;
440
+ } else if (nextReadUserSelectType == 3) {
441
+ this.readMultiple = false;
442
+ } else if (nextReadUserSelectType == 4) {
443
+ this.readMultiple = true;
444
+ } else if (nextReadUserSelectType == 5) {
445
+ this.readMultiple = false;
446
+ } else if (nextReadUserSelectType == 6) {
447
+ this.readMultiple = true;
448
+ }
449
+ },
450
+ changeSelectReadUser(val, type) {
451
+ const { nextUser, mixList } = val;
452
+ this.nextNode[type] = nextUser;
453
+ if (type === 'presetReadUserId') {
454
+ this.mixPresetList = mixList;
455
+ } else {
456
+ this.mixReadList = mixList;
457
+ }
458
+ },
459
+ changeSelectUser(val, type) {
460
+ const { nextUser, options, mixList } = val;
461
+ this.nextNode[type] = nextUser;
462
+ this.mixOrgIdList = mixList;
463
+ },
464
+ getNodeType() {
465
+ util
466
+ .ajax({
467
+ url: findCodeValues,
468
+ params: {
469
+ ccCode: 'notification_type',
470
+ userId: util.getStorage('userId')
471
+ }
472
+ })
473
+ .then((res) => {
474
+ const { status, data } = res;
475
+ if (status === 'success') {
476
+ this.nextNode.noticeList = data;
477
+ this.getFind();
478
+ }
479
+ })
480
+ .catch((err) => {
481
+ this.loading = false;
482
+ if (err.message && err.message !== 'canceled') {
483
+ this.$message.error(err.message);
484
+ }
485
+ });
486
+ },
487
+ //获取通知信息
488
+ getMessage() {
489
+ let params = {
490
+ processDefinitionId: this.processDefinitionId,
491
+ nodeId: this.nextNode.nextNode,
492
+ businessId: this.taskExamine.businessId
493
+ };
494
+ util
495
+ .ajax({ url: getNotificationMsg, params, methods: 'post' })
496
+ .then((res) => {
497
+ if (res.status === 'success') {
498
+ this.nextNode.noticeInfo = res.message;
499
+ }
500
+ })
501
+ .catch((err) => {
502
+ this.loading = false;
503
+ if (err.message && err.message !== 'canceled') {
504
+ this.$message.error(err.message);
505
+ }
506
+ });
507
+ },
508
+ // 提交表单
509
+ subProcess(formName) {
510
+ this.saveProcess(formName);
511
+ },
512
+ saveProcess(formName) {
513
+ this.$refs[formName].validate((valid) => {
514
+ if (valid) {
515
+ const {
516
+ nextNode,
517
+ nextUser,
518
+ noticeInfo,
519
+ noticeType,
520
+ handleExplain,
521
+ presetReadUserId,
522
+ nextReadUserId,
523
+ nextOrgId,
524
+ nextRoleId,
525
+ nextOperate,
526
+ newOpinion
527
+ } = this.nextNode;
528
+ if (noticeType.length === 0) {
529
+ return this.$message.warning('请选择通知方式');
530
+ }
531
+ if (
532
+ this.nodeInfoExtAttr.nodeType != 1 &&
533
+ this.nodeInfoExtAttr.nodeType != 2 &&
534
+ !this.showRoleUser
535
+ ) {
536
+ if (this.isShowNextUser) {
537
+ if (nextUser == '' || (this.multiple && nextUser.length == 0)) {
538
+ return this.$message.warning('请选择下步办理人');
539
+ }
540
+ } else {
541
+ if (nextOrgId == '' || (this.multiple && nextOrgId.length == 0)) {
542
+ return this.$message.warning('请选择办理对象');
543
+ }
544
+ }
545
+ }
546
+ if (
547
+ (this.showRoleUser && nextRoleId == '') ||
548
+ (this.multiple && nextUser.length == 0)
549
+ ) {
550
+ return this.$message.warning('请选择办理角色');
551
+ }
552
+ if (this.isOpinionRequired && !this.newOpinion && !newOpinion) {
553
+ return this.$message.warning('请选择输入审批意见');
554
+ }
555
+ this.loading = true;
556
+ let newNextUser = [];
557
+ if (this.multiple) {
558
+ nextUser && nextUser.map((item) => newNextUser.push(item));
559
+ }
560
+ let newNoticeType = '';
561
+ if (noticeType) {
562
+ newNoticeType = noticeType.join(',');
563
+ }
564
+ let params = {
565
+ processDefinitionId: this.processDefinitionId,
566
+ nextUserId: this.multiple ? newNextUser.join(',') : nextUser,
567
+ nextNodeId: nextNode,
568
+ appId:this.appId,
569
+ nextOperate: nextOperate,
570
+ businessId: this.taskExamine.businessId,
571
+ pendingId: this.taskExamine.pendingId,
572
+ notificationType: newNoticeType,
573
+ userId: util.getStorage('userId'),
574
+ notificationMsg: noticeInfo,
575
+ customPresetUserJson: JSON.stringify(this.presetList),
576
+ presetUserJson: JSON.stringify(this.presetUserJson),
577
+ nextReadUserId: this.readMultiple
578
+ ? this.mixReadList && this.mixReadList.join('|')
579
+ : nextReadUserId,
580
+ nextOrgId: !this.isShowNextUser
581
+ ? this.multiple
582
+ ? this.mixOrgIdList && this.mixOrgIdList.join('|')
583
+ : nextOrgId
584
+ : '',
585
+ handleExplain: handleExplain,
586
+ presetReadUserId:
587
+ this.mixPresetList && this.mixPresetList.length > 0
588
+ ? this.mixPresetList.join('|')
589
+ : presetReadUserId.join(','),
590
+ opinion: this.newOpinion || newOpinion,
591
+ ...this.subParams
592
+ };
593
+ if (this.activeNames != '1') delete params.customPresetUserJson;
594
+ util
595
+ .ajax({
596
+ url: this.type == 'reset' ? resetProcess : taskContinuation,
597
+ method: 'post',
598
+ data: params
599
+ })
600
+ .then((res) => {
601
+ const { status, message } = res;
602
+ this.loading = false;
603
+ if (status === 'success') {
604
+ this.quit(true);
605
+ this.$message.success('操作成功');
606
+ } else {
607
+ this.$message.error(message || '系统错误,请联系管理员!');
608
+ }
609
+ })
610
+ .catch((err) => {
611
+ this.loading = false;
612
+ if (err.message && err.message !== 'canceled') {
613
+ this.$message.error(err.message);
614
+ }
615
+ });
616
+ } else {
617
+ return false;
618
+ }
619
+ });
620
+ },
621
+ getNodeInfos(nodeId, index) {
622
+ let params = {
623
+ processDefinitionId: this.processDefinitionId,
624
+ nextNodeId: nodeId ? nodeId : this.nextNode.nextNode,
625
+ businessId: this.taskExamine.businessId,
626
+ pendingId: this.taskExamine.pendingId
627
+ };
628
+ util
629
+ .ajax({ url: getNodeInfo, params })
630
+ .then((res) => {
631
+ const {
632
+ status,
633
+ message,
634
+ data: {
635
+ nextUserList,
636
+ nodeExtAttr,
637
+ countersignaturetypeText,
638
+ countersignaturetypeCode
639
+ }
640
+ } = res;
641
+ this.loading = false;
642
+ if (status === 'success') {
643
+ this.nextNode.userInfo = nextUserList;
644
+ this.countersignaturetypeCode = countersignaturetypeCode;
645
+ this.nextNode.countersignaturetypeText = countersignaturetypeText;
646
+ this.isTaskread = nodeExtAttr.isTaskread;
647
+ this.isHandleExplain = nodeExtAttr.isHandleExplain;
648
+ this.isCustomUser = nodeExtAttr.isCustomUser; //是否展示选人组件按钮
649
+ this.presetEdit = nodeExtAttr.presetEdit; //是否展示备选人
650
+ this.nodeInfoExtAttr = nodeExtAttr;
651
+ this.isDefSelectedObj = nodeExtAttr.isDefSelectedObj; //是否默认选中
652
+
653
+ if (
654
+ nodeExtAttr.userSelectionType == 7 ||
655
+ nodeExtAttr.userSelectionType == 8 ||
656
+ nodeExtAttr.userSelectionType == 9 ||
657
+ nodeExtAttr.userSelectionType == 10 ||
658
+ nodeExtAttr.userSelectionType == 11 ||
659
+ nodeExtAttr.userSelectionType == 12
660
+ ) {
661
+ this.getIsShowNextUser(
662
+ nodeExtAttr && nodeExtAttr.userSelectionType
663
+ );
664
+ } else if (
665
+ nodeExtAttr.userSelectionType == 13 ||
666
+ nodeExtAttr.userSelectionType == 14
667
+ ) {
668
+ this.showRoleUser = true;
669
+ if (data.nextRole) {
670
+ this.radioList = [
671
+ { showid: data.nextRole.id, showname: data.nextRole.rolename }
672
+ ];
673
+ if (this.isDefSelectedObj == 1) {
674
+ this.nextNode.nextRoleId.push(data.nextRole.id);
675
+ this.selectUserList.push({
676
+ showname: data.nextRole.rolename,
677
+ showid: data.nextRole.id
678
+ });
679
+ }
680
+ }
681
+ } else {
682
+ const { multiple, params } = this.isMultiple(
683
+ nodeExtAttr.userSelectionType
684
+ );
685
+ this.multiple = multiple;
686
+ this.params = params;
687
+ }
688
+ // this.isReadMultiple(nodeExtAttr.userSelectionType);
689
+
690
+ nextUserList.map((item) => {
691
+ if (
692
+ this.multiple &&
693
+ nodeExtAttr.isDefSelectedObj == 1 &&
694
+ nextUserList !== undefined
695
+ ) {
696
+ this.nextNode.nextUser.push(item.userId);
697
+ this.selectUserList.push({
698
+ showname: item.username,
699
+ showid: item.userId
700
+ });
701
+ }
702
+
703
+ this.options.push({
704
+ showname: item.username,
705
+ showid: item.userId
706
+ });
707
+ });
708
+ if (this.multiple) {
709
+ this.nextNode.nextReadUserId = [];
710
+ } else {
711
+ this.nextNode.nextReadUserId = '';
712
+ }
713
+ if (
714
+ nextUserList.length > 0 &&
715
+ nodeExtAttr.isDefSelectedObj == 1 &&
716
+ !this.multiple
717
+ ) {
718
+ this.nextNode.nextUser = nextUserList[0].userId;
719
+ this.selectUserList.push({
720
+ showname: nextUserList[0].username,
721
+ showid: nextUserList[0].userId
722
+ });
723
+ }
724
+ this.radioList = this.options;
725
+ } else {
726
+ this.$message.error(message || '系统错误,请联系管理员!');
727
+ }
728
+ nodeId && this.$refs.selectUser[index].changeInfo();
729
+ })
730
+ .catch((err) => {
731
+ this.loading = false;
732
+ if (err.message && err.message !== 'canceled') {
733
+ this.$message.error(err.message);
734
+ }
735
+ });
736
+ },
737
+ changeSel(val) {
738
+ this.nextNode.nextUser = [];
739
+ this.options = [];
740
+ this.selectUserList = [];
741
+ this.radioList = [];
742
+ this.loading = true;
743
+ this.getNodeInfos();
744
+ },
745
+ // 取消
746
+ quit(val) {
747
+ if (val === true) return this.$emit('cancel', val);
748
+ this.$emit('cancel', false);
749
+ },
750
+ getFind() {
751
+ util
752
+ .ajax({
753
+ url: findSysCodes
754
+ })
755
+ .then((res) => {
756
+ const { status, message } = res;
757
+ if (status === 'success') {
758
+ this.nextNode.noticeType = message.split(',');
759
+ let arr = [];
760
+ this.nextNode.noticeList.map((item) => {
761
+ this.nextNode.noticeType.map((x) => {
762
+ if (x == item.cciValue) {
763
+ arr.push(x);
764
+ }
765
+ });
766
+ });
767
+ this.nextNode.noticeType = arr;
768
+ this.showNoticeType = true;
769
+ } else {
770
+ this.$message.error(message || '系统错误,请联系管理员!');
771
+ }
772
+ })
773
+ .catch((err) => {
774
+ this.loading = false;
775
+ if (err.message && err.message !== 'canceled') {
776
+ this.$message.error(err.message);
777
+ }
778
+ });
779
+ },
780
+ /**
781
+ * isMultiple
782
+ * @desc:是否多选
783
+ * @author liufan
784
+ * @date 2022年9月13日
785
+ **/
786
+ isMultiple(val, choiceOrgId, choiceDeptId, pOrgId) {
787
+ let multiple = false;
788
+ let params = {};
789
+ if (val == 2 || val == 4 || val == 6 || val == 16 || val == 12) {
790
+ multiple = true;
791
+ }
792
+ if (val == 1 || val == 2 || val == 5) {
793
+ params.filid = this.userModel.orgId;
794
+ params.only_filid = true;
795
+ if (choiceOrgId) {
796
+ params.filid = choiceOrgId;
797
+ }
798
+ }
799
+ if (val == 5 || val == 6) {
800
+ params.filid = this.userModel.orgId;
801
+ params.deptid = this.userModel.orgId;
802
+ if (choiceDeptId) {
803
+ params.deptid = choiceDeptId;
804
+ }
805
+ if (choiceOrgId) {
806
+ params.filid = choiceOrgId;
807
+ }
808
+ }
809
+ if (val == 15 || val == 16) {
810
+ params.filid = this.userModel.orgId;
811
+ if (pOrgId) {
812
+ params.filid = pOrgId;
813
+ }
814
+ }
815
+ return { multiple, params };
816
+ },
817
+ getResetFlow() {
818
+ let params = {
819
+ url:
820
+ this.type == 'continuation'
821
+ ? toTaskContinuationIndex
822
+ : toResetProcessIndex,
823
+ params: {
824
+ appId: this.appId,
825
+ ...this.flowParams
826
+ }
827
+ };
828
+ this.loading = true;
829
+ // 获取节点
830
+ util
831
+ .ajax(params)
832
+ .then((res) => {
833
+ //pc接口返回数据处理
834
+ this.loading = false;
835
+ const { status, message, data } = res;
836
+ if (status == 'success') {
837
+ data.nextNodeCheckType &&
838
+ (this.nextNodeCheckType = data.nextNodeCheckType);
839
+ this.pendtitle = data.pendtitle || data.taskExamine.businessName;
840
+ this.customPresetHintMessage = data.customPresetHintMessage;
841
+ this.readOnlyNotificationType = data.readOnlyNotificationType;
842
+ this.notificationMessageReadOnly =
843
+ data.notificationMessageReadOnly == 'true';
844
+ let flowList = [];
845
+ if (data.taskNodeList && data.taskNodeList.length > 0) {
846
+ for (let key in data.taskNodeList[0]) {
847
+ flowList.push({
848
+ nodeName: data.taskNodeList[0][key],
849
+ nodeId: key
850
+ });
851
+ }
852
+ } else {
853
+ for (let key in data.taskNodeMap) {
854
+ flowList.push({
855
+ nodeName: data.taskNodeMap[key],
856
+ nodeId: key
857
+ });
858
+ }
859
+ }
860
+
861
+ this.nextNode.nodeInfo = flowList;
862
+ this.nextNode.nextNode = flowList[0].nodeId;
863
+ this.taskExamine = data.taskExamine;
864
+ this.processDefinitionId = data.taskExamine.processDefinitionId;
865
+ this.isOpinionRequired =
866
+ data.nodeInfoMap.nodeExtAttr.isOpinionRequired;
867
+ this.isHideDefaultOperation =
868
+ data.nodeInfoMap.nodeExtAttr.isHideDefaultOperation;
869
+ this.defaultNextNode = data.nodeInfoMap.nodeExtAttr.defaultNextNode;
870
+ this.isChooseNextNode =
871
+ data.nodeInfoMap.nodeExtAttr.isChooseNextNode;
872
+ this.isCdjxjTaskHandle = data.isCdjxjTaskHandle;
873
+ this.presetTaskNodeKeyStr = data.presetTaskNodeKeyStr;
874
+ this.presetTaskNodeMap = data.presetTaskNodeMap;
875
+ this.isSinglePage = data.taskExamine.isSinglePage;
876
+ this.isSinglePage &&
877
+ (this.nextNode.opinion = data.taskExamine.opinion);
878
+ // this.nextNode.noticeInfo = data.taskExamine.notificationMsg;
879
+ this.nextNode.nodeName = data.taskExamine.nodeName;
880
+ this.canPresetRead = data.canPresetRead;
881
+ if (data.canPresetRead) {
882
+ let ids =
883
+ data.nodeInfoMap.nodeExtAttr.presetReadCandinateIds.split(',');
884
+ let names =
885
+ data.nodeInfoMap.nodeExtAttr.presetReadCandinateNames.split(
886
+ ','
887
+ );
888
+ ids.map((item, index) => {
889
+ this.presetReadUserId.push({
890
+ showid: item,
891
+ showname: names[index]
892
+ });
893
+ this.selectPresetUserList.push({
894
+ showid: item,
895
+ showname: names[index]
896
+ });
897
+ this.nextNode.presetReadUserId.push(item);
898
+ });
899
+ }
900
+ this.getNodeInfos();
901
+ // this.getPresetFlowInfo();
902
+
903
+ this.getNodeType();
904
+ this.getMessage();
905
+ } else {
906
+ this.$message.error(message || '系统错误,请联系管理员!');
907
+ }
908
+ })
909
+ .catch((err) => {
910
+ this.loading = false;
911
+ if (err.message && err.message !== 'canceled') {
912
+ this.$message.error(err.message);
913
+ }
914
+ });
915
+ }
916
+ }
917
+ };
918
+ </script>