eoss-ui 0.4.21 → 0.4.23

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 (71) hide show
  1. package/lib/button-group.js +34 -34
  2. package/lib/button.js +37 -37
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox-group.js +34 -34
  5. package/lib/config/api.js +1 -1
  6. package/lib/data-table-form.js +34 -34
  7. package/lib/data-table.js +48 -40
  8. package/lib/date-picker.js +36 -36
  9. package/lib/dialog.js +42 -39
  10. package/lib/eoss-ui.common.js +2284 -422
  11. package/lib/flow-group.js +42 -36
  12. package/lib/flow-list.js +35 -35
  13. package/lib/flow.js +120 -112
  14. package/lib/form.js +1082 -167
  15. package/lib/handle-user.js +34 -34
  16. package/lib/handler.js +34 -34
  17. package/lib/icon.js +436 -0
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +36 -36
  20. package/lib/input.js +36 -36
  21. package/lib/label.js +2 -2
  22. package/lib/login.js +34 -34
  23. package/lib/main.js +584 -129
  24. package/lib/mainComp.js +54 -53
  25. package/lib/menu.js +2 -2
  26. package/lib/nav.js +36 -36
  27. package/lib/notify.js +36 -36
  28. package/lib/page.js +36 -36
  29. package/lib/pagination.js +2 -2
  30. package/lib/player.js +38 -38
  31. package/lib/qr-code.js +43 -43
  32. package/lib/radio-group.js +36 -36
  33. package/lib/select-ganged.js +36 -36
  34. package/lib/select.js +48 -46
  35. package/lib/selector-panel.js +34 -34
  36. package/lib/selector.js +36 -36
  37. package/lib/sizer.js +36 -36
  38. package/lib/steps.js +36 -36
  39. package/lib/switch.js +36 -36
  40. package/lib/table-form.js +295 -48
  41. package/lib/tabs-panel.js +2 -2
  42. package/lib/tabs.js +43 -39
  43. package/lib/theme-chalk/es-icon.css +1 -0
  44. package/lib/tips.js +36 -36
  45. package/lib/toolbar.js +2 -2
  46. package/lib/tree-group.js +36 -36
  47. package/lib/tree.js +36 -36
  48. package/lib/upload.js +37 -37
  49. package/lib/wujie.js +36 -36
  50. package/lib/wxlogin.js +36 -36
  51. package/package.json +1 -1
  52. package/packages/button/src/main.vue +7 -7
  53. package/packages/data-table/src/main.vue +9 -1
  54. package/packages/dialog/src/main.vue +3 -0
  55. package/packages/flow/src/component/taskUnionExamine.vue +3 -3
  56. package/packages/flow/src/main.vue +48 -17
  57. package/packages/flow/src/startTaskRead.vue +21 -24
  58. package/packages/flow-group/src/main.vue +5 -0
  59. package/packages/form/src/main.vue +209 -0
  60. package/packages/form/src/table.vue +150 -97
  61. package/packages/icon/index.js +5 -0
  62. package/packages/icon/src/main.vue +83 -0
  63. package/packages/main/src/async-component/index.vue +85 -0
  64. package/packages/main/src/main.vue +181 -12
  65. package/packages/mainComp/src/main.vue +1 -1
  66. package/packages/select/src/main.vue +7 -4
  67. package/packages/tabs/src/main.vue +1 -0
  68. package/packages/theme-chalk/lib/es-icon.css +1 -0
  69. package/packages/theme-chalk/src/es-icon.scss +99 -0
  70. package/src/config/api.js +1 -1
  71. package/src/index.js +4 -1
package/lib/wxlogin.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 61);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 62);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -2259,7 +2259,7 @@ var watermark = function watermark(option) {
2259
2259
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return doWechatQrLogin; });
2260
2260
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "V", function() { return mainConfig; });
2261
2261
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "R", function() { return initUserSet; });
2262
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return updateUserInfo; });
2262
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return updateUserInfo; });
2263
2263
  /* unused harmony export getUserImgUrl */
2264
2264
  /* unused harmony export getDoorIndex */
2265
2265
  /* unused harmony export refreshOnlineUsers */
@@ -2268,17 +2268,17 @@ var watermark = function watermark(option) {
2268
2268
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return getComplexApplications; });
2269
2269
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return getComplexApplicationsNew; });
2270
2270
  /* unused harmony export getUserCustomInfo */
2271
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Mb", function() { return updateUserCustomInfo; });
2271
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return updateUserCustomInfo; });
2272
2272
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lb", function() { return sysMsgPage; });
2273
2273
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "O", function() { return ignoreSysMsg; });
2274
2274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "N", function() { return ignoreAllSysMsg; });
2275
2275
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return getAdjunctProperties; });
2276
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return uploads; });
2277
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return uploadOnlyOne; });
2276
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return uploads; });
2277
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return uploadOnlyOne; });
2278
2278
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return getAdjunctFileInfos; });
2279
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Qb", function() { return uploadSort; });
2279
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pb", function() { return uploadSort; });
2280
2280
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return downloadByAdjunctId; });
2281
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ob", function() { return uploadDownloads; });
2281
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Nb", function() { return uploadDownloads; });
2282
2282
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ab", function() { return previewAdjunct; });
2283
2283
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bb", function() { return previewAdjunct2; });
2284
2284
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cb", function() { return previewAdjunctOffice; });
@@ -2295,13 +2295,13 @@ var watermark = function watermark(option) {
2295
2295
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "L", function() { return gethelpdoc; });
2296
2296
  /* unused harmony export getCurrentuser */
2297
2297
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "W", function() { return mainDetail; });
2298
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return toStartFlow; });
2299
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return tempSave; });
2298
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return toStartFlow; });
2299
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return tempSave; });
2300
2300
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return commonOpion; });
2301
2301
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addCommonOpion; });
2302
2302
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return editCommonOpion; });
2303
2303
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fb", function() { return saveCommonOpinion; });
2304
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Lb", function() { return updateCommonOpinion; });
2304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return updateCommonOpinion; });
2305
2305
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deleteCommonOpion; });
2306
2306
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "H", function() { return getProcessDefList; });
2307
2307
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return getNodeInfo; });
@@ -2309,46 +2309,46 @@ var watermark = function watermark(option) {
2309
2309
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return findSysCodes; });
2310
2310
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return getNotificationMsg; });
2311
2311
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return getHandleInfoHtml; });
2312
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return taskHandleHtml; });
2312
+ /* unused harmony export taskHandleHtml */
2313
2313
  /* unused harmony export getView */
2314
2314
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "db", function() { return register; });
2315
2315
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "X", function() { return pendedhistoryList; });
2316
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return toTaskRejectHtml; });
2317
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return taskRejectHtml; });
2318
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return toStartTaskRead; });
2319
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return toStartTaskReadIndex; });
2320
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return taskReadHtml; });
2316
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ab", function() { return toTaskRejectHtml; });
2317
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "nb", function() { return taskRejectHtml; });
2318
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yb", function() { return toStartTaskRead; });
2319
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zb", function() { return toStartTaskReadIndex; });
2320
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mb", function() { return taskReadHtml; });
2321
2321
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "eb", function() { return rejectAndEnd; });
2322
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "xb", function() { return toSendMsg; });
2322
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return toSendMsg; });
2323
2323
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "jb", function() { return sendMsg; });
2324
2324
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return endFlowHtml; });
2325
2325
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return handleInfo; });
2326
2326
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return loginUserInfo; });
2327
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sb", function() { return wss; });
2328
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return topic; });
2327
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rb", function() { return wss; });
2328
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return topic; });
2329
2329
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return getPresetCustomInfo; });
2330
2330
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return getPresetNodeInfo; });
2331
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toTaskTransferIndex; });
2332
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return taskTransfer; });
2333
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wb", function() { return toPresetInfoListIndex; });
2331
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toTaskTransferIndex; });
2332
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return taskTransfer; });
2333
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vb", function() { return toPresetInfoListIndex; });
2334
2334
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return deletePresetInfo; });
2335
2335
  /* unused harmony export historyListJson */
2336
2336
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Y", function() { return pendedhistoryListJson; });
2337
2337
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Z", function() { return pressListJson; });
2338
2338
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return deleteFlow; });
2339
2339
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return isCanStartSubFlow; });
2340
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toTaskUnionExamine; });
2341
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskUnionExamine; });
2342
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Eb", function() { return toTaskTakeAdvice; });
2343
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rb", function() { return taskTakeAdvice; });
2344
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toTaskStartDraft; });
2345
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return taskStartDraft; });
2346
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return toTaskReview; });
2347
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return taskReview; });
2348
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toTaskUnionSeal; });
2349
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ub", function() { return taskUnionSeal; });
2350
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ib", function() { return toTwoOfficesDispatch; });
2351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Kb", function() { return twoOfficesDispatch; });
2340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Fb", function() { return toTaskUnionExamine; });
2341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sb", function() { return taskUnionExamine; });
2342
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Db", function() { return toTaskTakeAdvice; });
2343
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "qb", function() { return taskTakeAdvice; });
2344
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Cb", function() { return toTaskStartDraft; });
2345
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pb", function() { return taskStartDraft; });
2346
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bb", function() { return toTaskReview; });
2347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ob", function() { return taskReview; });
2348
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Gb", function() { return toTaskUnionSeal; });
2349
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tb", function() { return taskUnionSeal; });
2350
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hb", function() { return toTwoOfficesDispatch; });
2351
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Jb", function() { return twoOfficesDispatch; });
2352
2352
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ib", function() { return sendList; });
2353
2353
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hb", function() { return sendInfo; });
2354
2354
  /* unused harmony export sendSave */
@@ -2547,7 +2547,7 @@ var taskUnionSeal = '/bpm/task/taskHandle/taskUnionSeal.dhtml';
2547
2547
  // 报送两办
2548
2548
  var toTwoOfficesDispatch = '/bpm/bpmBackend/toTwoOfficesDispatch';
2549
2549
  // 报送两办提交
2550
- var twoOfficesDispatch = 'task/taskHandle/twoOfficesDispatch.dhtml';
2550
+ var twoOfficesDispatch = '/bpm/task/taskHandle/twoOfficesDispatch.dhtml';
2551
2551
 
2552
2552
  // notifySend 消息发送
2553
2553
  var sendList = '/notify2/notifySendRecord/listJson';
@@ -2696,7 +2696,7 @@ module.exports = require("json-bigint");
2696
2696
 
2697
2697
  /***/ }),
2698
2698
 
2699
- /***/ 61:
2699
+ /***/ 62:
2700
2700
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2701
2701
 
2702
2702
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.4.21",
3
+ "version": "0.4.23",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
@@ -57,14 +57,14 @@ export default {
57
57
  let flag = true;
58
58
  if (this.required) {
59
59
  if (Array.isArray(this.required)) {
60
- this.esForm.validateField(this.required, res => {
60
+ this.esForm.validateField(this.required, (res) => {
61
61
  if (res) {
62
62
  flag = false;
63
63
  }
64
64
  });
65
65
  if (flag) {
66
66
  fields = this.required;
67
- this.required.forEach(item => {
67
+ this.required.forEach((item) => {
68
68
  param[item] = models[item];
69
69
  });
70
70
  }
@@ -73,13 +73,13 @@ export default {
73
73
  fields.push(this.required[i]);
74
74
  param[i] = models[this.required[i]];
75
75
  }
76
- this.esForm.validateField(fields, res => {
76
+ this.esForm.validateField(fields, (res) => {
77
77
  if (res) {
78
78
  flag = false;
79
79
  }
80
80
  });
81
81
  } else {
82
- this.esForm.validateField(this.required, res => {
82
+ this.esForm.validateField(this.required, (res) => {
83
83
  if (res) {
84
84
  flag = false;
85
85
  }
@@ -99,7 +99,7 @@ export default {
99
99
  if (this.fields) {
100
100
  let empty = [];
101
101
  if (Array.isArray(this.fields)) {
102
- this.fields.forEach(item => {
102
+ this.fields.forEach((item) => {
103
103
  if (models[item] == undefined || models[item] == '') {
104
104
  empty.push(item);
105
105
  }
@@ -127,7 +127,7 @@ export default {
127
127
  if (empty.length) {
128
128
  let msg = [];
129
129
  if (this.mapFields) {
130
- empty.forEach(item => {
130
+ empty.forEach((item) => {
131
131
  msg.push(this.mapFields[item]);
132
132
  });
133
133
  } else {
@@ -210,7 +210,7 @@ export default {
210
210
  let times = setInterval(() => {
211
211
  if (windows.closed) {
212
212
  clearInterval(times);
213
- this.esSelect && this.esSelect.reload(param);
213
+ this.esSelect && this.esSelect.reload(null, param, true);
214
214
  this.esTable && this.esTable.reload(param);
215
215
  }
216
216
  }, 1000);
@@ -402,7 +402,8 @@ export default {
402
402
  immediate: {
403
403
  type: Boolean,
404
404
  default: true
405
- }
405
+ },
406
+ zoom: false
406
407
  },
407
408
  data() {
408
409
  return {
@@ -505,6 +506,13 @@ export default {
505
506
  }
506
507
  },
507
508
  watch: {
509
+ zoom: {
510
+ handler(val) {
511
+ if (this.tableHeight != 'auto' && this.display) {
512
+ this.resetHeight();
513
+ }
514
+ }
515
+ },
508
516
  checked(newVal) {
509
517
  this.checkSelect(newVal);
510
518
  },
@@ -290,6 +290,9 @@ export default {
290
290
  },
291
291
  tableReload: {
292
292
  default: ''
293
+ },
294
+ esDialog: {
295
+ default: ''
293
296
  }
294
297
  },
295
298
  props: {
@@ -196,7 +196,7 @@ export default {
196
196
  let params = {
197
197
  url: taskReview,
198
198
  data: {
199
- nextUserId: nextOtherOrgObj,
199
+ nextUserId: nextOtherOrgObj.join(','),
200
200
  notificationType: noticeType.join(','),
201
201
  notificationMsg: noticeInfo,
202
202
  opinion,
@@ -393,8 +393,8 @@ export default {
393
393
  data: {
394
394
  opinion,
395
395
  pendingId,
396
- nextOtherOrgObj: nextOtherOrgObj,
397
- nextCurrentOrgObj: nextCurrentOrgObj,
396
+ nextOtherOrgObj: nextOtherOrgObj.join(','),
397
+ nextCurrentOrgObj: nextCurrentOrgObj.join(','),
398
398
  notificationMsg: noticeInfo,
399
399
  notificationType: noticeType.join(','),
400
400
  choiceDeptId,
@@ -429,6 +429,7 @@
429
429
  :close-on-click-modal="false"
430
430
  :visible.sync="handleVisible"
431
431
  v-if="handleVisible"
432
+ :closeParent="closeParent"
432
433
  height="auto"
433
434
  >
434
435
  <ProcessForm
@@ -600,7 +601,8 @@ export default {
600
601
  }
601
602
  },
602
603
  beforeSubmit: Function,
603
- title: { type: String, default: '事务表单办理' }
604
+ title: { type: String, default: '事务表单办理' },
605
+ closeParent: Boolean
604
606
  },
605
607
  data() {
606
608
  return {
@@ -612,6 +614,7 @@ export default {
612
614
  flowType: '',
613
615
  flowDisabled: false,
614
616
  activeNames: '',
617
+ isEndUserTask: true,
615
618
  selectUserList: [],
616
619
  flowMultiple: true,
617
620
  isCustomUser: 0,
@@ -1467,18 +1470,22 @@ export default {
1467
1470
  data.nextUserList !== undefined
1468
1471
  ) {
1469
1472
  data.nextUserList.map((item) => {
1470
- this.nextNode.nextUserId.push(item.userId);
1471
- this.selectUserList.push({
1472
- showname: item.username,
1473
- showid: item.userId
1474
- });
1473
+ if (item.userId && item.username) {
1474
+ this.nextNode.nextUserId.push(item.userId);
1475
+ this.selectUserList.push({
1476
+ showname: item.username,
1477
+ showid: item.userId
1478
+ });
1479
+ }
1475
1480
  });
1476
1481
  }
1477
1482
  data.nextUserList.map((item) => {
1478
- this.options.push({
1479
- showname: item.username,
1480
- showid: item.userId
1481
- });
1483
+ if (item.userId && item.username) {
1484
+ this.options.push({
1485
+ showname: item.username,
1486
+ showid: item.userId
1487
+ });
1488
+ }
1482
1489
  });
1483
1490
  if (data.nodeExtAttr.presetEdit != 0) {
1484
1491
  this.radioList = this.options;
@@ -1632,6 +1639,7 @@ export default {
1632
1639
  status,
1633
1640
  message,
1634
1641
  data: {
1642
+ isEndUserTask,
1635
1643
  nextNodeList,
1636
1644
  taskOperations,
1637
1645
  isCustomPreset,
@@ -1701,6 +1709,13 @@ export default {
1701
1709
  // this.nextNode.nextNodeId = item.taskNodeList[0].nodeId;
1702
1710
  // }
1703
1711
  }
1712
+ if (taskOperations.length == 1) {
1713
+ this.nodeInfos = [];
1714
+ this.nextNode.nextOperate = taskOperations[0].key;
1715
+ if (taskOperations[0].taskNodeList != null) {
1716
+ this.nodeInfos = taskOperations[0].taskNodeList;
1717
+ }
1718
+ }
1704
1719
  });
1705
1720
  }
1706
1721
  this.operationList = taskOperations;
@@ -1715,7 +1730,7 @@ export default {
1715
1730
  nodeInfoMap.nodeExtAttr.nodeDefaultRejectOpinion;
1716
1731
  this.isOpinionRequired =
1717
1732
  nodeInfoMap.nodeExtAttr.isOpinionRequired;
1718
- this.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
1733
+ // this.isChooseNextNode = nodeInfoMap.nodeExtAttr.isChooseNextNode;
1719
1734
  this.defaultNextNode = nodeInfoMap.nodeExtAttr.defaultNextNode;
1720
1735
  if (nodeInfoMap.nodeExtAttr.defaultNextNode) {
1721
1736
  let defaultNode = this.nodeInfos.filter(
@@ -1731,10 +1746,11 @@ export default {
1731
1746
  } else if (this.nodeInfos.length > 0) {
1732
1747
  this.nextNode.nextNodeId = this.nodeInfos[0].nodeId;
1733
1748
  }
1734
- this.choiceOrgId = choiceOrgId;
1735
- this.choiceDeptId = choiceDeptId;
1736
- this.pOrgId = pOrgId;
1737
1749
  }
1750
+ this.choiceOrgId = choiceOrgId;
1751
+ this.choiceDeptId = choiceDeptId;
1752
+ this.pOrgId = pOrgId;
1753
+ this.isEndUserTask = isEndUserTask;
1738
1754
  if (JSON.stringify(taskExamine) != '{}' && taskExamine) {
1739
1755
  this.nodeInfo.nextNode = taskExamine.processDefinitionId;
1740
1756
  this.NodeName = taskExamine.nodeName;
@@ -2089,10 +2105,25 @@ export default {
2089
2105
  if (this.nextNode.isAddSign != '1') {
2090
2106
  delete params.addSignUserId;
2091
2107
  }
2092
- // if(this.isSubmitButtonShowAgreeAndDisagree == 1){
2093
- // this.value = this.value
2094
- // }
2095
2108
  this.loading = util.loading(this.$loading, '提交中...');
2109
+ const {
2110
+ isEndUserTask,
2111
+ choiceOrgId,
2112
+ choiceDeptId,
2113
+ pOrgId,
2114
+ taskExamineInfo
2115
+ } = this;
2116
+ params.isEndUserTask = isEndUserTask;
2117
+ params.choiceOrgId = choiceOrgId;
2118
+ params.choiceDeptId = choiceDeptId;
2119
+ params.pOrgId = pOrgId;
2120
+ params.processType = taskExamineInfo.processType;
2121
+ params.businessId = taskExamineInfo.businessId;
2122
+ params.appId = taskExamineInfo.appId;
2123
+ params.processDefinitionId = taskExamineInfo.processDefinitionId;
2124
+ params.isSubFlow = taskExamineInfo.isSubFlow;
2125
+ params.nodeId = taskExamineInfo.nodeId;
2126
+ return;
2096
2127
  util
2097
2128
  .ajax({ url: taskHandleHtml, method: 'post', data: params })
2098
2129
  .then((res) => {
@@ -122,8 +122,8 @@
122
122
  <el-form-item
123
123
  v-show="
124
124
  nextNode.noticeType.length != 0 &&
125
- configInfo.isCdjxjTaskHandle != 'true' &&
126
- type == 'transfer'
125
+ configInfo.isCdjxjTaskHandle != 'true' &&
126
+ type == 'transfer'
127
127
  "
128
128
  prop="nextNode"
129
129
  label="通知消息"
@@ -131,7 +131,7 @@
131
131
  <span>{{ newsInfo }}</span>
132
132
  </el-form-item>
133
133
  <el-form-item>
134
- <div style="text-align:right">
134
+ <div style="text-align: right">
135
135
  <el-button type="primary" size="small" @click="submit('nextNode')">
136
136
  提交
137
137
  </el-button>
@@ -233,7 +233,7 @@ export default {
233
233
  };
234
234
  util
235
235
  .ajax(params)
236
- .then(res => {
236
+ .then((res) => {
237
237
  const {
238
238
  status,
239
239
  message,
@@ -251,7 +251,7 @@ export default {
251
251
  this.$message.error(message || '系统错误,请联系管理员!');
252
252
  }
253
253
  })
254
- .catch(err => {
254
+ .catch((err) => {
255
255
  this.loading = false;
256
256
  if (err.message && err.message !== 'canceled') {
257
257
  this.$message.error(err.message);
@@ -352,14 +352,14 @@ export default {
352
352
  if (this.type != 'taskReadAndEnd') delete params.params.taskAction;
353
353
  util
354
354
  .ajax(params)
355
- .then(res => {
355
+ .then((res) => {
356
356
  const { status, data } = res;
357
357
  if (status === 'success') {
358
358
  this.configInfo = data;
359
359
  this.isMultiple();
360
360
  }
361
361
  })
362
- .catch(err => {
362
+ .catch((err) => {
363
363
  this.loading = false;
364
364
  if (err.message && err.message !== 'canceled') {
365
365
  this.$message.error(err.message);
@@ -370,7 +370,7 @@ export default {
370
370
  const { nextUser, options, mixList } = val;
371
371
  this.nextNode[type] = nextUser;
372
372
  this.mixList = mixList;
373
- options.map(item => {
373
+ options.map((item) => {
374
374
  this.newSelectUserList.push({
375
375
  showname: item.showname,
376
376
  showid: item.showid
@@ -383,13 +383,13 @@ export default {
383
383
  url: findCodeValues,
384
384
  params: { ccCode: 'notification_type' }
385
385
  })
386
- .then(res => {
386
+ .then((res) => {
387
387
  const { status, data } = res;
388
388
  if (status === 'success') {
389
389
  this.noticeList = data;
390
390
  }
391
391
  })
392
- .catch(err => {
392
+ .catch((err) => {
393
393
  this.loading = false;
394
394
  if (err.message && err.message !== 'canceled') {
395
395
  this.$message.error(err.message);
@@ -418,7 +418,7 @@ export default {
418
418
  };
419
419
  util
420
420
  .ajax(params)
421
- .then(res => {
421
+ .then((res) => {
422
422
  const { message, status } = res;
423
423
  if (status === 'success') {
424
424
  this.$message.success('操作成功');
@@ -428,7 +428,7 @@ export default {
428
428
  }
429
429
  this.loading = false;
430
430
  })
431
- .catch(err => {
431
+ .catch((err) => {
432
432
  this.loading = false;
433
433
  if (err.message && err.message !== 'canceled') {
434
434
  this.$message.error(err.message);
@@ -437,7 +437,7 @@ export default {
437
437
  },
438
438
  // 提交表单
439
439
  submit(formName) {
440
- this.$refs[formName].validate(valid => {
440
+ this.$refs[formName].validate((valid) => {
441
441
  if (valid) {
442
442
  if (!this.option && this.isOpinionRequired === 1) {
443
443
  this.$message.warning('请选择输入审批意见');
@@ -474,16 +474,13 @@ export default {
474
474
  opinion: this.option, // 审批意见
475
475
  userId: util.getStorage('userId'),
476
476
  nextReadUserId: this.mixList.join('|'),
477
- noticeType
477
+ noticeType,
478
+ taskAction: this.type
478
479
  // nextNodeId: this.form.nextNodeId
479
480
  };
480
481
  delete params.nextUser;
481
- const {
482
- fyDoresult,
483
- fyeh,
484
- download,
485
- isCdjxjTaskHandle
486
- } = this.configInfo;
482
+ const { fyDoresult, fyeh, download, isCdjxjTaskHandle } =
483
+ this.configInfo;
487
484
  fyDoresult != 'true' && delete params.showDoresult;
488
485
  fyeh != 'true' && delete params.isInHistory;
489
486
  !download && delete params.isDownload;
@@ -496,7 +493,7 @@ export default {
496
493
  method: 'post',
497
494
  data: params
498
495
  })
499
- .then(res => {
496
+ .then((res) => {
500
497
  const { message, status } = res;
501
498
  this.loading = false;
502
499
  if (status === 'success') {
@@ -506,7 +503,7 @@ export default {
506
503
  this.$message.error(message || '系统错误,请联系管理员!');
507
504
  }
508
505
  })
509
- .catch(err => {
506
+ .catch((err) => {
510
507
  this.loading = false;
511
508
  if (err.message && err.message !== 'canceled') {
512
509
  this.$message.error(err.message);
@@ -529,7 +526,7 @@ export default {
529
526
  .ajax({
530
527
  url: findSysCodes
531
528
  })
532
- .then(res => {
529
+ .then((res) => {
533
530
  const { status, message } = res;
534
531
  this.loading = false;
535
532
  if (status === 'success') {
@@ -544,7 +541,7 @@ export default {
544
541
  this.toStartTaskRead();
545
542
  }
546
543
  })
547
- .catch(err => {
544
+ .catch((err) => {
548
545
  this.loading = false;
549
546
  if (err.message && err.message !== 'canceled') {
550
547
  this.$message.error(err.message);
@@ -371,6 +371,7 @@
371
371
  @startTaskRead="handleTaskRead"
372
372
  @success="handleSuccess"
373
373
  @save="handleSave"
374
+ :closeParent="closeParent"
374
375
  ></es-flow>
375
376
  </div>
376
377
  </template>
@@ -410,6 +411,10 @@ export default {
410
411
  type: Boolean,
411
412
  default: true
412
413
  },
414
+ closeParent: {
415
+ type: Boolean,
416
+ default: true
417
+ },
413
418
  appId: String,
414
419
  zoom: false
415
420
  },