gds-plus-design-vue 1.2.73 → 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 (158) hide show
  1. package/lib/addPermission.4a553cd8.js +1 -0
  2. package/lib/{addPermission.1eb97ee3.mjs → addPermission.78068c52.mjs} +45 -43
  3. package/lib/{approvalModel.c09cbf86.mjs → approvalModel.1d109493.mjs} +2 -2
  4. package/lib/{approvalModel.63fa8914.js → approvalModel.e0e5738f.js} +1 -1
  5. package/lib/{attribute.88d41b0f.mjs → attribute.9dfa6953.mjs} +46 -44
  6. package/lib/attribute.f97b41ad.js +1 -0
  7. package/lib/{components.globalheader.28b38c3a.js → components.globalheader.c7bf862b.js} +1 -1
  8. package/lib/{components.globalheader.9471ef9d.mjs → components.globalheader.f0b8aab7.mjs} +1 -1
  9. package/lib/{components.middleware.b2e156ea.js → components.middleware.216e1574.js} +1 -1
  10. package/lib/{components.middleware.7b760b95.mjs → components.middleware.d7dc078d.mjs} +2 -2
  11. package/lib/{components.modaltitle.179b6da1.js → components.modaltitle.0d3db44e.js} +1 -1
  12. package/lib/{components.modaltitle.2c1011c5.mjs → components.modaltitle.517bc660.mjs} +2 -2
  13. package/lib/{components.sidenavmenu.a3de1659.js → components.sidenavmenu.364a8b26.js} +1 -1
  14. package/lib/{components.sidenavmenu.91e996c4.mjs → components.sidenavmenu.3f4d259f.mjs} +1 -1
  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.4e40579f.mjs → components.viewformdetails.cb86a01d.mjs} +28 -21
  23. package/lib/{createFile.ca811a30.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.a3ee9bde.mjs → extendedAttributes.b2c2ab6c.mjs} +45 -43
  29. package/lib/{fileSearch.d7abc086.mjs → fileSearch.203b9423.mjs} +45 -43
  30. package/lib/fileSearch.3513b55b.js +1 -0
  31. package/lib/{flow.designer.7d58bc2c.js → flow.designer.362f5f66.js} +1 -1
  32. package/lib/{flow.designer.b066df02.mjs → flow.designer.e087cd9b.mjs} +1 -1
  33. package/lib/{flow.list.a9afdd93.mjs → flow.list.3c2df716.mjs} +2 -2
  34. package/lib/{flow.list.d288de5e.js → flow.list.dea8996a.js} +1 -1
  35. package/lib/{form.build.16110b90.mjs → form.build.69803596.mjs} +24 -17
  36. package/lib/form.build.6a1bcad5.js +1 -0
  37. package/lib/{form.designer.build.2bd26973.mjs → form.designer.build.12c673f0.mjs} +188 -150
  38. package/lib/form.designer.build.89af4d24.js +1 -0
  39. package/lib/{formFiled.3763ebff.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.606ef358.mjs → index.9ecf4818.mjs} +3158 -2477
  47. package/lib/{layoutBlocks.0784592a.mjs → layoutBlocks.97713647.mjs} +91 -78
  48. package/lib/layoutBlocks.d26f79f2.js +1 -0
  49. package/lib/layouts.0e66a0bc.js +2 -0
  50. package/lib/{layouts.915931be.mjs → layouts.ddf507fa.mjs} +29 -21
  51. package/lib/{main.0326119e.js → main.22cae2bb.js} +1 -1
  52. package/lib/{main.adcedcee.mjs → main.37ae02bc.mjs} +1 -1
  53. package/lib/main.44750095.js +1 -0
  54. package/lib/{main.034638bb.mjs → main.55c9f109.mjs} +5 -8
  55. package/lib/{main.44efe912.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.63cd038d.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.70fd4c93.mjs → mobile.designer.componentstree.5a329caa.mjs} +1 -1
  68. package/lib/{mobile.designer.componentstree.f4a901e4.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.b66805f8.mjs → moveFile.864ea48f.mjs} +48 -46
  73. package/lib/{page.build.09137386.mjs → page.build.39202359.mjs} +674 -668
  74. package/lib/{page.build.1b771761.js → page.build.66e190a5.js} +3 -3
  75. package/lib/{page.designer.componentstree.a256ff7a.mjs → page.designer.componentstree.2d5a887a.mjs} +1 -1
  76. package/lib/{page.designer.componentstree.341908b2.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.d2d6b614.js → page.designer.page.2dac64ca.js} +1 -1
  80. package/lib/{page.designer.page.559113a9.mjs → page.designer.page.4cf4b1bf.mjs} +5 -5
  81. package/lib/{result.16da7693.mjs → result.3c1fc8b7.mjs} +45 -43
  82. package/lib/result.cf75c6c3.js +1 -0
  83. package/lib/{router.config.70680261.mjs → router.config.b78ec9f8.mjs} +5 -5
  84. package/lib/{router.config.1e67a1c3.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.8572122d.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.a52fd47c.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.2530073b.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.bef2b20c.js → system.duplicatechecking.719ddda1.js} +1 -1
  105. package/lib/{system.duplicatechecking.a0da805e.mjs → system.duplicatechecking.af9318aa.mjs} +1 -1
  106. package/lib/{system.notice.da2c944c.mjs → system.notice.12fa4d1c.mjs} +4 -4
  107. package/lib/{system.notice.72e0615f.js → system.notice.9385577f.js} +1 -1
  108. package/lib/{system.noticereceived.54c17b73.js → system.noticereceived.3dec9e12.js} +1 -1
  109. package/lib/{system.noticereceived.30dab7d1.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.bff7cc2f.js → system.user.75fa57c3.js} +1 -1
  115. package/lib/{system.user.a1ff367b.mjs → system.user.78a45735.mjs} +1 -1
  116. package/lib/versionControl.c39356b7.js +1 -0
  117. package/lib/{versionControl.6cd18867.mjs → versionControl.d572bc44.mjs} +52 -50
  118. package/lib/{versionEdit.910d2e2f.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.20e9aec0.mjs → view.build.5b9241fd.mjs} +193 -190
  122. package/lib/viewList.215afeb2.js +1 -0
  123. package/lib/{viewList.a4909732.mjs → viewList.b090d62f.mjs} +11 -12
  124. package/package.json +1 -1
  125. package/lib/addPermission.5bfc7e11.js +0 -1
  126. package/lib/attribute.919cb93e.js +0 -1
  127. package/lib/components.table.a0ac819e.js +0 -8
  128. package/lib/components.table.d79f5fa3.mjs +0 -4650
  129. package/lib/components.viewformdetails.6e66cc83.js +0 -1
  130. package/lib/copy.3b06d60f.mjs +0 -572
  131. package/lib/copy.fa2fcb22.js +0 -1
  132. package/lib/createFile.94329169.js +0 -1
  133. package/lib/editForm.e284e5ec.js +0 -1
  134. package/lib/extendedAttributes.b1107f6c.js +0 -1
  135. package/lib/fileSearch.4722ac3b.js +0 -1
  136. package/lib/form.build.5461409b.js +0 -1
  137. package/lib/form.designer.build.67b316e1.js +0 -1
  138. package/lib/formFiled.ef26328d.js +0 -1
  139. package/lib/index.fe18e32c.js +0 -8
  140. package/lib/layoutBlocks.1b71d988.js +0 -1
  141. package/lib/layouts.ae25c583.js +0 -2
  142. package/lib/main.44d72b90.js +0 -1
  143. package/lib/main.47957168.js +0 -1
  144. package/lib/manage.80871daf.js +0 -1
  145. package/lib/messages.sendplan.60929f46.js +0 -1
  146. package/lib/moveFile.d79f7fd9.js +0 -1
  147. package/lib/result.9cb6c2f1.js +0 -1
  148. package/lib/solution.approvalflow.cce2f064.js +0 -1
  149. package/lib/solution.dict.1d5195d0.js +0 -1
  150. package/lib/solution.plugin.5d6d29cf.js +0 -1
  151. package/lib/solution.processflow.bfa4897c.js +0 -1
  152. package/lib/solution.role.2eff83a1.js +0 -1
  153. package/lib/solution.webresources.bc00603d.js +0 -1
  154. package/lib/solution.workflow.59e0e697.js +0 -1
  155. package/lib/versionControl.47cc1330.js +0 -1
  156. package/lib/versionEdit.977faa93.js +0 -1
  157. package/lib/view.build.a48a14b0.js +0 -1
  158. package/lib/viewList.71f866da.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.a256ff7a.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.d79f5fa3.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.0784592a.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_0c1e8f0b_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.44efe912.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,12 +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
- 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(), this.getTableData(), ["iframe", "editForm", "component"].includes(this.modeType)) {
1681
- const i = this.baseRelationBtnShow();
1682
- this.sysViewButtons = this.formRecord.sysbuttons.map((o) => (o.show = i, o.displayName = o.displayname, o.transKey = o.transkey ? `Dynamics.${o.transkey}` : null, o));
1683
- }
1684
- t({
1696
+ return new Promise((t) => {
1697
+ this.formRecordSource = JSON.stringify(s), this.getTableData(), t({
1685
1698
  formRecordSource: this.formRecordSource,
1686
1699
  formRecord: this.formRecord,
1687
1700
  formData: this.formData,
@@ -1690,6 +1703,15 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1690
1703
  });
1691
1704
  });
1692
1705
  },
1706
+ setFormRecordInit(s) {
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));
1711
+ }
1712
+ this.onLoadCompleted("setFormRecord"), t();
1713
+ });
1714
+ },
1693
1715
  getDataIsEdit() {
1694
1716
  const s = Vue.ls.get("isedit");
1695
1717
  if (s == "1" || s == "0") {
@@ -1723,9 +1745,9 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1723
1745
  });
1724
1746
  },
1725
1747
  async open(s) {
1726
- 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;
1727
1749
  const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
1728
- 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(), await this.setFormRecord(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(() => {
1729
1751
  setTimeout(() => {
1730
1752
  this.$refs.ruleForm.resetFields();
1731
1753
  }, 0);
@@ -1751,7 +1773,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1751
1773
  });
1752
1774
  },
1753
1775
  async openDisplay(s) {
1754
- if (this.options === void 0)
1776
+ if (await this.setFormRecordInit(JSON.parse(this.formRecordSource)), this.options === void 0)
1755
1777
  return;
1756
1778
  this.confirmLoading = !0, this.title = s.title !== void 0 ? s.title : this.title;
1757
1779
  const t = s.width !== void 0 ? s.width : this.options && this.options.width ? this.options.width + this.options.widthUnit : this.width;
@@ -1770,11 +1792,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1770
1792
  });
1771
1793
  },
1772
1794
  async openCopyData(s) {
1773
- 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;
1774
1796
  const t = s.width !== void 0 ? s.width : this.options.width + this.options.widthUnit;
1775
1797
  this.width = isNaN(Number(t)) ? t : Number(t) + "px", this.visible = !0;
1776
1798
  const a = s.data.id ? String(s.data.id).split("u") : [];
1777
- this.baseInitData(), await this.setFormRecord(JSON.parse(this.formRecordSource)), a.length > 1 ? this.$nextTick(() => {
1799
+ this.baseInitData(), a.length > 1 ? this.$nextTick(() => {
1778
1800
  this.baseDisableALL(), setTimeout(() => {
1779
1801
  this.processingData(s.data);
1780
1802
  }, 300);
@@ -1783,7 +1805,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1783
1805
  openProcessFlow(s) {
1784
1806
  this.$nextTick(() => {
1785
1807
  setTimeout(() => {
1786
- this.$refs.processFlow.open(s);
1808
+ this.$refs.processFlow && this.$refs.processFlow.open(s);
1787
1809
  }, 0);
1788
1810
  });
1789
1811
  },
@@ -1814,13 +1836,14 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1814
1836
  });
1815
1837
  const names = element.options.columnName ? element.options.columnName.toLowerCase() : element.options.columnName;
1816
1838
  if (element.options && element.options.effectType == "currency" && currencyFiled.push(element), element.options && names) {
1817
- element.rulesList = that.hitItem(element), itemList.push(element);
1818
- let s = element.options.bringTo === void 0 ? !0 : element.options.bringTo, t = this.fieldData.filter((a) => a.columnname == names)[0];
1819
- if (s && t && t.columnname !== "id" && t.columnname !== "ownerid" && updateFiled.push(t.id), element.options.effectType == "about") {
1820
- let a = names.replace("_aboutid", "_abouttable");
1821
- 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);
1822
1845
  }
1823
- s && names !== "id" || notBringToFields.push(names);
1846
+ t && names !== "id" || notBringToFields.push(names);
1824
1847
  }
1825
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)) {
1826
1849
  let s = this.fieldData.filter((i) => i.columnname === names)[0], t = s && s.issecurity !== void 0 ? s.issecurity : "N";
@@ -1867,11 +1890,12 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1867
1890
  }), t;
1868
1891
  },
1869
1892
  getDelevance() {
1870
- return {
1893
+ let s = {
1871
1894
  formConfig: this.formData.options,
1872
1895
  fieldData: this.fieldData,
1873
1896
  parameterData: this.parameterData
1874
1897
  };
1898
+ return this.visible ? s : {};
1875
1899
  },
1876
1900
  setDelevanceBtn() {
1877
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) => {
@@ -1933,6 +1957,16 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
1933
1957
  n.set(t, o), this.baseSetData(Object.fromEntries(n));
1934
1958
  },
1935
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
+ }
1936
1970
  this.$emit("onLoadCompleted", s);
1937
1971
  },
1938
1972
  getInitColumnData(s) {
@@ -2035,10 +2069,10 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2035
2069
  let r = /* @__PURE__ */ new Map();
2036
2070
  const d = l.data[0];
2037
2071
  for (let f in d)
2038
- 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]);
2039
2073
  const m = this.baseFormatterData(Object.assign(this.parameterData, Object.fromEntries(r)));
2040
2074
  this.parameterData = m, this.processingData(m), this.$nextTick(() => {
2041
- this.$refs.processFlow.editLoadHandling();
2075
+ this.$refs.processFlow && this.$refs.processFlow.editLoadHandling();
2042
2076
  });
2043
2077
  } else
2044
2078
  this.$message.error(l.message);
@@ -2108,7 +2142,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2108
2142
  const o = i.options.columnName ? i.options.columnName.toLowerCase() : i.options.columnName, n = a.get(o);
2109
2143
  t.filter((r) => r === o)[0] && i.rulesList && i.rulesList.length > 0 && n !== void 0 && usageBusinessRules({
2110
2144
  data: this.parameterData,
2111
- rules: i.rulesList,
2145
+ rules: [...i.rulesList],
2112
2146
  field: i,
2113
2147
  done: this.basePerformRules,
2114
2148
  statu: s
@@ -2120,19 +2154,19 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2120
2154
  let o = i;
2121
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({
2122
2156
  data: this.parameterData,
2123
- rules: a.rulesList,
2157
+ rules: [...a.rulesList],
2124
2158
  field: a,
2125
2159
  done: this.basePerformRules
2126
2160
  });
2127
2161
  },
2128
2162
  basePerformRules(s, t = !0, a = []) {
2129
2163
  this.$nextTick(() => {
2130
- setTimeout(() => {
2131
- if (a.includes("flowsProcess") && this.$refs.processFlow && this.$refs.processFlow.basePerformRules(s), !a.includes("form"))
2132
- return;
2133
- const i = s.columnComment ? s.columnComment.toLowerCase() : s.columnComment;
2134
- 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);
2135
- }, 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);
2136
2170
  });
2137
2171
  },
2138
2172
  baseSetError(s) {
@@ -2302,7 +2336,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2302
2336
  return;
2303
2337
  }
2304
2338
  }
2305
- 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({
2306
2340
  val: i.options.effectType === "file" ? s.sourceData : this.parameterData[a],
2307
2341
  items: Object.assign(i, { effecttype: i.options.effectType }),
2308
2342
  fkData: ["file", "images"].includes(i.options.effectType) ? null : s.fkData
@@ -2321,11 +2355,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2321
2355
  let t = this;
2322
2356
  return new Promise((a, i) => {
2323
2357
  let o = ["viewtable", "displayform", "customComponents", "approval", "auditLog", "approvalHistory", "drawerContainer"], n = [];
2324
- const l = (m) => (m = m.filter((f, h) => (["grid", "tabs", "collapse", "drawer", "dialog"].includes(f.type) ? f.columns.forEach((u) => {
2325
- u.list = l(u.list);
2326
- }) : ["card", "batch", "form", "containerPanel", "drawerContainer", "flexLayout", "dataList"].includes(f.type) ? f.list = l(f.list) : f.type === "table" && f.trs.forEach((u) => {
2327
- u.tds.forEach((c) => {
2328
- 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);
2329
2363
  });
2330
2364
  }), o.includes(f.type) && n.push(f), !0)), m), r = t.formData && t.formData.list ? t.formData.list : [];
2331
2365
  l(r);
@@ -2362,7 +2396,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2362
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;
2363
2397
  n.data.forEach((d) => {
2364
2398
  let m = d.updateFiled_GD.split(","), f = /* @__PURE__ */ new Map();
2365
- 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) }));
2366
2400
  });
2367
2401
  }), i.length == 0) {
2368
2402
  this.baseAddFlow(s.id, t), this.okEmitRefresh(!1), this.baseClearFk(), this.closed(t), this.confirmLoading = !1;
@@ -2457,7 +2491,11 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2457
2491
  this.closed();
2458
2492
  },
2459
2493
  closed(s = 1) {
2460
- 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: "" });
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: []
2498
+ });
2461
2499
  },
2462
2500
  toggleFullscreen() {
2463
2501
  this.fullscreen = !this.fullscreen;
@@ -2476,7 +2514,7 @@ const ProcessFlow = __component__$1.exports, main_vue_vue_type_style_index_0_sco
2476
2514
  }
2477
2515
  },
2478
2516
  beforeDestroy() {
2479
- this.formData = {}, this.formRecordSource = "", this.formRecord = {}, this.businessConfig = [], this.drawerContainerData = { visible: "closed", wid: "" }, 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;
2480
2518
  }
2481
2519
  };
2482
2520
  var _sfc_render = function s() {
@@ -2494,16 +2532,16 @@ var _sfc_render = function s() {
2494
2532
  return t.closed(1);
2495
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) {
2496
2534
  i.preventDefault();
2497
- } } }, [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) {
2498
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) } })];
2499
- }), 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);
2500
2538
  }, _sfc_staticRenderFns = [], __component__ = /* @__PURE__ */ normalizeComponent(
2501
2539
  _sfc_main,
2502
2540
  _sfc_render,
2503
2541
  _sfc_staticRenderFns,
2504
2542
  !1,
2505
2543
  null,
2506
- "0c1e8f0b",
2544
+ "0228d587",
2507
2545
  null,
2508
2546
  null
2509
2547
  );