super-page-runtime 1.0.17 → 1.3.13

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 (419) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/assets/chart-themes/theme1.d.ts +4 -0
  3. package/dist/es/assets/chart-themes/theme1.js +4 -0
  4. package/dist/es/assets/chart-themes/theme2.d.ts +4 -0
  5. package/dist/es/assets/chart-themes/theme2.js +4 -0
  6. package/dist/es/assets/chart-themes/theme3.d.ts +4 -0
  7. package/dist/es/assets/chart-themes/theme3.js +4 -0
  8. package/dist/es/assets/file.png.js +4 -0
  9. package/dist/es/assets/folder.png.js +4 -0
  10. package/dist/es/components/runtime/index.d.ts +5 -0
  11. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/api/api-util.js +4 -0
  13. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  14. package/dist/es/components/runtime/utils/api/page-expose-util.js +159 -0
  15. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  16. package/dist/es/components/runtime/utils/barcode-util.d.ts +8 -0
  17. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  18. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +140 -0
  19. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +37 -0
  20. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +81 -0
  21. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +55 -0
  22. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +46 -0
  23. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +113 -0
  24. package/dist/es/components/runtime/utils/charts/chart-util.js +274 -0
  25. package/dist/es/components/runtime/utils/common-util.d.ts +33 -0
  26. package/dist/es/components/runtime/utils/common-util.js +120 -0
  27. package/dist/es/components/runtime/utils/eventBus.d.ts +7 -0
  28. package/dist/es/components/runtime/utils/eventBus.js +5 -0
  29. package/{lib/src → dist/es/components/runtime}/utils/events/event-util.d.ts +45 -1
  30. package/dist/es/components/runtime/utils/events/event-util.js +403 -0
  31. package/dist/es/components/runtime/utils/events/print-label.d.ts +5 -0
  32. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  33. package/{lib/src → dist/es/components/runtime}/utils/events/standard-event.d.ts +29 -3
  34. package/dist/es/components/runtime/utils/events/standard-event.js +971 -0
  35. package/dist/es/components/runtime/utils/events/validator-util.d.ts +25 -0
  36. package/dist/es/components/runtime/utils/events/validator-util.js +309 -0
  37. package/dist/es/components/runtime/utils/form/date-shortcuts.d.ts +7 -0
  38. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  39. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  40. package/{lib/src → dist/es/components/runtime}/utils/global-refs.d.ts +6 -0
  41. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  42. package/dist/es/components/runtime/utils/i18n-util.d.ts +1 -0
  43. package/dist/es/components/runtime/utils/i18n-util.js +14 -0
  44. package/{lib/src → dist/es/components/runtime}/utils/interfaces/page-design-types.d.ts +32 -6
  45. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  46. package/dist/es/components/runtime/utils/page-helper-util.d.ts +174 -0
  47. package/dist/es/components/runtime/utils/page-helper-util.js +386 -0
  48. package/{lib/src → dist/es/components/runtime}/utils/page-init-util.d.ts +12 -2
  49. package/dist/es/components/runtime/utils/page-init-util.js +203 -0
  50. package/dist/es/components/runtime/utils/page-permission-util.d.ts +26 -0
  51. package/dist/es/components/runtime/utils/page-permission-util.js +30 -0
  52. package/dist/es/components/runtime/utils/page-store.d.ts +46 -0
  53. package/dist/es/components/runtime/utils/page-store.js +26 -0
  54. package/dist/es/components/runtime/utils/store-util.js +13 -0
  55. package/dist/es/components/runtime/utils/store.js +4 -0
  56. package/dist/es/components/runtime/utils/table-utils.d.ts +34 -0
  57. package/dist/es/components/runtime/utils/table-utils.js +80 -0
  58. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  59. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  60. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +27 -0
  61. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  62. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +21 -0
  63. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  64. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +41 -0
  65. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  66. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +6 -0
  67. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  68. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +21 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +4 -0
  75. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  76. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  78. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +63 -0
  79. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  80. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +35 -0
  81. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  82. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +46 -0
  83. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  84. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +35 -0
  85. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  86. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +35 -0
  87. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +121 -0
  88. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +419 -0
  89. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  90. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  92. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +45 -0
  94. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +4 -0
  95. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +15 -0
  96. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  98. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +255 -0
  99. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +28 -0
  100. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  101. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +4 -0
  102. package/{lib → dist/es}/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +5 -5
  103. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +24 -0
  104. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +4 -0
  105. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
  106. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  107. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
  108. package/{lib → dist/es}/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +5 -5
  109. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  110. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +4 -0
  111. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +29 -0
  113. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +21 -0
  115. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +4 -0
  116. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +18 -0
  117. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  118. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +29 -0
  119. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +94 -0
  120. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  121. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +81 -0
  122. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  123. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +25 -0
  124. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +20 -0
  126. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  127. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +14 -0
  128. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  129. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +96 -0
  130. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  131. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +35 -0
  132. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  133. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +69 -0
  134. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +378 -0
  135. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +300 -0
  137. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  139. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +82 -0
  140. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  141. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +134 -0
  142. package/{lib → dist/es}/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  143. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  144. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +4 -0
  145. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  146. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +50 -0
  147. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  148. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +4 -0
  149. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  150. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +69 -0
  151. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +90 -0
  153. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  154. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +55 -0
  155. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  156. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +24 -0
  157. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +75 -0
  159. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +28 -0
  161. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +82 -0
  163. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -0
  164. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +37 -0
  165. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  166. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +32 -0
  167. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  168. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +16 -0
  169. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  170. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +73 -0
  171. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -0
  172. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +102 -0
  173. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +4 -0
  174. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +97 -0
  175. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  176. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +16 -0
  177. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +36 -0
  179. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +44 -0
  181. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +4 -0
  182. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +28 -0
  183. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  184. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  185. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  186. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  187. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +129 -0
  188. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +4 -0
  189. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  190. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +20 -0
  191. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  192. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +23 -0
  193. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  194. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +24 -0
  195. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  196. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +18 -0
  197. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  198. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  199. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  200. package/{lib/components/super-page-dialog → dist/es/components/runtime/views}/super-page-dialog.vue.d.ts +7 -3
  201. package/dist/es/components/runtime/views/super-page-dialog.vue.js +26 -0
  202. package/dist/es/components/runtime/views/super-page-dialog.vue3.js +5 -0
  203. package/{lib → dist/es}/components/runtime/views/super-page.vue.d.ts +43 -10
  204. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  205. package/dist/es/components/runtime/views/super-page.vue2.js +262 -0
  206. package/dist/es/i18n/langs/cn.js +4 -0
  207. package/dist/es/i18n/langs/en.js +4 -0
  208. package/dist/es/index.d.ts +16 -0
  209. package/dist/es/index.js +30 -0
  210. package/dist/es/style.css +633 -0
  211. package/package.json +74 -71
  212. package/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  213. package/lib/components/index.d.ts +0 -5
  214. package/lib/components/runtime/index.d.ts +0 -3
  215. package/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  216. package/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  217. package/lib/components/super-page-dialog/index.d.ts +0 -3
  218. package/lib/components/wf-editor/index.d.ts +0 -3
  219. package/lib/components/wf-editor/wf-editor.vue.d.ts +0 -2
  220. package/lib/index.js +0 -8
  221. package/lib/runtime/index.js +0 -3
  222. package/lib/runtime/utils/assemblys-config.js +0 -258
  223. package/lib/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  224. package/lib/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  225. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  226. package/lib/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  227. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  228. package/lib/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  229. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  230. package/lib/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -53
  231. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  232. package/lib/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -42
  233. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  234. package/lib/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -50
  235. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  236. package/lib/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -50
  237. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  238. package/lib/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -51
  239. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -141
  240. package/lib/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  241. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  242. package/lib/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  243. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  244. package/lib/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  245. package/lib/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  246. package/lib/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  247. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  248. package/lib/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -73
  249. package/lib/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  250. package/lib/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -78
  251. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  252. package/lib/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -42
  253. package/lib/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  254. package/lib/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -43
  255. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  256. package/lib/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -29
  257. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  258. package/lib/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -68
  259. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  260. package/lib/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -74
  261. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -640
  262. package/lib/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  263. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -452
  264. package/lib/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  265. package/lib/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  266. package/lib/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -82
  267. package/lib/runtime/views/assemblys/error-render.vue.js +0 -22
  268. package/lib/runtime/views/assemblys/error-render.vue2.js +0 -3
  269. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  270. package/lib/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  271. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  272. package/lib/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  273. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  274. package/lib/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -59
  275. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  276. package/lib/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  277. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  278. package/lib/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  279. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  280. package/lib/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  281. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  282. package/lib/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  283. package/lib/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  284. package/lib/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -133
  285. package/lib/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  286. package/lib/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  287. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  288. package/lib/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  289. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  290. package/lib/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  291. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  292. package/lib/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -174
  293. package/lib/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  294. package/lib/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  295. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  296. package/lib/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  297. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  298. package/lib/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  299. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  300. package/lib/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  301. package/lib/runtime/views/assemblys/object-render.vue.js +0 -142
  302. package/lib/runtime/views/assemblys/object-render.vue2.js +0 -3
  303. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  304. package/lib/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  305. package/lib/runtime/views/super-page.vue.js +0 -479
  306. package/lib/runtime/views/super-page.vue2.js +0 -3
  307. package/lib/src/assets/chart-themes/theme1.js +0 -7
  308. package/lib/src/assets/chart-themes/theme2.js +0 -7
  309. package/lib/src/assets/chart-themes/theme3.js +0 -7
  310. package/lib/src/utils/api/api-util.d.ts +0 -11
  311. package/lib/src/utils/api/api-util.js +0 -128
  312. package/lib/src/utils/charts/chart-util.js +0 -15
  313. package/lib/src/utils/common-util.d.ts +0 -11
  314. package/lib/src/utils/common-util.js +0 -81
  315. package/lib/src/utils/events/event-util.js +0 -525
  316. package/lib/src/utils/events/standard-event.js +0 -1623
  317. package/lib/src/utils/events/validator-util.d.ts +0 -4
  318. package/lib/src/utils/events/validator-util.js +0 -389
  319. package/lib/src/utils/global-refs.js +0 -65
  320. package/lib/src/utils/interfaces/page-design-types.js +0 -9
  321. package/lib/src/utils/page-helper-util.d.ts +0 -87
  322. package/lib/src/utils/page-helper-util.js +0 -503
  323. package/lib/src/utils/page-init-util.js +0 -200
  324. package/lib/src/utils/store-util.js +0 -17
  325. package/lib/src/utils/store.js +0 -3
  326. package/lib/src/utils/table-utils.js +0 -23
  327. package/lib/super-page-dialog/index.js +0 -3
  328. package/lib/super-page-dialog/super-page-dialog.vue.js +0 -73
  329. package/lib/super-page-dialog/super-page-dialog.vue2.js +0 -3
  330. package/lib/wf-editor/index.js +0 -3
  331. package/lib/wf-editor/wf-editor.css +0 -4
  332. package/lib/wf-editor/wf-editor.vue.js +0 -15
  333. package/src/assets/base.css +0 -86
  334. package/src/assets/chart-themes/theme1.ts +0 -6
  335. package/src/assets/chart-themes/theme2.ts +0 -6
  336. package/src/assets/chart-themes/theme3.ts +0 -6
  337. package/src/assets/images/button/button-group.png +0 -0
  338. package/src/assets/images/button/button.png +0 -0
  339. package/src/assets/images/chart/chart-column.png +0 -0
  340. package/src/assets/images/chart/chart-gauge.png +0 -0
  341. package/src/assets/images/chart/chart-pie.png +0 -0
  342. package/src/assets/images/chart/chart-radar.png +0 -0
  343. package/src/assets/images/chart/chart-scatter.png +0 -0
  344. package/src/assets/images/container/container-card.png +0 -0
  345. package/src/assets/images/container/container-collapse.png +0 -0
  346. package/src/assets/images/container/container-container.png +0 -0
  347. package/src/assets/images/container/container-flex.png +0 -0
  348. package/src/assets/images/container/container-form.png +0 -0
  349. package/src/assets/images/container/container-iframe.png +0 -0
  350. package/src/assets/images/container/container-normal.png +0 -0
  351. package/src/assets/images/container/container-tabs.png +0 -0
  352. package/src/assets/images/container/container-tools.png +0 -0
  353. package/src/assets/images/data/data-process.png +0 -0
  354. package/src/assets/images/data/data-step.png +0 -0
  355. package/src/assets/images/data/data-table-column.png +0 -0
  356. package/src/assets/images/data/data-table.png +0 -0
  357. package/src/assets/images/data/data-timeline.png +0 -0
  358. package/src/assets/images/data/data-tree.png +0 -0
  359. package/src/assets/images/form/form-cascader.png +0 -0
  360. package/src/assets/images/form/form-check.png +0 -0
  361. package/src/assets/images/form/form-color.png +0 -0
  362. package/src/assets/images/form/form-count.png +0 -0
  363. package/src/assets/images/form/form-custom.png +0 -0
  364. package/src/assets/images/form/form-date.png +0 -0
  365. package/src/assets/images/form/form-dept.png +0 -0
  366. package/src/assets/images/form/form-divider.png +0 -0
  367. package/src/assets/images/form/form-file.png +0 -0
  368. package/src/assets/images/form/form-image-upload.png +0 -0
  369. package/src/assets/images/form/form-img.png +0 -0
  370. package/src/assets/images/form/form-input.png +0 -0
  371. package/src/assets/images/form/form-label.png +0 -0
  372. package/src/assets/images/form/form-link.png +0 -0
  373. package/src/assets/images/form/form-radio.png +0 -0
  374. package/src/assets/images/form/form-scan.png +0 -0
  375. package/src/assets/images/form/form-score.png +0 -0
  376. package/src/assets/images/form/form-select.png +0 -0
  377. package/src/assets/images/form/form-slider.png +0 -0
  378. package/src/assets/images/form/form-space.png +0 -0
  379. package/src/assets/images/form/form-switch.png +0 -0
  380. package/src/assets/images/form/form-text.png +0 -0
  381. package/src/assets/images/form/form-textarea.png +0 -0
  382. package/src/assets/images/form/form-transfer.png +0 -0
  383. package/src/assets/images/form/form-zoom.png +0 -0
  384. package/src/assets/images/group-button.png +0 -0
  385. package/src/assets/images/group-chart.png +0 -0
  386. package/src/assets/images/group-container.png +0 -0
  387. package/src/assets/images/group-data.png +0 -0
  388. package/src/assets/images/group-form.png +0 -0
  389. package/src/assets/images/group-workflow.png +0 -0
  390. package/src/assets/images/workflow/workflow-button.png +0 -0
  391. package/src/assets/images/workflow/workflow-history-texts.png +0 -0
  392. package/src/assets/images/workflow/workflow-history.png +0 -0
  393. package/src/assets/images/workflow/workflow-imagehistory.png +0 -0
  394. package/src/assets/images/workflow/workflow-texthistory .png +0 -0
  395. package/src/assets/logo.svg +0 -1
  396. package/src/assets/main.css +0 -1
  397. package/src/i18n/langs/cn.js +0 -52
  398. package/src/i18n/langs/en.js +0 -52
  399. package/src/stores/counter.ts +0 -12
  400. package/src/utils/api/api-util.ts +0 -176
  401. package/src/utils/charts/chart-util.ts +0 -41
  402. package/src/utils/common-util.ts +0 -96
  403. package/src/utils/container-style-util.ts +0 -237
  404. package/src/utils/eventBus.ts +0 -14
  405. package/src/utils/events/event-util.ts +0 -790
  406. package/src/utils/events/jump-page-util.ts +0 -0
  407. package/src/utils/events/standard-event.ts +0 -2075
  408. package/src/utils/events/validator-util.ts +0 -474
  409. package/src/utils/global-refs.ts +0 -160
  410. package/src/utils/interfaces/page-design-types.ts +0 -259
  411. package/src/utils/page-helper-util.ts +0 -850
  412. package/src/utils/page-init-util.ts +0 -291
  413. package/src/utils/page-permission-util.ts +0 -521
  414. package/src/utils/store-util.ts +0 -41
  415. package/src/utils/store.ts +0 -3
  416. package/src/utils/table-utils.ts +0 -31
  417. /package/{lib/src → dist/es/components/runtime}/utils/store-util.d.ts +0 -0
  418. /package/{lib/src → dist/es/components/runtime}/utils/store.d.ts +0 -0
  419. /package/{lib → dist/es}/favicon.ico +0 -0
@@ -0,0 +1,971 @@
1
+ import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath as o, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
2
+ import c from "agilebuilder-ui/src/utils/request";
3
+ import { getI18n as u } from "agilebuilder-ui/src/utils/util";
4
+ import { ElMessage as l, ElMessageBox as p } from "element-plus";
5
+ import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
6
+ import { getComponentRef as b } from "../global-refs.js";
7
+ import C from "../eventBus.js";
8
+ import T from "axios";
9
+ import { handleEvent as w, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
10
+ import { setStoreInfo as k } from "../store-util.js";
11
+ import { getPermissionCodes as P, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
12
+ import { updateChartDatasources as S, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
13
+ import A from "./print-label.js";
14
+ import { getTableNameByTableUuid as x } from "../table-utils.js";
15
+ import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
16
+ import { functions as E } from "../api/page-expose-util.js";
17
+ import { usePageContextStore as _ } from "../page-store.js";
18
+ const j = { save: function(e2) {
19
+ return B(e2, false);
20
+ }, saveList: function(e2) {
21
+ return B(e2, true);
22
+ }, exportForm: function(e2) {
23
+ const t2 = e2.pageContext.code + "_";
24
+ C.$emit(t2 + "export-form-report", e2);
25
+ }, exportPDF: function(e2) {
26
+ const t2 = e2.pageContext.code + "_";
27
+ C.$emit(t2 + "export-pdf-report", e2);
28
+ }, submit: function(e2) {
29
+ return Q(e2, false, "submit", "/dsc/commons/submits");
30
+ }, submitList: function(e2) {
31
+ return Q(e2, true, "submit", "/dsc/commons/batch-submits");
32
+ }, agree: function(e2) {
33
+ return Q(e2, false, "agree", "/dsc/commons/approves");
34
+ }, agreeList: function(e2) {
35
+ return Q(e2, true, "agree", "/dsc/commons/batch-approves");
36
+ }, disagree: function(e2) {
37
+ return Q(e2, false, "disagree", "/dsc/commons/refuses");
38
+ }, disagreeList: function(e2) {
39
+ return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
40
+ }, back: function(e2) {
41
+ const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
42
+ J(t2, e2.configureObj, s2, n2);
43
+ }, delete: function(e2) {
44
+ return function(e3) {
45
+ return new Promise((s2, a2) => {
46
+ const i2 = e3.ids;
47
+ if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
48
+ p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
49
+ var _a;
50
+ const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = x(r2, m2);
51
+ let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
52
+ g2 = o(g2, p2, d2, r2.isTest);
53
+ const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = P(u2, r2), y2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
54
+ r2.beanName && (y2.beanName = r2.beanName);
55
+ const h2 = u2.props.deleteLogicSetting;
56
+ h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
57
+ const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
58
+ k2 && (y2.logSettingText = k2.join(""));
59
+ const R2 = u2.props.base.isSafeDelete;
60
+ R2 && (y2.isSafeDelete = R2), c.delete(g2, { data: y2 }).then((e4) => {
61
+ const t2 = b(r2, m2);
62
+ t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
63
+ }).catch((e4) => {
64
+ a2(e4);
65
+ });
66
+ }).catch(() => {
67
+ a2();
68
+ });
69
+ });
70
+ }(e2);
71
+ }, downloadTemplate: function(e2) {
72
+ !function(e3) {
73
+ var _a;
74
+ const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, i2 = a(o2.templateFiles, t2, s2);
75
+ let r2, c2;
76
+ i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
77
+ const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
78
+ let f2 = "?1=1";
79
+ r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? f2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? f2 += "&showName=" + encodeURI(p2) : t2.label && (f2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
80
+ const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
81
+ g2 && (f2 += "&logSettingText=" + g2.join(""));
82
+ u2 && (f2 += "&systemCode=" + u2);
83
+ const b2 = e3.listCode;
84
+ b2 && (f2 += "&listCode=" + b2);
85
+ t2.beanName && (f2 += "&beanName=" + t2.beanName);
86
+ const C2 = P(s2, t2);
87
+ C2 && (f2 += "&functionCode=" + C2);
88
+ t2.tableName && (f2 += "&tableName=" + t2.tableName);
89
+ t2.code && (f2 += "&pageCode=" + t2.code);
90
+ t2.version && (f2 += "&pageVersion=" + t2.version);
91
+ const T2 = d();
92
+ T2 && (f2 += "&JWT=" + T2);
93
+ const w2 = "_RUN_CURRENT_ROLE", y2 = m(w2);
94
+ y2 && (f2 += "&" + w2 + "=" + y2);
95
+ if (o2) {
96
+ f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
97
+ }
98
+ const h2 = n(l2, t2.isTest);
99
+ window.open(h2 + "/dsc/commons/download-files" + f2);
100
+ }(e2);
101
+ }, import: function(e2) {
102
+ const t2 = e2.pageContext.code + "_";
103
+ C.$emit(t2 + "import-file", e2);
104
+ }, export: function(e2) {
105
+ return function(e3) {
106
+ return new Promise((t2, s2) => {
107
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
108
+ const n2 = e3.pageContext, o2 = e3.configureObj, a2 = o2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
109
+ r2 && r2.length > 0 && (c2.data = r2);
110
+ let u2 = n2.label;
111
+ u2 || (u2 = n2.code);
112
+ let l2 = false;
113
+ l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
114
+ const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
115
+ f2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", f2.watermarkContent = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
116
+ });
117
+ }(e2);
118
+ }, search: function(e2) {
119
+ const t2 = e2.pageContext, s2 = e2.tableUuid;
120
+ b(t2, s2).refresh();
121
+ }, showSearch: function(e2) {
122
+ const t2 = e2.pageContext, s2 = e2.tableUuid;
123
+ b(t2, s2).showMobileSearch();
124
+ }, workflowSave: function(e2) {
125
+ return C.$emit("clearTableAllStartEditing"), async function(e3) {
126
+ return new Promise((t2, s2) => {
127
+ const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
128
+ let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons";
129
+ if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
130
+ const m2 = ee(e3);
131
+ let f2;
132
+ f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
133
+ let n2 = true;
134
+ s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
135
+ }).catch((e4) => {
136
+ s2(e4);
137
+ });
138
+ });
139
+ }(e2);
140
+ }, workflowStart: function(e2) {
141
+ return C.$emit("clearTableAllStartEditing"), async function(e3) {
142
+ return new Promise((t2, s2) => {
143
+ const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
144
+ let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
145
+ if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
146
+ const m2 = ee(e3);
147
+ let f2;
148
+ i2.workflow_id || i2.WORKFLOW_ID ? (d2 = n(p2, a2.isTest) + "/dsc/workflow-commons", d2 = o(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), f2.then((s3) => {
149
+ let n2 = true;
150
+ s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), C.$emit("clearTableAllEndEditing"), t2(true);
151
+ }).catch((e4) => {
152
+ s2(e4);
153
+ });
154
+ });
155
+ }(e2);
156
+ }, submitProcess: function(e2) {
157
+ return C.$emit("clearTableAllStartEditing"), function(e3) {
158
+ return new Promise((t2, s2) => {
159
+ const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
160
+ let p2 = n(r2, a2.isTest) + "/dsc/workflow-commons/submit";
161
+ if (p2 = o(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
162
+ const d2 = ee(e3), m2 = c.post(p2, d2);
163
+ m2 && m2.then((s3) => {
164
+ let n2 = true;
165
+ s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
166
+ }).catch((e4) => {
167
+ s2(e4);
168
+ });
169
+ });
170
+ }(e2);
171
+ }, submitTask: function(e2) {
172
+ return se(e2, "SUBMIT");
173
+ }, approve: function(e2) {
174
+ return se(e2, "APPROVE");
175
+ }, refuse: function(e2) {
176
+ return se(e2, "REFUSE");
177
+ }, readed: function(e2) {
178
+ return se(e2, "READED");
179
+ }, agreement: function(e2) {
180
+ return se(e2, "AGREEMENT");
181
+ }, oppose: function(e2) {
182
+ return se(e2, "OPPOSE");
183
+ }, kiken: function(e2) {
184
+ return se(e2, "KIKEN");
185
+ }, assign: function(e2) {
186
+ return function(e3) {
187
+ const t2 = e3.pageContext, s2 = t2.code + "_";
188
+ C.$emit(s2 + "assign-task", e3);
189
+ }(e2);
190
+ }, copyTask: function(e2) {
191
+ return function(e3) {
192
+ const t2 = e3.pageContext, s2 = t2.code + "_";
193
+ C.$emit(s2 + "copy-task", e3);
194
+ }(e2);
195
+ }, addSigner: function(e2) {
196
+ return function(e3) {
197
+ const t2 = e3.pageContext, s2 = t2.code + "_";
198
+ C.$emit(s2 + "add-signer", e3);
199
+ }(e2);
200
+ }, drawTask: function(e2) {
201
+ return function(e3) {
202
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
203
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
204
+ }(e2);
205
+ }, abandonReceive: function(e2) {
206
+ return function(e3) {
207
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
208
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
209
+ }(e2);
210
+ }, returnToPreviousTask: function(e2) {
211
+ return function(e3) {
212
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = ee(e3);
213
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
214
+ }(e2);
215
+ }, endInstance: function(e2) {
216
+ return function(e3) {
217
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
218
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
219
+ }(e2);
220
+ }, returnTaskTo: function(e2) {
221
+ return function(e3) {
222
+ const t2 = e3.pageContext, s2 = t2.code + "_";
223
+ C.$emit(s2 + "choose-return-node", e3);
224
+ }(e2);
225
+ }, removeSigner: function(e2) {
226
+ return function(e3) {
227
+ const t2 = e3.pageContext, s2 = t2.code + "_";
228
+ C.$emit(s2 + "remove-signer", e3);
229
+ }(e2);
230
+ }, retrieveTask: function(e2) {
231
+ return function(e3) {
232
+ const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
233
+ return ue(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
234
+ }(e2);
235
+ }, viewDetail: function(e2) {
236
+ }, lineEditCreate: function(e2) {
237
+ return function(e3) {
238
+ const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
239
+ n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
240
+ }(e2);
241
+ }, printLabel: function(e2) {
242
+ return function(e3) {
243
+ let t2 = null;
244
+ try {
245
+ if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
246
+ } catch (t3) {
247
+ console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
248
+ }
249
+ A.printLabel(e3, t2);
250
+ }(e2);
251
+ }, queryCharts: function(e2) {
252
+ D(e2);
253
+ }, resetCharts: function(t2) {
254
+ var _a, _b;
255
+ const s2 = t2.pageContext;
256
+ Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, D(t2);
257
+ }, exportCharts: function(e2) {
258
+ !function(e3) {
259
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
260
+ const t2 = e3.pageContext, s2 = t2.allChartUuids;
261
+ if (!s2 || 0 == s2.length) return;
262
+ const o2 = e3.configureObj;
263
+ let a2 = null;
264
+ o2 && o2.runtime && (a2 = o2.runtime.props);
265
+ const i2 = a2 ? a2.state : void 0;
266
+ a2 && (a2.state = "disabled");
267
+ const r2 = [];
268
+ for (let e4 = 0; e4 < s2.length; e4++) {
269
+ const n2 = s2[e4], o3 = b(t2, n2);
270
+ if (o3) {
271
+ const e5 = o3.getConfigure();
272
+ e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
273
+ }
274
+ }
275
+ if (!r2 || 0 == r2.length) return;
276
+ let c2, u2 = t2.label;
277
+ u2 || (u2 = t2.code);
278
+ c2 = u2;
279
+ const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ie(t2);
280
+ l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
281
+ const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
282
+ W();
283
+ T.post(m2, l2, { responseType: "blob" }).then((e4) => {
284
+ const t3 = document.createElement("a");
285
+ t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
286
+ }).finally(() => {
287
+ a2 && (a2.state = i2);
288
+ });
289
+ }(e2);
290
+ }, saveQueryCharts: function(e2) {
291
+ !function(e3) {
292
+ const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
293
+ C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
294
+ }(e2);
295
+ } };
296
+ function D(e2) {
297
+ const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
298
+ if (!s2 || 0 == s2.length) return;
299
+ const n2 = e2.configureObj;
300
+ let o2 = null;
301
+ n2 && n2.runtime && (o2 = n2.runtime.props);
302
+ const a2 = o2 ? o2.state : void 0;
303
+ o2 && (o2.state = "disabled"), S(t2, s2, void 0, e2.isInitChart).then(() => {
304
+ o2 && (o2.state = a2);
305
+ }).catch(() => {
306
+ o2 && (o2.state = a2);
307
+ });
308
+ }
309
+ function L(e2, s2, o2, a2) {
310
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
311
+ e2.clickUuid = s2.uuid;
312
+ const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
313
+ u2 && (C2.logSettingText = u2.join(""));
314
+ const w2 = ie(e2);
315
+ let y2;
316
+ C2.additionalParamMap = w2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", y2 = a2 ? function(e3, t2, s3, o3) {
317
+ return new Promise((a3, i3) => {
318
+ const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
319
+ W();
320
+ T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
321
+ const s4 = new Blob([t3.data]), n2 = document.createElement("a");
322
+ n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), a3(true);
323
+ }).catch((e4) => {
324
+ i3(e4);
325
+ });
326
+ });
327
+ }(r2, f2, C2, e2.isTest) : function(e3, t2, s3, o3) {
328
+ return new Promise((a3, i3) => {
329
+ const r3 = n(t2, o3) + "/dsc/commons/export-reports";
330
+ W();
331
+ T.post(r3, s3, { responseType: "blob" }).then((t3) => {
332
+ const s4 = new Blob([t3.data]);
333
+ let n2 = "报告.xlsx";
334
+ e3 && (n2 = e3);
335
+ const o4 = document.createElement("a");
336
+ o4.download = n2, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4), a3(true);
337
+ }).catch((e4) => {
338
+ i3(e4);
339
+ });
340
+ });
341
+ }(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
342
+ h(e2, s2);
343
+ }).catch((e3) => {
344
+ });
345
+ }
346
+ function W() {
347
+ T.defaults.headers.common.Authorization = d();
348
+ const e2 = f();
349
+ if (e2) {
350
+ const t2 = "_RUN_CURRENT_ROLE";
351
+ T.defaults.headers.common[t2] = e2;
352
+ }
353
+ }
354
+ function B(e2, t2) {
355
+ return new Promise((s2, n2) => {
356
+ const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
357
+ let u2 = false;
358
+ c2 && "noOperation" === c2 && (u2 = true);
359
+ const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
360
+ l2 ? l2.then((e3) => {
361
+ q(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
362
+ }).catch((e3) => {
363
+ n2(e3);
364
+ }) : n2("保存时request不存在");
365
+ });
366
+ }
367
+ function V(e2, n2, o2, a2, i2, r2, c2) {
368
+ var _a;
369
+ const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
370
+ let m2 = c2;
371
+ m2 || (m2 = e2.entity.data);
372
+ const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
373
+ r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
374
+ const g2 = n2.props.base.conversionCodes;
375
+ g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
376
+ const b2 = Te(n2);
377
+ b2 && (f2.autoSetValueData = b2);
378
+ const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
379
+ C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
380
+ const T2 = e2.beanName;
381
+ T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
382
+ const w2 = ie(e2);
383
+ return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
384
+ }
385
+ function F(e2, t2, s2, a2, i2, r2, u2, l2) {
386
+ const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
387
+ return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
388
+ const u3 = n(t3, r3);
389
+ let l3, p3 = u3 + a3;
390
+ p3 = o(p3, e3, t3, r3), l3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
391
+ return l3;
392
+ }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
393
+ }
394
+ function $(e2, t2, s2, n2, o2, a2) {
395
+ return F(e2, t2, s2, n2, o2, a2, null, null);
396
+ }
397
+ function q(t2, s2, n2, o2, a2) {
398
+ const i2 = H(t2, s2, a2);
399
+ if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
400
+ let a3 = s3.props.base.successOperation;
401
+ const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
402
+ a3 || z.includes(s3.name) || (a3 = "refresh");
403
+ if ("refresh" === a3) if (r2) {
404
+ b(t3, r2).refresh();
405
+ } else console.error("tableUuid is empty");
406
+ else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
407
+ const o4 = e(t3.entity.page);
408
+ let a4 = n3;
409
+ a4 || (a4 = {}), Object.assign(o4, a4), J(t3, s3, o4, i3);
410
+ }
411
+ o3 && l({ message: u().t(o3), type: "success", showClose: true });
412
+ }(t2, s2, n2, o2), t2.canClick = true;
413
+ else if (i2 && "form" === i2) !function(e2, t3, s3, n3) {
414
+ if (s3) {
415
+ const n4 = s3;
416
+ let o3;
417
+ o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
418
+ G(e2, t3, { ...o3, ...e2.entity.page });
419
+ } else {
420
+ const s4 = t3.props.base.successOperation;
421
+ if (s4 && null !== s4) {
422
+ G(e2, t3, { ...e2.entity.page });
423
+ } else e2.canClick = true;
424
+ }
425
+ n3 && l({ message: u().t(n3), type: "success", showClose: true });
426
+ }(t2, s2, n2, o2);
427
+ else {
428
+ const e2 = s2.props.base.successOperation;
429
+ e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
430
+ }
431
+ }
432
+ function H(e2, t2, s2) {
433
+ let n2;
434
+ return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
435
+ }
436
+ function G(e2, t2, s2) {
437
+ const n2 = t2.props.base.successOperation;
438
+ if (!n2 || null === n2) return;
439
+ const o2 = t2.props.base.isNeedValueMapping;
440
+ "noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? ge(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
441
+ }
442
+ function J(e2, t2, s2, n2) {
443
+ const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
444
+ if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
445
+ else {
446
+ const a2 = e2.tableName, i2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
447
+ C.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
448
+ }
449
+ }
450
+ function Y(e2, t2, s2, n2, o2) {
451
+ var _a;
452
+ o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
453
+ const a2 = e2.tableName;
454
+ !function(e3, t3, s3) {
455
+ if (e3 && null !== e3 && t3) {
456
+ let n3 = e3;
457
+ Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
458
+ const t4 = e4.source;
459
+ if (!t4) return;
460
+ const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = M(null, i2);
461
+ I(s3.entity, r2, a3);
462
+ });
463
+ }
464
+ }(s2, o2, e2), w(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
465
+ }
466
+ const z = ["dropdown"];
467
+ function K(e2, t2, s2, n2) {
468
+ var _a;
469
+ t2 && !t2.props.base && (t2.props.base = {});
470
+ let o2 = n2;
471
+ o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
472
+ const a2 = H(e2, t2);
473
+ if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
474
+ if (a2 && "list" === a2) {
475
+ const s3 = y(e2, t2);
476
+ if (s3) {
477
+ b(e2, s3).refresh();
478
+ } else console.error("tableUuid is empty");
479
+ } else if (a2 && "form" === a2) {
480
+ const t3 = e2.entity.data;
481
+ ge(e2, t3.ID ? t3.ID : t3.id);
482
+ }
483
+ }
484
+ }
485
+ function Q(e2, t2, s2, a2) {
486
+ return new Promise((r2, l2) => {
487
+ const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
488
+ let T2 = false;
489
+ C2 && "noOperation" === C2 && (T2 = true);
490
+ let w2 = d2.tableName;
491
+ if (t2) {
492
+ const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
493
+ w2 = x(d2, t3);
494
+ }
495
+ const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
496
+ return new Promise((g3, b3) => {
497
+ const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
498
+ p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
499
+ const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
500
+ p2.tableName = f3;
501
+ let d4 = n(u2, e3.isTest) + s3;
502
+ d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
503
+ g3(e4);
504
+ }).catch((e4) => {
505
+ b3(e4);
506
+ });
507
+ }).catch(() => {
508
+ b3("点击了取消按钮");
509
+ });
510
+ });
511
+ }(d2, m2, a2, T2, f2, g2, s2, b2, w2);
512
+ y2 ? y2.then((e3) => {
513
+ q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
514
+ }).catch((e3) => {
515
+ l2(e3);
516
+ }) : l2("request不存在");
517
+ });
518
+ }
519
+ function X(e2, s2) {
520
+ var _a;
521
+ const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), f2 = new FormData();
522
+ f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
523
+ const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
524
+ g2 && f2.append("importDuplicateRule", g2);
525
+ const b2 = a2.judgeHeavyList;
526
+ b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
527
+ const C2 = Te(i2);
528
+ C2 && f2.append("autoSetValueData", C2);
529
+ const T2 = a2.formNoRuleCode;
530
+ T2 && f2.append("formNoRuleCode", T2);
531
+ const w2 = e2.listCode;
532
+ w2 && f2.append("listCode", w2);
533
+ let y2 = false;
534
+ y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
535
+ const k2 = t(a2);
536
+ null != k2 && f2.append("isWorkflowEntity", k2 + "");
537
+ const R2 = P(i2, a2);
538
+ R2 && f2.append("functionCode", R2);
539
+ const M2 = ie(a2);
540
+ f2.append("additionalParamMapStr", JSON.stringify(M2));
541
+ const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
542
+ f2.append("isPermission", S2 + "");
543
+ const N2 = a2.systemCode;
544
+ N2 && f2.append("systemCode", N2);
545
+ const v2 = a2.backendUrl;
546
+ let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
547
+ I2 = o(I2, N2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
548
+ if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
549
+ else {
550
+ let t2 = false;
551
+ e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
552
+ }
553
+ }).catch((e3) => {
554
+ });
555
+ }
556
+ function Z(e2, t2) {
557
+ const s2 = e2.props.base;
558
+ if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
559
+ if ("one" === s2.conditionsForExecution) {
560
+ if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
561
+ } else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
562
+ }
563
+ return true;
564
+ }
565
+ function ee(e2) {
566
+ var _a;
567
+ const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
568
+ let r2 = P(n2, t2);
569
+ r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
570
+ const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
571
+ t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
572
+ const u2 = n2.props.base.conversionCodes;
573
+ u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
574
+ const l2 = Te(n2);
575
+ l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
576
+ const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
577
+ p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
578
+ const d2 = ie(t2);
579
+ c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
580
+ const m2 = n2.props.base.successOperation;
581
+ return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
582
+ }
583
+ function te(e2, t2, s2, n2, o2) {
584
+ const a2 = s2.code, i2 = s2.version;
585
+ let r2;
586
+ if (e2) {
587
+ t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
588
+ const s3 = ie(t3);
589
+ e3 && s3 && g(s3._t_ + "_id", e3);
590
+ }(e2.entity.id || e2.entity.ID, s2));
591
+ const o3 = e2.completeTaskResult;
592
+ if (o3) {
593
+ const e3 = o3.completeTaskTipType;
594
+ if (e3 && "MESSAGE" === e3) {
595
+ const e4 = o3.content;
596
+ return l({ showClose: true, type: "warning", message: e4 }), false;
597
+ }
598
+ }
599
+ if (e2.completeTaskParam) {
600
+ const t3 = e2.completeTaskParam;
601
+ r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3, s2.completeTaskParam.opinion = null;
602
+ }
603
+ s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
604
+ }
605
+ return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
606
+ }
607
+ async function se(e2, t2) {
608
+ const s2 = await ne(e2);
609
+ return new Promise((a2, i2) => {
610
+ var _a;
611
+ if (s2) {
612
+ const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
613
+ let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
614
+ if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
615
+ const g2 = ee(e2);
616
+ g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
617
+ c.post(f2, g2).then((s3) => {
618
+ let n2 = true;
619
+ s3 && (n2 = te(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
620
+ }).catch((e3) => {
621
+ i2(e3);
622
+ });
623
+ } else a2(true);
624
+ });
625
+ }
626
+ function ne(e2) {
627
+ return new Promise((t2, s2) => {
628
+ var _a, _b, _c, _d;
629
+ const n2 = e2.configureObj;
630
+ if (n2) {
631
+ let s3 = false;
632
+ if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
633
+ const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
634
+ s3 = N(t3, o2);
635
+ }
636
+ true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
637
+ t2(e3);
638
+ }).catch(() => {
639
+ t2(false);
640
+ }) : t2(true);
641
+ } else t2(true);
642
+ });
643
+ }
644
+ function oe(e2, t2) {
645
+ if (t2) {
646
+ const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
647
+ c2.assigneeId = r2, ue(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
648
+ h(s2, o2);
649
+ });
650
+ }
651
+ }
652
+ function ae(e2) {
653
+ const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ie(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
654
+ return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
655
+ }
656
+ function ie(t2) {
657
+ if (t2.entity) {
658
+ let s2 = e(t2.entity.page);
659
+ s2 || (s2 = {});
660
+ const n2 = t2.entity.request;
661
+ return n2 && Object.assign(s2, n2), s2;
662
+ }
663
+ }
664
+ function re(e2, t2) {
665
+ if (t2) {
666
+ const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
667
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
668
+ if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
669
+ const d2 = ae(e2);
670
+ d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
671
+ const m2 = c.post(p2, d2);
672
+ m2 && m2.then((e3) => {
673
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2, a2, e3, null, false), h(s2, a2);
674
+ });
675
+ }
676
+ }
677
+ async function ce(e2, t2) {
678
+ if (t2) {
679
+ const s2 = await function(e3) {
680
+ return new Promise((t3, s3) => {
681
+ var _a, _b, _c, _d;
682
+ const n2 = e3.configureObj;
683
+ if (n2) {
684
+ let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
685
+ if (void 0 === s4 || true === s4) {
686
+ s4 = true;
687
+ const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
688
+ s4 = N(t4, o2);
689
+ }
690
+ true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
691
+ t3(e4);
692
+ }).catch(() => {
693
+ t3(false);
694
+ }) : t3(true);
695
+ } else t3(true);
696
+ });
697
+ }(e2);
698
+ if (s2) {
699
+ const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
700
+ let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
701
+ if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
702
+ const m2 = ae(e2);
703
+ m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
704
+ const f2 = c.post(d2, m2);
705
+ f2 && f2.then((e3) => {
706
+ l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(a2, i2);
707
+ });
708
+ }
709
+ }
710
+ }
711
+ async function ue(e2, t2, s2, n2) {
712
+ const a2 = await ne(e2);
713
+ return new Promise((i2, r2) => {
714
+ var _a;
715
+ if (a2) {
716
+ const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
717
+ if (p2.completeTaskParam) {
718
+ const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
719
+ t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
720
+ }
721
+ if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
722
+ const f2 = c.post(s2, t2);
723
+ f2 && f2.then((t3) => {
724
+ let s3 = true;
725
+ t3 && (s3 = te(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
726
+ }).catch((e3) => {
727
+ r2(e3);
728
+ });
729
+ } else i2(true);
730
+ });
731
+ }
732
+ function le(e2) {
733
+ const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
734
+ let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
735
+ if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
736
+ const p2 = t2.code, d2 = ie(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
737
+ return c.post(r2, m2);
738
+ }
739
+ function pe(e2, t2) {
740
+ const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
741
+ t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ue(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
742
+ h(s2, o2);
743
+ });
744
+ }
745
+ function de(e2) {
746
+ const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
747
+ let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
748
+ const r2 = ee(e2);
749
+ if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
750
+ l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
751
+ }
752
+ function me(e2, t2) {
753
+ if (t2) {
754
+ const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
755
+ let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
756
+ if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
757
+ const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ee(e2);
758
+ m2.ids = d2;
759
+ const f2 = c.post(p2, m2);
760
+ f2 && f2.then((e3) => {
761
+ q(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
762
+ });
763
+ }
764
+ }
765
+ function fe(e2, t2, s2, n2, o2) {
766
+ let a2 = false;
767
+ return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
768
+ if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
769
+ if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
770
+ return false;
771
+ }(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
772
+ if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
773
+ return false;
774
+ }(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
775
+ if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
776
+ return false;
777
+ }(t2) : "submitTask" === e2 ? a2 = function(e3) {
778
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
779
+ return false;
780
+ }(t2) : "drawTask" === e2 ? a2 = function(e3) {
781
+ if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
782
+ return false;
783
+ }(t2) : "abandonReceive" === e2 ? a2 = function(e3) {
784
+ if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
785
+ return false;
786
+ }(t2) : "approve" === e2 || "refuse" === e2 ? a2 = function(e3) {
787
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
788
+ return false;
789
+ }(t2) : "readed" === e2 ? a2 = function(e3) {
790
+ if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
791
+ return false;
792
+ }(t2) : "assign" === e2 ? a2 = function(e3) {
793
+ if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
794
+ return false;
795
+ }(t2) : "copyTask" === e2 ? a2 = function(e3, t3) {
796
+ let s3 = false;
797
+ e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
798
+ t3 && (t3.props.base.state = s3 ? "" : "hidden");
799
+ return true;
800
+ }(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
801
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
802
+ return false;
803
+ }(t2) : "removeSigner" === e2 ? a2 = function(e3) {
804
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
805
+ return false;
806
+ }(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
807
+ if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
808
+ if ("COMPLETED" !== e4.active) return false;
809
+ if ("TYPE_READ" === e4.processingMode) return false;
810
+ if (!e4.showButtonGetBack) return false;
811
+ return true;
812
+ }(e3)) return true;
813
+ return false;
814
+ }(t2) : "agreement" === e2 || "oppose" === e2 ? a2 = function(e3) {
815
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
816
+ return false;
817
+ }(t2) : "kiken" === e2 ? a2 = function(e3) {
818
+ if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
819
+ return false;
820
+ }(t2) : function(e3, t3) {
821
+ return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
822
+ const t4 = e4;
823
+ let s3 = true;
824
+ t4 && (s3 = t4.taskComplete);
825
+ return s3;
826
+ }(t3);
827
+ }(t2, s2) && (a2 = "returnToPreviousTask" !== e2 || function(e3) {
828
+ if (e3.rebuttable) return true;
829
+ return false;
830
+ }(t2))), a2;
831
+ }
832
+ function ge(e2, t2) {
833
+ e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, be(e2, t2).then((t3) => {
834
+ e2.isRefresh = true;
835
+ });
836
+ }
837
+ function be(e2, s2, o2) {
838
+ const a2 = e2.pageType;
839
+ if (a2 && "form" === a2) {
840
+ e2.canClick = false;
841
+ return t(e2) ? function(e3, t2, s3) {
842
+ return new Promise((o3, a3) => {
843
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
844
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
845
+ void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
846
+ const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
847
+ if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
848
+ const t3 = {};
849
+ e3.tableUuids.forEach((e4) => {
850
+ const s4 = r(u2, l2, e4);
851
+ t3[s4] = s4;
852
+ }), C2.listCodesMap = t3;
853
+ }
854
+ f2 && (C2.ids = Ce(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
855
+ const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
856
+ y2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
857
+ e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
858
+ const s4 = e3.pageType;
859
+ s4 && "form" === s4 && function(e4) {
860
+ (function(e5) {
861
+ const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
862
+ if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
863
+ const n2 = s5[e6].name;
864
+ if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
865
+ const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
866
+ if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: true }]);
867
+ else {
868
+ let e7 = t4.get(i3);
869
+ e7 || (e7 = []), e7.push(a4), t4.set(i3, e7);
870
+ }
871
+ } else t4.set(n2, s5[e6]);
872
+ }
873
+ e5.fieldPermissionMap = t4;
874
+ })(e4), function(e5) {
875
+ const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
876
+ if (null != n2) {
877
+ Object.keys(n2).forEach((e6) => {
878
+ const o4 = n2[e6], a4 = t4.get(e6);
879
+ if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
880
+ else {
881
+ const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
882
+ void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
883
+ }
884
+ s5.set(e6, o4);
885
+ });
886
+ }
887
+ e5.actionPermissionMap = s5;
888
+ }(e4);
889
+ }(e3), e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
890
+ }).catch((t3) => {
891
+ e3.canClick = true, a3(t3);
892
+ });
893
+ });
894
+ }(e2, s2, o2) : function(e3, t2, s3) {
895
+ return new Promise((o3, a3) => {
896
+ const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
897
+ let d2 = t2 || null, f2 = t2 ? [t2] : null;
898
+ void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
899
+ const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
900
+ if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = Ce(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
901
+ const t3 = {};
902
+ e3.tableUuids.forEach((e4) => {
903
+ const s4 = r(u2, l2, e4);
904
+ t3[s4] = s4;
905
+ }), T2.listCodesMap = t3;
906
+ }
907
+ e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
908
+ const y2 = C2 + "/dsc/commons/gets", h2 = _();
909
+ h2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
910
+ t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
911
+ const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
912
+ e3.rules = a4, e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
913
+ }).catch((t3) => {
914
+ e3.canClick = true, a3(t3);
915
+ });
916
+ });
917
+ }(e2, s2, o2);
918
+ }
919
+ return new Promise((e3, t2) => {
920
+ e3(true);
921
+ });
922
+ }
923
+ function Ce(e2) {
924
+ return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
925
+ }
926
+ function Te(e2) {
927
+ const t2 = e2.props.setValueList;
928
+ if (t2) {
929
+ if (s(t2) && t2.length > 0) return JSON.stringify(t2);
930
+ if ("string" == typeof t2 && "[]" !== t2) return t2;
931
+ }
932
+ return null;
933
+ }
934
+ function we(e2, t2) {
935
+ const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
936
+ return c.post(a2, o2);
937
+ }
938
+ function ye(e2) {
939
+ const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
940
+ return c.get(s2);
941
+ }
942
+ function he(e2) {
943
+ const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
944
+ return c.delete(t2);
945
+ }
946
+ export {
947
+ q as dealAfterOperate,
948
+ te as dealCompleteTaskParam,
949
+ he as deleteChartCondition,
950
+ re as doAddSigner,
951
+ oe as doAssign,
952
+ ce as doCreateCopyTask,
953
+ X as doImportFinally,
954
+ me as doRemoveSigners,
955
+ pe as doReturnTaskTo,
956
+ L as exportFormReport,
957
+ ie as getAdditionalParamMap,
958
+ be as getFormData,
959
+ de as getRemoveSigner,
960
+ $ as getSaveFormRequest,
961
+ F as getSaveFormRequestWithRow,
962
+ le as getTaskInformitions,
963
+ fe as isVisibleWorkflowButton,
964
+ Z as judgeDataNumber,
965
+ ye as listChartConditions,
966
+ K as refreshFormOrListPage,
967
+ ge as refreshPage,
968
+ we as saveChartConditionBase,
969
+ j as standardEvents,
970
+ Y as updateValuesWhenCloseDialog
971
+ };