@gct-paas/excel 0.1.40 → 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.
- package/README.md +3 -4
- package/dist/{BaseComponent-CD_dAL9D.js → BaseComponent-CuX5xLFK.js} +4 -3
- package/dist/{VueVideoPlayer-DQQlv_cp.js → VueVideoPlayer-CBBB12Hj.js} +2 -2
- package/dist/{align-editor-DchzBHaC.js → align-editor-Df9gS31T.js} +1 -1
- package/dist/{barcode-design-BBW5cG3v.js → barcode-design-B34-4xJ9.js} +3 -2
- package/dist/base/index.es.js +517 -222
- package/dist/{diagonal-design-CawGqmc7.js → diagonal-design-D0HXMI8w.js} +3 -2
- package/dist/{dynamic-table-action-Dw7AIthU.js → dynamic-table-action-9sxv3gW5.js} +452 -322
- 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
- package/dist/{edit.utils-CXmmCnxE-B7lpVZjb.js → edit.utils-CXmmCnxE-0uJiCs33.js} +1 -1
- package/dist/excel.css +611 -723
- package/dist/{exceljs.min-DDPQIUli.js → exceljs.min-Doeyz39_.js} +2 -2
- package/dist/{font-editor-n8zk8Vt2.js → font-editor-B8A9tDhO.js} +3 -3
- package/dist/{image-design-D4mIDz9K.js → image-design-CVyCbbef.js} +3 -8
- package/dist/{index-DfFakGrF.js → index-7VROqGqR.js} +3 -2
- package/dist/{index-1klMDz7G.js → index-B3hu8heh.js} +3 -2
- package/dist/{index-C4t8sSlN.js → index-B7Yt5TSq.js} +2 -1
- package/dist/{index-B0u6FHDq.js → index-BLJdXkdZ.js} +5 -4
- package/dist/{index-TZy8JxSW.js → index-BOO2K9Vu.js} +4 -3
- package/dist/{index-DUztXGMj.js → index-Bb3Ugl3c.js} +3 -2
- package/dist/{index-Dh0_kanw.js → index-Bj2qRb0q.js} +2 -1
- package/dist/{index-BZ7bC20P.js → index-BwyHByzZ.js} +2 -1
- package/dist/{index-Do-QyvWW.js → index-CDObWZ7G.js} +3 -2
- package/dist/{index-Bm8wYtHB.js → index-CGU3uK4z.js} +2 -1
- package/dist/{index-BW95iBc7.js → index-CMmaJ4Ss.js} +3 -2
- package/dist/{index-CYSJt1Zc.js → index-CNmwpU3G.js} +7 -3
- package/dist/{index-BMsHMGap.js → index-CS1tP-l0.js} +3 -2
- package/dist/{index-4p1VXlOx.js → index-Cn_bmfoD.js} +2 -1
- package/dist/{index-C-NpFAft.js → index-CzztJ4fH.js} +4 -3
- package/dist/{index-CXnuud67.js → index-D0VBKmKt.js} +3 -2
- package/dist/{index-DiWzNeZJ.js → index-DA7GAWZ1.js} +4 -3
- package/dist/{index-Boy8--Ns.js → index-DKKIL32g.js} +3 -2
- package/dist/{index-DPf5_q0T.js → index-DMVIENZW.js} +4 -3
- package/dist/{index-r9t3crs-.js → index-DU4dWvY6.js} +2 -1
- package/dist/{index-BcHwRIXW.js → index-D_hAd0MQ.js} +4 -3
- package/dist/{index-Ch88zDje.js → index-DuuvFB0e.js} +3 -2
- package/dist/{index-CI6Hl1Ns.js → index-FCg2Jzvu.js} +2 -1
- package/dist/{index-r0yHBje3.js → index-PSQkEXxq.js} +3 -2
- package/dist/{index-CAc9drK5.js → index-R95URjcc.js} +2 -1
- package/dist/{index-gHOlYnAA.js → index-RG23XjoT.js} +2 -1
- package/dist/{index-S8Dj5ycu.js → index-TeozNhWH.js} +3 -2
- package/dist/{index--MetH_r4.js → index-Uy8bXkuC.js} +4 -3
- package/dist/{index-DiPWQwMU.js → index-VrLq9hAc.js} +8987 -3728
- package/dist/{index-DvMu7-8y.js → index-XE84LVO7.js} +2 -1
- package/dist/{index-CmjTSiUa.js → index-dUCz8OdV.js} +3 -2
- package/dist/{index-DgybKcgI.js → index-hDsTasdu.js} +3 -2
- package/dist/{index-H4f-e99t.js → index-ucaRXWE8.js} +3 -2
- package/dist/{index-BWoOPv6-.js → index-vEZ4Yr2u.js} +3 -2
- package/dist/index.es.js +52 -46
- 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
- package/dist/{pagination-design-lckCQWcK.js → pagination-design-B5DxwV5F.js} +3 -2
- package/dist/paper-widget-design-A55mbwYv.js +4 -0
- package/dist/{print-runtime-instance-Dckul2Bk.js → print-runtime-instance-BDM-anCd.js} +1 -1
- package/dist/{print-snapshot-renderer-lub7u9sp.js → print-snapshot-renderer-kB1Bw7A_.js} +3 -3
- package/dist/{qrcode-design-M0HzGVjM.js → qrcode-design-bN48s3rk.js} +1 -1
- package/dist/{revo-grid.entry-Dr4S1tgO.js → revo-grid.entry-BXEGtAbW.js} +1 -1
- package/dist/{revogr-attribution_7.entry-27u9hxgM.js → revogr-attribution_7.entry-CImeTxBl.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DxjljgJl.js → revogr-clipboard_3.entry-DqcrJ6zB.js} +2 -2
- package/dist/{revogr-data_4.entry-CnSalg4D.js → revogr-data_4.entry-Ccdsy3nO.js} +2 -2
- package/dist/{revogr-filter-panel.entry-CSsekbYc.js → revogr-filter-panel.entry-B2xM2jvB.js} +1 -1
- package/dist/seal-design-B3FBumLr.js +4 -0
- package/dist/{serialnumber-design-DUiLiTSj.js → serialnumber-design-BGTOIn2S.js} +1 -1
- package/dist/shared/index.es.js +29 -28
- package/dist/{single-field-drop-CF_r0dCX.js → single-field-drop-b2b71HAk.js} +2 -3
- package/dist/{size-editor-DNMqRicI.js → size-editor-DtX2f2CF.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +1 -1
- package/dist/src/adapter/index.d.ts +2 -0
- package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/inventory-scan-columns.d.ts +1 -1
- 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
- package/dist/src/{nocode-web-render/src/render/sub-table/material-balance → adapter/web}/material-consume-modal.vue.d.ts +1 -1
- package/dist/src/adapter/web/material-consume-render.d.ts +25 -0
- package/dist/src/{nocode-web-render/src/render/common → adapter/web}/open-util.d.ts +1 -1
- package/dist/src/{nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts → adapter/web/stocktake-render.d.ts} +2 -2
- package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/sub-table-render.d.ts +2 -5
- package/dist/src/domain/document-business/business/product-release/profile.d.ts +2 -0
- package/dist/src/domain/document-business/business/product-release/service.d.ts +2 -0
- package/dist/src/domain/document-business/index.d.ts +2 -0
- package/dist/src/domain/document-business/registry.d.ts +2 -0
- package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
- package/dist/src/domain/document-business/types.d.ts +24 -0
- package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/query-filter.d.ts +15 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +37 -1
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +7 -0
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +12 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +19 -0
- package/dist/src/domain/table/design/autofill-expander.d.ts +2 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +6 -0
- package/dist/src/domain/table/index.d.ts +1 -1
- package/dist/src/domain/table/types.d.ts +2 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/nocode-base/src/components/document-sub-table-action/dynamic-table-action.vue.d.ts +0 -2
- package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +0 -3
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +0 -4
- package/dist/src/nocode-base/src/components/material-consume/types.d.ts +1 -5
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +4 -4
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +1 -4
- package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +1 -2
- package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +0 -6
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +1 -28
- package/dist/src/nocode-base/src/hooks/render-page/initial-value-data-sources.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +9 -8
- package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +51 -0
- package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +7 -1
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +8 -2
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +55 -6
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +24 -0
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +3 -0
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +5 -2
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +8 -5
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -2
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +2 -15
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +0 -10
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +4 -4
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +144 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +87 -4
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/message-rule-config/rule-modal.vue.d.ts +32 -0
- 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
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +6 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/panel-check-table/select-check-ds-modal.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/designer/types/index.d.ts +12 -1
- package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +9 -0
- package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +7 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +1 -4
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
- package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +162 -2
- package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +41 -0
- package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +16 -0
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
- package/dist/src/shared/enum/field-type.d.ts +8 -3
- package/dist/src/{nocode-web-render/src → shared}/hooks/useWebUpload.d.ts +1 -1
- package/dist/src/shared/index.d.ts +1 -0
- package/dist/src/shared/types/index.d.ts +1 -0
- package/dist/src/shared/types/upload.d.ts +11 -0
- package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
- package/dist/{sub-table-factory-D-GcNTOB.js → sub-table-factory-DoEvzrVN.js} +276 -89
- package/dist/{text-design-BfZf4B27.js → text-design-BQVBFcI0.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-B4SDzSMU.js → throttle-Cpk1LoGk-DR_8z9qq.js} +1 -1
- package/dist/{timediff-design-BeO94tLR.js → timediff-design-DioTJEvx.js} +2 -1
- package/dist/{trace-like-wrapper-Xc4cr21n.js → trace-like-wrapper-CjxBkfYK.js} +3 -2
- 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
- package/dist/{widget-barcode-CrfBj8iv.js → widget-barcode-CEn3AYG0.js} +5 -4
- package/dist/{widget-diagonal-C3Nho_Um.js → widget-diagonal-DbOhaNpW.js} +4 -4
- package/dist/{widget-image-CjsL9QW8.js → widget-image-BGP2w2mj.js} +5 -7
- package/dist/{widget-line-BtvpVv_s.js → widget-line-CkSPcw5A.js} +3 -2
- package/dist/{widget-pagination-DAUQo2nI.js → widget-pagination-BH0VtWHT.js} +6 -5
- package/dist/{widget-power-yUHZ4Hoc.js → widget-power-DuTIvdpR.js} +4 -4
- package/dist/{widget-qrcode-DJtT9NaM.js → widget-qrcode-CJJjPnwn.js} +4 -3
- package/dist/{widget-rangelimit-BhadVdCu.js → widget-rangelimit-828JH1wm.js} +3 -4
- package/dist/{widget-serialnumber-WMHB8nl6.js → widget-serialnumber-CIjY3I-t.js} +1 -1
- package/dist/{widget-text-C4dD9JF3.js → widget-text-C_Ja4yWN.js} +5 -5
- package/dist/{widget-timediff-C9d8_3hY.js → widget-timediff-CjmATkLS.js} +3 -2
- package/package.json +2 -6
- package/dist/AntdIcon-DCIaV352.js +0 -1108
- package/dist/index-_Ec5LAW9.js +0 -4353
- package/dist/mb-render-sgVmAe6_.js +0 -276
- package/dist/paper-widget-design-Nd5VjI7n.js +0 -4
- package/dist/seal-design-kuAsmNq1.js +0 -4
- package/dist/src/nocode-web-render/src/components/print-fill-background-selector.vue.d.ts +0 -2
- package/dist/src/nocode-web-render/src/hooks/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +0 -15
- package/dist/src/nocode-web-render/src/index.d.ts +0 -6
- package/dist/src/nocode-web-render/src/logic/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/common/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/render/common/modal-manager.d.ts +0 -20
- package/dist/src/nocode-web-render/src/render/index.d.ts +0 -10
- package/dist/src/nocode-web-render/src/render/parse-rule/index.d.ts +0 -3
- package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/allocate-web-render.d.ts +0 -4
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +0 -19
- package/dist/src/nocode-web-render/src/render/sub-table/index.d.ts +0 -3
- package/dist/src/nocode-web-render/src/render/sub-table/material-balance/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/bom-modal.vue.d.ts +0 -11
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +0 -4
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +0 -42
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/types/hooks/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/types/index.d.ts +0 -1
- package/dist/web-render/index.d.ts +0 -1
- package/dist/web-render/index.es.js +0 -595
- /package/dist/src/{nocode-web-render/src/adapter/index.d.ts → adapter/web/setup.d.ts} +0 -0
- /package/dist/src/{nocode-web-render/src/logic/utils.d.ts → adapter/web/upload.d.ts} +0 -0
package/dist/base/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted,
|
|
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-
|
|
9
|
-
import { A
|
|
10
|
-
import {
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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(() =>
|
|
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().
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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())
|
|
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 (
|
|
3393
|
-
console.error("加载所有批注信息 error",
|
|
3394
|
-
throw
|
|
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
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
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
|
-
|
|
3450
|
-
|
|
3744
|
+
bP as BpmnSignatureTypeEnum,
|
|
3745
|
+
bQ as ButtonTypeEnum,
|
|
3451
3746
|
B as BwipCodeType,
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3747
|
+
bR as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3748
|
+
H as CellType,
|
|
3749
|
+
am as CellWidgetViewState,
|
|
3455
3750
|
CheckDsTypeEnum,
|
|
3456
|
-
|
|
3751
|
+
bS as CodeRunner,
|
|
3457
3752
|
ComponentTypeEnum,
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
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
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
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
|
-
|
|
3780
|
+
at as FixedQuickFillModal,
|
|
3486
3781
|
FormAnnotationController,
|
|
3487
|
-
|
|
3782
|
+
F as FormModelController,
|
|
3488
3783
|
FormTmplBomController,
|
|
3489
|
-
|
|
3784
|
+
au2 as FormTmplConfigController,
|
|
3490
3785
|
FormTypeEnum,
|
|
3491
|
-
|
|
3786
|
+
aG as ImageDisplayModeEnum,
|
|
3492
3787
|
InstanceStatusValues,
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
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
|
-
|
|
3512
|
-
|
|
3806
|
+
a3 as MaterialSubstitutionTableCore,
|
|
3807
|
+
b_ as MobileFillTypeEnum,
|
|
3513
3808
|
NCB_PROVIDE,
|
|
3514
|
-
|
|
3515
|
-
|
|
3809
|
+
az as OCR_MODEL_PRECISION_ENUM_KEY,
|
|
3810
|
+
b$ as OfficeTypeEnum,
|
|
3516
3811
|
O as Orientation,
|
|
3517
|
-
|
|
3812
|
+
t as PageSizeEnum,
|
|
3518
3813
|
P as PaginationFormat,
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
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
|
-
|
|
3526
|
-
|
|
3820
|
+
c0 as PosEnum,
|
|
3821
|
+
b as PretreatmentListTableCore,
|
|
3527
3822
|
c as ProfileDrivenSubTableCore,
|
|
3528
|
-
|
|
3529
|
-
|
|
3823
|
+
c1 as RUNTIME_COLUMN_ROW_KEY,
|
|
3824
|
+
aB as RangeCompareOp,
|
|
3530
3825
|
RangeValidateMode,
|
|
3531
3826
|
RenderModeEnum,
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3827
|
+
aA as RuntimeAsyncTaskCoordinator,
|
|
3828
|
+
aB2 as RuntimeDependencyService,
|
|
3829
|
+
aC as RuntimeFieldRegistry,
|
|
3535
3830
|
RuntimeFormStateStore,
|
|
3536
3831
|
RuntimeInstanceController,
|
|
3537
|
-
|
|
3832
|
+
aD as RuntimeInstanceEventBus,
|
|
3538
3833
|
RuntimeInstanceRegistry,
|
|
3539
|
-
|
|
3834
|
+
aE as RuntimePersistenceCoordinator,
|
|
3540
3835
|
RuntimeRuleCompiler,
|
|
3541
3836
|
RuntimeSheetService,
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
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
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
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
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3854
|
+
h2 as WarehouseOutboundTableCore,
|
|
3855
|
+
ao as WidgetImageSizeMode,
|
|
3856
|
+
c3 as applyCheckDsDataToRuntime,
|
|
3857
|
+
I as applyConsumeObjectTraceChange,
|
|
3858
|
+
c4 as applyMedProCheckDsDataToRuntime,
|
|
3564
3859
|
baseDataUtils,
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3860
|
+
c5 as bindRuntimeTableColumns,
|
|
3861
|
+
c6 as buildDeviceBaseQuery,
|
|
3862
|
+
aJ as buildDeviceFilterQuery,
|
|
3863
|
+
aH as buildFormChangeDisplayRows,
|
|
3864
|
+
y2 as buildObjectLotExtraQuery,
|
|
3570
3865
|
buildRuntimeFieldPath,
|
|
3571
|
-
|
|
3572
|
-
|
|
3866
|
+
c7 as calcFillData,
|
|
3867
|
+
c8 as calcUtils,
|
|
3573
3868
|
calculateFormula,
|
|
3574
3869
|
collectAnnotationItemsByLocation,
|
|
3575
3870
|
collectFormChangeFieldLocations,
|
|
3576
3871
|
commonUtils,
|
|
3577
3872
|
convertHistoricalAnnotationLocation,
|
|
3578
|
-
|
|
3579
|
-
|
|
3873
|
+
aI as convertV1Runtime,
|
|
3874
|
+
f as createRuntimeDocumentV2,
|
|
3580
3875
|
createRuntimeInstanceContext,
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3876
|
+
c9 as decodeTableCellRowKey,
|
|
3877
|
+
aJ2 as detailsHaveFormChangeRowOps,
|
|
3878
|
+
ca as encodeTableCellRowKey,
|
|
3584
3879
|
enrichFormChangeRowDetails,
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
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
|
-
|
|
3887
|
+
cg as fetchMedProCheckDsData,
|
|
3593
3888
|
fetchOperationReceiveQty,
|
|
3594
3889
|
fetchUdi,
|
|
3595
3890
|
filterAnnotationItemsUpToCurrent,
|
|
3596
|
-
|
|
3597
|
-
|
|
3891
|
+
bp as findRuntimeParentRow,
|
|
3892
|
+
ch as findRuntimeTableCell,
|
|
3598
3893
|
findRuntimeTableRow,
|
|
3599
3894
|
getAppInfo,
|
|
3600
3895
|
getBusinessFieldKey,
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
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
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
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
|
-
|
|
3910
|
+
aN as getSubTableQuickFillInfo,
|
|
3616
3911
|
getSuiteKey,
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
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
|
-
|
|
3627
|
-
|
|
3921
|
+
aQ as isFormChangeGhostRow,
|
|
3922
|
+
cq as isMedProSuite,
|
|
3628
3923
|
isRowAddedInCurrentFormChange,
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3924
|
+
cr as isTableRowKeyMatch,
|
|
3925
|
+
cs as jsonSchemaUtils,
|
|
3926
|
+
ct as judgeUnique,
|
|
3927
|
+
b5 as materialCheck,
|
|
3928
|
+
cu as migrateDiagonalDirectionToVertex,
|
|
3634
3929
|
nextFormChangeRowViewHistoryId,
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
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
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3939
|
+
aS as pickObjectFieldKeys,
|
|
3940
|
+
aT as recordSubtableRowAdd,
|
|
3941
|
+
aU2 as recordSubtableRowDelete,
|
|
3942
|
+
aK as refUtils,
|
|
3943
|
+
aV2 as relocateDeletedRowsToEnd,
|
|
3649
3944
|
renderUtils,
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
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
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
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
|
-
|
|
3964
|
+
V as useDependency,
|
|
3670
3965
|
useEbrWikiFactoryV2,
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3966
|
+
W as useFieldPresentation,
|
|
3967
|
+
u as useFormModel,
|
|
3968
|
+
l as useFormTmplConfig,
|
|
3674
3969
|
useMaterialBalance,
|
|
3675
3970
|
useNocodeEmitter,
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3971
|
+
H2 as useNocodeFormWidget,
|
|
3972
|
+
cz as useOnlineFormActionButton,
|
|
3973
|
+
bq as useOnlineFormTransformField2Component,
|
|
3679
3974
|
useRenderPageFactory,
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
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
|
-
|
|
3982
|
+
b7 as validateReinspectionDate
|
|
3688
3983
|
};
|