eoss 0.1.0-alpha.21 → 0.1.0-alpha.22

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 (195) hide show
  1. package/lib/account-login.js +129 -129
  2. package/lib/alert.js +2 -2
  3. package/lib/aside.js +2 -2
  4. package/lib/autocomplete.js +216 -216
  5. package/lib/avatar.js +2 -2
  6. package/lib/backtop.js +2 -2
  7. package/lib/badge.js +2 -2
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/ca-login.js +6 -6
  10. package/lib/calendar.js +2 -2
  11. package/lib/card.js +2 -2
  12. package/lib/carousel-item.js +21 -21
  13. package/lib/carousel.js +16 -16
  14. package/lib/cascader-panel.js +6 -6
  15. package/lib/cascader.js +230 -230
  16. package/lib/checkbox-group.js +138 -138
  17. package/lib/col.js +2 -2
  18. package/lib/collapse-item.js +423 -410
  19. package/lib/collapse.js +426 -412
  20. package/lib/color-picker.js +23 -23
  21. package/lib/container.js +2 -2
  22. package/lib/cron.js +2 -2
  23. package/lib/data-table.js +123 -123
  24. package/lib/date-picker.js +233 -233
  25. package/lib/dialog.js +8 -8
  26. package/lib/divider.js +2 -2
  27. package/lib/drawer.js +4 -4
  28. package/lib/dropdown-item.js +2 -2
  29. package/lib/dropdown-menu.js +6 -6
  30. package/lib/dropdown.js +13 -13
  31. package/lib/email-login.js +124 -124
  32. package/lib/empty.js +2 -2
  33. package/lib/eoss.common.js +21948 -21788
  34. package/lib/flip.js +2 -2
  35. package/lib/flow-group.js +251 -251
  36. package/lib/flow.js +15934 -18947
  37. package/lib/flows.js +9195 -0
  38. package/lib/footer.js +2 -2
  39. package/lib/form-item.js +28 -17
  40. package/lib/form.js +426 -412
  41. package/lib/header.js +2 -2
  42. package/lib/icon.js +128 -128
  43. package/lib/icons.js +2 -2
  44. package/lib/image-viewer.js +6 -6
  45. package/lib/image.js +2 -2
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +2 -2
  48. package/lib/input.js +4 -4
  49. package/lib/link.js +2 -2
  50. package/lib/loading.js +4 -4
  51. package/lib/login.js +190 -156
  52. package/lib/lowcode.js +562 -272
  53. package/lib/main.js +348 -282
  54. package/lib/marquee.js +6 -6
  55. package/lib/menu.js +209 -209
  56. package/lib/message-box.js +8 -8
  57. package/lib/message.js +8 -8
  58. package/lib/notification.js +8 -8
  59. package/lib/option-group.js +2 -2
  60. package/lib/option.js +4 -4
  61. package/lib/page-header.js +2 -2
  62. package/lib/pagination.js +6 -6
  63. package/lib/phone-login.js +124 -124
  64. package/lib/popconfirm.js +2 -2
  65. package/lib/popover.js +209 -209
  66. package/lib/progress.js +2 -2
  67. package/lib/qr-code.js +2 -2
  68. package/lib/qrcode-login.js +123 -123
  69. package/lib/radio-group.js +121 -121
  70. package/lib/rate.js +4 -4
  71. package/lib/row.js +2 -2
  72. package/lib/scrollbar.js +6 -6
  73. package/lib/select.js +470 -457
  74. package/lib/selector-panel.js +141 -141
  75. package/lib/selector.js +130 -130
  76. package/lib/step.js +426 -412
  77. package/lib/steps.js +6 -6
  78. package/lib/submenu.js +4 -4
  79. package/lib/switch.js +4 -4
  80. package/lib/tab-pane.js +2 -2
  81. package/lib/table-column.js +6 -6
  82. package/lib/table.js +460 -460
  83. package/lib/tabs.js +6 -6
  84. package/lib/tag.js +2 -2
  85. package/lib/theme-chalk/autocomplete.css +1 -1
  86. package/lib/theme-chalk/base.css +1 -1
  87. package/lib/theme-chalk/cascader-panel.css +1 -1
  88. package/lib/theme-chalk/cascader.css +1 -1
  89. package/lib/theme-chalk/checkbox-group.css +1 -1
  90. package/lib/theme-chalk/date-picker.css +1 -1
  91. package/lib/theme-chalk/descriptions-item.css +1 -1
  92. package/lib/theme-chalk/descriptions.css +1 -1
  93. package/lib/theme-chalk/empty.css +1 -1
  94. package/lib/theme-chalk/flow.css +1 -1
  95. package/lib/theme-chalk/flows.css +1 -0
  96. package/lib/theme-chalk/form.css +1 -1
  97. package/lib/theme-chalk/index.css +1 -1
  98. package/lib/theme-chalk/input-number.css +1 -1
  99. package/lib/theme-chalk/input.css +1 -1
  100. package/lib/theme-chalk/lowcode.css +1 -1
  101. package/lib/theme-chalk/main.css +1 -1
  102. package/lib/theme-chalk/menu.css +1 -1
  103. package/lib/theme-chalk/message-box.css +1 -1
  104. package/lib/theme-chalk/message.css +1 -1
  105. package/lib/theme-chalk/notification.css +1 -1
  106. package/lib/theme-chalk/pagination.css +1 -1
  107. package/lib/theme-chalk/scrollbar.css +1 -1
  108. package/lib/theme-chalk/select.css +1 -1
  109. package/lib/theme-chalk/selector-panel.css +1 -1
  110. package/lib/theme-chalk/selector.css +1 -1
  111. package/lib/theme-chalk/slider.css +1 -1
  112. package/lib/theme-chalk/table.css +1 -1
  113. package/lib/theme-chalk/tabs.css +1 -1
  114. package/lib/theme-chalk/time-picker.css +1 -1
  115. package/lib/theme-chalk/time-select.css +1 -1
  116. package/lib/theme-chalk/timeline-item.css +1 -1
  117. package/lib/theme-chalk/transfer.css +1 -1
  118. package/lib/theme-chalk/tree.css +1 -1
  119. package/lib/theme-chalk/upload.css +1 -1
  120. package/lib/time-picker.js +8 -8
  121. package/lib/time-select.js +6 -6
  122. package/lib/timeline-item.js +2 -2
  123. package/lib/timeline.js +2 -2
  124. package/lib/tips.js +124 -124
  125. package/lib/toolbar.js +4 -4
  126. package/lib/tooltip.js +209 -209
  127. package/lib/transfer.js +4 -4
  128. package/lib/tree-group.js +122 -122
  129. package/lib/tree.js +121 -121
  130. package/lib/upload.js +131 -131
  131. package/package.json +1 -1
  132. package/packages/carousel/src/carousel.vue +2 -2
  133. package/packages/flow/index.js +4 -4
  134. package/packages/flow/src/component/FreeCirculation.vue +4 -3
  135. package/packages/flow/src/component/SendMsg.vue +2 -4
  136. package/packages/flow/src/component/opinions.vue +203 -226
  137. package/packages/flow/src/component/taskUnionExamine.vue +2 -4
  138. package/packages/flow/src/freeStartFlow.vue +2 -2
  139. package/packages/flow/src/selectUser.vue +36 -1
  140. package/packages/flow/src/supervise.vue +4 -2
  141. package/packages/flows/index.js +7 -0
  142. package/packages/flows/readme.md +600 -0
  143. package/packages/flows/src/components/basis.vue +108 -0
  144. package/packages/flows/src/components/distribute.vue +42 -0
  145. package/packages/flows/src/components/opinions-file.vue +123 -0
  146. package/packages/{flow-copy/src/component → flows/src/components}/opinions.vue +227 -204
  147. package/packages/flows/src/components/quick-actions.vue +64 -0
  148. package/packages/flows/src/components/reject.vue +83 -0
  149. package/packages/flows/src/components/start-flow.vue +210 -0
  150. package/packages/flows/src/flow.vue +510 -0
  151. package/packages/{flow/src/flow.vue → flows/src/flows.vue} +40 -1327
  152. package/packages/form/src/form-item.vue +9 -2
  153. package/packages/form/src/label-wrap.vue +4 -1
  154. package/packages/login/src/login.vue +61 -32
  155. package/packages/lowcode/src/lowcode.vue +141 -40
  156. package/packages/lowcode/src/pages.vue +27 -7
  157. package/packages/lowcode/src/toolbar.vue +3 -18
  158. package/packages/main/src/components/pages.vue +97 -65
  159. package/packages/main/src/components/router-page.vue +0 -2
  160. package/packages/main/src/gzw.vue +3 -2
  161. package/packages/main/src/minxs.js +71 -51
  162. package/packages/select/src/select.vue +5 -0
  163. package/packages/theme-chalk/src/base.scss +6 -0
  164. package/packages/theme-chalk/src/checkbox-group.scss +1 -0
  165. package/packages/theme-chalk/src/common/var.scss +1 -1
  166. package/packages/theme-chalk/src/flow.scss +7 -4
  167. package/packages/theme-chalk/src/flows.scss +141 -0
  168. package/packages/theme-chalk/src/form.scss +1 -1
  169. package/packages/theme-chalk/src/index.scss +1 -0
  170. package/packages/theme-chalk/src/input.scss +1 -0
  171. package/packages/theme-chalk/src/select.scss +3 -1
  172. package/packages/theme-chalk/src/selector.scss +1 -1
  173. package/src/index.js +4 -1
  174. package/packages/flow/src/component/quick-actions.vue +0 -1168
  175. package/packages/flow-copy/index.js +0 -7
  176. package/packages/flow-copy/src/component/Circulate.vue +0 -452
  177. package/packages/flow-copy/src/component/CustomPreset.vue +0 -333
  178. package/packages/flow-copy/src/component/FreeCirculation.vue +0 -275
  179. package/packages/flow-copy/src/component/Preset.vue +0 -273
  180. package/packages/flow-copy/src/component/SendMsg.vue +0 -290
  181. package/packages/flow-copy/src/component/TimeLimit.vue +0 -205
  182. package/packages/flow-copy/src/component/taskUnionExamine.vue +0 -818
  183. package/packages/flow-copy/src/freeStartFlow.vue +0 -2912
  184. package/packages/flow-copy/src/processForm.vue +0 -1411
  185. package/packages/flow-copy/src/processReject.vue +0 -319
  186. package/packages/flow-copy/src/reset.vue +0 -944
  187. package/packages/flow-copy/src/selectUser.vue +0 -513
  188. package/packages/flow-copy/src/startTaskRead.vue +0 -723
  189. package/packages/flow-copy/src/supervise.vue +0 -182
  190. package/packages/flow-copy/src/table.vue +0 -65
  191. /package/packages/{flow-copy → flow}/src/component/FileList.vue +0 -0
  192. /package/packages/{flow-copy → flow}/src/main.vue +0 -0
  193. /package/packages/{flow-copy/src → flows/src/components}/form.vue +0 -0
  194. /package/packages/{flow/src/component → flows/src/components}/message.vue +0 -0
  195. /package/packages/{flow/src/component → flows/src/components}/opinions-list.vue +0 -0
@@ -1,333 +0,0 @@
1
- <template>
2
- <es-collapse v-model="activeNames" accordion>
3
- <es-collapse-item
4
- :title="customPresetHintMessage || '预设节点信息(折叠不作处理)'"
5
- name="1"
6
- >
7
- <div v-for="(item, index) of newPresetList" :key="index">
8
- <es-form-item
9
- prop="flow"
10
- class="flow-node-tree"
11
- :label="`节点${index + 1}`"
12
- >
13
- <es-select
14
- v-model="item.name"
15
- @change="changePreset($event, null, index)"
16
- >
17
- <es-option
18
- v-for="items in item.option"
19
- :key="items.nodeId"
20
- :label="items.nodeName"
21
- :value="items.nodeId"
22
- ></es-option>
23
- </es-select>
24
- </es-form-item>
25
- <es-form-item v-if="item.name != 'endEvent'" prop="user" label="办理人">
26
- <SelectUser
27
- ref="selectUser"
28
- :showUser="true"
29
- :nextUser="item.nextUser"
30
- :radioList="item.radioList"
31
- :multiple="item.multiple"
32
- :isCustomUser="item.isCustomUser"
33
- :options="item.options"
34
- :presetEdit="item.presetEdit"
35
- :selectUserList="item.selectUserList"
36
- @change="changePresetUser($event, index)"
37
- :types="['employee', 'persongroup']"
38
- :params="item.params"
39
- />
40
- </es-form-item>
41
- </div>
42
- </es-collapse-item>
43
- </es-collapse>
44
- </template>
45
-
46
- <script>
47
- import { getNodeInfo, getPresetCustomInfo } from 'eoss/src/config/api';
48
- import SelectUser from '../selectUser.vue';
49
- import { error } from 'eoss/src/utils/util';
50
- import { ajax } from 'eoss/src/utils/ajax';
51
- import { getStorage } from 'eoss/src/utils/storage';
52
- export default {
53
- name: 'CustomPreset',
54
- components: {
55
- [SelectUser.name]: SelectUser
56
- },
57
- data() {
58
- return {
59
- activeNames: '',
60
- newProcessDefinitionId: '',
61
- newPresetList: []
62
- };
63
- },
64
- props: {
65
- /**
66
- * 预设节点列表
67
- */
68
- presetList: {
69
- type: Array,
70
- default: () => []
71
- },
72
- /**
73
- * 默认选中子流程ID
74
- */
75
- processDefinitionId: {
76
- type: String,
77
- default: ''
78
- },
79
- /**
80
- * 预设消息
81
- */
82
- customPresetHintMessage: {
83
- type: String,
84
- default: ''
85
- },
86
- /**
87
- * 业务ID
88
- */
89
- id: {
90
- type: String,
91
- default: ''
92
- },
93
- /**
94
- * 下步节点
95
- */
96
- nextNode: {
97
- type: String,
98
- default: ''
99
- }
100
- },
101
- watch: {
102
- activeNames(val) {
103
- this.$emit('changeActiveNames', val);
104
- this.$emit('change-active-names', val);
105
- },
106
- processDefinitionId: {
107
- handler(val) {
108
- this.newProcessDefinitionId = val;
109
- },
110
- deep: true,
111
- immediate: true
112
- }
113
- },
114
- methods: {
115
- changePreset(nodeId, processDefinitionId, index) {
116
- this.newPresetList.splice(index + 1);
117
-
118
- if (nodeId === 'endEvent' || nodeId == 1) {
119
- this.newPresetList[index].options = [];
120
- this.newPresetList[index].selectUserList = [];
121
- this.newPresetList[index].params = {};
122
- this.newPresetList[index].radioList = [];
123
- this.newPresetList[index].nextUser = [];
124
- return;
125
- }
126
- this.$emit('loadingStart');
127
- this.$emit('loading-start');
128
- this.show = false;
129
- this.getPresetFlowInfo(nodeId, processDefinitionId);
130
- // return
131
- this.getNodeInfos(nodeId, processDefinitionId, index);
132
- },
133
- getNodeInfos(nodeId, processDefinitionId, index) {
134
- let params = {
135
- processDefinitionId: processDefinitionId
136
- ? processDefinitionId
137
- : this.newProcessDefinitionId,
138
- nextNodeId: nodeId,
139
- businessId: this.id
140
- };
141
- ajax({ url: getNodeInfo, params })
142
- .then((res) => {
143
- const {
144
- status,
145
- message,
146
- data: { nextUserList, nodeExtAttr }
147
- } = res;
148
- if (status === 'success') {
149
- let info = this.newPresetList[index];
150
- const { multiple, params } = this.isMultiple(
151
- nodeExtAttr.userSelectionType
152
- );
153
- info.isCustomUser = nodeExtAttr.isCustomUser;
154
- info.multiple = multiple;
155
- info.params = params;
156
- info.nextUser = [];
157
- info.options = [];
158
- info.selectUserList = [];
159
- info.presetEdit = 0;
160
- info.presetEdit = nodeExtAttr.presetEdit;
161
- info.isDefSelectedObj = nodeExtAttr.isDefSelectedObj;
162
- nextUserList.map((item) => {
163
- if (info.multiple && info.isDefSelectedObj == 1) {
164
- info.nextUser.push(item.userId);
165
- info.selectUserList.push({
166
- showname: item.username,
167
- showid: item.userId
168
- });
169
- }
170
- info.options.push({
171
- showname: item.username,
172
- showid: item.userId
173
- });
174
- });
175
- if (
176
- !info.multiple &&
177
- nextUserList.length > 0 &&
178
- info.isDefSelectedObj == 1
179
- ) {
180
- info.nextUser = nextUserList[0].userId;
181
- info.selectUserList.push({
182
- showname: nextUserList[0].username,
183
- showid: nextUserList[0].userId
184
- });
185
- }
186
-
187
- if (!info.multiple && info.isDefSelectedObj != 1)
188
- info.nextUser = '';
189
-
190
- info.radioList = info.options;
191
- this.changeSelectData();
192
- } else {
193
- error(message || '系统错误,请联系管理员!');
194
- }
195
- this.$emit('loadingEnd');
196
- this.$emit('loading-end');
197
- nodeId &&
198
- setTimeout(() => {
199
- this.$refs.selectUser[index].changeInfo(
200
- this.newPresetList[index]
201
- );
202
- }, 500);
203
- })
204
- .catch((err) => {});
205
- },
206
- isMultiple(val, choiceOrgId, choiceDeptId, pOrgId) {
207
- let multiple = false;
208
- let params = {};
209
- if (val == 2 || val == 4 || val == 6 || val == 16) {
210
- multiple = true;
211
- }
212
- if (val == 1 || val == 2 || val == 5) {
213
- params.filid = getStorage('orgId');
214
- params.only_filid = true;
215
- if (choiceOrgId) {
216
- params.filid = choiceOrgId;
217
- }
218
- }
219
- if (val == 5 || val == 6) {
220
- params.filid = getStorage('orgId');
221
- params.deptid = getStorage('orgId');
222
- if (choiceDeptId) {
223
- params.deptid = choiceDeptId;
224
- }
225
- if (choiceOrgId) {
226
- params.filid = choiceOrgId;
227
- }
228
- }
229
- if (val == 15 || val == 16) {
230
- params.filid = getStorage('orgId');
231
- if (pOrgId) {
232
- params.filid = pOrgId;
233
- }
234
- }
235
- return { multiple, params };
236
- },
237
- getPresetFlowInfo(nodeId, processDefinitionId, isNoStart) {
238
- isNoStart && (this.newPresetList = []);
239
- let params = {
240
- url: getPresetCustomInfo,
241
- data: {
242
- nodeId: nodeId,
243
- processDefinitionId: processDefinitionId
244
- ? processDefinitionId
245
- : this.newProcessDefinitionId
246
- },
247
- method: 'post'
248
- };
249
- ajax(params)
250
- .then((res) => {
251
- const { status, data } = res;
252
- if (status === 'success') {
253
- let list = [
254
- {
255
- nodeName: '请选择',
256
- nodeId: '1',
257
- value: '',
258
- options: [],
259
- multiple: false,
260
- selectUserList: [],
261
- isCustomUser: 1,
262
- params: {},
263
- radioList: []
264
- }
265
- ];
266
- for (let key in data) {
267
- list.push({
268
- nodeName: data[key],
269
- nodeId: key,
270
- options: [],
271
- multiple: false,
272
- selectUserList: [],
273
- isCustomUser: 1,
274
- params: {},
275
- radioList: []
276
- });
277
- if (key === 'endEvent') {
278
- list.splice(0, 1);
279
- }
280
- }
281
- let lastName = '';
282
- if (this.newPresetList.length == 0) {
283
- lastName = this.nextNode;
284
- } else {
285
- lastName = this.newPresetList[this.newPresetList.length - 1].name;
286
- }
287
- this.newPresetList.push({
288
- name: '',
289
- value: '',
290
- option: list,
291
- lastName,
292
- sequence: this.newPresetList.length + 1 + ''
293
- });
294
- if (
295
- this.newPresetList[this.newPresetList.length - 1].option[0]
296
- .nodeId === 'endEvent'
297
- ) {
298
- this.newPresetList[this.newPresetList.length - 1].name =
299
- 'endEvent';
300
- }
301
- }
302
- })
303
- .catch((err) => {});
304
- },
305
- changePresetUser(val, index) {
306
- const { nextUser, options } = val;
307
- this.newPresetList[index].nextUser = nextUser;
308
- this.newPresetList[index].selectUserList = options;
309
- this.changeSelectData();
310
- },
311
- changeSelectData() {
312
- let customPresetUserJson = [];
313
- this.newPresetList.map((item) => {
314
- customPresetUserJson.push({
315
- name: item.name,
316
- lastName: item.lastName,
317
- value:
318
- item.name != 'endEvent'
319
- ? item.multiple
320
- ? item.nextUser.join(',')
321
- : item.nextUser
322
- : '',
323
- sequence: item.sequence
324
- });
325
- });
326
- this.$emit('changeCustom', customPresetUserJson);
327
- this.$emit('change-custom', customPresetUserJson);
328
- }
329
- }
330
- };
331
- </script>
332
-
333
- <style></style>
@@ -1,275 +0,0 @@
1
- <template>
2
- <div>
3
- <es-form
4
- ref="nextNode"
5
- :model="nextNode"
6
- class="demo-dynamic"
7
- label-width="150px"
8
- :label-position="formLabelPosition"
9
- >
10
- <es-form-item prop="nextCurrentOrgObj" label="本单位">
11
- <SelectUser
12
- :nextUser="nextCurrentOrgObjSelect"
13
- multiple
14
- mix
15
- :disableds="currentOrgDisabledObjId"
16
- @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
17
- :types="currentOrgSelectorTabs"
18
- :params="currentOrgSelectorParams"
19
- />
20
- </es-form-item>
21
- <es-form-item v-if="showOther" prop="nextOtherOrgObj" label="外单位">
22
- <SelectUser
23
- :nextUser="nextOtherOrgObjSelect"
24
- multiple
25
- mix
26
- :disableds="otherOrgDisabledObjId"
27
- :where="{ filid: 'other', roleid: selectorParams.roleid }"
28
- @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
29
- :types="foreignOrgSelectorTabs"
30
- :params="foreignOrgSelectorParams"
31
- />
32
- </es-form-item>
33
- </es-form>
34
- <div style="text-align: right">
35
- <es-button type="primary" size="small" @click="subMit"> 确定 </es-button>
36
- <es-button @click="quit" size="small"> 取消 </es-button>
37
- </div>
38
- </div>
39
- </template>
40
-
41
- <script>
42
- import SelectUser from '../selectUser.vue';
43
- import { loading, success, error } from 'eoss/src/utils/util';
44
- import { ajax } from 'eoss/src/utils/ajax';
45
- import { getStorage } from 'eoss/src/utils/storage';
46
- import {
47
- toFreeTaskCircularRead,
48
- freeTaskCircularRead
49
- } from 'eoss/src/config/api';
50
- export default {
51
- components: { SelectUser },
52
- props: {
53
- /**
54
- * 表单标题对齐方式
55
- */
56
- formLabelPosition: {
57
- type: String,
58
- default: 'left'
59
- },
60
- /**
61
- * 人员选择器参数
62
- */
63
- selectorParams: {
64
- type: Object,
65
- default: () => {
66
- return {};
67
- }
68
- },
69
- /**
70
- * 接口参数
71
- */
72
- params: {
73
- type: Object,
74
- default: () => {}
75
- },
76
- /**
77
- * appId
78
- */
79
- appId: {
80
- type: String,
81
- default: ''
82
- },
83
- /**
84
- * 是否展示外单位选择器
85
- */
86
- showOther: { type: Boolean, default: true }
87
- },
88
- data() {
89
- return {
90
- currentOrgDisabledObjId: [],
91
- otherOrgDisabledObjId: [],
92
- nextCurrentOrgObjSelect: [],
93
- currentNodeIsCircularReadNode: false,
94
- simpleTips: true,
95
- subProcessColumns: [],
96
- nextOtherOrgObjSelect: [],
97
- nextNode: {},
98
- currentOrgSelectorParams: {
99
- filid: JSON.parse(getStorage('mainConfig')).userModel.orgId,
100
- only_filid: true
101
- },
102
- currentOrgSelectorTabs: ['employee', 'persongroup'],
103
- foreignOrgSelectorTabs: ['enterprise', 'filgroupobj'],
104
- foreignOrgSelectorParams: {
105
- enterprise: {
106
- filid: 'all',
107
- roleid: '',
108
- nofilid: sessionStorage.getItem('orgId')
109
- },
110
- filgroup: {
111
- filid: 'all',
112
- roleid: '',
113
- nofilid: sessionStorage.getItem('orgId')
114
- },
115
- roleid: ''
116
- },
117
- loading: null
118
- };
119
- },
120
- mounted() {
121
- this.foreignOrgSelectorParams.roleid =
122
- this.currentOrgSelectorParams.roleid = this.selectorParams.roleid;
123
- this.getFreeTaskCircularRead();
124
- },
125
- methods: {
126
- quit() {
127
- this.$emit('cancel');
128
- this.$parent.$emit('cancel');
129
- },
130
- subMit() {
131
- if (!this.nextNode.nextCurrentOrgObj && !this.nextNode.nextOtherOrgObj)
132
- return warning('请选择下步办理对象!');
133
- let param = {
134
- url: freeTaskCircularRead,
135
- data: {
136
- appId: this.appId || this.params.appId,
137
- nextCurrentOrgObj: this.nextNode.nextCurrentOrgObj,
138
- nextOtherOrgObj: this.nextNode.nextOtherOrgObj || ''
139
- },
140
- method: 'post'
141
- };
142
- this.loading = loading('提交中');
143
- ajax(param).then((res) => {
144
- this.loading.close();
145
- if (res.rCode == 0 || res.status == 'success') {
146
- if (!this.simpleTips) {
147
- this.$message({
148
- message: '提交成功',
149
- type: 'success',
150
- onClose: () => {
151
- this.$parent.$emit('success');
152
- }
153
- });
154
- } else {
155
- this.$parent.$emit('success');
156
- }
157
- } else {
158
- this.$message({
159
- message: res.message || res.msg || '系统错误,请联系管理员!',
160
- type: 'error'
161
- });
162
- }
163
- });
164
- },
165
- getFreeTaskCircularRead() {
166
- let param = {
167
- url: toFreeTaskCircularRead,
168
- params: { appId: this.appId || this.params.appId }
169
- };
170
- this.loading = loading();
171
- ajax(param).then((res) => {
172
- this.loading.close();
173
- if (res.rCode == 0 || res.status == 'success') {
174
- this.simpleTips = res.results.simpleTips;
175
- this.currentOrgDisabledObjId =
176
- res.results.disabledCurrentOrgUserId.split(',');
177
- this.otherOrgDisabledObjId =
178
- res.results.disabledForeignOrgId.split(',');
179
- }
180
- });
181
- },
182
- getsubProcessColumns() {
183
- let data = [];
184
- let obj = { name: '[部门员工]-' };
185
- if (this.nextCurrentOrgObjSelect.length > 0) {
186
- this.nextCurrentOrgObjSelect.map((x) => {
187
- if (x.stype == 'employee') {
188
- obj.name = !obj.value
189
- ? obj.name + x.showname
190
- : obj.name + ',' + x.showname;
191
- obj.value = obj.value
192
- ? obj.value + ',' + x.showid
193
- : 'employee-' + x.showid;
194
- } else {
195
- data.push({
196
- name: '[部门]' + x.showname,
197
- value: 'department-' + x.showid
198
- });
199
- }
200
- });
201
- }
202
- obj.value && data.push(obj);
203
- if (this.nextOtherOrgObjSelect.length > 0) {
204
- this.nextOtherOrgObjSelect.map((x) => {
205
- data.push({
206
- name: '[企业]' + x.showname,
207
- value: 'enterprise-' + x.showid
208
- });
209
- });
210
- }
211
- this.subProcessColumns = data;
212
- // return data;
213
- },
214
- // 单位选择完回调
215
- disposeAppUnit(res, type) {
216
- let label = type.substring(0, type.lastIndexOf('Select'));
217
- this.nextNode[label + 'Name'] = '';
218
- res.options && (this[type] = res.options);
219
- let obj = {};
220
- // if (typeof res.mixList == 'array')
221
- res.mixList && (this.nextNode[label] = res.mixList.join('|'));
222
- res.options.map((item) => {
223
- if (obj[item.stype]) {
224
- obj[item.stype].push(item.showname);
225
- } else {
226
- obj[item.stype] = [item.showname];
227
- }
228
- });
229
- for (let key in obj) {
230
- if (
231
- key === 'enterprise' &&
232
- this.nextNode[label + 'Name'].indexOf('[企业]') == -1
233
- ) {
234
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
235
- ? this.nextNode[label + 'Name'] +
236
- '|' +
237
- '[企业]-' +
238
- obj[key].join(',')
239
- : '' + '[企业]-' + obj[key].join(',');
240
- }
241
- if (
242
- key === 'department' &&
243
- this.nextNode[label + 'Name'].indexOf('[部门]') == -1
244
- ) {
245
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
246
- ? this.nextNode[label + 'Name'] +
247
- '|' +
248
- '[部门]-' +
249
- obj[key].join(',')
250
- : '' + '[部门]-' + obj[key].join(',');
251
- }
252
- if (
253
- key === 'employee' &&
254
- this.nextNode[label + 'Name'].indexOf('[部门员工]') == -1
255
- ) {
256
- this.nextNode[label + 'Name'] = this.nextNode[label + 'Name']
257
- ? this.nextNode[label + 'Name'] +
258
- '|' +
259
- '[部门员工]-' +
260
- obj[key].join(',')
261
- : '' + '[部门员工]-' + obj[key].join(',');
262
- }
263
- }
264
- // this.nextNode[label + 'Name'] = obj.enterprise?;
265
- if (!this.currentNodeIsCircularReadNode) {
266
- this.nextNode[label + 'SerialId'] = res.nextUser.join(',');
267
- this.nextNode[label + 'Json'] = JSON.stringify(res.options);
268
- }
269
- this.getsubProcessColumns();
270
- }
271
- }
272
- };
273
- </script>
274
-
275
- <style></style>