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