eoss-ui 0.4.51 → 0.4.53

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 (62) hide show
  1. package/lib/button-group.js +95 -88
  2. package/lib/button.js +95 -88
  3. package/lib/checkbox-group.js +96 -89
  4. package/lib/config/api.js +2 -0
  5. package/lib/data-table-form.js +96 -89
  6. package/lib/data-table.js +98 -91
  7. package/lib/date-picker.js +95 -88
  8. package/lib/dialog.js +95 -88
  9. package/lib/eoss-ui.common.js +897 -556
  10. package/lib/flow-group.js +95 -88
  11. package/lib/flow-list.js +99 -92
  12. package/lib/flow.js +419 -339
  13. package/lib/form.js +96 -89
  14. package/lib/handle-user.js +96 -89
  15. package/lib/handler.js +117 -110
  16. package/lib/index.js +1 -1
  17. package/lib/input-number.js +95 -88
  18. package/lib/input.js +95 -88
  19. package/lib/login.js +124 -99
  20. package/lib/main.js +415 -173
  21. package/lib/mainComp.js +111 -104
  22. package/lib/nav.js +110 -95
  23. package/lib/notify.js +95 -91
  24. package/lib/page.js +95 -88
  25. package/lib/player.js +95 -88
  26. package/lib/qr-code.js +95 -88
  27. package/lib/radio-group.js +96 -89
  28. package/lib/select-ganged.js +95 -88
  29. package/lib/select.js +96 -89
  30. package/lib/selector-panel.js +113 -106
  31. package/lib/selector.js +96 -89
  32. package/lib/sizer.js +97 -90
  33. package/lib/steps.js +95 -88
  34. package/lib/switch.js +95 -88
  35. package/lib/table-form.js +95 -88
  36. package/lib/tabs.js +95 -88
  37. package/lib/theme-chalk/index.css +1 -1
  38. package/lib/theme-chalk/main.css +1 -1
  39. package/lib/theme-chalk/menu.css +1 -1
  40. package/lib/tips.js +96 -89
  41. package/lib/tree-group.js +95 -88
  42. package/lib/tree.js +96 -89
  43. package/lib/upload.js +104 -97
  44. package/lib/utils/util.js +5 -2
  45. package/lib/wujie.js +95 -88
  46. package/lib/wxlogin.js +95 -88
  47. package/package.json +1 -1
  48. package/packages/flow/src/main.vue +106 -34
  49. package/packages/flow/src/startTaskRead.vue +10 -2
  50. package/packages/handler/src/main.vue +13 -15
  51. package/packages/login/src/main.vue +34 -3
  52. package/packages/main/src/main.vue +128 -68
  53. package/packages/main/src/settings.vue +51 -4
  54. package/packages/nav/src/main.vue +22 -10
  55. package/packages/theme-chalk/lib/index.css +1 -1
  56. package/packages/theme-chalk/lib/main.css +1 -1
  57. package/packages/theme-chalk/lib/menu.css +1 -1
  58. package/packages/theme-chalk/src/main.scss +45 -6
  59. package/packages/theme-chalk/src/menu.scss +0 -1
  60. package/src/config/api.js +2 -0
  61. package/src/index.js +1 -1
  62. package/src/utils/util.js +4 -2
@@ -20,7 +20,7 @@
20
20
  >填写意见</span
21
21
  >
22
22
  <span
23
- v-show="!isFlow && typeCode != 'fenyue'"
23
+ v-show="!isFlow && newTypeCode != 'fenyue'"
24
24
  class="es-opinion-file"
25
25
  @click="showFileList = true"
26
26
  ><i class="es-icon-fujian"></i>意见附件<span
@@ -42,7 +42,7 @@
42
42
  </div>
43
43
  <div
44
44
  v-show="
45
- (!endFlow || nodeInfos.length > 1) && typeCode != 'fenyue' && !shrink
45
+ (!endFlow || nodeInfos.length > 1) && newTypeCode != 'fenyue' && !shrink
46
46
  "
47
47
  class="es-info"
48
48
  >
@@ -179,8 +179,9 @@
179
179
  ></el-option>
180
180
  </el-select>
181
181
  </el-form-item>
182
- <div v-if="!isReject && nodeInfos.length != 0">
182
+ <div>
183
183
  <el-form-item
184
+ v-if="!isReject && nodeInfos.length != 0 && isShowNode"
184
185
  prop="nextNodeId"
185
186
  label="下步节点"
186
187
  :rules="[
@@ -212,6 +213,7 @@
212
213
  />
213
214
  </el-form-item>
214
215
  <el-form-item
216
+ v-if="isNextUser"
215
217
  :prop="isShowNextUser ? 'nextUserId' : 'nextOrgId'"
216
218
  :label="isShowNextUser ? '下步办理人' : '办理对象'"
217
219
  >
@@ -241,6 +243,21 @@
241
243
  :tabs="nextUserTabs"
242
244
  />
243
245
  </el-form-item>
246
+ <!-- <el-form-item
247
+ v-if="isHideCurrentOrg"
248
+ prop="nextCurrentOrgObj"
249
+ :label="currentOrgName ? currentOrgName : '本单位'"
250
+ >
251
+ <SelectUser
252
+ :nextUser="nextNode.nextCurrentOrgObj"
253
+ multiple
254
+ mix
255
+ :selectUserList="selectNextCurrentOrgObjList"
256
+ @change="changeSelectUser($event, 'nextCurrentOrgObj', true)"
257
+ :types="['department', 'employee']"
258
+ :params="{ filid: userModel.orgId }"
259
+ />
260
+ </el-form-item> -->
244
261
  <TimeLimit
245
262
  v-if="nodeType !== 0 && isLimitedTimeHandling === 1"
246
263
  :newsList="newsList"
@@ -363,7 +380,7 @@
363
380
  </div>
364
381
  <div
365
382
  class="es-flow-buttons"
366
- v-if="typeCode != 'fenyue' && !shrink"
383
+ v-if="newTypeCode != 'fenyue' && !shrink"
367
384
  style="margin-top: 10px"
368
385
  >
369
386
  <div v-if="isSubmitButtonShowAgreeAndDisagree == 1">
@@ -627,6 +644,7 @@ export default {
627
644
  return {
628
645
  userModel: {},
629
646
  loading: null, // 加载中
647
+ newTypeCode: '',
630
648
  NodeName: '', // 当前节点值
631
649
  radioList: [],
632
650
  value: '',
@@ -637,6 +655,7 @@ export default {
637
655
  activeNames: '',
638
656
  isEndUserTask: true,
639
657
  selectUserList: [],
658
+ selectNextCurrentOrgObjList: [],
640
659
  flowMultiple: true,
641
660
  isCustomUser: 0,
642
661
  shrink: false,
@@ -671,6 +690,11 @@ export default {
671
690
  isTaskread: 0, //是否展示分阅用户
672
691
  showSendMsg: false, //是否展示核稿通知页面
673
692
  canPresetRead: false, //是否展示自动分阅
693
+ isHideCurrentOrg: false, //是否隐藏本单位(承办)
694
+ isHideOtherOrg: false, //是否隐藏外单位(承办)
695
+ isMainSubProcess: false, // 判断是否子-主流程
696
+ isNextUser: false,
697
+ isShowNode: false,
674
698
  nextNodeList: [],
675
699
  removeUsers: [],
676
700
  options: [],
@@ -767,9 +791,11 @@ export default {
767
791
  mounted() {
768
792
  this.businessIds = this.businessId;
769
793
  this.nextNode.nextNodeId = this.nextNodeId;
794
+ !this.isFlow &&
795
+ (this.newTypeCode = this.typeCode || this.$route.query.typecode);
770
796
  if (this.isFlow) {
771
797
  this.businessId && this.getProcess();
772
- } else if (this.typeCode == 'fenyue') {
798
+ } else if (this.newTypeCode == 'fenyue') {
773
799
  this.getTaskReadFlow();
774
800
  } else {
775
801
  this.getHedInfo();
@@ -936,13 +962,16 @@ export default {
936
962
  appId,
937
963
  processDefinitionId,
938
964
  pendingId,
939
- opinion: this.value
965
+ opinion: this.value,
966
+ taskAction: 'complete'
940
967
  };
941
968
  util
942
969
  .ajax({
943
970
  url: taskReadHtml,
944
971
  params: { taskAction: 'complete' },
945
- headers: { Accept: 'application/json,text/plain' },
972
+ headers: {
973
+ Accept: 'application/json,text/plain'
974
+ },
946
975
  method: 'post',
947
976
  data: params
948
977
  })
@@ -1488,6 +1517,25 @@ export default {
1488
1517
  this.isLimitedTimeHandling =
1489
1518
  data.nodeExtAttr.isLimitedTimeHandling;
1490
1519
  this.nodeType = data.nodeExtAttr.nodeType;
1520
+ //如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
1521
+ if (this.nodeType === 1 || this.nodeType === 2) {
1522
+ this.isMainSubProcess === true
1523
+ ? (this.isMainSubProcess = true)
1524
+ : (this.isMainSubProcess = false);
1525
+ this.isNextUser = false;
1526
+ this.isHideCurrentOrg =
1527
+ res.data.nodeExtAttr.isHideCurrentOrg == 1 ? false : true; //判断是否隐藏本单位
1528
+ this.isHideOtherOrg =
1529
+ res.data.nodeExtAttr.isHideOtherOrg == 1 ? false : true; //判断是否隐藏外单位
1530
+ } else {
1531
+ this.isHideCurrentOrg = false;
1532
+ this.isHideOtherOrg = false;
1533
+ this.isMainSubProcess = false;
1534
+ this.isNextUser = true;
1535
+ // this.isMainSubProcess === true
1536
+ // ? (this.isMainSubProcess = true)
1537
+ // : (this.isMainSubProcess = false);
1538
+ }
1491
1539
  this.multiple
1492
1540
  ? (this.nextNode.nextUserId = [])
1493
1541
  : (this.nextNode.nextUserId = '');
@@ -1572,6 +1620,8 @@ export default {
1572
1620
  this.radioList = [];
1573
1621
 
1574
1622
  if (type) {
1623
+ this.isNextUser = false;
1624
+ this.isShowNode = false;
1575
1625
  this.nextNode.nextNodeId = '';
1576
1626
  this.nextNode.isReturnSubmitter = 0;
1577
1627
  this.nextNode.isUndertakeReply = 0;
@@ -1583,28 +1633,6 @@ export default {
1583
1633
  this.nextNode.isReturnRejectNode = 0;
1584
1634
  this.nextNode.isSerialSubmit = 0;
1585
1635
  this.nodeInfos = [];
1586
- if (val == -1) {
1587
- this.nextNode.isSerialSubmit = 1;
1588
- } else if (val == 0) {
1589
- } else if (val == 1) {
1590
- } else if (val == 2) {
1591
- this.nextNode.isReturnSubmitter = 1;
1592
- } else if (val == 3) {
1593
- this.nextNode.isUndertakeReply = 1;
1594
- } else if (val == 4) {
1595
- this.nextNode.isTakeAdviceReply = 1;
1596
- } else if (val == 5) {
1597
- this.nextNode.isUndertakeEnd = 1;
1598
- } else if (val == 6) {
1599
- this.nextNode.isTakeAdviceEnd = 1;
1600
- } else if (val == 7) {
1601
- this.nextNode.isReadDealReply = 1;
1602
- } else if (val == 8) {
1603
- this.nextNode.isReadDealEnd = 1;
1604
- } else if (val == 9) {
1605
- this.nextNode.isReturnRejectNode = 1;
1606
- } else {
1607
- }
1608
1636
  this.operationList.map((item) => {
1609
1637
  if (item.key === val) {
1610
1638
  if (!item.taskNodeList) {
@@ -1630,10 +1658,52 @@ export default {
1630
1658
 
1631
1659
  if (val === 9) {
1632
1660
  this.isReject = true;
1661
+ } else {
1662
+ this.isReject = false;
1663
+ }
1664
+ if (val == -1) {
1665
+ this.nextNode.isSerialSubmit = 1;
1666
+ this.loading.close();
1667
+ return;
1668
+ } else if (val == 0) {
1669
+ this.isNextUser = true;
1670
+ this.isShowNode = true;
1671
+ } else if (val == 1) {
1672
+ this.isNextUser = true;
1673
+ this.isShowNode = true;
1674
+ } else if (val == 2) {
1675
+ this.nextNode.isReturnSubmitter = 1;
1676
+ this.loading.close();
1677
+ return;
1678
+ } else if (val == 3) {
1679
+ this.nextNode.isUndertakeReply = 1;
1680
+ this.loading.close();
1681
+ return;
1682
+ } else if (val == 4) {
1683
+ this.nextNode.isTakeAdviceReply = 1;
1684
+ this.loading.close();
1685
+ return;
1686
+ } else if (val == 5) {
1687
+ this.nextNode.isUndertakeEnd = 1;
1688
+ this.loading.close();
1689
+ return;
1690
+ } else if (val == 6) {
1691
+ this.nextNode.isTakeAdviceEnd = 1;
1692
+ this.loading.close();
1693
+ return;
1694
+ } else if (val == 7) {
1695
+ this.nextNode.isReadDealReply = 1;
1696
+ this.loading.close();
1697
+ return;
1698
+ } else if (val == 8) {
1699
+ this.nextNode.isReadDealEnd = 1;
1700
+ this.loading.close();
1701
+ return;
1702
+ } else if (val == 9) {
1703
+ this.nextNode.isReturnRejectNode = 1;
1633
1704
  this.loading.close();
1634
1705
  return;
1635
1706
  } else {
1636
- this.isReject = false;
1637
1707
  }
1638
1708
  if (isDef !== true) this.getNodeInfo();
1639
1709
  },
@@ -1886,6 +1956,7 @@ export default {
1886
1956
  }
1887
1957
  });
1888
1958
  }
1959
+ this.isMainSubProcess = res.data.isMainSubProcess === true;
1889
1960
  this.isCustomPreset = isCustomPreset;
1890
1961
  this.isPreset = isPreset;
1891
1962
  this.presetTaskNodeMap = presetTaskNodeMap;
@@ -1895,6 +1966,7 @@ export default {
1895
1966
  this.getNodeInfo();
1896
1967
  } else {
1897
1968
  if (res.status === 'taskCompleted') {
1969
+ this.$emit('shrink', true)
1898
1970
  this.shrinkAbled = true;
1899
1971
  this.$message.warning(res.message || '系统错误,请联系管理员!');
1900
1972
  } else {
@@ -2069,13 +2141,13 @@ export default {
2069
2141
  if (this.isFlow) return (this.handleVisible = true);
2070
2142
  if (
2071
2143
  !this.endFlow &&
2072
- this.typeCode != 'fenyue' &&
2144
+ this.newTypeCode != 'fenyue' &&
2073
2145
  !this.shrink &&
2074
2146
  this.nextNode.isAddSign != '1' &&
2075
2147
  this.nextNode.isRemoveSign != '1' &&
2076
2148
  this.isSpecial &&
2077
2149
  !this.isReject &&
2078
- this.nodeInfos.length != 0
2150
+ this.nodeInfos.length != 0 && this.isNextUser
2079
2151
  ) {
2080
2152
  if (this.isShowNextUser) {
2081
2153
  if (
@@ -2143,8 +2215,8 @@ export default {
2143
2215
  this.processObj.taskExamine.processDefinitionId;
2144
2216
  }
2145
2217
  if (
2146
- this.nextNode.nextOperate == 9 ||
2147
- this.nextNode.nextOperate == 2
2218
+ this.nextNode.nextOperate != 0 &&
2219
+ this.nextNode.nextOperate != 1
2148
2220
  ) {
2149
2221
  delete this.nextNode.nextNodeId;
2150
2222
  }
@@ -398,13 +398,15 @@ export default {
398
398
  },
399
399
  // 转办提交
400
400
  subTaskTransfer() {
401
- const { choiceDeptId, choiceOrgId } = this.taskExamine;
401
+ const { choiceDeptId, choiceOrgId, bCode, bName } = this.taskExamine;
402
402
  const { opinion, pendingId, nextNode, newsInfo, multiple } = this;
403
403
  let params = {
404
404
  url: taskTransfer,
405
405
  data: {
406
406
  choiceDeptId,
407
407
  choiceOrgId,
408
+ bCode,
409
+ bName,
408
410
  nextUserId: multiple
409
411
  ? nextNode.nextUser.join(',')
410
412
  : nextNode.nextUser,
@@ -456,6 +458,8 @@ export default {
456
458
  const {
457
459
  appId,
458
460
  businessId,
461
+ bCode,
462
+ bName,
459
463
  choiceDeptId,
460
464
  choiceOrgId,
461
465
  businessName,
@@ -463,6 +467,8 @@ export default {
463
467
  } = this.taskExamine;
464
468
  let params = {
465
469
  ...this.nextNode,
470
+ bCode,
471
+ bName,
466
472
  appId,
467
473
  businessId,
468
474
  choiceDeptId,
@@ -489,7 +495,9 @@ export default {
489
495
  .ajax({
490
496
  url: taskReadHtml,
491
497
  params: { taskAction: this.type },
492
- headers: { Accept: 'application/json,text/plain' },
498
+ headers: {
499
+ Accept: 'application/json,text/plain'
500
+ },
493
501
  method: 'post',
494
502
  data: params
495
503
  })
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <ul class="es-handler">
3
3
  <li
4
- v-for="item in lists"
5
- :key="item.type"
4
+ v-for="(item, index) in lists"
5
+ :key="index"
6
6
  class="es-handler-item"
7
7
  v-if="!item.hide"
8
8
  >
@@ -141,9 +141,20 @@ export default {
141
141
  },
142
142
  computed: {
143
143
  lists() {
144
+ console.log(111);
144
145
  if (this.data === undefined) {
146
+ if (Object.keys(this.hide).length) {
147
+ this.list.forEach((item) => {
148
+ item.hide = this.hide[item.type];
149
+ });
150
+ }
145
151
  return this.list;
146
152
  } else {
153
+ if (Object.keys(this.hide).length) {
154
+ this.data.forEach((item) => {
155
+ item.hide = this.hide[item.type];
156
+ });
157
+ }
147
158
  return this.data;
148
159
  }
149
160
  },
@@ -157,19 +168,6 @@ export default {
157
168
  return true;
158
169
  }
159
170
  },
160
- watch: {
161
- hide: {
162
- immediate: true,
163
- deep: true,
164
- handler(val) {
165
- if (val !== undefined) {
166
- this.lists.forEach((item) => {
167
- item.hide = val[item.type];
168
- });
169
- }
170
- }
171
- }
172
- },
173
171
  data() {
174
172
  return {
175
173
  date: '',
@@ -326,6 +326,8 @@ import {
326
326
  doQrLogin,
327
327
  getLoginCode,
328
328
  doCodeLogin,
329
+ getTwoFactorLoginCode,
330
+ doTwoFactorLogin,
329
331
  doWechatQrLogin,
330
332
  doCaLogin
331
333
  } from 'eoss-ui/src/config/api.js';
@@ -447,6 +449,14 @@ export default {
447
449
  type: String,
448
450
  default: doCodeLogin
449
451
  },
452
+ getTwoFactorLoginCode: {
453
+ type: String,
454
+ default: getTwoFactorLoginCode
455
+ },
456
+ doTwoFactorLogin: {
457
+ type: String,
458
+ default: doTwoFactorLogin
459
+ },
450
460
  doWechatQrLogin: {
451
461
  type: String,
452
462
  default: doWechatQrLogin
@@ -903,6 +913,7 @@ export default {
903
913
  this.app = res.appName || res.subsystemName;
904
914
  this.qrimg = res.qrimg || res.qrImg;
905
915
  this.loginModel = res.loginModel;
916
+ // this.loginModel = '0,3,11,6,9,2';
906
917
  this.loginBackgroundImg = res.loginBackgroundUrl
907
918
  ? res.loginBackgroundUrl.split(',')
908
919
  : null;
@@ -979,8 +990,9 @@ export default {
979
990
  return false;
980
991
  }
981
992
  data = {
982
- target: this.formData.username,
993
+ username: this.formData.username,
983
994
  targetType: this.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS'
995
+ // targetType: 'SMS'
984
996
  };
985
997
  } else {
986
998
  if (!this.formData.target) {
@@ -1012,7 +1024,8 @@ export default {
1012
1024
  util
1013
1025
  .ajax({
1014
1026
  method: 'post',
1015
- url: this.getLoginCode,
1027
+ url:
1028
+ this.active == 2 ? this.getTwoFactorLoginCode : this.getLoginCode,
1016
1029
  data: data
1017
1030
  })
1018
1031
  .then((res) => {
@@ -1056,6 +1069,19 @@ export default {
1056
1069
  identifyingCode: this.formData.identifyingCode,
1057
1070
  identifyingId: this.identifyingId
1058
1071
  }
1072
+ : this.active == '2'
1073
+ ? {
1074
+ username: this.formData.username,
1075
+ password:
1076
+ this.secret && this.isEncrypt
1077
+ ? util.esmEncrypt({
1078
+ data: this.formData.password,
1079
+ key: this.secret
1080
+ })
1081
+ : this.formData.password,
1082
+ targetType: this.passModifyModel.indexOf('11') > -1 ? 'EMAIL' : 'SMS',
1083
+ verificationCode:this.formData.identifyingCode
1084
+ }
1059
1085
  : {
1060
1086
  target: this.formData.target,
1061
1087
  verificationCode: this.formData.verificationCode,
@@ -1091,7 +1117,12 @@ export default {
1091
1117
  util
1092
1118
  .ajax({
1093
1119
  method: 'post',
1094
- url: this.active == '0' ? this.actionUrl : this.doCodeLogin,
1120
+ url:
1121
+ this.active == '0'
1122
+ ? this.actionUrl
1123
+ : this.active == '2'
1124
+ ? this.doTwoFactorLogin
1125
+ : this.doCodeLogin,
1095
1126
  data: extUserBindHandleId
1096
1127
  ? { ...data, extUserBindHandleId: extUserBindHandleId }
1097
1128
  : data