eoss-ui 0.4.61 → 0.4.63

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 (98) hide show
  1. package/lib/button-group.js +46 -44
  2. package/lib/button.js +46 -44
  3. package/lib/card.js +2 -2
  4. package/lib/cascader.js +2 -2
  5. package/lib/checkbox-group.js +61 -69
  6. package/lib/clients.js +2 -2
  7. package/lib/data-table-form.js +44 -42
  8. package/lib/data-table.js +107 -91
  9. package/lib/date-picker.js +53 -51
  10. package/lib/dialog.js +51 -50
  11. package/lib/editor.js +6 -6
  12. package/lib/enterprise.js +2 -2
  13. package/lib/eoss-ui.common.js +2408 -5194
  14. package/lib/error-page.js +2 -2
  15. package/lib/flow-group.js +127 -63
  16. package/lib/flow-list.js +1020 -323
  17. package/lib/flow.js +51 -50
  18. package/lib/form.js +231 -46
  19. package/lib/handle-user.js +46 -44
  20. package/lib/handler.js +49 -47
  21. package/lib/icons.js +4 -4
  22. package/lib/index.js +1 -1
  23. package/lib/input-number.js +46 -44
  24. package/lib/input.js +46 -44
  25. package/lib/label.js +2 -2
  26. package/lib/login.js +49 -47
  27. package/lib/main.js +289 -177
  28. package/lib/menu.js +7 -5
  29. package/lib/nav.js +48 -48
  30. package/lib/notify.js +2 -2
  31. package/lib/page.js +46 -44
  32. package/lib/pagination.js +2 -2
  33. package/lib/player.js +48 -46
  34. package/lib/qr-code.js +46 -44
  35. package/lib/radio-group.js +49 -47
  36. package/lib/retrial-auth.js +46 -44
  37. package/lib/select-ganged.js +46 -44
  38. package/lib/select.js +47 -45
  39. package/lib/selector-panel.js +46 -44
  40. package/lib/selector.js +63 -50
  41. package/lib/sizer.js +46 -44
  42. package/lib/steps.js +46 -44
  43. package/lib/switch.js +46 -44
  44. package/lib/table-form.js +46 -44
  45. package/lib/tabs-panel.js +2 -2
  46. package/lib/tabs.js +53 -51
  47. package/lib/theme-chalk/data-table.css +1 -1
  48. package/lib/theme-chalk/dialog.css +1 -1
  49. package/lib/theme-chalk/flow-list.css +1 -1
  50. package/lib/theme-chalk/index.css +1 -1
  51. package/lib/theme-chalk/menu.css +1 -1
  52. package/lib/tips.js +46 -44
  53. package/lib/toolbar.js +2 -2
  54. package/lib/tree-group.js +46 -44
  55. package/lib/tree.js +46 -44
  56. package/lib/upload.js +52 -50
  57. package/lib/utils/util.js +44 -42
  58. package/lib/wujie.js +46 -44
  59. package/lib/wxlogin.js +46 -44
  60. package/package.json +2 -2
  61. package/packages/checkbox-group/src/main.vue +16 -25
  62. package/packages/data-table/src/column.vue +15 -1
  63. package/packages/data-table/src/main.vue +58 -47
  64. package/packages/flow/src/component/taskUnionExamine.vue +0 -1
  65. package/packages/flow-group/src/main.vue +32 -14
  66. package/packages/flow-list/src/flow-table.vue +5 -1
  67. package/packages/flow-list/src/main.vue +780 -43
  68. package/packages/form/src/main.vue +63 -0
  69. package/packages/handler/src/main.vue +1 -1
  70. package/packages/login/src/main.vue +10 -1
  71. package/packages/main/src/main.vue +186 -63
  72. package/packages/main/src/userinfo.vue +3 -3
  73. package/packages/menu/src/main.vue +5 -3
  74. package/packages/nav/src/main.vue +0 -2
  75. package/packages/radio-group/src/main.vue +9 -5
  76. package/packages/select/src/main.vue +1 -1
  77. package/packages/selector/src/main.vue +12 -4
  78. package/packages/theme-chalk/lib/data-table.css +1 -1
  79. package/packages/theme-chalk/lib/dialog.css +1 -1
  80. package/packages/theme-chalk/lib/flow-list.css +1 -1
  81. package/packages/theme-chalk/lib/index.css +1 -1
  82. package/packages/theme-chalk/lib/menu.css +1 -1
  83. package/packages/theme-chalk/src/data-table.scss +10 -17
  84. package/packages/theme-chalk/src/dialog.scss +1 -1
  85. package/packages/theme-chalk/src/flow-list.scss +29 -34
  86. package/packages/theme-chalk/src/index.scss +0 -1
  87. package/packages/theme-chalk/src/menu.scss +3 -0
  88. package/packages/upload/src/main.vue +1 -1
  89. package/src/index.js +1 -4
  90. package/src/utils/util.js +58 -55
  91. package/lib/mainComp.js +0 -6817
  92. package/packages/mainComp/index.js +0 -5
  93. package/packages/mainComp/src/async-component/index.vue +0 -85
  94. package/packages/mainComp/src/main.vue +0 -1944
  95. package/packages/mainComp/src/message.vue +0 -239
  96. package/packages/mainComp/src/notice.vue +0 -152
  97. package/packages/mainComp/src/settings.vue +0 -105
  98. package/packages/mainComp/src/userinfo.vue +0 -430
@@ -1,18 +1,112 @@
1
1
  <template>
2
- <div class="flow-list">
2
+ <div class="es-flow-list">
3
3
  <div
4
+ class="es-flow-list-item"
5
+ v-for="(item, index) in content"
6
+ :key="index"
7
+ v-show="
8
+ (item.type == 'splitReading' &&
9
+ splitReadingData &&
10
+ splitReadingData.length > 0) ||
11
+ item.type != 'splitReading'
12
+ "
13
+ >
14
+ <div class="es-flow-list-box">
15
+ <es-data-table
16
+ :class="{ 'es-flow-group-data-table': item.type !== 'sign' }"
17
+ number
18
+ @cell-click="handleCellClick"
19
+ full
20
+ v-bind="item"
21
+ :data="
22
+ item.type === 'preset'
23
+ ? presetData
24
+ : item.type === 'sign'
25
+ ? signData
26
+ : item.type === 'splitReading'
27
+ ? splitReadingData
28
+ : flowData
29
+ "
30
+ @btn-click="handleBtnClick"
31
+ ></es-data-table>
32
+ </div>
33
+ </div>
34
+ <es-dialog
35
+ append-to-body
36
+ :close-on-click-modal="false"
37
+ title="查看附件"
38
+ :visible.sync="showFileList"
39
+ v-if="showFileList"
40
+ >
41
+ <FileList
42
+ :ownId="wfpendingid"
43
+ :code="flowTableInfo.adjunctCode"
44
+ :deleted="false"
45
+ :disabled="true"
46
+ @cancel="showFileList = false"
47
+ />
48
+ </es-dialog>
49
+ <es-dialog
50
+ append-to-body
51
+ :close-on-click-modal="false"
52
+ title="查看催办记录"
53
+ :visible.sync="showPress"
54
+ height="500px"
55
+ v-if="showPress"
56
+ >
57
+ <div style="height: 400px" v-loading="pressLoading">
58
+ <es-data-table
59
+ :data="pressTableList"
60
+ :thead="pressThead"
61
+ @page-size-change="handleSizeChange"
62
+ @page-current-change="handleCurrentChange"
63
+ stripe
64
+ full
65
+ style="width: 100%"
66
+ @sort-change="sortChange"
67
+ :page="pageInfo"
68
+ />
69
+ </div>
70
+ </es-dialog>
71
+ <es-dialog
72
+ append-to-body
73
+ :close-on-click-modal="false"
74
+ title="删除"
75
+ :visible.sync="showDel"
76
+ height="auto"
77
+ class="del-flow"
78
+ v-if="showDel"
79
+ >
80
+ <es-form
81
+ v-loading="delLoading"
82
+ :model="formData"
83
+ :contents="formItemList"
84
+ @submit="handleFormSubmit"
85
+ >
86
+ </es-form>
87
+ </es-dialog>
88
+ <!-- <div
4
89
  v-if="hide.indexOf('flow') == -1"
5
90
  :class="
6
91
  fyTableList != undefined && fyTableList.length != 0
7
92
  ? 'preset-list'
8
93
  : 'preset-list-tow'
9
94
  "
10
- style="flex:1"
95
+ style="flex: 1"
11
96
  >
12
- <div class="title">
97
+ <div class="es-toolbar" >
13
98
  流程列表
14
99
  <div v-if="isShort != 1" style="display:inline-block;margin-left:10px">
15
- <es-select
100
+
101
+ <el-radio-group
102
+ class="list-radio"
103
+ v-model="showSuggest"
104
+ @input="handleChange"
105
+ >
106
+ <el-radio label="all">显示全部</el-radio>
107
+ <el-radio label="have">显示已填意见</el-radio>
108
+ </el-radio-group>
109
+ <es-select
16
110
  v-model="viewType"
17
111
  placeholder="请选择"
18
112
  @change="handleChange"
@@ -25,40 +119,37 @@
25
119
  >
26
120
  </el-option>
27
121
  </es-select>
28
- <el-radio-group
29
- class="list-radio"
30
- v-model="showSuggest"
31
- @input="handleChange"
32
- >
33
- <el-radio label="all">显示全部</el-radio>
34
- <el-radio label="have">显示已填意见</el-radio>
35
- </el-radio-group>
36
122
  </div>
37
123
  </div>
38
124
  <FlowTable
39
125
  v-if="show"
40
- style="height:calc(100% - 60px)"
126
+ style="height: calc(100% - 60px)"
41
127
  :data="flowTableList"
42
128
  :modify="modify"
129
+ :toolbar="newToolbar"
43
130
  :fileStyle="attachmentPaperClipCssStyle"
44
131
  v-bind="flowTableInfo"
45
132
  @success="handleChange"
46
133
  />
47
134
  </div>
48
-
49
135
  <div
50
136
  v-if="
51
137
  fyTableList != undefined &&
52
- fyTableList.length != 0 &&
53
- show &&
54
- hide.indexOf('splitReading') == -1
138
+ fyTableList.length != 0 &&
139
+ show &&
140
+ hide.indexOf('splitReading') == -1
55
141
  "
56
142
  :class="'preset-list'"
57
143
  :style="hide.indexOf('preset') != -1 ? 'flex:1' : ''"
58
144
  >
59
- <div class="title">{{ taskReadName ? taskReadName : '非流程' }}列表</div>
60
145
  <FlowTable
61
- style="height:calc(100% - 40px)"
146
+ style="height: calc(100% - 40px)"
147
+ :toolbar="[
148
+ {
149
+ type: 'text',
150
+ contents: (taskReadName ? taskReadName : '非流程') + '列表'
151
+ }
152
+ ]"
62
153
  :data="fyTableList"
63
154
  v-bind="flowTableInfo"
64
155
  @success="handleChange"
@@ -75,17 +166,22 @@
75
166
  fyTableList != undefined && fyTableList.length != 0 ? '' : 'flex:1'
76
167
  "
77
168
  >
78
- <div class="title">预设列表</div>
79
169
  <es-data-table
80
170
  numbers
81
- :data="tableData"
171
+ :data="presetData"
82
172
  :thead="thead"
173
+ :toolbar="[
174
+ {
175
+ type: 'text',
176
+ contents: '预设列表'
177
+ }
178
+ ]"
83
179
  stripe
84
180
  full
85
181
  style="width: 100%"
86
182
  @btnClick="handleClick"
87
183
  />
88
- </div>
184
+ </div> -->
89
185
  </div>
90
186
  </template>
91
187
 
@@ -94,14 +190,18 @@ import {
94
190
  findCodeValues,
95
191
  deletePresetInfo,
96
192
  pendedhistoryListJson,
97
- toPresetInfoListIndex
193
+ toPresetInfoListIndex,
194
+ pressListJson,
195
+ deleteFlow
98
196
  } from 'eoss-ui/src/config/api';
197
+ import FileList from '../../flow/src/component/FileList.vue';
99
198
  import FlowTable from './flow-table.vue';
100
199
  import util from 'eoss-ui/src/utils/util';
101
200
  export default {
102
201
  name: 'EsFlowList',
103
202
  components: {
104
- [FlowTable.name]: FlowTable
203
+ [FlowTable.name]: FlowTable,
204
+ [FileList.name]: FileList
105
205
  },
106
206
  props: {
107
207
  businessId: {
@@ -111,18 +211,93 @@ export default {
111
211
  hide: {
112
212
  type: String,
113
213
  default: ''
214
+ },
215
+ toolbar: {
216
+ type: Array,
217
+ default: () => []
218
+ },
219
+ contents: {
220
+ type: Array,
221
+ default() {
222
+ return ['flow', 'splitReading', 'preset'];
223
+ }
114
224
  }
115
225
  },
116
226
  inheritAttrs: false,
117
227
  data() {
118
228
  return {
229
+ pressLoading: false,
230
+ pressTableList: [],
231
+ currentPage: 1,
232
+ pageSize: 20,
233
+ pressThead: [
234
+ {
235
+ title: '催办节点',
236
+ align: 'center',
237
+ sortable: true,
238
+ field: 'urge_item'
239
+ },
240
+ {
241
+ title: '催办人名称',
242
+ sortable: true,
243
+ align: 'center',
244
+ field: 'urge_man_name'
245
+ },
246
+ {
247
+ title: '催办时间',
248
+ sortable: true,
249
+ align: 'center',
250
+ field: 'urge_time'
251
+ },
252
+ {
253
+ title: '被催办人名称',
254
+ align: 'center',
255
+ sortable: true,
256
+ field: 'urged_man_name'
257
+ }
258
+ ],
259
+ wfpendingid: '',
260
+ showFileList: false,
261
+ flowData: [],
262
+ splitReadingData: [],
263
+ presetData: [],
264
+ signData: [],
119
265
  loading: '', //加载中
120
266
  preset_type: [], //预设类型
121
267
  showPress: false, //查看催办记录弹窗
122
268
  modify: false,
269
+ formData: { reason: '' },
270
+ formItemList: [
271
+ {
272
+ name: 'reason',
273
+ label: '删除原因',
274
+ type: 'textarea',
275
+ placeholder: '请输入删除原因',
276
+ rules: {
277
+ required: true,
278
+ message: '请输入删除原因',
279
+ trigger: 'blur'
280
+ },
281
+ value: '',
282
+ rows: 5
283
+ },
284
+ {
285
+ type: 'submit',
286
+ skin: 'lay-form-btns',
287
+ contents: [
288
+ {
289
+ type: 'primary',
290
+ plain: true,
291
+ text: '保存',
292
+ event: 'confirm'
293
+ }
294
+ ]
295
+ }
296
+ ],
297
+ delLoading: false,
298
+ showDel: false,
123
299
  attachmentPaperClipCssStyle: '',
124
300
  is_edit: [], //是否可编辑
125
- tableData: [], //预设列表
126
301
  flowTableInfo: {
127
302
  adjunctCode: '',
128
303
  hasAgent: '1' //是否展示代办人 1:展示 0:不展示
@@ -140,10 +315,424 @@ export default {
140
315
  fyTableList: [], //分阅列表
141
316
  showSuggest: 'all', //筛选显示数据
142
317
  presetInfoListHiddenColumns: '', //隐藏表格展示数据
143
- canDelete: false //是否展示操作按钮
318
+ canDelete: false, //是否展示操作按钮
319
+ historyId: '',
320
+ sidx: '',
321
+ sord: '',
322
+ total: 0
144
323
  };
145
324
  },
146
325
  computed: {
326
+ toolbars() {
327
+ return {
328
+ flow: [
329
+ {
330
+ type: 'text',
331
+ contents: '流程列表'
332
+ },
333
+ {
334
+ type: 'search',
335
+ contents: [
336
+ {
337
+ name: 'showSuggest',
338
+ type: 'radio',
339
+ changeSearch: true,
340
+ data: [
341
+ {
342
+ value: 'all',
343
+ name: '显示全部',
344
+ checked: true
345
+ },
346
+ { value: 'have', name: '显示已填意见' }
347
+ ],
348
+ events: {
349
+ change: (key, value) => {
350
+ this.handleChange(key, value);
351
+ }
352
+ }
353
+ },
354
+ {
355
+ type: 'select',
356
+ placeholder: '请选择',
357
+ name: 'viewType',
358
+ width: '140px',
359
+ changeSearch: true,
360
+ events: {
361
+ change: (key, value) => {
362
+ this.handleChange(key, value);
363
+ }
364
+ },
365
+ data: [
366
+ {
367
+ value: 1,
368
+ selected: true,
369
+ name: '时间排序'
370
+ },
371
+ {
372
+ value: 2,
373
+ name: '部门排序'
374
+ },
375
+ {
376
+ value: 3,
377
+ name: '树形排序'
378
+ }
379
+ ]
380
+ }
381
+ ]
382
+ }
383
+ ],
384
+ preset: [
385
+ {
386
+ type: 'text',
387
+ contents: '预设列表'
388
+ }
389
+ ],
390
+ sign: [
391
+ {
392
+ type: 'button',
393
+ contents: [
394
+ {
395
+ text: '生成处理签',
396
+ type: 'primary'
397
+ }
398
+ ]
399
+ }
400
+ ],
401
+ splitReading: [
402
+ {
403
+ type: 'text',
404
+ contents:
405
+ (this.taskReadName ? this.taskReadName : '非流程') + '列表'
406
+ }
407
+ ]
408
+ };
409
+ },
410
+ pageInfo() {
411
+ return {
412
+ pageNum: this.currentPage,
413
+ pageSize: this.pageSize,
414
+ totalCount: this.total
415
+ };
416
+ },
417
+ theads() {
418
+ const _that = this;
419
+ return {
420
+ flow: [
421
+ {
422
+ label: '经办部门',
423
+ field: 'deptid',
424
+ align: 'center',
425
+ showOverflowTooltip: true,
426
+ width: 150
427
+ },
428
+ {
429
+ label: '步骤',
430
+ field: 'itemname',
431
+ align: 'center',
432
+ showOverflowTooltip: true,
433
+ width: 110
434
+ },
435
+ {
436
+ label: '办理人',
437
+ field: 'userName',
438
+ align: 'center',
439
+ showOverflowTooltip: true,
440
+ width: 110
441
+ },
442
+ {
443
+ label: '状态',
444
+ field: 'pendstate',
445
+ align: 'center',
446
+ showOverflowTooltip: true,
447
+ width: 80,
448
+ render: (h, params) => {
449
+ return h('span', {
450
+ style: {
451
+ color:
452
+ params.row.pendstate == 0 || params.row.pendstate == 3
453
+ ? 'red'
454
+ : params.row.pendstate == 1
455
+ ? 'green'
456
+ : 'deepskyblue'
457
+ },
458
+ domProps: { innerHTML: params.row.querykeywords }
459
+ });
460
+ }
461
+ },
462
+ {
463
+ label: '办理意见',
464
+ field: 'doresult',
465
+ align: 'center',
466
+ showOverflowTooltip: true,
467
+ render: (h, params) => {
468
+ return h(
469
+ 'span',
470
+ {},
471
+ params.row.doresult || params.row.handleInfo
472
+ );
473
+ }
474
+ },
475
+ {
476
+ label: '验签',
477
+ field: 'authTypeStr',
478
+ align: 'center',
479
+ showOverflowTooltip: true,
480
+ width: 70,
481
+ render: (h, params) => {
482
+ return h(
483
+ 'span',
484
+ { style: { color: 'deepskyblue' } },
485
+ params.row.authTypeStr
486
+ );
487
+ }
488
+ },
489
+ {
490
+ label: '附件',
491
+ field: 'hasAdjunct',
492
+ align: 'center',
493
+ showOverflowTooltip: true,
494
+ width: 70,
495
+ render: (h, params) => {
496
+ if (params.row.hasAdjunct) {
497
+ return h('span', {
498
+ style: _that.attachmentPaperClipCssStyle
499
+ ? _that.attachmentPaperClipCssStyle
500
+ : { color: 'red', fontSize: '20px' },
501
+ class: 'iconfont es-icon-fujian'
502
+ });
503
+ } else {
504
+ return h('span', {}, '');
505
+ }
506
+ }
507
+ },
508
+ {
509
+ label: '时间',
510
+ field: 'doetime',
511
+ align: 'center',
512
+ showOverflowTooltip: true,
513
+ width: 150,
514
+ render: (h, params) => {
515
+ return h(
516
+ 'span',
517
+ {},
518
+ util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
519
+ );
520
+ }
521
+ },
522
+ {
523
+ label: '代办人',
524
+ field: 'douserid',
525
+ align: 'center',
526
+ showOverflowTooltip: true,
527
+ width: 80,
528
+ hide: _that.flowTableInfo.hasAgent != '1'
529
+ },
530
+ {
531
+ label: '催办',
532
+ field: 'pressTimes',
533
+ align: 'center',
534
+ showOverflowTooltip: true,
535
+ width: 150,
536
+ render: (h, params) => {
537
+ return h(
538
+ 'span',
539
+ { style: 'color:deepskyblue;cursor: pointer;' },
540
+ params.row.pressTimes
541
+ );
542
+ }
543
+ },
544
+ {
545
+ title: '操作',
546
+ type: 'handle',
547
+ width: this.modify ? '130' : '100',
548
+ template: '',
549
+ events: [
550
+ {
551
+ text: '删除',
552
+ rules: (rows) => {
553
+ return rows.canDelete;
554
+ }
555
+ },
556
+ {
557
+ text: '修改',
558
+ rules: (rows) => {
559
+ return this.modify && rows.pendstate == 2;
560
+ }
561
+ }
562
+ ]
563
+ }
564
+ ],
565
+ preset: this.thead,
566
+ splitReading: [
567
+ {
568
+ label: '经办部门',
569
+ field: 'deptid',
570
+ align: 'center',
571
+ showOverflowTooltip: true,
572
+ width: 150
573
+ },
574
+ {
575
+ label: '步骤',
576
+ field: 'itemname',
577
+ align: 'center',
578
+ showOverflowTooltip: true,
579
+ width: 110
580
+ },
581
+ {
582
+ label: '办理人',
583
+ field: 'userName',
584
+ align: 'center',
585
+ showOverflowTooltip: true,
586
+ width: 110
587
+ },
588
+ {
589
+ label: '状态',
590
+ field: 'pendstate',
591
+ align: 'center',
592
+ showOverflowTooltip: true,
593
+ width: 80,
594
+ render: (h, params) => {
595
+ return h('span', {
596
+ style: {
597
+ color:
598
+ params.row.pendstate == 0 || params.row.pendstate == 3
599
+ ? 'red'
600
+ : params.row.pendstate == 1
601
+ ? 'green'
602
+ : 'deepskyblue'
603
+ },
604
+ domProps: { innerHTML: params.row.querykeywords }
605
+ });
606
+ }
607
+ },
608
+ {
609
+ label: '办理意见',
610
+ field: 'doresult',
611
+ align: 'center',
612
+ showOverflowTooltip: true,
613
+ render: (h, params) => {
614
+ return h(
615
+ 'span',
616
+ {},
617
+ params.row.doresult || params.row.handleInfo
618
+ );
619
+ }
620
+ },
621
+ {
622
+ label: '验签',
623
+ field: 'authTypeStr',
624
+ align: 'center',
625
+ showOverflowTooltip: true,
626
+ width: 70,
627
+ render: (h, params) => {
628
+ return h(
629
+ 'span',
630
+ { style: { color: 'deepskyblue' } },
631
+ params.row.authTypeStr
632
+ );
633
+ }
634
+ },
635
+ {
636
+ label: '附件',
637
+ field: 'hasAdjunct',
638
+ align: 'center',
639
+ showOverflowTooltip: true,
640
+ width: 70,
641
+ render: (h, params) => {
642
+ if (params.row.hasAdjunct) {
643
+ return h('span', {
644
+ style: _that.attachmentPaperClipCssStyle
645
+ ? _that.attachmentPaperClipCssStyle
646
+ : { color: 'red', fontSize: '20px' },
647
+ class: 'iconfont es-icon-fujian'
648
+ });
649
+ } else {
650
+ return h('span', {}, '');
651
+ }
652
+ }
653
+ },
654
+ {
655
+ label: '时间',
656
+ field: 'doetime',
657
+ align: 'center',
658
+ showOverflowTooltip: true,
659
+ width: 150,
660
+ render: (h, params) => {
661
+ return h(
662
+ 'span',
663
+ {},
664
+ util.formatDate(params.row.doetime, 'yyyy-MM-dd HH:mm')
665
+ );
666
+ }
667
+ },
668
+ {
669
+ label: '代办人',
670
+ field: 'douserid',
671
+ align: 'center',
672
+ showOverflowTooltip: true,
673
+ width: 80,
674
+ hide: _that.flowTableInfo.hasAgent != '1'
675
+ },
676
+ {
677
+ label: '催办',
678
+ field: 'pressTimes',
679
+ align: 'center',
680
+ showOverflowTooltip: true,
681
+ width: 150,
682
+ render: (h, params) => {
683
+ return h(
684
+ 'span',
685
+ { style: 'color:deepskyblue;cursor: pointer;' },
686
+ params.row.pressTimes
687
+ );
688
+ }
689
+ },
690
+ {
691
+ title: '操作',
692
+ type: 'handle',
693
+ width: '100',
694
+ template: '',
695
+ events: [
696
+ {
697
+ text: '删除',
698
+ rules: (rows) => {
699
+ return rows.canDelete;
700
+ }
701
+ }
702
+ ]
703
+ }
704
+ ]
705
+ };
706
+ },
707
+ content() {
708
+ return this.contents.map((item) => {
709
+ if (typeof item === 'string') {
710
+ return {
711
+ type: item,
712
+ toolbar: this.toolbars[item],
713
+ thead: this.theads[item],
714
+ showFormBtn: false
715
+ };
716
+ } else {
717
+ if (!Object.prototype.hasOwnProperty.call(item, 'toolbar')) {
718
+ let toolbars = this.toolbars[item.type];
719
+ return { ...item, toolbars };
720
+ }
721
+ if (!Object.prototype.hasOwnProperty.call(item, 'thead')) {
722
+ let thead = this.theads[item.type];
723
+ return { ...item, thead };
724
+ }
725
+ return item;
726
+ }
727
+ });
728
+ },
729
+ newToolbar() {
730
+ if (this.toolbar && this.toolbar.length > 0) {
731
+ return this.toolbar;
732
+ } else {
733
+ return [];
734
+ }
735
+ },
147
736
  thead() {
148
737
  let table = [
149
738
  {
@@ -171,7 +760,7 @@ export default {
171
760
  {
172
761
  key: 'zt',
173
762
  title: '状态',
174
- width: '60',
763
+ width: '80',
175
764
  align: 'center',
176
765
  field: 'statusName'
177
766
  },
@@ -243,7 +832,7 @@ export default {
243
832
  this.presetInfoListHiddenColumns != ''
244
833
  ) {
245
834
  table = table.filter(
246
- items => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
835
+ (items) => this.presetInfoListHiddenColumns.indexOf(items.key) == -1
247
836
  );
248
837
  }
249
838
  if (!this.canDelete) table.splice(table.length - 1, 1);
@@ -261,14 +850,162 @@ export default {
261
850
  },
262
851
 
263
852
  methods: {
853
+ handleCellClick(row, column) {
854
+ if (column.property == 'hasAdjunct' && row.hasAdjunct) {
855
+ this.showFile(row.wfpendingid);
856
+ } else if (column.property == 'pressTimes') {
857
+ this.goPress(row.id);
858
+ }
859
+ },
860
+ handleBtnClick(data) {
861
+ const { handle, row } = data;
862
+ if (handle.text == '删除') {
863
+ this.del(row.id);
864
+ }
865
+ },
866
+ /**
867
+ * handleFormSubmit
868
+ * @desc:删除节点点击事件
869
+ * @param {Object} formData 点击删除的form数据
870
+ * @author liufan
871
+ * @date 2022年11月29日
872
+ **/
873
+ handleFormSubmit(formData) {
874
+ this.delLoading = true;
875
+ let params = {
876
+ url: deleteFlow,
877
+ method: 'POST',
878
+ data: { id: this.historyId, reason: formData.reason }
879
+ };
880
+ util
881
+ .ajax(params)
882
+ .then((res) => {
883
+ const { status, message } = res;
884
+ this.delLoading = false;
885
+ if (status === 'success') {
886
+ this.$message.success('删除成功');
887
+ this.showDel = false;
888
+ this.handleChange();
889
+ } else {
890
+ this.$message.error(message || '系统错误,请联系管理员!');
891
+ }
892
+ })
893
+ .catch((err) => {
894
+ this.delLoading = false;
895
+ if (err.message && err.message !== 'canceled') {
896
+ this.$message.error(err.message);
897
+ }
898
+ });
899
+ },
900
+ /**
901
+ * del
902
+ * @desc:展示删除弹窗
903
+ * @param {String} id 当前点击数据id
904
+ * @author liufan
905
+ * @date 2022年11月29日
906
+ **/
907
+ del(id) {
908
+ this.historyId = id;
909
+ this.showDel = true;
910
+ },
911
+ /**
912
+ * handleCurrentChange
913
+ * @desc:监听页码变化
914
+ * @param {String} val 当前页
915
+ * @author liufan
916
+ * @date 2022年11月29日
917
+ **/
918
+ handleCurrentChange(val) {
919
+ this.currentPage = val;
920
+ this.getPressList();
921
+ },
922
+ /**
923
+ * handleSizeChange
924
+ * @desc:监听每页数据显示数量变化
925
+ * @param {String} val 每页展示数量
926
+ * @author liufan
927
+ * @date 2022年11月29日
928
+ **/
929
+ handleSizeChange(val) {
930
+ this.pageSize = val;
931
+ this.getPressList();
932
+ },
933
+ /**
934
+ * sortChange
935
+ * @desc:监听排序变化
936
+ * @param {Object} info 需要排序的字段及排序方式
937
+ * @author liufan
938
+ * @date 2022年11月29日
939
+ **/
940
+ sortChange(info) {
941
+ let { prop, order } = info;
942
+ this.sidx = prop;
943
+ this.sord = order.replace('ending', '');
944
+ this.getPressList();
945
+ },
946
+ /**
947
+ * getPressList
948
+ * @desc:催办列表数据
949
+ * @author liufan
950
+ * @date 2022年11月29日
951
+ **/
952
+ getPressList() {
953
+ const { historyId, pageSize, sidx, sord, currentPage } = this;
954
+ this.pressLoading = true;
955
+ let params = {
956
+ url: pressListJson,
957
+ params: { historyId },
958
+ method: 'POST',
959
+ data: { page: currentPage, rows: pageSize, sidx, sord, historyId }
960
+ };
961
+ util
962
+ .ajax(params)
963
+ .then((res) => {
964
+ this.pressTableList = res.data;
965
+ this.total = res.totalrecords;
966
+ this.pressLoading = false;
967
+ })
968
+ .catch((err) => {
969
+ this.pressLoading = false;
970
+ if (err.message && err.message !== 'canceled') {
971
+ this.$message.error(err.message);
972
+ }
973
+ });
974
+ },
975
+ /**
976
+ * goPress
977
+ * @desc:催办列表查看
978
+ * @param {String} id 催办列表id
979
+ * @author liufan
980
+ * @date 2022年11月29日
981
+ **/
982
+ goPress(id) {
983
+ this.historyId = id;
984
+ this.showPress = true;
985
+ this.getPressList();
986
+ },
987
+ /**
988
+ * showFile
989
+ * @desc:附件查看
990
+ * @param {String} ownId 附件id
991
+ * @author liufan
992
+ * @date 2022年11月29日
993
+ **/
994
+ showFile(ownId) {
995
+ this.wfpendingid = ownId;
996
+ this.showFileList = true;
997
+ },
264
998
  /**
265
999
  * handleChange
266
1000
  * @desc:切换排序方式
267
1001
  * @author liufan
268
1002
  * @date 2022年11月22日
269
1003
  **/
270
- handleChange() {
271
- this.show = false;
1004
+ handleChange(key, value) {
1005
+ if (value) {
1006
+ this[key] = value;
1007
+ }
1008
+ // this.show = false;
272
1009
  this.loading = util.loading(this.$loading, '加载中...');
273
1010
  this.getFlowList();
274
1011
  },
@@ -290,7 +1027,7 @@ export default {
290
1027
  };
291
1028
  util
292
1029
  .ajax(params)
293
- .then(res => {
1030
+ .then((res) => {
294
1031
  const {
295
1032
  status,
296
1033
  message,
@@ -312,15 +1049,15 @@ export default {
312
1049
  res.data.attachmentPaperClipCssStyle;
313
1050
  this.isShort = isShort;
314
1051
  this.taskReadName = taskReadName;
315
- this.flowTableList = wfHistoryList;
316
- this.fyTableList = fyHistoryList;
1052
+ this.flowData = wfHistoryList;
1053
+ this.splitReadingData = fyHistoryList;
317
1054
  this.modify = modify;
318
1055
  } else {
319
1056
  this.$message.error(message || '系统错误,请联系管理员!');
320
1057
  }
321
1058
  this.show = true;
322
1059
  })
323
- .catch(err => {
1060
+ .catch((err) => {
324
1061
  this.loading.close();
325
1062
  if (err.message && err.message !== 'canceled') {
326
1063
  this.$message.error(err.message);
@@ -353,7 +1090,7 @@ export default {
353
1090
  };
354
1091
  util
355
1092
  .ajax(param)
356
- .then(res => {
1093
+ .then((res) => {
357
1094
  const { status, message } = res;
358
1095
  this.loading.close();
359
1096
  if (status === 'success') {
@@ -363,14 +1100,14 @@ export default {
363
1100
  this.$message.error(message || '系统错误,请联系管理员!');
364
1101
  }
365
1102
  })
366
- .catch(err => {
1103
+ .catch((err) => {
367
1104
  this.loading.close();
368
1105
  if (err.message && err.message !== 'canceled') {
369
1106
  this.$message.error(err.message);
370
1107
  }
371
1108
  });
372
1109
  })
373
- .catch(e => {
1110
+ .catch((e) => {
374
1111
  // on cancel
375
1112
  });
376
1113
  } else {
@@ -387,7 +1124,7 @@ export default {
387
1124
  * @date 2022年11月10日
388
1125
  **/
389
1126
  getCodeValue(value, type) {
390
- let val = this[type].filter(item => item.cciValue == value);
1127
+ let val = this[type].filter((item) => item.cciValue == value);
391
1128
  return val[0].shortName;
392
1129
  },
393
1130
  /**
@@ -404,7 +1141,7 @@ export default {
404
1141
  };
405
1142
  util
406
1143
  .ajax(params)
407
- .then(res => {
1144
+ .then((res) => {
408
1145
  const { status, message, data } = res;
409
1146
  if (status == 'success') {
410
1147
  this[code] = data;
@@ -412,7 +1149,7 @@ export default {
412
1149
  this.$message.error(message || '系统错误,请联系管理员!');
413
1150
  }
414
1151
  })
415
- .catch(e => {});
1152
+ .catch((e) => {});
416
1153
  },
417
1154
  /**
418
1155
  * getListInfo
@@ -427,7 +1164,7 @@ export default {
427
1164
  };
428
1165
  util
429
1166
  .ajax(param)
430
- .then(res => {
1167
+ .then((res) => {
431
1168
  const {
432
1169
  status,
433
1170
  message,
@@ -435,14 +1172,14 @@ export default {
435
1172
  } = res;
436
1173
  this.loading.close();
437
1174
  if (status == 'success') {
438
- presetInfoList && (this.tableData = presetInfoList);
1175
+ presetInfoList && (this.presetData = presetInfoList);
439
1176
  this.presetInfoListHiddenColumns = presetInfoListHiddenColumns;
440
1177
  this.canDelete = canDelete;
441
1178
  } else {
442
1179
  this.$message.error(message || '系统错误,请联系管理员!');
443
1180
  }
444
1181
  })
445
- .catch(err => {
1182
+ .catch((err) => {
446
1183
  this.loading.close();
447
1184
  if (err.message && err.message !== 'canceled') {
448
1185
  this.$message.error(err.message);