gds-plus-design-vue 1.2.72 → 1.2.74

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 (165) hide show
  1. package/lib/addPermission.4a553cd8.js +1 -0
  2. package/lib/{addPermission.f2eb7564.mjs → addPermission.78068c52.mjs} +45 -43
  3. package/lib/{approvalModel.7b3cb5c5.mjs → approvalModel.1d109493.mjs} +2 -2
  4. package/lib/{approvalModel.2b97fdf8.js → approvalModel.e0e5738f.js} +1 -1
  5. package/lib/{attribute.4f814780.mjs → attribute.9dfa6953.mjs} +46 -44
  6. package/lib/attribute.f97b41ad.js +1 -0
  7. package/lib/{components.globalheader.5418b5ec.js → components.globalheader.c7bf862b.js} +1 -1
  8. package/lib/{components.globalheader.bc91e6fe.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
  9. package/lib/components.middleware.216e1574.js +1 -0
  10. package/lib/components.middleware.d7dc078d.mjs +148 -0
  11. package/lib/{components.modaltitle.d7ef34cb.js → components.modaltitle.0d3db44e.js} +1 -1
  12. package/lib/{components.modaltitle.4f454200.mjs → components.modaltitle.517bc660.mjs} +2 -2
  13. package/lib/{components.sidenavmenu.1f0bbfca.js → components.sidenavmenu.364a8b26.js} +1 -1
  14. package/lib/{components.sidenavmenu.47d7f44a.mjs → components.sidenavmenu.3f4d259f.mjs} +8 -8
  15. package/lib/components.table.5d1336dd.js +8 -0
  16. package/lib/components.table.a50270a9.mjs +3591 -0
  17. package/lib/components.table.childheader.7e9b960f.mjs +325 -0
  18. package/lib/components.table.childheader.cee3be75.js +1 -0
  19. package/lib/components.table.queriesfield.eb795212.js +1 -0
  20. package/lib/components.table.queriesfield.f16322dc.mjs +748 -0
  21. package/lib/components.viewformdetails.513f0dbe.js +1 -0
  22. package/lib/{components.viewformdetails.1236a66e.mjs → components.viewformdetails.cb86a01d.mjs} +60 -37
  23. package/lib/{createFile.c8d65b52.mjs → createFile.44667f20.mjs} +45 -43
  24. package/lib/createFile.6389354d.js +1 -0
  25. package/lib/{editForm.83d10fae.mjs → editForm.54f33a47.mjs} +5 -2
  26. package/lib/editForm.a5fd3180.js +1 -0
  27. package/lib/extendedAttributes.3ed8fe2a.js +1 -0
  28. package/lib/{extendedAttributes.e6b11c68.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
  29. package/lib/{fileSearch.423b64a3.mjs → fileSearch.203b9423.mjs} +45 -43
  30. package/lib/fileSearch.3513b55b.js +1 -0
  31. package/lib/{flow.designer.85d0054b.js → flow.designer.362f5f66.js} +1 -1
  32. package/lib/{flow.designer.5feba43c.mjs → flow.designer.e087cd9b.mjs} +1 -1
  33. package/lib/{flow.list.82131d80.mjs → flow.list.3c2df716.mjs} +2 -2
  34. package/lib/{flow.list.e001d91a.js → flow.list.dea8996a.js} +1 -1
  35. package/lib/{form.build.33cc213e.mjs → form.build.69803596.mjs} +32 -21
  36. package/lib/form.build.6a1bcad5.js +1 -0
  37. package/lib/{form.designer.build.7dc12e87.mjs → form.designer.build.12c673f0.mjs} +195 -171
  38. package/lib/form.designer.build.89af4d24.js +1 -0
  39. package/lib/{formFiled.5a1c8f7f.mjs → formFiled.593b5a25.mjs} +7 -6
  40. package/lib/formFiled.d63e97d3.js +1 -0
  41. package/lib/gd-initial.js +1 -1
  42. package/lib/gd-initial.mjs +148 -146
  43. package/lib/{http.message.ceb0a1c6.mjs → http.message.00e72e09.mjs} +29 -21
  44. package/lib/{http.message.87f319d7.js → http.message.73c3ed85.js} +1 -1
  45. package/lib/index.4f1635c8.js +8 -0
  46. package/lib/{index.340d6f00.mjs → index.9ecf4818.mjs} +3097 -2409
  47. package/lib/layoutBlocks.97713647.mjs +583 -0
  48. package/lib/layoutBlocks.d26f79f2.js +1 -0
  49. package/lib/layouts.0e66a0bc.js +2 -0
  50. package/lib/{layouts.1852e8e4.mjs → layouts.ddf507fa.mjs} +29 -21
  51. package/lib/{main.1551de4d.js → main.22cae2bb.js} +1 -1
  52. package/lib/{main.48dc325f.mjs → main.37ae02bc.mjs} +1 -1
  53. package/lib/main.44750095.js +1 -0
  54. package/lib/{main.b2314767.mjs → main.55c9f109.mjs} +5 -8
  55. package/lib/{main.12118407.mjs → main.5bf89f06.mjs} +54 -55
  56. package/lib/main.f0805dab.js +1 -0
  57. package/lib/manage.91e76379.js +1 -0
  58. package/lib/{manage.1bc511ff.mjs → manage.b3462cce.mjs} +46 -44
  59. package/lib/{messages.messagetemplate.0935e5a3.mjs → messages.messagetemplate.ceeb3f47.mjs} +2 -2
  60. package/lib/{messages.messagetemplate.50334e5f.js → messages.messagetemplate.e52ab470.js} +1 -1
  61. package/lib/messages.sendplan.18bda3c5.js +1 -0
  62. package/lib/{messages.sendplan.61edcc7f.mjs → messages.sendplan.c6821911.mjs} +97 -25
  63. package/lib/{messages.sendrecord.09a1d1cd.js → messages.sendrecord.12028921.js} +2 -2
  64. package/lib/{messages.sendrecord.1c48aa6e.mjs → messages.sendrecord.f7630ebd.mjs} +3 -3
  65. package/lib/{messages.templatelibrary.f31e8d58.mjs → messages.templatelibrary.4654886e.mjs} +1 -1
  66. package/lib/{messages.templatelibrary.f5952edd.js → messages.templatelibrary.cd20c05b.js} +1 -1
  67. package/lib/{mobile.designer.componentstree.9439895e.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
  68. package/lib/{mobile.designer.componentstree.365945a3.js → mobile.designer.componentstree.888d8646.js} +1 -1
  69. package/lib/{mobile.designer.menutree.4d4e059b.js → mobile.designer.menutree.646ebcdd.js} +1 -1
  70. package/lib/{mobile.designer.menutree.7d3b783d.mjs → mobile.designer.menutree.da4c05f4.mjs} +1 -1
  71. package/lib/moveFile.345aee1d.js +1 -0
  72. package/lib/{moveFile.3dc1dc37.mjs → moveFile.864ea48f.mjs} +48 -46
  73. package/lib/{page.build.ae61a39b.mjs → page.build.39202359.mjs} +674 -668
  74. package/lib/{page.build.7ac1ee9b.js → page.build.66e190a5.js} +3 -3
  75. package/lib/{page.designer.componentstree.cdabec2d.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
  76. package/lib/{page.designer.componentstree.74a3a114.js → page.designer.componentstree.ec3dcbc1.js} +1 -1
  77. package/lib/{page.designer.menutree.e4ce1e90.mjs → page.designer.menutree.1e642711.mjs} +2 -2
  78. package/lib/{page.designer.menutree.71c18258.js → page.designer.menutree.6368c636.js} +1 -1
  79. package/lib/page.designer.page.2dac64ca.js +1 -0
  80. package/lib/{page.designer.page.821f8994.mjs → page.designer.page.4cf4b1bf.mjs} +39 -35
  81. package/lib/{result.a87217ae.mjs → result.3c1fc8b7.mjs} +45 -43
  82. package/lib/result.cf75c6c3.js +1 -0
  83. package/lib/{router.config.f0ad16fd.mjs → router.config.b78ec9f8.mjs} +5 -5
  84. package/lib/{router.config.a09f29e7.js → router.config.d746d115.js} +1 -1
  85. package/lib/{solution.application.8d6c84e8.js → solution.application.15e813b4.js} +1 -1
  86. package/lib/{solution.application.e6b5dc4f.mjs → solution.application.5d02d1cd.mjs} +16 -10
  87. package/lib/solution.approvalflow.1f11ad8f.js +1 -0
  88. package/lib/{solution.approvalflow.eb1c0607.mjs → solution.approvalflow.24a50af0.mjs} +20 -14
  89. package/lib/solution.dict.28214a3e.js +1 -0
  90. package/lib/{solution.dict.088a1e72.mjs → solution.dict.77cb1ad2.mjs} +41 -37
  91. package/lib/{solution.menu.fa48a7e8.js → solution.menu.12b9f56d.js} +1 -1
  92. package/lib/{solution.menu.e58922fe.mjs → solution.menu.72498250.mjs} +1 -1
  93. package/lib/{solution.plugin.ae6df926.mjs → solution.plugin.76b603be.mjs} +18 -12
  94. package/lib/solution.plugin.e7b31aff.js +1 -0
  95. package/lib/solution.processflow.aa84ec06.js +1 -0
  96. package/lib/{solution.processflow.62936f1c.mjs → solution.processflow.d336bd7b.mjs} +15 -9
  97. package/lib/{solution.role.7b3e7030.mjs → solution.role.05efb1b4.mjs} +18 -12
  98. package/lib/solution.role.d07e1813.js +1 -0
  99. package/lib/{solution.webresources.88c4483b.mjs → solution.webresources.1b0f8550.mjs} +247 -79
  100. package/lib/solution.webresources.5b4abeb5.js +2 -0
  101. package/lib/{solution.workflow.85de0ae5.mjs → solution.workflow.6d081d1f.mjs} +18 -12
  102. package/lib/solution.workflow.91b42158.js +1 -0
  103. package/lib/style.css +2 -2
  104. package/lib/{system.duplicatechecking.a217fc52.js → system.duplicatechecking.719ddda1.js} +1 -1
  105. package/lib/{system.duplicatechecking.46e182d7.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
  106. package/lib/{system.notice.51880df6.mjs → system.notice.12fa4d1c.mjs} +220 -217
  107. package/lib/system.notice.9385577f.js +1 -0
  108. package/lib/{system.noticereceived.0b79642e.js → system.noticereceived.3dec9e12.js} +1 -1
  109. package/lib/{system.noticereceived.55f276ab.mjs → system.noticereceived.7cfcceb4.mjs} +1 -1
  110. package/lib/{system.team.367bf5e7.mjs → system.team.3b0fcc60.mjs} +1 -1
  111. package/lib/{system.team.cf1c1558.js → system.team.c0d623a5.js} +1 -1
  112. package/lib/{system.teammembers.63f21557.js → system.teammembers.c99ef01b.js} +1 -1
  113. package/lib/{system.teammembers.851ce63b.mjs → system.teammembers.d0dc3f12.mjs} +2 -2
  114. package/lib/{system.user.475d7391.js → system.user.75fa57c3.js} +1 -1
  115. package/lib/{system.user.254bbe85.mjs → system.user.78a45735.mjs} +1 -1
  116. package/lib/versionControl.c39356b7.js +1 -0
  117. package/lib/{versionControl.d1b2b0da.mjs → versionControl.d572bc44.mjs} +51 -49
  118. package/lib/{versionEdit.c51606e4.mjs → versionEdit.8b059461.mjs} +45 -43
  119. package/lib/versionEdit.d56cde69.js +1 -0
  120. package/lib/view.build.14c0d411.js +1 -0
  121. package/lib/{view.build.9976c958.mjs → view.build.5b9241fd.mjs} +193 -190
  122. package/lib/viewList.215afeb2.js +1 -0
  123. package/lib/{viewList.3ca52f0c.mjs → viewList.b090d62f.mjs} +11 -12
  124. package/package.json +1 -1
  125. package/lib/addPermission.e559c495.js +0 -1
  126. package/lib/attribute.7b4971f5.js +0 -1
  127. package/lib/components.middleware.24511f17.mjs +0 -148
  128. package/lib/components.middleware.64b6a988.js +0 -1
  129. package/lib/components.table.389ab22a.mjs +0 -4650
  130. package/lib/components.table.d016f609.js +0 -8
  131. package/lib/components.viewformdetails.328c8642.js +0 -1
  132. package/lib/copy.3b06d60f.mjs +0 -572
  133. package/lib/copy.fa2fcb22.js +0 -1
  134. package/lib/createFile.526dd6db.js +0 -1
  135. package/lib/drawerContainer.790b0ee6.mjs +0 -163
  136. package/lib/drawerContainer.c971d22d.js +0 -1
  137. package/lib/editForm.e284e5ec.js +0 -1
  138. package/lib/extendedAttributes.bfff1926.js +0 -1
  139. package/lib/fileSearch.e849491c.js +0 -1
  140. package/lib/form.build.19f0c882.js +0 -1
  141. package/lib/form.designer.build.2bcc355d.js +0 -1
  142. package/lib/formFiled.40284ed9.js +0 -1
  143. package/lib/index.07adebf0.js +0 -8
  144. package/lib/layoutBlocks.756e4b57.js +0 -1
  145. package/lib/layoutBlocks.816b49a7.mjs +0 -413
  146. package/lib/layouts.2030bf01.js +0 -2
  147. package/lib/main.1611bb43.js +0 -1
  148. package/lib/main.fcb67463.js +0 -1
  149. package/lib/manage.eb0a6c8c.js +0 -1
  150. package/lib/messages.sendplan.60929f46.js +0 -1
  151. package/lib/moveFile.f70bbff7.js +0 -1
  152. package/lib/page.designer.page.654634aa.js +0 -1
  153. package/lib/result.4d4039ea.js +0 -1
  154. package/lib/solution.approvalflow.79da028c.js +0 -1
  155. package/lib/solution.dict.1d5195d0.js +0 -1
  156. package/lib/solution.plugin.5d6d29cf.js +0 -1
  157. package/lib/solution.processflow.aa1e808b.js +0 -1
  158. package/lib/solution.role.2eff83a1.js +0 -1
  159. package/lib/solution.webresources.bc00603d.js +0 -1
  160. package/lib/solution.workflow.0ed2cb24.js +0 -1
  161. package/lib/system.notice.2090c130.js +0 -1
  162. package/lib/versionControl.97590ce8.js +0 -1
  163. package/lib/versionEdit.f710d0bb.js +0 -1
  164. package/lib/view.build.5789a6eb.js +0 -1
  165. package/lib/viewList.6e181715.js +0 -1
@@ -1,12 +1,12 @@
1
1
  import Vue from "vue";
2
2
  import { n as normalizeComponent, m as mapGetters } from "./components.chartbi.7356b244.mjs";
3
3
  import { K as baseCheckPermission, L as onlineBizProcessGetconfig, M as onlineBizProcessStageDetails, N as onlineBizProcessStageSave, O as baseEdit, P as baseAdd, f as baseDetails, Q as baseEnable, R as baseDeactivate } from "./http.main.aefea27d.mjs";
4
- import { g as getType, f as formItems, l as layoutItems } from "./page.designer.componentstree.cdabec2d.mjs";
4
+ import { g as getType, f as formItems, l as layoutItems } from "./page.designer.componentstree.2d5a887a.mjs";
5
5
  import { h as formatting, u as uuid$1, j as convertCurrency, k as getCurrentTime, l as getMultiple } from "./utils.util.js.333daba2.mjs";
6
- import { u as usageBusinessRules } from "./components.table.389ab22a.mjs";
6
+ import { u as usageBusinessRules } from "./components.table.queriesfield.f16322dc.mjs";
7
7
  import { a as codeGenerateGetDetail } from "./http.codegeneratemanage.b123bab3.mjs";
8
8
  import { g as getDupRecordsSysDupRules } from "./http.duplicatechecking.9b79ce21.mjs";
9
- const index_vue_vue_type_style_index_0_scoped_653cd790_lang = "", _sfc_main$2 = {
9
+ const index_vue_vue_type_style_index_0_scoped_1a2d9f9d_lang = "", _sfc_main$2 = {
10
10
  props: {
11
11
  record: {
12
12
  type: Object,
@@ -39,7 +39,7 @@ const index_vue_vue_type_style_index_0_scoped_653cd790_lang = "", _sfc_main$2 =
39
39
  showMiddleware: !1
40
40
  };
41
41
  },
42
- components: { LayoutBlocks: () => import("./layoutBlocks.816b49a7.mjs") },
42
+ components: { LayoutBlocks: () => import("./layoutBlocks.97713647.mjs") },
43
43
  computed: {
44
44
  options() {
45
45
  return this.record.options;
@@ -76,7 +76,17 @@ const index_vue_vue_type_style_index_0_scoped_653cd790_lang = "", _sfc_main$2 =
76
76
  },
77
77
  closed() {
78
78
  this.showMiddleware = !1;
79
+ },
80
+ destroyTree(s) {
81
+ if (!s)
82
+ return;
83
+ (s.$children || []).forEach((a) => {
84
+ this.destroyTree(a);
85
+ }), s.$el && s.$el.parentNode && s.$el.parentNode.removeChild(s.$el);
79
86
  }
87
+ },
88
+ beforeDestroy() {
89
+ this.destroyTree(this);
80
90
  }
81
91
  };
82
92
  var _sfc_render$2 = function() {
@@ -90,7 +100,7 @@ var _sfc_render$2 = function() {
90
100
  _sfc_staticRenderFns$2,
91
101
  !1,
92
102
  null,
93
- "653cd790",
103
+ "1a2d9f9d",
94
104
  null,
95
105
  null
96
106
  );
@@ -130,10 +140,10 @@ function usageAllBtnRules({
130
140
  });
131
141
  });
132
142
  });
133
- let h = uniqueArr(f), u = uniqueArr(m).filter((p) => !h.includes(p)), c = JSON.parse(JSON.stringify(s));
134
- return c.forEach((p, b) => {
135
- h.includes(p.name) && !o.includes(p.id) ? c[b].show = !1 : u.includes(p.name) && !o.includes(p.id) && (c[b].show = !0);
136
- }), c;
143
+ let h = uniqueArr(f), c = uniqueArr(m).filter((p) => !h.includes(p)), u = JSON.parse(JSON.stringify(s));
144
+ return u.forEach((p, b) => {
145
+ h.includes(p.name) && !o.includes(p.id) ? u[b].show = !1 : c.includes(p.name) && !o.includes(p.id) && (u[b].show = !0);
146
+ }), u;
137
147
  }
138
148
  function usageRules$1(s, t, a = "form") {
139
149
  switch (s.rules) {
@@ -309,7 +319,7 @@ function processingResults(s, t, a) {
309
319
  function isSatisfyed(s, t) {
310
320
  return t === "2" ? s.every((a, i, o) => !a) : s.every((a, i, o) => !!a);
311
321
  }
312
- const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_main$1 = {
322
+ const processFlow_vue_vue_type_style_index_0_scoped_7f28f483_lang = "", _sfc_main$1 = {
313
323
  props: {
314
324
  fieldData: {
315
325
  type: Array,
@@ -350,6 +360,8 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
350
360
  },
351
361
  data() {
352
362
  return {
363
+ timeRulesOut: null,
364
+ timeOut: null,
353
365
  isSerialize: !1,
354
366
  showForm: !1,
355
367
  loaded: !1,
@@ -485,14 +497,14 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
485
497
  },
486
498
  basePerformRules(s) {
487
499
  this.$nextTick(() => {
488
- setTimeout(() => {
489
- if (!this.seeData.id) {
500
+ if (this.timeRulesOut && clearTimeout(this.timeRulesOut), !this.seeData.id) {
501
+ this.timeRulesOut = setTimeout(() => {
490
502
  this.basePerformRules(s);
491
- return;
492
- }
493
- const t = s.columnComment ? s.columnComment.toLowerCase() : s.columnComment;
494
- s.rules === "1" ? this.baseSetError({ columnName: t, data: s.val }) : s.rules === "2" ? this.baseSetVal({ columnName: t, data: s.val }) : s.rules === "3" ? this.baseSetEssential({ columnName: t, data: s.val }) : s.rules === "4" ? this.baseSetVisibility({ columnName: t, data: s.val, item: s }) : s.rules === "5" ? this.baseSetDefaultsVal({ columnName: t, data: s.val }) : s.rules === "6" ? this.baseSetLocking({ columnName: t, data: s.val }) : s.rules === "7" && this.baseSetEmpty({ columnName: t, data: "" });
495
- }, 150);
503
+ }, 150);
504
+ return;
505
+ }
506
+ const t = s.columnComment ? s.columnComment.toLowerCase() : s.columnComment;
507
+ s.rules === "1" ? this.baseSetError({ columnName: t, data: s.val }) : s.rules === "2" ? this.baseSetVal({ columnName: t, data: s.val }) : s.rules === "3" ? this.baseSetEssential({ columnName: t, data: s.val }) : s.rules === "4" ? this.baseSetVisibility({ columnName: t, data: s.val, item: s }) : s.rules === "5" ? this.baseSetDefaultsVal({ columnName: t, data: s.val }) : s.rules === "6" ? this.baseSetLocking({ columnName: t, data: s.val }) : s.rules === "7" && this.baseSetEmpty({ columnName: t, data: "" });
496
508
  });
497
509
  },
498
510
  baseSetError(s) {
@@ -625,7 +637,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
625
637
  },
626
638
  getDetail() {
627
639
  onlineBizProcessGetconfig({ tableId: this.tableData.id }).then((s) => {
628
- s.success && s.data.length > 0 && (s.data[0].configdata = s.data[0].configdata ? JSON.parse(s.data[0].configdata) : [], this.configData = s.data[0].configdata, this.allStepList = this.getAllStepList(s.data[0].configdata), this.processingData = s.data[0], this.isSerialize = !1, this.addHandling()), this.confirmLoading = !1;
640
+ s.success && s.data.length > 0 && (s.data[0].configdata = s.data[0].configdata ? JSON.parse(s.data[0].configdata) : [], this.configData = s.data[0].configdata, this.allStepList = this.getAllStepList(s.data[0].configdata), this.processingData = Object.freeze(s.data[0]), this.isSerialize = !1, this.addHandling()), this.confirmLoading = !1;
629
641
  });
630
642
  },
631
643
  getProcessStageDetails(s, t = !1, a) {
@@ -635,7 +647,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
635
647
  }).then((i) => {
636
648
  if (i.success && i.data.data && i.data.biz) {
637
649
  let o = i.data.biz;
638
- o.configdata = o.configdata ? JSON.parse(o.configdata) : [], this.configData = o.configdata, this.allStepList = this.getAllStepList(o.configdata), this.processingData = o, this.stageData = i.data.data, this.addResolve = null, this.addResolveId = "", t && (this.isSerialize = !1, this.editHandling());
650
+ o.configdata = o.configdata ? JSON.parse(o.configdata) : [], this.configData = o.configdata, this.allStepList = this.getAllStepList(o.configdata), this.processingData = Object.freeze(o), this.stageData = i.data.data, this.addResolve = null, this.addResolveId = "", t && (this.isSerialize = !1, this.editHandling());
639
651
  } else
640
652
  this.confirmLoading = !1;
641
653
  this.editLoad = !0, typeof a == "function" && a();
@@ -645,10 +657,10 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
645
657
  if (this.editLoad) {
646
658
  setTimeout(() => {
647
659
  this.editHandling();
648
- }, 100), this.confirmLoading = !1;
660
+ }, 100), this.confirmLoading = !1, this.timeOut && clearTimeout(this.timeOut);
649
661
  return;
650
662
  }
651
- setTimeout(() => {
663
+ this.timeOut && clearTimeout(this.timeOut), this.timeOut = setTimeout(() => {
652
664
  this.editLoadHandling();
653
665
  }, 100);
654
666
  },
@@ -666,27 +678,27 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
666
678
  }), s = t == a.length - 1 ? a[t] : a[t + 1], s;
667
679
  },
668
680
  changeNoMiddle(s = !0) {
669
- let t = this.stageData ? this.stageData.stagecompleteid ? this.stageData.stagecompleteid.split(",") : [] : [], a = this.itemList.filter((c) => t.includes(c.id)), i = [], o = [], n = [];
670
- a.forEach((c) => {
671
- c.pid != 0 && i.push(c.pid);
681
+ let t = this.stageData ? this.stageData.stagecompleteid ? this.stageData.stagecompleteid.split(",") : [] : [], a = this.itemList.filter((u) => t.includes(u.id)), i = [], o = [], n = [];
682
+ a.forEach((u) => {
683
+ u.pid != 0 && i.push(u.pid);
672
684
  });
673
685
  let l = [], r = [...this.itemList];
674
- const d = (c) => (c = c.filter((p, b) => (p.type == "condition" && (l.push(p), p.list.forEach((g, D) => {
686
+ const d = (u) => (u = u.filter((p, b) => (p.type == "condition" && (l.push(p), p.list.forEach((g, D) => {
675
687
  i.includes(g.id) && o.push(p.id), i.length > 0 && !i.includes(g.id) && g.list.forEach((y) => {
676
688
  n.push(y.id);
677
689
  }), g.list = d(g.list);
678
- })), p.type == "step", !0)), c);
690
+ })), p.type == "step", !0)), u);
679
691
  d(this.configData);
680
692
  let m = [];
681
- l.forEach((c, p) => {
693
+ l.forEach((u, p) => {
682
694
  let b = "";
683
- c.list.forEach((g, D) => {
695
+ u.list.forEach((g, D) => {
684
696
  let y = g.list.filter((w) => t.includes(w.id));
685
697
  b = y.length > 0 ? y[0].pid : b;
686
698
  }), l[p].checkId = b;
687
- }), l.forEach((c, p) => {
699
+ }), l.forEach((u, p) => {
688
700
  let b = [];
689
- c.list.forEach((D, y) => {
701
+ u.list.forEach((D, y) => {
690
702
  let w = [];
691
703
  D.rule.forEach((v, k) => {
692
704
  let F = usageRules({
@@ -695,36 +707,36 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
695
707
  processedData: this.parameterData
696
708
  });
697
709
  w.push(F);
698
- }), b.push(processingResults(w, D)), c.list[y].show = D.id == c.checkId, D.list.length && D.list.map((v) => (v.show = D.id == c.checkId, v));
710
+ }), b.push(processingResults(w, D)), u.list[y].show = D.id == u.checkId, D.list.length && D.list.map((v) => (v.show = D.id == u.checkId, v));
699
711
  });
700
712
  let g = b.indexOf(!0);
701
- g != -1 && c.checkId == "" && c.list.forEach((D, y) => {
702
- y != g && (m = m.concat(D.list)), c.list[y].show = y == g, D.list.length && D.list.map((w) => (w.show = y == g, w));
713
+ g != -1 && u.checkId == "" && u.list.forEach((D, y) => {
714
+ y != g && (m = m.concat(D.list)), u.list[y].show = y == g, D.list.length && D.list.map((w) => (w.show = y == g, w));
703
715
  });
704
- }), m.forEach((c) => {
705
- n.push(c.id);
716
+ }), m.forEach((u) => {
717
+ n.push(u.id);
706
718
  });
707
719
  let f = [];
708
- if (l.forEach((c) => {
709
- c.list.forEach((p) => {
710
- p.ppid = c.pid, f.push(p);
720
+ if (l.forEach((u) => {
721
+ u.list.forEach((p) => {
722
+ p.ppid = u.pid, f.push(p);
711
723
  });
712
- }), f.map((c, p) => {
724
+ }), f.map((u, p) => {
713
725
  let b = !0;
714
- if (c.ppid != 0) {
715
- let g = f.filter((D) => D.id == c.ppid)[0];
726
+ if (u.ppid != 0) {
727
+ let g = f.filter((D) => D.id == u.ppid)[0];
716
728
  b = g ? g.show : !0;
717
729
  }
718
- return c.show = !!(c.show && b), c;
719
- }), f.forEach((c) => {
720
- c.list.forEach((p) => {
721
- p.type == "step" && c.show && n.includes(p.id) && (n = n.filter((b) => b != p.id)), p.type == "step" && !c.show && !n.includes(p.id) && n.push(p.id);
730
+ return u.show = !!(u.show && b), u;
731
+ }), f.forEach((u) => {
732
+ u.list.forEach((p) => {
733
+ p.type == "step" && u.show && n.includes(p.id) && (n = n.filter((b) => b != p.id)), p.type == "step" && !u.show && !n.includes(p.id) && n.push(p.id);
722
734
  });
723
- }), r.forEach((c) => (c.show = !n.includes(c.id), c)), this.list = [...r], !s)
735
+ }), r.forEach((u) => (u.show = !n.includes(u.id), u)), this.list = [...r], !s)
724
736
  return;
725
- if (r.filter((c) => !n.includes(c.id)).filter((c) => c.id == this.seeData.id)[0] === void 0) {
726
- let c = this.stageData ? r.filter((p) => p.id == this.stageData.stageid)[0] : r[0];
727
- this.selitem(c);
737
+ if (r.filter((u) => !n.includes(u.id)).filter((u) => u.id == this.seeData.id)[0] === void 0) {
738
+ let u = this.stageData ? r.filter((p) => p.id == this.stageData.stageid)[0] : r[0];
739
+ this.selitem(u);
728
740
  }
729
741
  this.$nextTick(() => {
730
742
  this.addResolveId !== "" && this.baseAddFlowAgain(this.addResolveId), setTimeout(() => {
@@ -736,6 +748,8 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
736
748
  },
737
749
  async changeFkData() {
738
750
  this.$nextTick(async () => {
751
+ if (!this.list)
752
+ return;
739
753
  const s = this.list.filter((n) => n.id === this.seeData.id)[0];
740
754
  if (!s)
741
755
  return;
@@ -914,15 +928,15 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
914
928
  return;
915
929
  }
916
930
  this.disableNextStage || (this.confirmLoading = !0, this.getFromData().then((a) => {
917
- t.forEach((u, c) => {
918
- u.id == this.ongoingData.id && (s = c);
931
+ t.forEach((c, u) => {
932
+ c.id == this.ongoingData.id && (s = u);
919
933
  });
920
934
  let i = t.length - 1 == s ? 1 : 0, o = i == 1 ? t[s] : t[s + 1], n = this.stageData.stagecompleteid == "" ? [] : this.stageData.stagecompleteid.split(","), l = this.stageData.stagecompletename == "" ? [] : this.stageData.stagecompletename.split(",");
921
935
  i != 1 && (n.push(o.id), l.push(o.name));
922
- let r = n.filter(function(u, c) {
923
- return n.indexOf(u) === c;
924
- }), d = n.filter(function(u, c) {
925
- return n.indexOf(u) === c;
936
+ let r = n.filter(function(c, u) {
937
+ return n.indexOf(c) === u;
938
+ }), d = n.filter(function(c, u) {
939
+ return n.indexOf(c) === u;
926
940
  }), m = {
927
941
  stageid: o.id,
928
942
  stagename: o.name,
@@ -934,8 +948,8 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
934
948
  updateOpen: o.updateOpen === void 0 ? !1 : o.updateOpen,
935
949
  id: this.seeData.id
936
950
  };
937
- onlineBizProcessStageSave(f).then((u) => {
938
- u.success ? (this.baseEdit(h), this.stageData = f, this.isSerialize = !1, this.editHandling()) : this.$message.warning(u.message), this.confirmLoading = !1;
951
+ onlineBizProcessStageSave(f).then((c) => {
952
+ c.success ? (this.baseEdit(h), this.stageData = f, this.isSerialize = !1, this.editHandling()) : this.$message.warning(c.message), this.confirmLoading = !1;
939
953
  });
940
954
  }).catch(() => {
941
955
  this.confirmLoading = !1;
@@ -961,35 +975,35 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
961
975
  },
962
976
  baseEdit(s) {
963
977
  let t = [];
964
- const a = this.list.filter((h) => h.id === this.seeData.id)[0], i = (h) => (h = h.filter((u, c) => (["grid", "tabs", "collapse"].includes(u.type) && u.columns.forEach((p) => {
978
+ const a = this.list.filter((h) => h.id === this.seeData.id)[0], i = (h) => (h = h.filter((c, u) => (["grid", "tabs", "collapse"].includes(c.type) && c.columns.forEach((p) => {
965
979
  p.list = i(p.list);
966
- }), ["card", "drawer", "dialog", "batch", "form", "flexLayout", "drawerContainer", "containerPanel"].includes(u.type) && (u.list = i(u.list)), u.type === "table" && u.trs.forEach((p) => {
980
+ }), ["card", "drawer", "dialog", "batch", "form", "flexLayout", "drawerContainer", "containerPanel"].includes(c.type) && (c.list = i(c.list)), c.type === "table" && c.trs.forEach((p) => {
967
981
  p.tds.forEach((b) => {
968
982
  b.list = i(b.list);
969
983
  });
970
- }), u.options && u.options.columnName && t.push(u), !0)), h);
984
+ }), c.options && c.options.columnName && t.push(c), !0)), h);
971
985
  i(a.formData.list);
972
986
  let o = /* @__PURE__ */ new Map();
973
987
  a.updateFiled.forEach((h) => {
974
- const u = this.fieldData.filter((c) => c.id === h)[0];
975
- o.set(u.columnname, this.parameterData[u.columnname]);
988
+ const c = this.fieldData.filter((u) => u.id === h)[0];
989
+ o.set(c.columnname, this.parameterData[c.columnname]);
976
990
  });
977
991
  let n = t.filter((h) => ["about"].includes(h.options.effectType)), l = t.filter((h) => ["participants"].includes(h.options.effectType));
978
992
  n.forEach((h) => {
979
- let c = h.fkData.filter((b) => b.id !== "").filter((b) => b.id == this.parameterData[h.options.columnName])[0], p = (h.options.relations + "_AboutTable").toLowerCase();
980
- o.set(p, c ? c.tableName : h.options.fkEntityName.split(",")[0]), o.set(h.options.relations.toLowerCase(), c ? c.name : "");
993
+ let u = h.fkData.filter((b) => b.id !== "").filter((b) => b.id == this.parameterData[h.options.columnName])[0], p = (h.options.relations + "_AboutTable").toLowerCase();
994
+ o.set(p, u ? u.tableName : h.options.fkEntityName.split(",")[0]), o.set(h.options.relations.toLowerCase(), u ? u.name : "");
981
995
  }), l.forEach((h) => {
982
- let c = h.fkData.filter((p) => p.id !== "").filter((p) => this.parameterData[h.options.columnName].includes(p.id));
983
- o.set(h.options.columnName, JSON.stringify(c));
996
+ let u = h.fkData.filter((p) => p.id !== "").filter((p) => this.parameterData[h.options.columnName].includes(p.id));
997
+ o.set(h.options.columnName, JSON.stringify(u));
984
998
  });
985
999
  let r = Object.fromEntries(o), d = /* @__PURE__ */ new Map(), m = a.updateFiled;
986
1000
  s.updateOpen && (s.fieldsList.forEach((h) => {
987
- const u = this.fieldData.filter((c) => c.columnname === h.columnName)[0];
988
- u && (d.set(u.columnname, h.val), m = m.includes(u.id) ? m : m.concat([u.id]));
1001
+ const c = this.fieldData.filter((u) => u.columnname === h.columnName)[0];
1002
+ c && (d.set(c.columnname, h.val), m = m.includes(c.id) ? m : m.concat([c.id]));
989
1003
  }), Object.assign(r, Object.fromEntries(d)));
990
1004
  for (const h in r) {
991
- const u = typeof r[h];
992
- u === "undefined" ? r[h] = "" : u === "object" && (r[h] = formatting(r[h]));
1005
+ const c = typeof r[h];
1006
+ c === "undefined" ? r[h] = "" : c === "object" && (r[h] = formatting(r[h]));
993
1007
  }
994
1008
  let f = {
995
1009
  tableId: this.tableData.id,
@@ -1030,7 +1044,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1030
1044
  s && (this.showForm = !1);
1031
1045
  let a = this.stageData && this.stageData.stagecompleteid ? this.stageData.stagecompleteid.split(",") : [];
1032
1046
  const i = (d) => (d = d.filter((m, f) => {
1033
- if (m.type == "condition" && m.list.forEach((h, u) => {
1047
+ if (m.type == "condition" && m.list.forEach((h, c) => {
1034
1048
  h.list = i(h.list);
1035
1049
  }), m.type == "step")
1036
1050
  if (m.formOptions !== void 0)
@@ -1046,7 +1060,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1046
1060
  s && t.map((d, m) => {
1047
1061
  const f = a.includes(d.id);
1048
1062
  d.index = m, d.statu = n == 1 ? 0 : d.id === o ? 1 : f ? 0 : -1, d.style = d.id === o ? {} : this.styled(d), d.class = d.id === o ? d.statu == 0 ? "item-over" : "item-active" : d.statu == 0 || d.statu == 1 ? "item-over" : "";
1049
- let h = d.updateFiled.filter((u) => !l.includes(u));
1063
+ let h = d.updateFiled.filter((c) => !l.includes(c));
1050
1064
  return l = l.concat(h), d;
1051
1065
  });
1052
1066
  let r = t.filter((d) => d.id === o)[0];
@@ -1065,7 +1079,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1065
1079
  const l = this.allField.filter((g) => g.options.columnName === i.columnName)[0];
1066
1080
  let r = {};
1067
1081
  l ? r = JSON.parse(JSON.stringify(l)) : r = this.getColumnlist(n);
1068
- let d = n.issecurity !== void 0 ? n.issecurity : "N", m = i.disabled, f = i.rules[0].required, u = {
1082
+ let d = n.issecurity !== void 0 ? n.issecurity : "N", m = i.disabled, f = i.rules[0].required, c = {
1069
1083
  hidden: n.isquery ? !1 : !(n.isedit || n.isadd),
1070
1084
  disabled: m,
1071
1085
  odisabled: m,
@@ -1075,14 +1089,14 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1075
1089
  dictTypeCode: n.dicttypecode,
1076
1090
  format: String(n.fieldformat)
1077
1091
  };
1078
- ["about"].includes(n.effecttype) && Object.assign(u, { relations: n.relations.toLowerCase() }), ["participants"].includes(n.effecttype) && Object.assign(u, { multiple: !0, multipleLimit: 0 });
1079
- let c = {
1092
+ ["about"].includes(n.effecttype) && Object.assign(c, { relations: n.relations.toLowerCase() }), ["participants"].includes(n.effecttype) && Object.assign(c, { multiple: !0, multipleLimit: 0 });
1093
+ let u = {
1080
1094
  required: !1,
1081
1095
  message: "\u5FC5\u586B\u9879",
1082
1096
  trigger: "change"
1083
1097
  };
1084
- ["inputnumber", "currency", "double"].includes(n.effecttype) && Object.assign(c, { type: "number" });
1085
- let p = m ? [c] : JSON.parse(JSON.stringify(r.rules));
1098
+ ["inputnumber", "currency", "double"].includes(n.effecttype) && Object.assign(u, { type: "number" });
1099
+ let p = m ? [u] : JSON.parse(JSON.stringify(r.rules));
1086
1100
  this.isSerialize || p.forEach((g, D) => {
1087
1101
  D === 0 && (p[D].required = l ? l.rules[0].required : f);
1088
1102
  }), (this.fkValue === "" ? n.isquery || n.isadd : n.isquery || n.isedit) && (t.push({
@@ -1096,7 +1110,7 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1096
1110
  isQuery: n.isquery,
1097
1111
  isEdit: n.isedit,
1098
1112
  isAdd: n.isadd,
1099
- options: Object.assign(r.options, u, {
1113
+ options: Object.assign(r.options, c, {
1100
1114
  transKey: i.transKey ? i.transKey : n.transkey ? n.transkey : null
1101
1115
  })
1102
1116
  })
@@ -1144,6 +1158,9 @@ const processFlow_vue_vue_type_style_index_0_scoped_94e85bc5_lang = "", _sfc_mai
1144
1158
  let t = this.$options.filters.dictData(s) || [];
1145
1159
  return t.map((a) => (a.value = a.code, a.label = a.name, a)), t;
1146
1160
  }
1161
+ },
1162
+ beforeDestroy() {
1163
+ this.timeOut && clearTimeout(this.timeOut), this.timeRulesOut && clearTimeout(this.timeRulesOut), this.timeOut = null, this.timeRulesOut = null, this.processingData = null, this.list = [];
1147
1164
  }
1148
1165
  };
1149
1166
  var _sfc_render$1 = function() {
@@ -1158,7 +1175,7 @@ var _sfc_render$1 = function() {
1158
1175
  return t.moveEl("right");
1159
1176
  } } }, [a("i", { staticClass: "el-icon-arrow-right" })]) : t._e(), a("div", { staticClass: "list-up", on: { click: function(i) {
1160
1177
  t.type = !t.type;
1161
- } } }, [a("span", [a("i", { class: t.type ? "el-icon-arrow-up" : "el-icon-arrow-down" })])])]) : t._e(), a("div", { directives: [{ name: "show", rawName: "v-show", value: t.type, expression: "type" }], staticClass: "process-form" }, [t.list.length > 0 ? a("div", [t.showForm ? a("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline }, nativeOn: { submit: function(i) {
1178
+ } } }, [a("span", [a("i", { class: t.type ? "el-icon-arrow-up" : "el-icon-arrow-down" })])])]) : t._e(), a("div", { directives: [{ name: "show", rawName: "v-show", value: t.type, expression: "type" }], staticClass: "process-form" }, [t.list && t.list.length > 0 ? a("div", [t.showForm ? a("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline }, nativeOn: { submit: function(i) {
1162
1179
  i.preventDefault();
1163
1180
  } } }, [t._l(t.list, function(i, o) {
1164
1181
  return [t.showForm && i.show && i.id === t.seeData.id ? a("BuildBlocks", { attrs: { record: { options: i.formData }, isForm: !0, model: t.parameterData, tableData: t.tableData }, on: { change: t.baseChange, lookup: t.lookup } }) : t._e()];
@@ -1169,11 +1186,11 @@ var _sfc_render$1 = function() {
1169
1186
  _sfc_staticRenderFns$1,
1170
1187
  !1,
1171
1188
  null,
1172
- "94e85bc5",
1189
+ "7f28f483",
1173
1190
  null,
1174
1191
  null
1175
1192
  );
1176
- const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_scoped_806aa517_lang = "", _sfc_main = {
1193
+ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_scoped_0228d587_lang = "", _sfc_main = {
1177
1194
  name: "GdFormBuild",
1178
1195
  props: {
1179
1196
  modeType: {
@@ -1288,7 +1305,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1288
1305
  ProcessFlow,
1289
1306
  BuildBlocks: () => Promise.resolve().then(() => index),
1290
1307
  DataAssign: () => import("./components.dataassign.e398cc99.mjs"),
1291
- Duplicate: () => import("./main.12118407.mjs"),
1308
+ Duplicate: () => import("./main.5bf89f06.mjs"),
1292
1309
  TeamSharing: () => import("./components.teamsharing.b9f112cf.mjs")
1293
1310
  },
1294
1311
  methods: {
@@ -1358,11 +1375,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1358
1375
  const t = s.options.columnName ? s.options.columnName.toLowerCase() : s.options.columnName, a = s.options.searchWid ? s.options.searchWid + s.options.searchUnit : "90%";
1359
1376
  let i = s.options.fkEntityName.split(","), o = s.options.viewdeId, n = s.options.formdeId, l = [];
1360
1377
  if (["participants", "about"].includes(s.options.effectType)) {
1361
- const d = s.aboutEntityConfig ? s.aboutEntityConfig : [], m = d.filter((c) => c.isDefault)[0], f = m ? m.fkEntityName : i[0], h = d.filter((c) => c.fkEntityName === f)[0];
1378
+ const d = s.aboutEntityConfig ? s.aboutEntityConfig : [], m = d.filter((u) => u.isDefault)[0], f = m ? m.fkEntityName : i[0], h = d.filter((u) => u.fkEntityName === f)[0];
1362
1379
  o = h ? h.viewdeId : o, n = h ? h.formdeId : n;
1363
- const u = i.filter((c) => c != f);
1364
- i = [f].concat(u), d.forEach((c) => {
1365
- l.push({ id: c.viewdeId, fkEntityName: c.fkEntityName });
1380
+ const c = i.filter((u) => u != f);
1381
+ i = [f].concat(c), d.forEach((u) => {
1382
+ l.push({ id: u.viewdeId, fkEntityName: u.fkEntityName });
1366
1383
  });
1367
1384
  }
1368
1385
  let r = {
@@ -1408,10 +1425,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1408
1425
  return;
1409
1426
  }
1410
1427
  if (String(this.openMode) === "3" && o !== "" && n) {
1411
- let d = i.updateFiled_GD.split(","), m = this.recordRelation.options.foreign, f = this.fieldData.filter((c) => c.columnname === m)[0], h = d.filter((c) => c !== f.id);
1428
+ let d = i.updateFiled_GD.split(","), m = this.recordRelation.options.foreign, f = this.fieldData.filter((u) => u.columnname === m)[0], h = d.filter((u) => u !== f.id);
1412
1429
  h.push(f.id);
1413
- let u = /* @__PURE__ */ new Map();
1414
- u.set(m, o), Object.assign(i, Object.fromEntries(u), {
1430
+ let c = /* @__PURE__ */ new Map();
1431
+ c.set(m, o), Object.assign(i, Object.fromEntries(c), {
1415
1432
  updateFiled_GD: h.join(",")
1416
1433
  });
1417
1434
  }
@@ -1455,10 +1472,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1455
1472
  return;
1456
1473
  }
1457
1474
  if (String(this.openMode) === "3" && o !== "" && n) {
1458
- let d = i.updateFiled_GD.split(","), m = this.recordRelation.options.foreign, f = this.fieldData.filter((c) => c.columnname === m)[0], h = d.filter((c) => c !== f.id);
1475
+ let d = i.updateFiled_GD.split(","), m = this.recordRelation.options.foreign, f = this.fieldData.filter((u) => u.columnname === m)[0], h = d.filter((u) => u !== f.id);
1459
1476
  h.push(f.id);
1460
- let u = /* @__PURE__ */ new Map();
1461
- u.set(m, o), Object.assign(i, Object.fromEntries(u), {
1477
+ let c = /* @__PURE__ */ new Map();
1478
+ c.set(m, o), Object.assign(i, Object.fromEntries(c), {
1462
1479
  updateFiled_GD: h.join(",")
1463
1480
  });
1464
1481
  }
@@ -1561,23 +1578,23 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1561
1578
  }), Object.fromEntries(t);
1562
1579
  },
1563
1580
  getFormAllData(s = !0, t = !1) {
1564
- let a = this, i = this.allField.filter((u) => ["about"].includes(u.options.effectType)), o = this.allField.filter((u) => ["participants"].includes(u.options.effectType)), n = /* @__PURE__ */ new Map();
1565
- i.forEach((u) => {
1566
- const c = u.fkData.filter((y) => y.id !== ""), p = u.options.columnName.toLowerCase(), b = u.options.relations.toLowerCase();
1567
- let g = c.filter((y) => y.id == this.parameterData[p])[0], D = b + "_abouttable";
1568
- n.set(D, g ? g.tableName : u.options.fkEntityName.split(",")[0]), n.set(b, g ? g.name : "");
1569
- }), o.forEach((u) => {
1570
- const c = u.fkData.filter((D) => D.id !== ""), p = u.options.columnName.toLowerCase();
1571
- let b = c.filter((D) => this.parameterData[p].includes(D.id)), g = [];
1581
+ let a = this, i = this.allField.filter((c) => ["about"].includes(c.options.effectType)), o = this.allField.filter((c) => ["participants"].includes(c.options.effectType)), n = /* @__PURE__ */ new Map();
1582
+ i.forEach((c) => {
1583
+ const u = c.fkData.filter((y) => y.id !== ""), p = c.options.columnName.toLowerCase(), b = c.options.relations.toLowerCase();
1584
+ let g = u.filter((y) => y.id == this.parameterData[p])[0], D = b + "_abouttable";
1585
+ n.set(D, g ? g.tableName : c.options.fkEntityName.split(",")[0]), n.set(b, g ? g.name : "");
1586
+ }), o.forEach((c) => {
1587
+ const u = c.fkData.filter((D) => D.id !== ""), p = c.options.columnName.toLowerCase();
1588
+ let b = u.filter((D) => this.parameterData[p].includes(D.id)), g = [];
1572
1589
  b.forEach((D) => {
1573
1590
  g.push({ id: D.id, name: D.name, tableName: D.tableName });
1574
1591
  }), n.set(p, JSON.stringify(g));
1575
1592
  });
1576
- const l = a.getFkList(t), r = a.id === "" ? a.securityFiled.addData : a.securityFiled.editData, d = a.updateFiled.split(",").filter((u) => !r.includes(Number(u))), m = a.updateFlowFiled.filter((u) => !d.includes(u) && !r.includes(Number(u)));
1593
+ const l = a.getFkList(t), r = a.id === "" ? a.securityFiled.addData : a.securityFiled.editData, d = a.updateFiled.split(",").filter((c) => !r.includes(Number(c))), m = a.updateFlowFiled.filter((c) => !d.includes(c) && !r.includes(Number(c)));
1577
1594
  let f = { ...this.parameterData };
1578
- for (const u in f) {
1579
- const c = typeof f[u];
1580
- c === "undefined" ? f[u] = "" : c === "object" && (f[u] = formatting(f[u]));
1595
+ for (const c in f) {
1596
+ const u = typeof f[c];
1597
+ u === "undefined" ? f[c] = "" : u === "object" && (f[c] = formatting(f[c]));
1581
1598
  }
1582
1599
  const h = Object.assign(
1583
1600
  { ...this.baseParserData(Object.assign(f, Object.fromEntries(n))) },
@@ -1588,9 +1605,9 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1588
1605
  notBringToFields: a.notBringToFields
1589
1606
  }
1590
1607
  );
1591
- return new Promise((u, c) => {
1608
+ return new Promise((c, u) => {
1592
1609
  if (!s) {
1593
- u(h);
1610
+ c(h);
1594
1611
  return;
1595
1612
  }
1596
1613
  this.$refs.ruleForm.validate((p, b) => {
@@ -1599,13 +1616,13 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1599
1616
  for (let N of y.keys())
1600
1617
  w.push(N);
1601
1618
  const v = b[w[0]][0], k = this.allField.filter((N) => N.options.columnName === v.field)[0], F = k ? `${this.$i18nt(`Dynamics.${k.options.transKey}`, k.label)} (${v.field})` : v.field;
1602
- this.$message.error(`${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${F} ${v.message}!`), c({ err: `${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${F} ${v.message}!` });
1619
+ this.$message.error(`${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${F} ${v.message}!`), u({ err: `${this.$i18nt("gd.https.errors", "\u6821\u9A8C\u5931\u8D25")}: ${F} ${v.message}!` });
1603
1620
  return;
1604
1621
  }
1605
1622
  let g = this.allField.filter((y) => ["uploadImg", "uploadFile"].includes(y.type)), D = [];
1606
1623
  g.forEach((y) => {
1607
1624
  y.uidUploading && (D = D.concat(y.uidUploading));
1608
- }), D.length > 0 ? (this.$message.error(`${this.$i18nt("gd.https.uidUploading", "\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}`), c({ err: `${this.$i18nt("gd.https.uidUploading", "\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}` })) : u(h);
1625
+ }), D.length > 0 ? (this.$message.error(`${this.$i18nt("gd.https.uidUploading", "\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}`), u({ err: `${this.$i18nt("gd.https.uidUploading", "\u6587\u4EF6\u6B63\u5728\u4E0A\u4F20\u4E2D,\u8BF7\u7B49\u5F85..")}` })) : c(h);
1609
1626
  });
1610
1627
  });
1611
1628
  },
@@ -1617,7 +1634,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1617
1634
  if (t.code === 200) {
1618
1635
  const a = this.baseFormatterData(t.data[0]);
1619
1636
  this.parameterData = a, this.processingData(t.data[0]), this.$nextTick(() => {
1620
- this.$refs.processFlow.editLoadHandling();
1637
+ this.$refs.processFlow && this.$refs.processFlow.editLoadHandling();
1621
1638
  });
1622
1639
  } else
1623
1640
  this.$message.error(t.message);
@@ -1676,8 +1693,8 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1676
1693
  });
1677
1694
  },
1678
1695
  setFormRecord(s) {
1679
- return new Promise((t, a) => {
1680
- this.formRecordSource = JSON.stringify(s), this.formData = JSON.parse(s.formconfig), this.getTableData(), t({
1696
+ return new Promise((t) => {
1697
+ this.formRecordSource = JSON.stringify(s), this.getTableData(), t({
1681
1698
  formRecordSource: this.formRecordSource,
1682
1699
  formRecord: this.formRecord,
1683
1700
  formData: this.formData,
@@ -1687,18 +1704,12 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1687
1704
  });
1688
1705
  },
1689
1706
  setFormRecordInit(s) {
1690
- return new Promise((t, a) => {
1691
- if (this.formRecordSource = JSON.stringify(s), this.formRecord = s, this.formData = JSON.parse(s.formconfig), this.titlePrefix = this.formData.options.prefixTransKey ? this.$i18nt(this.formData.options.prefixTransKey, this.formData.options.titlePrefix) : "", this.businessConfig = JSON.parse(s.businessconfig), this.allField = this.getItemList(), ["iframe", "editForm", "component"].includes(this.modeType)) {
1692
- const i = this.baseRelationBtnShow();
1693
- this.sysViewButtons = this.formRecord.sysbuttons.map((o) => (o.show = i, o.displayName = o.displayname, o.transKey = o.transkey ? `Dynamics.${o.transkey}` : null, o));
1707
+ return new Promise((t) => {
1708
+ if (this.formRecord = s, this.formData = Object.freeze(JSON.parse(s.formconfig)), this.titlePrefix = this.formData.options.prefixTransKey ? this.$i18nt(this.formData.options.prefixTransKey, this.formData.options.titlePrefix) : "", this.businessConfig = JSON.parse(s.businessconfig), this.allField = this.getItemList(), ["iframe", "editForm", "component"].includes(this.modeType)) {
1709
+ const a = this.baseRelationBtnShow();
1710
+ this.sysViewButtons = this.formRecord.sysbuttons.map((i) => (i.show = a, i.displayName = i.displayname, i.transKey = i.transkey ? `Dynamics.${i.transkey}` : null, i));
1694
1711
  }
1695
- this.baseInitData(), t({
1696
- formRecordSource: this.formRecordSource,
1697
- formRecord: this.formRecord,
1698
- formData: this.formData,
1699
- allField: this.allField,
1700
- sysViewButtons: this.sysViewButtons
1701
- });
1712
+ this.onLoadCompleted("setFormRecord"), t();
1702
1713
  });
1703
1714
  },
1704
1715
  getDataIsEdit() {
@@ -1716,7 +1727,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1716
1727
  });
1717
1728
  },
1718
1729
  async addInitData() {
1719
- await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.openProcessFlow(this.record), this.$nextTick(() => {
1730
+ this.baseInitData(), this.openProcessFlow(this.record), this.$nextTick(() => {
1720
1731
  setTimeout(async () => {
1721
1732
  this.$refs.ruleForm.resetFields(), this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show"), this.allField.filter((i) => ["uploadImg", "uploadFile"].includes(i.type)).forEach((i) => {
1722
1733
  if (i.setData) {
@@ -1734,9 +1745,9 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1734
1745
  });
1735
1746
  },
1736
1747
  async open(s) {
1737
- this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
1748
+ this.confirmLoading = !0, await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.title = s.title !== void 0 ? s.title : this.title;
1738
1749
  const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
1739
- if (this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.record = s, this.id = s.id ? s.id : s.data ? s.data.id : "", this.visible = !0, this.showValTabs = !1, await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.openProcessFlow(s), this.$nextTick(() => {
1750
+ if (this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.record = s, this.id = s.id ? s.id : s.data ? s.data.id : "", this.visible = !0, this.showValTabs = !1, this.baseInitData(), this.openProcessFlow(s), this.$nextTick(() => {
1740
1751
  setTimeout(() => {
1741
1752
  this.$refs.ruleForm.resetFields();
1742
1753
  }, 0);
@@ -1755,25 +1766,25 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1755
1766
  }
1756
1767
  this.id ? this.getDetail() : this.$nextTick(() => {
1757
1768
  setTimeout(() => {
1758
- this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show"), this.confirmLoading = !1, setTimeout(() => {
1759
- this.oldvalue = JSON.stringify(this.parameterData);
1760
- }, 100);
1761
- }, 10);
1769
+ this.baseUsageRules(), this.fkbaseMountData(), this.onLoadCompleted("show");
1770
+ }, 20), setTimeout(() => {
1771
+ this.oldvalue = JSON.stringify(this.parameterData), this.confirmLoading = !1;
1772
+ }, 300);
1762
1773
  });
1763
1774
  },
1764
1775
  async openDisplay(s) {
1765
- if (this.options === void 0)
1776
+ if (await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.options === void 0)
1766
1777
  return;
1767
1778
  this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
1768
1779
  const t = s.width !== void 0 ? s.width : this.options && this.options.width ? this.options.width + this.options.widthUnit : this.width;
1769
- this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0, await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.$nextTick(() => {
1780
+ this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0, this.$nextTick(() => {
1770
1781
  this.baseDisableALL(), setTimeout(() => {
1771
- this.processingData(s);
1782
+ this.baseInitData(), this.processingData(s);
1772
1783
  }, 300);
1773
1784
  });
1774
1785
  },
1775
1786
  async setDisplayId(s) {
1776
- await this.setFormRecordInit(JSON.parse(this.formRecordSource)), baseDetails(s).then((t) => {
1787
+ baseDetails(s).then((t) => {
1777
1788
  if (t.code === 200) {
1778
1789
  const a = this.baseFormatterData(t.data[0]);
1779
1790
  this.parameterData = a, this.processingData(t.data[0]);
@@ -1781,11 +1792,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1781
1792
  });
1782
1793
  },
1783
1794
  async openCopyData(s) {
1784
- this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
1795
+ this.confirmLoading = !0, await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.title = s.title !== void 0 ? s.title : this.title;
1785
1796
  const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
1786
1797
  this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0;
1787
1798
  const a = s.data.id ? String(s.data.id).split("u") : [];
1788
- await this.setFormRecordInit(JSON.parse(this.formRecordSource)), a.length > 1 ? this.$nextTick(() => {
1799
+ this.baseInitData(), a.length > 1 ? this.$nextTick(() => {
1789
1800
  this.baseDisableALL(), setTimeout(() => {
1790
1801
  this.processingData(s.data);
1791
1802
  }, 300);
@@ -1794,7 +1805,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1794
1805
  openProcessFlow(s) {
1795
1806
  this.$nextTick(() => {
1796
1807
  setTimeout(() => {
1797
- this.$refs.processFlow.open(s);
1808
+ this.$refs.processFlow && this.$refs.processFlow.open(s);
1798
1809
  }, 0);
1799
1810
  });
1800
1811
  },
@@ -1825,13 +1836,14 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1825
1836
  });
1826
1837
  const names = element.options.columnName ? element.options.columnName.toLowerCase() : element.options.columnName;
1827
1838
  if (element.options && element.options.effectType == "currency" && currencyFiled.push(element), element.options && names) {
1828
- element.rulesList = that.hitItem(element), itemList.push(element);
1829
- let s = element.options.bringTo === void 0 ? !0 : element.options.bringTo, t = this.fieldData.filter((a) => a.columnname == names)[0];
1830
- if (s && t && t.columnname !== "id" && t.columnname !== "ownerid" && updateFiled.push(t.id), element.options.effectType == "about") {
1831
- let a = names.replace("_aboutid", "_abouttable");
1832
- t = this.fieldData.filter((i) => i.columnname == a)[0], t && updateFiled.push(t.id);
1839
+ const s = element.options.filter ? element.options.filter.map((i) => Object.assign(i, { loadData: [] })) : [];
1840
+ element.options = Object.assign({ ...element.options }, { filter: s }), element.rulesList = that.hitItem(element), itemList.push(element);
1841
+ let t = element.options.bringTo === void 0 ? !0 : element.options.bringTo, a = this.fieldData.filter((i) => i.columnname == names)[0];
1842
+ if (t && a && a.columnname !== "id" && a.columnname !== "ownerid" && updateFiled.push(a.id), element.options.effectType == "about") {
1843
+ let i = names.replace("_aboutid", "_abouttable");
1844
+ a = this.fieldData.filter((o) => o.columnname == i)[0], a && updateFiled.push(a.id);
1833
1845
  }
1834
- s && names !== "id" || notBringToFields.push(names);
1846
+ t && names !== "id" || notBringToFields.push(names);
1835
1847
  }
1836
1848
  if (element.componentItem && (element.rulesList = that.hitItem(element), itemList.push(element)), element.type === "customComponents" && element.getFormAllData === void 0 && (element.record = this.record, element.getFormAllData = that.getFormAllData, element.refresh = that.refresh, componentsData.push(element)), element.type === "displayform" && element.getFormAllData === void 0 && (element.tableId = this.tableData.id, element.getFormAllData = that.getFormAllData, element.refresh = that.refresh, componentsData.push(element)), element.type === "viewtable" && element.getFormAllData === void 0 && (element.getDelevanceData = that.getDelevance, element.getFormAllData = that.getFormAllData, element.refresh = that.baseViewRefreshFrom, componentsData.push(element)), element.type === "approval" && element.getFormAllData === void 0 && (element.getFormAllData = that.getFormAllData, element.refresh = that.refresh, element.okEmitRefresh = that.okEmitRefresh, componentsData.push(element)), element.type === "drawerContainer" && element.changeVisible === void 0 && (element.changeVisible = that.changeDrawerContainer, element.refresh = that.refresh, element.okEmitRefresh = that.okEmitRefresh), typeList.includes(element.type) && element.rules !== void 0 && element.rules.length > 0 && element.rules.map((item) => (item.message === "\u5FC5\u586B\u9879" && (item.message = this.$i18nt("gd.placeholder.required", "\u5FC5\u586B\u9879")), item.pattern !== void 0 && (item.pattern = eval(item.pattern)), item)), typeList.includes(element.type)) {
1837
1849
  let s = this.fieldData.filter((i) => i.columnname === names)[0], t = s && s.issecurity !== void 0 ? s.issecurity : "N";
@@ -1878,11 +1890,12 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1878
1890
  }), t;
1879
1891
  },
1880
1892
  getDelevance() {
1881
- return {
1893
+ let s = {
1882
1894
  formConfig: this.formData.options,
1883
1895
  fieldData: this.fieldData,
1884
1896
  parameterData: this.parameterData
1885
1897
  };
1898
+ return this.visible ? s : {};
1886
1899
  },
1887
1900
  setDelevanceBtn() {
1888
1901
  !(this.formData.options.controlStatu !== void 0 ? this.formData.options.controlStatu : !1) || this.fieldData.filter((a) => a.columnname == this.formData.options.controlField)[0] === void 0 || this.baseGetItemList(2).then((a) => {
@@ -1944,6 +1957,16 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1944
1957
  n.set(t, o), this.baseSetData(Object.fromEntries(n));
1945
1958
  },
1946
1959
  onLoadCompleted(s) {
1960
+ if (s === "setFormRecord") {
1961
+ this.$emit("onLoadCompleted", s, {
1962
+ formRecordSource: this.formRecordSource,
1963
+ formRecord: this.formRecord,
1964
+ formData: this.formData,
1965
+ allField: this.allField,
1966
+ sysViewButtons: this.sysViewButtons
1967
+ });
1968
+ return;
1969
+ }
1947
1970
  this.$emit("onLoadCompleted", s);
1948
1971
  },
1949
1972
  getInitColumnData(s) {
@@ -1979,7 +2002,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1979
2002
  },
1980
2003
  baseInitData() {
1981
2004
  const s = this.getInitColumnData();
1982
- this.parameterData = Object.assign(this.baseFormatterData(s), { id: this.id });
2005
+ this.parameterData = Object.assign({}, this.baseFormatterData(s), { id: this.id }), this.$emit("changeParameter", this.parameterData);
1983
2006
  },
1984
2007
  baseEnable(s = 1) {
1985
2008
  return this.id === "" ? this.baseEnableDisable(s) : baseCheckPermission({
@@ -2046,10 +2069,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2046
2069
  let r = /* @__PURE__ */ new Map();
2047
2070
  const d = l.data[0];
2048
2071
  for (let f in d)
2049
- n.filter((u) => u.columnname === f)[0] && r.set(f, d[f]);
2072
+ n.filter((c) => c.columnname === f)[0] && r.set(f, d[f]);
2050
2073
  const m = this.baseFormatterData(Object.assign(this.parameterData, Object.fromEntries(r)));
2051
2074
  this.parameterData = m, this.processingData(m), this.$nextTick(() => {
2052
- this.$refs.processFlow.editLoadHandling();
2075
+ this.$refs.processFlow && this.$refs.processFlow.editLoadHandling();
2053
2076
  });
2054
2077
  } else
2055
2078
  this.$message.error(l.message);
@@ -2119,7 +2142,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2119
2142
  const o = i.options.columnName ? i.options.columnName.toLowerCase() : i.options.columnName, n = a.get(o);
2120
2143
  t.filter((r) => r === o)[0] && i.rulesList && i.rulesList.length > 0 && n !== void 0 && usageBusinessRules({
2121
2144
  data: this.parameterData,
2122
- rules: i.rulesList,
2145
+ rules: [...i.rulesList],
2123
2146
  field: i,
2124
2147
  done: this.basePerformRules,
2125
2148
  statu: s
@@ -2131,19 +2154,19 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2131
2154
  let o = i;
2132
2155
  a && ["currency", "double", "inputnumber"].includes(a.options.effectType) && (o = i === void 0 ? "" : i), a && a.rulesList && a.rulesList.length > 0 && o !== void 0 && usageBusinessRules({
2133
2156
  data: this.parameterData,
2134
- rules: a.rulesList,
2157
+ rules: [...a.rulesList],
2135
2158
  field: a,
2136
2159
  done: this.basePerformRules
2137
2160
  });
2138
2161
  },
2139
2162
  basePerformRules(s, t = !0, a = []) {
2140
2163
  this.$nextTick(() => {
2141
- setTimeout(() => {
2142
- if (a.includes("flowsProcess") && this.$refs.processFlow && this.$refs.processFlow.basePerformRules(s), !a.includes("form"))
2143
- return;
2144
- const i = s.columnComment ? s.columnComment.toLowerCase() : s.columnComment;
2145
- s.rules === "1" ? this.baseSetError({ columnName: i, data: s.val }, t) : s.rules === "2" ? this.baseSetVal({ columnName: i, data: s.val }, t) : s.rules === "3" ? this.baseSetEssential({ columnName: i, data: s.val }, t) : s.rules === "4" ? this.baseSetVisibility({ columnName: i, data: s.val, item: s }, t) : s.rules === "5" ? this.baseSetDefaultsVal({ columnName: i, data: s.val }, t) : s.rules === "6" ? this.baseSetLocking({ columnName: i, data: s.val }, t) : s.rules === "7" && this.baseSetEmpty({ columnName: i, data: "" }, t);
2146
- }, 0);
2164
+ if (a.includes("flowsProcess") && setTimeout(() => {
2165
+ this.$refs.processFlow && this.$refs.processFlow.basePerformRules(s);
2166
+ }, 150), !a.includes("form"))
2167
+ return;
2168
+ const i = s.columnComment ? s.columnComment.toLowerCase() : s.columnComment;
2169
+ s.rules === "1" ? this.baseSetError({ columnName: i, data: s.val }, t) : s.rules === "2" ? this.baseSetVal({ columnName: i, data: s.val }, t) : s.rules === "3" ? this.baseSetEssential({ columnName: i, data: s.val }, t) : s.rules === "4" ? this.baseSetVisibility({ columnName: i, data: s.val, item: s }, t) : s.rules === "5" ? this.baseSetDefaultsVal({ columnName: i, data: s.val }, t) : s.rules === "6" ? this.baseSetLocking({ columnName: i, data: s.val }, t) : s.rules === "7" && this.baseSetEmpty({ columnName: i, data: "" }, t);
2147
2170
  });
2148
2171
  },
2149
2172
  baseSetError(s) {
@@ -2224,8 +2247,8 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2224
2247
  ["tabs", "collapse"].includes(r.type) && f.key && f.key === s.item.columnComment && r.setVisibility && r.setVisibility(s), f.list = o(f.list);
2225
2248
  }) : ["containerPanel"].includes(r.type) && r.key === s.item.columnComment ? r.options.hidden = s.data !== "1" : ["drawerContainer"].includes(r.type) && (r.key === s.item.columnComment || r.key === `${s.item.columnComment}_popup`) && this.$nextTick(() => {
2226
2249
  setTimeout(() => {
2227
- r.setVisibility && r.setVisibility(s);
2228
- }, 100);
2250
+ r.setVisibility && r.setVisibility(s), s.data !== "1" && (this.drawerContainerData = { visible: "closed", wid: "" });
2251
+ }, 200);
2229
2252
  }), ["tabs"].includes(r.type) && s.data === "1" && !a && t.push(r);
2230
2253
  const m = r.options.columnName ? r.options.columnName.toLowerCase() : r.options.columnName;
2231
2254
  return a && r.options && m && i.push(r), ["card", "drawer", "dialog", "batch", "form", "flexLayout", "drawerContainer", "containerPanel"].includes(r.type) && (r.list = o(r.list)), r.componentName && r.componentName === s.item.columnComment && (r.options = Object.assign(r.options, {
@@ -2287,7 +2310,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2287
2310
  },
2288
2311
  baseSetData(s, t = !0) {
2289
2312
  const a = this.baseFormatterData(s);
2290
- if (this.baseHandlefkData(a, s), this.$refs.processFlow.baseHandlefkData(a, s), Object.assign(this.parameterData, a), t)
2313
+ if (this.baseHandlefkData(a, s), this.$refs.processFlow && this.$refs.processFlow.baseHandlefkData(a, s), Object.assign(this.parameterData, a), t)
2291
2314
  for (let i of Object.keys(a)) {
2292
2315
  const o = this.allField.filter((n) => n.options.columnName === i)[0];
2293
2316
  o && (this.baseUsageFieldRules(o), this.fkNotice(o, !0));
@@ -2313,7 +2336,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2313
2336
  return;
2314
2337
  }
2315
2338
  }
2316
- t === 1 && this.$refs.processFlow.setData(s), i && i.setData && t === 2 && (i.setData({
2339
+ t === 1 && this.$refs.processFlow && this.$refs.processFlow.setData(s), i && i.setData && t === 2 && (i.setData({
2317
2340
  val: i.options.effectType === "file" ? s.sourceData : this.parameterData[a],
2318
2341
  items: Object.assign(i, { effecttype: i.options.effectType }),
2319
2342
  fkData: ["file", "images"].includes(i.options.effectType) ? null : s.fkData
@@ -2332,11 +2355,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2332
2355
  let t = this;
2333
2356
  return new Promise((a, i) => {
2334
2357
  let o = ["viewtable", "displayform", "customComponents", "approval", "auditLog", "approvalHistory", "drawerContainer"], n = [];
2335
- const l = (m) => (m = m.filter((f, h) => (["grid", "tabs", "collapse", "drawer", "dialog"].includes(f.type) ? f.columns.forEach((u) => {
2336
- u.list = l(u.list);
2337
- }) : ["card", "batch", "form", "containerPanel", "drawerContainer", "flexLayout", "dataList"].includes(f.type) ? f.list = l(f.list) : f.type === "table" && f.trs.forEach((u) => {
2338
- u.tds.forEach((c) => {
2339
- c.list = l(c.list);
2358
+ const l = (m) => (m = m.filter((f, h) => (["grid", "tabs", "collapse", "drawer", "dialog"].includes(f.type) ? f.columns.forEach((c) => {
2359
+ c.list = l(c.list);
2360
+ }) : ["card", "batch", "form", "containerPanel", "drawerContainer", "flexLayout", "dataList"].includes(f.type) ? f.list = l(f.list) : f.type === "table" && f.trs.forEach((c) => {
2361
+ c.tds.forEach((u) => {
2362
+ u.list = l(u.list);
2340
2363
  });
2341
2364
  }), o.includes(f.type) && n.push(f), !0)), m), r = t.formData && t.formData.list ? t.formData.list : [];
2342
2365
  l(r);
@@ -2373,7 +2396,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2373
2396
  let l = a.filter((d) => d.type === "viewtable" && d.foreign.fkName === n.fkName)[0], r = l ? l.fieldsData.filter((d) => d.columnName == n.fkName)[0] : null;
2374
2397
  n.data.forEach((d) => {
2375
2398
  let m = d.updateFiled_GD.split(","), f = /* @__PURE__ */ new Map();
2376
- f.set(n.fkName, s.id), r && (m = d.updateFiled_GD.split(",").filter((u) => u !== r.id).concat([r.id])), i.push(Object.assign({ ...d }, { updateFiled_GD: m.join(",") }, { ...Object.fromEntries(f) }));
2399
+ f.set(n.fkName, s.id), r && (m = d.updateFiled_GD.split(",").filter((c) => c !== r.id).concat([r.id])), i.push(Object.assign({ ...d }, { updateFiled_GD: m.join(",") }, { ...Object.fromEntries(f) }));
2377
2400
  });
2378
2401
  }), i.length == 0) {
2379
2402
  this.baseAddFlow(s.id, t), this.okEmitRefresh(!1), this.baseClearFk(), this.closed(t), this.confirmLoading = !1;
@@ -2468,9 +2491,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2468
2491
  this.closed();
2469
2492
  },
2470
2493
  closed(s = 1) {
2471
- s === 1 && (this.fullscreen = !1, this.visible = !1, this.confirmLoading = !0, this.callbackFun = null, this.formRecord = {}, this.allField = [], this.$emit("closed"), this.emitRefresh.length > 0 && (this.$emit("ok"), this.emitRefresh = []), this.drawerContainerData = {
2472
- visible: !1,
2473
- wid: ""
2494
+ s === 1 && (this.fullscreen = !1, this.visible = !1, this.confirmLoading = !0, this.callbackFun = null, this.$emit("closed"), this.emitRefresh.length > 0 && (this.$emit("ok"), this.emitRefresh = []), this.drawerContainerData = { visible: "closed", wid: "" }, this.formData = Object.freeze({ options: this.formData.options }), this.formRecord = null, this.businessConfig = null, this.allField = null, this.securityFiled = {
2495
+ addData: [],
2496
+ editData: [],
2497
+ componentsData: []
2474
2498
  });
2475
2499
  },
2476
2500
  toggleFullscreen() {
@@ -2490,7 +2514,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2490
2514
  }
2491
2515
  },
2492
2516
  beforeDestroy() {
2493
- this.formData = {}, this.formRecordSource = "", this.formRecord = {}, this.businessConfig = [], this.allField = [];
2517
+ this.formData = null, this.formRecordSource = "", this.formRecord = null, this.businessConfig = null, this.drawerContainerData = { visible: "closed", wid: "" }, this.allField = null, this.securityFiled = null;
2494
2518
  }
2495
2519
  };
2496
2520
  var _sfc_render = function s() {
@@ -2508,16 +2532,16 @@ var _sfc_render = function s() {
2508
2532
  return t.closed(1);
2509
2533
  } } })], 1)]), a("div", { staticClass: "iframe-item", style: t.cstyle }, [t.visible ? a("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (i) => t.baseChange(i, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? a("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [a("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (i) => t.baseChange(i, 1) } })], 1) : t._e()], 1)])] : t.modeType === "component" ? [a("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [a("div", { style: t.cstyle }, [t.visible ? a("ProcessFlow", { ref: "processFlow", attrs: { parameterData: t.parameterData, tableData: t.tableData, fieldData: t.fieldData, allField: t.allField, formData: t.formData, openMode: t.openMode, fkValue: t.id, options: t.options, labelWidth: t.labelWidth }, on: { change: (i) => t.baseChange(i, 2), ok: t.okEmitRefresh, lookup: t.lookup, updateFiled: t.changeFlowFiled, flowFields: t.changeFlowFields, baseUsageRules: t.baseUsageRules } }) : t._e(), t.visible ? a("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline } }, [a("BuildBlocks", { attrs: { record: { options: t.formData }, isForm: !0, isedit: t.isedit, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (i) => t.baseChange(i, 1) } })], 1) : t._e()], 1)])] : a("div", [t.visible ? a("el-form", { ref: "ruleForm", attrs: { model: t.parameterData, "label-width": t.labelWidth, "label-position": t.options.labelPosition, inline: t.options.inline }, nativeOn: { submit: function(i) {
2510
2534
  i.preventDefault();
2511
- } } }, [a("BuildBlocks", { attrs: { isedit: t.isedit, record: { options: t.formData }, isForm: !0, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (i) => t.baseChange(i, 1) } })], 1) : t._e()], 1), a("DataAssign", { ref: "dataAssign", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "dataAssign") } }), a("TeamSharing", { ref: "teamSharing", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "teamSharing") } }), a("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } }), t._l(t.componentList, function(i, o) {
2535
+ } } }, [a("BuildBlocks", { attrs: { isedit: t.isedit, record: { options: t.formData }, isForm: !0, model: t.parameterData, tableData: t.tableData }, on: { lookup: t.lookup, change: (i) => t.baseChange(i, 1) } })], 1) : t._e()], 1), t.visible ? a("div", [a("DataAssign", { ref: "dataAssign", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "dataAssign") } }), a("TeamSharing", { ref: "teamSharing", attrs: { tableData: t.tableData }, on: { ok: (i) => t.okAssignSharing(i, "teamSharing") } }), a("gd-search", { ref: "viewSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: t.lookupSeled } }), t._l(t.componentList, function(i, o) {
2512
2536
  return [a(i.componentItem, { key: o, ref: i.ref, refInFor: !0, tag: "component", attrs: { record: i, openMode: t.openMode, tableData: t.tableData }, on: { change: (n) => t.doEventComponent(n, i) } })];
2513
- }), t.tableDetails && t.tableDetails.ischeckduplicate == 1 ? a("Duplicate", { ref: "duplicate", on: { ok: t.handleOk } }) : t._e()], 2);
2537
+ }), t.tableDetails && t.tableDetails.ischeckduplicate == 1 ? a("Duplicate", { ref: "duplicate", on: { ok: t.handleOk } }) : t._e()], 2) : t._e()], 2);
2514
2538
  }, _sfc_staticRenderFns = [], __component__ = /* @__PURE__ */ normalizeComponent(
2515
2539
  _sfc_main,
2516
2540
  _sfc_render,
2517
2541
  _sfc_staticRenderFns,
2518
2542
  !1,
2519
2543
  null,
2520
- "806aa517",
2544
+ "0228d587",
2521
2545
  null,
2522
2546
  null
2523
2547
  );