super-page-runtime 2.3.22-tmp2 → 2.3.22-tmp3

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