eoss-ui 0.6.60 → 0.6.61

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 (226) hide show
  1. package/lib/eoss-ui.common.js +601 -569
  2. package/lib/flow-list.js +81 -81
  3. package/lib/flow.js +369 -337
  4. package/lib/index.js +1 -1
  5. package/lib/main.js +132 -132
  6. package/lib/qr-code.js +13 -13
  7. package/package.json +159 -159
  8. package/packages/button/index.js +5 -5
  9. package/packages/button/src/main.vue +418 -418
  10. package/packages/button-group/index.js +5 -5
  11. package/packages/button-group/src/main.vue +298 -298
  12. package/packages/calendar/index.js +5 -5
  13. package/packages/card/index.js +5 -5
  14. package/packages/card/src/main.vue +156 -156
  15. package/packages/cascader/index.js +5 -5
  16. package/packages/cascader/src/main.vue +168 -168
  17. package/packages/checkbox-group/index.js +5 -5
  18. package/packages/checkbox-group/src/main.vue +333 -333
  19. package/packages/clients/index.js +5 -5
  20. package/packages/clients/src/main.vue +151 -151
  21. package/packages/data-table/index.js +5 -5
  22. package/packages/data-table/src/children.vue +39 -39
  23. package/packages/data-table/src/column.vue +989 -989
  24. package/packages/data-table/src/main.vue +1822 -1822
  25. package/packages/data-table/src/sizer.vue +195 -195
  26. package/packages/data-table-form/index.js +5 -5
  27. package/packages/data-table-form/src/checkbox.vue +101 -101
  28. package/packages/data-table-form/src/colgroup.vue +17 -17
  29. package/packages/data-table-form/src/main.vue +181 -181
  30. package/packages/data-table-form/src/radio.vue +65 -65
  31. package/packages/data-table-form/src/table.vue +233 -233
  32. package/packages/data-table-form/src/tbody.vue +336 -336
  33. package/packages/data-table-form/src/thead.vue +68 -68
  34. package/packages/date-picker/index.js +5 -5
  35. package/packages/date-picker/src/main.vue +236 -236
  36. package/packages/dialog/index.js +5 -5
  37. package/packages/enable-drag/index.js +5 -5
  38. package/packages/enterprise/index.js +5 -5
  39. package/packages/enterprise/src/main.vue +66 -66
  40. package/packages/error-page/index.js +5 -5
  41. package/packages/error-page/src/main.vue +44 -44
  42. package/packages/flow/index.js +5 -5
  43. package/packages/flow/src/component/CommonOpinions.vue +345 -345
  44. package/packages/flow/src/component/CustomPreset.vue +322 -322
  45. package/packages/flow/src/component/FileList.vue +99 -99
  46. package/packages/flow/src/component/Preset.vue +255 -255
  47. package/packages/flow/src/component/SendMsg.vue +229 -229
  48. package/packages/flow/src/component/TimeLimit.vue +190 -190
  49. package/packages/flow/src/component/taskUnionExamine.vue +617 -611
  50. package/packages/flow/src/form.vue +121 -121
  51. package/packages/flow/src/freeStartFlow.vue +2843 -2843
  52. package/packages/flow/src/main.vue +3186 -3175
  53. package/packages/flow/src/processForm.vue +1087 -1087
  54. package/packages/flow/src/processReject.vue +293 -293
  55. package/packages/flow/src/reset.vue +900 -900
  56. package/packages/flow/src/startTaskRead.vue +658 -646
  57. package/packages/flow/src/supervise.vue +144 -144
  58. package/packages/flow/src/table.vue +58 -58
  59. package/packages/flow-group/index.js +5 -5
  60. package/packages/flow-group/src/main.vue +688 -688
  61. package/packages/flow-list/index.js +5 -5
  62. package/packages/flow-list/src/main.vue +1691 -1691
  63. package/packages/form/index.js +5 -5
  64. package/packages/form/src/main.vue +3583 -3583
  65. package/packages/form/src/table.vue +1426 -1426
  66. package/packages/handle-user/index.js +5 -5
  67. package/packages/handle-user/src/main.vue +138 -138
  68. package/packages/handler/index.js +5 -5
  69. package/packages/handler/src/main.vue +493 -493
  70. package/packages/icon/index.js +5 -5
  71. package/packages/icon/src/main.vue +101 -101
  72. package/packages/icons/index.js +5 -5
  73. package/packages/icons/src/main.vue +81 -81
  74. package/packages/input/index.js +5 -5
  75. package/packages/input/src/main.vue +356 -356
  76. package/packages/input-number/index.js +5 -5
  77. package/packages/input-number/src/main.vue +106 -106
  78. package/packages/label/index.js +5 -5
  79. package/packages/label/src/main.vue +457 -457
  80. package/packages/layout/index.js +5 -5
  81. package/packages/layout/src/item.vue +152 -152
  82. package/packages/layout/src/main.vue +31 -31
  83. package/packages/login/index.js +5 -5
  84. package/packages/login/src/main.vue +1942 -1942
  85. package/packages/login/src/resetPassword.vue +562 -562
  86. package/packages/main/index.js +5 -5
  87. package/packages/main/src/default/message.vue +249 -249
  88. package/packages/main/src/default/notice.vue +157 -157
  89. package/packages/main/src/default/userinfo.vue +503 -503
  90. package/packages/main/src/public/online.vue +89 -89
  91. package/packages/main/src/public/search.vue +462 -462
  92. package/packages/main/src/public/settings.vue +221 -221
  93. package/packages/main/src/simplicity/apps.vue +388 -388
  94. package/packages/main/src/simplicity/avatar.vue +82 -82
  95. package/packages/main/src/simplicity/handler.vue +259 -259
  96. package/packages/main/src/simplicity/index.vue +2086 -2086
  97. package/packages/main/src/simplicity/lists.vue +84 -84
  98. package/packages/main/src/simplicity/menu-list.vue +135 -135
  99. package/packages/main/src/simplicity/message.vue +259 -259
  100. package/packages/main/src/simplicity/notice.vue +190 -190
  101. package/packages/main/src/simplicity/router-page.vue +45 -45
  102. package/packages/main/src/simplicity/sub-menu.vue +264 -264
  103. package/packages/main/src/simplicity/user.vue +257 -257
  104. package/packages/main/src/simplicity/userinfo.vue +312 -312
  105. package/packages/menu/index.js +5 -5
  106. package/packages/menu/src/main.vue +584 -584
  107. package/packages/nav/index.js +5 -5
  108. package/packages/nav/src/main.vue +351 -351
  109. package/packages/notify/index.js +5 -5
  110. package/packages/notify/src/main.vue +538 -538
  111. package/packages/page/index.js +5 -5
  112. package/packages/page/src/main.vue +167 -167
  113. package/packages/pagination/index.js +5 -5
  114. package/packages/pagination/src/main.vue +96 -96
  115. package/packages/player/index.js +5 -5
  116. package/packages/player/src/main.vue +194 -194
  117. package/packages/qr-code/index.js +5 -5
  118. package/packages/qr-code/src/main.vue +170 -170
  119. package/packages/radio-group/index.js +6 -6
  120. package/packages/radio-group/src/main.vue +319 -319
  121. package/packages/retrial-auth/index.js +5 -5
  122. package/packages/retrial-auth/src/main.vue +280 -280
  123. package/packages/select/index.js +5 -5
  124. package/packages/select/src/main.vue +778 -778
  125. package/packages/select-ganged/index.js +5 -5
  126. package/packages/select-ganged/src/main.vue +724 -724
  127. package/packages/selector/index.js +5 -5
  128. package/packages/selector/src/main.vue +687 -687
  129. package/packages/selector-panel/index.js +5 -5
  130. package/packages/selector-panel/src/main.vue +1027 -1027
  131. package/packages/selector-panel/src/selection.vue +177 -177
  132. package/packages/selector-panel/src/tree.vue +129 -129
  133. package/packages/sizer/index.js +5 -5
  134. package/packages/sizer/src/main.vue +254 -254
  135. package/packages/steps/index.js +5 -5
  136. package/packages/steps/src/main.vue +181 -181
  137. package/packages/switch/index.js +5 -5
  138. package/packages/switch/src/main.vue +154 -154
  139. package/packages/table-form/index.js +5 -5
  140. package/packages/tabs/index.js +5 -5
  141. package/packages/tabs/src/main.vue +788 -788
  142. package/packages/tabs-panel/index.js +5 -5
  143. package/packages/tabs-panel/src/main.vue +29 -29
  144. package/packages/theme-chalk/src/base.scss +260 -260
  145. package/packages/theme-chalk/src/button-group.scss +176 -176
  146. package/packages/theme-chalk/src/button.scss +24 -24
  147. package/packages/theme-chalk/src/calendar.scss +113 -113
  148. package/packages/theme-chalk/src/card.scss +99 -99
  149. package/packages/theme-chalk/src/checkbox-group.scss +8 -8
  150. package/packages/theme-chalk/src/clients.scss +87 -87
  151. package/packages/theme-chalk/src/data-table-form.scss +67 -67
  152. package/packages/theme-chalk/src/data-table.scss +293 -293
  153. package/packages/theme-chalk/src/date-picker.scss +7 -7
  154. package/packages/theme-chalk/src/dialog.scss +77 -77
  155. package/packages/theme-chalk/src/enable-drag.scss +181 -181
  156. package/packages/theme-chalk/src/enterprise.scss +5 -5
  157. package/packages/theme-chalk/src/error-page.scss +18 -18
  158. package/packages/theme-chalk/src/flow-group.scss +110 -110
  159. package/packages/theme-chalk/src/flow-list.scss +39 -39
  160. package/packages/theme-chalk/src/flow.scss +343 -343
  161. package/packages/theme-chalk/src/form.scss +496 -496
  162. package/packages/theme-chalk/src/handle-user.scss +40 -40
  163. package/packages/theme-chalk/src/handler.scss +143 -143
  164. package/packages/theme-chalk/src/icon.scss +1792 -1792
  165. package/packages/theme-chalk/src/icons.scss +99 -99
  166. package/packages/theme-chalk/src/input.scss +9 -9
  167. package/packages/theme-chalk/src/label.scss +24 -24
  168. package/packages/theme-chalk/src/layout.scss +46 -46
  169. package/packages/theme-chalk/src/login.scss +969 -969
  170. package/packages/theme-chalk/src/main.scss +663 -663
  171. package/packages/theme-chalk/src/menu.scss +222 -222
  172. package/packages/theme-chalk/src/mixins/color.scss +117 -117
  173. package/packages/theme-chalk/src/nav.scss +111 -111
  174. package/packages/theme-chalk/src/page.scss +3 -3
  175. package/packages/theme-chalk/src/pagination.scss +29 -29
  176. package/packages/theme-chalk/src/player.scss +9 -9
  177. package/packages/theme-chalk/src/qr-code.scss +17 -17
  178. package/packages/theme-chalk/src/radio-group.scss +9 -9
  179. package/packages/theme-chalk/src/retrial-auth.scss +38 -38
  180. package/packages/theme-chalk/src/select-ganged.scss +8 -8
  181. package/packages/theme-chalk/src/select.scss +8 -8
  182. package/packages/theme-chalk/src/selector-panel.scss +204 -204
  183. package/packages/theme-chalk/src/selector.scss +91 -91
  184. package/packages/theme-chalk/src/simplicity.scss +1351 -1351
  185. package/packages/theme-chalk/src/sizer.scss +36 -36
  186. package/packages/theme-chalk/src/steps.scss +88 -88
  187. package/packages/theme-chalk/src/switch.scss +3 -3
  188. package/packages/theme-chalk/src/table-form.scss +1 -1
  189. package/packages/theme-chalk/src/tabs.scss +87 -87
  190. package/packages/theme-chalk/src/tips.scss +7 -7
  191. package/packages/theme-chalk/src/toolbar.scss +179 -179
  192. package/packages/theme-chalk/src/tree-group.scss +72 -72
  193. package/packages/theme-chalk/src/tree.scss +165 -165
  194. package/packages/theme-chalk/src/upload.scss +168 -168
  195. package/packages/theme-chalk/src/wxlogin.scss +3 -3
  196. package/packages/tips/index.js +5 -5
  197. package/packages/tips/src/main.vue +141 -141
  198. package/packages/toolbar/index.js +5 -5
  199. package/packages/toolbar/src/main.vue +430 -430
  200. package/packages/tree/index.js +5 -5
  201. package/packages/tree-group/index.js +5 -5
  202. package/packages/upload/index.js +5 -5
  203. package/packages/upload/src/main.vue +1347 -1347
  204. package/packages/upload/src/picture.js +15 -15
  205. package/packages/wujie/index.js +5 -5
  206. package/packages/wujie/src/main.vue +145 -145
  207. package/packages/wxlogin/index.js +5 -5
  208. package/packages/wxlogin/src/main.vue +128 -128
  209. package/src/config/api.js +286 -286
  210. package/src/config/image.js +2 -2
  211. package/src/index.js +160 -160
  212. package/src/utils/bus.js +3 -3
  213. package/src/utils/date-util.js +312 -312
  214. package/src/utils/http.js +50 -50
  215. package/src/utils/rules.js +18 -18
  216. package/src/utils/store.js +21 -21
  217. package/src/utils/webSocket.js +107 -107
  218. package/packages/.DS_Store +0 -0
  219. package/packages/autocomplete/.DS_Store +0 -0
  220. package/packages/menu/.DS_Store +0 -0
  221. package/packages/scrollbar/.DS_Store +0 -0
  222. package/packages/select/.DS_Store +0 -0
  223. package/packages/theme-chalk/src/.DS_Store +0 -0
  224. package/packages/upload/.DS_Store +0 -0
  225. package/src/.DS_Store +0 -0
  226. package/src/utils/.DS_Store +0 -0
@@ -1,611 +1,617 @@
1
- <template>
2
- <div class="es-flow-index task-union-examine" v-loading="loading">
3
- <el-form
4
- ref="infoList"
5
- :model="infoList"
6
- class="demo-dynamic"
7
- label-width="100px"
8
- >
9
- <el-form-item v-if="isSinglePage" prop="opinion" label="意见">
10
- <CommonOpinions @change="(val) => (opinion = val)" />
11
- </el-form-item>
12
- <el-form-item
13
- v-if="isHideCurrentOrg == 0"
14
- :prop="type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'"
15
- :label="
16
- type == 'takeAdvice'
17
- ? currentOrgName
18
- ? currentOrgName
19
- : '本单位'
20
- : type == 'startDraf'
21
- ? '呈送单位'
22
- : type === 'taskReview'
23
- ? '复核人'
24
- : type === 'twoOfficesDispatch'
25
- ? '报送单位'
26
- : '联合单位'
27
- "
28
- >
29
- <SelectUser
30
- :nextUser="
31
- type != 'takeAdvice'
32
- ? infoList.nextOtherOrgObj
33
- : infoList.nextCurrentOrgObj
34
- "
35
- :multiple="newMultiple"
36
- :mix="currentMix"
37
- @change="
38
- changeSelectUser(
39
- $event,
40
- type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'
41
- )
42
- "
43
- :types="
44
- type == 'takeAdvice'
45
- ? currentOrgTabs.length > 0
46
- ? currentOrgTabs
47
- : ['department', 'employee']
48
- : type == 'startDraf'
49
- ? ['enterprise', 'employee']
50
- : ['enterprise']
51
- "
52
- :params="params"
53
- :tabs="currentOrgTabsParam"
54
- :disabled="disabled"
55
- :onlyName="onlyName"
56
- />
57
- </el-form-item>
58
- <el-form-item
59
- prop="nextOtherOrgObj"
60
- v-if="isHideOtherOrg == 0 && type == 'takeAdvice'"
61
- :label="otherOrgName ? otherOrgName : '外单位'"
62
- >
63
- <SelectUser
64
- :nextUser="infoList.nextOtherOrgObj"
65
- :multiple="newMultiple"
66
- @change="changeSelectUser($event, 'nextOtherOrgObj')"
67
- :mix="otherMix"
68
- :types="
69
- foreignOrgTabs.length > 0
70
- ? foreignOrgTabs
71
- : isChoiceOtherOrgDept == 'true'
72
- ? ['enterprise', 'department']
73
- : ['enterprise']
74
- "
75
- :params="otherParams"
76
- :tabs="foreignOrgTabsParam"
77
- />
78
- </el-form-item>
79
- <el-form-item
80
- prop="noticeType"
81
- label="通知方式"
82
- :rules="[
83
- { required: false, message: `请选择通知方式`, trigger: 'blur' }
84
- ]"
85
- >
86
- <el-checkbox-group
87
- v-model="infoList.noticeType"
88
- style="display: contents"
89
- >
90
- <el-checkbox
91
- v-for="item of infoList.noticeList"
92
- :key="item.cciValue"
93
- :label="item.cciValue"
94
- :disabled="
95
- readOnlyNotificationType
96
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
97
- : false
98
- "
99
- >
100
- {{ item.shortName }}
101
- </el-checkbox>
102
- </el-checkbox-group>
103
- </el-form-item>
104
- <el-form-item
105
- v-show="infoList.noticeType.length != 0"
106
- prop="noticeInfo"
107
- label="通知消息"
108
- >
109
- <es-input
110
- style="
111
- border-color: #ccc;
112
- padding: 5px;
113
- border-radius: 5px;
114
- font-size: 13px;
115
- "
116
- type="textarea"
117
- v-model="infoList.noticeInfo"
118
- :readonly="notificationMessageReadOnly"
119
- />
120
- <!-- <span>{{ infoList.noticeInfo }}</span> -->
121
- </el-form-item>
122
- </el-form>
123
- <div style="text-align: right">
124
- <el-button type="primary" size="small" @click="subMit"> 确定 </el-button>
125
- <el-button @click="quit" size="small"> 取消 </el-button>
126
- </div>
127
- </div>
128
- </template>
129
-
130
- <script>
131
- import CommonOpinions from './CommonOpinions.vue';
132
- import SelectUser from '../selectUser.vue';
133
- import {
134
- findSysCodes,
135
- getNotificationMsg,
136
- toTaskTakeAdvice,
137
- findCodeValues,
138
- toTaskStartDraft,
139
- toTaskReview,
140
- taskStartDraft,
141
- toTaskUnionSeal,
142
- taskReview,
143
- toTwoOfficesDispatch,
144
- taskUnionSeal,
145
- twoOfficesDispatch,
146
- taskUnionExamine,
147
- taskTakeAdvice,
148
- toTaskUnionExamine
149
- } from 'eoss-ui/src/config/api';
150
- import util from 'eoss-ui/src/utils/util.js';
151
- export default {
152
- name: 'TaskUnionExamine',
153
- components: {
154
- [CommonOpinions.name]: CommonOpinions,
155
- [SelectUser.name]: SelectUser
156
- },
157
- props: {
158
- pendingId: { type: String, default: '' },
159
- type: { type: String, default: '' },
160
- defaultOpinion: { type: String, default: '' },
161
- disabled: { type: Boolean, default: false },
162
- multiple: { type: Boolean, default: true }
163
- },
164
- inheritAttrs: false,
165
- data() {
166
- return {
167
- opinion: '', //办理意见
168
- readOnlyNotificationType: '',
169
- notificationMessageReadOnly: false,
170
- otherMix: false,
171
- currentMix: false,
172
- infoList: {
173
- nextOtherOrgObj: [],
174
- nextCurrentOrgObj: [],
175
- noticeType: [],
176
- noticeInfo: '',
177
- opinion: ''
178
- },
179
- onlyName: '',
180
- currentOrgTabs: [],
181
- foreignOrgTabs: [],
182
- foreignOrgTabsParam: {},
183
- currentOrgTabsParam: {},
184
- currentOrgProcessKey: '',
185
- isSubFlow: true,
186
- choiceDeptId: '',
187
- choiceOrgId: '',
188
- isSinglePage: false,
189
- isChoiceOtherOrgDept: '',
190
- currentOrgName: '',
191
- otherOrgName: '',
192
- newMultiple: true,
193
- params: { filid: 'all' },
194
- isHideOtherOrg: '',
195
- isHideCurrentOrg: 0,
196
- isOpinionRequired: 0,
197
- otherParams: { filid: 'other' },
198
- loading: false
199
- };
200
- },
201
- mounted() {
202
- this.loading = true;
203
- this.newMultiple = this.multiple;
204
- this.getNodeType();
205
- if (this.type === 'taskReview') return this.getTaskReview();
206
- this.getInfo();
207
- },
208
- methods: {
209
- isMultiple(val) {
210
- if (val == 7 || val == 9 || val == 11) {
211
- this.newMultiple = false;
212
- }
213
- },
214
- subTaskReview() {
215
- let {
216
- infoList: { nextOtherOrgObj, noticeType, noticeInfo },
217
- businessId,
218
- opinion,
219
- isSubFlow,
220
- currentOrgProcessKey,
221
- pendingId
222
- } = this;
223
- let params = {
224
- url: taskReview,
225
- data: {
226
- nextUserId: nextOtherOrgObj.join(','),
227
- notificationType: noticeType.join(','),
228
- notificationMsg: noticeInfo,
229
- opinion,
230
- isSubFlow,
231
- businessId,
232
- currentOrgProcessKey,
233
- pendingId
234
- },
235
- method: 'POST'
236
- };
237
- this.loading = true;
238
- util
239
- .ajax(params)
240
- .then((res) => {
241
- const { message, status } = res;
242
- this.loading = false;
243
- if (status === 'success') {
244
- this.$message.success('提交成功');
245
- this.quit(true);
246
- } else {
247
- this.$message.error(message || '系统错误,请联系管理员!');
248
- }
249
- })
250
- .catch((err) => {
251
- this.loading = false;
252
- if (err.message && err.message !== 'canceled') {
253
- this.$message.error(err.message);
254
- }
255
- });
256
- },
257
- getTaskReview() {
258
- let params = {
259
- url: toTaskReview,
260
- params: { pendingId: this.pendingId }
261
- };
262
- util
263
- .ajax(params)
264
- .then((res) => {
265
- const { status, message } = res;
266
- this.loading = false;
267
- if (status === 'success') {
268
- const {
269
- data: { initiatorUser, taskExamine }
270
- } = res;
271
- this.opinion = taskExamine.opinion;
272
- this.infoList.nextOtherOrgObj.push(initiatorUser.userId);
273
- this.onlyName = initiatorUser.username;
274
- this.isSubFlow = taskExamine.isSubFlow;
275
- this.currentOrgProcessKey = taskExamine.currentOrgProcessKey;
276
- this.getFind();
277
- this.getMessage();
278
- } else {
279
- this.$message.error(message || '系统错误,请联系管理员!');
280
- }
281
- })
282
- .catch((err) => {
283
- this.loading = false;
284
- if (err.message && err.message !== 'canceled') {
285
- this.$message.error(err.message);
286
- }
287
- });
288
- },
289
- getInfo() {
290
- let params = {
291
- url:
292
- this.type == 'takeAdvice'
293
- ? toTaskTakeAdvice
294
- : this.type === 'startDraf'
295
- ? toTaskStartDraft
296
- : this.type == 'unionSeal'
297
- ? toTaskUnionSeal
298
- : this.type == 'twoOfficesDispatch'
299
- ? toTwoOfficesDispatch
300
- : toTaskUnionExamine,
301
- params: { pendingId: this.pendingId },
302
- headers: { Accept: 'application/json,text/plain' }
303
- };
304
- util
305
- .ajax(params)
306
- .then((res) => {
307
- const { message, status } = res;
308
- this.loading = false;
309
- if (status == 'success') {
310
- const {
311
- data: {
312
- choiceDeptId,
313
- choiceOrgId,
314
- taskExamine,
315
- unionDispatchOrgName,
316
- readOnlyNotificationType,
317
- notificationMessageReadOnly,
318
- unionDispatchOrgId,
319
- orgNames,
320
- nodeInfoMap: {
321
- nodeExtAttr: {
322
- userSelectionType,
323
- isHideOtherOrg,
324
- isHideCurrentOrg,
325
- isOpinionRequired
326
- }
327
- }
328
- }
329
- } = res;
330
- if (res.data.customizedConfig) {
331
- if (res.data.customizedConfig.currentOrgSelectorCustomized) {
332
- this.currentMix =
333
- res.data.customizedConfig.currentOrgSelectorSelectMix ==
334
- 'true';
335
- this.currentOrgTabs =
336
- res.data.customizedConfig.currentOrgSelectorItemList.split(
337
- ','
338
- );
339
- let param =
340
- res.data.customizedConfig.currentOrgSelectorRangeList.split(
341
- ','
342
- );
343
- this.currentOrgTabs.map((x, i) => {
344
- this.params[x] = {
345
- filid:
346
- param[i] == 'my'
347
- ? (this.params.filid = JSON.parse(
348
- util.getStorage('mainConfig')
349
- ).userModel.orgId)
350
- : param[i]
351
- };
352
- });
353
- } else {
354
- if (this.type == 'takeAdvice') {
355
- this.params.filid = JSON.parse(
356
- util.getStorage('mainConfig')
357
- ).userModel.orgId;
358
- }
359
- }
360
- if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
361
- this.otherMix =
362
- res.data.customizedConfig.foreignOrgSelectorSelectMix ==
363
- 'true';
364
- this.foreignOrgTabs =
365
- res.data.customizedConfig.foreignOrgSelectorItemList.split(
366
- ','
367
- );
368
- let param =
369
- res.data.customizedConfig.foreignOrgSelectorRangeList.split(
370
- ','
371
- );
372
- this.foreignOrgTabs.map((x, i) => {
373
- this.otherParams[x] = { filid: param[i] };
374
- });
375
- }
376
- }
377
- this.readOnlyNotificationType = readOnlyNotificationType;
378
- this.notificationMessageReadOnly =
379
- notificationMessageReadOnly == 'true';
380
- this.isSinglePage = taskExamine.isSinglePage;
381
- this.isSubFlow = taskExamine.isSubFlow;
382
- this.opinion = taskExamine.opinion;
383
- this.choiceDeptId = choiceDeptId;
384
- this.choiceOrgId = choiceOrgId;
385
- if (this.type == 'takeAdvice' || this.type == 'startDraf') {
386
- this.currentOrgName = res.data.currentOrgName;
387
- this.otherOrgName = res.data.otherOrgName;
388
- this.isChoiceOtherOrgDept = res.data.isChoiceOtherOrgDept;
389
- this.isHideOtherOrg = isHideOtherOrg;
390
- this.isHideCurrentOrg = isHideCurrentOrg;
391
- }
392
- this.isOpinionRequired = isOpinionRequired;
393
- if (this.type == 'unionSeal') {
394
- this.onlyName = unionDispatchOrgName;
395
- this.infoList.nextOtherOrgObj.push(unionDispatchOrgId);
396
- }
397
- if (this.type == 'twoOfficesDispatch') {
398
- this.onlyName = orgNames;
399
- this.infoList.nextOtherOrgObj.push(taskExamine.nextOtherOrgObj);
400
- }
401
- this.isMultiple(userSelectionType);
402
- this.getFind();
403
- this.getMessage();
404
- } else {
405
- this.$message.error(message || '系统错误,请联系管理员!');
406
- }
407
- })
408
- .catch((err) => {
409
- this.loading = false;
410
- if (err.message && err.message !== 'canceled') {
411
- this.$message.error(err.message);
412
- }
413
- });
414
- },
415
- subMit() {
416
- // if (
417
- // this.infoList.nextOtherOrgObjName == '' ||
418
- // this.infoList.nextOtherOrgObjName.length == 0
419
- // )
420
- // return this.$message.warning('请选择联合单位');
421
- if (this.type === 'taskReview') return this.subTaskReview();
422
- let {
423
- infoList: {
424
- nextCurrentOrgObj,
425
- nextOtherOrgObj,
426
- noticeType,
427
- noticeInfo
428
- },
429
- isOpinionRequired,
430
- opinion,
431
- type,
432
- isHideOtherOrg,
433
- choiceDeptId,
434
- choiceOrgId,
435
- isHideCurrentOrg,
436
- isSubFlow,
437
- pendingId
438
- } = this;
439
- if (
440
- type == 'takeAdvice' &&
441
- !nextCurrentOrgObj &&
442
- isHideCurrentOrg == 0 &&
443
- isHideOtherOrg == 0 &&
444
- !nextOtherOrgObj
445
- ) {
446
- return this.$message.warning('请选择处理对象!');
447
- } else if (
448
- isHideCurrentOrg == 0 &&
449
- !nextOtherOrgObj &&
450
- !nextCurrentOrgObj
451
- ) {
452
- return this.$message.warning('请选择处理对象!');
453
- }
454
-
455
- if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
456
- return this.$message.warning('当前步骤必须输入意见!');
457
- }
458
- // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
459
- // return this.$message.warning('暂未开放,敬请期待!');
460
- const param = {
461
- url:
462
- this.type === 'startDraf'
463
- ? taskStartDraft
464
- : this.type == 'unionSeal'
465
- ? taskUnionSeal
466
- : this.type === 'twoOfficesDispatch'
467
- ? twoOfficesDispatch
468
- : this.type == 'takeAdvice'
469
- ? taskTakeAdvice
470
- : taskUnionExamine,
471
- data: {
472
- opinion,
473
- pendingId,
474
- nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
475
- ? nextOtherOrgObj.join(',')
476
- : nextOtherOrgObj,
477
- nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
478
- ? nextCurrentOrgObj.join(',')
479
- : nextCurrentOrgObj,
480
- notificationMsg: noticeInfo,
481
- notificationType: noticeType.join(','),
482
- choiceDeptId,
483
- isSubFlow,
484
- choiceOrgId
485
- },
486
- headers: { Accept: 'application/json,text/plain' },
487
- method: 'POST'
488
- };
489
- this.loading = true;
490
- util
491
- .ajax(param)
492
- .then((res) => {
493
- const { message, status } = res;
494
- this.loading = false;
495
- if (status == 'success') {
496
- this.$message.success('提交成功');
497
- this.quit(true);
498
- } else {
499
- this.$message.error(message || '系统错误,请联系管理员!');
500
- }
501
- })
502
- .catch((err) => {
503
- this.loading = false;
504
- if (err.message && err.message !== 'canceled') {
505
- this.$message.error(err.message);
506
- }
507
- });
508
- },
509
- quit(val) {
510
- if (val === true) return this.$emit('cancel', val);
511
- this.$emit('cancel');
512
- },
513
- changeSelectUser(val, type) {
514
- const { nextUser, options } = val;
515
- let newNextUser = [];
516
- let obj = {};
517
- options.map((item) => {
518
- if (obj[item.stype]) {
519
- obj[item.stype].push(item.id);
520
- } else {
521
- obj[item.stype] = [item.id];
522
- }
523
- // if (newNextUser) {
524
- // newNextUser += `,${item.stype}-${item.id}`;
525
- // } else {
526
- // newNextUser = `${item.stype}-${item.id}`;
527
- // }
528
- });
529
- for (let key in obj) {
530
- newNextUser.push(`${key}-${obj[key].join(',')}`);
531
- }
532
-
533
- this.infoList[type] = newNextUser.join('|');
534
- },
535
- getNodeType() {
536
- util
537
- .ajax({
538
- url: findCodeValues,
539
- params: {
540
- ccCode: 'notification_type',
541
- userId: util.getStorage('userId')
542
- }
543
- })
544
- .then((res) => {
545
- const { status, data } = res;
546
- this.loading = false;
547
- if (status === 'success') {
548
- this.infoList.noticeList = data;
549
- }
550
- })
551
- .catch((err) => {
552
- this.loading = false;
553
- if (err.message && err.message !== 'canceled') {
554
- this.$message.error(err.message);
555
- }
556
- });
557
- },
558
- //获取通知信息
559
- getMessage() {
560
- let params = {
561
- pendingId: this.pendingId
562
- };
563
- util
564
- .ajax({ url: getNotificationMsg, params, methods: 'post' })
565
- .then((res) => {
566
- if (res.status === 'success') {
567
- this.infoList.noticeInfo = res.message;
568
- }
569
- this.loading = false;
570
- })
571
- .catch((err) => {
572
- this.loading = false;
573
- if (err.message && err.message !== 'canceled') {
574
- this.$message.error(err.message);
575
- }
576
- });
577
- },
578
- getFind() {
579
- util
580
- .ajax({
581
- url: findSysCodes
582
- })
583
- .then((res) => {
584
- const { status, message } = res;
585
- if (status === 'success') {
586
- this.infoList.noticeType = message.split(',');
587
- let arr = [];
588
- this.infoList.noticeList.map((item) => {
589
- this.infoList.noticeType.map((x) => {
590
- if (x == item.cciValue) {
591
- arr.push(x);
592
- }
593
- });
594
- });
595
- this.infoList.noticeType = arr;
596
- } else {
597
- this.$message.error(message || '系统错误,请联系管理员!');
598
- }
599
- })
600
- .catch((err) => {
601
- this.loading = false;
602
- if (err.message && err.message !== 'canceled') {
603
- this.$message.error(err.message);
604
- }
605
- });
606
- }
607
- }
608
- };
609
- </script>
610
-
611
- <style></style>
1
+ <template>
2
+ <div class="es-flow-index task-union-examine" v-loading="loading">
3
+ <el-form
4
+ ref="infoList"
5
+ :model="infoList"
6
+ class="demo-dynamic"
7
+ label-width="100px"
8
+ >
9
+ <el-form-item v-if="isSinglePage" prop="opinion" label="意见">
10
+ <CommonOpinions @change="(val) => (opinion = val)" />
11
+ </el-form-item>
12
+ <el-form-item
13
+ v-if="isHideCurrentOrg == 0"
14
+ :prop="type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'"
15
+ :label="
16
+ type == 'takeAdvice'
17
+ ? currentOrgName
18
+ ? currentOrgName
19
+ : '本单位'
20
+ : type == 'startDraf'
21
+ ? '呈送单位'
22
+ : type === 'taskReview'
23
+ ? '复核人'
24
+ : type === 'twoOfficesDispatch'
25
+ ? '报送单位'
26
+ : '联合单位'
27
+ "
28
+ >
29
+ <SelectUser
30
+ :nextUser="
31
+ type != 'takeAdvice'
32
+ ? infoList.nextOtherOrgObj
33
+ : infoList.nextCurrentOrgObj
34
+ "
35
+ :multiple="newMultiple"
36
+ :mix="currentMix"
37
+ @change="
38
+ changeSelectUser(
39
+ $event,
40
+ type != 'takeAdvice' ? 'nextOtherOrgObj' : 'nextCurrentOrgObj'
41
+ )
42
+ "
43
+ :types="
44
+ type == 'takeAdvice'
45
+ ? currentOrgTabs.length > 0
46
+ ? currentOrgTabs
47
+ : ['department', 'employee']
48
+ : type == 'startDraf'
49
+ ? ['enterprise', 'employee']
50
+ : ['enterprise']
51
+ "
52
+ :params="params"
53
+ :tabs="currentOrgTabsParam"
54
+ :disabled="disabled"
55
+ :onlyName="onlyName"
56
+ />
57
+ </el-form-item>
58
+ <el-form-item
59
+ prop="nextOtherOrgObj"
60
+ v-if="isHideOtherOrg == 0 && type == 'takeAdvice'"
61
+ :label="otherOrgName ? otherOrgName : '外单位'"
62
+ >
63
+ <SelectUser
64
+ :nextUser="infoList.nextOtherOrgObj"
65
+ :multiple="newMultiple"
66
+ @change="changeSelectUser($event, 'nextOtherOrgObj')"
67
+ :mix="otherMix"
68
+ :types="
69
+ foreignOrgTabs.length > 0
70
+ ? foreignOrgTabs
71
+ : isChoiceOtherOrgDept == 'true'
72
+ ? ['enterprise', 'department']
73
+ : ['enterprise']
74
+ "
75
+ :params="otherParams"
76
+ :tabs="foreignOrgTabsParam"
77
+ />
78
+ </el-form-item>
79
+ <el-form-item
80
+ prop="noticeType"
81
+ label="通知方式"
82
+ :rules="[
83
+ { required: false, message: `请选择通知方式`, trigger: 'blur' }
84
+ ]"
85
+ >
86
+ <el-checkbox-group
87
+ v-model="infoList.noticeType"
88
+ style="display: contents"
89
+ >
90
+ <el-checkbox
91
+ v-for="item of infoList.noticeList"
92
+ :key="item.cciValue"
93
+ :label="item.cciValue"
94
+ :disabled="
95
+ readOnlyNotificationType
96
+ ? readOnlyNotificationType.indexOf(item.cciValue) != -1
97
+ : false
98
+ "
99
+ >
100
+ {{ item.shortName }}
101
+ </el-checkbox>
102
+ </el-checkbox-group>
103
+ </el-form-item>
104
+ <el-form-item
105
+ v-show="infoList.noticeType.length != 0"
106
+ prop="noticeInfo"
107
+ label="通知消息"
108
+ >
109
+ <es-input
110
+ style="
111
+ border-color: #ccc;
112
+ padding: 5px;
113
+ border-radius: 5px;
114
+ font-size: 13px;
115
+ "
116
+ type="textarea"
117
+ v-model="infoList.noticeInfo"
118
+ :readonly="notificationMessageReadOnly"
119
+ />
120
+ <!-- <span>{{ infoList.noticeInfo }}</span> -->
121
+ </el-form-item>
122
+ </el-form>
123
+ <div style="text-align: right">
124
+ <el-button type="primary" size="small" @click="subMit"> 确定 </el-button>
125
+ <el-button @click="quit" size="small"> 取消 </el-button>
126
+ </div>
127
+ </div>
128
+ </template>
129
+
130
+ <script>
131
+ import CommonOpinions from './CommonOpinions.vue';
132
+ import SelectUser from '../selectUser.vue';
133
+ import {
134
+ findSysCodes,
135
+ getNotificationMsg,
136
+ toTaskTakeAdvice,
137
+ findCodeValues,
138
+ toTaskStartDraft,
139
+ toTaskReview,
140
+ taskStartDraft,
141
+ toTaskUnionSeal,
142
+ taskReview,
143
+ toTwoOfficesDispatch,
144
+ taskUnionSeal,
145
+ twoOfficesDispatch,
146
+ taskUnionExamine,
147
+ taskTakeAdvice,
148
+ toTaskUnionExamine
149
+ } from 'eoss-ui/src/config/api';
150
+ import util from 'eoss-ui/src/utils/util.js';
151
+ export default {
152
+ name: 'TaskUnionExamine',
153
+ components: {
154
+ [CommonOpinions.name]: CommonOpinions,
155
+ [SelectUser.name]: SelectUser
156
+ },
157
+ props: {
158
+ pendingId: { type: String, default: '' },
159
+ type: { type: String, default: '' },
160
+ defaultOpinion: { type: String, default: '' },
161
+ oldOption: { type: String, default: '' },
162
+ disabled: { type: Boolean, default: false },
163
+ multiple: { type: Boolean, default: true }
164
+ },
165
+ inheritAttrs: false,
166
+ data() {
167
+ return {
168
+ opinion: '', //办理意见
169
+ readOnlyNotificationType: '',
170
+ notificationMessageReadOnly: false,
171
+ otherMix: false,
172
+ currentMix: false,
173
+ infoList: {
174
+ nextOtherOrgObj: [],
175
+ nextCurrentOrgObj: [],
176
+ noticeType: [],
177
+ noticeInfo: '',
178
+ opinion: ''
179
+ },
180
+ onlyName: '',
181
+ currentOrgTabs: [],
182
+ foreignOrgTabs: [],
183
+ foreignOrgTabsParam: {},
184
+ currentOrgTabsParam: {},
185
+ currentOrgProcessKey: '',
186
+ isSubFlow: true,
187
+ choiceDeptId: '',
188
+ choiceOrgId: '',
189
+ isSinglePage: false,
190
+ isChoiceOtherOrgDept: '',
191
+ currentOrgName: '',
192
+ otherOrgName: '',
193
+ newMultiple: true,
194
+ params: { filid: 'all' },
195
+ isHideOtherOrg: '',
196
+ isHideCurrentOrg: 0,
197
+ isOpinionRequired: 0,
198
+ otherParams: { filid: 'other' },
199
+ loading: false
200
+ };
201
+ },
202
+ mounted() {
203
+ this.loading = true;
204
+ this.newMultiple = this.multiple;
205
+ this.opinion = this.oldOption
206
+ this.getNodeType();
207
+ if (this.type === 'taskReview') return this.getTaskReview();
208
+ this.getInfo();
209
+ },
210
+ methods: {
211
+ isMultiple(val) {
212
+ if (val == 7 || val == 9 || val == 11) {
213
+ this.newMultiple = false;
214
+ }
215
+ },
216
+ subTaskReview() {
217
+ let {
218
+ infoList: { nextOtherOrgObj, noticeType, noticeInfo },
219
+ businessId,
220
+ opinion,
221
+ isSubFlow,
222
+ currentOrgProcessKey,
223
+ pendingId
224
+ } = this;
225
+ let params = {
226
+ url: taskReview,
227
+ data: {
228
+ nextUserId: nextOtherOrgObj.join(','),
229
+ notificationType: noticeType.join(','),
230
+ notificationMsg: noticeInfo,
231
+ opinion,
232
+ isSubFlow,
233
+ businessId,
234
+ currentOrgProcessKey,
235
+ pendingId
236
+ },
237
+ method: 'POST'
238
+ };
239
+ this.loading = true;
240
+ util
241
+ .ajax(params)
242
+ .then((res) => {
243
+ const { message, status } = res;
244
+ this.loading = false;
245
+ if (status === 'success') {
246
+ this.$message.success('提交成功');
247
+ this.quit(true);
248
+ } else {
249
+ this.$message.error(message || '系统错误,请联系管理员!');
250
+ }
251
+ })
252
+ .catch((err) => {
253
+ this.loading = false;
254
+ if (err.message && err.message !== 'canceled') {
255
+ this.$message.error(err.message);
256
+ }
257
+ });
258
+ },
259
+ getTaskReview() {
260
+ let params = {
261
+ url: toTaskReview,
262
+ params: { pendingId: this.pendingId }
263
+ };
264
+ util
265
+ .ajax(params)
266
+ .then((res) => {
267
+ const { status, message } = res;
268
+ this.loading = false;
269
+ if (status === 'success') {
270
+ const {
271
+ data: { initiatorUser, taskExamine }
272
+ } = res;
273
+ if(taskExamine.opinion){
274
+ this.opinion = taskExamine.opinion;
275
+ }
276
+ this.infoList.nextOtherOrgObj.push(initiatorUser.userId);
277
+ this.onlyName = initiatorUser.username;
278
+ this.isSubFlow = taskExamine.isSubFlow;
279
+ this.currentOrgProcessKey = taskExamine.currentOrgProcessKey;
280
+ this.getFind();
281
+ this.getMessage();
282
+ } else {
283
+ this.$message.error(message || '系统错误,请联系管理员!');
284
+ }
285
+ })
286
+ .catch((err) => {
287
+ this.loading = false;
288
+ if (err.message && err.message !== 'canceled') {
289
+ this.$message.error(err.message);
290
+ }
291
+ });
292
+ },
293
+ getInfo() {
294
+ let params = {
295
+ url:
296
+ this.type == 'takeAdvice'
297
+ ? toTaskTakeAdvice
298
+ : this.type === 'startDraf'
299
+ ? toTaskStartDraft
300
+ : this.type == 'unionSeal'
301
+ ? toTaskUnionSeal
302
+ : this.type == 'twoOfficesDispatch'
303
+ ? toTwoOfficesDispatch
304
+ : toTaskUnionExamine,
305
+ params: { pendingId: this.pendingId },
306
+ headers: { Accept: 'application/json,text/plain' }
307
+ };
308
+ util
309
+ .ajax(params)
310
+ .then((res) => {
311
+ const { message, status } = res;
312
+ this.loading = false;
313
+ if (status == 'success') {
314
+ const {
315
+ data: {
316
+ choiceDeptId,
317
+ choiceOrgId,
318
+ taskExamine,
319
+ unionDispatchOrgName,
320
+ readOnlyNotificationType,
321
+ notificationMessageReadOnly,
322
+ unionDispatchOrgId,
323
+ orgNames,
324
+ nodeInfoMap: {
325
+ nodeExtAttr: {
326
+ userSelectionType,
327
+ isHideOtherOrg,
328
+ isHideCurrentOrg,
329
+ isOpinionRequired
330
+ }
331
+ }
332
+ }
333
+ } = res;
334
+ if (res.data.customizedConfig) {
335
+ if (res.data.customizedConfig.currentOrgSelectorCustomized) {
336
+ this.currentMix =
337
+ res.data.customizedConfig.currentOrgSelectorSelectMix ==
338
+ 'true';
339
+ this.currentOrgTabs =
340
+ res.data.customizedConfig.currentOrgSelectorItemList.split(
341
+ ','
342
+ );
343
+ let param =
344
+ res.data.customizedConfig.currentOrgSelectorRangeList.split(
345
+ ','
346
+ );
347
+ this.currentOrgTabs.map((x, i) => {
348
+ this.params[x] = {
349
+ filid:
350
+ param[i] == 'my'
351
+ ? (this.params.filid = JSON.parse(
352
+ util.getStorage('mainConfig')
353
+ ).userModel.orgId)
354
+ : param[i]
355
+ };
356
+ });
357
+ } else {
358
+ if (this.type == 'takeAdvice') {
359
+ this.params.filid = JSON.parse(
360
+ util.getStorage('mainConfig')
361
+ ).userModel.orgId;
362
+ }
363
+ }
364
+ if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
365
+ this.otherMix =
366
+ res.data.customizedConfig.foreignOrgSelectorSelectMix ==
367
+ 'true';
368
+ this.foreignOrgTabs =
369
+ res.data.customizedConfig.foreignOrgSelectorItemList.split(
370
+ ','
371
+ );
372
+ let param =
373
+ res.data.customizedConfig.foreignOrgSelectorRangeList.split(
374
+ ','
375
+ );
376
+ this.foreignOrgTabs.map((x, i) => {
377
+ this.otherParams[x] = { filid: param[i] };
378
+ });
379
+ }
380
+ }
381
+ this.readOnlyNotificationType = readOnlyNotificationType;
382
+ this.notificationMessageReadOnly =
383
+ notificationMessageReadOnly == 'true';
384
+ this.isSinglePage = taskExamine.isSinglePage;
385
+ this.isSubFlow = taskExamine.isSubFlow;
386
+ if(taskExamine.opinion){
387
+ this.opinion = taskExamine.opinion;
388
+ }
389
+ this.choiceDeptId = choiceDeptId;
390
+ this.choiceOrgId = choiceOrgId;
391
+ if (this.type == 'takeAdvice' || this.type == 'startDraf') {
392
+ this.currentOrgName = res.data.currentOrgName;
393
+ this.otherOrgName = res.data.otherOrgName;
394
+ this.isChoiceOtherOrgDept = res.data.isChoiceOtherOrgDept;
395
+ this.isHideOtherOrg = isHideOtherOrg;
396
+ this.isHideCurrentOrg = isHideCurrentOrg;
397
+ }
398
+ this.isOpinionRequired = isOpinionRequired;
399
+ if (this.type == 'unionSeal') {
400
+ this.onlyName = unionDispatchOrgName;
401
+ this.infoList.nextOtherOrgObj.push(unionDispatchOrgId);
402
+ }
403
+ if (this.type == 'twoOfficesDispatch') {
404
+ this.onlyName = orgNames;
405
+ this.infoList.nextOtherOrgObj.push(taskExamine.nextOtherOrgObj);
406
+ }
407
+ this.isMultiple(userSelectionType);
408
+ this.getFind();
409
+ this.getMessage();
410
+ } else {
411
+ this.$message.error(message || '系统错误,请联系管理员!');
412
+ }
413
+ })
414
+ .catch((err) => {
415
+ this.loading = false;
416
+ if (err.message && err.message !== 'canceled') {
417
+ this.$message.error(err.message);
418
+ }
419
+ });
420
+ },
421
+ subMit() {
422
+ // if (
423
+ // this.infoList.nextOtherOrgObjName == '' ||
424
+ // this.infoList.nextOtherOrgObjName.length == 0
425
+ // )
426
+ // return this.$message.warning('请选择联合单位');
427
+ if (this.type === 'taskReview') return this.subTaskReview();
428
+ let {
429
+ infoList: {
430
+ nextCurrentOrgObj,
431
+ nextOtherOrgObj,
432
+ noticeType,
433
+ noticeInfo
434
+ },
435
+ isOpinionRequired,
436
+ opinion,
437
+ type,
438
+ isHideOtherOrg,
439
+ choiceDeptId,
440
+ choiceOrgId,
441
+ isHideCurrentOrg,
442
+ isSubFlow,
443
+ pendingId
444
+ } = this;
445
+ if (
446
+ type == 'takeAdvice' &&
447
+ !nextCurrentOrgObj &&
448
+ isHideCurrentOrg == 0 &&
449
+ isHideOtherOrg == 0 &&
450
+ !nextOtherOrgObj
451
+ ) {
452
+ return this.$message.warning('请选择处理对象!');
453
+ } else if (
454
+ isHideCurrentOrg == 0 &&
455
+ !nextOtherOrgObj &&
456
+ !nextCurrentOrgObj
457
+ ) {
458
+ return this.$message.warning('请选择处理对象!');
459
+ }
460
+
461
+ if (isOpinionRequired == 1 && (opinion == '' || opinion == null)) {
462
+ return this.$message.warning('当前步骤必须输入意见!');
463
+ }
464
+ // if (this.type != 'startDraf' && this.type != 'unionSeal' && this.type != 'twoOfficesDispatch')
465
+ // return this.$message.warning('暂未开放,敬请期待!');
466
+ const param = {
467
+ url:
468
+ this.type === 'startDraf'
469
+ ? taskStartDraft
470
+ : this.type == 'unionSeal'
471
+ ? taskUnionSeal
472
+ : this.type === 'twoOfficesDispatch'
473
+ ? twoOfficesDispatch
474
+ : this.type == 'takeAdvice'
475
+ ? taskTakeAdvice
476
+ : taskUnionExamine,
477
+ data: {
478
+ opinion,
479
+ pendingId,
480
+ nextOtherOrgObj: Array.isArray(nextOtherOrgObj)
481
+ ? nextOtherOrgObj.join(',')
482
+ : nextOtherOrgObj,
483
+ nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
484
+ ? nextCurrentOrgObj.join(',')
485
+ : nextCurrentOrgObj,
486
+ notificationMsg: noticeInfo,
487
+ notificationType: noticeType.join(','),
488
+ choiceDeptId,
489
+ isSubFlow,
490
+ choiceOrgId
491
+ },
492
+ headers: { Accept: 'application/json,text/plain' },
493
+ method: 'POST'
494
+ };
495
+ this.loading = true;
496
+ util
497
+ .ajax(param)
498
+ .then((res) => {
499
+ const { message, status } = res;
500
+ this.loading = false;
501
+ if (status == 'success') {
502
+ this.$message.success('提交成功');
503
+ this.quit(true);
504
+ } else {
505
+ this.$message.error(message || '系统错误,请联系管理员!');
506
+ }
507
+ })
508
+ .catch((err) => {
509
+ this.loading = false;
510
+ if (err.message && err.message !== 'canceled') {
511
+ this.$message.error(err.message);
512
+ }
513
+ });
514
+ },
515
+ quit(val) {
516
+ if (val === true) return this.$emit('cancel', val);
517
+ this.$emit('cancel');
518
+ },
519
+ changeSelectUser(val, type) {
520
+ const { nextUser, options } = val;
521
+ let newNextUser = [];
522
+ let obj = {};
523
+ options.map((item) => {
524
+ if (obj[item.stype]) {
525
+ obj[item.stype].push(item.id);
526
+ } else {
527
+ obj[item.stype] = [item.id];
528
+ }
529
+ // if (newNextUser) {
530
+ // newNextUser += `,${item.stype}-${item.id}`;
531
+ // } else {
532
+ // newNextUser = `${item.stype}-${item.id}`;
533
+ // }
534
+ });
535
+ for (let key in obj) {
536
+ newNextUser.push(`${key}-${obj[key].join(',')}`);
537
+ }
538
+
539
+ this.infoList[type] = newNextUser.join('|');
540
+ },
541
+ getNodeType() {
542
+ util
543
+ .ajax({
544
+ url: findCodeValues,
545
+ params: {
546
+ ccCode: 'notification_type',
547
+ userId: util.getStorage('userId')
548
+ }
549
+ })
550
+ .then((res) => {
551
+ const { status, data } = res;
552
+ this.loading = false;
553
+ if (status === 'success') {
554
+ this.infoList.noticeList = data;
555
+ }
556
+ })
557
+ .catch((err) => {
558
+ this.loading = false;
559
+ if (err.message && err.message !== 'canceled') {
560
+ this.$message.error(err.message);
561
+ }
562
+ });
563
+ },
564
+ //获取通知信息
565
+ getMessage() {
566
+ let params = {
567
+ pendingId: this.pendingId
568
+ };
569
+ util
570
+ .ajax({ url: getNotificationMsg, params, methods: 'post' })
571
+ .then((res) => {
572
+ if (res.status === 'success') {
573
+ this.infoList.noticeInfo = res.message;
574
+ }
575
+ this.loading = false;
576
+ })
577
+ .catch((err) => {
578
+ this.loading = false;
579
+ if (err.message && err.message !== 'canceled') {
580
+ this.$message.error(err.message);
581
+ }
582
+ });
583
+ },
584
+ getFind() {
585
+ util
586
+ .ajax({
587
+ url: findSysCodes
588
+ })
589
+ .then((res) => {
590
+ const { status, message } = res;
591
+ if (status === 'success') {
592
+ this.infoList.noticeType = message.split(',');
593
+ let arr = [];
594
+ this.infoList.noticeList.map((item) => {
595
+ this.infoList.noticeType.map((x) => {
596
+ if (x == item.cciValue) {
597
+ arr.push(x);
598
+ }
599
+ });
600
+ });
601
+ this.infoList.noticeType = arr;
602
+ } else {
603
+ this.$message.error(message || '系统错误,请联系管理员!');
604
+ }
605
+ })
606
+ .catch((err) => {
607
+ this.loading = false;
608
+ if (err.message && err.message !== 'canceled') {
609
+ this.$message.error(err.message);
610
+ }
611
+ });
612
+ }
613
+ }
614
+ };
615
+ </script>
616
+
617
+ <style></style>