@gct-paas/excel 0.1.50 → 0.1.51-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-BujOt502.js → BaseComponent-BShN-6c8.js} +4 -3
  3. package/dist/{VueVideoPlayer-B8GR2HPo.js → VueVideoPlayer-DH8pXh28.js} +2 -2
  4. package/dist/{align-editor--BUxJjPg.js → align-editor-DJ859WQZ.js} +1 -1
  5. package/dist/{barcode-design-DGX6Ol4t.js → barcode-design-Gq8_VO9l.js} +3 -2
  6. package/dist/base/index.es.js +517 -222
  7. package/dist/{diagonal-design-oiPfvxr7.js → diagonal-design-C2Ybg80S.js} +3 -2
  8. package/dist/{dynamic-table-action-Bhkrp7KE.js → dynamic-table-action-B3QEu1gT.js} +452 -322
  9. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BY59Q_d_.js} +2296 -593
  10. package/dist/{edit.utils-CXmmCnxE-BXlWf2Zf.js → edit.utils-CXmmCnxE-wWPJuGRP.js} +1 -1
  11. package/dist/excel.css +614 -723
  12. package/dist/{exceljs.min-Ta0dJQqu.js → exceljs.min-D9sk8ogV.js} +2 -2
  13. package/dist/{font-editor-Dmj2hu7T.js → font-editor-CRxKpZ5w.js} +3 -3
  14. package/dist/{image-design-C3yJcthI.js → image-design-D6Mh4gmF.js} +3 -8
  15. package/dist/{index-C4SreE7Q.js → index-B10CES7y.js} +3 -2
  16. package/dist/{index-wKwGHLnP.js → index-BHaAq-DQ.js} +2 -1
  17. package/dist/{index-DMAuxwlt.js → index-BIks4AlA.js} +2 -1
  18. package/dist/{index-CMN1t7G7.js → index-BItsxlLG.js} +4 -3
  19. package/dist/{index-1kD3Vcrg.js → index-BLwPDGyh.js} +3 -2
  20. package/dist/{index-KQqw3i9h.js → index-BMBgoKQJ.js} +3 -2
  21. package/dist/{index-DF8n1Gru.js → index-Ba7SenEy.js} +4 -3
  22. package/dist/{index-DRKCOV3w.js → index-BaQxoGFV.js} +2 -1
  23. package/dist/{index-BDr7t7vL.js → index-BbNwGIpN.js} +2 -1
  24. package/dist/{index-DdOpcuy6.js → index-BdkVqSGZ.js} +8995 -3731
  25. package/dist/{index-GIYmXP7h.js → index-BfGKeHIi.js} +3 -2
  26. package/dist/{index-B0Qf1-mt.js → index-BkCygM2H.js} +4 -3
  27. package/dist/{index-CEYSrHod.js → index-Bkx2ZZxc.js} +3 -2
  28. package/dist/{index-OwTnsnnd.js → index-BzHOWFfJ.js} +3 -2
  29. package/dist/{index-CaLRSpkL.js → index-BzTGz-yp.js} +3 -2
  30. package/dist/{index-L7CRRS4N.js → index-C9oFT3gk.js} +3 -2
  31. package/dist/{index-C6WDE2xc.js → index-CCXIoitH.js} +2 -1
  32. package/dist/{index-IOqBW_eS.js → index-CfMaU3Cq.js} +7 -3
  33. package/dist/{index-D9lmC_sX.js → index-CkYFepvp.js} +4 -3
  34. package/dist/{index-B2VHOqo4.js → index-CqZOsGgU.js} +3 -2
  35. package/dist/{index-BOMuRlHQ.js → index-D8Pv4_xg.js} +3 -2
  36. package/dist/{index-BtAlyN0W.js → index-D925vhPg.js} +3 -2
  37. package/dist/{index-BEEhGWk7.js → index-DECfc3al.js} +3 -2
  38. package/dist/{index-CUTV5Yr2.js → index-DS1bbdtf.js} +5 -4
  39. package/dist/{index-DBSvao2o.js → index-DVloZxGE.js} +2 -1
  40. package/dist/{index-BlCF32GJ.js → index-DpPtXY8I.js} +4 -3
  41. package/dist/{index-UnwowxL3.js → index-DpQIy9xD.js} +2 -1
  42. package/dist/{index-DLTES9Zq.js → index-IY_wwSl8.js} +3 -2
  43. package/dist/{index-BwuwoFQQ.js → index-MWQxnJy_.js} +3 -2
  44. package/dist/{index-B4ZpSIPH.js → index-caGeDRoA.js} +4 -3
  45. package/dist/{index-Bd15pfRH.js → index-eHOXhn3S.js} +2 -1
  46. package/dist/{index-DQC7zJRO.js → index-emsDlrTV.js} +2 -1
  47. package/dist/{index-B4hIBKZ6.js → index-vrDKB2Af.js} +3 -2
  48. package/dist/{index-CZo7qVZK.js → index-xTI_Fqhb.js} +2 -1
  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-219qzsVL.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BftaGVRR.js} +27 -3
  51. package/dist/{pagination-design-CNML3qGx.js → pagination-design-BO_7vrQd.js} +3 -2
  52. package/dist/paper-widget-design-18uum1H9.js +4 -0
  53. package/dist/{print-runtime-instance-DKR1MX8-.js → print-runtime-instance-B1Q_Xc8x.js} +1 -1
  54. package/dist/{print-snapshot-renderer-BIWDQkSC.js → print-snapshot-renderer-wEKNMo0m.js} +3 -3
  55. package/dist/{qrcode-design-CUQ4gaJ0.js → qrcode-design-CeNvj_74.js} +1 -1
  56. package/dist/{revo-grid.entry-Be5Mx_h7.js → revo-grid.entry-iJpKwgs4.js} +1 -1
  57. package/dist/{revogr-attribution_7.entry-DmJFrubR.js → revogr-attribution_7.entry-C-cdTXU8.js} +3 -3
  58. package/dist/{revogr-clipboard_3.entry-COcvqK0w.js → revogr-clipboard_3.entry-BHJgHR9f.js} +2 -2
  59. package/dist/{revogr-data_4.entry-Dc4luGHv.js → revogr-data_4.entry-R_-ZZIdp.js} +2 -2
  60. package/dist/{revogr-filter-panel.entry-B1l-ouo-.js → revogr-filter-panel.entry-RU6Tewnq.js} +1 -1
  61. package/dist/seal-design-BnQkmNDo.js +4 -0
  62. package/dist/{serialnumber-design-hcI8TwmS.js → serialnumber-design-b0I5H8lq.js} +1 -1
  63. package/dist/shared/index.es.js +29 -28
  64. package/dist/{single-field-drop-CnuMgeEW.js → single-field-drop-Bj73o6Jt.js} +2 -3
  65. package/dist/{size-editor-D4ZNlV-c.js → size-editor-Bps566OT.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-Df_Z-LYK.js → sub-table-factory-CykoFqnP.js} +276 -89
  160. package/dist/{text-design-gySXbKUQ.js → text-design-kWxwqj3H.js} +3 -2
  161. package/dist/{throttle-Cpk1LoGk-DEDsjc1B.js → throttle-Cpk1LoGk-B3zgXjle.js} +1 -1
  162. package/dist/{timediff-design-BHLUYM_L.js → timediff-design-sh7-fMvN.js} +2 -1
  163. package/dist/{trace-like-wrapper-CD0q7Bpg.js → trace-like-wrapper-ByePbRT3.js} +3 -2
  164. package/dist/{value-editor.vue_vue_type_style_index_0_lang-Dp_NLPcS.js → value-editor.vue_vue_type_style_index_0_lang-BuGHTPEo.js} +3 -2
  165. package/dist/{widget-barcode-Dho-QBc4.js → widget-barcode-BP0WV4jM.js} +5 -4
  166. package/dist/{widget-diagonal-LOzS5LGZ.js → widget-diagonal-Cwfunmde.js} +4 -4
  167. package/dist/{widget-image-CE9y7lzB.js → widget-image-3xm-HfRy.js} +5 -7
  168. package/dist/{widget-line-DK-tRBi0.js → widget-line-B2Q3DwW6.js} +3 -2
  169. package/dist/{widget-pagination-JLrTk_QY.js → widget-pagination-CV9ShZXH.js} +6 -5
  170. package/dist/{widget-power-B136JrJ6.js → widget-power-Bc0Fv3R6.js} +4 -4
  171. package/dist/{widget-qrcode-CQ79eZwR.js → widget-qrcode-D_LkgIb2.js} +4 -3
  172. package/dist/{widget-rangelimit-DORQgXtz.js → widget-rangelimit-Db1rsnwU.js} +3 -4
  173. package/dist/{widget-serialnumber-BvhwTK5N.js → widget-serialnumber-BqZ3zJst.js} +1 -1
  174. package/dist/{widget-text-D6au0tli.js → widget-text-IJbtzWxl.js} +5 -5
  175. package/dist/{widget-timediff-C3SAIS2-.js → widget-timediff-Bp8U1rzO.js} +3 -2
  176. package/package.json +2 -6
  177. package/dist/AntdIcon-DCIaV352.js +0 -1108
  178. package/dist/index-B6csmYLK.js +0 -4353
  179. package/dist/mb-render-CQlqaMrC.js +0 -276
  180. package/dist/paper-widget-design-B8WyX87-.js +0 -4
  181. package/dist/seal-design-Q8W8Umib.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-CidYX2eX.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-CidYX2eX.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-Bhkrp7KE.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-Bhkrp7KE.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-BY59Q_d_.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-BY59Q_d_.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-B3QEu1gT.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-B3QEu1gT.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-Df_Z-LYK.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-Df_Z-LYK.js";
10
- import { B as B3, F as F2, M as M3, a as a8, u as u2 } from "../mb-render-CQlqaMrC.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-CykoFqnP.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-CykoFqnP.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) => {
@@ -2475,6 +2547,7 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2475
2547
  );
2476
2548
  if (!isCurrent() || runtimeRegistry.get(uniqueId) !== record) return;
2477
2549
  syncInspectionDecisionRule(uniqueId);
2550
+ record.defaultValueValidation?.requestCheck();
2478
2551
  await record.validation.validate("display");
2479
2552
  });
2480
2553
  await record.controller.waitUntilPrepared();
@@ -2487,6 +2560,198 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2487
2560
  prepareInitialView
2488
2561
  };
2489
2562
  }
2563
+ function createRuntimeDataSourceBinding(registry, payload) {
2564
+ const dataSourceManagerMap = shallowRef({});
2565
+ async function bindDataSources(record, info, selfInfo) {
2566
+ if (payload.isMockReport || !["instance", "batchInstance"].includes(payload.factoryType))
2567
+ return;
2568
+ const isDetail = () => typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
2569
+ if (isDetail()) return;
2570
+ const { context, formState } = record;
2571
+ const { uniqueId, formConfig } = context;
2572
+ const canExecute = () => registry.get(uniqueId) === record && info.renderModeType === RenderModeEnum.FormMode && !isDetail();
2573
+ const getContext = () => buildDataSourceContext({ parameters: info.paramsConfig ?? {}, instance: selfInfo });
2574
+ const manager = markRaw(
2575
+ createDataSourceManager({
2576
+ canExecute,
2577
+ initializeOnEnable: false,
2578
+ sources: formConfig.dataSources ?? [],
2579
+ onManualLoad: (key) => fieldFillRuntime?.reapplyDataSource(key),
2580
+ getContext,
2581
+ getInstanceId: () => info.key,
2582
+ getForm: () => formState.state,
2583
+ adapters: payload.dataSourceAdapters
2584
+ })
2585
+ );
2586
+ let taskSequence = 0;
2587
+ async function track(execute) {
2588
+ const result = await record.asyncTasks.run(
2589
+ `data-source:${uniqueId}:${++taskSequence}`,
2590
+ async () => {
2591
+ try {
2592
+ return { ok: true, value: await execute() };
2593
+ } catch (error) {
2594
+ return { ok: false, error };
2595
+ }
2596
+ }
2597
+ );
2598
+ if (!result) throw new Error(`数源实例已释放:${uniqueId}`);
2599
+ if (!result.ok) throw result.error;
2600
+ return result.value;
2601
+ }
2602
+ const exposedManager = markRaw({
2603
+ ...manager,
2604
+ query: (...args) => track(() => manager.query(...args)),
2605
+ reload: (...args) => track(() => manager.reload(...args)),
2606
+ reloadAll: () => track(() => manager.reloadAll()),
2607
+ queryOnValueChange: (...args) => track(() => manager.queryOnValueChange(...args)),
2608
+ initialize: () => track(() => manager.initialize())
2609
+ });
2610
+ const protectedTargets = getLegacyFieldFillTargets(formConfig);
2611
+ const targets = /* @__PURE__ */ new Map();
2612
+ for (const { widget } of record.fields.allWidgets()) {
2613
+ const config = widget.props;
2614
+ const fieldKey = config.field;
2615
+ if (fieldKey && (config.subFieldKey || !config.subModelKey)) {
2616
+ const key = config.subFieldKey ? `${config.subFieldKey}.${fieldKey}` : fieldKey;
2617
+ targets.set(key, {
2618
+ table: config.subFieldKey,
2619
+ field: config.isFieldModel ? config.fieldLink || fieldKey : fieldKey,
2620
+ isFieldModel: !!config.isFieldModel
2621
+ });
2622
+ if (config.componentDependency?.configDependency?.assignment?.expression) {
2623
+ protectedTargets.add(key);
2624
+ }
2625
+ }
2626
+ if (config.enableAutofill !== false) {
2627
+ for (const rule of config.autofillRules ?? []) {
2628
+ if (rule.toField)
2629
+ protectedTargets.add(
2630
+ rule.toSubModel && rule.toSubFieldKey ? `${rule.toSubFieldKey}.${rule.toField}` : rule.toField
2631
+ );
2632
+ }
2633
+ }
2634
+ }
2635
+ const tableColumns = /* @__PURE__ */ new Map();
2636
+ for (const [key, target] of targets) {
2637
+ if (!target.table) continue;
2638
+ const columns = tableColumns.get(target.table) ?? /* @__PURE__ */ new Map();
2639
+ columns.set(key.slice(target.table.length + 1), target.isFieldModel ? `_OPCT.${target.field}` : target.field);
2640
+ tableColumns.set(target.table, columns);
2641
+ }
2642
+ for (const table of tableColumns.keys()) {
2643
+ targets.set(table, { field: table, isFieldModel: false });
2644
+ }
2645
+ const fieldFillRuntime = markRaw(
2646
+ createFieldFillRuntime({
2647
+ preserveExistingValues: true,
2648
+ fills: formConfig.fieldFills ?? [],
2649
+ manager,
2650
+ getContext,
2651
+ getForm: () => formState.state,
2652
+ getFormField: (key) => {
2653
+ const columns = tableColumns.get(key);
2654
+ if (columns) return getFieldFillTable(formState.state[key], columns);
2655
+ const target = targets.get(key);
2656
+ if (target?.table)
2657
+ return getFieldFillColumn(
2658
+ formState.state[target.table],
2659
+ target.isFieldModel ? `_OPCT.${target.field}` : target.field
2660
+ );
2661
+ return target?.isFieldModel ? formState.state._OPCT?.[target.field] : get(formState.state, key);
2662
+ },
2663
+ hasTargetField: (key) => targets.has(key),
2664
+ canWrite: (key) => canExecute() && targets.has(key) && !isFieldFillTargetProtected(key, protectedTargets, (field) => {
2665
+ const target = targets.get(field);
2666
+ const path = target?.isFieldModel ? `_OPCT.${target.field}` : target?.field ?? field;
2667
+ return target?.table ? `${target.table}.${path}` : path;
2668
+ }),
2669
+ setField: (key, value, collection) => {
2670
+ if (registry.get(uniqueId) !== record) throw new Error(`字段填充实例已释放:${uniqueId}`);
2671
+ const target = targets.get(key);
2672
+ const columns = tableColumns.get(key);
2673
+ if (columns) {
2674
+ formState.setField(key, buildFieldFillTableRows(formState.state[key], value, columns), "async");
2675
+ } else if (target.table) {
2676
+ const field = target.isFieldModel ? `_OPCT.${target.field}` : target.field;
2677
+ formState.setField(
2678
+ target.table,
2679
+ buildFieldFillRows(formState.state[target.table], field, value, collection),
2680
+ "async"
2681
+ );
2682
+ } else if (target.isFieldModel) {
2683
+ if (!formState.state._OPCT) formState.setField("_OPCT", { _DICT: {} }, "async");
2684
+ formState.setObjectField(
2685
+ formState.state._OPCT,
2686
+ target.field,
2687
+ value,
2688
+ "async",
2689
+ `_OPCT.${target.field}`
2690
+ );
2691
+ } else {
2692
+ formState.setField(target.field, value, "async");
2693
+ }
2694
+ }
2695
+ })
2696
+ );
2697
+ let initializationStarted = false;
2698
+ async function initializeOnce() {
2699
+ if (initializationStarted || !canExecute()) return;
2700
+ initializationStarted = true;
2701
+ try {
2702
+ await exposedManager.initialize();
2703
+ } catch (error) {
2704
+ initializationStarted = false;
2705
+ throw error;
2706
+ }
2707
+ }
2708
+ const stopModeWatch = watch(
2709
+ canExecute,
2710
+ (enabled) => {
2711
+ if (enabled) void initializeOnce().catch(() => void 0);
2712
+ },
2713
+ { flush: "sync" }
2714
+ );
2715
+ record.dataSourceManager = exposedManager;
2716
+ dataSourceManagerMap.value = { ...dataSourceManagerMap.value, [uniqueId]: exposedManager };
2717
+ registry.registerDisposable(uniqueId, () => {
2718
+ stopModeWatch();
2719
+ record.dataSourceManager = void 0;
2720
+ fieldFillRuntime?.dispose();
2721
+ manager.dispose();
2722
+ const { [uniqueId]: _, ...rest } = dataSourceManagerMap.value;
2723
+ dataSourceManagerMap.value = rest;
2724
+ });
2725
+ await initializeOnce();
2726
+ }
2727
+ return { dataSourceManagerMap, bindDataSources };
2728
+ }
2729
+ async function queryInitialValueDataSources(record) {
2730
+ const manager = record.dataSourceManager;
2731
+ if (!manager?.canExecute()) return;
2732
+ const keys = /* @__PURE__ */ new Set();
2733
+ for (const { widget, referenceInfo } of record.fields.allWidgets()) {
2734
+ const props = widget.props;
2735
+ const bindings = props.valueChangeDataSourceKeys;
2736
+ if (!bindings?.length) continue;
2737
+ const field = getRuntimeDataFieldId(props);
2738
+ if (!field) continue;
2739
+ const path = props.isFieldModel ? `_OPCT.${field}` : field;
2740
+ const present = listRuntimeFieldRows(
2741
+ record,
2742
+ props.subFieldKey,
2743
+ referenceInfo?.scopeFieldId ?? field
2744
+ ).some(({ row }) => {
2745
+ const value = get(row, path);
2746
+ return value != null && value !== "" && (!Array.isArray(value) || value.length > 0);
2747
+ });
2748
+ if (!present) continue;
2749
+ for (const key of bindings) {
2750
+ if (manager.states[key]?.status === "idle") keys.add(key);
2751
+ }
2752
+ }
2753
+ if (keys.size) await manager.queryOnValueChange([...keys]);
2754
+ }
2490
2755
  function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
2491
2756
  const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
2492
2757
  const record = runtimeRegistry.require(uniqueId);
@@ -2591,6 +2856,10 @@ function useRenderPageFactory(props, payload) {
2591
2856
  const finisher = ref(0);
2592
2857
  const runtimeRegistry = new RuntimeInstanceRegistry();
2593
2858
  provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
2859
+ const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
2860
+ runtimeRegistry,
2861
+ payload
2862
+ );
2594
2863
  const basicInfoList = ref([]);
2595
2864
  const selfInfoList = ref([]);
2596
2865
  const { getConsumeData } = useMaterialBalance();
@@ -2629,13 +2898,21 @@ function useRenderPageFactory(props, payload) {
2629
2898
  payload,
2630
2899
  getConsumeData
2631
2900
  );
2901
+ const initializedInstanceIds = /* @__PURE__ */ new Set();
2902
+ let currentInstanceIdsKey;
2632
2903
  const getInstanceData = createRuntimeRequestSource(props, payload);
2633
2904
  const pipeline = createRuntimeLoadPipeline(runtimeRegistry.loadState, {
2634
2905
  request: getInstanceData,
2635
- prepare: (sources) => prepareRuntimeBatch(sources, initializeRuntimeInstance),
2906
+ prepare: (sources) => prepareRuntimeBatch(
2907
+ sources,
2908
+ (id, source) => initializeRuntimeInstance(id, source, {
2909
+ initializeValues: !initializedInstanceIds.has(id)
2910
+ })
2911
+ ),
2636
2912
  install: async (prepared, isCurrent) => {
2637
2913
  clear();
2638
2914
  const installed = [];
2915
+ const dataSourceBindings = [];
2639
2916
  const installedSelfInfos = /* @__PURE__ */ new Set();
2640
2917
  try {
2641
2918
  for (const res of prepared) {
@@ -2668,16 +2945,25 @@ function useRenderPageFactory(props, payload) {
2668
2945
  basicInfoList.value.push(res.basicInfo);
2669
2946
  selfInfoList.value.push(res.selfInfo);
2670
2947
  installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
2671
- record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactive(res.basicInfo)));
2948
+ const reactiveInfo = reactive(res.basicInfo);
2949
+ record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
2672
2950
  bindRuntimeValidation(uniqueId);
2673
2951
  bindFormValidationSync(uniqueId);
2674
2952
  record.fieldInitializer = markRaw(
2675
2953
  new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
2676
2954
  );
2955
+ record.defaultValueValidation = markRaw(
2956
+ new RuntimeDefaultValueValidation(record, reactiveInfo, res.defaultValueOrigins)
2957
+ );
2677
2958
  bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
2959
+ dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
2678
2960
  }
2961
+ await Promise.all(dataSourceBindings);
2962
+ if (!isCurrent()) return;
2679
2963
  await Promise.all(installed.map(prepareInitialView));
2680
2964
  if (!isCurrent()) return;
2965
+ await Promise.all(installed.map(queryInitialValueDataSources));
2966
+ if (!isCurrent()) return;
2681
2967
  const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
2682
2968
  if (selfId)
2683
2969
  await payload.onFinisher?.(props.selfId, findBasicInsInfo(selfId)?.renderModeType);
@@ -2688,7 +2974,10 @@ function useRenderPageFactory(props, payload) {
2688
2974
  record.formState.markClean();
2689
2975
  payload.onFormStateReady?.(record.formState);
2690
2976
  }
2691
- if (isCurrent()) finisher.value++;
2977
+ if (isCurrent()) {
2978
+ prepared.forEach(({ basicInfo }) => initializedInstanceIds.add(basicInfo.key));
2979
+ finisher.value++;
2980
+ }
2692
2981
  } catch (error) {
2693
2982
  const failedIds = /* @__PURE__ */ new Set();
2694
2983
  installed.forEach((record) => {
@@ -2713,6 +3002,11 @@ function useRenderPageFactory(props, payload) {
2713
3002
  const ids = (Array.isArray(requestIds) ? requestIds : [requestIds]).filter(
2714
3003
  (id) => typeof id === "string" && !!id
2715
3004
  );
3005
+ const instanceIdsKey = JSON.stringify([...new Set(ids)].sort());
3006
+ if (instanceIdsKey !== currentInstanceIdsKey) {
3007
+ initializedInstanceIds.clear();
3008
+ currentInstanceIdsKey = instanceIdsKey;
3009
+ }
2716
3010
  if (!ids.length) {
2717
3011
  pipeline.invalidate();
2718
3012
  clear();
@@ -2742,6 +3036,7 @@ function useRenderPageFactory(props, payload) {
2742
3036
  clear();
2743
3037
  });
2744
3038
  return {
3039
+ dataSourceManagerMap,
2745
3040
  counter,
2746
3041
  finisher,
2747
3042
  loading,
@@ -3393,9 +3688,9 @@ class FormAnnotationController {
3393
3688
  const items = this.normalizeAllResponse(res);
3394
3689
  this.applyAnnotationItems(items, () => true);
3395
3690
  return items;
3396
- } catch (e3) {
3397
- console.error("加载所有批注信息 error", e3);
3398
- throw e3;
3691
+ } catch (e2) {
3692
+ console.error("加载所有批注信息 error", e2);
3693
+ throw e2;
3399
3694
  }
3400
3695
  };
3401
3696
  handleOpenAnnotation = async () => {
@@ -3442,251 +3737,251 @@ function filterAnnotationItemsUpToCurrent(items) {
3442
3737
  });
3443
3738
  }
3444
3739
  export {
3445
- aM as AITooltips,
3446
- A3 as AllocateTableCore,
3447
- B3 as BaseFormModelFetcher,
3448
- aO as BinarizeMethodOptions,
3449
- a$ as BindCmpStyleEnum,
3450
- a0 as BooleanShowMode,
3740
+ aW as AITooltips,
3741
+ A as AllocateTableCore,
3742
+ ap2 as BaseFormModelFetcher,
3743
+ aY as BinarizeMethodOptions,
3744
+ ba as BindCmpStyleEnum,
3745
+ a6 as BooleanShowMode,
3451
3746
  B2 as BorderTD,
3452
3747
  BpmnNodeTypeEnum,
3453
- bz as BpmnSignatureTypeEnum,
3454
- bA as ButtonTypeEnum,
3748
+ bP as BpmnSignatureTypeEnum,
3749
+ bQ as ButtonTypeEnum,
3455
3750
  B as BwipCodeType,
3456
- bB as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3457
- y as CellType,
3458
- af as CellWidgetViewState,
3751
+ bR as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3752
+ H as CellType,
3753
+ am as CellWidgetViewState,
3459
3754
  CheckDsTypeEnum,
3460
- bC as CodeRunner,
3755
+ bS as CodeRunner,
3461
3756
  ComponentTypeEnum,
3462
- bD as Config_Fields,
3463
- bE as ControlStatusEnum,
3464
- bc as DEVICE_GROUP_QUERY_KEY,
3465
- bF as DEVICE_SEARCH_API,
3466
- aR as DateFormat,
3467
- ay as DecimalDisplayMode,
3468
- aN as DenoiseMethodOptions,
3469
- ap as DeviceConnector,
3470
- aK as DeviceLink,
3471
- m as DeviceLinkTmplUtil,
3472
- aL as DeviceParamsTypeTitle,
3757
+ bT as Config_Fields,
3758
+ bU as ControlStatusEnum,
3759
+ bk as DEVICE_GROUP_QUERY_KEY,
3760
+ bV as DEVICE_SEARCH_API,
3761
+ a$ as DateFormat,
3762
+ aF as DecimalDisplayMode,
3763
+ aX as DenoiseMethodOptions,
3764
+ aq2 as DeviceConnector,
3765
+ aU as DeviceLink,
3766
+ p as DeviceLinkTmplUtil,
3767
+ aV as DeviceParamsTypeTitle,
3473
3768
  D as DevicePartConsumeTableCore,
3474
- bG as DeviceStatus,
3475
- ag as DiagonalDirection,
3476
- ak as DiagonalVertex,
3477
- a32 as DocumentLayout,
3478
- aq as DocumentLoading,
3479
- a12 as DocumentPaper,
3480
- ar as DynamicQuickFillModal,
3481
- a22 as DynamicTableAction,
3482
- bH as EBR_PROVIDE_ENUM,
3483
- bI as EFieldBizTypeEnum,
3484
- H as EMPTY_PRODUCT_VERSION_ID,
3485
- aE as EmptySymbol,
3486
- a2 as FallbackSignTypeEnum,
3487
- ae as FieldSysVarDefaultValueEnum,
3769
+ bW as DeviceStatus,
3770
+ an as DiagonalDirection,
3771
+ ar as DiagonalVertex,
3772
+ a62 as DocumentLayout,
3773
+ ar2 as DocumentLoading,
3774
+ a4 as DocumentPaper,
3775
+ as2 as DynamicQuickFillModal,
3776
+ a52 as DynamicTableAction,
3777
+ bX as EBR_PROVIDE_ENUM,
3778
+ bY as EFieldBizTypeEnum,
3779
+ K2 as EMPTY_PRODUCT_VERSION_ID,
3780
+ aO as EmptySymbol,
3781
+ a8 as FallbackSignTypeEnum,
3782
+ al as FieldSysVarDefaultValueEnum,
3488
3783
  FillingTypeEnum,
3489
- as as FixedQuickFillModal,
3784
+ at as FixedQuickFillModal,
3490
3785
  FormAnnotationController,
3491
- F2 as FormModelController,
3786
+ F as FormModelController,
3492
3787
  FormTmplBomController,
3493
- at as FormTmplConfigController,
3788
+ au2 as FormTmplConfigController,
3494
3789
  FormTypeEnum,
3495
- az as ImageDisplayModeEnum,
3790
+ aG as ImageDisplayModeEnum,
3496
3791
  InstanceStatusValues,
3497
- aP as JoinModelTypeEum,
3498
- au2 as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3499
- av as LEGACY_RUNTIME_SHEET_ID,
3500
- aw as LEGACY_RUNTIME_SHEET_TITLE,
3501
- $ as LabelPosition,
3502
- ai as LineDirection,
3792
+ aZ as JoinModelTypeEum,
3793
+ av as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3794
+ aw as LEGACY_RUNTIME_SHEET_ID,
3795
+ ax as LEGACY_RUNTIME_SHEET_TITLE,
3796
+ a5 as LabelPosition,
3797
+ ap as LineDirection,
3503
3798
  L as LineType,
3504
- bJ as MAX_FRONT_ROW_KEY_LENGTH,
3799
+ bZ as MAX_FRONT_ROW_KEY_LENGTH,
3505
3800
  M as MAX_RUNTIME_SHEETS,
3506
3801
  a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
3507
- M3 as MBRender,
3508
- ax as MCDataUtil,
3509
- a8 as MCRender,
3510
- b as MULTI_SHEET_SCHEMA_VERSION,
3802
+ a1 as MBRender,
3803
+ ay as MCDataUtil,
3804
+ a2 as MCRender,
3805
+ d as MULTI_SHEET_SCHEMA_VERSION,
3511
3806
  MaterialConsumeTableController,
3512
3807
  MaterialConsumptionPatternEnum,
3513
3808
  M2 as MaterialRequisitionTableCore,
3514
3809
  MaterialStatusEnum,
3515
- a7 as MaterialSubstitutionTableCore,
3516
- bK as MobileFillTypeEnum,
3810
+ a3 as MaterialSubstitutionTableCore,
3811
+ b_ as MobileFillTypeEnum,
3517
3812
  NCB_PROVIDE,
3518
- ay2 as OCR_MODEL_PRECISION_ENUM_KEY,
3519
- bL as OfficeTypeEnum,
3813
+ az as OCR_MODEL_PRECISION_ENUM_KEY,
3814
+ b$ as OfficeTypeEnum,
3520
3815
  O as Orientation,
3521
- p as PageSizeEnum,
3816
+ t as PageSizeEnum,
3522
3817
  P as PaginationFormat,
3523
- a9 as PaperSizeMap,
3524
- o as PaperWidgeType,
3525
- Q as PaperWidgeValueType,
3526
- A as ParamModelTypeEnum,
3818
+ ag as PaperSizeMap,
3819
+ q as PaperWidgeType,
3820
+ Y as PaperWidgeValueType,
3821
+ K as ParamModelTypeEnum,
3527
3822
  P2 as PartStocktakeTableCore,
3528
3823
  PlatformEnum,
3529
- bM as PosEnum,
3530
- b3 as PretreatmentListTableCore,
3824
+ c0 as PosEnum,
3825
+ b as PretreatmentListTableCore,
3531
3826
  c as ProfileDrivenSubTableCore,
3532
- bN as RUNTIME_COLUMN_ROW_KEY,
3533
- au as RangeCompareOp,
3827
+ c1 as RUNTIME_COLUMN_ROW_KEY,
3828
+ aB as RangeCompareOp,
3534
3829
  RangeValidateMode,
3535
3830
  RenderModeEnum,
3536
- az2 as RuntimeAsyncTaskCoordinator,
3537
- aA as RuntimeDependencyService,
3538
- aB as RuntimeFieldRegistry,
3831
+ aA as RuntimeAsyncTaskCoordinator,
3832
+ aB2 as RuntimeDependencyService,
3833
+ aC as RuntimeFieldRegistry,
3539
3834
  RuntimeFormStateStore,
3540
3835
  RuntimeInstanceController,
3541
- aC as RuntimeInstanceEventBus,
3836
+ aD as RuntimeInstanceEventBus,
3542
3837
  RuntimeInstanceRegistry,
3543
- aD as RuntimePersistenceCoordinator,
3838
+ aE as RuntimePersistenceCoordinator,
3544
3839
  RuntimeRuleCompiler,
3545
3840
  RuntimeSheetService,
3546
- aE2 as RuntimeValidationService,
3547
- a5 as SignShowTypeEnum,
3548
- a1 as SignatureImageDirectionEnum,
3549
- a3 as SignatureNumberTypeEnum,
3550
- a4 as SignatureTimeTypeEnum,
3551
- a6 as SignatureTypeEnum,
3552
- d as SterilizeBatchTableCore,
3553
- e2 as StocktakeTableCore,
3554
- aF as SubTableCore,
3841
+ aF2 as RuntimeValidationService,
3842
+ ab as SignShowTypeEnum,
3843
+ a7 as SignatureImageDirectionEnum,
3844
+ a9 as SignatureNumberTypeEnum,
3845
+ aa as SignatureTimeTypeEnum,
3846
+ ac as SignatureTypeEnum,
3847
+ d2 as SterilizeBatchTableCore,
3848
+ e as StocktakeTableCore,
3849
+ aG2 as SubTableCore,
3555
3850
  SubTableCoreFactory,
3556
- f as SubTableType,
3557
- bO as SummaryApproveHisTypeEnum,
3558
- aj as TimeDiffFormat,
3559
- an as ViewTypeEnum,
3560
- W as WarehouseInTableCore,
3851
+ h as SubTableType,
3852
+ c2 as SummaryApproveHisTypeEnum,
3853
+ aq as TimeDiffFormat,
3854
+ au as ViewTypeEnum,
3855
+ W2 as WarehouseInTableCore,
3561
3856
  f2 as WarehouseInboundTableCore,
3562
3857
  g as WarehouseOutTableCore,
3563
- h as WarehouseOutboundTableCore,
3564
- ah as WidgetImageSizeMode,
3565
- bP as applyCheckDsDataToRuntime,
3566
- F as applyConsumeObjectTraceChange,
3567
- bQ as applyMedProCheckDsDataToRuntime,
3858
+ h2 as WarehouseOutboundTableCore,
3859
+ ao as WidgetImageSizeMode,
3860
+ c3 as applyCheckDsDataToRuntime,
3861
+ I as applyConsumeObjectTraceChange,
3862
+ c4 as applyMedProCheckDsDataToRuntime,
3568
3863
  baseDataUtils,
3569
- bR as bindRuntimeTableColumns,
3570
- bS as buildDeviceBaseQuery,
3571
- bb as buildDeviceFilterQuery,
3572
- aG as buildFormChangeDisplayRows,
3573
- w as buildObjectLotExtraQuery,
3864
+ c5 as bindRuntimeTableColumns,
3865
+ c6 as buildDeviceBaseQuery,
3866
+ aJ as buildDeviceFilterQuery,
3867
+ aH as buildFormChangeDisplayRows,
3868
+ y2 as buildObjectLotExtraQuery,
3574
3869
  buildRuntimeFieldPath,
3575
- bT as calcFillData,
3576
- bU as calcUtils,
3870
+ c7 as calcFillData,
3871
+ c8 as calcUtils,
3577
3872
  calculateFormula,
3578
3873
  collectAnnotationItemsByLocation,
3579
3874
  collectFormChangeFieldLocations,
3580
3875
  commonUtils,
3581
3876
  convertHistoricalAnnotationLocation,
3582
- aH as convertV1Runtime,
3583
- e as createRuntimeDocumentV2,
3877
+ aI as convertV1Runtime,
3878
+ f as createRuntimeDocumentV2,
3584
3879
  createRuntimeInstanceContext,
3585
- bV as decodeTableCellRowKey,
3586
- aI as detailsHaveFormChangeRowOps,
3587
- bW as encodeTableCellRowKey,
3880
+ c9 as decodeTableCellRowKey,
3881
+ aJ2 as detailsHaveFormChangeRowOps,
3882
+ ca as encodeTableCellRowKey,
3588
3883
  enrichFormChangeRowDetails,
3589
- bX as ensureFrontRowKey,
3590
- bY as ensureTableRowKeys,
3591
- aJ as extractFormChangeRowDetails,
3592
- bZ as extractKeywordFromQueryData,
3593
- b_ as fetchCheckDsDataForTable,
3594
- b$ as fetchCustomCheckDsData,
3884
+ cb as ensureFrontRowKey,
3885
+ cc as ensureTableRowKeys,
3886
+ aK2 as extractFormChangeRowDetails,
3887
+ cd as extractKeywordFromQueryData,
3888
+ ce as fetchCheckDsDataForTable,
3889
+ cf as fetchCustomCheckDsData,
3595
3890
  fetchHistoryConsume,
3596
- c0 as fetchMedProCheckDsData,
3891
+ cg as fetchMedProCheckDsData,
3597
3892
  fetchOperationReceiveQty,
3598
3893
  fetchUdi,
3599
3894
  filterAnnotationItemsUpToCurrent,
3600
- bf as findRuntimeParentRow,
3601
- c1 as findRuntimeTableCell,
3895
+ bp as findRuntimeParentRow,
3896
+ ch as findRuntimeTableCell,
3602
3897
  findRuntimeTableRow,
3603
3898
  getAppInfo,
3604
3899
  getBusinessFieldKey,
3605
- c2 as getCheckTableSnapshotKey,
3606
- aK2 as getFormChangeRowKey,
3607
- aL2 as getFormChangeRowOp,
3608
- aX as getLotLockedReason,
3609
- v as getObjectBomMaterialLotQuery,
3610
- G as getObjectBomProductQuery,
3900
+ ci as getCheckTableSnapshotKey,
3901
+ aL as getFormChangeRowKey,
3902
+ aM as getFormChangeRowOp,
3903
+ b6 as getLotLockedReason,
3904
+ x as getObjectBomMaterialLotQuery,
3905
+ J as getObjectBomProductQuery,
3611
3906
  getParseFormulaVarInfos,
3612
- c3 as getParseRuleConfig,
3613
- b0 as getParseRuleInfo,
3614
- b1 as getParseRuleValue,
3615
- c4 as getReinspectionDate,
3616
- c5 as getRenderedRuntimeTableCell,
3907
+ cj as getParseRuleConfig,
3908
+ bb as getParseRuleInfo,
3909
+ bc as getParseRuleValue,
3910
+ ck as getReinspectionDate,
3911
+ cl as getRenderedRuntimeTableCell,
3617
3912
  getRuntimeDataFieldId,
3618
3913
  getRuntimeDependencyOutputKey,
3619
- aM2 as getSubTableQuickFillInfo,
3914
+ aN as getSubTableQuickFillInfo,
3620
3915
  getSuiteKey,
3621
- c6 as handleOldConfig,
3622
- c7 as hasAnyCheckTableSnapshot,
3623
- c8 as hasByTableCheckTableSnapshot,
3624
- c9 as hasSharedCheckTableSnapshot,
3625
- aN2 as isAnnLocationSelected,
3626
- aO2 as isBlank,
3916
+ cm as handleOldConfig,
3917
+ cn as hasAnyCheckTableSnapshot,
3918
+ co as hasByTableCheckTableSnapshot,
3919
+ cp as hasSharedCheckTableSnapshot,
3920
+ aO2 as isAnnLocationSelected,
3921
+ aP as isBlank,
3627
3922
  isBomGranted,
3628
3923
  isEdhrSuite,
3629
3924
  isEqmSuite,
3630
- aP2 as isFormChangeGhostRow,
3631
- ca as isMedProSuite,
3925
+ aQ as isFormChangeGhostRow,
3926
+ cq as isMedProSuite,
3632
3927
  isRowAddedInCurrentFormChange,
3633
- cb as isTableRowKeyMatch,
3634
- cc as jsonSchemaUtils,
3635
- cd as judgeUnique,
3636
- aW as materialCheck,
3637
- ce as migrateDiagonalDirectionToVertex,
3928
+ cr as isTableRowKeyMatch,
3929
+ cs as jsonSchemaUtils,
3930
+ ct as judgeUnique,
3931
+ b5 as materialCheck,
3932
+ cu as migrateDiagonalDirectionToVertex,
3638
3933
  nextFormChangeRowViewHistoryId,
3639
- o2 as normalizeAIOcrTmpl,
3640
- I as normalizeHistoricalAutofillRow,
3641
- l as normalizeHistoricalBusinessRow,
3642
- aQ2 as normalizeHistoricalFieldConfig,
3643
- b2 as normalizeRefLoaderResult,
3934
+ q2 as normalizeAIOcrTmpl,
3935
+ L2 as normalizeHistoricalAutofillRow,
3936
+ o as normalizeHistoricalBusinessRow,
3937
+ aR as normalizeHistoricalFieldConfig,
3938
+ bd as normalizeRefLoaderResult,
3644
3939
  normalizeRuntime,
3645
3940
  parseFrontConfig,
3646
3941
  parseRuntimeFieldPath,
3647
3942
  parseUdi,
3648
- aR2 as pickObjectFieldKeys,
3649
- aS as recordSubtableRowAdd,
3650
- aT as recordSubtableRowDelete,
3651
- b9 as refUtils,
3652
- aU as relocateDeletedRowsToEnd,
3943
+ aS as pickObjectFieldKeys,
3944
+ aT as recordSubtableRowAdd,
3945
+ aU2 as recordSubtableRowDelete,
3946
+ aK as refUtils,
3947
+ aV2 as relocateDeletedRowsToEnd,
3653
3948
  renderUtils,
3654
- cf as requestMedProCheckDsData,
3655
- cg as requestNonMedProCheckDsData,
3656
- aV as resolveAnnotationFieldLocation,
3657
- al as resolveDiagonalVertex,
3658
- t as resolveFieldRenderComponent,
3659
- aW2 as resolveFormChangeRowUi,
3660
- A2 as resolveObjectBomEntry,
3661
- x as resolveObjectFieldKeys,
3662
- aX2 as resolveRowFormChangeMark,
3949
+ cv as requestMedProCheckDsData,
3950
+ cw as requestNonMedProCheckDsData,
3951
+ aW2 as resolveAnnotationFieldLocation,
3952
+ as as resolveDiagonalVertex,
3953
+ y as resolveFieldRenderComponent,
3954
+ aX2 as resolveFormChangeRowUi,
3955
+ E as resolveObjectBomEntry,
3956
+ z as resolveObjectFieldKeys,
3957
+ aY2 as resolveRowFormChangeMark,
3663
3958
  resolveUdiQuery,
3664
- C as runWithFillProduct,
3665
- r as setSelectAnnotationId,
3666
- aY2 as setSelectMobileTdId,
3667
- s as setSelectValidatorId,
3668
- ch as splitRuntimeDataPath,
3669
- aQ as sqlUtils,
3670
- ci as stockCheck,
3671
- aZ as stripLegacyFormConfigFromPaper,
3959
+ G as runWithFillProduct,
3960
+ v as setSelectAnnotationId,
3961
+ aZ2 as setSelectMobileTdId,
3962
+ t2 as setSelectValidatorId,
3963
+ cx as splitRuntimeDataPath,
3964
+ a_ as sqlUtils,
3965
+ cy as stockCheck,
3966
+ a_2 as stripLegacyFormConfigFromPaper,
3672
3967
  transformUtils,
3673
- T as useDependency,
3968
+ V as useDependency,
3674
3969
  useEbrWikiFactoryV2,
3675
- U as useFieldPresentation,
3676
- u2 as useFormModel,
3677
- u as useFormTmplConfig,
3970
+ W as useFieldPresentation,
3971
+ u as useFormModel,
3972
+ l as useFormTmplConfig,
3678
3973
  useMaterialBalance,
3679
3974
  useNocodeEmitter,
3680
- E as useNocodeFormWidget,
3681
- cj as useOnlineFormActionButton,
3682
- bg as useOnlineFormTransformField2Component,
3975
+ H2 as useNocodeFormWidget,
3976
+ cz as useOnlineFormActionButton,
3977
+ bq as useOnlineFormTransformField2Component,
3683
3978
  useRenderPageFactory,
3684
- V as useRuntimeEditorFlusher,
3685
- q as useRuntimeInstanceServices,
3686
- t2 as useRuntimeRowState,
3687
- S as useStyles,
3688
- p2 as useWidgetStaticAttrs,
3689
- z as validateObjectBomForScan,
3979
+ X as useRuntimeEditorFlusher,
3980
+ s as useRuntimeInstanceServices,
3981
+ w as useRuntimeRowState,
3982
+ U as useStyles,
3983
+ r as useWidgetStaticAttrs,
3984
+ C as validateObjectBomForScan,
3690
3985
  validateObjectBomQtyOnSubmit,
3691
- aY as validateReinspectionDate
3986
+ b7 as validateReinspectionDate
3692
3987
  };