super-page-runtime 2.3.48-cdnTmp2 → 2.3.48-tmp1

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 (392) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +8 -0
  2. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  3. package/dist/es/components/runtime/utils/anchor-util.js +84 -0
  4. package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
  5. package/dist/es/components/runtime/utils/api/api-util.js +7 -0
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  7. package/dist/es/components/runtime/utils/assemblys-config.js +20 -0
  8. package/dist/es/components/runtime/utils/barcode-util.js +12 -0
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +168 -0
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +38 -0
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +82 -0
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +56 -0
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +47 -0
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +288 -0
  15. package/dist/es/components/runtime/utils/common-util.js +120 -0
  16. package/dist/es/components/runtime/utils/eventBus.js +8 -0
  17. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  18. package/dist/es/components/runtime/utils/events/event-util.js +447 -0
  19. package/dist/es/components/runtime/utils/events/print-label.js +100 -0
  20. package/dist/es/components/runtime/utils/events/standard-event.js +1226 -0
  21. package/dist/es/components/runtime/utils/events/validator-util.js +485 -0
  22. package/dist/es/components/runtime/utils/form/date-shortcuts.js +36 -0
  23. package/dist/es/components/runtime/utils/form/scan-util.js +93 -0
  24. package/dist/es/components/runtime/utils/global-refs.js +57 -0
  25. package/dist/es/components/runtime/utils/i18n-util.js +18 -0
  26. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +4 -0
  27. package/dist/es/components/runtime/utils/page-helper-util.js +391 -0
  28. package/dist/es/components/runtime/utils/page-init-util.js +297 -0
  29. package/dist/es/components/runtime/utils/{page-permission-util.mjs → page-permission-util.js} +21 -20
  30. package/dist/es/components/runtime/utils/page-store.js +53 -0
  31. package/dist/es/components/runtime/utils/store-util.js +13 -0
  32. package/dist/es/components/runtime/utils/table-utils.js +89 -0
  33. package/dist/es/components/runtime/utils/tree-utils.js +73 -0
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +4 -0
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +29 -0
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +7 -0
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +21 -0
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +41 -0
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +4 -0
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +6 -0
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +4 -0
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +21 -0
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +7 -0
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +53 -0
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +14 -0
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +4 -0
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +13 -0
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +4 -0
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +60 -0
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +4 -0
  52. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +7 -0
  53. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +64 -0
  54. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
  55. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +4 -0
  56. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +7 -0
  57. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +35 -0
  58. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +7 -0
  59. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +46 -0
  60. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +7 -0
  61. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +35 -0
  62. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +7 -0
  63. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +35 -0
  64. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +430 -0
  65. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +6 -0
  66. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +4 -0
  67. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +10 -0
  68. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +4 -0
  69. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +46 -0
  70. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +4 -0
  71. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +17 -0
  72. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +4 -0
  73. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +4 -0
  74. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +268 -0
  75. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  76. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +4 -0
  77. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +36 -0
  78. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +4 -0
  79. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
  80. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +4 -0
  81. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
  82. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +4 -0
  83. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +17 -0
  84. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +4 -0
  85. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
  86. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +4 -0
  87. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
  88. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +4 -0
  89. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
  90. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +4 -0
  91. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +19 -0
  92. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +4 -0
  93. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +7 -0
  94. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +35 -0
  95. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +4 -0
  96. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +21 -0
  97. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +7 -0
  98. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +27 -0
  99. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +7 -0
  100. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +29 -0
  101. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +7 -0
  102. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +81 -0
  103. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +4 -0
  104. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +25 -0
  105. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +4 -0
  106. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +25 -0
  107. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +4 -0
  108. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +46 -0
  109. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +7 -0
  110. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
  111. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +7 -0
  112. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +47 -0
  113. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  114. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +69 -0
  115. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +383 -0
  116. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +4 -0
  117. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +339 -0
  118. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +4 -0
  119. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +4 -0
  120. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +90 -0
  121. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +7 -0
  122. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
  123. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +5 -0
  124. package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +4 -0
  125. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +4 -0
  126. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +66 -0
  127. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +38 -0
  128. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +4 -0
  129. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +4 -0
  130. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +69 -0
  131. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +4 -0
  132. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
  133. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +4 -0
  134. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +55 -0
  135. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +4 -0
  136. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +24 -0
  137. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +4 -0
  138. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +115 -0
  139. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
  140. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +91 -0
  141. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +4 -0
  142. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +28 -0
  143. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +4 -0
  144. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +81 -0
  145. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +7 -0
  146. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +38 -0
  147. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +4 -0
  148. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +43 -0
  149. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +7 -0
  150. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +16 -0
  151. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +4 -0
  152. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +84 -0
  153. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +8 -0
  154. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
  155. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +7 -0
  156. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +156 -0
  157. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +4 -0
  158. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +16 -0
  159. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +4 -0
  160. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +36 -0
  161. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +4 -0
  162. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +44 -0
  163. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +7 -0
  164. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +28 -0
  165. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +83 -0
  166. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +4 -0
  167. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +166 -0
  168. package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +4 -0
  169. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +9 -0
  170. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +4 -0
  171. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  172. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
  173. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  174. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
  175. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
  176. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
  177. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +4 -0
  178. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +20 -0
  179. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +4 -0
  180. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +23 -0
  181. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +7 -0
  182. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +32 -0
  183. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +4 -0
  184. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +27 -0
  185. package/dist/es/components/runtime/views/home-chart.vue.js +47 -0
  186. package/dist/es/components/runtime/views/home-chart2.vue.js +4 -0
  187. package/dist/es/components/runtime/views/super-page-dialog.vue.js +30 -0
  188. package/dist/es/components/runtime/views/super-page-dialog3.vue.js +5 -0
  189. package/dist/es/components/runtime/views/super-page.vue.js +7 -0
  190. package/dist/es/components/runtime/views/super-page2.vue.js +311 -0
  191. package/dist/es/index.js +32 -0
  192. package/dist/es/style.css +1052 -1
  193. package/package.json +11 -13
  194. package/dist/es/_virtual/_plugin-vue_export-helper.mjs +0 -8
  195. package/dist/es/components/runtime/utils/ai-chat-util.mjs +0 -16
  196. package/dist/es/components/runtime/utils/anchor-util.mjs +0 -83
  197. package/dist/es/components/runtime/utils/api/api-util.mjs +0 -12
  198. package/dist/es/components/runtime/utils/api/page-expose-util.mjs +0 -196
  199. package/dist/es/components/runtime/utils/assemblys-config.mjs +0 -19
  200. package/dist/es/components/runtime/utils/barcode-util.mjs +0 -12
  201. package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +0 -169
  202. package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +0 -38
  203. package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +0 -83
  204. package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +0 -56
  205. package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +0 -47
  206. package/dist/es/components/runtime/utils/charts/chart-util.mjs +0 -285
  207. package/dist/es/components/runtime/utils/common-util.mjs +0 -116
  208. package/dist/es/components/runtime/utils/eventBus.mjs +0 -8
  209. package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +0 -38
  210. package/dist/es/components/runtime/utils/events/event-util.mjs +0 -429
  211. package/dist/es/components/runtime/utils/events/print-label.mjs +0 -100
  212. package/dist/es/components/runtime/utils/events/standard-event.mjs +0 -1170
  213. package/dist/es/components/runtime/utils/events/validator-util.mjs +0 -462
  214. package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +0 -36
  215. package/dist/es/components/runtime/utils/form/scan-util.mjs +0 -88
  216. package/dist/es/components/runtime/utils/global-refs.mjs +0 -57
  217. package/dist/es/components/runtime/utils/i18n-util.mjs +0 -14
  218. package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +0 -4
  219. package/dist/es/components/runtime/utils/page-helper-util.mjs +0 -381
  220. package/dist/es/components/runtime/utils/page-init-util.mjs +0 -281
  221. package/dist/es/components/runtime/utils/page-store.mjs +0 -53
  222. package/dist/es/components/runtime/utils/store-util.mjs +0 -13
  223. package/dist/es/components/runtime/utils/table-utils.mjs +0 -84
  224. package/dist/es/components/runtime/utils/tree-utils.mjs +0 -68
  225. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +0 -4
  226. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +0 -29
  227. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +0 -7
  228. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +0 -21
  229. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +0 -4
  230. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +0 -41
  231. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +0 -4
  232. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +0 -6
  233. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +0 -4
  234. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +0 -21
  235. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +0 -7
  236. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +0 -53
  237. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +0 -14
  238. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +0 -4
  239. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +0 -13
  240. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +0 -4
  241. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +0 -59
  242. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +0 -4
  243. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +0 -7
  244. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +0 -59
  245. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +0 -93
  246. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +0 -4
  247. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +0 -7
  248. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +0 -35
  249. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +0 -7
  250. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +0 -46
  251. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +0 -7
  252. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +0 -35
  253. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +0 -7
  254. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +0 -35
  255. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +0 -425
  256. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +0 -6
  257. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +0 -4
  258. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +0 -10
  259. package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +0 -4
  260. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +0 -42
  261. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +0 -4
  262. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +0 -17
  263. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +0 -4
  264. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +0 -4
  265. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +0 -261
  266. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +0 -20
  267. package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +0 -4
  268. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +0 -35
  269. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +0 -4
  270. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +0 -34
  271. package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +0 -4
  272. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +0 -27
  273. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +0 -4
  274. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +0 -17
  275. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +0 -4
  276. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +0 -22
  277. package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +0 -4
  278. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +0 -18
  279. package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +0 -4
  280. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +0 -35
  281. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +0 -4
  282. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +0 -19
  283. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +0 -4
  284. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +0 -7
  285. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +0 -35
  286. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +0 -4
  287. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +0 -21
  288. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +0 -7
  289. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +0 -27
  290. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +0 -7
  291. package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +0 -29
  292. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +0 -7
  293. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +0 -81
  294. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +0 -4
  295. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +0 -25
  296. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +0 -4
  297. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +0 -25
  298. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +0 -4
  299. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +0 -43
  300. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +0 -7
  301. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +0 -96
  302. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +0 -7
  303. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +0 -47
  304. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +0 -4
  305. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +0 -69
  306. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +0 -362
  307. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +0 -4
  308. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +0 -329
  309. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +0 -4
  310. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +0 -4
  311. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +0 -90
  312. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +0 -7
  313. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +0 -133
  314. package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +0 -5
  315. package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +0 -4
  316. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +0 -4
  317. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +0 -65
  318. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +0 -36
  319. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +0 -4
  320. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +0 -4
  321. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +0 -69
  322. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +0 -4
  323. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +0 -102
  324. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +0 -4
  325. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +0 -55
  326. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +0 -4
  327. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +0 -24
  328. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +0 -4
  329. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +0 -111
  330. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +0 -4
  331. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +0 -88
  332. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +0 -4
  333. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +0 -28
  334. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +0 -4
  335. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +0 -79
  336. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +0 -7
  337. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +0 -37
  338. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +0 -4
  339. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +0 -42
  340. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +0 -7
  341. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +0 -16
  342. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +0 -4
  343. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +0 -84
  344. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +0 -8
  345. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +0 -215
  346. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +0 -7
  347. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +0 -150
  348. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +0 -4
  349. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +0 -16
  350. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +0 -4
  351. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +0 -36
  352. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +0 -4
  353. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +0 -43
  354. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +0 -7
  355. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +0 -28
  356. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +0 -83
  357. package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +0 -4
  358. package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +0 -163
  359. package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +0 -4
  360. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +0 -9
  361. package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +0 -4
  362. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +0 -7
  363. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +0 -56
  364. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +0 -7
  365. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +0 -29
  366. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +0 -7
  367. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +0 -45
  368. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +0 -4
  369. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +0 -20
  370. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +0 -4
  371. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +0 -23
  372. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +0 -7
  373. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +0 -30
  374. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +0 -4
  375. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +0 -27
  376. package/dist/es/components/runtime/views/home-chart.vue.mjs +0 -46
  377. package/dist/es/components/runtime/views/home-chart2.vue.mjs +0 -4
  378. package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +0 -30
  379. package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +0 -5
  380. package/dist/es/components/runtime/views/super-page.vue.mjs +0 -7
  381. package/dist/es/components/runtime/views/super-page2.vue.mjs +0 -307
  382. package/dist/es/index.mjs +0 -32
  383. /package/dist/es/assets/chart-themes/{bar-theme.mjs → bar-theme.js} +0 -0
  384. /package/dist/es/assets/chart-themes/{gauge-theme.mjs → gauge-theme.js} +0 -0
  385. /package/dist/es/assets/chart-themes/{pie-theme.mjs → pie-theme.js} +0 -0
  386. /package/dist/es/assets/chart-themes/{radar-theme.mjs → radar-theme.js} +0 -0
  387. /package/dist/es/assets/chart-themes/{scatter-theme.mjs → scatter-theme.js} +0 -0
  388. /package/dist/es/assets/{file.png.mjs → file.png.js} +0 -0
  389. /package/dist/es/assets/{folder.png.mjs → folder.png.js} +0 -0
  390. /package/dist/es/components/runtime/utils/{store.mjs → store.js} +0 -0
  391. /package/dist/es/i18n/langs/{cn.mjs → cn.js} +0 -0
  392. /package/dist/es/i18n/langs/{en.mjs → en.js} +0 -0
@@ -1,1170 +0,0 @@
1
- import { deepCopy as me, getBaseUrl as P, getRealRestApiPath as F, isWorkflowPage as pe, isArrayFn as ce, packageTemplateFiles as He, upperFirstCase as Ge, getListCode as Re } from "../common-util.mjs";
2
- import { getCurrentUser as Se, getI18n as b, http as E, isMobileBrowser as q, getToken as ke, getSessionCache as ie, setSessionCache as Je, getRunCurrentRole as Ye } from "agilebuilder-ui";
3
- import { ElMessage as S, ElMessageBox as fe, ElNotification as ze } from "element-plus";
4
- import { getComponentRef as z, getComponentRefByCode as Ke } from "../global-refs.mjs";
5
- import j from "../eventBus.mjs";
6
- import le from "axios";
7
- import { handleEvent as re, getTableUuid as _e, doAfterClickEvent as H } from "./event-util.mjs";
8
- import { setStoreInfo as Ie } from "../store-util.mjs";
9
- import { getPermissionCodes as Q, getDefaultValue as Xe, getModelFields as Qe } from "../page-init-util.mjs";
10
- import { caculateShowCondition as ue, updateChartDatasources as Ze, getVariableValue as et, setVariableValue as tt } from "../page-helper-util.mjs";
11
- import st from "./print-label.mjs";
12
- import { getTableNameByTableUuid as he, getCurrentUserFileTasks as ot, setFileTaskRead as nt } from "../table-utils.mjs";
13
- import { getWorkflowRules as at, packageCustomRules as it } from "./validator-util.mjs";
14
- import { functions as rt } from "../api/page-expose-util.mjs";
15
- import { usePageContextStore as Me } from "../page-store.mjs";
16
- import { h as ct } from "vue";
17
- import lt from "../../views/assemblys/common/file-task-notice.vue.mjs";
18
- import { cacheBackfillData as te, removeCacheFillData as Y, hasBackfillData as xe, getRealFillData as ut, removeCacheFillDataById as pt } from "./data-backfill-util.mjs";
19
- const Dt = { save: function(e) {
20
- return Oe(e, !1);
21
- }, saveList: function(e) {
22
- return Oe(e, !0);
23
- }, exportForm: function(e) {
24
- const t = e.pageContext.code + "_";
25
- j.$emit(t + "export-form-report", e);
26
- }, exportPDF: function(e) {
27
- const t = e.pageContext.code + "_";
28
- j.$emit(t + "export-pdf-report", e);
29
- }, submit: function(e) {
30
- return ee(e, !1, "submit", "/dsc/commons/submits");
31
- }, submitList: function(e) {
32
- return ee(e, !0, "submit", "/dsc/commons/batch-submits");
33
- }, agree: function(e) {
34
- return ee(e, !1, "agree", "/dsc/commons/approves");
35
- }, agreeList: function(e) {
36
- return ee(e, !0, "agree", "/dsc/commons/batch-approves");
37
- }, disagree: function(e) {
38
- return ee(e, !1, "disagree", "/dsc/commons/refuses");
39
- }, disagreeList: function(e) {
40
- return ee(e, !0, "disagree", "/dsc/commons/batch-refuses");
41
- }, back: function(e) {
42
- const t = e.pageContext, s = t.entity ? t.entity.data : {}, a = !(!e.configureObj.props || !e.configureObj.props.base) && e.configureObj.props.base.isNeedValueMapping;
43
- ye(t, e.configureObj, s, a);
44
- }, delete: function(e) {
45
- return function(t) {
46
- return new Promise((s, a) => {
47
- const o = t.ids;
48
- if (!o || o.length === 0) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s(!0);
49
- fe.confirm(b().t("superPageRuntimeMessage.whetherToConfirmDeletion"), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
50
- var I, A, R, y, O, h;
51
- const n = t.pageContext, r = t.configureObj, c = r.props.base, l = n.systemCode, m = n.backendUrl, u = r.props.base.tableUuid ? r.props.base.tableUuid : t.tableUuid, p = he(n, u);
52
- let d = P(m, n.isTest) + "/dsc/commons/" + p;
53
- d = F(d, l, m, n.isTest);
54
- const g = c.isPermission === void 0 || c.isPermission === "true" || c.isPermission, T = !!pe(n) || !!n.isWorkflowEntityOrg, i = Q(r, n), f = { ids: o, functionCode: i, isPermission: g + "", systemCode: l, isWorkflowEntity: T, listCodesMap: n.listCodesMap, pageCode: n.code, pageVersion: n.version };
55
- if (n.beanName && (f.beanName = n.beanName), u) {
56
- const k = (R = (A = (I = Ke(t.pageContext, u)) == null ? void 0 : I.getConfigure()) == null ? void 0 : A.props) == null ? void 0 : R.deleteLogicSetting;
57
- k && k && (typeof k == "object" ? f.deleteLogicSetting = JSON.stringify(k) : typeof k == "string" && (f.deleteLogicSetting = k));
58
- }
59
- const C = (y = r.props.base) == null ? void 0 : y.logSetting;
60
- C && (f.logSettingText = C.join(""));
61
- const w = r.props.base.isSafeDelete;
62
- w && (f.isSafeDelete = w);
63
- const v = (h = (O = r.runtime) == null ? void 0 : O.props) == null ? void 0 : h.title;
64
- v && (f.currentOperation = v), f.isMobile = q(), E.delete(d, { data: f }).then((k) => {
65
- const M = z(n, u);
66
- M && (M.isDeleteChange(!0), M.clearSelections()), J(n, r, k, "superPageRuntimeMessage.successfulDelete", !0), s(!0);
67
- }).catch((k) => {
68
- a(k);
69
- });
70
- }).catch(() => {
71
- a();
72
- });
73
- });
74
- }(e);
75
- }, downloadTemplate: function(e) {
76
- (function(t) {
77
- var I, A, R, y;
78
- const s = t.pageContext, a = t.configureObj, o = a.props.base, n = He(o.templateFiles, s, a);
79
- let r, c;
80
- n && n.length > 0 && (r = n[0].templateUuid, c = n[0].templateName);
81
- const l = s.systemCode, m = s.backendUrl;
82
- let u = c, p = "?1=1";
83
- r && u && r !== "undefined" && u !== "undefined" && r !== "null" && u !== "null" ? p += "&fileName=" + encodeURI(r) + "&showName=" + encodeURI(u) : u ? p += "&showName=" + encodeURI(u) : s.label && ((I = t.tableConfigure) != null && I.title ? (p += "&showName=" + encodeURI(b().t(t.tableConfigure.title)) + ".xlsx", u = b().t(t.tableConfigure.title) + ".xlsx") : (p += "&showName=" + encodeURI(s.label) + ".xlsx", u = s.label + ".xlsx"));
84
- const d = (A = a.props.base) == null ? void 0 : A.logSetting;
85
- d && (p += "&logSettingText=" + d.join("")), l && (p += "&systemCode=" + l);
86
- const g = t.listCode;
87
- g && (p += "&listCode=" + g), s.beanName && (p += "&beanName=" + s.beanName);
88
- const T = Q(a, s);
89
- T && (p += "&functionCode=" + T), s.tableName && (p += "&tableName=" + s.tableName), s.code && (p += "&pageCode=" + s.code), s.version && (p += "&pageVersion=" + s.version);
90
- const i = ke();
91
- i && (p += "&JWT=" + i);
92
- const f = (y = (R = a.runtime) == null ? void 0 : R.props) == null ? void 0 : y.title;
93
- f && (p += "&currentOperation=" + encodeURI(f)), p += "&isMobile=" + q();
94
- const C = "_RUN_CURRENT_ROLE", w = ie(C);
95
- w && (p += "&" + C + "=" + w), o && (p += "&isPermission=" + (o.isPermission === void 0 || o.isPermission === "true" || o.isPermission));
96
- const v = P(m, s.isTest);
97
- window.$http({ url: encodeURI(v + "/dsc/commons/download-files" + p), method: "get", responseType: "blob" }).then((O) => {
98
- const h = document.createElement("a"), k = new Blob([O], { type: "application/vnd.ms-excel;charset=UTF-8" });
99
- h.style.display = "none", h.remove("download"), h.href = URL.createObjectURL(k), h.setAttribute("download", u || "template.xlsx"), document.body.appendChild(h), h.click(), document.body.removeChild(h);
100
- });
101
- })(e);
102
- }, import: function(e) {
103
- const t = e.pageContext.code + "_";
104
- j.$emit(t + "import-file", e);
105
- }, export: function(e) {
106
- return function(t) {
107
- return new Promise((s, a) => {
108
- var C, w, v, I, A, R, y, O, h, k, M, x;
109
- const o = t.pageContext, n = t.configureObj, r = n.props.base, c = t.listCode, l = t.selections, m = {};
110
- l && l.length > 0 && (m.data = l);
111
- let u = o.label;
112
- u || (u = o.code);
113
- let p = !1;
114
- p = r.isAsync !== void 0 && r.isAsync !== null && r.isAsync;
115
- const d = r.isPermission === void 0 || r.isPermission === "true" || r.isPermission, g = Q(n, o), T = u, i = { backendUrl: o.backendUrl, pageContext: o }, f = (w = (C = n.runtime) == null ? void 0 : C.props) == null ? void 0 : w.title;
116
- f && (i.currentOperation = f), i.isShowWatermark = ((I = (v = n.props) == null ? void 0 : v.watermark) == null ? void 0 : I.isShowWatermark) === void 0 ? "true" : ((R = (A = n.props) == null ? void 0 : A.watermark) == null ? void 0 : R.isShowWatermark) + "", i.watermarkContent = (O = (y = n.props) == null ? void 0 : y.watermark) != null && O.content && ((k = (h = n.props) == null ? void 0 : h.watermark) == null ? void 0 : k.content.length) > 0 ? (x = (M = n.props) == null ? void 0 : M.watermark) == null ? void 0 : x.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(m, T, c, g, null, i, p, o.code, d), p && setTimeout(() => {
117
- Le(o);
118
- }, 100);
119
- });
120
- }(e);
121
- }, search: function(e) {
122
- const t = e.pageContext, s = e.tableUuid;
123
- z(t, s).refresh();
124
- }, showSearch: function(e) {
125
- const t = e.pageContext, s = e.tableUuid;
126
- z(t, s).showMobileSearch();
127
- }, workflowSave: function(e) {
128
- return j.$emit("clearTableAllStartEditing"), async function(t) {
129
- return new Promise((s, a) => {
130
- const o = t.pageContext;
131
- if (se(o)) return void s(!1);
132
- const n = o.entity.data, r = o.systemCode, c = o.backendUrl;
133
- let l = P(c, o.isTest) + "/dsc/workflow-commons";
134
- if (l = F(l, r, c, o.isTest), !l) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
135
- const m = W(t);
136
- let u;
137
- u = n.id || n.ID ? E.put(l, m) : E.post(l, m), te(o.code, n), u.then((p) => {
138
- let d = !0;
139
- p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSave") }), j.$emit("clearTableAllEndEditing"), s(!0);
140
- }).catch((p) => {
141
- a(p);
142
- });
143
- });
144
- }(e);
145
- }, workflowStart: function(e) {
146
- return j.$emit("clearTableAllStartEditing"), async function(t) {
147
- return new Promise((s, a) => {
148
- const o = t.pageContext, n = o.entity.data, r = o.systemCode, c = o.backendUrl;
149
- if (se(o)) return void s(!1);
150
- let l = P(c, o.isTest) + "/dsc/workflow-commons/start";
151
- if (l = F(l, r, c, o.isTest), !l) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
152
- const m = W(t);
153
- let u;
154
- n.workflow_id || n.WORKFLOW_ID ? (l = P(c, o.isTest) + "/dsc/workflow-commons", l = F(l, r, c, o.isTest), u = E.put(l, m)) : u = E.post(l, m), te(o.code, n), u.then((p) => {
155
- let d = !0;
156
- p && (Y(o.code, n), d = Z(p, !1, o, t, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulStart") }), j.$emit("clearTableAllEndEditing"), s(!0);
157
- }).catch((p) => {
158
- a(p);
159
- });
160
- });
161
- }(e);
162
- }, submitProcess: function(e) {
163
- return j.$emit("clearTableAllStartEditing"), function(t) {
164
- return new Promise((s, a) => {
165
- const o = t.pageContext;
166
- if (se(o)) return void s(!1);
167
- const n = o.systemCode, r = o.backendUrl;
168
- let c = P(r, o.isTest) + "/dsc/workflow-commons/submit";
169
- if (c = F(c, n, r, o.isTest), !c) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
170
- const l = W(t);
171
- te(o.code, o.entity.data);
172
- const m = E.post(c, l);
173
- m ? m.then((u) => {
174
- let p = !0;
175
- u && (Y(o.code, o.entity.data), p = Z(u, !1, o, t, null)), p === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSubmit") }), j.$emit("clearTableAllEndEditing"), s(!0);
176
- }).catch((u) => {
177
- a(u);
178
- }) : Y(o.code, o.entity.data);
179
- });
180
- }(e);
181
- }, submitTask: function(e) {
182
- return X(e, "SUBMIT");
183
- }, approve: function(e) {
184
- return X(e, "APPROVE");
185
- }, refuse: function(e) {
186
- return X(e, "REFUSE");
187
- }, readed: function(e) {
188
- return X(e, "READED");
189
- }, agreement: function(e) {
190
- return X(e, "AGREEMENT");
191
- }, oppose: function(e) {
192
- return X(e, "OPPOSE");
193
- }, kiken: function(e) {
194
- return X(e, "KIKEN");
195
- }, assign: function(e) {
196
- return function(t) {
197
- const s = t.pageContext, a = s.code + "_";
198
- j.$emit(a + "assign-task", t);
199
- }(e);
200
- }, copyTask: function(e) {
201
- return function(t) {
202
- const s = t.pageContext, a = s.code + "_";
203
- j.$emit(a + "copy-task", t);
204
- }(e);
205
- }, addSigner: function(e) {
206
- return function(t) {
207
- const s = t.pageContext, a = s.code + "_";
208
- j.$emit(a + "add-signer", t);
209
- }(e);
210
- }, drawTask: function(e) {
211
- return function(t) {
212
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/draw-tasks", n = W(t);
213
- return $(t, n, o, "superPageRuntimeMessage.successfulDrawTask");
214
- }(e);
215
- }, abandonReceive: function(e) {
216
- return function(t) {
217
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/abandon-receives", n = W(t);
218
- return $(t, n, o, "superPageRuntimeMessage.successfulAbandonReceive");
219
- }(e);
220
- }, returnToPreviousTask: function(e) {
221
- return function(t) {
222
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", n = W(t);
223
- return $(t, n, o, "superPageRuntimeMessage.successfulReturnToPreviousTask");
224
- }(e);
225
- }, endInstance: function(e) {
226
- return function(t) {
227
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/end-instance", n = W(t);
228
- return $(t, n, o, "superPageRuntimeMessage.successfulEndInstance");
229
- }(e);
230
- }, returnTaskTo: function(e) {
231
- return function(t) {
232
- const s = t.pageContext, a = s.code + "_";
233
- j.$emit(a + "choose-return-node", t);
234
- }(e);
235
- }, removeSigner: function(e) {
236
- return function(t) {
237
- const s = t.pageContext, a = s.code + "_";
238
- j.$emit(a + "remove-signer", t);
239
- }(e);
240
- }, retrieveTask: function(e) {
241
- return function(t) {
242
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/retrieves", n = W(t);
243
- return $(t, n, o, "superPageRuntimeMessage.successfulRetrieve");
244
- }(e);
245
- }, extractWorkflow: function(e) {
246
- return gt(e);
247
- }, extractWorkflowEvent: function(e) {
248
- return function(t) {
249
- const s = t.pageContext;
250
- j.$emit(s.code + "_event-call-component", { componentName: "extract-workflow-dialog", componentProps: { pageContext: t.pageContext, configure: t.configureObj } });
251
- }(e);
252
- }, cancelExtractWorkflow: function(e) {
253
- return function(t) {
254
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/cancel-extract", n = W(t);
255
- return $(t, n, o, "superPageRuntimeMessage.successfulCancelExtract");
256
- }(e);
257
- }, approveExtractWorkflow: function(e) {
258
- return function(t) {
259
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/approve-extract", n = W(t);
260
- return $(t, n, o, "superPageRuntimeMessage.successfulOperation");
261
- }(e);
262
- }, refuseExtractWorkflow: function(e) {
263
- return function(t) {
264
- const s = t.pageContext, a = s.backendUrl, o = P(a, s.isTest) + "/dsc/workflow-commons/refuse-extract", n = W(t);
265
- return $(t, n, o, "superPageRuntimeMessage.successfulOperation");
266
- }(e);
267
- }, viewDetail: function(e) {
268
- }, lineEditCreate: function(e) {
269
- return function(t) {
270
- const s = t.pageContext, a = t.tableUuid, o = z(s, a);
271
- o && (t.getDefaultValueFunc = Xe, o.createRow(t.listCode, {}, t));
272
- }(e);
273
- }, printLabel: function(e) {
274
- return function(t) {
275
- let s = null;
276
- try {
277
- if (s = t.menuItem ? t.menuItem.templateUuid : t.configureObj.props.base.template[0].templateUuid, !s) throw new Error("未找到模板");
278
- } catch (a) {
279
- console.error("打印标签失败,未在配置中找到找到模板", a, t);
280
- }
281
- st.printLabel(t, s);
282
- }(e);
283
- }, queryCharts: function(e) {
284
- Ne(e);
285
- }, resetCharts: function(e) {
286
- var s, a;
287
- const t = e.pageContext;
288
- Object.assign(t.entity.data, me((s = t.initChartData) == null ? void 0 : s.data)), Object.assign(t.entity.page, me((a = t.initChartData) == null ? void 0 : a.page)), e.isInitChart = !0, Ne(e);
289
- }, exportCharts: function(e) {
290
- (function(t) {
291
- var i, f, C, w, v, I, A, R, y, O, h, k;
292
- const s = t.pageContext, a = s.allChartUuids;
293
- if (!a || a.length == 0) return;
294
- const o = t.configureObj;
295
- let n = null;
296
- o && o.runtime && (n = o.runtime.props);
297
- const r = n ? n.state : void 0;
298
- n && (n.state = "disabled");
299
- const c = [];
300
- for (let M = 0; M < a.length; M++) {
301
- const x = a[M], N = z(s, x);
302
- if (N) {
303
- const U = N.getConfigure();
304
- U && U.exportable && U._dynamicShowFlag && N.exportChart && c.push(N.exportChart());
305
- }
306
- }
307
- if (!c || c.length == 0) return;
308
- let l, m = s.label;
309
- m || (m = s.code), l = m;
310
- const u = { reportDataList: c, beanName: s.beanName, systemCode: s.systemCode, pageCode: s.code }, p = G(s);
311
- u.additionalParamMap = p;
312
- const d = (f = (i = o.runtime) == null ? void 0 : i.props) == null ? void 0 : f.title;
313
- d && (u.currentOperation = d), u.isMobile = q(), u.isShowWatermark = ((w = (C = o.props) == null ? void 0 : C.watermark) == null ? void 0 : w.isShowWatermark) === void 0 ? "true" : ((I = (v = o.props) == null ? void 0 : v.watermark) == null ? void 0 : I.isShowWatermark) + "", u.watermark = (R = (A = o.props) == null ? void 0 : A.watermark) != null && R.content && ((O = (y = o.props) == null ? void 0 : y.watermark) == null ? void 0 : O.content.length) > 0 ? (k = (h = o.props) == null ? void 0 : h.watermark) == null ? void 0 : k.content.join("-~") : "";
314
- const g = s.backendUrl, T = P(g, s.isTest) + "/dsc/commons/exportChart";
315
- Te(), le.post(T, u, { responseType: "blob" }).then((M) => {
316
- const x = document.createElement("a");
317
- x.style.display = "none", x.href = URL.createObjectURL(M.data), x.setAttribute("download", l + ".xlsx"), document.body.appendChild(x), x.click(), document.body.removeChild(x);
318
- }).finally(() => {
319
- n && (n.state = r);
320
- });
321
- })(e);
322
- }, saveQueryCharts: function(e) {
323
- (function(t) {
324
- const s = t.pageContext, a = t.configureObj, o = s.code + "_";
325
- j.$emit(o + "save-chart-condition", { pageContext: s, configureObj: a });
326
- })(e);
327
- }, addTransactor: function(e) {
328
- return function(t) {
329
- const s = t.pageContext, a = s.code + "_";
330
- j.$emit(a + "add-transactor", t);
331
- }(e);
332
- }, removeTransactor: function(e) {
333
- return function(t) {
334
- const s = t.pageContext, a = s.code + "_";
335
- j.$emit(a + "remove-transactor", t);
336
- }(e);
337
- } };
338
- function Ne(e) {
339
- const t = e.pageContext, s = t.initChartServiceConfigs;
340
- if (!s || s.length == 0) return;
341
- const a = e.configureObj;
342
- let o = null;
343
- a && a.runtime && (o = a.runtime.props);
344
- const n = o ? o.state : void 0;
345
- o && (o.state = "disabled"), Ze(t, s, void 0, e.isInitChart).then(() => {
346
- o && (o.state = n);
347
- }).catch(() => {
348
- o && (o.state = n);
349
- });
350
- }
351
- function jt(e, t, s, a) {
352
- var v, I, A, R, y, O, h, k, M, x, N, U, D;
353
- e.clickUuid = t.uuid, e.canClick = !1;
354
- const o = s.templateUuid, n = s.templateName, r = e.systemCode, c = (v = t.props.base) == null ? void 0 : v.logSetting, l = pe(e), m = e.beanName, u = t.props.base, p = t.tableName ? t.tableName : e.tableName, d = e.backendUrl, g = rt.getFormViewData(e), T = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, i = { entity: g, fileName: o, showName: n, beanName: m, isWorkflowForm: l, functionCode: Q(t, e), tableName: p, isPermission: T + "", systemCode: r, listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
355
- if (e.tableUuids && e.tableUuids.length > 0) {
356
- const _ = {};
357
- e.tableUuids.forEach((V) => {
358
- const L = z(e, V);
359
- if (L) {
360
- const oe = L.getConfigure().code, K = L.getSuperGridRef().columns;
361
- K && K.length > 0 && (_[oe] = K);
362
- }
363
- }), i.subTableColumns = _;
364
- }
365
- c && (i.logSettingText = c.join(""));
366
- const f = (A = (I = t.runtime) == null ? void 0 : I.props) == null ? void 0 : A.title;
367
- f && (i.currentOperation = f), i.isMobile = q();
368
- const C = G(e);
369
- let w;
370
- i.additionalParamMap = C, i.isShowWatermark = ((y = (R = t.props) == null ? void 0 : R.watermark) == null ? void 0 : y.isShowWatermark) === void 0 ? "true" : ((h = (O = t.props) == null ? void 0 : O.watermark) == null ? void 0 : h.isShowWatermark) + "", i.watermark = (M = (k = t.props) == null ? void 0 : k.watermark) != null && M.content && ((N = (x = t.props) == null ? void 0 : x.watermark) == null ? void 0 : N.content.length) > 0 ? (D = (U = t.props) == null ? void 0 : U.watermark) == null ? void 0 : D.content.join("-~") : "", w = a ? function(_, V, L, oe) {
371
- return new Promise((K, ge) => {
372
- const Ce = P(V, oe) + "/dsc/commons/export-pdf";
373
- Te();
374
- const ne = le.post(Ce, L, { headers: { "content-type": "application/json" }, responseType: "blob" });
375
- window.$message.info("正在导出中..."), ne.then((ae) => {
376
- const de = new Blob([ae.data]), B = document.createElement("a");
377
- B.download = _.substring(0, _.lastIndexOf(".")) + ".pdf", B.style.display = "none", B.target = "_blank", B.href = URL.createObjectURL(de), document.body.appendChild(B), B.click(), URL.revokeObjectURL(B.href), document.body.removeChild(B), K(!0);
378
- }).catch((ae) => {
379
- ge(ae);
380
- });
381
- });
382
- }(n, d, i, e.isTest) : function(_, V, L, oe) {
383
- return new Promise((K, ge) => {
384
- const Ce = P(V, oe) + "/dsc/commons/export-reports";
385
- Te(), le.post(Ce, L, { responseType: "blob" }).then((ne) => {
386
- const ae = new Blob([ne.data]);
387
- let de = "报告.xlsx";
388
- _ && (de = _);
389
- const B = document.createElement("a");
390
- B.download = de, B.style.display = "none", B.target = "_blank", B.href = URL.createObjectURL(ae), document.body.appendChild(B), B.click(), URL.revokeObjectURL(B.href), document.body.removeChild(B), K(!0);
391
- }).catch((ne) => {
392
- ge(ne);
393
- });
394
- });
395
- }(n, d, i, e.isTest), w && w.then(() => {
396
- H(e, t);
397
- }).catch((_) => {
398
- window.$message.error("导出失败..."), H(e, t);
399
- });
400
- }
401
- function Te() {
402
- le.defaults.headers.common.Authorization = ke();
403
- const e = Ye();
404
- if (e) {
405
- const t = "_RUN_CURRENT_ROLE";
406
- le.defaults.headers.common[t] = e;
407
- }
408
- }
409
- function se(e) {
410
- if (e.fileuploadInfo && e.fileuploadInfo.length > 0) {
411
- const t = e.fileuploadInfo[0];
412
- let s;
413
- return s = t.isTable && t.tableTitle && t.rowIndex !== void 0 ? b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t.label, tableTitle: t.tableTitle, rowIndex: t.rowIndex + 1 }) : b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t.label }), S({ message: s, type: "warning", showClose: !0 }), !0;
414
- }
415
- return !1;
416
- }
417
- function Oe(e, t) {
418
- return new Promise((s, a) => {
419
- const o = e.pageContext, n = e.configureObj, r = e.mainDefaultValueColumns, c = e.dynamicColumnInfo, l = n.props.base.successOperation;
420
- let m = !1;
421
- if (l && l === "noOperation" && (m = !0), se(o)) return void s(!1);
422
- te(o.code, o.entity.data);
423
- const u = mt(o, n, "/dsc/commons", m, r, c);
424
- u ? u.then((p) => {
425
- p && Y(o.code, o.entity.data), J(o, n, p, "superPageRuntimeMessage.successfulSave", t), s(p);
426
- }).catch((p) => {
427
- a(p);
428
- }) : (Y(o.code, o.entity.data), a("保存时request不存在"));
429
- });
430
- }
431
- function De(e, t, s, a, o, n, r) {
432
- var v, I, A;
433
- const c = pe(e), l = e.systemCode, m = t.props.base.isPermission === void 0 || t.props.base.isPermission === "true" || t.props.base.isPermission, u = Q(t, e);
434
- let p = r;
435
- p || (p = e.entity.data);
436
- const d = { entity: p, tableName: e.tableName, formNoRuleCode: e.formNoRuleCode, isWorkflowEntity: c, functionCode: u, isPermission: m + "", listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
437
- n && (d.ids = n), e.judgeHeavyList && (ce(e.judgeHeavyList) ? d.judgeHeavyList = JSON.stringify(e.judgeHeavyList) : d.judgeHeavyList = e.judgeHeavyList);
438
- const g = t.props.base.conversionCodes;
439
- g && (ce(g) ? d.dataConversionRule = g.join(",") : typeof g == "string" && (d.dataConversionRule = g));
440
- const T = ve(t);
441
- T && (d.autoSetValueData = T);
442
- const i = (v = t.props.base) == null ? void 0 : v.logSetting;
443
- i && (d.logSettingText = i.join("")), d.systemCode || (d.systemCode = l);
444
- const f = e.beanName;
445
- f && (d.beanName = f), o && (d.dynamicColumnInfo = o), a && (d.mainDefaultValueColumns = a);
446
- const C = G(e);
447
- d.additionalParamMap = C, s !== void 0 && (d.unControlVersion = s);
448
- const w = (A = (I = t.runtime) == null ? void 0 : I.props) == null ? void 0 : A.title;
449
- return w && (d.currentOperation = w), d.isMobile = q(), d;
450
- }
451
- function dt(e, t, s, a, o, n, r, c, l) {
452
- const m = e.systemCode, u = e.backendUrl, p = De(e, t, a, o, n, null, r);
453
- return c && c.tableName && (p.tableName = c.tableName), l && (p.isWorkflowEntity = !1), r || e.pageType !== "form" ? Ae(m, u, p, s, r, e.isTest) : Ae(m, u, p, s, e.entity.data, e.isTest);
454
- }
455
- function mt(e, t, s, a, o, n) {
456
- return dt(e, t, s, a, o, n, null, null);
457
- }
458
- function Ae(e, t, s, a, o, n) {
459
- let r, c = P(t, n) + a;
460
- return c = F(c, e, t, n), r = o && (o.id || o.ID) ? E.put(c, s) : E.post(c, s), r;
461
- }
462
- function J(e, t, s, a, o) {
463
- const n = je(e, t, o);
464
- if (n && n === "list") (function(r, c, l, m) {
465
- let u = c.props.base.successOperation;
466
- const p = c.props.base.isNeedValueMapping, d = _e(r, c);
467
- if (u || ft.includes(c.name) || (u = "refresh"), u === "refresh") d ? z(r, d).refresh() : console.error("tableUuid is empty");
468
- else if (u === "closeWindow" || u === "closeWindowAndRefresh") {
469
- const g = me(r.entity.page);
470
- let T = l;
471
- T || (T = {}), Object.assign(g, T), ye(r, c, g, p);
472
- }
473
- m && S({ message: b().t(m), type: "success", showClose: !0 });
474
- })(e, t, s, a), e.canClick = !0;
475
- else if (n && n === "form") (function(r, c, l, m) {
476
- if (l) {
477
- const u = l;
478
- let p;
479
- p = u.entity ? u.entity : u, u.formNo && (r.initFormNo = u.formNo), be(r, c, { ...p, ...r.entity.page });
480
- } else {
481
- const u = c.props.base.successOperation;
482
- u && u !== null ? be(r, c, { ...r.entity.page }) : r.canClick = !0;
483
- }
484
- m && S({ message: b().t(m), type: "success", showClose: !0 });
485
- })(e, t, s, a);
486
- else {
487
- const r = t.props.base.successOperation;
488
- r && r !== null ? be(e, t, null) : e.canClick = !0;
489
- }
490
- }
491
- function je(e, t, s) {
492
- let a;
493
- return s === void 0 ? a = t.props.base.tableUuid ? "list" : null : s === !1 && (a = "form"), a || (a = e.pageType), a;
494
- }
495
- function be(e, t, s) {
496
- const a = t.props.base.successOperation;
497
- if (!a || a === null) return;
498
- const o = t.props.base.isNeedValueMapping;
499
- a === "noOperation" ? e.canClick = !0 : a === "refresh" ? s && (s.id || s.ID) ? Be(e, s.ID ? s.ID : s.id) : e.canClick = !0 : a !== "closeWindow" && a !== "closeWindowAndRefresh" || (ye(e, t, s, o), e.canClick = !0);
500
- }
501
- function ye(e, t, s, a) {
502
- const o = e.entity && e.entity.request ? e.entity.request.jumpMode : null;
503
- if (o === "openWindow" || o === "newTab") window.parent ? window.parent.close() : window.close();
504
- else {
505
- const n = e.tableName, r = a !== void 0 && a === !0 && s && s !== void 0, c = (e.entity && e.entity.request ? e.entity.request.parentPageCode : null) + "_close-dialog";
506
- j.$has(c) ? j.$emit(c, { isNeedValueMapping: r, dataModel: s, sourceConfigureObj: t, sourceTableName: n, jumpMode: o }) : o === "refresh" && window.history.back();
507
- }
508
- }
509
- function Wt({ parentPageContext: e, parentEventParams: t, parentConfigureObj: s, sourceModel: a, sourceTableName: o, valueMappings: n }) {
510
- var c;
511
- n || (n = s.runtime && s.runtime.linkPage && s.runtime.linkPage.valueMappings ? s.runtime.linkPage.valueMappings : null) || (n = (c = s.props.linkPage) == null ? void 0 : c.valueMappings);
512
- const r = e.tableName;
513
- (function(l, m, u) {
514
- if (l && l !== null && m) {
515
- let p = l;
516
- Array.isArray(l) && l.length > 0 && (p = l[0]), m.forEach((d) => {
517
- const g = d.source;
518
- if (!g) return;
519
- const T = g.split("."), i = et(p, T), f = d.target, C = Qe(null, f);
520
- tt(u.entity, C, i);
521
- });
522
- }
523
- })(a, n, e), re(null, e, s, "setValue", { sourceModel: a, sourceTableName: o, entity: e.entity.data, targetTableName: r, eventParams: t });
524
- }
525
- const ft = ["dropdown"];
526
- function Ft(e, t, s, a) {
527
- var r;
528
- t && !t.props.base && (t.props.base = {});
529
- let o = a;
530
- o || (o = s ? "refresh" : (r = t.props.base) == null ? void 0 : r.successOperation);
531
- const n = je(e, t);
532
- if (n && n === "list" && !o && (o = "refresh"), o === "refresh") {
533
- if (n && n === "list") {
534
- const c = _e(e, t);
535
- c ? z(e, c).refresh() : console.error("tableUuid is empty");
536
- } else if (n && n === "form") {
537
- const c = e.entity.data;
538
- Be(e, c.ID ? c.ID : c.id);
539
- }
540
- }
541
- }
542
- function ee(e, t, s, a) {
543
- return new Promise((o, n) => {
544
- const r = e.pageContext, c = e.configureObj;
545
- if (se(r)) return void o(!1);
546
- const l = e.mainDefaultValueColumns, m = e.dynamicColumnInfo, u = e.ids, p = c.props.base.successOperation;
547
- let d = !1;
548
- p && p === "noOperation" && (d = !0);
549
- let g = r.tableName;
550
- if (t) {
551
- const i = c.props.base.tableUuid ? c.props.base.tableUuid : e.tableUuid;
552
- g = he(r, i);
553
- } else te(r.code, r.entity.data);
554
- const T = function(i, f, C, w, v, I, A, R, y) {
555
- return new Promise((O, h) => {
556
- const k = f.props.base.title, M = "superPageRuntimeMessage.whetherToConfirm" + Ge(A);
557
- fe.confirm(b().t(M, { name: k }), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
558
- const x = i.systemCode, N = i.backendUrl, U = De(i, f, w, v, I, R, null);
559
- U.tableName = y;
560
- let D = P(N, i.isTest) + C;
561
- D = F(D, x, N, i.isTest), E.post(D, U).then((_) => {
562
- O(_);
563
- }).catch((_) => {
564
- h(_);
565
- });
566
- }).catch(() => {
567
- h("点击了取消按钮");
568
- });
569
- });
570
- }(r, c, a, d, l, m, s, u, g);
571
- T ? T.then((i) => {
572
- !t && i && Y(r.code, r.entity.data), J(r, c, i, "superPageRuntimeMessage.successfulSave", t), o(i);
573
- }).catch((i) => {
574
- n(i);
575
- }) : (t || Y(r.code, r.entity.data), n("request不存在"));
576
- });
577
- }
578
- function Bt(e, t) {
579
- var O, h, k, M, x;
580
- const s = e.pageContext, a = e.configureObj, o = e.tableConfigure, n = a.props.base, r = a.props.base.tableUuid ? a.props.base.tableUuid : e.tableUuid, c = he(s, r), l = new FormData();
581
- l.append("multipartFile", t), c && l.append("tableName", c);
582
- const m = (h = (O = a.runtime) == null ? void 0 : O.props) == null ? void 0 : h.title;
583
- m && l.append("currentOperation", m), l.append("isMobile", q()), s.importBeanName && l.append("importBeanName", s.importBeanName), s.beanName && l.append("beanName", s.beanName);
584
- const u = (k = o.props.importSetting) == null ? void 0 : k.listViewImportDuplicate;
585
- u && l.append("importDuplicateRule", u);
586
- const p = s.judgeHeavyList;
587
- p && l.append("judgeHeavyList", JSON.stringify(p));
588
- const d = ve(a);
589
- d && l.append("autoSetValueData", d);
590
- const g = s.formNoRuleCode;
591
- g && l.append("formNoRuleCode", g);
592
- const T = e.listCode;
593
- T && l.append("listCode", T), ((M = n == null ? void 0 : n.conversionCodes) == null ? void 0 : M.length) > 0 && l.append("dataConversionRule", n.conversionCodes.join(","));
594
- let i = !1;
595
- i = n.isAsync !== void 0 && n.isAsync !== null && n.isAsync, l.append("isAsync", i + ""), l.append("pageCode", s.code);
596
- const f = pe(s);
597
- f != null && l.append("isWorkflowEntity", f + "");
598
- const C = Q(a, s);
599
- C && l.append("functionCode", C);
600
- const w = G(s);
601
- l.append("additionalParamMapStr", JSON.stringify(w));
602
- const v = n.isPermission === void 0 || n.isPermission === "true" || n.isPermission;
603
- l.append("isPermission", v + "");
604
- const I = s.systemCode;
605
- I && l.append("systemCode", I);
606
- const A = (x = a.props.base) == null ? void 0 : x.logSetting;
607
- A && l.append("logSettingText", A.join(""));
608
- const R = s.backendUrl;
609
- let y = P(R, s.isTest) + "/dsc/commons/import-data";
610
- y = F(y, I, R, s.isTest), E.post(y, l).then((N) => {
611
- if (i) S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.asyncImport") }), Le(s);
612
- else {
613
- let U = !1;
614
- N ? (U = !1, S({ dangerouslyUseHTMLString: !0, showClose: !0, type: "warning", message: N })) : (S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulImport") }), U = !0), J(s, a, N, null, !0), s.result = U, H(s, a);
615
- }
616
- }).catch((N) => {
617
- });
618
- }
619
- function Lt(e, t) {
620
- const s = e.props.base;
621
- if (s.conditionsForExecution && s.conditionsForExecution !== "") {
622
- if (s.conditionsForExecution === "one") {
623
- if (!t || t.length !== 1) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), !1;
624
- } else if (s.conditionsForExecution === "more" && (!t || t.length <= 0)) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), !1;
625
- }
626
- return !0;
627
- }
628
- function W(e) {
629
- var T, i, f;
630
- const t = e.pageContext, s = e.configureObj, a = t.entity.data, o = t.systemCode, n = t.code;
631
- let r = Q(s, t);
632
- r || (r = n + ".xxx"), a.id || a.ID || (a.PAGE_CODE = t.code, a.PAGE_VERSION = t.version);
633
- const c = { entity: a, pageMoel: t.entity.page, formNoRuleCode: t.formNoRuleCode, tableName: t.tableName, emailTemplateCode: t.emailTemplateCode, definitionId: t.definitionId, functionCode: r, systemCode: o, listCodesMap: t.listCodesMap, pageCode: t.code, pageVersion: t.version, listCodesInitSearchForm: t.listCodesInitSearchForm };
634
- t.dataTypeMaps && Object.keys(t.dataTypeMaps).length > 0 && (c.dataTypeMap = t.dataTypeMaps), t.completeTaskParam && (c.completeTaskParam = { taskId: t.completeTaskParam.taskId, opinion: t.completeTaskParam.opinion }), t.judgeHeavyList && (ce(t.judgeHeavyList) ? c.judgeHeavyList = JSON.stringify(t.judgeHeavyList) : c.judgeHeavyList = t.judgeHeavyList);
635
- const l = s.props.base.conversionCodes;
636
- l && (ce(l) ? c.dataConversionRule = l.join(",") : typeof l == "string" && (c.dataConversionRule = l));
637
- const m = ve(s);
638
- m && (c.autoSetValueData = m), t.beanName && (c.beanName = t.beanName);
639
- const u = (T = s.props.base) == null ? void 0 : T.logSetting;
640
- u && (c.logSettingText = u.join("")), c.systemCode || (c.systemCode = o);
641
- const p = G(t);
642
- c.additionalParamMap = p, p.ids && p.ids.length > 0 && (typeof p.ids == "string" ? c.ids = p.ids.split(",") : Array.isArray(p.ids) ? c.ids = p.ids : typeof ids == "number" ? c.ids = [p.ids] : console.error("ids参数类型错误"));
643
- const d = s.props.base.successOperation;
644
- d && d === "noOperation" && (c.unControlVersion = !0), c.isWorkflowEntity = !0;
645
- const g = (f = (i = s.runtime) == null ? void 0 : i.props) == null ? void 0 : f.title;
646
- return g && (c.currentOperation = g), c.isMobile = q(), c.taskParamMap = t.entity.task, c;
647
- }
648
- function Z(e, t, s, a, o) {
649
- const n = s.code, r = s.version;
650
- let c;
651
- if (e) {
652
- t && (s.initFormNo = e.formNo, s.emailTemplateCode = e.emailTemplateCode), e.entity && (s.entity.data = e.entity, function(m, u) {
653
- const p = G(u);
654
- m && p && Je(p._t_ + "_id", m);
655
- }(e.entity.id || e.entity.ID, s));
656
- const l = e.completeTaskResult;
657
- if (l) {
658
- const m = l.completeTaskTipType;
659
- if (m && m === "MESSAGE") {
660
- const u = l.content;
661
- return S({ showClose: !0, type: "warning", message: u }), !1;
662
- }
663
- }
664
- if (e.completeTaskParam) {
665
- const m = e.completeTaskParam;
666
- c = m.taskId, a && (a.taskId = c), Ie(n, r, "_completeTaskParam", m), s.fieldPermissions = m.fieldPermissions, s.actionPermissions = m.actionPermissions, s.workflowButtonComponent = m.buttonComponent, s.completeTaskParam = m, s.completeTaskParam.opinion = null;
667
- }
668
- s.entity || (s.entity = {}), s.entity.task = e.taskParamMap, Ie(n, r, "_currentActivityName", e.taskName);
669
- }
670
- return a && (a.operationResult = o), t || J(s, a.configureObj, e, null, !1), !0;
671
- }
672
- async function X(e, t) {
673
- const s = await We(e);
674
- return new Promise((a, o) => {
675
- var r;
676
- const n = e.pageContext;
677
- if (se(n)) a(!1);
678
- else if (s) {
679
- const c = n.systemCode, l = n.backendUrl, m = s === !0 ? (r = n.completeTaskParam) == null ? void 0 : r.opinion : s;
680
- let u = P(l, n.isTest) + "/dsc/workflow-commons/complete-tasks";
681
- if (u = F(u, c, l, n.isTest), !u) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
682
- const p = W(e);
683
- p.completeTaskParam = { operationResult: t, taskId: n.completeTaskParam ? n.completeTaskParam.taskId : null, opinion: m || null };
684
- const d = E.post(u, p);
685
- te(n.code, n.entity.data), d.then((g) => {
686
- let T = !0;
687
- g && (Y(n.code, n.entity.data), T = Z(g, !1, n, e, t)), T === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulCompleteTask") }), a(!0);
688
- }).catch((g) => {
689
- o(g);
690
- });
691
- } else a(!0);
692
- });
693
- }
694
- function We(e) {
695
- return new Promise((t, s) => {
696
- var o, n, r, c, l;
697
- const a = e.configureObj;
698
- if (a) {
699
- if ((o = e.pageContext.workflowOpinion) != null && o.opinion) return void t(e.pageContext.workflowOpinion.opinion);
700
- let m = !1;
701
- if ((r = (n = a.props) == null ? void 0 : n.base) != null && r.isMustOpinion && (m = !0), m === !0) {
702
- const u = e.pageContext, p = (l = (c = a.props) == null ? void 0 : c.base) == null ? void 0 : l.mustOpinionConditions;
703
- m = ue(u, p);
704
- }
705
- m === !0 ? (S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseInputOpinion") }), e.pageContext.workflowOpinion.focusOpinionInput = !0, t(!1)) : t(!0);
706
- } else t(!0);
707
- });
708
- }
709
- function Vt(e, t) {
710
- if (t) {
711
- const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = P(o, s.isTest) + "/dsc/workflow-commons/assigns", r = t.id ? t.id : t.ID ? t.ID : null, c = W(e);
712
- c.assigneeId = r, $(e, c, n, "superPageRuntimeMessage.successfulAssign").then((l) => {
713
- H(s, a);
714
- });
715
- }
716
- }
717
- function Pe(e) {
718
- var u, p;
719
- const t = e.pageContext, s = t.entity.data, a = t.systemCode, o = t.code, n = e.configureObj, r = G(t), c = s.ID !== void 0 && s.ID !== null ? s.ID : s.id, l = { beanName: t.beanName, id: c, entity: s, additionalParamMap: r, tableName: t.tableName, functionCode: o + ".xxx", isWorkflowEntity: !0, listCodesMap: t.listCodesMap, pageCode: t.code, pageVersion: t.version, listCodesInitSearchForm: t.listCodesInitSearchForm };
720
- l.completeTaskParam = { taskId: t.completeTaskParam.taskId, systemCode: a }, l.completeTaskParam.customTaskTitle = Fe(e);
721
- const m = (p = (u = n == null ? void 0 : n.runtime) == null ? void 0 : u.props) == null ? void 0 : p.title;
722
- return m && (l.currentOperation = m), l.isMobile = q(), l;
723
- }
724
- function Fe(e) {
725
- var s, a, o;
726
- let t = null;
727
- if (((a = (s = e.configureObj.props.task) == null ? void 0 : s.title) == null ? void 0 : a.length) > 0) for (let n = 0; n < e.configureObj.props.task.title.length; n++) {
728
- const r = e.configureObj.props.task.title[n];
729
- if (r.config) {
730
- if (!(((o = r.conditions) == null ? void 0 : o.length) > 0)) {
731
- t = r.config;
732
- break;
733
- }
734
- if (ue(e.pageContext, r.conditions)) {
735
- t = r.config;
736
- break;
737
- }
738
- }
739
- }
740
- return t;
741
- }
742
- function G(e) {
743
- if (e.entity) {
744
- let t = me(e.entity.page);
745
- t || (t = {});
746
- const s = e.entity.request;
747
- return s && Object.assign(t, s), t;
748
- }
749
- }
750
- function $t(e, t) {
751
- if (t) {
752
- const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
753
- let r = P(n, s.isTest) + "/dsc/workflow-commons/add-signers";
754
- if (r = F(r, o, n, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
755
- const c = Pe(e);
756
- c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
757
- const l = E.post(r, c);
758
- l && l.then((m) => {
759
- S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
760
- });
761
- }
762
- }
763
- function qt(e, t) {
764
- if (t) {
765
- const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
766
- let r = P(n, s.isTest) + "/dsc/workflow-commons/add-transactors";
767
- if (r = F(r, o, n, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
768
- const c = Pe(e);
769
- c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
770
- const l = E.post(r, c);
771
- l && l.then((m) => {
772
- S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, a, m, null, !1), H(s, a);
773
- });
774
- }
775
- }
776
- async function Ht(e, t) {
777
- if (t) {
778
- const s = await function(a) {
779
- return new Promise((o, n) => {
780
- var c, l, m, u;
781
- const r = a.configureObj;
782
- if (r) {
783
- let p = (l = (c = r.props) == null ? void 0 : c.base) == null ? void 0 : l.isMustRemark;
784
- if (p === void 0 || p === !0) {
785
- p = !0;
786
- const d = a.pageContext, g = (u = (m = r.props) == null ? void 0 : m.base) == null ? void 0 : u.mustRemarkConditions;
787
- p = ue(d, g);
788
- }
789
- p === !0 ? fe.prompt(b().t("superPageRuntimeMessage.pleaseInputRemark"), b().t("superPageRuntimeMessage.remark"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: !1, inputValidator: (d) => !(!d || !d.trim()) || b().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: d }) => {
790
- o(d);
791
- }).catch(() => {
792
- o(!1);
793
- }) : o(!0);
794
- } else o(!0);
795
- });
796
- }(e);
797
- if (s) {
798
- const a = e.pageContext, o = e.configureObj, n = a.systemCode, r = a.backendUrl;
799
- let c = P(r, a.isTest) + "/dsc/workflow-commons/copies";
800
- if (c = F(c, n, r, a.isTest), !c) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
801
- const l = Pe(e);
802
- l.completeTaskParam.transactors = t.loginNames.join(",").split(","), s !== !0 && (l.completeTaskParam.remark = s);
803
- const m = E.post(c, l);
804
- m && m.then((u) => {
805
- var p;
806
- S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), J(a, o, { entity: (p = a.entity) == null ? void 0 : p.data }, null), H(a, o);
807
- });
808
- }
809
- }
810
- }
811
- async function $(e, t, s, a) {
812
- const o = await We(e);
813
- return new Promise((n, r) => {
814
- var c;
815
- if (o) {
816
- const l = e.pageContext, m = l.systemCode, u = l.backendUrl;
817
- if (l.completeTaskParam) {
818
- const d = o === !0 ? (c = l.completeTaskParam) == null ? void 0 : c.opinion : o;
819
- t.completeTaskParam = { taskId: l.completeTaskParam.taskId, opinion: d };
820
- }
821
- if (!(s = F(s, m, u, l.isTest))) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
822
- const p = E.post(s, t);
823
- p && p.then((d) => {
824
- let g = !0;
825
- d && (g = Z(d, !1, l, e, null)), g === !0 && S({ showClose: !0, type: "success", message: b().t(a) }), n(!0);
826
- }).catch((d) => {
827
- r(d);
828
- });
829
- } else n(!0);
830
- });
831
- }
832
- function Gt(e) {
833
- const t = e.pageContext, s = t.systemCode, a = t.backendUrl, o = t.completeTaskParam;
834
- let n = P(a, t.isTest) + "/dsc/workflow-commons/returnable-task/" + o.taskId;
835
- if (n = F(n, s, a, t.isTest), !n) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
836
- const r = t.code, c = G(t), l = { beanName: t.beanName, additionalParamMap: c, tableName: t.tableName, functionCode: r + ".xxx", pageCode: t.code };
837
- return E.post(n, l);
838
- }
839
- function Jt(e, t) {
840
- const s = e.pageContext, a = e.configureObj, o = s.backendUrl, n = P(o, s.isTest) + "/dsc/workflow-commons/returnTaskTo", r = W(e);
841
- t.nodeName && (r.returnToNodeName = t.nodeName), t.nodeId && (r.returnToNodeId = t.nodeId), $(e, r, n, "superPageRuntimeMessage.successfulReturnTaskTo").then((c) => {
842
- H(s, a);
843
- });
844
- }
845
- function Yt(e) {
846
- const t = e.pageContext, s = t.systemCode, a = t.backendUrl;
847
- let o = P(a, t.isTest) + "/dsc/workflow-commons/get-remove-signers";
848
- const n = W(e);
849
- if (o = F(o, s, a, t.isTest), o) return E.post(o, n);
850
- S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
851
- }
852
- function zt(e, t) {
853
- if (t) {
854
- const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
855
- let r = P(n, s.isTest) + "/dsc/workflow-commons/remove-signers";
856
- if (r = F(r, o, n, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
857
- const c = t.map((u) => u.id ? u.id : u.ID ? u.ID : null), l = W(e);
858
- l.ids = c;
859
- const m = E.post(r, l);
860
- m && m.then((u) => {
861
- J(s, a, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, a);
862
- });
863
- }
864
- }
865
- function Kt(e) {
866
- const t = e.pageContext, s = t.systemCode, a = t.backendUrl;
867
- let o = P(a, t.isTest) + "/dsc/workflow-commons/get-remove-transactors";
868
- const n = W(e);
869
- if (o = F(o, s, a, t.isTest), o) return E.post(o, n);
870
- S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
871
- }
872
- function Xt(e, t) {
873
- if (t) {
874
- const s = e.pageContext, a = e.configureObj, o = s.systemCode, n = s.backendUrl;
875
- let r = P(n, s.isTest) + "/dsc/workflow-commons/remove-transactors";
876
- if (r = F(r, o, n, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
877
- const c = t.map((u) => u.taskId), l = W(e);
878
- l.ids = c;
879
- const m = E.post(r, l);
880
- m && m.then((u) => {
881
- J(s, a, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, a);
882
- });
883
- }
884
- }
885
- function gt(e) {
886
- const t = e.pageContext, s = t.backendUrl;
887
- let a = P(s, t.isTest) + "/dsc/workflow-commons/initiate-extract";
888
- const o = W(e);
889
- if (t.completeTaskParam) {
890
- const n = [];
891
- e._value.loginName && n.push(e._value.loginName), o.completeTaskParam = { taskId: t.completeTaskParam.taskId, opinion: e._value.opinion, transactors: n, customTaskTitle: Fe(e) };
892
- }
893
- return new Promise((n, r) => {
894
- const c = e.pageContext, l = c.systemCode, m = c.backendUrl;
895
- if (a = F(a, l, m, c.isTest), !a) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
896
- const u = E.post(a, o);
897
- u && u.then((p) => {
898
- let d = !0;
899
- p && (d = Z(p, !1, c, e, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulInitiateExtract") }), n(!0);
900
- }).catch((p) => {
901
- r(p);
902
- });
903
- });
904
- }
905
- function Qt(e, t, s, a, o, n) {
906
- var c, l, m, u, p, d, g, T;
907
- let r = !1;
908
- if (a && a.archival) return r;
909
- if (t && s && (t === "workflowSave" ? r = function(i) {
910
- return !!((i.processState === void 0 || i.processState === null || i.processState === "UNSUBMIT" && i.active === "WAIT_TRANSACT" && i.theTransactor === !0) && (i.processState === void 0 || i.showButtonSave === !0) || i.processState && i.processState === "SUBMIT" && i.theTransactor === !0 && i.processingMode !== "TYPE_READ" && i.showButtonSave && (i.active === "WAIT_TRANSACT" || i.active === "WAIT_DESIGNATE_TRANSACTOR" || i.active === "WAIT_CHOICE_TACHE" || i.active === "DRAW_WAIT"));
911
- }(s) : t === "workflowStart" ? r = function(i, f) {
912
- return !!(i.processState === void 0 || i.processState === null || f && !f.workflow_id && !f.WORKFLOW_ID);
913
- }(s, n) : t === "submitProcess" ? r = function(i) {
914
- return (i.processState === void 0 || i.processState === null || i.processState === "UNSUBMIT" && i.active === "WAIT_TRANSACT" && i.theTransactor === !0) && (i.processState === void 0 || i.showButtonSave === !0);
915
- }(s) : t === "submitTask" ? r = function(i) {
916
- return !!(i.processState && i.processState === "SUBMIT" && i.theTransactor === !0 && i.active === "WAIT_TRANSACT" && i.processingMode === "EDIT");
917
- }(s) : t === "drawTask" ? r = function(i) {
918
- return !!(i.processState && i.processState === "SUBMIT" && i.active && (i.active === "DRAW_WAIT" || i.active === "DEPT_DRAW_WAIT") && i.showButtonDraw);
919
- }(s) : t === "abandonReceive" ? r = function(i) {
920
- return !!(i.processState && i.processState === "SUBMIT" && (i.drawTask && i.active === "WAIT_TRANSACT" || i.canAbandonDeptTask && i.active === "WAIT_TRANSACT") && i.showButtonAbandon);
921
- }(s) : t === "approve" || t === "refuse" ? r = function(i) {
922
- return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && (i.processingMode === "APPROVE" || i.processingMode === "COUNTERSIGN"));
923
- }(s) : t === "readed" ? r = function(i) {
924
- return i.active === "WAIT_TRANSACT" && i.processingMode === "TYPE_READ";
925
- }(s) : t === "assign" ? r = function(i) {
926
- return !!(i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && (i.active === "WAIT_TRANSACT" || i.active === "DRAW_WAIT"));
927
- }(s) : t === "copyTask" ? r = function(i, f) {
928
- let C = !1;
929
- return i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode !== "TYPE_READ" && i.showButtonCopy && (C = !0), f && (f.props.base.state = C ? "" : "hidden"), !0;
930
- }(s, o) : t === "addSigner" ? r = function(i) {
931
- return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "COUNTERSIGN" && i.showButtonAddCounter);
932
- }(s) : t === "removeSigner" ? r = function(i) {
933
- return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "COUNTERSIGN" && i.showButtonDelCounter);
934
- }(s) : t === "retrieveTask" ? r = function(i) {
935
- return !!(i.processState && i.processState !== "END" && i.processState === "SUBMIT" && i.showButtonGetBack === !0 && function(f) {
936
- return !(f.active !== "COMPLETED" || f.processingMode === "TYPE_READ" || !f.showButtonGetBack);
937
- }(i));
938
- }(s) : t === "agreement" || t === "oppose" ? r = function(i) {
939
- return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "VOTE");
940
- }(s) : t === "kiken" ? r = function(i) {
941
- return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "VOTE" && i.showButtonKiken);
942
- }(s) : t === "extractWorkflow" ? r = function(i, f, C) {
943
- var I;
944
- const w = Se(), v = w ? w.loginName : null;
945
- if (i != null && i.processState) {
946
- if (((I = f == null ? void 0 : f.firstNodeInfo) == null ? void 0 : I.nodeId) === (C == null ? void 0 : C.CURRENT_ACTIVITY_ID)) return !1;
947
- if ((i == null ? void 0 : i.processState) !== "END" && (i == null ? void 0 : i.processState) !== "EXTRACT" && (i == null ? void 0 : i.processState) !== "MANUAL_END" && C && (C.creator === v || C.CREATOR === v)) return !0;
948
- }
949
- return !1;
950
- }(s, a, n) : t === "cancelExtractWorkflow" ? r = function(i, f, C) {
951
- const w = Se(), v = w ? w.loginName : null;
952
- return !!((i == null ? void 0 : i.processState) === "EXTRACT" && C && (C.creator === v || C.CREATOR === v));
953
- }(s, 0, n) : t === "approveExtractWorkflow" || t === "refuseExtractWorkflow" ? r = Ct(s) : t === "addTransactor" || t === "removeTransactor" ? r = function(i) {
954
- return !!(i.processState && i.processState === "SUBMIT" && (i.active === "WAIT_TRANSACT" || i.active === "DRAW_WAIT") && i.processingMode !== "COUNTERSIGN");
955
- }(s) : function(i, f) {
956
- return i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && !function(C) {
957
- const w = C;
958
- let v = !0;
959
- return w && (v = w.taskComplete), v;
960
- }(f);
961
- }(s, a) && (r = t !== "returnToPreviousTask" || function(i) {
962
- return !!i.rebuttable;
963
- }(s))), o != null && o.check && ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask", "returnTaskTo"].indexOf(t) !== -1 && r) {
964
- if (e.workflowOpinion || (e.workflowOpinion = { showOpinionBox: !1 }), (l = (c = o.props) == null ? void 0 : c.base) == null ? void 0 : l.showOpinionBox) {
965
- e.workflowOpinion.showOpinionBox = !0;
966
- const f = (u = (m = o.props) == null ? void 0 : m.base) == null ? void 0 : u.showOpinionBoxConditions;
967
- f && f.length > 0 && (e.workflowOpinion.showOpinionBox = ue(e, f));
968
- }
969
- let i = !1;
970
- if ((d = (p = o.props) == null ? void 0 : p.base) != null && d.isMustOpinion) {
971
- if (i = !0, i === !0) {
972
- const f = (T = (g = o.props) == null ? void 0 : g.base) == null ? void 0 : T.mustOpinionConditions;
973
- f && f.length > 0 && (i = ue(e, f));
974
- }
975
- e.workflowOpinion.isRequired = i, i && (e.workflowOpinion.showOpinionBox = !0);
976
- }
977
- }
978
- return e.workflowOpinion, r;
979
- }
980
- function Ct(e, t, s) {
981
- return !(!e.processState || e.processState !== "EXTRACT" || e.active !== "WAIT_TRANSACT");
982
- }
983
- function Be(e, t) {
984
- e.entity.page || (e.entity.page = {}), e.entity.page._isRefresh = !0, bt(e, t).then((s) => {
985
- e.isRefresh = !0;
986
- });
987
- }
988
- function bt(e, t, s) {
989
- const a = e.pageType;
990
- return a && a === "form" ? (e.canClick = !1, pe(e) ? function(o, n, r) {
991
- return new Promise((c, l) => {
992
- var A;
993
- const m = o.systemCode, u = o.code, p = o.version, d = G(o);
994
- let g = n || null, T = n ? [n] : null;
995
- r === void 0 || r ? (g || (g = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (g = null, T = null, d._id = d.id, d.id = null);
996
- const i = d ? d.taskId : null, f = u, C = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, isWorkflowEntity: !0, systemCode: m, functionCode: f + ".workflowGets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
997
- if (o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
998
- const R = {};
999
- o.tableUuids.forEach((y) => {
1000
- const O = Re(u, p, y);
1001
- R[O] = O;
1002
- }), C.listCodesMap = R;
1003
- }
1004
- T && (C.ids = Ee(T)), i ? C.taskId = i : g ? C.id = g : (d && d._t_ && ie(d._t_ + "_id") && (C.id = ie(d._t_ + "_id")), o.notIdInitializationList && (C.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList))), d && (C.additionalParamMap = d), o.beanName && (C.beanName = o.beanName), o.refercePropMap && (C.refercePropMap = o.refercePropMap), (A = o.props) != null && A.enableFormDataPermission && (C.withDataPermission = !0), C.isMobile = q();
1005
- const w = P(o.backendUrl, o.isTest) + "/dsc/workflow-commons/gets", v = Me();
1006
- v.restorePageLoadState(), re(null, o, o, "beforeFormLoadData");
1007
- const I = xe(o.code, C.id);
1008
- E.post(w, C).then(async (R) => {
1009
- I && await Ue(o, C.id, R), o.workflowOpinion = { showOpinionBox: !1 }, o.definitionId = R.definitionId, o.entity.task = R.taskParamMap, o.dataTypeMaps = R.dataTypeMap, Z(R, !0, o), o.workflowRules = at(o);
1010
- const y = o.pageType;
1011
- y && y === "form" && function(O) {
1012
- (function(h) {
1013
- const k = /* @__PURE__ */ new Map(), M = h.fieldPermissions;
1014
- if (M !== void 0) for (let x = 0; x < M.length; x++) {
1015
- const N = M[x].name;
1016
- if (N) if (N.indexOf("$") === 0 && N.indexOf(".") > 0) {
1017
- const U = M[x], D = JSON.parse(JSON.stringify(U)), _ = N.substring(1, N.indexOf(".")), V = N.substring(N.indexOf(".") + 1);
1018
- if (D.name = V, D && D.name === "all_fields") D.canEdit === !1 ? D.rowIndexes ? k.set(_, [{ name: "all_fields", canEdit: !1, rowIndexes: D.rowIndexes }]) : k.set(_, [{ name: "all_fields", canEdit: !1 }]) : D.rowIndexes ? k.set(_, [{ name: "all_fields", canEdit: !0, rowIndexes: D.rowIndexes }]) : k.set(_, [{ name: "all_fields", canEdit: !0 }]);
1019
- else {
1020
- let L = k.get(_);
1021
- L || (L = []), L.push(D), k.set(_, L);
1022
- }
1023
- } else k.set(N, M[x]);
1024
- }
1025
- h.fieldPermissionMap = k;
1026
- })(O), function(h) {
1027
- const k = h.fieldPermissionMap, M = /* @__PURE__ */ new Map(), x = h.actionPermissions;
1028
- x != null && Object.keys(x).forEach((N) => {
1029
- const U = x[N], D = k.get(N);
1030
- if (D && D.length > 0 && D[0].name === "all_fields" && D[0].canEdit === !1) U.canUpdate = !1, U.canAdd = !1;
1031
- else {
1032
- U && Object.keys(U.deleteCondition).length !== 0 || (U.deleteCondition = null), U && Object.keys(U.updateCondition).length !== 0 || (U.updateCondition = null);
1033
- const _ = U.canUpdate, V = U.updateRowIndexes;
1034
- _ !== void 0 && _ === !1 && V != null && V.length > 0 && k.set(N, [{ name: "all_fields", canEdit: !1, rowIndexes: V }]);
1035
- }
1036
- M.set(N, U);
1037
- }), h.actionPermissionMap = M;
1038
- }(O);
1039
- }(o), o.canClick = !0, re(null, o, o, "afterFormLoadData"), v.setFormPageDataLoadState(!0), c(R);
1040
- }).catch((R) => {
1041
- o.canClick = !0, l(R);
1042
- });
1043
- });
1044
- }(e, t, s) : function(o, n, r) {
1045
- return new Promise((c, l) => {
1046
- var R;
1047
- const m = o.systemCode, u = o.code, p = o.version, d = G(o);
1048
- let g = n || null, T = n ? [n] : null;
1049
- r === void 0 || r ? (g || (g = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (g = null, T = null, d._id = d.id, d.id = null);
1050
- const i = d ? d.taskId : null, f = u, C = P(o.backendUrl, o.isTest), w = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, id: g, systemCode: m, functionCode: f + ".gets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
1051
- if (!w.id && d && d._t_ && ie(d._t_ + "_id") && (w.id = ie(d._t_ + "_id")), T && (w.ids = Ee(T)), o.notIdInitializationList && (w.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList)), d && (w.additionalParamMap = d), o.beanName && (w.beanName = o.beanName), i && (w.taskId = i), (R = o.props) != null && R.enableFormDataPermission && (w.withDataPermission = !0), o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
1052
- const y = {};
1053
- o.tableUuids.forEach((O) => {
1054
- const h = Re(u, p, O);
1055
- y[h] = h;
1056
- }), w.listCodesMap = y;
1057
- }
1058
- o.refercePropMap && (w.refercePropMap = o.refercePropMap), w.isMobile = q();
1059
- const v = C + "/dsc/commons/gets", I = Me();
1060
- I.restorePageLoadState(), re(null, o, o, "beforeFormLoadData");
1061
- const A = xe(o.code, w.id);
1062
- E.post(v, w).then(async (y) => {
1063
- y && (A && await Ue(o, w.id, y), o.entity.data = y.entity, o.initFormNo = y.formNo);
1064
- const O = o.customRules, h = o.rules, k = it(o, O, h);
1065
- o.rules = k, o.canClick = !0, re(null, o, o, "afterFormLoadData"), I.setFormPageDataLoadState(!0), c(y);
1066
- }).catch((y) => {
1067
- o.canClick = !0, l(y);
1068
- });
1069
- });
1070
- }(e, t, s)) : new Promise((o, n) => {
1071
- o(!0);
1072
- });
1073
- }
1074
- async function Ue(e, t, s) {
1075
- try {
1076
- await fe.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), s.entity = ut(e.code, t, s.entity);
1077
- } catch {
1078
- }
1079
- pt(e.code, t);
1080
- }
1081
- function Ee(e) {
1082
- return e && (typeof e == "string" ? e = e.split(",") : typeof e == "number" && (e = [e])), e;
1083
- }
1084
- function ve(e) {
1085
- const t = e.props.setValueList;
1086
- if (t) {
1087
- if (ce(t) && t.length > 0) return JSON.stringify(t);
1088
- if (typeof t == "string" && t !== "[]") return t;
1089
- }
1090
- return null;
1091
- }
1092
- function Zt(e, t) {
1093
- const s = e.entity ? e.entity : {}, a = { data: s.data, page: s.page }, o = { pageCode: e.code, queryCondition: JSON.stringify(a), name: t }, n = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
1094
- return E.post(n, o);
1095
- }
1096
- function es(e) {
1097
- const t = e.code, s = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t;
1098
- return E.get(s);
1099
- }
1100
- function ts(e) {
1101
- const t = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e;
1102
- return E.delete(t);
1103
- }
1104
- function Le(e) {
1105
- e.exportNoticeInfo && (e.exportNoticeInfo.noticeInterval && clearInterval(e.exportNoticeInfo.noticeInterval), e.exportNoticeInfo.noticeComponent = null, e.exportNoticeInfo.noticeInterval = null), e.exportNoticeInfo = {}, $e(e.exportNoticeInfo, e.backendUrl, e.code);
1106
- }
1107
- function Ve(e, t, s) {
1108
- e.lastFileTask && !e.noticeComponent ? e.noticeComponent = ze({ title: b().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
1109
- e.lastFileTask.taskState === "Success" || e.lastFileTask.taskState === "Fail" || e.lastFileTask.taskState === "PartSuccess" ? we(t, s, e.lastFileTask.id, e) : (e.noticeComponent = null, e.noticeInterval == null && $e(e, t, s));
1110
- }, message: ct(lt, { isShow: !0, backendUrl: t, lastFileTask: e.lastFileTask, onClickMsg(a) {
1111
- a.serverPath ? function(o, n, r, c, l, m) {
1112
- we(l, m, r, c);
1113
- const u = ke(), p = P(l), d = p + "/common/super-form/downloads?jwt=" + u + "&showName=" + encodeURI(o) + "&serverPath=" + n;
1114
- window.open(d);
1115
- }(a.fileName, a.serverPath, a.id, e, t, s) : we(t, s, a.id, e), e.noticeComponent.close(), e.noticeComponent = null;
1116
- } }) }) : (e.noticeComponent != null && (e.noticeComponent.close(), e.noticeComponent = null), e.noticeInterval && (clearInterval(e.noticeInterval), e.noticeInterval = null));
1117
- }
1118
- function $e(e, t, s) {
1119
- e.noticeInterval || (e.noticeInterval = setInterval(() => {
1120
- e.noticeComponent || function(a, o, n) {
1121
- qe(o, n).then((r) => {
1122
- a.lastFileTask = r, Ve(a, o, n);
1123
- });
1124
- }(e, t, s);
1125
- }, 3e3));
1126
- }
1127
- function qe(e, t) {
1128
- return ot(e, t);
1129
- }
1130
- function we(e, t, s, a) {
1131
- nt(e, s).then(() => {
1132
- (function(o, n, r) {
1133
- qe(n, r).then((c) => {
1134
- o.lastFileTask = c, Ve(o, n, r);
1135
- });
1136
- })(a, e, t);
1137
- });
1138
- }
1139
- export {
1140
- se as checkAndTipFileUploading,
1141
- J as dealAfterOperate,
1142
- Z as dealCompleteTaskParam,
1143
- ts as deleteChartCondition,
1144
- $t as doAddSigner,
1145
- qt as doAddTransactor,
1146
- Vt as doAssign,
1147
- Ht as doCreateCopyTask,
1148
- Le as doFileTaskFunc,
1149
- Bt as doImportFinally,
1150
- zt as doRemoveSigners,
1151
- Xt as doRemoveTransactors,
1152
- Jt as doReturnTaskTo,
1153
- jt as exportFormReport,
1154
- gt as extractWorkflowFunc,
1155
- G as getAdditionalParamMap,
1156
- bt as getFormData,
1157
- Yt as getRemoveSigner,
1158
- Kt as getRemoveTransactor,
1159
- mt as getSaveFormRequest,
1160
- dt as getSaveFormRequestWithRow,
1161
- Gt as getTaskInformitions,
1162
- Qt as isVisibleWorkflowButton,
1163
- Lt as judgeDataNumber,
1164
- es as listChartConditions,
1165
- Ft as refreshFormOrListPage,
1166
- Be as refreshPage,
1167
- Zt as saveChartConditionBase,
1168
- Dt as standardEvents,
1169
- Wt as updateValuesWhenCloseDialog
1170
- };