@gct-paas/excel 0.1.40-beta.9 → 0.1.40
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/dist/{BaseComponent-DKaXUiq4.js → BaseComponent-CD_dAL9D.js} +3 -4
- package/dist/{VueVideoPlayer-BeylL5J6.js → VueVideoPlayer-DQQlv_cp.js} +2 -2
- package/dist/{align-editor-r0dHXFka.js → align-editor-DchzBHaC.js} +1 -1
- package/dist/{barcode-design-BTNQYLEC.js → barcode-design-BBW5cG3v.js} +2 -3
- package/dist/base/index.es.js +306 -465
- package/dist/{diagonal-design-ByuNrPs-.js → diagonal-design-CawGqmc7.js} +2 -3
- package/dist/{dynamic-table-action-CHY5xNLE.js → dynamic-table-action-Dw7AIthU.js} +941 -315
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js} +1190 -1809
- package/dist/{edit.utils-CXmmCnxE-Cu6obgSA.js → edit.utils-CXmmCnxE-B7lpVZjb.js} +1 -1
- package/dist/excel.css +4664 -3585
- package/dist/{exceljs.min-BAX9-ZsR.js → exceljs.min-DDPQIUli.js} +2 -2
- package/dist/{font-editor-DiFflAdU.js → font-editor-n8zk8Vt2.js} +3 -3
- package/dist/{image-design-FDLY6DFg.js → image-design-D4mIDz9K.js} +2 -2
- package/dist/{index-ChINVccu.js → index--MetH_r4.js} +3 -4
- package/dist/{index-dXOMuxrp.js → index-1klMDz7G.js} +2 -3
- package/dist/{index-Go0PUrqy.js → index-4p1VXlOx.js} +1 -2
- package/dist/{index-hllsJVUF.js → index-B0u6FHDq.js} +4 -5
- package/dist/{index-AGp5c3cl.js → index-BMsHMGap.js} +2 -3
- package/dist/{index-rZVFumSM.js → index-BW95iBc7.js} +2 -3
- package/dist/{index-B8pwnxas.js → index-BWoOPv6-.js} +2 -3
- package/dist/{index-CRIhEnfm.js → index-BZ7bC20P.js} +1 -2
- package/dist/{index-DsQp4UCs.js → index-BcHwRIXW.js} +3 -4
- package/dist/{index-DJiuJgNx.js → index-Bm8wYtHB.js} +1 -2
- package/dist/{index-B-hfUWEs.js → index-Boy8--Ns.js} +2 -3
- package/dist/{index-De6oWEZJ.js → index-C-NpFAft.js} +3 -3
- package/dist/{index-DgLLlaiF.js → index-C4t8sSlN.js} +1 -2
- package/dist/{index-7u6Pmaax.js → index-CAc9drK5.js} +1 -2
- package/dist/{index-BCsDTwbK.js → index-CI6Hl1Ns.js} +1 -2
- package/dist/{index-DDvfW5-d.js → index-CXnuud67.js} +2 -3
- package/dist/{index-D3s4H_1P.js → index-CYSJt1Zc.js} +3 -7
- package/dist/{index-BIeu5JwZ.js → index-Ch88zDje.js} +2 -3
- package/dist/{index-gGYvWSjX.js → index-CmjTSiUa.js} +2 -3
- package/dist/{index-2WkF904L.js → index-DPf5_q0T.js} +3 -4
- package/dist/{index-BTfYHAPC.js → index-DUztXGMj.js} +2 -3
- package/dist/{index-C6jVSwAq.js → index-DfFakGrF.js} +2 -3
- package/dist/{index-C3SyXJii.js → index-DgybKcgI.js} +2 -3
- package/dist/{index-DGODLCja.js → index-Dh0_kanw.js} +1 -2
- package/dist/{index-Dlihqay0.js → index-DiPWQwMU.js} +29517 -27220
- package/dist/{index-C8LoodYv.js → index-DiWzNeZJ.js} +6 -4
- package/dist/{index-CbmHekMw.js → index-Do-QyvWW.js} +2 -3
- package/dist/{index-DEHsGK91.js → index-DvMu7-8y.js} +1 -2
- package/dist/{index-Dl_ZgCRB.js → index-H4f-e99t.js} +2 -3
- package/dist/{index-DXNSTk5n.js → index-S8Dj5ycu.js} +2 -3
- package/dist/{index-jkltWTT1.js → index-TZy8JxSW.js} +5 -8
- package/dist/{index-CFVecFFb.js → index-_Ec5LAW9.js} +2 -2
- package/dist/{index-KxrgWfEL.js → index-gHOlYnAA.js} +1 -2
- package/dist/{index-DkYlfWLa.js → index-r0yHBje3.js} +2 -3
- package/dist/{index-BdFPuj12.js → index-r9t3crs-.js} +1 -2
- package/dist/index.es.js +10 -14
- package/dist/{mb-render-_IUbyYCY.js → mb-render-sgVmAe6_.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DDJetWQU.js} +1 -2
- package/dist/{pagination-design-BPbb9CiE.js → pagination-design-lckCQWcK.js} +2 -3
- package/dist/paper-widget-design-Nd5VjI7n.js +4 -0
- package/dist/{print-runtime-instance-BmJ9GNr2.js → print-runtime-instance-Dckul2Bk.js} +1 -1
- package/dist/{print-snapshot-renderer-NCND8gig.js → print-snapshot-renderer-lub7u9sp.js} +3 -3
- package/dist/{qrcode-design-00WrOrbQ.js → qrcode-design-M0HzGVjM.js} +1 -1
- package/dist/{revo-grid.entry-BZADj2ve.js → revo-grid.entry-Dr4S1tgO.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DbQASE7d.js → revogr-attribution_7.entry-27u9hxgM.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BUDhUelS.js → revogr-clipboard_3.entry-DxjljgJl.js} +2 -2
- package/dist/{revogr-data_4.entry-0V57Lz9p.js → revogr-data_4.entry-CnSalg4D.js} +2 -2
- package/dist/{revogr-filter-panel.entry-BJEYteeW.js → revogr-filter-panel.entry-CSsekbYc.js} +1 -1
- package/dist/seal-design-kuAsmNq1.js +4 -0
- package/dist/{serialnumber-design-BbjW4gnZ.js → serialnumber-design-DUiLiTSj.js} +1 -1
- package/dist/shared/index.es.js +25 -25
- package/dist/{single-field-drop-CZmE1hGc.js → single-field-drop-CF_r0dCX.js} +2 -2
- package/dist/{size-editor-CcYZKUn5.js → size-editor-DNMqRicI.js} +1 -1
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +1 -37
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -3
- package/dist/src/domain/table/design/autofill-expander.d.ts +0 -2
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +0 -6
- package/dist/src/domain/table/index.d.ts +1 -1
- package/dist/src/domain/table/types.d.ts +0 -2
- package/dist/src/index.d.ts +0 -8
- package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +2 -0
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +3 -3
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +0 -1
- package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +9 -7
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +17 -14
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +8 -0
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +3 -1
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +7 -3
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +1 -7
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +2 -8
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +6 -46
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -21
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +1 -12
- package/dist/src/nocode-base/src/interface/transform.d.ts +5 -0
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +2 -0
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +3 -1
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +4 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +0 -1
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +2 -5
- package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -2
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -5
- package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +2 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +0 -4
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +8 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +0 -1
- package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +35 -124
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +16 -63
- package/dist/src/online-form/src/views/designer/modules/base/designer-wrapper.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/duplicate-field-notice.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +12 -6
- package/dist/src/online-form/src/views/designer/modules/xlsx-import-summary.vue.d.ts +11 -0
- package/dist/src/online-form/src/views/designer/types/index.d.ts +2 -5
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/utils/cell-field-placements.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +9 -3
- 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_/seal/component/seal-floating-field.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +4 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useReferenceLabel.d.ts +4 -0
- package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +2 -162
- package/dist/src/shared/components/Signature/logic/index.d.ts +0 -14
- package/dist/src/shared/enum/field-type.d.ts +2 -7
- package/dist/src/shared/utils/cell-wrap.d.ts +9 -0
- package/dist/src/shared/utils/field-size.d.ts +2 -0
- package/dist/src/shared/utils/grid-size.d.ts +2 -0
- package/dist/src/shared/utils/lot2sn.d.ts +14 -1
- package/dist/src/shared/utils/query-filter.d.ts +24 -0
- package/dist/{sub-table-factory-B0YWwWSA.js → sub-table-factory-D-GcNTOB.js} +106 -209
- package/dist/{text-design-BjtdVSoz.js → text-design-BfZf4B27.js} +5 -5
- package/dist/{throttle-Cpk1LoGk-BVommE6v.js → throttle-Cpk1LoGk-B4SDzSMU.js} +1 -1
- package/dist/{timediff-design-DLlIUaqv.js → timediff-design-BeO94tLR.js} +1 -2
- package/dist/{trace-like-wrapper-D91DvdFd.js → trace-like-wrapper-Xc4cr21n.js} +5 -3
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CoD8ISWI.js → value-editor.vue_vue_type_style_index_0_lang-CMpVHBLK.js} +2 -3
- package/dist/web-render/index.es.js +3 -4
- package/dist/{widget-barcode-BYiE3tsx.js → widget-barcode-CrfBj8iv.js} +4 -5
- package/dist/{widget-diagonal-DHQFi6CR.js → widget-diagonal-C3Nho_Um.js} +3 -4
- package/dist/{widget-image-id71BcU3.js → widget-image-CjsL9QW8.js} +5 -5
- package/dist/{widget-line-Cp0b7r3U.js → widget-line-BtvpVv_s.js} +2 -3
- package/dist/{widget-pagination-BtlUxqBg.js → widget-pagination-DAUQo2nI.js} +5 -6
- package/dist/{widget-power-DHRfJ48L.js → widget-power-yUHZ4Hoc.js} +3 -4
- package/dist/{widget-qrcode-DNCRxnIr.js → widget-qrcode-DJtT9NaM.js} +3 -4
- package/dist/{widget-rangelimit-BSSBKq1C.js → widget-rangelimit-BhadVdCu.js} +3 -3
- package/dist/{widget-serialnumber-CUluNTQw.js → widget-serialnumber-WMHB8nl6.js} +1 -1
- package/dist/{widget-text-BdzPeniw.js → widget-text-C4dD9JF3.js} +5 -5
- package/dist/{widget-timediff-DerdwjRU.js → widget-timediff-C9d8_3hY.js} +2 -3
- package/package.json +2 -2
- package/dist/paper-widget-design-BBuWfCac.js +0 -4
- package/dist/seal-design-CJuuDF64.js +0 -4
- package/dist/src/domain/document-business/business/product-release/profile.d.ts +0 -2
- package/dist/src/domain/document-business/business/product-release/service.d.ts +0 -2
- package/dist/src/domain/document-business/index.d.ts +0 -2
- package/dist/src/domain/document-business/registry.d.ts +0 -2
- package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
- package/dist/src/domain/document-business/types.d.ts +0 -24
- package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +0 -2
- package/dist/src/domain/field/query-filter.d.ts +0 -15
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +0 -8
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -2
- package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +0 -19
- package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +0 -15
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +0 -4
- package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +0 -45
- package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +0 -3
- package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +0 -9
- package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +0 -7
- package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +0 -41
- package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +0 -16
- package/dist/src/shared/utils/withRequestCache.d.ts +0 -27
package/dist/base/index.es.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { B as B2,
|
|
5
|
-
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString,
|
|
6
|
-
import { cloneDeep, defaults, isEmpty, merge
|
|
1
|
+
import { E as api, _ as PlatformEnum, F as FIELD_TYPE, bd as getRowId, be as findRuntimeTableRow, b6 as RenderModeEnum, C as ComponentTypeEnum, ax as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, at as RangeValidateMode, aG as Dependency_ENUM, aF as ASSIGNMENTSTRATEGY_ENUM, bo as fetchHistoryConsume, bp as isBomGranted, aU as renderUtils, bn as uuid2, bq as parseFrontConfig, aJ as CheckDsTypeEnum, aD as transformUtils, br as baseDataUtils, X as FormTypeEnum, bs as normalizeToArray, bt as safeParseArray, bu as BpmnNodeTypeEnum, bv as mergeByMultiKey, a7 as _export_sfc, bw as evaluateInspectionDecisionRule, bx as useNocodeEmitter, by as commonUtils, aH as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js";
|
|
2
|
+
import { aM, aO, a$, a0, bz, bA, B, bB, y, af, bC, bD, bE, bc, bF, aR, ay, aN, aK, aL, bG, ag, ak, bH, bI, aE, a2, ae, az, aP, $, ai, L, bJ, bK, bL, O, p, P, a9, o, Q, A, bM, bN, au, a5, a1, a3, a4, a6, f, bO, aj, an, ah, bP, bQ, bR, bS, bb, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, bf, c1, c2, aX, c3, b0, b1, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, aW, ce, b2, b9, cf, cg, al, t, ch, aQ, ci, cj, bg, aY } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js";
|
|
3
|
+
import { a4 as getRuntimeDataFieldId, Q as parseRuntimeFieldPath, a5 as buildRuntimeFieldPath, k as findFieldProfile, a6 as resolveRuntimeFieldProps, a7 as resolveRuntimeFieldState, a8 as assembleRules, a9 as isAttachFieldActive, R as calculateFormula, aa as getRuntimeDependencyOutputKey, ab as isRowAddedInCurrentFormChange, ac as resolveFormulaData, d as getParseFormulaVarInfos, y as MaterialConsumptionPatternEnum, ad as MaterialConsumeTableController, ae as setFormulaParamsConfig, af as normalizeRuntime, X as createRuntimeInstanceContext, ag as initializeSealFields, W as RuntimeFormStateStore, ah as RuntimeSheetService, g as getBusinessFieldKey, ai as validateObjectBomQtyOnSubmit, aj as areValidationCommentsEqual, ak as closeValidatorPopovers, al as enrichFormChangeRowDetails, N as NCB_PROVIDE, Y as RuntimeInstanceRegistry, am as useMaterialBalance, an as collectFormChangeFieldLocations, ao as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-Dw7AIthU.js";
|
|
4
|
+
import { B as B2, ap, m, a3 as a32, aq, a1 as a12, ar, a2 as a22, H, as, at, au as au2, av, aw, M, a, ax, b, ay as ay2, az as az2, aA, aB, aC, aD, aE as aE2, aF, F, aG, w, aH, e, aI, aJ, aK as aK2, aL as aL2, v, G, aM as aM2, aN as aN2, aO as aO2, aP as aP2, o as o2, I, l, aQ as aQ2, aR as aR2, aS, aT, aU, aV, aW as aW2, A as A2, x, aX as aX2, C, r, aY as aY2, s, aZ, T, U, u, E, V, q, t as t2, S, p as p2, z } from "../dynamic-table-action-Dw7AIthU.js";
|
|
5
|
+
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
|
|
6
|
+
import { isEqual, cloneDeep, defaults, isEmpty, merge } from "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-
|
|
9
|
-
import { A as A3, D, M as M2, a as
|
|
10
|
-
import {
|
|
11
|
-
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-_IUbyYCY.js";
|
|
8
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-D-GcNTOB.js";
|
|
9
|
+
import { A as A3, D, M as M2, a as a7, P as P2, b as b3, c, d, e as e2, W, f as f2, g, h } from "../sub-table-factory-D-GcNTOB.js";
|
|
10
|
+
import { B as B3, F as F2, M as M3, a as a8, u as u2 } from "../mb-render-sgVmAe6_.js";
|
|
12
11
|
const InstanceStatusValues = {
|
|
13
12
|
/** 作废状态 */
|
|
14
13
|
ABANDON: "ABANDON",
|
|
@@ -155,32 +154,6 @@ async function fetchOperationReceiveQty(paramsConfig) {
|
|
|
155
154
|
const num = Number(raw);
|
|
156
155
|
return Number.isNaN(num) ? void 0 : num;
|
|
157
156
|
}
|
|
158
|
-
const INSPECTION_MODULE_QTY_API = {
|
|
159
|
-
modelCategory: "entity",
|
|
160
|
-
modelKey: "em_inspection_list",
|
|
161
|
-
bsKey: "getById"
|
|
162
|
-
};
|
|
163
|
-
function isRecord(value) {
|
|
164
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
165
|
-
}
|
|
166
|
-
function parseInspectionModuleQty(res) {
|
|
167
|
-
if (!isRecord(res) || res.ok === false) return void 0;
|
|
168
|
-
const payload = isRecord(res.data) ? res.data : res;
|
|
169
|
-
const row = isRecord(payload.data) ? payload.data : payload;
|
|
170
|
-
const raw = row.inspection_number_;
|
|
171
|
-
if (typeof raw !== "number" && typeof raw !== "string") return void 0;
|
|
172
|
-
if (typeof raw === "string" && raw.trim() === "") return void 0;
|
|
173
|
-
const qty = Number(raw);
|
|
174
|
-
return Number.isFinite(qty) ? qty : void 0;
|
|
175
|
-
}
|
|
176
|
-
async function fetchInspectionModuleQty(txnInstId) {
|
|
177
|
-
if (txnInstId == null || txnInstId === "") return void 0;
|
|
178
|
-
const res = await api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
|
|
179
|
-
INSPECTION_MODULE_QTY_API,
|
|
180
|
-
{ id: txnInstId }
|
|
181
|
-
);
|
|
182
|
-
return parseInspectionModuleQty(res);
|
|
183
|
-
}
|
|
184
157
|
function listRuntimeFieldRows(record, subFieldKey, targetFieldId) {
|
|
185
158
|
if (!subFieldKey) {
|
|
186
159
|
return [{ row: record.formState.state }];
|
|
@@ -239,7 +212,7 @@ class RuntimeFieldInitializer {
|
|
|
239
212
|
for (const { widget, sheetId, referenceInfo } of this.record.fields.allWidgets()) {
|
|
240
213
|
const props = widget.props;
|
|
241
214
|
const fieldId = getRuntimeDataFieldId(props);
|
|
242
|
-
const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : 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;
|
|
243
216
|
if (!kind || !fieldId || props.isFieldModel) continue;
|
|
244
217
|
for (const { row } of listRuntimeFieldRows(
|
|
245
218
|
this.record,
|
|
@@ -251,13 +224,11 @@ class RuntimeFieldInitializer {
|
|
|
251
224
|
if (this.initialized.get(key) === toRaw(row)) continue;
|
|
252
225
|
this.initialized.set(key, toRaw(row));
|
|
253
226
|
if (props.subFieldKey ? row.id_ : (this.info.instanceStatus ?? this.metadata.instanceStatus) !== InstanceStatusValues.UNFILLED) {
|
|
254
|
-
if (kind !== "recordNo"
|
|
227
|
+
if (kind !== "recordNo") continue;
|
|
255
228
|
}
|
|
256
229
|
const previous = row[fieldId];
|
|
257
230
|
if (kind === "udi" && isPresent(previous)) continue;
|
|
258
231
|
const path = this.record.formState.getFieldPath(row, fieldId);
|
|
259
|
-
if (kind === "inspection" && (isPresent(previous) || this.record.formState.isUserModified(path)))
|
|
260
|
-
continue;
|
|
261
232
|
this.tasks.add(key);
|
|
262
233
|
const task = this.record.asyncTasks.run(
|
|
263
234
|
key,
|
|
@@ -279,11 +250,7 @@ class RuntimeFieldInitializer {
|
|
|
279
250
|
sheetId,
|
|
280
251
|
blockOnFailure: false
|
|
281
252
|
}
|
|
282
|
-
).finally(() =>
|
|
283
|
-
this.tasks.delete(key);
|
|
284
|
-
if (kind === "inspection" && this.initialized.get(key) === toRaw(row) && !isPresent(row[fieldId]))
|
|
285
|
-
this.initialized.delete(key);
|
|
286
|
-
});
|
|
253
|
+
).finally(() => this.tasks.delete(key));
|
|
287
254
|
pending.push(task);
|
|
288
255
|
}
|
|
289
256
|
}
|
|
@@ -295,31 +262,18 @@ class RuntimeFieldInitializer {
|
|
|
295
262
|
}
|
|
296
263
|
await Promise.allSettled(pending);
|
|
297
264
|
}
|
|
298
|
-
request(key, fetch
|
|
265
|
+
request(key, fetch) {
|
|
299
266
|
const existing = this.requests.get(key);
|
|
300
267
|
if (existing) return existing;
|
|
301
|
-
const task = fetch().
|
|
302
|
-
(
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
},
|
|
306
|
-
(error) => {
|
|
307
|
-
this.requests.delete(key);
|
|
308
|
-
throw error;
|
|
309
|
-
}
|
|
310
|
-
);
|
|
268
|
+
const task = fetch().catch((error) => {
|
|
269
|
+
this.requests.delete(key);
|
|
270
|
+
throw error;
|
|
271
|
+
});
|
|
311
272
|
this.requests.set(key, task);
|
|
312
273
|
return task;
|
|
313
274
|
}
|
|
314
275
|
async readDefault(kind, props) {
|
|
315
276
|
if (kind === "recordNo") return props.newSpecificConfig.newSnNo;
|
|
316
|
-
if (kind === "inspection") {
|
|
317
|
-
return this.request(
|
|
318
|
-
`inspection:${this.metadata.txnInstId ?? ""}`,
|
|
319
|
-
() => fetchInspectionModuleQty(this.metadata.txnInstId),
|
|
320
|
-
false
|
|
321
|
-
);
|
|
322
|
-
}
|
|
323
277
|
if (kind === "count") {
|
|
324
278
|
const params = { ...JSON.parse(this.metadata.params || "{}"), ...this.info.paramsConfig };
|
|
325
279
|
const name = params.materialNo || this.metadata.materialNo;
|
|
@@ -431,7 +385,7 @@ function getSourceFields(record, expression, currentSubtable) {
|
|
|
431
385
|
});
|
|
432
386
|
}
|
|
433
387
|
function isEmptyValue(value) {
|
|
434
|
-
return value === void 0 || value === null || value === "";
|
|
388
|
+
return value === void 0 || value === null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0;
|
|
435
389
|
}
|
|
436
390
|
function getRulePaths(record, props, targetFieldId, modelKey, scopeFieldId = targetFieldId) {
|
|
437
391
|
const subtableField = props.subFieldKey;
|
|
@@ -555,8 +509,7 @@ class RuntimeRuleCompiler {
|
|
|
555
509
|
props,
|
|
556
510
|
widget.id,
|
|
557
511
|
entry.row,
|
|
558
|
-
entry.parentRow
|
|
559
|
-
this.basicInfo.formChangeStatus
|
|
512
|
+
entry.parentRow
|
|
560
513
|
);
|
|
561
514
|
const state = resolveRuntimeFieldState(effectiveProps, this.basicInfo);
|
|
562
515
|
const rules = assembleRules({
|
|
@@ -657,8 +610,7 @@ class RuntimeRuleCompiler {
|
|
|
657
610
|
props,
|
|
658
611
|
widget.id,
|
|
659
612
|
entry.row,
|
|
660
|
-
entry.parentRow
|
|
661
|
-
this.basicInfo.formChangeStatus
|
|
613
|
+
entry.parentRow
|
|
662
614
|
);
|
|
663
615
|
return [
|
|
664
616
|
entry.key,
|
|
@@ -747,13 +699,30 @@ class RuntimeRuleCompiler {
|
|
|
747
699
|
const expression = assignment?.expression || props.formulaExpr;
|
|
748
700
|
if (!expression || !targetFieldId) return;
|
|
749
701
|
const strategy = assignment?.strategy ?? ASSIGNMENTSTRATEGY_ENUM.alwaysCover;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
702
|
+
let assignmentStates = /* @__PURE__ */ new WeakMap();
|
|
703
|
+
const readInputs = (target) => cloneDeep(resolveFormulaData(expression, target.row, formState.state));
|
|
704
|
+
const rememberTarget = (target, inputs) => {
|
|
705
|
+
const row = props.isFieldModel ? target.row._OPCT : target.row;
|
|
706
|
+
const path = formState.getFieldPath(row ?? target.row, targetFieldId);
|
|
707
|
+
assignmentStates.set(toRaw(target.row), { inputs, path });
|
|
708
|
+
if (strategy === ASSIGNMENTSTRATEGY_ENUM.notCoveredForever && !isEmptyValue(row?.[targetFieldId]))
|
|
755
709
|
formState.markUserModified(path);
|
|
756
|
-
|
|
710
|
+
};
|
|
711
|
+
const resetAssignmentState = () => {
|
|
712
|
+
assignmentStates = /* @__PURE__ */ new WeakMap();
|
|
713
|
+
listRuntimeFieldRows(this.record, subFieldKey, scopeFieldId).forEach(
|
|
714
|
+
(target) => rememberTarget(target, readInputs(target))
|
|
715
|
+
);
|
|
716
|
+
};
|
|
717
|
+
if (!isLegacyFormula) {
|
|
718
|
+
resetAssignmentState();
|
|
719
|
+
this.unregisters.push(
|
|
720
|
+
formState.subscribe((change) => {
|
|
721
|
+
if (change.source !== "restore" || change.restoreScope === "fields" || change.paths.every((path) => path.endsWith("_lb_")))
|
|
722
|
+
return;
|
|
723
|
+
resetAssignmentState();
|
|
724
|
+
})
|
|
725
|
+
);
|
|
757
726
|
}
|
|
758
727
|
this.unregisters.push(
|
|
759
728
|
dependencies.register({
|
|
@@ -762,20 +731,42 @@ class RuntimeRuleCompiler {
|
|
|
762
731
|
sheetId,
|
|
763
732
|
sourceFields: getSourceFields(this.record, expression, subFieldKey),
|
|
764
733
|
structureFields,
|
|
765
|
-
run: async (
|
|
734
|
+
run: async (_change, execution) => {
|
|
766
735
|
if (this.disposed) return;
|
|
767
|
-
if (!isLegacyFormula && change.revision === 0 && change.source === "system") return;
|
|
768
736
|
if (!this.canWriteFormulas()) return;
|
|
769
737
|
const results = await Promise.all(
|
|
770
738
|
listRuntimeFieldRows(this.record, subFieldKey, scopeFieldId).map(async (target) => {
|
|
771
739
|
const row = this.getWritableRow(target.row, props);
|
|
772
740
|
const path = formState.getFieldPath(row, targetFieldId);
|
|
773
|
-
|
|
741
|
+
const inputs = isLegacyFormula ? void 0 : readInputs(target);
|
|
742
|
+
const previous = assignmentStates.get(toRaw(target.row));
|
|
743
|
+
if (!isLegacyFormula) {
|
|
744
|
+
if (!previous) rememberTarget(target);
|
|
745
|
+
else if (previous.path !== path && formState.isUserModified(previous.path)) {
|
|
746
|
+
formState.markUserModified(path);
|
|
747
|
+
formState.clearUserModified(previous.path);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
if (!isLegacyFormula && strategy !== ASSIGNMENTSTRATEGY_ENUM.alwaysCover && formState.isUserModified(path)) {
|
|
751
|
+
assignmentStates.set(toRaw(target.row), { inputs, path });
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
if (!isLegacyFormula && previous?.inputs && !previous.pending && isEqual(previous.inputs, inputs))
|
|
774
755
|
return;
|
|
775
|
-
|
|
776
|
-
|
|
756
|
+
if (!isLegacyFormula)
|
|
757
|
+
assignmentStates.set(toRaw(target.row), {
|
|
758
|
+
inputs: previous?.inputs,
|
|
759
|
+
path,
|
|
760
|
+
pending: true
|
|
761
|
+
});
|
|
762
|
+
const result = await calculateFormula(
|
|
763
|
+
expression,
|
|
764
|
+
isLegacyFormula ? row : target.row,
|
|
765
|
+
formState.state
|
|
766
|
+
);
|
|
767
|
+
const empty = isEmptyValue(result);
|
|
777
768
|
const value = isLegacyFormula ? empty ? null : Number(result) : formatDateCompliance(result, props.newSpecificConfig?.mappingType);
|
|
778
|
-
return { target, row, path, value };
|
|
769
|
+
return { target, row, path, value, inputs };
|
|
779
770
|
})
|
|
780
771
|
);
|
|
781
772
|
if (!this.canWriteFormulas() || !execution.isCurrent()) return;
|
|
@@ -783,7 +774,9 @@ class RuntimeRuleCompiler {
|
|
|
783
774
|
"formula",
|
|
784
775
|
() => results.forEach((result) => {
|
|
785
776
|
if (!result) return;
|
|
786
|
-
const { target, row, path, value } = result;
|
|
777
|
+
const { target, row, path, value, inputs } = result;
|
|
778
|
+
if (!isLegacyFormula)
|
|
779
|
+
assignmentStates.set(toRaw(target.row), { inputs, path });
|
|
787
780
|
if (!isLegacyFormula && strategy !== ASSIGNMENTSTRATEGY_ENUM.alwaysCover && formState.isUserModified(path))
|
|
788
781
|
return;
|
|
789
782
|
if (Object.is(row[targetFieldId], value)) return;
|
|
@@ -801,7 +794,12 @@ class RuntimeRuleCompiler {
|
|
|
801
794
|
}
|
|
802
795
|
getWritableRow(row, props) {
|
|
803
796
|
if (!props.isFieldModel) return row;
|
|
804
|
-
if (!row._OPCT)
|
|
797
|
+
if (!row._OPCT)
|
|
798
|
+
this.record.formState.transaction(
|
|
799
|
+
"restore",
|
|
800
|
+
() => this.record.formState.setObjectField(row, "_OPCT", { _DICT: {} }, "restore"),
|
|
801
|
+
{ restoreScope: "fields" }
|
|
802
|
+
);
|
|
805
803
|
return row._OPCT;
|
|
806
804
|
}
|
|
807
805
|
/** 公式变更记录也属于实例生命周期,未打开的 Sheet 不再漏记。 */
|
|
@@ -1043,6 +1041,28 @@ class FormTmplBomController {
|
|
|
1043
1041
|
});
|
|
1044
1042
|
});
|
|
1045
1043
|
}
|
|
1044
|
+
/** 全部 Sheet 的消耗表统一在 LOADED 前准备。 */
|
|
1045
|
+
initializeFormState(opts) {
|
|
1046
|
+
Object.entries(this.field2TableMap).forEach(([field, tableKey]) => {
|
|
1047
|
+
const controller = this.tableControllers[tableKey];
|
|
1048
|
+
if (!controller) return;
|
|
1049
|
+
controller.prepareInitialData({
|
|
1050
|
+
formState: opts.formState,
|
|
1051
|
+
field,
|
|
1052
|
+
dataStatus: opts.dataStatus,
|
|
1053
|
+
defaultRowData: renderUtils.getDefaultValueInfo({
|
|
1054
|
+
defaultDataMap: opts.defaultDataMap,
|
|
1055
|
+
key: field
|
|
1056
|
+
})
|
|
1057
|
+
});
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
/** 钩子若修改数量依赖,在创建 Store 和分页前按原规则重算。 */
|
|
1061
|
+
finalizeInitialQuantities() {
|
|
1062
|
+
Object.values(this.tableControllers).forEach((controller) => {
|
|
1063
|
+
controller.syncQtyRequiredFromBomIfChanged();
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1046
1066
|
async submitValidate() {
|
|
1047
1067
|
const results = await Promise.all(
|
|
1048
1068
|
Object.values(this.tableControllers).map((c10) => c10.submitValidate())
|
|
@@ -1062,7 +1082,8 @@ class FormTmplBomController {
|
|
|
1062
1082
|
async function prepareObjectProductDefaults({
|
|
1063
1083
|
enabled,
|
|
1064
1084
|
fields,
|
|
1065
|
-
objectInitialValues = []
|
|
1085
|
+
objectInitialValues = [],
|
|
1086
|
+
onWarning
|
|
1066
1087
|
}) {
|
|
1067
1088
|
const defaults2 = /* @__PURE__ */ new WeakMap();
|
|
1068
1089
|
if (!enabled) return defaults2;
|
|
@@ -1083,7 +1104,7 @@ async function prepareObjectProductDefaults({
|
|
|
1083
1104
|
);
|
|
1084
1105
|
const product = result?.data;
|
|
1085
1106
|
if (!product || typeof product !== "object" || Array.isArray(product) || Object.keys(product).length === 0) {
|
|
1086
|
-
|
|
1107
|
+
return void 0;
|
|
1087
1108
|
}
|
|
1088
1109
|
return { ...product, _DICT: result?.dict ?? product._DICT };
|
|
1089
1110
|
})();
|
|
@@ -1112,6 +1133,13 @@ async function prepareObjectProductDefaults({
|
|
|
1112
1133
|
tasks.push(
|
|
1113
1134
|
fetchProduct(productId).then(
|
|
1114
1135
|
(sourceData) => {
|
|
1136
|
+
if (!sourceData) {
|
|
1137
|
+
const objectName = configured.objectFieldName || field.belongingObject;
|
|
1138
|
+
onWarning?.(
|
|
1139
|
+
`「数据 → 对象初始化 → ${objectName} → 配置」中的默认物料未查到详情(字段 ${field.fieldId},物料 ${productId}),已跳过自动填充。`
|
|
1140
|
+
);
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1115
1143
|
productDefault.sourceData = sourceData;
|
|
1116
1144
|
},
|
|
1117
1145
|
(error) => {
|
|
@@ -1143,37 +1171,6 @@ async function getModelQueries(opts) {
|
|
|
1143
1171
|
console.log("getModelQueries", res);
|
|
1144
1172
|
return res;
|
|
1145
1173
|
}
|
|
1146
|
-
async function fillSterilizationDate(txnInstId, metadata, formState) {
|
|
1147
|
-
if (txnInstId == null || txnInstId === "") return;
|
|
1148
|
-
const fields = metadata.fields.filter(({ widget }) => {
|
|
1149
|
-
const props = widget?.props;
|
|
1150
|
-
return props?.fieldType === FIELD_TYPE.STERILIZATION_DATE || props?.bizType === FIELD_TYPE.STERILIZATION_DATE;
|
|
1151
|
-
});
|
|
1152
|
-
if (!fields.length) return;
|
|
1153
|
-
const response = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
|
|
1154
|
-
{ modelCategory: "entity", modelKey: "em_sterilization_list", bsKey: "getOne" },
|
|
1155
|
-
{},
|
|
1156
|
-
{ query: { txn_inst_id_: txnInstId } }
|
|
1157
|
-
);
|
|
1158
|
-
const data = response && "data" in response ? response.data : void 0;
|
|
1159
|
-
const record = Array.isArray(data) ? data[0] : data;
|
|
1160
|
-
const date = record && typeof record === "object" && "sterilization_date_" in record ? record.sterilization_date_ : void 0;
|
|
1161
|
-
if (date == null || date === "") return;
|
|
1162
|
-
fields.forEach(({ widget, subFieldKey }) => {
|
|
1163
|
-
const field = getRuntimeDataFieldId(widget?.props);
|
|
1164
|
-
if (!field) return;
|
|
1165
|
-
if (subFieldKey) {
|
|
1166
|
-
const rows = formState[subFieldKey];
|
|
1167
|
-
if (Array.isArray(rows)) {
|
|
1168
|
-
rows.forEach((row) => {
|
|
1169
|
-
if (row && typeof row === "object") row[field] = date;
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
} else {
|
|
1173
|
-
formState[field] = date;
|
|
1174
|
-
}
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
1174
|
function uniqueItems(items, getKey) {
|
|
1178
1175
|
return Array.from(new Map(items.map((item) => [getKey(item), item])).values());
|
|
1179
1176
|
}
|
|
@@ -1294,19 +1291,19 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1294
1291
|
const { selfInfo, paramsConfig, fillModeType } = result || {};
|
|
1295
1292
|
setFormulaParamsConfig({
|
|
1296
1293
|
routingParamList: selfInfo?.routingParamList || [],
|
|
1297
|
-
inspectionParamList: selfInfo?.inspectionParamList || []
|
|
1298
|
-
deviceParamList: selfInfo?.deviceParamList || []
|
|
1294
|
+
inspectionParamList: selfInfo?.inspectionParamList || []
|
|
1299
1295
|
});
|
|
1300
1296
|
let runtimeFormStateStore;
|
|
1301
1297
|
let scriptRunner;
|
|
1302
1298
|
try {
|
|
1303
|
-
const normalizedRuntime = normalizeRuntime(selfInfo?.runtimeJson || "{}");
|
|
1299
|
+
const normalizedRuntime = normalizeRuntime(selfInfo?.runtimeJson || "{}", selfInfo.formType);
|
|
1304
1300
|
const tid = result.tid;
|
|
1305
1301
|
const uniqueId = `${tid}_${uuid2(8)}`;
|
|
1306
1302
|
const runtimeContext = createRuntimeInstanceContext({
|
|
1307
1303
|
uniqueId,
|
|
1308
1304
|
instanceId: id,
|
|
1309
1305
|
templateId: tid,
|
|
1306
|
+
formType: selfInfo.formType,
|
|
1310
1307
|
runtime: normalizedRuntime,
|
|
1311
1308
|
defaultData: {}
|
|
1312
1309
|
});
|
|
@@ -1524,7 +1521,10 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1524
1521
|
const objectProductDefaults = await prepareObjectProductDefaults({
|
|
1525
1522
|
enabled: fillModeType === RenderModeEnum.FormMode && selfInfo.dataStatus !== "STASH" && selfInfo.dataStatus !== "SUBMIT",
|
|
1526
1523
|
fields: fieldInfoMap.useDefaultValueFields,
|
|
1527
|
-
objectInitialValues: runtimeContext.formConfig.objectInitialValues
|
|
1524
|
+
objectInitialValues: runtimeContext.formConfig.objectInitialValues,
|
|
1525
|
+
onWarning: (content) => {
|
|
1526
|
+
window.NocodeAdapter.openUtil?.message({ type: "warning", content, duration: 8 });
|
|
1527
|
+
}
|
|
1528
1528
|
});
|
|
1529
1529
|
const defaultDataMap = renderUtils.getDefaultValueMapByField({
|
|
1530
1530
|
objectProductDefaults,
|
|
@@ -1611,15 +1611,17 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1611
1611
|
]
|
|
1612
1612
|
});
|
|
1613
1613
|
if (fillModeType === RenderModeEnum.FormMode) {
|
|
1614
|
-
if (!payload.isMockReport) {
|
|
1615
|
-
await fillSterilizationDate(selfInfo.txnInstId, fieldInfoMap.fieldMetadata, formState);
|
|
1616
|
-
}
|
|
1617
1614
|
const floatingFields = sheetEntries.flatMap((entry) => {
|
|
1618
1615
|
const ids = entry.dataCenter[ComponentTypeEnum.PAPER]?.props?.floatingFieldIds ?? [];
|
|
1619
1616
|
return ids.map((fieldId) => entry.dataCenter[fieldId]).filter(Boolean);
|
|
1620
1617
|
});
|
|
1621
1618
|
initializeSealFields(floatingFields, formState);
|
|
1622
1619
|
}
|
|
1620
|
+
tmplBomC.initializeFormState({
|
|
1621
|
+
formState,
|
|
1622
|
+
dataStatus: selfInfo.dataStatus,
|
|
1623
|
+
defaultDataMap
|
|
1624
|
+
});
|
|
1623
1625
|
await transformUtils.getEventInitDataLoaded({
|
|
1624
1626
|
formConfig: runtimeContext.formConfig,
|
|
1625
1627
|
formState,
|
|
@@ -1629,6 +1631,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1629
1631
|
}).catch((error) => {
|
|
1630
1632
|
console.error("Error in getEventInitDataLoaded:", error);
|
|
1631
1633
|
});
|
|
1634
|
+
tmplBomC.finalizeInitialQuantities();
|
|
1632
1635
|
runtimeFormStateStore = new RuntimeFormStateStore(
|
|
1633
1636
|
formState,
|
|
1634
1637
|
// 子表信息覆盖普通/固定/检验表、二维关联列以及各类业务表;不能只依赖已放置字段。
|
|
@@ -1723,7 +1726,6 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1723
1726
|
productSearchFields: payload?.deviceConfig?.defaultProductSearchFields ?? "",
|
|
1724
1727
|
showPrintFieldBg: paramsConfig?.showPrintFieldBg,
|
|
1725
1728
|
paramsConfig,
|
|
1726
|
-
businessType: selfInfo.businessType,
|
|
1727
1729
|
instanceStatus: selfInfo.instanceStatus
|
|
1728
1730
|
},
|
|
1729
1731
|
selfInfo: runtimeSelfInfo
|
|
@@ -1777,18 +1779,13 @@ function bindRuntimeBusinessServices(runtimeRegistry, record, dataStatus) {
|
|
|
1777
1779
|
}
|
|
1778
1780
|
}),
|
|
1779
1781
|
mainFormState: computed(() => record.formState.state),
|
|
1780
|
-
dataStatus
|
|
1781
|
-
defaultRowData: renderUtils.getDefaultValueInfo({
|
|
1782
|
-
defaultDataMap: record.context.defaultData,
|
|
1783
|
-
key: field
|
|
1784
|
-
})
|
|
1782
|
+
dataStatus
|
|
1785
1783
|
});
|
|
1786
1784
|
stops.push(
|
|
1787
1785
|
watch(
|
|
1788
1786
|
() => controller.materialNoNum,
|
|
1789
1787
|
() => {
|
|
1790
|
-
|
|
1791
|
-
controller.syncQtyRequiredFromBom();
|
|
1788
|
+
controller.syncQtyRequiredFromBomIfChanged();
|
|
1792
1789
|
},
|
|
1793
1790
|
{ immediate: true }
|
|
1794
1791
|
)
|
|
@@ -2486,157 +2483,6 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
|
|
|
2486
2483
|
prepareInitialView
|
|
2487
2484
|
};
|
|
2488
2485
|
}
|
|
2489
|
-
function createRuntimeDataSourceBinding(registry, payload) {
|
|
2490
|
-
const dataSourceManagerMap = shallowRef({});
|
|
2491
|
-
async function bindDataSources(record, info, selfInfo) {
|
|
2492
|
-
if (payload.isMockReport || !["instance", "batchInstance"].includes(payload.factoryType))
|
|
2493
|
-
return;
|
|
2494
|
-
const isDetail = () => typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
|
|
2495
|
-
if (isDetail()) return;
|
|
2496
|
-
const { context, formState } = record;
|
|
2497
|
-
const { uniqueId, formConfig } = context;
|
|
2498
|
-
const canExecute = () => registry.get(uniqueId) === record && info.renderModeType === RenderModeEnum.FormMode && !isDetail();
|
|
2499
|
-
const getContext = () => buildDataSourceContext({ parameters: info.paramsConfig ?? {}, instance: selfInfo });
|
|
2500
|
-
const manager = markRaw(
|
|
2501
|
-
createDataSourceManager({
|
|
2502
|
-
canExecute,
|
|
2503
|
-
initializeOnEnable: false,
|
|
2504
|
-
sources: formConfig.dataSources ?? [],
|
|
2505
|
-
onManualLoad: (key) => fieldFillRuntime?.reapplyDataSource(key),
|
|
2506
|
-
getContext,
|
|
2507
|
-
getInstanceId: () => info.key,
|
|
2508
|
-
getForm: () => formState.state,
|
|
2509
|
-
adapters: payload.dataSourceAdapters
|
|
2510
|
-
})
|
|
2511
|
-
);
|
|
2512
|
-
let taskSequence = 0;
|
|
2513
|
-
async function track(execute) {
|
|
2514
|
-
const result = await record.asyncTasks.run(
|
|
2515
|
-
`data-source:${uniqueId}:${++taskSequence}`,
|
|
2516
|
-
async () => {
|
|
2517
|
-
try {
|
|
2518
|
-
return { ok: true, value: await execute() };
|
|
2519
|
-
} catch (error) {
|
|
2520
|
-
return { ok: false, error };
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
);
|
|
2524
|
-
if (!result) throw new Error(`数源实例已释放:${uniqueId}`);
|
|
2525
|
-
if (!result.ok) throw result.error;
|
|
2526
|
-
return result.value;
|
|
2527
|
-
}
|
|
2528
|
-
const exposedManager = markRaw({
|
|
2529
|
-
...manager,
|
|
2530
|
-
query: (...args) => track(() => manager.query(...args)),
|
|
2531
|
-
reload: (...args) => track(() => manager.reload(...args)),
|
|
2532
|
-
reloadAll: () => track(() => manager.reloadAll()),
|
|
2533
|
-
queryOnValueChange: (...args) => track(() => manager.queryOnValueChange(...args)),
|
|
2534
|
-
initialize: () => track(() => manager.initialize())
|
|
2535
|
-
});
|
|
2536
|
-
const protectedTargets = getLegacyFieldFillTargets(formConfig);
|
|
2537
|
-
const targets = /* @__PURE__ */ new Map();
|
|
2538
|
-
for (const { widget } of record.fields.allWidgets()) {
|
|
2539
|
-
const config = widget.props;
|
|
2540
|
-
const fieldKey = config.field;
|
|
2541
|
-
if (fieldKey && (config.subFieldKey || !config.subModelKey)) {
|
|
2542
|
-
const key = config.subFieldKey ? `${config.subFieldKey}.${fieldKey}` : fieldKey;
|
|
2543
|
-
targets.set(key, {
|
|
2544
|
-
table: config.subFieldKey,
|
|
2545
|
-
field: config.isFieldModel ? config.fieldLink || fieldKey : fieldKey,
|
|
2546
|
-
isFieldModel: !!config.isFieldModel
|
|
2547
|
-
});
|
|
2548
|
-
if (config.componentDependency?.configDependency?.assignment?.expression) {
|
|
2549
|
-
protectedTargets.add(key);
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
if (config.enableAutofill !== false) {
|
|
2553
|
-
for (const rule of config.autofillRules ?? []) {
|
|
2554
|
-
if (rule.toField)
|
|
2555
|
-
protectedTargets.add(
|
|
2556
|
-
rule.toSubModel && rule.toSubFieldKey ? `${rule.toSubFieldKey}.${rule.toField}` : rule.toField
|
|
2557
|
-
);
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
const fieldFillRuntime = markRaw(
|
|
2562
|
-
createFieldFillRuntime({
|
|
2563
|
-
preserveExistingValues: true,
|
|
2564
|
-
fills: formConfig.fieldFills ?? [],
|
|
2565
|
-
manager,
|
|
2566
|
-
getContext,
|
|
2567
|
-
getForm: () => formState.state,
|
|
2568
|
-
getFormField: (key) => {
|
|
2569
|
-
const target = targets.get(key);
|
|
2570
|
-
if (target?.table)
|
|
2571
|
-
return getFieldFillColumn(
|
|
2572
|
-
formState.state[target.table],
|
|
2573
|
-
target.isFieldModel ? `_OPCT.${target.field}` : target.field
|
|
2574
|
-
);
|
|
2575
|
-
return target?.isFieldModel ? formState.state._OPCT?.[target.field] : get(formState.state, key);
|
|
2576
|
-
},
|
|
2577
|
-
hasTargetField: (key) => targets.has(key),
|
|
2578
|
-
canWrite: (key) => canExecute() && targets.has(key) && !isFieldFillTargetProtected(key, protectedTargets, (field) => {
|
|
2579
|
-
const target = targets.get(field);
|
|
2580
|
-
const path = target?.isFieldModel ? `_OPCT.${target.field}` : target?.field ?? field;
|
|
2581
|
-
return target?.table ? `${target.table}.${path}` : path;
|
|
2582
|
-
}),
|
|
2583
|
-
setField: (key, value, collection) => {
|
|
2584
|
-
if (registry.get(uniqueId) !== record) throw new Error(`字段填充实例已释放:${uniqueId}`);
|
|
2585
|
-
const target = targets.get(key);
|
|
2586
|
-
if (target.table) {
|
|
2587
|
-
const field = target.isFieldModel ? `_OPCT.${target.field}` : target.field;
|
|
2588
|
-
formState.setField(
|
|
2589
|
-
target.table,
|
|
2590
|
-
buildFieldFillRows(formState.state[target.table], field, value, collection),
|
|
2591
|
-
"async"
|
|
2592
|
-
);
|
|
2593
|
-
} else if (target.isFieldModel) {
|
|
2594
|
-
if (!formState.state._OPCT) formState.setField("_OPCT", { _DICT: {} }, "async");
|
|
2595
|
-
formState.setObjectField(
|
|
2596
|
-
formState.state._OPCT,
|
|
2597
|
-
target.field,
|
|
2598
|
-
value,
|
|
2599
|
-
"async",
|
|
2600
|
-
`_OPCT.${target.field}`
|
|
2601
|
-
);
|
|
2602
|
-
} else {
|
|
2603
|
-
formState.setField(target.field, value, "async");
|
|
2604
|
-
}
|
|
2605
|
-
}
|
|
2606
|
-
})
|
|
2607
|
-
);
|
|
2608
|
-
let initializationStarted = false;
|
|
2609
|
-
async function initializeOnce() {
|
|
2610
|
-
if (initializationStarted || !canExecute()) return;
|
|
2611
|
-
initializationStarted = true;
|
|
2612
|
-
try {
|
|
2613
|
-
await exposedManager.initialize();
|
|
2614
|
-
} catch (error) {
|
|
2615
|
-
initializationStarted = false;
|
|
2616
|
-
throw error;
|
|
2617
|
-
}
|
|
2618
|
-
}
|
|
2619
|
-
const stopModeWatch = watch(
|
|
2620
|
-
canExecute,
|
|
2621
|
-
(enabled) => {
|
|
2622
|
-
if (enabled) void initializeOnce().catch(() => void 0);
|
|
2623
|
-
},
|
|
2624
|
-
{ flush: "sync" }
|
|
2625
|
-
);
|
|
2626
|
-
record.dataSourceManager = exposedManager;
|
|
2627
|
-
dataSourceManagerMap.value = { ...dataSourceManagerMap.value, [uniqueId]: exposedManager };
|
|
2628
|
-
registry.registerDisposable(uniqueId, () => {
|
|
2629
|
-
stopModeWatch();
|
|
2630
|
-
record.dataSourceManager = void 0;
|
|
2631
|
-
fieldFillRuntime?.dispose();
|
|
2632
|
-
manager.dispose();
|
|
2633
|
-
const { [uniqueId]: _2, ...rest } = dataSourceManagerMap.value;
|
|
2634
|
-
dataSourceManagerMap.value = rest;
|
|
2635
|
-
});
|
|
2636
|
-
await initializeOnce();
|
|
2637
|
-
}
|
|
2638
|
-
return { dataSourceManagerMap, bindDataSources };
|
|
2639
|
-
}
|
|
2640
2486
|
function createRuntimeAnnotationBinding(runtimeRegistry, basicInfoList, props, payload, updateRenderModeType) {
|
|
2641
2487
|
const normalizeAnnotationLocation = (uniqueId, path, sheetId) => {
|
|
2642
2488
|
const record = runtimeRegistry.require(uniqueId);
|
|
@@ -2741,10 +2587,6 @@ function useRenderPageFactory(props, payload) {
|
|
|
2741
2587
|
const finisher = ref(0);
|
|
2742
2588
|
const runtimeRegistry = new RuntimeInstanceRegistry();
|
|
2743
2589
|
provide(NCB_PROVIDE.RUNTIME_INSTANCE_REGISTRY, runtimeRegistry);
|
|
2744
|
-
const { dataSourceManagerMap, bindDataSources } = createRuntimeDataSourceBinding(
|
|
2745
|
-
runtimeRegistry,
|
|
2746
|
-
payload
|
|
2747
|
-
);
|
|
2748
2590
|
const basicInfoList = ref([]);
|
|
2749
2591
|
const selfInfoList = ref([]);
|
|
2750
2592
|
const { getConsumeData } = useMaterialBalance();
|
|
@@ -2790,7 +2632,6 @@ function useRenderPageFactory(props, payload) {
|
|
|
2790
2632
|
install: async (prepared, isCurrent) => {
|
|
2791
2633
|
clear();
|
|
2792
2634
|
const installed = [];
|
|
2793
|
-
const dataSourceBindings = [];
|
|
2794
2635
|
const installedSelfInfos = /* @__PURE__ */ new Set();
|
|
2795
2636
|
try {
|
|
2796
2637
|
for (const res of prepared) {
|
|
@@ -2811,26 +2652,26 @@ function useRenderPageFactory(props, payload) {
|
|
|
2811
2652
|
onValidate: () => runSubmissionValidation(uniqueId),
|
|
2812
2653
|
onValidationFailed: (result) => record.sheetService.navigateFirstError(Object.keys(result.fields ?? {})),
|
|
2813
2654
|
onGetSubmitData: (formState) => {
|
|
2814
|
-
record.context.services.subTableCoreFactory
|
|
2815
|
-
|
|
2655
|
+
const subTableFactory = record.context.services.subTableCoreFactory;
|
|
2656
|
+
subTableFactory?.prepareSubmitFormState(formState);
|
|
2657
|
+
return transformUtils.getSubmitFormData(formState, {
|
|
2658
|
+
...record.context.businessIndex,
|
|
2659
|
+
businessTableFields: subTableFactory?.getBusinessTableFields() ?? []
|
|
2660
|
+
});
|
|
2816
2661
|
}
|
|
2817
2662
|
})
|
|
2818
2663
|
);
|
|
2819
2664
|
basicInfoList.value.push(res.basicInfo);
|
|
2820
2665
|
selfInfoList.value.push(res.selfInfo);
|
|
2821
2666
|
installedSelfInfos.add(selfInfoList.value[selfInfoList.value.length - 1]);
|
|
2822
|
-
|
|
2823
|
-
record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactiveInfo));
|
|
2667
|
+
record.ruleCompiler = markRaw(new RuntimeRuleCompiler(record, reactive(res.basicInfo)));
|
|
2824
2668
|
bindRuntimeValidation(uniqueId);
|
|
2825
2669
|
bindFormValidationSync(uniqueId);
|
|
2826
2670
|
record.fieldInitializer = markRaw(
|
|
2827
2671
|
new RuntimeFieldInitializer(record, res.basicInfo, res.selfInfo)
|
|
2828
2672
|
);
|
|
2829
2673
|
bindRuntimeBusinessServices(runtimeRegistry, record, res.selfInfo.dataStatus);
|
|
2830
|
-
dataSourceBindings.push(bindDataSources(record, reactiveInfo, res.selfInfo));
|
|
2831
2674
|
}
|
|
2832
|
-
await Promise.all(dataSourceBindings);
|
|
2833
|
-
if (!isCurrent()) return;
|
|
2834
2675
|
await Promise.all(installed.map(prepareInitialView));
|
|
2835
2676
|
if (!isCurrent()) return;
|
|
2836
2677
|
const selfId = Array.isArray(props.selfId) ? props.selfId[0] : props.selfId;
|
|
@@ -2897,7 +2738,6 @@ function useRenderPageFactory(props, payload) {
|
|
|
2897
2738
|
clear();
|
|
2898
2739
|
});
|
|
2899
2740
|
return {
|
|
2900
|
-
dataSourceManagerMap,
|
|
2901
2741
|
counter,
|
|
2902
2742
|
finisher,
|
|
2903
2743
|
loading,
|
|
@@ -3014,7 +2854,7 @@ function useEbrWikiFactoryV2(props, payload) {
|
|
|
3014
2854
|
}
|
|
3015
2855
|
watch(
|
|
3016
2856
|
[() => props.materialNo, () => edhrCounter.value],
|
|
3017
|
-
async ([newMaterialNo,
|
|
2857
|
+
async ([newMaterialNo, _]) => {
|
|
3018
2858
|
if (isEmpty(newMaterialNo)) return;
|
|
3019
2859
|
loading.value = true;
|
|
3020
2860
|
clear();
|
|
@@ -3193,7 +3033,7 @@ function useEbrWikiFactoryV2(props, payload) {
|
|
|
3193
3033
|
);
|
|
3194
3034
|
watch(
|
|
3195
3035
|
[() => selectSelfInfo.value, () => instanceCounter.value],
|
|
3196
|
-
([newSelectSelfInfo,
|
|
3036
|
+
([newSelectSelfInfo, _]) => {
|
|
3197
3037
|
if (newSelectSelfInfo && payload.pageType === "record-change") {
|
|
3198
3038
|
emitter.emit(EmitterEnum.__on_select_ebr_doc_instance_id, {
|
|
3199
3039
|
instanceId: newSelectSelfInfo.id
|
|
@@ -3598,250 +3438,251 @@ function filterAnnotationItemsUpToCurrent(items) {
|
|
|
3598
3438
|
});
|
|
3599
3439
|
}
|
|
3600
3440
|
export {
|
|
3601
|
-
|
|
3441
|
+
aM as AITooltips,
|
|
3602
3442
|
A3 as AllocateTableCore,
|
|
3603
3443
|
B3 as BaseFormModelFetcher,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3444
|
+
aO as BinarizeMethodOptions,
|
|
3445
|
+
a$ as BindCmpStyleEnum,
|
|
3446
|
+
a0 as BooleanShowMode,
|
|
3607
3447
|
B2 as BorderTD,
|
|
3608
3448
|
BpmnNodeTypeEnum,
|
|
3609
|
-
|
|
3610
|
-
|
|
3449
|
+
bz as BpmnSignatureTypeEnum,
|
|
3450
|
+
bA as ButtonTypeEnum,
|
|
3611
3451
|
B as BwipCodeType,
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3452
|
+
bB as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3453
|
+
y as CellType,
|
|
3454
|
+
af as CellWidgetViewState,
|
|
3615
3455
|
CheckDsTypeEnum,
|
|
3616
|
-
|
|
3456
|
+
bC as CodeRunner,
|
|
3617
3457
|
ComponentTypeEnum,
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3458
|
+
bD as Config_Fields,
|
|
3459
|
+
bE as ControlStatusEnum,
|
|
3460
|
+
bc as DEVICE_GROUP_QUERY_KEY,
|
|
3461
|
+
bF as DEVICE_SEARCH_API,
|
|
3462
|
+
aR as DateFormat,
|
|
3463
|
+
ay as DecimalDisplayMode,
|
|
3464
|
+
aN as DenoiseMethodOptions,
|
|
3465
|
+
ap as DeviceConnector,
|
|
3466
|
+
aK as DeviceLink,
|
|
3467
|
+
m as DeviceLinkTmplUtil,
|
|
3468
|
+
aL as DeviceParamsTypeTitle,
|
|
3629
3469
|
D as DevicePartConsumeTableCore,
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3470
|
+
bG as DeviceStatus,
|
|
3471
|
+
ag as DiagonalDirection,
|
|
3472
|
+
ak as DiagonalVertex,
|
|
3473
|
+
a32 as DocumentLayout,
|
|
3474
|
+
aq as DocumentLoading,
|
|
3475
|
+
a12 as DocumentPaper,
|
|
3476
|
+
ar as DynamicQuickFillModal,
|
|
3477
|
+
a22 as DynamicTableAction,
|
|
3478
|
+
bH as EBR_PROVIDE_ENUM,
|
|
3479
|
+
bI as EFieldBizTypeEnum,
|
|
3480
|
+
H as EMPTY_PRODUCT_VERSION_ID,
|
|
3481
|
+
aE as EmptySymbol,
|
|
3482
|
+
a2 as FallbackSignTypeEnum,
|
|
3483
|
+
ae as FieldSysVarDefaultValueEnum,
|
|
3644
3484
|
FillingTypeEnum,
|
|
3645
|
-
|
|
3485
|
+
as as FixedQuickFillModal,
|
|
3646
3486
|
FormAnnotationController,
|
|
3647
|
-
|
|
3487
|
+
F2 as FormModelController,
|
|
3648
3488
|
FormTmplBomController,
|
|
3649
|
-
|
|
3489
|
+
at as FormTmplConfigController,
|
|
3650
3490
|
FormTypeEnum,
|
|
3651
|
-
|
|
3491
|
+
az as ImageDisplayModeEnum,
|
|
3652
3492
|
InstanceStatusValues,
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3493
|
+
aP as JoinModelTypeEum,
|
|
3494
|
+
au2 as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
|
|
3495
|
+
av as LEGACY_RUNTIME_SHEET_ID,
|
|
3496
|
+
aw as LEGACY_RUNTIME_SHEET_TITLE,
|
|
3497
|
+
$ as LabelPosition,
|
|
3498
|
+
ai as LineDirection,
|
|
3659
3499
|
L as LineType,
|
|
3660
|
-
|
|
3500
|
+
bJ as MAX_FRONT_ROW_KEY_LENGTH,
|
|
3661
3501
|
M as MAX_RUNTIME_SHEETS,
|
|
3662
3502
|
a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
|
|
3663
3503
|
M3 as MBRender,
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3504
|
+
ax as MCDataUtil,
|
|
3505
|
+
a8 as MCRender,
|
|
3506
|
+
b as MULTI_SHEET_SCHEMA_VERSION,
|
|
3667
3507
|
MaterialConsumeTableController,
|
|
3668
3508
|
MaterialConsumptionPatternEnum,
|
|
3669
3509
|
M2 as MaterialRequisitionTableCore,
|
|
3670
3510
|
MaterialStatusEnum,
|
|
3671
|
-
|
|
3672
|
-
|
|
3511
|
+
a7 as MaterialSubstitutionTableCore,
|
|
3512
|
+
bK as MobileFillTypeEnum,
|
|
3673
3513
|
NCB_PROVIDE,
|
|
3674
|
-
|
|
3675
|
-
|
|
3514
|
+
ay2 as OCR_MODEL_PRECISION_ENUM_KEY,
|
|
3515
|
+
bL as OfficeTypeEnum,
|
|
3676
3516
|
O as Orientation,
|
|
3677
|
-
|
|
3517
|
+
p as PageSizeEnum,
|
|
3678
3518
|
P as PaginationFormat,
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3519
|
+
a9 as PaperSizeMap,
|
|
3520
|
+
o as PaperWidgeType,
|
|
3521
|
+
Q as PaperWidgeValueType,
|
|
3522
|
+
A as ParamModelTypeEnum,
|
|
3523
|
+
P2 as PartStocktakeTableCore,
|
|
3684
3524
|
PlatformEnum,
|
|
3685
|
-
|
|
3686
|
-
|
|
3525
|
+
bM as PosEnum,
|
|
3526
|
+
b3 as PretreatmentListTableCore,
|
|
3687
3527
|
c as ProfileDrivenSubTableCore,
|
|
3688
|
-
|
|
3689
|
-
|
|
3528
|
+
bN as RUNTIME_COLUMN_ROW_KEY,
|
|
3529
|
+
au as RangeCompareOp,
|
|
3690
3530
|
RangeValidateMode,
|
|
3691
3531
|
RenderModeEnum,
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3532
|
+
az2 as RuntimeAsyncTaskCoordinator,
|
|
3533
|
+
aA as RuntimeDependencyService,
|
|
3534
|
+
aB as RuntimeFieldRegistry,
|
|
3695
3535
|
RuntimeFormStateStore,
|
|
3696
3536
|
RuntimeInstanceController,
|
|
3697
|
-
|
|
3537
|
+
aC as RuntimeInstanceEventBus,
|
|
3698
3538
|
RuntimeInstanceRegistry,
|
|
3699
|
-
|
|
3539
|
+
aD as RuntimePersistenceCoordinator,
|
|
3700
3540
|
RuntimeRuleCompiler,
|
|
3701
3541
|
RuntimeSheetService,
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3542
|
+
aE2 as RuntimeValidationService,
|
|
3543
|
+
a5 as SignShowTypeEnum,
|
|
3544
|
+
a1 as SignatureImageDirectionEnum,
|
|
3545
|
+
a3 as SignatureNumberTypeEnum,
|
|
3546
|
+
a4 as SignatureTimeTypeEnum,
|
|
3547
|
+
a6 as SignatureTypeEnum,
|
|
3548
|
+
d as SterilizeBatchTableCore,
|
|
3709
3549
|
e2 as StocktakeTableCore,
|
|
3710
|
-
|
|
3550
|
+
aF as SubTableCore,
|
|
3711
3551
|
SubTableCoreFactory,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3552
|
+
f as SubTableType,
|
|
3553
|
+
bO as SummaryApproveHisTypeEnum,
|
|
3554
|
+
aj as TimeDiffFormat,
|
|
3555
|
+
an as ViewTypeEnum,
|
|
3716
3556
|
W as WarehouseInTableCore,
|
|
3717
|
-
|
|
3557
|
+
f2 as WarehouseInboundTableCore,
|
|
3718
3558
|
g as WarehouseOutTableCore,
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3559
|
+
h as WarehouseOutboundTableCore,
|
|
3560
|
+
ah as WidgetImageSizeMode,
|
|
3561
|
+
bP as applyCheckDsDataToRuntime,
|
|
3562
|
+
F as applyConsumeObjectTraceChange,
|
|
3563
|
+
bQ as applyMedProCheckDsDataToRuntime,
|
|
3724
3564
|
baseDataUtils,
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3565
|
+
bR as bindRuntimeTableColumns,
|
|
3566
|
+
bS as buildDeviceBaseQuery,
|
|
3567
|
+
bb as buildDeviceFilterQuery,
|
|
3568
|
+
aG as buildFormChangeDisplayRows,
|
|
3569
|
+
w as buildObjectLotExtraQuery,
|
|
3730
3570
|
buildRuntimeFieldPath,
|
|
3731
|
-
|
|
3732
|
-
|
|
3571
|
+
bT as calcFillData,
|
|
3572
|
+
bU as calcUtils,
|
|
3733
3573
|
calculateFormula,
|
|
3734
3574
|
collectAnnotationItemsByLocation,
|
|
3735
3575
|
collectFormChangeFieldLocations,
|
|
3736
3576
|
commonUtils,
|
|
3737
3577
|
convertHistoricalAnnotationLocation,
|
|
3738
|
-
|
|
3578
|
+
aH as convertV1Runtime,
|
|
3739
3579
|
e as createRuntimeDocumentV2,
|
|
3740
3580
|
createRuntimeInstanceContext,
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3581
|
+
bV as decodeTableCellRowKey,
|
|
3582
|
+
aI as detailsHaveFormChangeRowOps,
|
|
3583
|
+
bW as encodeTableCellRowKey,
|
|
3744
3584
|
enrichFormChangeRowDetails,
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3585
|
+
bX as ensureFrontRowKey,
|
|
3586
|
+
bY as ensureTableRowKeys,
|
|
3587
|
+
aJ as extractFormChangeRowDetails,
|
|
3588
|
+
bZ as extractKeywordFromQueryData,
|
|
3589
|
+
b_ as fetchCheckDsDataForTable,
|
|
3590
|
+
b$ as fetchCustomCheckDsData,
|
|
3751
3591
|
fetchHistoryConsume,
|
|
3752
|
-
|
|
3592
|
+
c0 as fetchMedProCheckDsData,
|
|
3753
3593
|
fetchOperationReceiveQty,
|
|
3754
3594
|
fetchUdi,
|
|
3755
3595
|
filterAnnotationItemsUpToCurrent,
|
|
3756
|
-
|
|
3757
|
-
|
|
3596
|
+
bf as findRuntimeParentRow,
|
|
3597
|
+
c1 as findRuntimeTableCell,
|
|
3758
3598
|
findRuntimeTableRow,
|
|
3759
3599
|
getAppInfo,
|
|
3760
3600
|
getBusinessFieldKey,
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3601
|
+
c2 as getCheckTableSnapshotKey,
|
|
3602
|
+
aK2 as getFormChangeRowKey,
|
|
3603
|
+
aL2 as getFormChangeRowOp,
|
|
3604
|
+
aX as getLotLockedReason,
|
|
3605
|
+
v as getObjectBomMaterialLotQuery,
|
|
3606
|
+
G as getObjectBomProductQuery,
|
|
3767
3607
|
getParseFormulaVarInfos,
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3608
|
+
c3 as getParseRuleConfig,
|
|
3609
|
+
b0 as getParseRuleInfo,
|
|
3610
|
+
b1 as getParseRuleValue,
|
|
3611
|
+
c4 as getReinspectionDate,
|
|
3612
|
+
c5 as getRenderedRuntimeTableCell,
|
|
3773
3613
|
getRuntimeDataFieldId,
|
|
3774
3614
|
getRuntimeDependencyOutputKey,
|
|
3775
|
-
|
|
3615
|
+
aM2 as getSubTableQuickFillInfo,
|
|
3776
3616
|
getSuiteKey,
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3617
|
+
c6 as handleOldConfig,
|
|
3618
|
+
c7 as hasAnyCheckTableSnapshot,
|
|
3619
|
+
c8 as hasByTableCheckTableSnapshot,
|
|
3620
|
+
c9 as hasSharedCheckTableSnapshot,
|
|
3621
|
+
aN2 as isAnnLocationSelected,
|
|
3622
|
+
aO2 as isBlank,
|
|
3783
3623
|
isBomGranted,
|
|
3784
3624
|
isEdhrSuite,
|
|
3785
3625
|
isEqmSuite,
|
|
3786
|
-
|
|
3787
|
-
|
|
3626
|
+
aP2 as isFormChangeGhostRow,
|
|
3627
|
+
ca as isMedProSuite,
|
|
3788
3628
|
isRowAddedInCurrentFormChange,
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3629
|
+
cb as isTableRowKeyMatch,
|
|
3630
|
+
cc as jsonSchemaUtils,
|
|
3631
|
+
cd as judgeUnique,
|
|
3632
|
+
aW as materialCheck,
|
|
3633
|
+
ce as migrateDiagonalDirectionToVertex,
|
|
3794
3634
|
nextFormChangeRowViewHistoryId,
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3635
|
+
o2 as normalizeAIOcrTmpl,
|
|
3636
|
+
I as normalizeHistoricalAutofillRow,
|
|
3637
|
+
l as normalizeHistoricalBusinessRow,
|
|
3638
|
+
aQ2 as normalizeHistoricalFieldConfig,
|
|
3639
|
+
b2 as normalizeRefLoaderResult,
|
|
3800
3640
|
normalizeRuntime,
|
|
3801
3641
|
parseFrontConfig,
|
|
3802
3642
|
parseRuntimeFieldPath,
|
|
3803
3643
|
parseUdi,
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3644
|
+
aR2 as pickObjectFieldKeys,
|
|
3645
|
+
aS as recordSubtableRowAdd,
|
|
3646
|
+
aT as recordSubtableRowDelete,
|
|
3647
|
+
b9 as refUtils,
|
|
3648
|
+
aU as relocateDeletedRowsToEnd,
|
|
3809
3649
|
renderUtils,
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3650
|
+
cf as requestMedProCheckDsData,
|
|
3651
|
+
cg as requestNonMedProCheckDsData,
|
|
3652
|
+
aV as resolveAnnotationFieldLocation,
|
|
3653
|
+
al as resolveDiagonalVertex,
|
|
3654
|
+
t as resolveFieldRenderComponent,
|
|
3655
|
+
aW2 as resolveFormChangeRowUi,
|
|
3656
|
+
A2 as resolveObjectBomEntry,
|
|
3657
|
+
x as resolveObjectFieldKeys,
|
|
3658
|
+
aX2 as resolveRowFormChangeMark,
|
|
3819
3659
|
resolveUdiQuery,
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3660
|
+
C as runWithFillProduct,
|
|
3661
|
+
r as setSelectAnnotationId,
|
|
3662
|
+
aY2 as setSelectMobileTdId,
|
|
3663
|
+
s as setSelectValidatorId,
|
|
3664
|
+
ch as splitRuntimeDataPath,
|
|
3665
|
+
aQ as sqlUtils,
|
|
3666
|
+
ci as stockCheck,
|
|
3667
|
+
aZ as stripLegacyFormConfigFromPaper,
|
|
3827
3668
|
transformUtils,
|
|
3828
|
-
|
|
3669
|
+
T as useDependency,
|
|
3829
3670
|
useEbrWikiFactoryV2,
|
|
3830
|
-
|
|
3671
|
+
U as useFieldPresentation,
|
|
3831
3672
|
u2 as useFormModel,
|
|
3832
3673
|
u as useFormTmplConfig,
|
|
3833
3674
|
useMaterialBalance,
|
|
3834
3675
|
useNocodeEmitter,
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3676
|
+
E as useNocodeFormWidget,
|
|
3677
|
+
cj as useOnlineFormActionButton,
|
|
3678
|
+
bg as useOnlineFormTransformField2Component,
|
|
3838
3679
|
useRenderPageFactory,
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3680
|
+
V as useRuntimeEditorFlusher,
|
|
3681
|
+
q as useRuntimeInstanceServices,
|
|
3682
|
+
t2 as useRuntimeRowState,
|
|
3683
|
+
S as useStyles,
|
|
3684
|
+
p2 as useWidgetStaticAttrs,
|
|
3685
|
+
z as validateObjectBomForScan,
|
|
3845
3686
|
validateObjectBomQtyOnSubmit,
|
|
3846
|
-
|
|
3687
|
+
aY as validateReinspectionDate
|
|
3847
3688
|
};
|