super-page-runtime 2.3.20-sit2 → 2.3.21-tmp1

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