@gct-paas/excel 0.1.41 → 0.1.42-beta.0

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 (207) hide show
  1. package/README.md +3 -4
  2. package/dist/{BaseComponent-CD_dAL9D.js → BaseComponent-CuX5xLFK.js} +4 -3
  3. package/dist/{VueVideoPlayer-DQQlv_cp.js → VueVideoPlayer-CBBB12Hj.js} +2 -2
  4. package/dist/{align-editor-DchzBHaC.js → align-editor-Df9gS31T.js} +1 -1
  5. package/dist/{barcode-design-BBW5cG3v.js → barcode-design-B34-4xJ9.js} +3 -2
  6. package/dist/base/index.es.js +517 -222
  7. package/dist/{diagonal-design-CawGqmc7.js → diagonal-design-D0HXMI8w.js} +3 -2
  8. package/dist/{dynamic-table-action-Dw7AIthU.js → dynamic-table-action-9sxv3gW5.js} +452 -322
  9. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js} +2296 -593
  10. package/dist/{edit.utils-CXmmCnxE-B7lpVZjb.js → edit.utils-CXmmCnxE-0uJiCs33.js} +1 -1
  11. package/dist/excel.css +611 -723
  12. package/dist/{exceljs.min-DDPQIUli.js → exceljs.min-Doeyz39_.js} +2 -2
  13. package/dist/{font-editor-n8zk8Vt2.js → font-editor-B8A9tDhO.js} +3 -3
  14. package/dist/{image-design-D4mIDz9K.js → image-design-CVyCbbef.js} +3 -8
  15. package/dist/{index-DfFakGrF.js → index-7VROqGqR.js} +3 -2
  16. package/dist/{index-1klMDz7G.js → index-B3hu8heh.js} +3 -2
  17. package/dist/{index-C4t8sSlN.js → index-B7Yt5TSq.js} +2 -1
  18. package/dist/{index-B0u6FHDq.js → index-BLJdXkdZ.js} +5 -4
  19. package/dist/{index-TZy8JxSW.js → index-BOO2K9Vu.js} +4 -3
  20. package/dist/{index-DUztXGMj.js → index-Bb3Ugl3c.js} +3 -2
  21. package/dist/{index-Dh0_kanw.js → index-Bj2qRb0q.js} +2 -1
  22. package/dist/{index-BZ7bC20P.js → index-BwyHByzZ.js} +2 -1
  23. package/dist/{index-Do-QyvWW.js → index-CDObWZ7G.js} +3 -2
  24. package/dist/{index-Bm8wYtHB.js → index-CGU3uK4z.js} +2 -1
  25. package/dist/{index-BW95iBc7.js → index-CMmaJ4Ss.js} +3 -2
  26. package/dist/{index-CYSJt1Zc.js → index-CNmwpU3G.js} +7 -3
  27. package/dist/{index-BMsHMGap.js → index-CS1tP-l0.js} +3 -2
  28. package/dist/{index-4p1VXlOx.js → index-Cn_bmfoD.js} +2 -1
  29. package/dist/{index-C-NpFAft.js → index-CzztJ4fH.js} +4 -3
  30. package/dist/{index-CXnuud67.js → index-D0VBKmKt.js} +3 -2
  31. package/dist/{index-DiWzNeZJ.js → index-DA7GAWZ1.js} +4 -3
  32. package/dist/{index-Boy8--Ns.js → index-DKKIL32g.js} +3 -2
  33. package/dist/{index-DPf5_q0T.js → index-DMVIENZW.js} +4 -3
  34. package/dist/{index-r9t3crs-.js → index-DU4dWvY6.js} +2 -1
  35. package/dist/{index-BcHwRIXW.js → index-D_hAd0MQ.js} +4 -3
  36. package/dist/{index-Ch88zDje.js → index-DuuvFB0e.js} +3 -2
  37. package/dist/{index-CI6Hl1Ns.js → index-FCg2Jzvu.js} +2 -1
  38. package/dist/{index-r0yHBje3.js → index-PSQkEXxq.js} +3 -2
  39. package/dist/{index-CAc9drK5.js → index-R95URjcc.js} +2 -1
  40. package/dist/{index-gHOlYnAA.js → index-RG23XjoT.js} +2 -1
  41. package/dist/{index-S8Dj5ycu.js → index-TeozNhWH.js} +3 -2
  42. package/dist/{index--MetH_r4.js → index-Uy8bXkuC.js} +4 -3
  43. package/dist/{index-DiPWQwMU.js → index-VrLq9hAc.js} +8987 -3728
  44. package/dist/{index-DvMu7-8y.js → index-XE84LVO7.js} +2 -1
  45. package/dist/{index-CmjTSiUa.js → index-dUCz8OdV.js} +3 -2
  46. package/dist/{index-DgybKcgI.js → index-hDsTasdu.js} +3 -2
  47. package/dist/{index-H4f-e99t.js → index-ucaRXWE8.js} +3 -2
  48. package/dist/{index-BWoOPv6-.js → index-vEZ4Yr2u.js} +3 -2
  49. package/dist/index.es.js +52 -46
  50. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DDJetWQU.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-ApLSXGFP.js} +27 -3
  51. package/dist/{pagination-design-lckCQWcK.js → pagination-design-B5DxwV5F.js} +3 -2
  52. package/dist/paper-widget-design-A55mbwYv.js +4 -0
  53. package/dist/{print-runtime-instance-Dckul2Bk.js → print-runtime-instance-BDM-anCd.js} +1 -1
  54. package/dist/{print-snapshot-renderer-lub7u9sp.js → print-snapshot-renderer-kB1Bw7A_.js} +3 -3
  55. package/dist/{qrcode-design-M0HzGVjM.js → qrcode-design-bN48s3rk.js} +1 -1
  56. package/dist/{revo-grid.entry-Dr4S1tgO.js → revo-grid.entry-BXEGtAbW.js} +1 -1
  57. package/dist/{revogr-attribution_7.entry-27u9hxgM.js → revogr-attribution_7.entry-CImeTxBl.js} +3 -3
  58. package/dist/{revogr-clipboard_3.entry-DxjljgJl.js → revogr-clipboard_3.entry-DqcrJ6zB.js} +2 -2
  59. package/dist/{revogr-data_4.entry-CnSalg4D.js → revogr-data_4.entry-Ccdsy3nO.js} +2 -2
  60. package/dist/{revogr-filter-panel.entry-CSsekbYc.js → revogr-filter-panel.entry-B2xM2jvB.js} +1 -1
  61. package/dist/seal-design-B3FBumLr.js +4 -0
  62. package/dist/{serialnumber-design-DUiLiTSj.js → serialnumber-design-BGTOIn2S.js} +1 -1
  63. package/dist/shared/index.es.js +29 -28
  64. package/dist/{single-field-drop-CF_r0dCX.js → single-field-drop-b2b71HAk.js} +2 -3
  65. package/dist/{size-editor-DNMqRicI.js → size-editor-DtX2f2CF.js} +1 -1
  66. package/dist/src/adapter/adapter.d.ts +1 -1
  67. package/dist/src/adapter/index.d.ts +2 -0
  68. package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/inventory-scan-columns.d.ts +1 -1
  69. package/dist/src/{nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts → adapter/web/material-balance-render.d.ts} +1 -1
  70. package/dist/src/{nocode-web-render/src/render/sub-table/material-balance → adapter/web}/material-consume-modal.vue.d.ts +1 -1
  71. package/dist/src/adapter/web/material-consume-render.d.ts +25 -0
  72. package/dist/src/{nocode-web-render/src/render/common → adapter/web}/open-util.d.ts +1 -1
  73. package/dist/src/{nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts → adapter/web/stocktake-render.d.ts} +2 -2
  74. package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/sub-table-render.d.ts +2 -5
  75. package/dist/src/domain/document-business/business/product-release/profile.d.ts +2 -0
  76. package/dist/src/domain/document-business/business/product-release/service.d.ts +2 -0
  77. package/dist/src/domain/document-business/index.d.ts +2 -0
  78. package/dist/src/domain/document-business/registry.d.ts +2 -0
  79. package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
  80. package/dist/src/domain/document-business/types.d.ts +24 -0
  81. package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +2 -0
  82. package/dist/src/domain/field/query-filter.d.ts +15 -0
  83. package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +37 -1
  84. package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +7 -0
  85. package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +12 -0
  86. package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -0
  87. package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +19 -0
  88. package/dist/src/domain/table/design/autofill-expander.d.ts +2 -0
  89. package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +6 -0
  90. package/dist/src/domain/table/index.d.ts +1 -1
  91. package/dist/src/domain/table/types.d.ts +2 -0
  92. package/dist/src/index.d.ts +8 -0
  93. package/dist/src/nocode-base/src/components/document-sub-table-action/dynamic-table-action.vue.d.ts +0 -2
  94. package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +0 -3
  95. package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +0 -4
  96. package/dist/src/nocode-base/src/components/material-consume/types.d.ts +1 -5
  97. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +4 -4
  98. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +1 -4
  99. package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +1 -2
  100. package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +15 -0
  101. package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
  102. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +0 -6
  103. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +1 -28
  104. package/dist/src/nocode-base/src/hooks/render-page/initial-value-data-sources.d.ts +3 -0
  105. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +9 -8
  106. package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +51 -0
  107. package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +3 -0
  108. package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +7 -1
  109. package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +8 -2
  110. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +55 -6
  111. package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +24 -0
  112. package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
  113. package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
  114. package/dist/src/nocode-base/src/interface/transform.d.ts +3 -0
  115. package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
  116. package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
  117. package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
  118. package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
  119. package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +5 -2
  120. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +8 -5
  121. package/dist/src/nocode-base/src/types/common/base.d.ts +8 -2
  122. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +2 -15
  123. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +0 -10
  124. package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
  125. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +1 -1
  126. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +4 -4
  127. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +3 -3
  128. package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
  129. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +144 -0
  130. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +87 -4
  131. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/message-rule-config/rule-modal.vue.d.ts +32 -0
  132. package/dist/src/{nocode-web-render/src/render/parse-rule → online-form/src/views/designer/modules/panel/sub-table/comps}/add-rule-btn.vue.d.ts +1 -1
  133. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +6 -0
  134. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/panel-check-table/select-check-ds-modal.vue.d.ts +3 -3
  135. package/dist/src/online-form/src/views/designer/types/index.d.ts +12 -1
  136. package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +9 -0
  137. package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +7 -0
  138. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +2 -2
  139. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +2 -2
  140. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
  141. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +2 -2
  142. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +2 -2
  143. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +0 -1
  144. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -1
  145. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +1 -4
  146. package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +1 -0
  147. package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
  148. package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
  149. package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +162 -2
  150. package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +41 -0
  151. package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +16 -0
  152. package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
  153. package/dist/src/shared/enum/field-type.d.ts +8 -3
  154. package/dist/src/{nocode-web-render/src → shared}/hooks/useWebUpload.d.ts +1 -1
  155. package/dist/src/shared/index.d.ts +1 -0
  156. package/dist/src/shared/types/index.d.ts +1 -0
  157. package/dist/src/shared/types/upload.d.ts +11 -0
  158. package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
  159. package/dist/{sub-table-factory-D-GcNTOB.js → sub-table-factory-DoEvzrVN.js} +276 -89
  160. package/dist/{text-design-BfZf4B27.js → text-design-BQVBFcI0.js} +3 -2
  161. package/dist/{throttle-Cpk1LoGk-B4SDzSMU.js → throttle-Cpk1LoGk-DR_8z9qq.js} +1 -1
  162. package/dist/{timediff-design-BeO94tLR.js → timediff-design-DioTJEvx.js} +2 -1
  163. package/dist/{trace-like-wrapper-Xc4cr21n.js → trace-like-wrapper-CjxBkfYK.js} +3 -2
  164. package/dist/{value-editor.vue_vue_type_style_index_0_lang-CMpVHBLK.js → value-editor.vue_vue_type_style_index_0_lang-DpfdcyX_.js} +3 -2
  165. package/dist/{widget-barcode-CrfBj8iv.js → widget-barcode-CEn3AYG0.js} +5 -4
  166. package/dist/{widget-diagonal-C3Nho_Um.js → widget-diagonal-DbOhaNpW.js} +4 -4
  167. package/dist/{widget-image-CjsL9QW8.js → widget-image-BGP2w2mj.js} +5 -7
  168. package/dist/{widget-line-BtvpVv_s.js → widget-line-CkSPcw5A.js} +3 -2
  169. package/dist/{widget-pagination-DAUQo2nI.js → widget-pagination-BH0VtWHT.js} +6 -5
  170. package/dist/{widget-power-yUHZ4Hoc.js → widget-power-DuTIvdpR.js} +4 -4
  171. package/dist/{widget-qrcode-DJtT9NaM.js → widget-qrcode-CJJjPnwn.js} +4 -3
  172. package/dist/{widget-rangelimit-BhadVdCu.js → widget-rangelimit-828JH1wm.js} +3 -4
  173. package/dist/{widget-serialnumber-WMHB8nl6.js → widget-serialnumber-CIjY3I-t.js} +1 -1
  174. package/dist/{widget-text-C4dD9JF3.js → widget-text-C_Ja4yWN.js} +5 -5
  175. package/dist/{widget-timediff-C9d8_3hY.js → widget-timediff-CjmATkLS.js} +3 -2
  176. package/package.json +2 -6
  177. package/dist/AntdIcon-DCIaV352.js +0 -1108
  178. package/dist/index-_Ec5LAW9.js +0 -4353
  179. package/dist/mb-render-sgVmAe6_.js +0 -276
  180. package/dist/paper-widget-design-Nd5VjI7n.js +0 -4
  181. package/dist/seal-design-kuAsmNq1.js +0 -4
  182. package/dist/src/nocode-web-render/src/components/print-fill-background-selector.vue.d.ts +0 -2
  183. package/dist/src/nocode-web-render/src/hooks/index.d.ts +0 -2
  184. package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +0 -15
  185. package/dist/src/nocode-web-render/src/index.d.ts +0 -6
  186. package/dist/src/nocode-web-render/src/logic/index.d.ts +0 -1
  187. package/dist/src/nocode-web-render/src/render/common/index.d.ts +0 -2
  188. package/dist/src/nocode-web-render/src/render/common/modal-manager.d.ts +0 -20
  189. package/dist/src/nocode-web-render/src/render/index.d.ts +0 -10
  190. package/dist/src/nocode-web-render/src/render/parse-rule/index.d.ts +0 -3
  191. package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +0 -15
  192. package/dist/src/nocode-web-render/src/render/sub-table/allocate/allocate-web-render.d.ts +0 -4
  193. package/dist/src/nocode-web-render/src/render/sub-table/allocate/index.d.ts +0 -1
  194. package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +0 -15
  195. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +0 -19
  196. package/dist/src/nocode-web-render/src/render/sub-table/index.d.ts +0 -3
  197. package/dist/src/nocode-web-render/src/render/sub-table/material-balance/index.d.ts +0 -1
  198. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/bom-modal.vue.d.ts +0 -11
  199. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +0 -4
  200. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +0 -42
  201. package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +0 -2
  202. package/dist/src/nocode-web-render/src/types/hooks/index.d.ts +0 -1
  203. package/dist/src/nocode-web-render/src/types/index.d.ts +0 -1
  204. package/dist/web-render/index.d.ts +0 -1
  205. package/dist/web-render/index.es.js +0 -595
  206. /package/dist/src/{nocode-web-render/src/adapter/index.d.ts → adapter/web/setup.d.ts} +0 -0
  207. /package/dist/src/{nocode-web-render/src/logic/utils.d.ts → adapter/web/upload.d.ts} +0 -0
@@ -1,13 +1,13 @@
1
- import { E as api, _ as PlatformEnum, F as FIELD_TYPE, bd as getRowId, be as findRuntimeTableRow, b6 as RenderModeEnum, C as ComponentTypeEnum, ax as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, at as RangeValidateMode, aG as Dependency_ENUM, aF as ASSIGNMENTSTRATEGY_ENUM, bo as fetchHistoryConsume, bp as isBomGranted, aU as renderUtils, bn as uuid2, bq as parseFrontConfig, aJ as CheckDsTypeEnum, aD as transformUtils, br as baseDataUtils, X as FormTypeEnum, bs as normalizeToArray, bt as safeParseArray, bu as BpmnNodeTypeEnum, bv as mergeByMultiKey, a7 as _export_sfc, bw as evaluateInspectionDecisionRule, bx as useNocodeEmitter, by as commonUtils, aH as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js";
2
- import { aM, aO, a$, a0, bz, bA, B, bB, y, af, bC, bD, bE, bc, bF, aR, ay, aN, aK, aL, bG, ag, ak, bH, bI, aE, a2, ae, az, aP, $, ai, L, bJ, bK, bL, O, p, P, a9, o, Q, A, bM, bN, au, a5, a1, a3, a4, a6, f, bO, aj, an, ah, bP, bQ, bR, bS, bb, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, bf, c1, c2, aX, c3, b0, b1, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, aW, ce, b2, b9, cf, cg, al, t, ch, aQ, ci, cj, bg, aY } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js";
3
- import { a4 as getRuntimeDataFieldId, Q as parseRuntimeFieldPath, a5 as buildRuntimeFieldPath, k as findFieldProfile, a6 as resolveRuntimeFieldProps, a7 as resolveRuntimeFieldState, a8 as assembleRules, a9 as isAttachFieldActive, R as calculateFormula, aa as getRuntimeDependencyOutputKey, ab as isRowAddedInCurrentFormChange, ac as resolveFormulaData, d as getParseFormulaVarInfos, y as MaterialConsumptionPatternEnum, ad as MaterialConsumeTableController, ae as setFormulaParamsConfig, af as normalizeRuntime, X as createRuntimeInstanceContext, ag as initializeSealFields, W as RuntimeFormStateStore, ah as RuntimeSheetService, g as getBusinessFieldKey, ai as validateObjectBomQtyOnSubmit, aj as areValidationCommentsEqual, ak as closeValidatorPopovers, al as enrichFormChangeRowDetails, N as NCB_PROVIDE, Y as RuntimeInstanceRegistry, am as useMaterialBalance, an as collectFormChangeFieldLocations, ao as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-Dw7AIthU.js";
4
- import { B as B2, ap, m, a3 as a32, aq, a1 as a12, ar, a2 as a22, H, as, at, au as au2, av, aw, M, a, ax, b, ay as ay2, az as az2, aA, aB, aC, aD, aE as aE2, aF, F, aG, w, aH, e, aI, aJ, aK as aK2, aL as aL2, v, G, aM as aM2, aN as aN2, aO as aO2, aP as aP2, o as o2, I, l, aQ as aQ2, aR as aR2, aS, aT, aU, aV, aW as aW2, A as A2, x, aX as aX2, C, r, aY as aY2, s, aZ, T, U, u, E, V, q, t as t2, S, p as p2, z } from "../dynamic-table-action-Dw7AIthU.js";
5
- import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
6
- import { isEqual, cloneDeep, defaults, isEmpty, merge } from "lodash-es";
1
+ import { p as api, a4 as PlatformEnum, by as getRuntimeDataFieldId, F as FIELD_TYPE, bz as listRuntimeFieldRows, bm as getRowId, bn as findRuntimeTableRow, bl as parseRuntimeFieldPath, bA as buildRuntimeFieldPath, bo as RenderModeEnum, C as ComponentTypeEnum, aE as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, aA as RangeValidateMode, bB as isAttachFieldActive, aQ as Dependency_ENUM, aP as ASSIGNMENTSTRATEGY_ENUM, bC as fetchHistoryConsume, bD as isBomGranted, b3 as renderUtils, bx as uuid2, bE as parseFrontConfig, aT as CheckDsTypeEnum, aN as transformUtils, bF as DesignerDefaultValues, bG as baseDataUtils, a1 as FormTypeEnum, bH as normalizeToArray, M as getBusinessFieldKey, bI as safeParseArray, bJ as BpmnNodeTypeEnum, bK as mergeByMultiKey, ae as _export_sfc, bL as evaluateInspectionDecisionRule, bM as RuntimeDefaultValueValidation, bN as useNocodeEmitter, bO as commonUtils, aR as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
2
+ import { aW, aY, ba, a6, bP, bQ, B, bR, H, am, bS, bT, bU, bk, bV, a$, aF, aX, aU, aV, bW, an, ar, bX, bY, aO, a8, al, aG, aZ, a5, ap, L, bZ, b_, b$, O, t, P, ag, q, Y, K, c0, c1, aB, ab, a7, a9, aa, ac, h, c2, aq, au, ao, c3, c4, c5, c6, aJ, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, bp, ch, ci, b6, cj, bb, bc, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, b5, cu, bd, aK, cv, cw, as, y, cx, a_, cy, cz, bq, b7 } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
3
+ import { m as findFieldProfile, a7 as resolveRuntimeFieldProps, a8 as resolveRuntimeFieldState, a9 as assembleRules, T as calculateFormula, aa as getRuntimeDependencyOutputKey, ab as isRowAddedInCurrentFormChange, ac as resolveFormulaData, g as getParseFormulaVarInfos, A as MaterialConsumptionPatternEnum, ad as MaterialConsumeTableController, ae as setFormulaParamsConfig, af as normalizeRuntime, Z as createRuntimeInstanceContext, ag as initializeSealFields, Y as RuntimeFormStateStore, ah as RuntimeSheetService, ai as validateObjectBomQtyOnSubmit, aj as areValidationCommentsEqual, ak as closeValidatorPopovers, al as enrichFormChangeRowDetails, S as NCB_PROVIDE, _ as RuntimeInstanceRegistry, am as useMaterialBalance, an as collectFormChangeFieldLocations, ao as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-9sxv3gW5.js";
4
+ import { ap as ap2, B as B2, aq as aq2, p, a6 as a62, ar as ar2, a4, as as as2, a5 as a52, K as K2, at, F, au as au2, av, aw, ax, M, a, a1, ay, a2, d, az, aA, aB as aB2, aC, aD, aE, aF as aF2, aG as aG2, I, aH, y as y2, aI, f, aJ as aJ2, aK as aK2, aL, aM, x, J, aN, aO as aO2, aP, aQ, q as q2, L as L2, o, aR, aS, aT, aU as aU2, aV as aV2, aW as aW2, aX as aX2, E, z, aY as aY2, G, v, aZ as aZ2, t as t2, a_ as a_2, V, W, u, l, H as H2, X, s, w, U, r, C } from "../dynamic-table-action-9sxv3gW5.js";
5
+ import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, shallowRef, markRaw, ref, provide, onUnmounted, reactive, onBeforeUnmount } from "vue";
6
+ import { isEqual, cloneDeep, defaults, isEmpty, merge, get } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-D-GcNTOB.js";
9
- import { A as A3, D, M as M2, a as a7, P as P2, b as b3, c, d, e as e2, W, f as f2, g, h } from "../sub-table-factory-D-GcNTOB.js";
10
- import { B as B3, F as F2, M as M3, a as a8, u as u2 } from "../mb-render-sgVmAe6_.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-DoEvzrVN.js";
9
+ import { A, D, M as M2, a as a3, P as P2, b, c, d as d2, e, W as W2, f as f2, g, h as h2 } from "../sub-table-factory-DoEvzrVN.js";
10
+ import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, buildFieldFillTableRows, buildFieldFillRows, isFieldFillTargetProtected, getFieldFillTable, getFieldFillColumn, buildDataSourceContext } from "@gct-paas/form-base";
11
11
  const InstanceStatusValues = {
12
12
  /** 作废状态 */
13
13
  ABANDON: "ABANDON",
@@ -154,23 +154,31 @@ async function fetchOperationReceiveQty(paramsConfig) {
154
154
  const num = Number(raw);
155
155
  return Number.isNaN(num) ? void 0 : num;
156
156
  }
157
- function listRuntimeFieldRows(record, subFieldKey, targetFieldId) {
158
- if (!subFieldKey) {
159
- return [{ row: record.formState.state }];
160
- }
161
- const value = record.formState.state[subFieldKey];
162
- const table2DInfo = [
163
- ...record.context.businessIndex.subTable2DList,
164
- ...record.context.businessIndex.checkTable2DList
165
- ].find((item) => item.rowSubFieldKey === subFieldKey);
166
- const isChild = table2DInfo && (table2DInfo.crossFieldKeys ?? []).includes(targetFieldId);
167
- return Array.isArray(value) ? value.flatMap((row) => {
168
- if (row?.deleted_) return [];
169
- if (!isChild) return [{ row }];
170
- return (Array.isArray(row._2DTABLE_) ? row._2DTABLE_ : []).flatMap(
171
- (child) => child?.deleted_ ? [] : [{ row: child, parentRow: row }]
172
- );
173
- }) : [];
157
+ const INSPECTION_MODULE_QTY_API = {
158
+ modelCategory: "entity",
159
+ modelKey: "em_inspection_list",
160
+ bsKey: "getById"
161
+ };
162
+ function isRecord(value) {
163
+ return value !== null && typeof value === "object" && !Array.isArray(value);
164
+ }
165
+ function parseInspectionModuleQty(res) {
166
+ if (!isRecord(res) || res.ok === false) return void 0;
167
+ const payload = isRecord(res.data) ? res.data : res;
168
+ const row = isRecord(payload.data) ? payload.data : payload;
169
+ const raw = row.inspection_number_;
170
+ if (typeof raw !== "number" && typeof raw !== "string") return void 0;
171
+ if (typeof raw === "string" && raw.trim() === "") return void 0;
172
+ const qty = Number(raw);
173
+ return Number.isFinite(qty) ? qty : void 0;
174
+ }
175
+ async function fetchInspectionModuleQty(txnInstId) {
176
+ if (txnInstId == null || txnInstId === "") return void 0;
177
+ const res = await api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
178
+ INSPECTION_MODULE_QTY_API,
179
+ { id: txnInstId }
180
+ );
181
+ return parseInspectionModuleQty(res);
174
182
  }
175
183
  const isPresent = (value) => value !== void 0 && value !== null && value !== "";
176
184
  class RuntimeFieldInitializer {
@@ -212,7 +220,7 @@ class RuntimeFieldInitializer {
212
220
  for (const { widget, sheetId, referenceInfo } of this.record.fields.allWidgets()) {
213
221
  const props = widget.props;
214
222
  const fieldId = getRuntimeDataFieldId(props);
215
- const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
223
+ const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.fieldType === FIELD_TYPE.INSPECTION_MODULE_QTY || props.bizType === FIELD_TYPE.INSPECTION_MODULE_QTY ? "inspection" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
216
224
  if (!kind || !fieldId || props.isFieldModel) continue;
217
225
  for (const { row } of listRuntimeFieldRows(
218
226
  this.record,
@@ -224,11 +232,13 @@ class RuntimeFieldInitializer {
224
232
  if (this.initialized.get(key) === toRaw(row)) continue;
225
233
  this.initialized.set(key, toRaw(row));
226
234
  if (props.subFieldKey ? row.id_ : (this.info.instanceStatus ?? this.metadata.instanceStatus) !== InstanceStatusValues.UNFILLED) {
227
- if (kind !== "recordNo") continue;
235
+ if (kind !== "recordNo" && kind !== "inspection") continue;
228
236
  }
229
237
  const previous = row[fieldId];
230
238
  if (kind === "udi" && isPresent(previous)) continue;
231
239
  const path = this.record.formState.getFieldPath(row, fieldId);
240
+ if (kind === "inspection" && (isPresent(previous) || this.record.formState.isUserModified(path)))
241
+ continue;
232
242
  this.tasks.add(key);
233
243
  const task = this.record.asyncTasks.run(
234
244
  key,
@@ -250,7 +260,11 @@ class RuntimeFieldInitializer {
250
260
  sheetId,
251
261
  blockOnFailure: false
252
262
  }
253
- ).finally(() => this.tasks.delete(key));
263
+ ).finally(() => {
264
+ this.tasks.delete(key);
265
+ if (kind === "inspection" && this.initialized.get(key) === toRaw(row) && !isPresent(row[fieldId]))
266
+ this.initialized.delete(key);
267
+ });
254
268
  pending.push(task);
255
269
  }
256
270
  }
@@ -262,18 +276,31 @@ class RuntimeFieldInitializer {
262
276
  }
263
277
  await Promise.allSettled(pending);
264
278
  }
265
- request(key, fetch) {
279
+ request(key, fetch, cacheResult = true) {
266
280
  const existing = this.requests.get(key);
267
281
  if (existing) return existing;
268
- const task = fetch().catch((error) => {
269
- this.requests.delete(key);
270
- throw error;
271
- });
282
+ const task = fetch().then(
283
+ (value) => {
284
+ if (!cacheResult) this.requests.delete(key);
285
+ return value;
286
+ },
287
+ (error) => {
288
+ this.requests.delete(key);
289
+ throw error;
290
+ }
291
+ );
272
292
  this.requests.set(key, task);
273
293
  return task;
274
294
  }
275
295
  async readDefault(kind, props) {
276
296
  if (kind === "recordNo") return props.newSpecificConfig.newSnNo;
297
+ if (kind === "inspection") {
298
+ return this.request(
299
+ `inspection:${this.metadata.txnInstId ?? ""}`,
300
+ () => fetchInspectionModuleQty(this.metadata.txnInstId),
301
+ false
302
+ );
303
+ }
277
304
  if (kind === "count") {
278
305
  const params = { ...JSON.parse(this.metadata.params || "{}"), ...this.info.paramsConfig };
279
306
  const name = params.materialNo || this.metadata.materialNo;
@@ -509,7 +536,8 @@ class RuntimeRuleCompiler {
509
536
  props,
510
537
  widget.id,
511
538
  entry.row,
512
- entry.parentRow
539
+ entry.parentRow,
540
+ this.basicInfo.formChangeStatus
513
541
  );
514
542
  const state = resolveRuntimeFieldState(effectiveProps, this.basicInfo);
515
543
  const rules = assembleRules({
@@ -610,7 +638,8 @@ class RuntimeRuleCompiler {
610
638
  props,
611
639
  widget.id,
612
640
  entry.row,
613
- entry.parentRow
641
+ entry.parentRow,
642
+ this.basicInfo.formChangeStatus
614
643
  );
615
644
  return [
616
645
  entry.key,
@@ -1171,6 +1200,39 @@ async function getModelQueries(opts) {
1171
1200
  console.log("getModelQueries", res);
1172
1201
  return res;
1173
1202
  }
1203
+ async function fillSterilizationDate(txnInstId, metadata, formState) {
1204
+ if (txnInstId == null || txnInstId === "") return;
1205
+ const fields = metadata.fields.filter(({ widget }) => {
1206
+ const props = widget?.props;
1207
+ return props?.fieldType === FIELD_TYPE.STERILIZATION_DATE || props?.bizType === FIELD_TYPE.STERILIZATION_DATE;
1208
+ });
1209
+ if (!fields.length) return;
1210
+ const response = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
1211
+ { modelCategory: "entity", modelKey: "em_sterilization_list", bsKey: "getOne" },
1212
+ {},
1213
+ { query: { txn_inst_id_: txnInstId } }
1214
+ );
1215
+ const data = response && "data" in response ? response.data : void 0;
1216
+ const record = Array.isArray(data) ? data[0] : data;
1217
+ const date = record && typeof record === "object" && "sterilization_date_" in record ? record.sterilization_date_ : void 0;
1218
+ if (date == null || date === "") return;
1219
+ fields.forEach(({ widget, subFieldKey }) => {
1220
+ const field = getRuntimeDataFieldId(widget?.props);
1221
+ if (!field) return;
1222
+ if (subFieldKey) {
1223
+ const rows = formState[subFieldKey];
1224
+ if (Array.isArray(rows)) {
1225
+ rows.forEach((row) => {
1226
+ if (row && typeof row === "object" && !row[field]) {
1227
+ row[field] = date;
1228
+ }
1229
+ });
1230
+ }
1231
+ } else {
1232
+ if (!formState[field]) formState[field] = date;
1233
+ }
1234
+ });
1235
+ }
1174
1236
  function uniqueItems(items, getKey) {
1175
1237
  return Array.from(new Map(items.map((item) => [getKey(item), item])).values());
1176
1238
  }
@@ -1286,12 +1348,13 @@ function assertUniqueSubTableOwnership(sheets) {
1286
1348
  });
1287
1349
  }
1288
1350
  function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1289
- async function initializeRuntimeInstance(id, result) {
1351
+ async function initializeRuntimeInstance(id, result, options = {}) {
1290
1352
  if (isEmpty(result)) return;
1291
1353
  const { selfInfo, paramsConfig, fillModeType } = result || {};
1292
1354
  setFormulaParamsConfig({
1293
1355
  routingParamList: selfInfo?.routingParamList || [],
1294
- inspectionParamList: selfInfo?.inspectionParamList || []
1356
+ inspectionParamList: selfInfo?.inspectionParamList || [],
1357
+ deviceParamList: selfInfo?.deviceParamList || []
1295
1358
  });
1296
1359
  let runtimeFormStateStore;
1297
1360
  let scriptRunner;
@@ -1526,7 +1589,9 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1526
1589
  window.NocodeAdapter.openUtil?.message({ type: "warning", content, duration: 8 });
1527
1590
  }
1528
1591
  });
1592
+ const defaultValueOrigins = new DesignerDefaultValues();
1529
1593
  const defaultDataMap = renderUtils.getDefaultValueMapByField({
1594
+ onDesignerDefault: (field, value) => defaultValueOrigins.add(field.subFieldKey, field.fieldId, value),
1530
1595
  objectProductDefaults,
1531
1596
  defaultValueFields: fieldInfoMap.useDefaultValueFields,
1532
1597
  mainMaterialNo: paramsConfig?.materialNo || selfInfo.materialNo,
@@ -1556,6 +1621,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1556
1621
  tmplBomC.handleDefaultMap(defaultDataMap);
1557
1622
  runtimeContext.defaultData = defaultDataMap;
1558
1623
  const defaultData = transformUtils.getDefaultData({
1624
+ defaultValueOrigins,
1559
1625
  defaultDataMap,
1560
1626
  subTableInfo,
1561
1627
  viewMode: result.fillModeType,
@@ -1594,6 +1660,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1594
1660
  isMockReport: payload.isMockReport
1595
1661
  });
1596
1662
  const formState = transformUtils.conversionFormState({
1663
+ defaultValueOrigins,
1597
1664
  defaultData,
1598
1665
  paramData,
1599
1666
  customData,
@@ -1611,6 +1678,9 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1611
1678
  ]
1612
1679
  });
1613
1680
  if (fillModeType === RenderModeEnum.FormMode) {
1681
+ if (options.initializeValues !== false && !payload.isMockReport) {
1682
+ await fillSterilizationDate(selfInfo.txnInstId, fieldInfoMap.fieldMetadata, formState);
1683
+ }
1614
1684
  const floatingFields = sheetEntries.flatMap((entry) => {
1615
1685
  const ids = entry.dataCenter[ComponentTypeEnum.PAPER]?.props?.floatingFieldIds ?? [];
1616
1686
  return ids.map((fieldId) => entry.dataCenter[fieldId]).filter(Boolean);
@@ -1690,6 +1760,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1690
1760
  // 注册表显式接收初始化阶段创建的 Store,避免通过 context.services 中转。
1691
1761
  runtimeFormStateStore,
1692
1762
  runtimeFieldMetadata: fieldInfoMap.fieldMetadata,
1763
+ defaultValueOrigins,
1693
1764
  // 与 Store 一起显式移交给实例记录,basicInfo 不再携带脚本服务。
1694
1765
  scriptRunner,
1695
1766
  basicInfo: {
@@ -1726,7 +1797,9 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1726
1797
  productSearchFields: payload?.deviceConfig?.defaultProductSearchFields ?? "",
1727
1798
  showPrintFieldBg: paramsConfig?.showPrintFieldBg,
1728
1799
  paramsConfig,
1729
- instanceStatus: selfInfo.instanceStatus
1800
+ businessType: selfInfo.businessType,
1801
+ instanceStatus: selfInfo.instanceStatus,
1802
+ dataStatus: selfInfo.dataStatus
1730
1803
  },
1731
1804
  selfInfo: runtimeSelfInfo
1732
1805
  };
@@ -1771,7 +1844,6 @@ function bindRuntimeBusinessServices(runtimeRegistry, record, dataStatus) {
1771
1844
  if (!controller) continue;
1772
1845
  const field = item.masterSubField;
1773
1846
  controller.bindRuntime({
1774
- ownerId: uniqueId,
1775
1847
  tableDataRef: computed({
1776
1848
  get: () => record.formState.state[field] ?? [],
1777
1849
  set: (val) => {
@@ -2471,6 +2543,7 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2471
2543
  );
2472
2544
  if (!isCurrent() || runtimeRegistry.get(uniqueId) !== record) return;
2473
2545
  syncInspectionDecisionRule(uniqueId);
2546
+ record.defaultValueValidation?.requestCheck();
2474
2547
  await record.validation.validate("display");
2475
2548
  });
2476
2549
  await record.controller.waitUntilPrepared();
@@ -2483,6 +2556,198 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2483
2556
  prepareInitialView
2484
2557
  };
2485
2558
  }
2559
+ function createRuntimeDataSourceBinding(registry, payload) {
2560
+ const dataSourceManagerMap = shallowRef({});
2561
+ async function bindDataSources(record, info, selfInfo) {
2562
+ if (payload.isMockReport || !["instance", "batchInstance"].includes(payload.factoryType))
2563
+ return;
2564
+ const isDetail = () => typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
2565
+ if (isDetail()) return;
2566
+ const { context, formState } = record;
2567
+ const { uniqueId, formConfig } = context;
2568
+ const canExecute = () => registry.get(uniqueId) === record && info.renderModeType === RenderModeEnum.FormMode && !isDetail();
2569
+ const getContext = () => buildDataSourceContext({ parameters: info.paramsConfig ?? {}, instance: selfInfo });
2570
+ const manager = markRaw(
2571
+ createDataSourceManager({
2572
+ canExecute,
2573
+ initializeOnEnable: false,
2574
+ sources: formConfig.dataSources ?? [],
2575
+ onManualLoad: (key) => fieldFillRuntime?.reapplyDataSource(key),
2576
+ getContext,
2577
+ getInstanceId: () => info.key,
2578
+ getForm: () => formState.state,
2579
+ adapters: payload.dataSourceAdapters
2580
+ })
2581
+ );
2582
+ let taskSequence = 0;
2583
+ async function track(execute) {
2584
+ const result = await record.asyncTasks.run(
2585
+ `data-source:${uniqueId}:${++taskSequence}`,
2586
+ async () => {
2587
+ try {
2588
+ return { ok: true, value: await execute() };
2589
+ } catch (error) {
2590
+ return { ok: false, error };
2591
+ }
2592
+ }
2593
+ );
2594
+ if (!result) throw new Error(`数源实例已释放:${uniqueId}`);
2595
+ if (!result.ok) throw result.error;
2596
+ return result.value;
2597
+ }
2598
+ const exposedManager = markRaw({
2599
+ ...manager,
2600
+ query: (...args) => track(() => manager.query(...args)),
2601
+ reload: (...args) => track(() => manager.reload(...args)),
2602
+ reloadAll: () => track(() => manager.reloadAll()),
2603
+ queryOnValueChange: (...args) => track(() => manager.queryOnValueChange(...args)),
2604
+ initialize: () => track(() => manager.initialize())
2605
+ });
2606
+ const protectedTargets = getLegacyFieldFillTargets(formConfig);
2607
+ const targets = /* @__PURE__ */ new Map();
2608
+ for (const { widget } of record.fields.allWidgets()) {
2609
+ const config = widget.props;
2610
+ const fieldKey = config.field;
2611
+ if (fieldKey && (config.subFieldKey || !config.subModelKey)) {
2612
+ const key = config.subFieldKey ? `${config.subFieldKey}.${fieldKey}` : fieldKey;
2613
+ targets.set(key, {
2614
+ table: config.subFieldKey,
2615
+ field: config.isFieldModel ? config.fieldLink || fieldKey : fieldKey,
2616
+ isFieldModel: !!config.isFieldModel
2617
+ });
2618
+ if (config.componentDependency?.configDependency?.assignment?.expression) {
2619
+ protectedTargets.add(key);
2620
+ }
2621
+ }
2622
+ if (config.enableAutofill !== false) {
2623
+ for (const rule of config.autofillRules ?? []) {
2624
+ if (rule.toField)
2625
+ protectedTargets.add(
2626
+ rule.toSubModel && rule.toSubFieldKey ? `${rule.toSubFieldKey}.${rule.toField}` : rule.toField
2627
+ );
2628
+ }
2629
+ }
2630
+ }
2631
+ const tableColumns = /* @__PURE__ */ new Map();
2632
+ for (const [key, target] of targets) {
2633
+ if (!target.table) continue;
2634
+ const columns = tableColumns.get(target.table) ?? /* @__PURE__ */ new Map();
2635
+ columns.set(key.slice(target.table.length + 1), target.isFieldModel ? `_OPCT.${target.field}` : target.field);
2636
+ tableColumns.set(target.table, columns);
2637
+ }
2638
+ for (const table of tableColumns.keys()) {
2639
+ targets.set(table, { field: table, isFieldModel: false });
2640
+ }
2641
+ const fieldFillRuntime = markRaw(
2642
+ createFieldFillRuntime({
2643
+ preserveExistingValues: true,
2644
+ fills: formConfig.fieldFills ?? [],
2645
+ manager,
2646
+ getContext,
2647
+ getForm: () => formState.state,
2648
+ getFormField: (key) => {
2649
+ const columns = tableColumns.get(key);
2650
+ if (columns) return getFieldFillTable(formState.state[key], columns);
2651
+ const target = targets.get(key);
2652
+ if (target?.table)
2653
+ return getFieldFillColumn(
2654
+ formState.state[target.table],
2655
+ target.isFieldModel ? `_OPCT.${target.field}` : target.field
2656
+ );
2657
+ return target?.isFieldModel ? formState.state._OPCT?.[target.field] : get(formState.state, key);
2658
+ },
2659
+ hasTargetField: (key) => targets.has(key),
2660
+ canWrite: (key) => canExecute() && targets.has(key) && !isFieldFillTargetProtected(key, protectedTargets, (field) => {
2661
+ const target = targets.get(field);
2662
+ const path = target?.isFieldModel ? `_OPCT.${target.field}` : target?.field ?? field;
2663
+ return target?.table ? `${target.table}.${path}` : path;
2664
+ }),
2665
+ setField: (key, value, collection) => {
2666
+ if (registry.get(uniqueId) !== record) throw new Error(`字段填充实例已释放:${uniqueId}`);
2667
+ const target = targets.get(key);
2668
+ const columns = tableColumns.get(key);
2669
+ if (columns) {
2670
+ formState.setField(key, buildFieldFillTableRows(formState.state[key], value, columns), "async");
2671
+ } else if (target.table) {
2672
+ const field = target.isFieldModel ? `_OPCT.${target.field}` : target.field;
2673
+ formState.setField(
2674
+ target.table,
2675
+ buildFieldFillRows(formState.state[target.table], field, value, collection),
2676
+ "async"
2677
+ );
2678
+ } else if (target.isFieldModel) {
2679
+ if (!formState.state._OPCT) formState.setField("_OPCT", { _DICT: {} }, "async");
2680
+ formState.setObjectField(
2681
+ formState.state._OPCT,
2682
+ target.field,
2683
+ value,
2684
+ "async",
2685
+ `_OPCT.${target.field}`
2686
+ );
2687
+ } else {
2688
+ formState.setField(target.field, value, "async");
2689
+ }
2690
+ }
2691
+ })
2692
+ );
2693
+ let initializationStarted = false;
2694
+ async function initializeOnce() {
2695
+ if (initializationStarted || !canExecute()) return;
2696
+ initializationStarted = true;
2697
+ try {
2698
+ await exposedManager.initialize();
2699
+ } catch (error) {
2700
+ initializationStarted = false;
2701
+ throw error;
2702
+ }
2703
+ }
2704
+ const stopModeWatch = watch(
2705
+ canExecute,
2706
+ (enabled) => {
2707
+ if (enabled) void initializeOnce().catch(() => void 0);
2708
+ },
2709
+ { flush: "sync" }
2710
+ );
2711
+ record.dataSourceManager = exposedManager;
2712
+ dataSourceManagerMap.value = { ...dataSourceManagerMap.value, [uniqueId]: exposedManager };
2713
+ registry.registerDisposable(uniqueId, () => {
2714
+ stopModeWatch();
2715
+ record.dataSourceManager = void 0;
2716
+ fieldFillRuntime?.dispose();
2717
+ manager.dispose();
2718
+ const { [uniqueId]: _, ...rest } = dataSourceManagerMap.value;
2719
+ dataSourceManagerMap.value = rest;
2720
+ });
2721
+ await initializeOnce();
2722
+ }
2723
+ return { dataSourceManagerMap, bindDataSources };
2724
+ }
2725
+ async function queryInitialValueDataSources(record) {
2726
+ const manager = record.dataSourceManager;
2727
+ if (!manager?.canExecute()) return;
2728
+ const keys = /* @__PURE__ */ new Set();
2729
+ for (const { widget, referenceInfo } of record.fields.allWidgets()) {
2730
+ const props = widget.props;
2731
+ const bindings = props.valueChangeDataSourceKeys;
2732
+ if (!bindings?.length) continue;
2733
+ const field = getRuntimeDataFieldId(props);
2734
+ if (!field) continue;
2735
+ const path = props.isFieldModel ? `_OPCT.${field}` : field;
2736
+ const present = listRuntimeFieldRows(
2737
+ record,
2738
+ props.subFieldKey,
2739
+ referenceInfo?.scopeFieldId ?? field
2740
+ ).some(({ row }) => {
2741
+ const value = get(row, path);
2742
+ return value != null && value !== "" && (!Array.isArray(value) || value.length > 0);
2743
+ });
2744
+ if (!present) continue;
2745
+ for (const key of bindings) {
2746
+ if (manager.states[key]?.status === "idle") keys.add(key);
2747
+ }
2748
+ }
2749
+ if (keys.size) await manager.queryOnValueChange([...keys]);
2750
+ }
2486
2751
  function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
2487
2752
  const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
2488
2753
  const record = runtimeRegistry.require(uniqueId);
@@ -2587,6 +2852,10 @@ function useRenderPageFactory(props, payload) {
2587
2852
  const finisher = ref(0);
2588
2853
  const runtimeRegistry = new RuntimeInstanceRegistry();
2589
2854
  provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
2855
+ const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
2856
+ runtimeRegistry,
2857
+ payload
2858
+ );
2590
2859
  const basicInfoList = ref([]);
2591
2860
  const selfInfoList = ref([]);
2592
2861
  const { getConsumeData } = useMaterialBalance();
@@ -2625,13 +2894,21 @@ function useRenderPageFactory(props, payload) {
2625
2894
  payload,
2626
2895
  getConsumeData
2627
2896
  );
2897
+ const initializedInstanceIds = /* @__PURE__ */ new Set();
2898
+ let currentInstanceIdsKey;
2628
2899
  const getInstanceData = createRuntimeRequestSource(props, payload);
2629
2900
  const pipeline = createRuntimeLoadPipeline(runtimeRegistry.loadState, {
2630
2901
  request: getInstanceData,
2631
- prepare: (sources) => prepareRuntimeBatch(sources, initializeRuntimeInstance),
2902
+ prepare: (sources) => prepareRuntimeBatch(
2903
+ sources,
2904
+ (id, source) => initializeRuntimeInstance(id, source, {
2905
+ initializeValues: !initializedInstanceIds.has(id)
2906
+ })
2907
+ ),
2632
2908
  install: async (prepared, isCurrent) => {
2633
2909
  clear();
2634
2910
  const installed = [];
2911
+ const dataSourceBindings = [];
2635
2912
  const installedSelfInfos = /* @__PURE__ */ new Set();
2636
2913
  try {
2637
2914
  for (const res of prepared) {
@@ -2664,16 +2941,25 @@ function useRenderPageFactory(props, payload) {
2664
2941
  basicInfoList.value.push(res.basicInfo);
2665
2942
  selfInfoList.value.push(res.selfInfo);
2666
2943
  installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
2667
- record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactive(res.basicInfo)));
2944
+ const reactiveInfo = reactive(res.basicInfo);
2945
+ record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
2668
2946
  bindRuntimeValidation(uniqueId);
2669
2947
  bindFormValidationSync(uniqueId);
2670
2948
  record.fieldInitializer = markRaw(
2671
2949
  new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
2672
2950
  );
2951
+ record.defaultValueValidation = markRaw(
2952
+ new RuntimeDefaultValueValidation(record, reactiveInfo, res.defaultValueOrigins)
2953
+ );
2673
2954
  bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
2955
+ dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
2674
2956
  }
2957
+ await Promise.all(dataSourceBindings);
2958
+ if (!isCurrent()) return;
2675
2959
  await Promise.all(installed.map(prepareInitialView));
2676
2960
  if (!isCurrent()) return;
2961
+ await Promise.all(installed.map(queryInitialValueDataSources));
2962
+ if (!isCurrent()) return;
2677
2963
  const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
2678
2964
  if (selfId)
2679
2965
  await payload.onFinisher?.(props.selfId, findBasicInsInfo(selfId)?.renderModeType);
@@ -2684,7 +2970,10 @@ function useRenderPageFactory(props, payload) {
2684
2970
  record.formState.markClean();
2685
2971
  payload.onFormStateReady?.(record.formState);
2686
2972
  }
2687
- if (isCurrent()) finisher.value++;
2973
+ if (isCurrent()) {
2974
+ prepared.forEach(({ basicInfo }) => initializedInstanceIds.add(basicInfo.key));
2975
+ finisher.value++;
2976
+ }
2688
2977
  } catch (error) {
2689
2978
  const failedIds = /* @__PURE__ */ new Set();
2690
2979
  installed.forEach((record) => {
@@ -2709,6 +2998,11 @@ function useRenderPageFactory(props, payload) {
2709
2998
  const ids = (Array.isArray(requestIds) ? requestIds : [requestIds]).filter(
2710
2999
  (id) => typeof id === "string" && !!id
2711
3000
  );
3001
+ const instanceIdsKey = JSON.stringify([...new Set(ids)].sort());
3002
+ if (instanceIdsKey !== currentInstanceIdsKey) {
3003
+ initializedInstanceIds.clear();
3004
+ currentInstanceIdsKey = instanceIdsKey;
3005
+ }
2712
3006
  if (!ids.length) {
2713
3007
  pipeline.invalidate();
2714
3008
  clear();
@@ -2738,6 +3032,7 @@ function useRenderPageFactory(props, payload) {
2738
3032
  clear();
2739
3033
  });
2740
3034
  return {
3035
+ dataSourceManagerMap,
2741
3036
  counter,
2742
3037
  finisher,
2743
3038
  loading,
@@ -3389,9 +3684,9 @@ class FormAnnotationController {
3389
3684
  const items = this.normalizeAllResponse(res);
3390
3685
  this.applyAnnotationItems(items, () => true);
3391
3686
  return items;
3392
- } catch (e3) {
3393
- console.error("加载所有批注信息 error", e3);
3394
- throw e3;
3687
+ } catch (e2) {
3688
+ console.error("加载所有批注信息 error", e2);
3689
+ throw e2;
3395
3690
  }
3396
3691
  };
3397
3692
  handleOpenAnnotation = async () => {
@@ -3438,251 +3733,251 @@ function filterAnnotationItemsUpToCurrent(items) {
3438
3733
  });
3439
3734
  }
3440
3735
  export {
3441
- aM as AITooltips,
3442
- A3 as AllocateTableCore,
3443
- B3 as BaseFormModelFetcher,
3444
- aO as BinarizeMethodOptions,
3445
- a$ as BindCmpStyleEnum,
3446
- a0 as BooleanShowMode,
3736
+ aW as AITooltips,
3737
+ A as AllocateTableCore,
3738
+ ap2 as BaseFormModelFetcher,
3739
+ aY as BinarizeMethodOptions,
3740
+ ba as BindCmpStyleEnum,
3741
+ a6 as BooleanShowMode,
3447
3742
  B2 as BorderTD,
3448
3743
  BpmnNodeTypeEnum,
3449
- bz as BpmnSignatureTypeEnum,
3450
- bA as ButtonTypeEnum,
3744
+ bP as BpmnSignatureTypeEnum,
3745
+ bQ as ButtonTypeEnum,
3451
3746
  B as BwipCodeType,
3452
- bB as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3453
- y as CellType,
3454
- af as CellWidgetViewState,
3747
+ bR as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3748
+ H as CellType,
3749
+ am as CellWidgetViewState,
3455
3750
  CheckDsTypeEnum,
3456
- bC as CodeRunner,
3751
+ bS as CodeRunner,
3457
3752
  ComponentTypeEnum,
3458
- bD as Config_Fields,
3459
- bE as ControlStatusEnum,
3460
- bc as DEVICE_GROUP_QUERY_KEY,
3461
- bF as DEVICE_SEARCH_API,
3462
- aR as DateFormat,
3463
- ay as DecimalDisplayMode,
3464
- aN as DenoiseMethodOptions,
3465
- ap as DeviceConnector,
3466
- aK as DeviceLink,
3467
- m as DeviceLinkTmplUtil,
3468
- aL as DeviceParamsTypeTitle,
3753
+ bT as Config_Fields,
3754
+ bU as ControlStatusEnum,
3755
+ bk as DEVICE_GROUP_QUERY_KEY,
3756
+ bV as DEVICE_SEARCH_API,
3757
+ a$ as DateFormat,
3758
+ aF as DecimalDisplayMode,
3759
+ aX as DenoiseMethodOptions,
3760
+ aq2 as DeviceConnector,
3761
+ aU as DeviceLink,
3762
+ p as DeviceLinkTmplUtil,
3763
+ aV as DeviceParamsTypeTitle,
3469
3764
  D as DevicePartConsumeTableCore,
3470
- bG as DeviceStatus,
3471
- ag as DiagonalDirection,
3472
- ak as DiagonalVertex,
3473
- a32 as DocumentLayout,
3474
- aq as DocumentLoading,
3475
- a12 as DocumentPaper,
3476
- ar as DynamicQuickFillModal,
3477
- a22 as DynamicTableAction,
3478
- bH as EBR_PROVIDE_ENUM,
3479
- bI as EFieldBizTypeEnum,
3480
- H as EMPTY_PRODUCT_VERSION_ID,
3481
- aE as EmptySymbol,
3482
- a2 as FallbackSignTypeEnum,
3483
- ae as FieldSysVarDefaultValueEnum,
3765
+ bW as DeviceStatus,
3766
+ an as DiagonalDirection,
3767
+ ar as DiagonalVertex,
3768
+ a62 as DocumentLayout,
3769
+ ar2 as DocumentLoading,
3770
+ a4 as DocumentPaper,
3771
+ as2 as DynamicQuickFillModal,
3772
+ a52 as DynamicTableAction,
3773
+ bX as EBR_PROVIDE_ENUM,
3774
+ bY as EFieldBizTypeEnum,
3775
+ K2 as EMPTY_PRODUCT_VERSION_ID,
3776
+ aO as EmptySymbol,
3777
+ a8 as FallbackSignTypeEnum,
3778
+ al as FieldSysVarDefaultValueEnum,
3484
3779
  FillingTypeEnum,
3485
- as as FixedQuickFillModal,
3780
+ at as FixedQuickFillModal,
3486
3781
  FormAnnotationController,
3487
- F2 as FormModelController,
3782
+ F as FormModelController,
3488
3783
  FormTmplBomController,
3489
- at as FormTmplConfigController,
3784
+ au2 as FormTmplConfigController,
3490
3785
  FormTypeEnum,
3491
- az as ImageDisplayModeEnum,
3786
+ aG as ImageDisplayModeEnum,
3492
3787
  InstanceStatusValues,
3493
- aP as JoinModelTypeEum,
3494
- au2 as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3495
- av as LEGACY_RUNTIME_SHEET_ID,
3496
- aw as LEGACY_RUNTIME_SHEET_TITLE,
3497
- $ as LabelPosition,
3498
- ai as LineDirection,
3788
+ aZ as JoinModelTypeEum,
3789
+ av as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3790
+ aw as LEGACY_RUNTIME_SHEET_ID,
3791
+ ax as LEGACY_RUNTIME_SHEET_TITLE,
3792
+ a5 as LabelPosition,
3793
+ ap as LineDirection,
3499
3794
  L as LineType,
3500
- bJ as MAX_FRONT_ROW_KEY_LENGTH,
3795
+ bZ as MAX_FRONT_ROW_KEY_LENGTH,
3501
3796
  M as MAX_RUNTIME_SHEETS,
3502
3797
  a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
3503
- M3 as MBRender,
3504
- ax as MCDataUtil,
3505
- a8 as MCRender,
3506
- b as MULTI_SHEET_SCHEMA_VERSION,
3798
+ a1 as MBRender,
3799
+ ay as MCDataUtil,
3800
+ a2 as MCRender,
3801
+ d as MULTI_SHEET_SCHEMA_VERSION,
3507
3802
  MaterialConsumeTableController,
3508
3803
  MaterialConsumptionPatternEnum,
3509
3804
  M2 as MaterialRequisitionTableCore,
3510
3805
  MaterialStatusEnum,
3511
- a7 as MaterialSubstitutionTableCore,
3512
- bK as MobileFillTypeEnum,
3806
+ a3 as MaterialSubstitutionTableCore,
3807
+ b_ as MobileFillTypeEnum,
3513
3808
  NCB_PROVIDE,
3514
- ay2 as OCR_MODEL_PRECISION_ENUM_KEY,
3515
- bL as OfficeTypeEnum,
3809
+ az as OCR_MODEL_PRECISION_ENUM_KEY,
3810
+ b$ as OfficeTypeEnum,
3516
3811
  O as Orientation,
3517
- p as PageSizeEnum,
3812
+ t as PageSizeEnum,
3518
3813
  P as PaginationFormat,
3519
- a9 as PaperSizeMap,
3520
- o as PaperWidgeType,
3521
- Q as PaperWidgeValueType,
3522
- A as ParamModelTypeEnum,
3814
+ ag as PaperSizeMap,
3815
+ q as PaperWidgeType,
3816
+ Y as PaperWidgeValueType,
3817
+ K as ParamModelTypeEnum,
3523
3818
  P2 as PartStocktakeTableCore,
3524
3819
  PlatformEnum,
3525
- bM as PosEnum,
3526
- b3 as PretreatmentListTableCore,
3820
+ c0 as PosEnum,
3821
+ b as PretreatmentListTableCore,
3527
3822
  c as ProfileDrivenSubTableCore,
3528
- bN as RUNTIME_COLUMN_ROW_KEY,
3529
- au as RangeCompareOp,
3823
+ c1 as RUNTIME_COLUMN_ROW_KEY,
3824
+ aB as RangeCompareOp,
3530
3825
  RangeValidateMode,
3531
3826
  RenderModeEnum,
3532
- az2 as RuntimeAsyncTaskCoordinator,
3533
- aA as RuntimeDependencyService,
3534
- aB as RuntimeFieldRegistry,
3827
+ aA as RuntimeAsyncTaskCoordinator,
3828
+ aB2 as RuntimeDependencyService,
3829
+ aC as RuntimeFieldRegistry,
3535
3830
  RuntimeFormStateStore,
3536
3831
  RuntimeInstanceController,
3537
- aC as RuntimeInstanceEventBus,
3832
+ aD as RuntimeInstanceEventBus,
3538
3833
  RuntimeInstanceRegistry,
3539
- aD as RuntimePersistenceCoordinator,
3834
+ aE as RuntimePersistenceCoordinator,
3540
3835
  RuntimeRuleCompiler,
3541
3836
  RuntimeSheetService,
3542
- aE2 as RuntimeValidationService,
3543
- a5 as SignShowTypeEnum,
3544
- a1 as SignatureImageDirectionEnum,
3545
- a3 as SignatureNumberTypeEnum,
3546
- a4 as SignatureTimeTypeEnum,
3547
- a6 as SignatureTypeEnum,
3548
- d as SterilizeBatchTableCore,
3549
- e2 as StocktakeTableCore,
3550
- aF as SubTableCore,
3837
+ aF2 as RuntimeValidationService,
3838
+ ab as SignShowTypeEnum,
3839
+ a7 as SignatureImageDirectionEnum,
3840
+ a9 as SignatureNumberTypeEnum,
3841
+ aa as SignatureTimeTypeEnum,
3842
+ ac as SignatureTypeEnum,
3843
+ d2 as SterilizeBatchTableCore,
3844
+ e as StocktakeTableCore,
3845
+ aG2 as SubTableCore,
3551
3846
  SubTableCoreFactory,
3552
- f as SubTableType,
3553
- bO as SummaryApproveHisTypeEnum,
3554
- aj as TimeDiffFormat,
3555
- an as ViewTypeEnum,
3556
- W as WarehouseInTableCore,
3847
+ h as SubTableType,
3848
+ c2 as SummaryApproveHisTypeEnum,
3849
+ aq as TimeDiffFormat,
3850
+ au as ViewTypeEnum,
3851
+ W2 as WarehouseInTableCore,
3557
3852
  f2 as WarehouseInboundTableCore,
3558
3853
  g as WarehouseOutTableCore,
3559
- h as WarehouseOutboundTableCore,
3560
- ah as WidgetImageSizeMode,
3561
- bP as applyCheckDsDataToRuntime,
3562
- F as applyConsumeObjectTraceChange,
3563
- bQ as applyMedProCheckDsDataToRuntime,
3854
+ h2 as WarehouseOutboundTableCore,
3855
+ ao as WidgetImageSizeMode,
3856
+ c3 as applyCheckDsDataToRuntime,
3857
+ I as applyConsumeObjectTraceChange,
3858
+ c4 as applyMedProCheckDsDataToRuntime,
3564
3859
  baseDataUtils,
3565
- bR as bindRuntimeTableColumns,
3566
- bS as buildDeviceBaseQuery,
3567
- bb as buildDeviceFilterQuery,
3568
- aG as buildFormChangeDisplayRows,
3569
- w as buildObjectLotExtraQuery,
3860
+ c5 as bindRuntimeTableColumns,
3861
+ c6 as buildDeviceBaseQuery,
3862
+ aJ as buildDeviceFilterQuery,
3863
+ aH as buildFormChangeDisplayRows,
3864
+ y2 as buildObjectLotExtraQuery,
3570
3865
  buildRuntimeFieldPath,
3571
- bT as calcFillData,
3572
- bU as calcUtils,
3866
+ c7 as calcFillData,
3867
+ c8 as calcUtils,
3573
3868
  calculateFormula,
3574
3869
  collectAnnotationItemsByLocation,
3575
3870
  collectFormChangeFieldLocations,
3576
3871
  commonUtils,
3577
3872
  convertHistoricalAnnotationLocation,
3578
- aH as convertV1Runtime,
3579
- e as createRuntimeDocumentV2,
3873
+ aI as convertV1Runtime,
3874
+ f as createRuntimeDocumentV2,
3580
3875
  createRuntimeInstanceContext,
3581
- bV as decodeTableCellRowKey,
3582
- aI as detailsHaveFormChangeRowOps,
3583
- bW as encodeTableCellRowKey,
3876
+ c9 as decodeTableCellRowKey,
3877
+ aJ2 as detailsHaveFormChangeRowOps,
3878
+ ca as encodeTableCellRowKey,
3584
3879
  enrichFormChangeRowDetails,
3585
- bX as ensureFrontRowKey,
3586
- bY as ensureTableRowKeys,
3587
- aJ as extractFormChangeRowDetails,
3588
- bZ as extractKeywordFromQueryData,
3589
- b_ as fetchCheckDsDataForTable,
3590
- b$ as fetchCustomCheckDsData,
3880
+ cb as ensureFrontRowKey,
3881
+ cc as ensureTableRowKeys,
3882
+ aK2 as extractFormChangeRowDetails,
3883
+ cd as extractKeywordFromQueryData,
3884
+ ce as fetchCheckDsDataForTable,
3885
+ cf as fetchCustomCheckDsData,
3591
3886
  fetchHistoryConsume,
3592
- c0 as fetchMedProCheckDsData,
3887
+ cg as fetchMedProCheckDsData,
3593
3888
  fetchOperationReceiveQty,
3594
3889
  fetchUdi,
3595
3890
  filterAnnotationItemsUpToCurrent,
3596
- bf as findRuntimeParentRow,
3597
- c1 as findRuntimeTableCell,
3891
+ bp as findRuntimeParentRow,
3892
+ ch as findRuntimeTableCell,
3598
3893
  findRuntimeTableRow,
3599
3894
  getAppInfo,
3600
3895
  getBusinessFieldKey,
3601
- c2 as getCheckTableSnapshotKey,
3602
- aK2 as getFormChangeRowKey,
3603
- aL2 as getFormChangeRowOp,
3604
- aX as getLotLockedReason,
3605
- v as getObjectBomMaterialLotQuery,
3606
- G as getObjectBomProductQuery,
3896
+ ci as getCheckTableSnapshotKey,
3897
+ aL as getFormChangeRowKey,
3898
+ aM as getFormChangeRowOp,
3899
+ b6 as getLotLockedReason,
3900
+ x as getObjectBomMaterialLotQuery,
3901
+ J as getObjectBomProductQuery,
3607
3902
  getParseFormulaVarInfos,
3608
- c3 as getParseRuleConfig,
3609
- b0 as getParseRuleInfo,
3610
- b1 as getParseRuleValue,
3611
- c4 as getReinspectionDate,
3612
- c5 as getRenderedRuntimeTableCell,
3903
+ cj as getParseRuleConfig,
3904
+ bb as getParseRuleInfo,
3905
+ bc as getParseRuleValue,
3906
+ ck as getReinspectionDate,
3907
+ cl as getRenderedRuntimeTableCell,
3613
3908
  getRuntimeDataFieldId,
3614
3909
  getRuntimeDependencyOutputKey,
3615
- aM2 as getSubTableQuickFillInfo,
3910
+ aN as getSubTableQuickFillInfo,
3616
3911
  getSuiteKey,
3617
- c6 as handleOldConfig,
3618
- c7 as hasAnyCheckTableSnapshot,
3619
- c8 as hasByTableCheckTableSnapshot,
3620
- c9 as hasSharedCheckTableSnapshot,
3621
- aN2 as isAnnLocationSelected,
3622
- aO2 as isBlank,
3912
+ cm as handleOldConfig,
3913
+ cn as hasAnyCheckTableSnapshot,
3914
+ co as hasByTableCheckTableSnapshot,
3915
+ cp as hasSharedCheckTableSnapshot,
3916
+ aO2 as isAnnLocationSelected,
3917
+ aP as isBlank,
3623
3918
  isBomGranted,
3624
3919
  isEdhrSuite,
3625
3920
  isEqmSuite,
3626
- aP2 as isFormChangeGhostRow,
3627
- ca as isMedProSuite,
3921
+ aQ as isFormChangeGhostRow,
3922
+ cq as isMedProSuite,
3628
3923
  isRowAddedInCurrentFormChange,
3629
- cb as isTableRowKeyMatch,
3630
- cc as jsonSchemaUtils,
3631
- cd as judgeUnique,
3632
- aW as materialCheck,
3633
- ce as migrateDiagonalDirectionToVertex,
3924
+ cr as isTableRowKeyMatch,
3925
+ cs as jsonSchemaUtils,
3926
+ ct as judgeUnique,
3927
+ b5 as materialCheck,
3928
+ cu as migrateDiagonalDirectionToVertex,
3634
3929
  nextFormChangeRowViewHistoryId,
3635
- o2 as normalizeAIOcrTmpl,
3636
- I as normalizeHistoricalAutofillRow,
3637
- l as normalizeHistoricalBusinessRow,
3638
- aQ2 as normalizeHistoricalFieldConfig,
3639
- b2 as normalizeRefLoaderResult,
3930
+ q2 as normalizeAIOcrTmpl,
3931
+ L2 as normalizeHistoricalAutofillRow,
3932
+ o as normalizeHistoricalBusinessRow,
3933
+ aR as normalizeHistoricalFieldConfig,
3934
+ bd as normalizeRefLoaderResult,
3640
3935
  normalizeRuntime,
3641
3936
  parseFrontConfig,
3642
3937
  parseRuntimeFieldPath,
3643
3938
  parseUdi,
3644
- aR2 as pickObjectFieldKeys,
3645
- aS as recordSubtableRowAdd,
3646
- aT as recordSubtableRowDelete,
3647
- b9 as refUtils,
3648
- aU as relocateDeletedRowsToEnd,
3939
+ aS as pickObjectFieldKeys,
3940
+ aT as recordSubtableRowAdd,
3941
+ aU2 as recordSubtableRowDelete,
3942
+ aK as refUtils,
3943
+ aV2 as relocateDeletedRowsToEnd,
3649
3944
  renderUtils,
3650
- cf as requestMedProCheckDsData,
3651
- cg as requestNonMedProCheckDsData,
3652
- aV as resolveAnnotationFieldLocation,
3653
- al as resolveDiagonalVertex,
3654
- t as resolveFieldRenderComponent,
3655
- aW2 as resolveFormChangeRowUi,
3656
- A2 as resolveObjectBomEntry,
3657
- x as resolveObjectFieldKeys,
3658
- aX2 as resolveRowFormChangeMark,
3945
+ cv as requestMedProCheckDsData,
3946
+ cw as requestNonMedProCheckDsData,
3947
+ aW2 as resolveAnnotationFieldLocation,
3948
+ as as resolveDiagonalVertex,
3949
+ y as resolveFieldRenderComponent,
3950
+ aX2 as resolveFormChangeRowUi,
3951
+ E as resolveObjectBomEntry,
3952
+ z as resolveObjectFieldKeys,
3953
+ aY2 as resolveRowFormChangeMark,
3659
3954
  resolveUdiQuery,
3660
- C as runWithFillProduct,
3661
- r as setSelectAnnotationId,
3662
- aY2 as setSelectMobileTdId,
3663
- s as setSelectValidatorId,
3664
- ch as splitRuntimeDataPath,
3665
- aQ as sqlUtils,
3666
- ci as stockCheck,
3667
- aZ as stripLegacyFormConfigFromPaper,
3955
+ G as runWithFillProduct,
3956
+ v as setSelectAnnotationId,
3957
+ aZ2 as setSelectMobileTdId,
3958
+ t2 as setSelectValidatorId,
3959
+ cx as splitRuntimeDataPath,
3960
+ a_ as sqlUtils,
3961
+ cy as stockCheck,
3962
+ a_2 as stripLegacyFormConfigFromPaper,
3668
3963
  transformUtils,
3669
- T as useDependency,
3964
+ V as useDependency,
3670
3965
  useEbrWikiFactoryV2,
3671
- U as useFieldPresentation,
3672
- u2 as useFormModel,
3673
- u as useFormTmplConfig,
3966
+ W as useFieldPresentation,
3967
+ u as useFormModel,
3968
+ l as useFormTmplConfig,
3674
3969
  useMaterialBalance,
3675
3970
  useNocodeEmitter,
3676
- E as useNocodeFormWidget,
3677
- cj as useOnlineFormActionButton,
3678
- bg as useOnlineFormTransformField2Component,
3971
+ H2 as useNocodeFormWidget,
3972
+ cz as useOnlineFormActionButton,
3973
+ bq as useOnlineFormTransformField2Component,
3679
3974
  useRenderPageFactory,
3680
- V as useRuntimeEditorFlusher,
3681
- q as useRuntimeInstanceServices,
3682
- t2 as useRuntimeRowState,
3683
- S as useStyles,
3684
- p2 as useWidgetStaticAttrs,
3685
- z as validateObjectBomForScan,
3975
+ X as useRuntimeEditorFlusher,
3976
+ s as useRuntimeInstanceServices,
3977
+ w as useRuntimeRowState,
3978
+ U as useStyles,
3979
+ r as useWidgetStaticAttrs,
3980
+ C as validateObjectBomForScan,
3686
3981
  validateObjectBomQtyOnSubmit,
3687
- aY as validateReinspectionDate
3982
+ b7 as validateReinspectionDate
3688
3983
  };