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
@@ -0,0 +1,345 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const e = require("agilebuilder-ui/src/utils/common-util"), t = require("./standard-event.js"), n = require("./validator-util.js"), o = require("../global-refs.js"), i = require("element-plus"), r = require("agilebuilder-ui/src/utils/util"), u = require("../common-util.js"), c = require("../eventBus.js"), l = require("../page-helper-util.js"), s = require("../table-utils.js"), a = ["downloadTemplate", "back", "exportForm", "exportPDF", "lineEditCreate", "workflowSave"], f = ["downloadTemplate", "exportForm", "exportPDF", "export", "exportCharts"], p = ["import"];
4
+ function d(e2, t2) {
5
+ if (e2.customEvents) return e2.customEvents[t2];
6
+ }
7
+ function g(e2, t2) {
8
+ e2.get = function(e3) {
9
+ return e3 ? o.getComponentRefByCode(t2, e3) : void 0;
10
+ }, e2.getByUuid = function(e3) {
11
+ return e3 ? o.getComponentRef(t2, e3) : void 0;
12
+ }, e2.getPageContext = function() {
13
+ return t2;
14
+ }, e2.getContextValue = function(e3) {
15
+ let n2 = t2 && t2.entity ? t2.entity.context : null;
16
+ return n2 = n2 || {}, l.getValueFromSource(n2, e3, "context");
17
+ }, e2.getContext = function() {
18
+ return t2 && t2.entity ? t2.entity.context : {};
19
+ }, e2.getSystem = function() {
20
+ return t2 && t2.entity ? t2.entity.system : {};
21
+ }, e2.getTask = function() {
22
+ return t2 && t2.entity ? t2.entity.task : {};
23
+ }, e2.getRequest = function() {
24
+ return t2 && t2.entity ? t2.entity.request : {};
25
+ }, e2.getPage = function() {
26
+ return t2 && t2.entity ? t2.entity.page : {};
27
+ }, e2.getCustomFunc = function(e3) {
28
+ return d(t2, e3);
29
+ };
30
+ }
31
+ function m(e2, t2, n2, o2, i2) {
32
+ return x(e2, t2, n2, o2, true, i2, false);
33
+ }
34
+ function v(e2, t2, n2, o2, i2) {
35
+ var _a, _b;
36
+ if (o2 && "change" === o2) {
37
+ const e3 = t2.subTableWatchProps;
38
+ if (e3) for (const t3 in e3) {
39
+ const o3 = e3[t3], i3 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop;
40
+ o3 && o3.indexOf(i3) >= 0 && c.$emit("_refreshSubTable_" + t3, { propName: i3 });
41
+ }
42
+ }
43
+ return x(e2, t2, n2, o2, true, i2, true);
44
+ }
45
+ function C(e2, t2, n2, o2, i2) {
46
+ return x(e2, t2, n2, o2, false, i2, false);
47
+ }
48
+ function x(n2, o2, i2, r2, u2, c2, l2) {
49
+ const s2 = i2 && i2.runtime && i2.runtime.events ? i2.runtime.events : [];
50
+ let a2;
51
+ if (l2 || !function(e2) {
52
+ return e2 && b.indexOf(e2) >= 0;
53
+ }(r2)) {
54
+ if (a2 = F(o2, s2, r2), u2) {
55
+ return R(o2, i2, a2, h(o2, i2, n2, c2));
56
+ }
57
+ return a2;
58
+ }
59
+ !function(n3, o3, i3) {
60
+ const r3 = t.judgeDataNumber(o3, i3.ids);
61
+ if (!r3) return;
62
+ if (void 0 !== n3.canClick && false === n3.canClick) return;
63
+ q(i3).then((t2) => {
64
+ if (true === t2.canExecute) {
65
+ n3.clickUuid = o3.uuid, n3.canClick = false;
66
+ const t3 = o3.runtime && o3.runtime.events ? o3.runtime.events : [], r4 = F(n3, t3, "beforeValidateForm");
67
+ let u3;
68
+ if (r4 && (u3 = R(n3, o3, r4, i3)), void 0 === u3 && (u3 = true), !u3) return void (n3.canClick = true);
69
+ e.isPromise(u3) ? u3.then((e2) => {
70
+ e2 && true === e2 ? E(n3, o3, i3) : n3.canClick = true;
71
+ }).catch((e2) => {
72
+ n3.canClick = true;
73
+ }) : E(n3, o3, i3);
74
+ }
75
+ });
76
+ }(o2, i2, j(n2, o2, i2, c2));
77
+ }
78
+ const b = ["click", "suffixClick", "prefixClick", "menuClick"];
79
+ function k(e2, t2) {
80
+ return t2.props.base.tableUuid ? t2.props.base.tableUuid : e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null;
81
+ }
82
+ function h(e2, t2, n2, o2) {
83
+ const i2 = {};
84
+ if (o2) for (const e3 in o2) i2[e3] = o2[e3];
85
+ return null != n2 && (i2._value = n2), e2 && (i2.pageContext = e2), t2 && (i2.configureObj = t2), i2;
86
+ }
87
+ function E(t2, o2, i2) {
88
+ const r2 = o2.runtime && o2.runtime.events ? o2.runtime.events : [];
89
+ let u2 = true;
90
+ (i2 == null ? void 0 : i2.skipValidate) && (u2 = false);
91
+ const c2 = T(t2, r2, "click");
92
+ if (c2) {
93
+ const e2 = function(e3, t3) {
94
+ return e3 && a.includes(t3.eventName);
95
+ }(c2.isStandard, c2.event);
96
+ e2 && (u2 = false);
97
+ }
98
+ n.validateDataModelFunc(t2, o2, u2).then((n2) => {
99
+ if (!n2) return void (t2.canClick = true);
100
+ const r3 = O(t2, o2, i2);
101
+ r3 ? e.isPromise(r3) ? r3.then((e2) => {
102
+ e2 ? N(t2, o2, c2, i2) : t2.canClick = true;
103
+ }).catch((e2) => {
104
+ console.error(e2), t2.canClick = true;
105
+ }) : N(t2, o2, c2, i2) : t2.canClick = true;
106
+ }).catch((e2) => {
107
+ console.error(e2), t2.canClick = true;
108
+ });
109
+ }
110
+ function j(e2, t2, n2, i2) {
111
+ const r2 = t2.code, c2 = t2.version, l2 = k(t2, n2);
112
+ if (l2) {
113
+ const e3 = o.getComponentRef(t2, l2), n3 = e3 ? e3.getSelections() : null, s2 = e3 ? e3.getSelectionIds() : null;
114
+ i2 || (i2 = {}), i2.tableUuid = l2, i2.listCode = u.getListCode(r2, c2, l2);
115
+ w(t2) && (i2.selections = n3, i2.id = s2 && s2.length > 0 ? s2[0] : null, i2.ids = s2);
116
+ const a2 = e3 ? e3.getTableConfigure() : null;
117
+ i2.tableConfigure = a2;
118
+ }
119
+ return h(t2, n2, e2, i2);
120
+ }
121
+ function O(e2, t2, n2) {
122
+ const o2 = F(e2, t2.runtime && t2.runtime.events ? t2.runtime.events : [], "beforeClick");
123
+ let i2;
124
+ return o2 && (i2 = R(e2, t2, o2, null, n2)), void 0 === i2 || i2;
125
+ }
126
+ function y(e2, t2, n2) {
127
+ const o2 = e2.code + "_";
128
+ c.$emit(o2 + "open-dialog", { pageContext: e2, configureObj: t2, eventParams: n2 });
129
+ }
130
+ function w(e2, t2) {
131
+ return !(!e2.pageType || "list" !== e2.pageType);
132
+ }
133
+ function S(e2, n2, o2, i2, r2, u2) {
134
+ i2 ? (e2.result = r2, e2.canClick = true) : t.dealAfterOperate(e2, n2, r2, "", u2);
135
+ const c2 = F(e2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], "afterClick");
136
+ c2 && R(e2, n2, c2, o2);
137
+ }
138
+ function N(t2, n2, o2, i2) {
139
+ let r2 = n2, c2 = n2.props.linkPage;
140
+ if (c2 && c2 instanceof Array) {
141
+ const e2 = function(e3) {
142
+ let t3 = e3 ? e3.row : null;
143
+ t3 || (t3 = e3 && e3.selections && e3.selections.length > 0 ? e3.selections[0] : null);
144
+ return t3;
145
+ }(i2), o3 = s.expressJump(t2, n2, c2, e2);
146
+ let l2, a2 = false;
147
+ o3 && (a2 = o3.show, l2 = a2 ? o3.toPage : null), c2 = l2 ? l2.linkPage : null, c2 && (r2 = u.deepCopy(n2), r2.props.linkPage = c2);
148
+ }
149
+ c2 && c2.jumpPageUrl ? (t2.canClick = true, y(t2, r2, i2)) : function(t3, n3, o3, i3) {
150
+ const r3 = o3, u2 = w(t3);
151
+ if (r3) {
152
+ const o4 = r3.func, c3 = r3.isStandard, l2 = r3.event, s2 = R(t3, n3, o4, i3);
153
+ if (function(e2, t4) {
154
+ return e2 && ("exportForm" === t4.eventName || "exportPDF" === t4.eventName || "import" === t4.eventName || "assign" === t4.eventName || "copyTask" === t4.eventName || "addSigner" === t4.eventName || "returnTaskTo" === t4.eventName || "removeSigner" === t4.eventName || "saveQueryCharts" === t4.eventName || "addTransactor" === t4.eventName || "removeTransactor" === t4.eventName);
155
+ }(c3, l2)) return void (t3.canClick = true);
156
+ e.isPromise(s2) ? s2.then((e2) => {
157
+ e2 ? S(t3, n3, i3, c3, e2, u2) : t3.canClick = true;
158
+ }).catch((e2) => {
159
+ console.error(e2), t3.canClick = true;
160
+ }) : S(t3, n3, i3, c3, s2, u2);
161
+ } else S(t3, n3, i3, false, null, u2);
162
+ }(t2, n2, o2, i2);
163
+ }
164
+ function P(e2, t2) {
165
+ const n2 = e2.customEvents;
166
+ if (n2 && t2) {
167
+ let e3 = "";
168
+ return e3 = "object" == typeof t2 ? t2.componentUuid + "_" + t2.name : t2, n2[e3];
169
+ }
170
+ }
171
+ function F(e2, n2, o2) {
172
+ if (n2 && o2) {
173
+ const i2 = n2.filter((e3) => e3.name === o2);
174
+ if (i2 && i2.length > 0) {
175
+ const n3 = i2[0];
176
+ return n3.isStandard ? t.standardEvents[n3.eventName] : P(e2, n3);
177
+ }
178
+ }
179
+ }
180
+ function T(e2, n2, o2) {
181
+ if (n2 && o2) {
182
+ const i2 = n2.filter((e3) => e3.name === o2);
183
+ if (i2 && i2.length > 0) {
184
+ const n3 = i2[0];
185
+ return n3.isStandard ? { func: t.standardEvents[n3.eventName], isStandard: true, event: n3 } : { func: P(e2, n3), isStandard: false, event: n3 };
186
+ }
187
+ }
188
+ }
189
+ function R(e2, t2, n2, o2, i2) {
190
+ if (n2) {
191
+ if (o2 || (o2 = { pageContext: e2, configureObj: t2 }), i2 && o2) for (const e3 in i2) o2[e3] = i2[e3];
192
+ return n2.apply(n2, [o2]);
193
+ }
194
+ }
195
+ function q(e2) {
196
+ const n2 = e2.pageContext, o2 = e2.configureObj, u2 = w(n2);
197
+ let c2 = [];
198
+ if (u2) n2.editData ? c2.push(n2.editData) : c2 = e2.selections;
199
+ else {
200
+ const e3 = n2.entity.data;
201
+ c2.push(e3);
202
+ }
203
+ const l2 = o2.props.base.condition;
204
+ return new Promise((e3, o3) => {
205
+ if (null == l2 || "" === l2 || null == c2 || 0 === c2.length) e3({ canExecute: true });
206
+ else {
207
+ const o4 = n2.entity.context, u3 = t.getAdditionalParamMap(n2), s2 = true, a2 = n2.tableName;
208
+ let f2, p2, d2 = true;
209
+ for (let e4 = 0; e4 < c2.length; e4++) {
210
+ const t2 = c2[e4];
211
+ for (let e5 = 0; e5 < l2.length; e5++) {
212
+ const i2 = l2[e5], c3 = i2.toolTips, g2 = i2.conditionList;
213
+ if (!r.analysisCondition(g2, t2, u3, o4, s2, a2, null, n2)) {
214
+ d2 = false, f2 = c3, p2 = t2;
215
+ break;
216
+ }
217
+ }
218
+ }
219
+ d2 ? e3({ canExecute: true }) : (f2 && i.ElMessage({ showClose: true, type: "warning", message: f2 }), e3({ canExecute: false, message: f2, failEntity: p2 }));
220
+ }
221
+ });
222
+ }
223
+ function D(e2, t2, n2) {
224
+ t2 && (n2[e2] = t2);
225
+ }
226
+ exports.appendDefaultMethods = g, exports.canExecuteButton = q, exports.cellClick = function(e2, t2, n2) {
227
+ return m(null, e2, t2, "cell-click", n2);
228
+ }, exports.cellDblClick = function(e2, t2, n2) {
229
+ return m(null, e2, t2, "cell-dblclick", n2);
230
+ }, exports.doAfterClickEvent = function(t2, n2, o2) {
231
+ const i2 = n2.runtime && n2.runtime.events ? n2.runtime.events : [], r2 = F(t2, i2, "afterClick");
232
+ if (r2) {
233
+ const i3 = R(t2, n2, r2, null, o2);
234
+ e.isPromise(i3) ? i3.finally(() => {
235
+ t2.canClick = true;
236
+ }) : t2.canClick = true;
237
+ } else t2.canClick = true;
238
+ }, exports.doBeforeClickEvent = O, exports.doClickJumpPageEvent = y, exports.doSuffixOrPrefixClickEvent = function(e2, t2, n2, o2, i2) {
239
+ const r2 = j(e2, t2, n2, i2);
240
+ N(t2, n2, T(t2, n2.runtime && n2.runtime.events ? n2.runtime.events : [], o2), r2);
241
+ }, exports.fileUploadBeforeUpload = function(e2) {
242
+ return C(null, e2.pageContext, e2.configureObj, "before-upload", e2);
243
+ }, exports.getClickEventFuncByType = T, exports.getCustomFunc = d, exports.getEventFuncByType = F, exports.getEventNameByType = function(e2, t2) {
244
+ if (e2 && t2) {
245
+ const n2 = e2.filter((e3) => e3.name === t2);
246
+ if (n2 && n2.length > 0) {
247
+ return n2[0].eventName;
248
+ }
249
+ }
250
+ }, exports.getHandleEvent = C, exports.getTableUuid = k, exports.gridSelectAllRecords = function(e2, t2, n2) {
251
+ return m(null, e2, t2, "select-all", n2);
252
+ }, exports.gridSelectRecord = function(e2, t2, n2) {
253
+ return m(null, e2, t2, "select", n2);
254
+ }, exports.gridSelectionChange = function(e2, t2, n2) {
255
+ return m(null, e2, t2, "selection-change", n2);
256
+ }, exports.handleAfterInitEvent = function(e2, t2, n2, o2) {
257
+ return v(e2, t2, n2, "afterInit", o2);
258
+ }, exports.handleChartEvent = function(e2, t2, n2, o2, i2) {
259
+ return R(e2, t2, F(e2, t2 && t2.runtime && t2.runtime.events ? t2.runtime.events : [], n2), { configure: t2, pageContext: e2, chartOption: o2, ...i2 });
260
+ }, exports.handleEvent = m, exports.handleFormEvent = v, exports.headerClick = function(e2, t2, n2) {
261
+ return m(null, e2, t2, "header-click", n2);
262
+ }, exports.initPageEvents = function(e2, t2) {
263
+ if (e2 && e2.customEvents) {
264
+ const n2 = function(e3) {
265
+ const t3 = {};
266
+ return e3.forEach((e4) => {
267
+ if (!e4.isStandard && e4.jsContent) if ("customFunc" === e4.name) {
268
+ let n3 = null;
269
+ if (e4.funcParam) {
270
+ const t4 = e4.funcParam.split(",");
271
+ n3 = new Function(t4, e4.jsContent);
272
+ } else n3 = new Function(e4.jsContent);
273
+ t3[e4.eventName] = n3;
274
+ } else {
275
+ let n3 = e4.componentUuid + "_";
276
+ n3 += e4.name, t3[n3] = new Function("params", e4.jsContent);
277
+ }
278
+ }), t3;
279
+ }(e2.customEvents);
280
+ !function(e3, t3) {
281
+ if (!t3) return;
282
+ for (const n3 in t3) {
283
+ g(t3[n3], e3);
284
+ }
285
+ }(t2, n2), t2.customEvents = n2;
286
+ }
287
+ }, exports.isShowComponent = function(t2) {
288
+ let n2 = true;
289
+ if (!e.isMobileBrowser()) {
290
+ const e2 = t2 && t2.events ? t2.events : [];
291
+ if (e2) {
292
+ const t3 = e2.filter((e3) => "click" === e3.name && e3.isStandard && e3.eventName && "showSearch" === e3.eventName);
293
+ t3 && t3.length > 0 && (n2 = false);
294
+ }
295
+ }
296
+ return n2;
297
+ }, exports.isShowMobileEvent = function(t2, n2) {
298
+ let o2 = true;
299
+ if (e.isMobileBrowser()) {
300
+ const e2 = T(t2, n2 && n2.runtime && n2.runtime.events ? n2.runtime.events : [], "click");
301
+ if (e2) {
302
+ const t3 = e2.isStandard, n3 = e2.event, i2 = navigator ? navigator.userAgent : null;
303
+ t3 && i2 && (i2.indexOf(" uni-app ") > 0 ? (f.includes(n3.eventName) || p.includes(n3.eventName)) && (o2 = false) : p.includes(n3.eventName) && (o2 = false));
304
+ }
305
+ }
306
+ return o2;
307
+ }, exports.removeCustomFuncFromWindow = function(e2) {
308
+ if (e2 && e2.customEvents) {
309
+ const t2 = e2.customEvents.filter((e3) => "customFunc" === e3.name && e3.jsContent);
310
+ t2 && t2.length > 0 && t2.forEach((e3) => {
311
+ delete window["$page_" + e3.eventName];
312
+ });
313
+ }
314
+ }, exports.rowClick = function(e2, t2, n2) {
315
+ return m(null, e2, t2, "row-click", n2);
316
+ }, exports.rowDblClick = function(e2, t2, n2) {
317
+ return m(null, e2, t2, "row-dblclick", n2);
318
+ }, exports.setTableEvents = function(e2, t2, n2, o2) {
319
+ var i2;
320
+ t2 && (D("loadBeforeSend", C(null, (i2 = { pageContext: n2, configureObj: o2 }).pageContext, i2.configureObj, "beforeListLoad", i2), e2), D("beforeRequest", function(e3) {
321
+ return C(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
322
+ }({ pageContext: n2, configureObj: o2 }), e2), D("gridDataLoaded", function(e3) {
323
+ return C(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
324
+ }({ pageContext: n2, configureObj: o2 }), e2), D("gridComplete", function(e3) {
325
+ return C(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
326
+ }({ pageContext: n2, configureObj: o2 }), e2), D("resizeHeight", function(e3) {
327
+ return C(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
328
+ }({ pageContext: n2, configureObj: o2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), D("beforeInsertRow", function(e3) {
329
+ return C(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
330
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("afterInsertRow", function(e3) {
331
+ return C(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
332
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("beforeDelete", function(e3) {
333
+ return C(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
334
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("afterDelete", function(e3) {
335
+ return C(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
336
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("beforeEdit", function(e3) {
337
+ return C(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
338
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("beforeRestore", function(e3) {
339
+ return C(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
340
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), D("beforeRestoreValidate", function(e3) {
341
+ return C(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
342
+ }({ pageContext: n2, configureObj: o2 }), e2.lineEditOptions), function(e3, t3, n3) {
343
+ t3 && (n3[e3] = t3);
344
+ }("filterDataEvent", C(null, n2, o2, "filter-data", { pageContext: n2, configureObj: o2 }), e2));
345
+ };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const e = require("agilebuilder-ui/src/utils/request"), t = require("vue-plugin-hiprint"), n = require("../barcode-util.js");
4
+ function o(o2, r2) {
5
+ e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [r2]).then((e2) => {
6
+ const r3 = JSON.parse(e2[0].template), i = [];
7
+ r3.panels.forEach((e3) => {
8
+ e3.printElements.forEach((e4) => {
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i.push(e4.options);
10
+ });
11
+ });
12
+ const l = new t.hiprint.PrintTemplate({ template: r3 }), p = { callback: () => {
13
+ }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, u = {};
14
+ r3.panels[0].printElements.forEach((e3) => {
15
+ if ("datetime" === e3.options.dataType && e3.options.field) {
16
+ const t2 = e3.options.field.substring(6);
17
+ u[t2] = e3.options.dateFormat;
18
+ }
19
+ }), o2.pageContext.pageType ? "list" === o2.pageContext.pageType ? function(e3, t2, o3, a2, r4, i2) {
20
+ const l2 = JSON.parse(JSON.stringify(e3.selections));
21
+ if (l2.forEach((e4) => {
22
+ Object.keys(t2).forEach((t3) => {
23
+ if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
+ e4[t3] = new Date(e4[t3]);
25
+ } catch (e5) {
26
+ console.error(`日期格式化失败: ${e5}`);
27
+ }
28
+ });
29
+ }), o3.length > 0) {
30
+ const e4 = [];
31
+ o3.forEach((t3) => {
32
+ e4.push(function(e5, t4) {
33
+ return new Promise((o4, a3) => {
34
+ const r5 = e5.field.split("."), i3 = [];
35
+ r5.length < 2 && o4([]);
36
+ try {
37
+ s(r5[1]).then((e6) => {
38
+ t4.forEach((t5, o5) => {
39
+ const a4 = { type: r5[0], name: r5[1], value: null, index: o5 };
40
+ a4.value = n.generateCodeByRule(JSON.parse(e6.barcodeModelItems), t5), i3.push(a4);
41
+ }), o4(i3);
42
+ });
43
+ } catch (e6) {
44
+ console.error("获取条码规则失败:", e6), o4([]);
45
+ }
46
+ });
47
+ }(t3, l2));
48
+ }), Promise.all(e4).then((e5) => {
49
+ e5.forEach((e6) => {
50
+ e6.forEach((e7) => {
51
+ const t3 = e7.index, n2 = l2[t3];
52
+ n2[e7.type] || (n2[e7.type] = {}), n2[e7.type][e7.name] = e7.value;
53
+ });
54
+ }), a2.print(l2, r4, i2);
55
+ });
56
+ } else a2.print(l2, r4, i2);
57
+ }(o2, u, i, l, c, p) : "form" === o2.pageContext.pageType && a(o2, i, l, c, p) : a(o2, i, l, c, p);
58
+ });
59
+ }
60
+ function a(e2, t2, o2, a2, r2) {
61
+ if (t2.length > 0) {
62
+ const i = [];
63
+ t2.forEach((t3) => {
64
+ i.push(function(e3, t4) {
65
+ return new Promise((o3, a3) => {
66
+ const r3 = t4.field.split("."), i2 = { type: null, name: null, value: null };
67
+ r3.length < 2 && o3(i2), i2.type = r3[0], i2.name = r3[1];
68
+ try {
69
+ s(i2.name).then((t5) => {
70
+ const a4 = JSON.parse(t5.barcodeModelItems);
71
+ i2.value = n.generateCodeByRule(a4, e3.entity.data), o3(i2);
72
+ });
73
+ } catch (e4) {
74
+ console.error("获取条码规则失败:", e4), o3(i2);
75
+ }
76
+ });
77
+ }(e2.pageContext, t3));
78
+ }), Promise.all(i).then((t3) => {
79
+ const n2 = {};
80
+ t3.forEach((e3) => {
81
+ e3.type && e3.name && e3.value && (n2[e3.type] || (n2[e3.type] = {}), n2[e3.type][e3.name] = e3.value);
82
+ });
83
+ const s2 = { table: {} };
84
+ Object.assign(s2, e2.pageContext.entity, n2), s2.table = e2.pageContext.entity.data, o2.print(s2, a2, r2);
85
+ });
86
+ } else {
87
+ const t3 = { table: {} };
88
+ Object.assign(t3, e2.pageContext.entity), t3.table = e2.pageContext.entity.data, o2.print(t3, a2, r2);
89
+ }
90
+ }
91
+ function s(t2) {
92
+ const n2 = encodeURIComponent(t2);
93
+ return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
94
+ }
95
+ t.disAutoConnect();
96
+ const r = { printLabel: o };
97
+ exports.default = r, exports.printLabel = o;