eoss 0.1.0-alpha.44 → 0.1.0-alpha.46

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 (79) hide show
  1. package/lib/button-group.js +11 -9
  2. package/lib/button.js +5 -3
  3. package/lib/cascader.js +3 -3
  4. package/lib/color-picker.js +6 -3
  5. package/lib/data-table.js +60 -23
  6. package/lib/date-picker.js +5 -3
  7. package/lib/eoss.common.js +748 -332
  8. package/lib/flow.js +7 -9
  9. package/lib/form-editor.js +2 -3
  10. package/lib/index.js +1 -1
  11. package/lib/input-number.js +6 -2
  12. package/lib/input.js +148 -87
  13. package/lib/select.js +237 -15
  14. package/lib/selector.js +16 -4
  15. package/lib/switch.js +6 -3
  16. package/lib/table-column.js +49 -68
  17. package/lib/table.js +111 -90
  18. package/lib/tag.js +2 -0
  19. package/lib/theme-chalk/base.css +1 -1
  20. package/lib/theme-chalk/cascader.css +1 -1
  21. package/lib/theme-chalk/icons.css +1 -1
  22. package/lib/theme-chalk/index.css +1 -1
  23. package/lib/theme-chalk/main.css +1 -1
  24. package/lib/theme-chalk/pagination.css +1 -1
  25. package/lib/theme-chalk/select.css +1 -1
  26. package/lib/theme-chalk/table-column.css +1 -1
  27. package/lib/theme-chalk/table.css +1 -1
  28. package/lib/theme-chalk/tag.css +1 -1
  29. package/lib/time-picker.js +5 -3
  30. package/lib/time-select.js +5 -3
  31. package/lib/tree.js +17 -7
  32. package/lib/upload.js +85 -8
  33. package/package.json +1 -1
  34. package/packages/button/src/button-group.vue +9 -7
  35. package/packages/button/src/button.vue +7 -5
  36. package/packages/cascader/src/cascader.vue +1 -1
  37. package/packages/color-picker/src/color-picker.vue +4 -1
  38. package/packages/data-table/src/data-table.vue +32 -7
  39. package/packages/date-picker/src/picker.vue +3 -1
  40. package/packages/flow/src/selectUser.vue +12 -18
  41. package/packages/form-editor/src/form-editor.vue +0 -1
  42. package/packages/input/src/input.vue +94 -60
  43. package/packages/input-number/src/input-number.vue +5 -1
  44. package/packages/select/src/select.vue +208 -13
  45. package/packages/selector/src/selector.vue +10 -1
  46. package/packages/switch/src/switch.vue +4 -1
  47. package/packages/table/src/store/index.js +10 -1
  48. package/packages/table/src/table-column.js +7 -1
  49. package/packages/table/src/table-header.js +52 -7
  50. package/packages/table/src/util.js +35 -60
  51. package/packages/tag/src/tag.vue +2 -0
  52. package/packages/theme-chalk/src/base.scss +7 -0
  53. package/packages/theme-chalk/src/icons.scss +13 -1
  54. package/packages/theme-chalk/src/table.scss +18 -2
  55. package/packages/theme-chalk/src/tag.scss +303 -242
  56. package/packages/tree/src/tree.vue +13 -3
  57. package/packages/upload/src/index.vue +43 -8
  58. package/src/index.js +1 -1
  59. package/packages/flowOld/index.js +0 -7
  60. package/packages/flowOld/src/component/Circulate.vue +0 -464
  61. package/packages/flowOld/src/component/CustomPreset.vue +0 -343
  62. package/packages/flowOld/src/component/FileList.vue +0 -117
  63. package/packages/flowOld/src/component/FreeCirculation.vue +0 -278
  64. package/packages/flowOld/src/component/Preset.vue +0 -283
  65. package/packages/flowOld/src/component/SendMsg.vue +0 -309
  66. package/packages/flowOld/src/component/TimeLimit.vue +0 -223
  67. package/packages/flowOld/src/component/opinions-file.vue +0 -126
  68. package/packages/flowOld/src/component/opinions.vue +0 -429
  69. package/packages/flowOld/src/component/taskUnionExamine.vue +0 -832
  70. package/packages/flowOld/src/form.vue +0 -134
  71. package/packages/flowOld/src/freeStartFlow.vue +0 -2945
  72. package/packages/flowOld/src/main.vue +0 -4141
  73. package/packages/flowOld/src/processForm.vue +0 -1431
  74. package/packages/flowOld/src/processReject.vue +0 -338
  75. package/packages/flowOld/src/reset.vue +0 -964
  76. package/packages/flowOld/src/selectUser.vue +0 -520
  77. package/packages/flowOld/src/startTaskRead.vue +0 -737
  78. package/packages/flowOld/src/supervise.vue +0 -197
  79. package/packages/flowOld/src/table.vue +0 -71
@@ -1,737 +0,0 @@
1
- <template>
2
- <div
3
- v-loading="loading === true"
4
- class="task-read"
5
- element-loading-text="加载中..."
6
- element-loading-spinner="es-icon-loading"
7
- element-loading-background="rgba(255, 255,255, 0.8)"
8
- :style="`height: ${typeCode == 'read' ? '100%' : 'unset'};`"
9
- >
10
- <es-form
11
- ref="nextNode"
12
- :model="nextNode"
13
- class="demo-dynamic"
14
- label-width="150px"
15
- >
16
- <!-- :style="`max-height: ${
17
- typeCode ? 'unset' : '290px'
18
- }; overflow-y: auto; margin-bottom: 10px`" -->
19
- <div>
20
- <es-form-item
21
- prop="handleExplain"
22
- label="当前步骤"
23
- v-if="type === 'transfer'"
24
- >
25
- <es-input readonly v-model="nextNode.nodeName"></es-input>
26
- </es-form-item>
27
- <es-form-item
28
- v-if="type == 'transfer' && transferInfo.isSinglePage"
29
- prop="handleExplain"
30
- label="意见"
31
- >
32
- <es-input
33
- v-model="nextNode.handleExplain"
34
- placeholder="请填写意见"
35
- ></es-input>
36
- </es-form-item>
37
- <es-form-item
38
- prop="nextUser"
39
- :label="
40
- type === 'transfer'
41
- ? '转办对象'
42
- : configInfo.isCdjxjTaskHandle == 'true'
43
- ? '接收人'
44
- : '办理用户'
45
- "
46
- >
47
- <SelectUser
48
- :nextUser="nextNode.nextUser"
49
- :options="userOptions"
50
- :multiple="type != 'transfer' ? multiple : false"
51
- :mix="type != 'transfer'"
52
- :selectUserList="selectUserList"
53
- :disableds="readDisableds"
54
- :types="
55
- selectorTabs
56
- ? selectorTabs
57
- : type == 'transfer'
58
- ? ['employee', 'persongroup']
59
- : ['employee', 'enterprise', 'department', 'persongroup']
60
- "
61
- @change="changeSelectUser($event, 'nextUser')"
62
- :tabs="tabs"
63
- :params="selectorParams"
64
- />
65
- </es-form-item>
66
-
67
- <es-form-item
68
- v-if="
69
- configInfo.isCdjxjTaskHandle != 'true' &&
70
- type != 'transfer' &&
71
- configInfo.groups &&
72
- configInfo.groups.length != 0
73
- "
74
- prop="cy"
75
- label="常用群组"
76
- ><es-checkbox-group v-model="selectCheck">
77
- <es-checkbox
78
- @change="handleSelectCheck($event, item)"
79
- v-for="item in configInfo.groups"
80
- :label="item.name"
81
- :key="item.id"
82
- >{{ item.name }}</es-checkbox
83
- >
84
- </es-checkbox-group>
85
- </es-form-item>
86
- <es-form-item
87
- v-if="configInfo.fyDoresult == 'true'"
88
- prop="showDoresult"
89
- label="流程意见"
90
- ><es-radio v-model="nextNode.showDoresult" label="0">分阅</es-radio>
91
- <es-radio v-model="nextNode.showDoresult" label="1">不分阅</es-radio>
92
- </es-form-item>
93
- <es-form-item
94
- v-if="configInfo.fyeh == 'true'"
95
- prop="isInHistory"
96
- label="分阅记录"
97
- ><es-radio v-model="nextNode.isInHistory" label="0">记录</es-radio>
98
- <es-radio v-model="nextNode.isInHistory" label="1">不记录</es-radio>
99
- </es-form-item>
100
- <es-form-item
101
- v-if="configInfo.download"
102
- prop="isDownload"
103
- label="打印下载文件"
104
- ><es-radio v-model="nextNode.isDownload" label="0">允许</es-radio>
105
- <es-radio v-model="nextNode.isDownload" label="1">不允许</es-radio>
106
- </es-form-item>
107
- <es-form-item
108
- prop="handleExplain"
109
- :label="configInfo.isCdjxjTaskHandle == 'true' ? '附言' : '办理说明'"
110
- v-if="type != 'transfer'"
111
- >
112
- <es-input
113
- v-model="nextNode.handleExplain"
114
- type="textarea"
115
- :rows="3"
116
- placeholder="请填写办理说明"
117
- ></es-input>
118
- </es-form-item>
119
- </div>
120
- <es-form-item v-if="showBtn" style="margin-bottom: 0px;">
121
- <div style="text-align: right">
122
- <es-button
123
- type="primary"
124
- size="small"
125
- @click="subProcess('nextNode')"
126
- >
127
- 提交
128
- </es-button>
129
- </div>
130
- </es-form-item>
131
- </es-form>
132
- <div
133
- v-show="configInfo.isCdjxjTaskHandle != 'true' && noticeList.length > 0"
134
- >
135
- <div class="news">
136
- <span class="news-item">消息通知</span>
137
- <!-- <span :class="showNews ? 'show' : 'sj'"></span> -->
138
- </div>
139
- <es-checkbox-group
140
- v-model="nextNode.noticeType"
141
- style="display: contents"
142
- >
143
- <es-checkbox
144
- v-for="item of noticeList"
145
- :key="item.cciValue"
146
- :label="item.cciValue"
147
- :disabled="
148
- readOnlyNotificationType
149
- ? readOnlyNotificationType.indexOf(item.cciValue) != -1
150
- : false
151
- "
152
- >
153
- {{ item.shortName }}
154
- </es-checkbox>
155
- </es-checkbox-group>
156
- <es-input
157
- style="border-color: #ccc; border-radius: 6px; font-size: 14px"
158
- type="textarea"
159
- v-model="newsNoice"
160
- rows="4"
161
- :readonly="notificationMessageReadOnly == 'true'"
162
- />
163
- </div>
164
- </div>
165
- </template>
166
-
167
- <script>
168
- import {
169
- findSysCodes,
170
- taskReadHtml,
171
- toStartTaskRead,
172
- toTaskTransferIndex,
173
- getNotificationMsg,
174
- taskTransfer,
175
- findCodeValues
176
- } from 'eoss/src/config/api';
177
- import { error, success, warning } from 'eoss/src/utils/util';
178
- import { ajax } from 'eoss/src/utils/ajax';
179
- import { getStorage } from 'eoss/src/utils/storage';
180
- import SelectUser from './selectUser.vue';
181
- import EsButton from 'eoss/packages/button';
182
- import EsCheckbox from 'eoss/packages/checkbox';
183
- import EsCheckboxGroup from 'eoss/packages/checkbox-group';
184
- import EsForm from 'eoss/packages/form';
185
- import EsFormItem from 'eoss/packages/form-item';
186
- import EsInput from 'eoss/packages/input';
187
- import EsRadio from 'eoss/packages/radio';
188
- export default {
189
- name: 'StartTaskRead',
190
- components: {
191
- [Option.name]: Option,
192
- [SelectUser.name]: SelectUser,
193
- EsButton,
194
- EsCheckbox,
195
- EsCheckboxGroup,
196
- EsForm,
197
- EsFormItem,
198
- EsInput,
199
- EsRadio
200
- },
201
- props: {
202
- /**
203
- * 待办ID
204
- */
205
- pendingId: { type: String, default: '' },
206
- /**
207
- * 提交成功后是否弹窗确认
208
- */
209
- simpleTips: { type: Boolean, default: true },
210
- /**
211
- * 通知消息信息
212
- */
213
- newsInfo: { type: String, default: '' },
214
- /**
215
- * 流程类型
216
- */
217
- type: { type: String, default: '' },
218
- /**
219
- * 审批意见
220
- */
221
- option: { type: String, default: '' },
222
- /**
223
- * 类型编码
224
- */
225
- typeCode: { type: String, default: '' },
226
- /**
227
- * 重设appId
228
- */
229
- resetAppId: { type: String, default: '' },
230
- /**
231
- * 人员选择器配置
232
- */
233
- selectorConfig: { type: [Object, undefined], default: undefined },
234
- /**
235
- * 参数
236
- */
237
- param: { type: Object, default: () => {} },
238
- /**
239
- * 流程信息
240
- */
241
- taskExamine: { type: Object, default: () => {} },
242
- /**
243
- * 提交流程参数
244
- */
245
- subParams: {
246
- type: [Object, undefined],
247
- default: undefined
248
- },
249
- /**
250
- * 是否展示按钮
251
- */
252
- showBtn: { type: Boolean, default: false },
253
- readParams: {
254
- type: [Object, undefined],
255
- default: undefined
256
- }
257
- },
258
- data() {
259
- return {
260
- loading: false,
261
- newsNoice: '',
262
- readOnlyNotificationType: '',
263
- notificationMessageReadOnly: false,
264
- selectorTabs: null,
265
- selectorParams: null,
266
- nextNode: {
267
- nextUser: [],
268
- userInfo: [],
269
- noticeType: [],
270
- handleExplain: '',
271
- showDoresult: '0',
272
- isInHistory: '0',
273
- isDownload: '0'
274
- },
275
- mixList: [],
276
- newSelectUserList: [],
277
- orgId: '',
278
- noticeList: [],
279
- userOptions: [],
280
- readDisableds: [],
281
- selectCheck: [],
282
- selectUserList: [],
283
- transferInfo: {},
284
- multiple: true,
285
- params: { filid: 'all' },
286
- configInfo: {}
287
- };
288
- },
289
- computed: {
290
- tabs() {
291
- let tab = {};
292
- if (this.type != 'transfer') {
293
- tab = {
294
- employee: {
295
- param: {
296
- filid: this.orgId,
297
- name: '本单位用户'
298
- }
299
- },
300
- department: { param: { filid: this.orgId } },
301
- enterprise: {}
302
- };
303
- } else {
304
- tab = {
305
- employee: {
306
- param: {
307
- filid: this.orgId
308
- }
309
- }
310
- };
311
- }
312
- return tab;
313
- }
314
- },
315
- mounted() {
316
- this.newsNoice = this.newsInfo;
317
- if (this.readParams || this.typeCode == 'read') {
318
- this.getMessage();
319
- }
320
- this.getFind();
321
- if (getStorage('mainConfig')) {
322
- this.orgId = JSON.parse(getStorage('mainConfig')).userModel.orgId;
323
- }
324
- if (this.selectorConfig) {
325
- this.getSelectorConfig();
326
- }
327
- },
328
- methods: {
329
- getSelectorConfig() {
330
- this.selectorTabs = this.selectorConfig.type.split(',');
331
- this.selectorParams = this.selectorConfig.params;
332
- },
333
- //获取通知信息
334
- getMessage() {
335
- let params = {};
336
- if (this.typeCode == 'read') {
337
- params = {
338
- processDefinitionId: this.param.processDefinitionId,
339
- businessId: this.param.businessId,
340
- businessName: this.param.businessName,
341
- bCode: this.param.bCode,
342
- bName: this.param.bName
343
- };
344
- } else {
345
- params.appId = this.readParams.appId;
346
- }
347
- ajax({ url: getNotificationMsg, params, methods: 'post' })
348
- .then((res) => {
349
- if (res.status === 'success') {
350
- this.newsNoice = res.message;
351
- }
352
- })
353
- .catch((err) => {
354
- this.loading = false;
355
- });
356
- },
357
- toTaskTransfer() {
358
- const { opinion, pendingId, taskExamine } = this;
359
- let params = {
360
- url: toTaskTransferIndex,
361
- params: {
362
- opinion,
363
- pendingId,
364
- isSubFlow: taskExamine.isSubFlow,
365
- isSinglePage: taskExamine.isSinglePage
366
- }
367
- };
368
- ajax(params)
369
- .then((res) => {
370
- const {
371
- status,
372
- message,
373
- data: { choiceDeptId, choiceOrgId, nodeInfoMap, taskExamine }
374
- } = res;
375
- if (status == 'success') {
376
- this.isMultipleTransfer(
377
- nodeInfoMap.nodeExtAttr.userSelectionType,
378
- choiceOrgId,
379
- choiceDeptId
380
- );
381
- this.nextNode.nodeName = taskExamine.nodeName;
382
- this.transferInfo = taskExamine;
383
- } else {
384
- error(message || '系统错误,请联系管理员!');
385
- }
386
- })
387
- .catch((err) => {
388
- this.loading = false;
389
- });
390
- },
391
- isMultipleTransfer(val, choiceOrgId, choiceDeptId, pOrgId) {
392
- if (val == 2 || val == 4 || val == 6 || val == 16) {
393
- this.multiple = true;
394
- } else {
395
- this.multiple = false;
396
- }
397
- if (val == 1 || val == 2 || val == 5) {
398
- this.params.filid = this.orgId;
399
- if (choiceOrgId) {
400
- this.params.filid = choiceOrgId;
401
- }
402
- }
403
- if (val == 5 || val == 6) {
404
- this.params.filid = this.orgId;
405
- this.params.deptid = this.orgId;
406
- if (choiceDeptId) {
407
- this.params.deptid = choiceDeptId;
408
- }
409
- if (choiceOrgId) {
410
- this.params.filid = choiceOrgId;
411
- }
412
- }
413
- if (val == 15 || val == 16) {
414
- this.params.filid = this.orgId;
415
- if (pOrgId) {
416
- this.params.filid = pOrgId;
417
- }
418
- }
419
- },
420
- isMultiple() {
421
- let orgId = this.orgId;
422
- if (this.configInfo.selectPersonValue == 1) {
423
- this.multiple = false;
424
- this.params.filid = orgId;
425
- } else if (this.configInfo.selectPersonValue == 2) {
426
- this.multiple = true;
427
- this.params.filid = orgId;
428
- } else if (this.configInfo.selectPersonValue == 3) {
429
- this.multiple = false;
430
- this.params.filid = 'all';
431
- } else if (this.configInfo.selectPersonValue == 4) {
432
- this.multiple = true;
433
- this.params.filid = 'all';
434
- } else if (this.configInfo.selectPersonValue == 5) {
435
- this.multiple = false;
436
- this.params.filid = '';
437
- } else if (this.configInfo.selectPersonValue == 6) {
438
- this.multiple = true;
439
- this.params.filid = '';
440
- }
441
- },
442
- handleSelectCheck(val, data) {
443
- let { userIds, userNames } = data;
444
- if (val) {
445
- let newUserIds = userIds.split(',');
446
- let newUserNames = userNames.split(',');
447
- newUserIds.map((item, index) => {
448
- this.nextNode.nextUser.push(item);
449
- this.userOptions.push({ id: item, name: newUserNames[index] });
450
-
451
- this.selectUserList.push({
452
- showid: item,
453
- showname: newUserNames[index]
454
- });
455
- });
456
- // this.selectUserList = this.newSelectUserList
457
- } else {
458
- let newUserIds = userIds.split(',');
459
- for (let i = 0; i < this.nextNode.nextUser.length; i++) {
460
- for (let j = 0; j < newUserIds.length; j++) {
461
- if (this.nextNode.nextUser[i] == newUserIds[j]) {
462
- this.nextNode.nextUser.splice(i, 1);
463
- }
464
- }
465
- }
466
- for (let z = 0; z < this.userOptions.length; z++) {
467
- for (let x = 0; x < newUserIds.length; x++) {
468
- if (this.userOptions[z].id == newUserIds[x]) {
469
- this.userOptions.splice(z, 1);
470
- this.selectUserList.splice(z, 1);
471
- }
472
- }
473
- }
474
- // this.newSelectUserList = this.selectUserList
475
- }
476
- },
477
- toStartTaskRead() {
478
- let params = {
479
- url: toStartTaskRead,
480
- params: {
481
- pendingId: this.pendingId,
482
- taskAction: this.type,
483
- ...this.param
484
- }
485
- };
486
- if (this.typeCode == 'read') {
487
- delete params.params.pendingId;
488
- // params.params.appid = this.resetAppId;
489
- }
490
- if (this.type != 'taskReadAndEnd') delete params.params.taskAction;
491
- ajax(params)
492
- .then((res) => {
493
- const { status, data } = res;
494
- if (status === 'success') {
495
- this.configInfo = data;
496
- if (data.alreadyReadUserIds) {
497
- this.readDisableds = data.alreadyReadUserIds.split(',');
498
- }
499
- this.isMultiple();
500
- }
501
- })
502
- .catch((err) => {
503
- this.loading = false;
504
- });
505
- },
506
- changeSelectUser(val, type) {
507
- const { nextUser, options, mixList } = val;
508
- this.nextNode[type] = nextUser;
509
- this.mixList = mixList;
510
- options.map((item) => {
511
- this.newSelectUserList.push({
512
- showname: item.showname,
513
- showid: item.showid
514
- });
515
- });
516
- },
517
- getNodeType() {
518
- ajax({
519
- url: findCodeValues,
520
- params: {
521
- ccCode: 'fenyue_msg_type',
522
- userId: getStorage('userId')
523
- // pendingId:this.pendingId
524
- }
525
- })
526
- .then((res) => {
527
- const { status, data } = res;
528
- if (status === 'success') {
529
- this.noticeList = data;
530
- let arr = [];
531
- this.noticeList.map((item) => {
532
- this.nextNode.noticeType.map((x) => {
533
- if (x == item.cciValue) {
534
- arr.push(x);
535
- }
536
- });
537
- });
538
- this.nextNode.noticeType = arr;
539
- }
540
- })
541
- .catch((err) => {
542
- this.loading = false;
543
- });
544
- },
545
- // 转办提交
546
- subTaskTransfer() {
547
- const { choiceDeptId, choiceOrgId, bCode, bName } = this.taskExamine;
548
- const { opinion, pendingId, nextNode, newsNoice, multiple, type } = this;
549
- let params = {
550
- url: taskTransfer,
551
- data: {
552
- choiceDeptId,
553
- choiceOrgId,
554
- bCode,
555
- bName,
556
- nextUserId:
557
- multiple && type != 'transfer'
558
- ? nextNode.nextUser.join(',')
559
- : nextNode.nextUser,
560
- opinion,
561
- pendingId,
562
- notificationType: nextNode.noticeType.join(','),
563
- notificationMsg: newsNoice
564
- },
565
- headers: { Accept: 'application/json,text/plain' },
566
- method: 'post'
567
- };
568
- ajax(params)
569
- .then((res) => {
570
- const { message, status } = res;
571
- if (status === 'success') {
572
- this.simpleTips &&
573
- this.$message({
574
- message: '操作成功',
575
- type: 'success'
576
- });
577
- this.quit(true);
578
- } else {
579
- this.$message({
580
- message: message || '系统错误,请联系管理员!',
581
- type: 'error'
582
- });
583
- }
584
- this.loading = false;
585
- })
586
- .catch((err) => {
587
- this.loading = false;
588
- });
589
- },
590
- // 提交表单
591
- subProcess(formName) {
592
- this.$refs[formName].validate((valid) => {
593
- if (valid) {
594
- if (!this.option && this.isOpinionRequired === 1) {
595
- warning('请选择输入审批意见');
596
- return;
597
- }
598
- // let nextUser = [];
599
- // this.nextNode.nextUser.map(item => {
600
- // nextUser.push(item);
601
- // });
602
- if (this.nextNode.nextUser.length == 0) {
603
- warning(
604
- `请选择${
605
- this.type === 'transfer'
606
- ? '转办对象'
607
- : this.configInfo.isCdjxjTaskHandle == 'true'
608
- ? '接收人'
609
- : '办理用户'
610
- }`
611
- );
612
- return;
613
- }
614
- let noticeType = '';
615
- noticeType = this.nextNode.noticeType.join(',');
616
- this.loading = true;
617
- if (this.type === 'transfer') {
618
- this.subTaskTransfer();
619
- } else {
620
- const {
621
- appId,
622
- businessId,
623
- bCode,
624
- bName,
625
- choiceDeptId,
626
- choiceOrgId,
627
- businessName,
628
- processDefinitionId
629
- } = this.taskExamine;
630
- let params = {
631
- ...this.nextNode,
632
- bCode,
633
- bName,
634
- appId,
635
- businessId: businessId || this.param.businessId,
636
- choiceDeptId,
637
- choiceOrgId,
638
- businessName,
639
- processDefinitionId,
640
- currentOrgProcessKey:
641
- processDefinitionId || this.param.currentOrgProcessKey,
642
- pendingId: this.pendingId,
643
- opinion: this.option, // 审批意见
644
- userId: getStorage('userId'),
645
- nextReadUserId: this.mixList.join('|'),
646
- notificationType: noticeType,
647
- notificationMsg: this.newsNoice,
648
- taskAction: this.type
649
- // nextNodeId: this.form.nextNodeId
650
- };
651
- delete params.nextUser;
652
- delete params.noticeType;
653
- const { fyDoresult, fyeh, download, isCdjxjTaskHandle } =
654
- this.configInfo;
655
- fyDoresult != 'true' && delete params.showDoresult;
656
- fyeh != 'true' && delete params.isInHistory;
657
- !download && delete params.isDownload;
658
- isCdjxjTaskHandle == 'true' && delete params.noticeType;
659
- if (this.readParams) {
660
- params = { ...params, ...this.readParams };
661
- }
662
- if (this.subParams) {
663
- params = { ...params, ...this.subParams };
664
- }
665
- delete this.configInfo.taskExamine.taskExamineParam;
666
- ajax({
667
- url: taskReadHtml,
668
- params: { taskAction: this.type },
669
- headers: {
670
- Accept: 'application/json,text/plain'
671
- },
672
- method: 'post',
673
- data: { ...params, ...this.configInfo.taskExamine }
674
- })
675
- .then((res) => {
676
- const { message, status } = res;
677
- this.loading = false;
678
- if (status === 'success') {
679
- this.simpleTips &&
680
- this.$message({
681
- message: '操作成功',
682
- type: 'success'
683
- });
684
- this.quit(true);
685
- } else {
686
- this.$message({
687
- message: message || '系统错误,请联系管理员!',
688
- type: 'error'
689
- });
690
- }
691
- })
692
- .catch((err) => {
693
- this.loading = false;
694
- });
695
- }
696
- } else {
697
- return false;
698
- }
699
- });
700
- },
701
- quit(val) {
702
- if (val === true) return this.$emit('cancel', this.type);
703
- this.$emit('cancel');
704
- },
705
-
706
- getFind() {
707
- this.loading = true;
708
- ajax({
709
- url: findSysCodes
710
- })
711
- .then((res) => {
712
- const { status, message, data } = res;
713
- this.loading = false;
714
- if (status === 'success') {
715
- this.nextNode.noticeType = message.split(',');
716
- if (data) {
717
- this.notificationMessageReadOnly =
718
- data.notificationMessageReadOnly;
719
- this.readOnlyNotificationType = data.readOnlyNotificationType;
720
- }
721
- } else {
722
- error(message || '系统错误,请联系管理员!');
723
- }
724
- this.getNodeType();
725
- if (this.type === 'transfer') {
726
- this.toTaskTransfer();
727
- } else if (!this.readParams) {
728
- this.toStartTaskRead();
729
- }
730
- })
731
- .catch((err) => {
732
- this.loading = false;
733
- });
734
- }
735
- }
736
- };
737
- </script>