@gct-paas/excel 0.1.40-beta.1 → 0.1.40-beta.10
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-DXIDs5gk.js → BaseComponent-DKaXUiq4.js} +2 -2
- package/dist/{VueVideoPlayer-DhyIm-g1.js → VueVideoPlayer-BeylL5J6.js} +2 -2
- package/dist/{align-editor-BcbgVXRp.js → align-editor-r0dHXFka.js} +1 -1
- package/dist/{barcode-design-BiCt0aS7.js → barcode-design-BCJkI4mq.js} +2 -2
- package/dist/base/index.es.js +665 -264
- package/dist/{diagonal-design-DmvWALIE.js → diagonal-design-CAILyrwR.js} +2 -2
- package/dist/{dynamic-table-action-fDIIzS2J.js → dynamic-table-action-CHY5xNLE.js} +449 -289
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js} +1037 -692
- package/dist/{edit.utils-CXmmCnxE-DxArFSxZ.js → edit.utils-CXmmCnxE-Cu6obgSA.js} +1 -1
- package/dist/excel.css +3304 -4069
- package/dist/{exceljs.min-CjKNZPlo.js → exceljs.min-CuCLHH9n.js} +2 -2
- package/dist/{font-editor-DseGyVgB.js → font-editor-DsrS0BQJ.js} +3 -3
- package/dist/{image-design-Dr-L9AdG.js → image-design-FDLY6DFg.js} +2 -2
- package/dist/{index-C6dFliaf.js → index-7u6Pmaax.js} +1 -1
- package/dist/{index-DrmR7WIs.js → index-AGp5c3cl.js} +2 -2
- package/dist/{index-D5IrgJyh.js → index-B-hfUWEs.js} +2 -2
- package/dist/{index-DcjOJuDw.js → index-B8pwnxas.js} +2 -2
- package/dist/{index-DKf57IGi.js → index-BCsDTwbK.js} +1 -1
- package/dist/{index-DNC5VG8P.js → index-BIeu5JwZ.js} +2 -2
- package/dist/{index-C70T1sVm.js → index-BPc_QQH5.js} +20226 -22256
- package/dist/{index-C4tVTc9U.js → index-BTfYHAPC.js} +2 -2
- package/dist/{index-BdJ4ouEl.js → index-BdFPuj12.js} +1 -1
- package/dist/{index-B34ZIwqL.js → index-BsVPhbAx.js} +6 -3
- package/dist/{index-4acBM2Lp.js → index-C3SyXJii.js} +2 -2
- package/dist/{index-BctQMMgh.js → index-C6jVSwAq.js} +2 -2
- package/dist/{index-Nytm1-X9.js → index-CFVecFFb.js} +53 -5
- package/dist/{index-CewKz2Ro.js → index-CRIhEnfm.js} +1 -1
- package/dist/{index-BjI7JCne.js → index-CRW2rDyo.js} +6 -5
- package/dist/{index-DqLVW6ej.js → index-CTJlsdnr.js} +3 -3
- package/dist/{index-CScWLXnC.js → index-CbmHekMw.js} +2 -2
- package/dist/{index-B29_mID7.js → index-CwK_A9FR.js} +3 -3
- package/dist/{index-C8OPhJhI.js → index-DEHsGK91.js} +1 -1
- package/dist/{index-DKRpaNo1.js → index-DGODLCja.js} +1 -1
- package/dist/{index-DsCTXMxB.js → index-DJiuJgNx.js} +1 -1
- package/dist/{index-CEmRRPE7.js → index-DOd1pUIe.js} +2 -2
- package/dist/{index-CXh-4yX8.js → index-DPGs3mX0.js} +3 -3
- package/dist/{index-CAdGL3Vp.js → index-DXNSTk5n.js} +2 -2
- package/dist/{index-r4MF8_-h.js → index-De6oWEZJ.js} +2 -2
- package/dist/{index-BxZ3M7eP.js → index-DgLLlaiF.js} +1 -1
- package/dist/{index-CX_eR36M.js → index-DkYlfWLa.js} +2 -2
- package/dist/{index-JkPJqZ_5.js → index-Dl_ZgCRB.js} +2 -2
- package/dist/{index-CJ9CrORT.js → index-DoVHKpph.js} +6 -5
- package/dist/{index-BPgCZjqV.js → index-Go0PUrqy.js} +1 -1
- package/dist/{index-hcCJUBne.js → index-KxrgWfEL.js} +1 -1
- package/dist/{index-lwjRRvDn.js → index-dXOMuxrp.js} +2 -2
- package/dist/{index-iRameN0x.js → index-etlM6HzI.js} +2 -2
- package/dist/{index-BY7RGawr.js → index-gGYvWSjX.js} +2 -2
- package/dist/{index-0W-MEvEf.js → index-rZVFumSM.js} +2 -2
- package/dist/index.es.js +12 -10
- package/dist/{mb-render-BdRsSczc.js → mb-render-_IUbyYCY.js} +9 -3
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D32c_U8J.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js} +8 -1
- package/dist/{pagination-design-9Z_iRIKM.js → pagination-design-DsOKY9kM.js} +2 -2
- package/dist/paper-widget-design-BTxXtF4f.js +4 -0
- package/dist/{print-runtime-instance-BBOww4jg.js → print-runtime-instance-lfLuU2No.js} +1 -1
- package/dist/{print-snapshot-renderer-DGt44saz.js → print-snapshot-renderer-Di-YZz7g.js} +3 -3
- package/dist/{qrcode-design-qbUjPX-B.js → qrcode-design-BGptsxHU.js} +1 -1
- package/dist/{revo-grid.entry-RzymRzb0.js → revo-grid.entry-BZADj2ve.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CxTEXm8Q.js → revogr-attribution_7.entry-DbQASE7d.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DQEid83u.js → revogr-clipboard_3.entry-BUDhUelS.js} +2 -2
- package/dist/{revogr-data_4.entry-ASovYZWH.js → revogr-data_4.entry-0V57Lz9p.js} +2 -2
- package/dist/{revogr-filter-panel.entry-j_V74kgz.js → revogr-filter-panel.entry-BJEYteeW.js} +1 -1
- package/dist/seal-design-BS24iQos.js +4 -0
- package/dist/{serialnumber-design-DXKTYOY7.js → serialnumber-design-BbjW4gnZ.js} +1 -1
- package/dist/shared/index.es.js +26 -24
- package/dist/{single-field-drop-CLjaHjL-.js → single-field-drop-DP6_SO_H.js} +2 -2
- package/dist/{size-editor-C62H_eRP.js → size-editor-CcYZKUn5.js} +1 -1
- 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-balance/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +25 -10
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +8 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +1 -7
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.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 +2 -0
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +2 -1
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +1 -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 +2 -1
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -0
- 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 +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +12 -7
- package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +4 -3
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +3 -7
- 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 +4 -1
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +8 -2
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +7 -6
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +1 -0
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +9 -1
- package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +6 -2
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +2 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +2 -1
- package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +1 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +1 -1
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/inventory-scan-columns.d.ts +6 -0
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.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/display-fields-editor/display-fields.util.d.ts +2 -2
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +3 -0
- 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_/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_/trace/utils/use-rule-props.d.ts +0 -3
- package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +5 -3
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
- package/dist/src/shared/enum/field-type.d.ts +9 -2
- package/dist/src/shared/enum/index.d.ts +2 -0
- package/dist/src/shared/enum/product-type.d.ts +9 -0
- package/dist/src/shared/enum/production-identification.d.ts +19 -0
- package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
- package/dist/{sub-table-factory-sn1Ek1c9.js → sub-table-factory-B0YWwWSA.js} +229 -150
- package/dist/{text-design-CwHfwel0.js → text-design-CquXT5UG.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-BHDq1lM3.js → throttle-Cpk1LoGk-BVommE6v.js} +1 -1
- package/dist/{timediff-design-8kCO3aXz.js → timediff-design-DLlIUaqv.js} +1 -1
- package/dist/{trace-like-wrapper-CxPz9Trr.js → trace-like-wrapper-BXA26KJX.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CzEZ0CY7.js → value-editor.vue_vue_type_style_index_0_lang-BE_003Cm.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-CRxh3tC2.js → widget-barcode-DSLB1Wm3.js} +4 -4
- package/dist/{widget-diagonal-CO586oV2.js → widget-diagonal-8alLoPL6.js} +3 -3
- package/dist/{widget-image-CE6kVnu5.js → widget-image-BmP7Adg_.js} +5 -5
- package/dist/{widget-line-Br4oIssb.js → widget-line-D9S0mzzT.js} +2 -2
- package/dist/{widget-pagination-BHwjrBV5.js → widget-pagination-BR3w_OHu.js} +5 -5
- package/dist/{widget-power-BySYsE15.js → widget-power-DCV70vg5.js} +3 -3
- package/dist/{widget-qrcode-D6b0T_Qa.js → widget-qrcode-CTzBIYUi.js} +3 -3
- package/dist/{widget-rangelimit-DTH7nrqC.js → widget-rangelimit-1aqxil7q.js} +3 -3
- package/dist/{widget-serialnumber-DVtxhNC3.js → widget-serialnumber-B-2Ey17u.js} +1 -1
- package/dist/{widget-text-gBGybAXk.js → widget-text-B1REfHTG.js} +5 -5
- package/dist/{widget-timediff-aY-maVkE.js → widget-timediff-DRoMv5aa.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BGotQsIf.js +0 -4
- package/dist/seal-design-DP1XaAY8.js +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, nextTick, toRef, provide, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aj as CellWidgetViewState, F as FIELD_TYPE, bm as RenderModeEnum, Z as FormTypeEnum, bG as BpmnNodeTypeEnum, cz as getFieldPlaceholder, bY as MobileFillTypeEnum, C as ComponentTypeEnum, a0 as PlatformEnum, cA as isReferenceOptionActive, p as api, bw as uuid2, c6 as calcUtils, bk as findRuntimeTableRow, ca as ensureTableRowKeys, c3 as bindRuntimeTableColumns, bj as getRowId, cB as FRONT_ROW_KEY, cp as isTableRowKeyMatch, by as isAttachFieldActive, cC as filterRulesByTrigger, cD as isEmptyValue$1, c7 as decodeTableCellRowKey, c9 as ensureFrontRowKey, b2 as getParseRuleInfo, aH as transformUtils, aZ as materialCheck, a_ as getLotLockedReason, a$ as validateReinspectionDate, bp as FormulaRuleFieldKeyEnum, h as SubTableType, b3 as getParseRuleValue, cE as buildError, I as CreateType, bn as findRuntimeParentRow, aK as Dependency_ENUM, aJ as ASSIGNMENTSTRATEGY_ENUM, bL as commonUtils, aO as DeviceLink, a9 as _export_sfc, cj as getRenderedRuntimeTableCell, A as CellType, ct as relocateDeletedRowsToEnd, cF as resetTableRowIdentity, K as useModal, cG as q, cH as QUICK_FILL_ALLOWED_FIELDS, cI as groupFixedTableRows, cJ as processQuickFillRows, cK as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js";
|
|
3
3
|
import { cloneDeep, isEmpty, has, pickBy, isNil, mergeWith, omit, last, pick, merge } from "lodash-es";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { a as useNamespace, I as Icon } from "./AntdIcon-DCIaV352.js";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import { Modal, message } from "ant-design-vue";
|
|
8
|
-
import { u as useFormModel } from "./mb-render-
|
|
8
|
+
import { u as useFormModel } from "./mb-render-_IUbyYCY.js";
|
|
9
9
|
var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
|
|
10
10
|
MaterialConsumptionPatternEnum2["RECORD"] = "record";
|
|
11
11
|
MaterialConsumptionPatternEnum2["BOM"] = "bom";
|
|
@@ -18,6 +18,61 @@ function normalizeFieldWidth(value, fallback = DEFAULT_FIELD_WIDTH) {
|
|
|
18
18
|
const width = Number(value);
|
|
19
19
|
return Number.isFinite(width) && width >= 0 ? width : fallback;
|
|
20
20
|
}
|
|
21
|
+
function isBlank$1(value) {
|
|
22
|
+
return value === void 0 || value === null || value === "";
|
|
23
|
+
}
|
|
24
|
+
function matchFieldKey(match, fieldKey) {
|
|
25
|
+
if (!match.fieldKey) return false;
|
|
26
|
+
const keys = Array.isArray(match.fieldKey) ? match.fieldKey : [match.fieldKey];
|
|
27
|
+
return keys.includes(fieldKey);
|
|
28
|
+
}
|
|
29
|
+
function findFieldProfile(profile, fieldKey) {
|
|
30
|
+
return profile?.fields?.find((item) => matchFieldKey(item.match, fieldKey));
|
|
31
|
+
}
|
|
32
|
+
function buildDefaultMapFromProfile(profile, paramsConfig) {
|
|
33
|
+
const result = {};
|
|
34
|
+
if (!profile?.contextAssignments?.length) return result;
|
|
35
|
+
const assignments = profile.contextAssignments.filter(
|
|
36
|
+
(item) => item.when === "onRowInit"
|
|
37
|
+
);
|
|
38
|
+
for (const assignment of assignments) {
|
|
39
|
+
const value = paramsConfig?.[assignment.paramKey];
|
|
40
|
+
if (isBlank$1(value)) continue;
|
|
41
|
+
result[assignment.fieldKey] = value;
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
function buildFieldStatusFromProfile(params) {
|
|
46
|
+
const { profile, field } = params;
|
|
47
|
+
const result = {};
|
|
48
|
+
if (!profile) return result;
|
|
49
|
+
const fieldProfile = findFieldProfile(profile, field);
|
|
50
|
+
if (fieldProfile?.defaultProps) {
|
|
51
|
+
if (fieldProfile.defaultProps.disabled === true || fieldProfile.defaultProps.fieldDisabled === true) {
|
|
52
|
+
result.disabled = true;
|
|
53
|
+
}
|
|
54
|
+
if (fieldProfile.defaultProps.readonly === true || fieldProfile.defaultProps.fieldReadonly === true) {
|
|
55
|
+
result.readonly = true;
|
|
56
|
+
}
|
|
57
|
+
if (fieldProfile.defaultProps.required === false) {
|
|
58
|
+
result.required = false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const rules2 = (profile.runtimeRules ?? []).filter(
|
|
62
|
+
(rule) => !rule.when || rule.when === "always" || rule.when === "onRowInit"
|
|
63
|
+
);
|
|
64
|
+
for (const rule of rules2) {
|
|
65
|
+
if (!rule.fields.includes(field)) continue;
|
|
66
|
+
if (rule.effect.readonly) result.readonly = true;
|
|
67
|
+
if (rule.effect.disabled) result.disabled = true;
|
|
68
|
+
if (rule.effect.required !== void 0) result.required = rule.effect.required;
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
function getRowHandlersForFieldChange(profile, changedField) {
|
|
73
|
+
if (!profile?.rowHandlers?.length) return [];
|
|
74
|
+
return profile.rowHandlers.filter((item) => item.when === "onFieldChange").filter((item) => !item.watch?.length || item.watch.includes(changedField)).map((item) => item.handler);
|
|
75
|
+
}
|
|
21
76
|
function hasSignatureValue(value) {
|
|
22
77
|
if (value === void 0 || value === null) return false;
|
|
23
78
|
if (typeof value !== "string") {
|
|
@@ -958,6 +1013,8 @@ function convertV1Runtime(runtime) {
|
|
|
958
1013
|
return { schemaVersion: 1, formConfig, sheets: [sheet] };
|
|
959
1014
|
}
|
|
960
1015
|
const MULTI_SHEET_SCHEMA_VERSION = 2;
|
|
1016
|
+
const MAX_RUNTIME_SHEETS = 100;
|
|
1017
|
+
const MAX_RUNTIME_SHEET_TITLE_LENGTH = 255;
|
|
961
1018
|
function assertObject(value, message2) {
|
|
962
1019
|
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error(message2);
|
|
963
1020
|
}
|
|
@@ -1023,7 +1080,9 @@ function normalizeRuntime(runtime) {
|
|
|
1023
1080
|
if (!Array.isArray(runtime.sheets) || runtime.sheets.length === 0) {
|
|
1024
1081
|
throw new Error("多 Sheet 运行时至少需要一个工作表");
|
|
1025
1082
|
}
|
|
1026
|
-
if (runtime.sheets.length >
|
|
1083
|
+
if (runtime.sheets.length > MAX_RUNTIME_SHEETS) {
|
|
1084
|
+
throw new Error(`每份表单最多支持 ${MAX_RUNTIME_SHEETS} 个工作表`);
|
|
1085
|
+
}
|
|
1027
1086
|
const formConfig = runtime.formConfig ?? {};
|
|
1028
1087
|
assertObject(formConfig, "多 Sheet 运行时的 formConfig 格式无效");
|
|
1029
1088
|
const ids = /* @__PURE__ */ new Set();
|
|
@@ -1034,7 +1093,9 @@ function normalizeRuntime(runtime) {
|
|
|
1034
1093
|
const sheetId = String(rawSheet.sheetId ?? "").trim();
|
|
1035
1094
|
const title = String(rawSheet.title ?? "").trim();
|
|
1036
1095
|
if (!sheetId) throw new Error(`第 ${index + 1} 个工作表缺少 sheetId`);
|
|
1037
|
-
if (!title || title.length >
|
|
1096
|
+
if (!title || title.length > MAX_RUNTIME_SHEET_TITLE_LENGTH) {
|
|
1097
|
+
throw new Error(`工作表名称必须为 1 到 ${MAX_RUNTIME_SHEET_TITLE_LENGTH} 个字符:${title}`);
|
|
1098
|
+
}
|
|
1038
1099
|
if (ids.has(sheetId)) throw new Error(`重复的 sheetId:${sheetId}`);
|
|
1039
1100
|
if (titles.has(title)) throw new Error(`重复的工作表名称:${title}`);
|
|
1040
1101
|
ids.add(sheetId);
|
|
@@ -1731,12 +1792,28 @@ class RuntimeFormStateStore {
|
|
|
1731
1792
|
incoming.forEach((savedRow) => {
|
|
1732
1793
|
const rowKey = savedRow?.[FRONT_ROW_KEY];
|
|
1733
1794
|
const savedId = savedRow?.id_;
|
|
1734
|
-
|
|
1795
|
+
let currentRow = target.find((row) => {
|
|
1735
1796
|
if (!row || typeof row !== "object") return false;
|
|
1736
1797
|
if (rowKey != null && isTableRowKeyMatch(rowKey, row[FRONT_ROW_KEY])) return true;
|
|
1737
1798
|
return savedId != null && row.id_ != null && String(row.id_) === String(savedId);
|
|
1738
1799
|
});
|
|
1739
|
-
|
|
1800
|
+
let matchedByGroup = false;
|
|
1801
|
+
if (!currentRow && Array.isArray(savedRow?._2DTABLE_) && savedRow.group_ != null && String(savedRow.group_).trim() !== "") {
|
|
1802
|
+
const matchingGroups = target.filter(
|
|
1803
|
+
(row) => Array.isArray(row?._2DTABLE_) && row.group_ != null && String(row.group_) === String(savedRow.group_)
|
|
1804
|
+
);
|
|
1805
|
+
if (matchingGroups.length === 1) {
|
|
1806
|
+
currentRow = matchingGroups[0];
|
|
1807
|
+
matchedByGroup = true;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
if (currentRow) {
|
|
1811
|
+
this.mergeSavedMetadata(
|
|
1812
|
+
currentRow,
|
|
1813
|
+
matchedByGroup ? { ...savedRow, [FRONT_ROW_KEY]: currentRow[FRONT_ROW_KEY] } : savedRow,
|
|
1814
|
+
path
|
|
1815
|
+
);
|
|
1816
|
+
}
|
|
1740
1817
|
});
|
|
1741
1818
|
return target;
|
|
1742
1819
|
}
|
|
@@ -1832,6 +1909,7 @@ class RuntimeAsyncTaskCoordinator {
|
|
|
1832
1909
|
fieldIdentity: options.fieldIdentity,
|
|
1833
1910
|
sheetId: options.sheetId,
|
|
1834
1911
|
required: options.required !== false,
|
|
1912
|
+
blockOnFailure: options.blockOnFailure !== false,
|
|
1835
1913
|
status: "pending",
|
|
1836
1914
|
sequence,
|
|
1837
1915
|
promise: task,
|
|
@@ -1875,7 +1953,7 @@ class RuntimeAsyncTaskCoordinator {
|
|
|
1875
1953
|
* 等待全部 required 任务达到稳定状态。
|
|
1876
1954
|
*
|
|
1877
1955
|
* 一轮任务完成后的字段回填可能触发新的公式或远程任务,因此这里循环读取任务表,直到
|
|
1878
|
-
* 没有新的 pending required
|
|
1956
|
+
* 没有新的 pending required 任务。稳定后只检查需要阻断提交的失败项。
|
|
1879
1957
|
*/
|
|
1880
1958
|
async waitForRequired(keyPrefix) {
|
|
1881
1959
|
const matches = (task) => task.required && (!keyPrefix || task.key.startsWith(keyPrefix));
|
|
@@ -1887,7 +1965,7 @@ class RuntimeAsyncTaskCoordinator {
|
|
|
1887
1965
|
await Promise.allSettled(pending.map((task) => task.promise));
|
|
1888
1966
|
}
|
|
1889
1967
|
const failed = Array.from(this.tasks.values()).filter(
|
|
1890
|
-
(task) => matches(task) && task.status === "rejected"
|
|
1968
|
+
(task) => matches(task) && task.blockOnFailure && task.status === "rejected"
|
|
1891
1969
|
);
|
|
1892
1970
|
if (failed.length) {
|
|
1893
1971
|
const details = failed.map((task) => {
|
|
@@ -3233,11 +3311,12 @@ class RuntimeValidationService {
|
|
|
3233
3311
|
this.pendingLive = this.pendingLive === "blur" ? "blur" : trigger;
|
|
3234
3312
|
if (this.liveTimer) clearTimeout(this.liveTimer);
|
|
3235
3313
|
this.liveTimer = void 0;
|
|
3236
|
-
if (immediate)
|
|
3314
|
+
if (immediate)
|
|
3315
|
+
void this.flushLive().catch((error) => this.logBackgroundError("字段校验失败", error));
|
|
3237
3316
|
else
|
|
3238
3317
|
this.liveTimer = setTimeout(() => {
|
|
3239
3318
|
this.liveTimer = void 0;
|
|
3240
|
-
void this.flushLive().catch((error) =>
|
|
3319
|
+
void this.flushLive().catch((error) => this.logBackgroundError("字段校验失败", error));
|
|
3241
3320
|
}, 300);
|
|
3242
3321
|
}
|
|
3243
3322
|
async flushLive() {
|
|
@@ -3259,11 +3338,17 @@ class RuntimeValidationService {
|
|
|
3259
3338
|
this.displayTimer = void 0;
|
|
3260
3339
|
const run = () => {
|
|
3261
3340
|
this.displayTimer = void 0;
|
|
3262
|
-
void this.validate("display").catch(
|
|
3341
|
+
void this.validate("display").catch(
|
|
3342
|
+
(error) => this.logBackgroundError("字段展示校验失败", error)
|
|
3343
|
+
);
|
|
3263
3344
|
};
|
|
3264
3345
|
if (immediate) run();
|
|
3265
3346
|
else this.displayTimer = setTimeout(run, 320);
|
|
3266
3347
|
}
|
|
3348
|
+
logBackgroundError(label, error) {
|
|
3349
|
+
if (error instanceof Error && error.message.startsWith("以下异步任务执行失败:")) return;
|
|
3350
|
+
console.error(label, error);
|
|
3351
|
+
}
|
|
3267
3352
|
pruneComments() {
|
|
3268
3353
|
if (!this.binding || this.disposed) return;
|
|
3269
3354
|
this.binding.applyComments(
|
|
@@ -4596,7 +4681,16 @@ class BomEntriesValidator {
|
|
|
4596
4681
|
memberIndexes.push(idx);
|
|
4597
4682
|
if (byLot && !row.material_no_) emptyLotIndexes.push(idx);
|
|
4598
4683
|
});
|
|
4599
|
-
const
|
|
4684
|
+
const targetExists = this.groupExistsInTable(arr, target);
|
|
4685
|
+
if (!targetExists) {
|
|
4686
|
+
const index = arr.findIndex((row2) => !row2.deleted_);
|
|
4687
|
+
const row = arr[index];
|
|
4688
|
+
const canReuse = row && !row.product_id_ && !row.bom_entry_id_ && !row.is_confirmed_ && arr.every((item, idx) => item.deleted_ || idx === index);
|
|
4689
|
+
if (canReuse) {
|
|
4690
|
+
emptyProductIndexes.push(index);
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
const needInsert = !targetExists && emptyProductIndexes.length === 0;
|
|
4600
4694
|
const last2 = memberIndexes[memberIndexes.length - 1];
|
|
4601
4695
|
let groupInsertIndex = -1;
|
|
4602
4696
|
if (needInsert) {
|
|
@@ -5221,7 +5315,8 @@ class MaterialConsumeTableController {
|
|
|
5221
5315
|
constructor(tmplBomController, tmplBom, options = {}) {
|
|
5222
5316
|
this.tmplBomController = tmplBomController;
|
|
5223
5317
|
this.tmplBom = tmplBom;
|
|
5224
|
-
if (!options.printOnly
|
|
5318
|
+
if (!options.printOnly && this.hasFormInstance)
|
|
5319
|
+
this.initScanRule(this.tmplBom.barcode_parsing_rules_id_);
|
|
5225
5320
|
this.scanParamType = this.tmplBom.scan_param_type_;
|
|
5226
5321
|
markRaw(this);
|
|
5227
5322
|
this.bomEntriesValidator = new BomEntriesValidator(
|
|
@@ -5284,6 +5379,9 @@ class MaterialConsumeTableController {
|
|
|
5284
5379
|
get mcPattern() {
|
|
5285
5380
|
return this.tmplBom.material_consumption_pattern_ ?? this.tmplBomController.defaultMCPattern;
|
|
5286
5381
|
}
|
|
5382
|
+
get hasFormInstance() {
|
|
5383
|
+
return this.tmplBomController.hasFormInstance;
|
|
5384
|
+
}
|
|
5287
5385
|
/**
|
|
5288
5386
|
* 解析规则数据对象
|
|
5289
5387
|
*/
|
|
@@ -5536,6 +5634,10 @@ class MaterialConsumeTableController {
|
|
|
5536
5634
|
}
|
|
5537
5635
|
const isRecordPattern = this.mcPattern === MaterialConsumptionPatternEnum.RECORD && !this.tmplBom.personal_bom_enabled_;
|
|
5538
5636
|
console.log("parseScanStr", data);
|
|
5637
|
+
if (!data.lot && !data.uniqueCode) {
|
|
5638
|
+
this.error($t("sys.edhr.mcTable.lotOrUniqueCodeRequired"));
|
|
5639
|
+
return;
|
|
5640
|
+
}
|
|
5539
5641
|
const arr = await materialCheck({
|
|
5540
5642
|
material_no_: data.materialCode,
|
|
5541
5643
|
production_identification_name_: data.lot,
|
|
@@ -6030,7 +6132,16 @@ class MaterialConsumeTableController {
|
|
|
6030
6132
|
this.error(msg);
|
|
6031
6133
|
return;
|
|
6032
6134
|
}
|
|
6033
|
-
if (!value)
|
|
6135
|
+
if (!value) {
|
|
6136
|
+
if (row.product_id_ && !this.isCustomRequiredQty) {
|
|
6137
|
+
const util = this.bomEntriesValidator.findUtilByProductId(row.product_id_);
|
|
6138
|
+
if (util) {
|
|
6139
|
+
row.qty_required_ = util.total;
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
this.updateDerivedQtyFields();
|
|
6143
|
+
return;
|
|
6144
|
+
}
|
|
6034
6145
|
try {
|
|
6035
6146
|
await validateReinspectionDate({
|
|
6036
6147
|
product_id_: option.product_id_ ?? row.product_id_,
|
|
@@ -6054,6 +6165,7 @@ class MaterialConsumeTableController {
|
|
|
6054
6165
|
const qty = oldGroupId && row.bom_entry_id_ === oldGroupId ? oldRequiredQty : this.getCustomGroupRequiredQty(row);
|
|
6055
6166
|
this.setCustomGroupRequiredQty(row, qty);
|
|
6056
6167
|
}
|
|
6168
|
+
this.updateDerivedQtyFields();
|
|
6057
6169
|
} else if (field === "qty_") {
|
|
6058
6170
|
this.updateDerivedQtyFields();
|
|
6059
6171
|
}
|
|
@@ -6688,11 +6800,12 @@ class SubTableCore {
|
|
|
6688
6800
|
/**
|
|
6689
6801
|
* 扫码多条候选时选择一行(1 条自动选中)
|
|
6690
6802
|
*/
|
|
6691
|
-
async pickScanRecord(records) {
|
|
6803
|
+
async pickScanRecord(records, options = {}) {
|
|
6692
6804
|
if (!records.length) return void 0;
|
|
6693
6805
|
if (records.length === 1) return records[0];
|
|
6694
6806
|
return this.render.openMultiRowsModal({
|
|
6695
|
-
rows: mapScanRecordsForPicker(records)
|
|
6807
|
+
rows: mapScanRecordsForPicker(records),
|
|
6808
|
+
...options
|
|
6696
6809
|
});
|
|
6697
6810
|
}
|
|
6698
6811
|
/**
|
|
@@ -6714,39 +6827,71 @@ class SubTableCore {
|
|
|
6714
6827
|
console.log(this.ctx.widget.props.tableTitle, "处理表单按钮点击事件", params);
|
|
6715
6828
|
}
|
|
6716
6829
|
}
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6830
|
+
const STORAGE_KEY = "gct:formula:params:v1";
|
|
6831
|
+
const PARAMS_CHANGED_EVENT = "gct:formula-params-updated:v1";
|
|
6832
|
+
function emptyConfig() {
|
|
6833
|
+
return {
|
|
6834
|
+
routingParamList: [],
|
|
6835
|
+
inspectionParamList: [],
|
|
6836
|
+
deviceParamList: []
|
|
6837
|
+
};
|
|
6724
6838
|
}
|
|
6725
|
-
|
|
6726
|
-
if (!
|
|
6727
|
-
|
|
6839
|
+
function normalizeList(value) {
|
|
6840
|
+
if (!Array.isArray(value)) return [];
|
|
6841
|
+
return value.filter(
|
|
6842
|
+
(item) => item !== null && typeof item === "object" && typeof item.customFieldKey === "string"
|
|
6843
|
+
);
|
|
6844
|
+
}
|
|
6845
|
+
function normalizeConfig(value) {
|
|
6846
|
+
const data = value !== null && typeof value === "object" ? value : {};
|
|
6847
|
+
return {
|
|
6848
|
+
routingParamList: normalizeList(data.routingParamList),
|
|
6849
|
+
inspectionParamList: normalizeList(data.inspectionParamList),
|
|
6850
|
+
deviceParamList: normalizeList(data.deviceParamList)
|
|
6851
|
+
};
|
|
6852
|
+
}
|
|
6853
|
+
let lastRaw;
|
|
6854
|
+
let cachedConfig = emptyConfig();
|
|
6855
|
+
function readFormulaParamsConfig() {
|
|
6856
|
+
const raw = window.localStorage.getItem(STORAGE_KEY);
|
|
6857
|
+
if (raw !== lastRaw) {
|
|
6858
|
+
try {
|
|
6859
|
+
cachedConfig = normalizeConfig(raw ? JSON.parse(raw) : null);
|
|
6860
|
+
} catch {
|
|
6861
|
+
cachedConfig = emptyConfig();
|
|
6862
|
+
}
|
|
6863
|
+
lastRaw = raw;
|
|
6864
|
+
}
|
|
6865
|
+
return cachedConfig;
|
|
6866
|
+
}
|
|
6867
|
+
const currentParamsConfig = {
|
|
6868
|
+
get routingParamList() {
|
|
6869
|
+
return readFormulaParamsConfig().routingParamList;
|
|
6870
|
+
},
|
|
6871
|
+
get inspectionParamList() {
|
|
6872
|
+
return readFormulaParamsConfig().inspectionParamList;
|
|
6728
6873
|
}
|
|
6729
|
-
const config = paramList?.find((e) => e.customFieldKey === key);
|
|
6730
|
-
if (!config) return null;
|
|
6731
|
-
const { upperLimit, lowerLimit } = config;
|
|
6732
|
-
if (lowerLimit == null || upperLimit == null) return null;
|
|
6733
|
-
const actual = Number(value);
|
|
6734
|
-
const min = Number(config.lowerLimit);
|
|
6735
|
-
const max = Number(config.upperLimit);
|
|
6736
|
-
if (![actual, min, max].every(Number.isFinite)) return null;
|
|
6737
|
-
return actual >= min && actual <= max;
|
|
6738
|
-
}
|
|
6739
|
-
const FORMULA_FUNCS = {
|
|
6740
|
-
RoutingParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.routingParamList || []),
|
|
6741
|
-
InspectionParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.inspectionParamList || []),
|
|
6742
|
-
DeviceParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.deviceParamList || [])
|
|
6743
6874
|
};
|
|
6744
|
-
function
|
|
6745
|
-
const
|
|
6746
|
-
if (
|
|
6747
|
-
|
|
6748
|
-
|
|
6875
|
+
function setFormulaParamsConfig(paramsConfig = {}) {
|
|
6876
|
+
const raw = JSON.stringify(normalizeConfig(paramsConfig));
|
|
6877
|
+
if (window.localStorage.getItem(STORAGE_KEY) === raw) return;
|
|
6878
|
+
window.localStorage.setItem(STORAGE_KEY, raw);
|
|
6879
|
+
window.dispatchEvent(new Event(PARAMS_CHANGED_EVENT));
|
|
6880
|
+
}
|
|
6881
|
+
const boundCalculators = /* @__PURE__ */ new WeakSet();
|
|
6882
|
+
function bindFormulaCacheInvalidation(value) {
|
|
6883
|
+
if (typeof value !== "function") return;
|
|
6884
|
+
const calculator = value;
|
|
6885
|
+
if (typeof calculator.clear !== "function" || boundCalculators.has(calculator)) return;
|
|
6886
|
+
boundCalculators.add(calculator);
|
|
6887
|
+
const clearCache = () => calculator.clear();
|
|
6888
|
+
window.addEventListener(PARAMS_CHANGED_EVENT, clearCache);
|
|
6889
|
+
window.addEventListener("storage", (event) => {
|
|
6890
|
+
if (event.storageArea === window.localStorage && (event.key === STORAGE_KEY || event.key === null)) {
|
|
6891
|
+
clearCache();
|
|
6892
|
+
}
|
|
6749
6893
|
});
|
|
6894
|
+
clearCache();
|
|
6750
6895
|
}
|
|
6751
6896
|
function getGroupProductIds(entry) {
|
|
6752
6897
|
const ids = [entry.product_id_];
|
|
@@ -6920,7 +7065,7 @@ async function validateObjectBomQtyOnSubmit(opts) {
|
|
|
6920
7065
|
for (const obj of objectFieldList) {
|
|
6921
7066
|
if (!obj?.objectField) continue;
|
|
6922
7067
|
const objectBom = findObjectBom(formInstBom, obj.objectField);
|
|
6923
|
-
if (objectBom?.material_consumption_pattern_ === MaterialConsumptionPatternEnum.RECORD) {
|
|
7068
|
+
if (objectBom?.material_consumption_pattern_ === MaterialConsumptionPatternEnum.RECORD && !objectBom.personal_bom_enabled_) {
|
|
6924
7069
|
continue;
|
|
6925
7070
|
}
|
|
6926
7071
|
const { productKey, productFieldName, qtyKey, qtyRequiredKey, qtyFieldName } = pickObjectFieldKeys(obj.subFields, obj.objectField);
|
|
@@ -6981,150 +7126,6 @@ async function validateObjectBomQtyOnSubmit(opts) {
|
|
|
6981
7126
|
}
|
|
6982
7127
|
return errors;
|
|
6983
7128
|
}
|
|
6984
|
-
function isBlank(value) {
|
|
6985
|
-
return value == null || value === "";
|
|
6986
|
-
}
|
|
6987
|
-
function pickPresent(preferred, fallback) {
|
|
6988
|
-
return isBlank(preferred) ? fallback : preferred;
|
|
6989
|
-
}
|
|
6990
|
-
function resolveObjectFieldKeys(opts) {
|
|
6991
|
-
const obj = opts.objectFieldList?.find((item) => item.objectField === opts.belongingObject);
|
|
6992
|
-
const fromList = obj?.subFields ? pickObjectFieldKeys(obj.subFields, opts.belongingObject) : {};
|
|
6993
|
-
const fromFallback = pickObjectFieldKeys(opts.fallbackFields, opts.belongingObject, {
|
|
6994
|
-
requireUsed: false
|
|
6995
|
-
});
|
|
6996
|
-
return {
|
|
6997
|
-
productKey: pickPresent(fromList.productKey, fromFallback.productKey),
|
|
6998
|
-
productFieldName: fromList.productFieldName ?? fromFallback.productFieldName,
|
|
6999
|
-
materialNoKey: pickPresent(fromList.materialNoKey, fromFallback.materialNoKey),
|
|
7000
|
-
materialNoFieldName: fromList.materialNoFieldName ?? fromFallback.materialNoFieldName,
|
|
7001
|
-
qtyKey: pickPresent(fromList.qtyKey, fromFallback.qtyKey),
|
|
7002
|
-
qtyRequiredKey: pickPresent(fromList.qtyRequiredKey, fromFallback.qtyRequiredKey),
|
|
7003
|
-
qtyFieldName: fromList.qtyFieldName ?? fromFallback.qtyFieldName,
|
|
7004
|
-
bomEntryIdKey: pickPresent(fromList.bomEntryIdKey, fromFallback.bomEntryIdKey)
|
|
7005
|
-
};
|
|
7006
|
-
}
|
|
7007
|
-
function buildObjectLotExtraQuery(productId) {
|
|
7008
|
-
if (isBlank(productId)) return {};
|
|
7009
|
-
const versionId = String(productId).split(":").pop();
|
|
7010
|
-
if (!versionId) return {};
|
|
7011
|
-
return { "product_id_.versionEq": versionId };
|
|
7012
|
-
}
|
|
7013
|
-
function clearedLotFields(materialNoKey) {
|
|
7014
|
-
if (!materialNoKey) return {};
|
|
7015
|
-
return {
|
|
7016
|
-
[materialNoKey]: void 0,
|
|
7017
|
-
[`${materialNoKey}_id_`]: void 0,
|
|
7018
|
-
[`${materialNoKey}_lb_`]: void 0
|
|
7019
|
-
};
|
|
7020
|
-
}
|
|
7021
|
-
function shouldClearLotOnProductChange(opts) {
|
|
7022
|
-
const { prevProduct, nextProduct, lotValue } = opts;
|
|
7023
|
-
if (isBlank(prevProduct) && isBlank(nextProduct)) return false;
|
|
7024
|
-
if (prevProduct === nextProduct) return false;
|
|
7025
|
-
if (isBlank(prevProduct) && !isBlank(nextProduct) && !isBlank(lotValue)) {
|
|
7026
|
-
return false;
|
|
7027
|
-
}
|
|
7028
|
-
return true;
|
|
7029
|
-
}
|
|
7030
|
-
let fillingProduct = false;
|
|
7031
|
-
function runWithFillProduct(fn) {
|
|
7032
|
-
fillingProduct = true;
|
|
7033
|
-
try {
|
|
7034
|
-
fn();
|
|
7035
|
-
} finally {
|
|
7036
|
-
nextTick(() => {
|
|
7037
|
-
fillingProduct = false;
|
|
7038
|
-
});
|
|
7039
|
-
}
|
|
7040
|
-
}
|
|
7041
|
-
function resolveLotValidateParams(keys, formData, option) {
|
|
7042
|
-
return {
|
|
7043
|
-
product_id_: option?.product_id_ ?? option?._item?.product_id_ ?? (keys.productKey ? formData[keys.productKey] : void 0),
|
|
7044
|
-
material_no_: option?.name_ ?? option?.__VALUE__ ?? (keys.materialNoKey ? formData[keys.materialNoKey] : void 0),
|
|
7045
|
-
material_no_id_: option?.id_ ?? (keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0)
|
|
7046
|
-
};
|
|
7047
|
-
}
|
|
7048
|
-
async function applyConsumeObjectTraceChange(opts) {
|
|
7049
|
-
const { belongingObject, role, formData } = opts;
|
|
7050
|
-
if (!belongingObject || !formData) return {};
|
|
7051
|
-
const keys = resolveObjectFieldKeys({
|
|
7052
|
-
belongingObject,
|
|
7053
|
-
objectFieldList: opts.objectFieldList,
|
|
7054
|
-
fallbackFields: opts.fallbackFields
|
|
7055
|
-
});
|
|
7056
|
-
if (role === FIELD_TYPE.PRODUCT) {
|
|
7057
|
-
if (!("prevProduct" in opts) || fillingProduct) return {};
|
|
7058
|
-
const values = {};
|
|
7059
|
-
if (shouldClearLotOnProductChange({
|
|
7060
|
-
prevProduct: opts.prevProduct,
|
|
7061
|
-
nextProduct: opts.nextValue,
|
|
7062
|
-
lotValue: keys.materialNoKey ? formData[keys.materialNoKey] : void 0
|
|
7063
|
-
})) {
|
|
7064
|
-
Object.assign(values, clearedLotFields(keys.materialNoKey));
|
|
7065
|
-
}
|
|
7066
|
-
if (keys.bomEntryIdKey) {
|
|
7067
|
-
values[keys.bomEntryIdKey] = null;
|
|
7068
|
-
if (!isBlank(opts.nextValue) && opts.formInstBom) {
|
|
7069
|
-
const entry = resolveObjectBomEntry({
|
|
7070
|
-
formInstBom: opts.formInstBom,
|
|
7071
|
-
belongingObject,
|
|
7072
|
-
productId: String(opts.nextValue)
|
|
7073
|
-
});
|
|
7074
|
-
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7075
|
-
}
|
|
7076
|
-
}
|
|
7077
|
-
opts.rowWriter.patchRow(values, "autofill");
|
|
7078
|
-
const lotValue = keys.materialNoKey ? formData[keys.materialNoKey] : void 0;
|
|
7079
|
-
if (!isBlank(opts.nextValue) && !isBlank(lotValue)) {
|
|
7080
|
-
try {
|
|
7081
|
-
await validateReinspectionDate({
|
|
7082
|
-
product_id_: String(opts.nextValue),
|
|
7083
|
-
material_no_: lotValue,
|
|
7084
|
-
material_no_id_: keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0
|
|
7085
|
-
});
|
|
7086
|
-
} catch (e) {
|
|
7087
|
-
return { abortReinspection: e?.message || String(e) };
|
|
7088
|
-
}
|
|
7089
|
-
}
|
|
7090
|
-
return {};
|
|
7091
|
-
}
|
|
7092
|
-
if (role === FIELD_TYPE.MATERIAL_NO) {
|
|
7093
|
-
if (opts.option?.is_locked_) {
|
|
7094
|
-
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "autofill");
|
|
7095
|
-
return { abortLocked: opts.option.id_ };
|
|
7096
|
-
}
|
|
7097
|
-
const params = resolveLotValidateParams(keys, formData, opts.option);
|
|
7098
|
-
if (isBlank(params.material_no_) && isBlank(params.material_no_id_)) return {};
|
|
7099
|
-
try {
|
|
7100
|
-
await validateReinspectionDate(params);
|
|
7101
|
-
} catch (e) {
|
|
7102
|
-
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "async");
|
|
7103
|
-
return { abortReinspection: e?.message || String(e) };
|
|
7104
|
-
}
|
|
7105
|
-
const values = {};
|
|
7106
|
-
const productId = opts.option?.product_id_ ?? opts.option?._item?.product_id_;
|
|
7107
|
-
if (keys.productKey && !isBlank(productId)) values[keys.productKey] = productId;
|
|
7108
|
-
if (keys.bomEntryIdKey && opts.formInstBom) {
|
|
7109
|
-
if (!isBlank(productId)) {
|
|
7110
|
-
const entry = resolveObjectBomEntry({
|
|
7111
|
-
formInstBom: opts.formInstBom,
|
|
7112
|
-
belongingObject,
|
|
7113
|
-
productId: String(productId)
|
|
7114
|
-
});
|
|
7115
|
-
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7116
|
-
}
|
|
7117
|
-
}
|
|
7118
|
-
const patchRelatedFields = () => opts.rowWriter.patchRow(values, "autofill");
|
|
7119
|
-
if (keys.productKey && !isBlank(productId)) {
|
|
7120
|
-
runWithFillProduct(patchRelatedFields);
|
|
7121
|
-
} else {
|
|
7122
|
-
patchRelatedFields();
|
|
7123
|
-
}
|
|
7124
|
-
return {};
|
|
7125
|
-
}
|
|
7126
|
-
return {};
|
|
7127
|
-
}
|
|
7128
7129
|
function useRuntimeRowState(rowSource) {
|
|
7129
7130
|
const { formStateStore } = useRuntimeInstanceServices();
|
|
7130
7131
|
function requireStore() {
|
|
@@ -7877,6 +7878,150 @@ function useFormTmplConfig() {
|
|
|
7877
7878
|
injectController
|
|
7878
7879
|
};
|
|
7879
7880
|
}
|
|
7881
|
+
function isBlank(value) {
|
|
7882
|
+
return value == null || value === "";
|
|
7883
|
+
}
|
|
7884
|
+
function pickPresent(preferred, fallback) {
|
|
7885
|
+
return isBlank(preferred) ? fallback : preferred;
|
|
7886
|
+
}
|
|
7887
|
+
function resolveObjectFieldKeys(opts) {
|
|
7888
|
+
const obj = opts.objectFieldList?.find((item) => item.objectField === opts.belongingObject);
|
|
7889
|
+
const fromList = obj?.subFields ? pickObjectFieldKeys(obj.subFields, opts.belongingObject) : {};
|
|
7890
|
+
const fromFallback = pickObjectFieldKeys(opts.fallbackFields, opts.belongingObject, {
|
|
7891
|
+
requireUsed: false
|
|
7892
|
+
});
|
|
7893
|
+
return {
|
|
7894
|
+
productKey: pickPresent(fromList.productKey, fromFallback.productKey),
|
|
7895
|
+
productFieldName: fromList.productFieldName ?? fromFallback.productFieldName,
|
|
7896
|
+
materialNoKey: pickPresent(fromList.materialNoKey, fromFallback.materialNoKey),
|
|
7897
|
+
materialNoFieldName: fromList.materialNoFieldName ?? fromFallback.materialNoFieldName,
|
|
7898
|
+
qtyKey: pickPresent(fromList.qtyKey, fromFallback.qtyKey),
|
|
7899
|
+
qtyRequiredKey: pickPresent(fromList.qtyRequiredKey, fromFallback.qtyRequiredKey),
|
|
7900
|
+
qtyFieldName: fromList.qtyFieldName ?? fromFallback.qtyFieldName,
|
|
7901
|
+
bomEntryIdKey: pickPresent(fromList.bomEntryIdKey, fromFallback.bomEntryIdKey)
|
|
7902
|
+
};
|
|
7903
|
+
}
|
|
7904
|
+
function buildObjectLotExtraQuery(productId) {
|
|
7905
|
+
if (isBlank(productId)) return {};
|
|
7906
|
+
const versionId = String(productId).split(":").pop();
|
|
7907
|
+
if (!versionId) return {};
|
|
7908
|
+
return { "product_id_.versionEq": versionId };
|
|
7909
|
+
}
|
|
7910
|
+
function clearedLotFields(materialNoKey) {
|
|
7911
|
+
if (!materialNoKey) return {};
|
|
7912
|
+
return {
|
|
7913
|
+
[materialNoKey]: void 0,
|
|
7914
|
+
[`${materialNoKey}_id_`]: void 0,
|
|
7915
|
+
[`${materialNoKey}_lb_`]: void 0
|
|
7916
|
+
};
|
|
7917
|
+
}
|
|
7918
|
+
function shouldClearLotOnProductChange(opts) {
|
|
7919
|
+
const { prevProduct, nextProduct, lotValue } = opts;
|
|
7920
|
+
if (isBlank(prevProduct) && isBlank(nextProduct)) return false;
|
|
7921
|
+
if (prevProduct === nextProduct) return false;
|
|
7922
|
+
if (isBlank(prevProduct) && !isBlank(nextProduct) && !isBlank(lotValue)) {
|
|
7923
|
+
return false;
|
|
7924
|
+
}
|
|
7925
|
+
return true;
|
|
7926
|
+
}
|
|
7927
|
+
let fillingProduct = false;
|
|
7928
|
+
function runWithFillProduct(fn) {
|
|
7929
|
+
fillingProduct = true;
|
|
7930
|
+
try {
|
|
7931
|
+
fn();
|
|
7932
|
+
} finally {
|
|
7933
|
+
nextTick(() => {
|
|
7934
|
+
fillingProduct = false;
|
|
7935
|
+
});
|
|
7936
|
+
}
|
|
7937
|
+
}
|
|
7938
|
+
function resolveLotValidateParams(keys, formData, option) {
|
|
7939
|
+
return {
|
|
7940
|
+
product_id_: option?.product_id_ ?? option?._item?.product_id_ ?? (keys.productKey ? formData[keys.productKey] : void 0),
|
|
7941
|
+
material_no_: option?.name_ ?? option?.__VALUE__ ?? (keys.materialNoKey ? formData[keys.materialNoKey] : void 0),
|
|
7942
|
+
material_no_id_: option?.id_ ?? (keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0)
|
|
7943
|
+
};
|
|
7944
|
+
}
|
|
7945
|
+
async function applyConsumeObjectTraceChange(opts) {
|
|
7946
|
+
const { belongingObject, role, formData } = opts;
|
|
7947
|
+
if (!belongingObject || !formData) return {};
|
|
7948
|
+
const keys = resolveObjectFieldKeys({
|
|
7949
|
+
belongingObject,
|
|
7950
|
+
objectFieldList: opts.objectFieldList,
|
|
7951
|
+
fallbackFields: opts.fallbackFields
|
|
7952
|
+
});
|
|
7953
|
+
if (role === FIELD_TYPE.PRODUCT) {
|
|
7954
|
+
if (!("prevProduct" in opts) || fillingProduct) return {};
|
|
7955
|
+
const values = {};
|
|
7956
|
+
if (shouldClearLotOnProductChange({
|
|
7957
|
+
prevProduct: opts.prevProduct,
|
|
7958
|
+
nextProduct: opts.nextValue,
|
|
7959
|
+
lotValue: keys.materialNoKey ? formData[keys.materialNoKey] : void 0
|
|
7960
|
+
})) {
|
|
7961
|
+
Object.assign(values, clearedLotFields(keys.materialNoKey));
|
|
7962
|
+
}
|
|
7963
|
+
if (keys.bomEntryIdKey) {
|
|
7964
|
+
values[keys.bomEntryIdKey] = null;
|
|
7965
|
+
if (!isBlank(opts.nextValue) && opts.formInstBom) {
|
|
7966
|
+
const entry = resolveObjectBomEntry({
|
|
7967
|
+
formInstBom: opts.formInstBom,
|
|
7968
|
+
belongingObject,
|
|
7969
|
+
productId: String(opts.nextValue)
|
|
7970
|
+
});
|
|
7971
|
+
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
opts.rowWriter.patchRow(values, "autofill");
|
|
7975
|
+
const lotValue = keys.materialNoKey ? formData[keys.materialNoKey] : void 0;
|
|
7976
|
+
if (!isBlank(opts.nextValue) && !isBlank(lotValue)) {
|
|
7977
|
+
try {
|
|
7978
|
+
await validateReinspectionDate({
|
|
7979
|
+
product_id_: String(opts.nextValue),
|
|
7980
|
+
material_no_: lotValue,
|
|
7981
|
+
material_no_id_: keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0
|
|
7982
|
+
});
|
|
7983
|
+
} catch (e) {
|
|
7984
|
+
return { abortReinspection: e?.message || String(e) };
|
|
7985
|
+
}
|
|
7986
|
+
}
|
|
7987
|
+
return {};
|
|
7988
|
+
}
|
|
7989
|
+
if (role === FIELD_TYPE.MATERIAL_NO) {
|
|
7990
|
+
if (opts.option?.is_locked_) {
|
|
7991
|
+
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "autofill");
|
|
7992
|
+
return { abortLocked: opts.option.id_ };
|
|
7993
|
+
}
|
|
7994
|
+
const params = resolveLotValidateParams(keys, formData, opts.option);
|
|
7995
|
+
if (isBlank(params.material_no_) && isBlank(params.material_no_id_)) return {};
|
|
7996
|
+
try {
|
|
7997
|
+
await validateReinspectionDate(params);
|
|
7998
|
+
} catch (e) {
|
|
7999
|
+
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "async");
|
|
8000
|
+
return { abortReinspection: e?.message || String(e) };
|
|
8001
|
+
}
|
|
8002
|
+
const values = {};
|
|
8003
|
+
const productId = opts.option?.product_id_ ?? opts.option?._item?.product_id_;
|
|
8004
|
+
if (keys.productKey && !isBlank(productId)) values[keys.productKey] = productId;
|
|
8005
|
+
if (keys.bomEntryIdKey && opts.formInstBom) {
|
|
8006
|
+
if (!isBlank(productId)) {
|
|
8007
|
+
const entry = resolveObjectBomEntry({
|
|
8008
|
+
formInstBom: opts.formInstBom,
|
|
8009
|
+
belongingObject,
|
|
8010
|
+
productId: String(productId)
|
|
8011
|
+
});
|
|
8012
|
+
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
8013
|
+
}
|
|
8014
|
+
}
|
|
8015
|
+
const patchRelatedFields = () => opts.rowWriter.patchRow(values, "autofill");
|
|
8016
|
+
if (keys.productKey && !isBlank(productId)) {
|
|
8017
|
+
runWithFillProduct(patchRelatedFields);
|
|
8018
|
+
} else {
|
|
8019
|
+
patchRelatedFields();
|
|
8020
|
+
}
|
|
8021
|
+
return {};
|
|
8022
|
+
}
|
|
8023
|
+
return {};
|
|
8024
|
+
}
|
|
7880
8025
|
const _hoisted_1$5 = ["data-merge", "data-fill-direction"];
|
|
7881
8026
|
const _hoisted_2$1 = {
|
|
7882
8027
|
key: 0,
|
|
@@ -8197,6 +8342,7 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
|
|
|
8197
8342
|
showDisplayStatus,
|
|
8198
8343
|
dataRelationShip
|
|
8199
8344
|
} = useWidgetStaticAttrs(props.widget);
|
|
8345
|
+
const isMockMaterialConsume = computed(() => !!dataRelationShip?.isMockReport && !!props.widget.props.isMaterialConsumeTable);
|
|
8200
8346
|
const sheetId = () => fields.value?.findWidgetById(props.widget.id)?.sheetId;
|
|
8201
8347
|
const subTableCore = props.subTableCore;
|
|
8202
8348
|
provide(NCB_PROVIDE.SUB_TABLE_CORE, subTableCore);
|
|
@@ -8337,6 +8483,9 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
|
|
|
8337
8483
|
key,
|
|
8338
8484
|
actionValue
|
|
8339
8485
|
}) => {
|
|
8486
|
+
if (isMockMaterialConsume.value && (key === SubTableActionEnum.SCAN || key === SubTableActionEnum.Insert1GroupAfter)) {
|
|
8487
|
+
return;
|
|
8488
|
+
}
|
|
8340
8489
|
switch (key) {
|
|
8341
8490
|
case "insertRowBefore":
|
|
8342
8491
|
handleAddRow({
|
|
@@ -8430,10 +8579,11 @@ const DocumentSubTable = /* @__PURE__ */ defineComponent({
|
|
|
8430
8579
|
showRowWatermark,
|
|
8431
8580
|
rowGroupKey
|
|
8432
8581
|
}) => {
|
|
8433
|
-
const
|
|
8582
|
+
const baseMenus = subTableCore?.calcSubTableActionMenu({
|
|
8434
8583
|
rowData,
|
|
8435
8584
|
showDelBtn
|
|
8436
8585
|
});
|
|
8586
|
+
const menus = isMockMaterialConsume.value ? [getMenuByAction(SubTableActionEnum.SCAN), getMenuByAction(SubTableActionEnum.Insert1GroupAfter), ...baseMenus ?? []] : baseMenus;
|
|
8437
8587
|
const annRowDetails = dataRelationShip?.annRowDetails;
|
|
8438
8588
|
const rowMark = dataIdx !== -1 && annRowDetails?.length ? resolveRowFormChangeMark(field, rowData, annRowDetails) : null;
|
|
8439
8589
|
const rowUi = resolveFormChangeRowUi(rowData, rowMark);
|
|
@@ -8746,7 +8896,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
|
|
|
8746
8896
|
const {
|
|
8747
8897
|
showDisplayStatus,
|
|
8748
8898
|
dataRelationShip
|
|
8749
|
-
} = useWidgetStaticAttrs(props);
|
|
8899
|
+
} = useWidgetStaticAttrs(props.widget);
|
|
8750
8900
|
const sheetId = () => fields.value?.findWidgetById(props.widget.id)?.sheetId;
|
|
8751
8901
|
const formModelController = useFormModel().injectController();
|
|
8752
8902
|
const tableController = props.tableController;
|
|
@@ -8935,6 +9085,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
|
|
|
8935
9085
|
}));
|
|
8936
9086
|
};
|
|
8937
9087
|
const handleAction = (action, rowData) => {
|
|
9088
|
+
if (!tableController.hasFormInstance) return;
|
|
8938
9089
|
switch (action) {
|
|
8939
9090
|
case MaterialConsumeActionType.CONFIRM:
|
|
8940
9091
|
tableController.confirm(rowData);
|
|
@@ -9007,6 +9158,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
|
|
|
9007
9158
|
key,
|
|
9008
9159
|
actionValue
|
|
9009
9160
|
}) => {
|
|
9161
|
+
if (!tableController.hasFormInstance) return;
|
|
9010
9162
|
switch (key) {
|
|
9011
9163
|
case "rowEdit":
|
|
9012
9164
|
await tableController.editRow(rowData);
|
|
@@ -9377,7 +9529,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9377
9529
|
createElementVNode("i", { class: "iconfont icon-zhuyi" }),
|
|
9378
9530
|
createElementVNode("ul", { class: "tips-list" }, [
|
|
9379
9531
|
createElementVNode("li", null, "可将Excel内容粘贴到表格中,支持使用复制、粘贴、删除快捷键"),
|
|
9380
|
-
createElementVNode("li", null, "
|
|
9532
|
+
createElementVNode("li", null, " 表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、批次/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割) ")
|
|
9381
9533
|
])
|
|
9382
9534
|
], -1)),
|
|
9383
9535
|
createElementVNode("div", {
|
|
@@ -9402,7 +9554,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9402
9554
|
};
|
|
9403
9555
|
}
|
|
9404
9556
|
});
|
|
9405
|
-
const FixedQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
9557
|
+
const FixedQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-58540cb3"]]);
|
|
9406
9558
|
const _hoisted_1$1 = {
|
|
9407
9559
|
key: 1,
|
|
9408
9560
|
class: "sub-table-action__subtitle"
|
|
@@ -10104,7 +10256,7 @@ const DocumentPaper = /* @__PURE__ */ defineComponent({
|
|
|
10104
10256
|
}) : null,
|
|
10105
10257
|
// 在[固定表]顶部的可见单元格上加装操作按钮
|
|
10106
10258
|
tableAction: (() => {
|
|
10107
|
-
const fixedTableActionVisible = fixedTableInfo?.quickFillVisible && !filledFixedTableKeys.value.includes(fixedTableInfo.subFieldKey);
|
|
10259
|
+
const fixedTableActionVisible = props.basicInfo.renderModeType !== RenderModeEnum.ViewMode && fixedTableInfo?.quickFillVisible && !filledFixedTableKeys.value.includes(fixedTableInfo.subFieldKey);
|
|
10108
10260
|
return () => fixedTableActionVisible ? createVNode(_sfc_main$2, {
|
|
10109
10261
|
"tdId": tdId,
|
|
10110
10262
|
"formState": formState.value,
|
|
@@ -10175,7 +10327,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10175
10327
|
createElementVNode("i", { class: "iconfont icon-zhuyi" }),
|
|
10176
10328
|
createElementVNode("ul", { class: "tips-list" }, [
|
|
10177
10329
|
createElementVNode("li", null, "可将Excel内容粘贴到表格中,支持使用复制、粘贴、删除快捷键"),
|
|
10178
|
-
createElementVNode("li", null, "
|
|
10330
|
+
createElementVNode("li", null, "表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、批次/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割)"),
|
|
10179
10331
|
createElementVNode("li", null, "当前快速填报最多支持200行")
|
|
10180
10332
|
])
|
|
10181
10333
|
], -1)),
|
|
@@ -10195,7 +10347,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10195
10347
|
};
|
|
10196
10348
|
}
|
|
10197
10349
|
});
|
|
10198
|
-
const DynamicQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
10350
|
+
const DynamicQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-840aca0a"]]);
|
|
10199
10351
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10200
10352
|
__name: "dynamic-table-action",
|
|
10201
10353
|
props: {
|
|
@@ -10279,109 +10431,117 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10279
10431
|
});
|
|
10280
10432
|
const DynamicTableAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-53d7e66c"]]);
|
|
10281
10433
|
export {
|
|
10282
|
-
|
|
10283
|
-
|
|
10434
|
+
setFormulaParamsConfig as $,
|
|
10435
|
+
getObjectBomProductQuery as A,
|
|
10284
10436
|
BorderTD as B,
|
|
10285
|
-
|
|
10437
|
+
normalizeHistoricalAutofillRow as C,
|
|
10286
10438
|
DEFAULT_BOOLEAN_FIELD_WIDTH as D,
|
|
10287
10439
|
EMPTY_PRODUCT_VERSION_ID as E,
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10440
|
+
parseRuntimeFieldPath as F,
|
|
10441
|
+
useStyles as G,
|
|
10442
|
+
useDependency as H,
|
|
10443
|
+
useFieldPresentation as I,
|
|
10444
|
+
useRuntimeEditorFlusher as J,
|
|
10445
|
+
createRuntimeInstanceContext as K,
|
|
10446
|
+
RuntimeInstanceRegistry as L,
|
|
10447
|
+
MAX_RUNTIME_SHEETS as M,
|
|
10296
10448
|
NCB_PROVIDE as N,
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10449
|
+
RequiredQtyCalcRule as O,
|
|
10450
|
+
DocumentPaper as P,
|
|
10451
|
+
DynamicTableAction as Q,
|
|
10300
10452
|
RuntimeFormStateStore as R,
|
|
10301
10453
|
ScanParamType as S,
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10454
|
+
getRuntimeDataFieldId as T,
|
|
10455
|
+
buildRuntimeFieldPath as U,
|
|
10456
|
+
resolveRuntimeFieldProps as V,
|
|
10457
|
+
resolveRuntimeFieldState as W,
|
|
10458
|
+
getRuntimeDependencyOutputKey as X,
|
|
10459
|
+
isRowAddedInCurrentFormChange as Y,
|
|
10460
|
+
MaterialConsumeTableController as Z,
|
|
10309
10461
|
_sfc_main$5 as _,
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10462
|
+
MAX_RUNTIME_SHEET_TITLE_LENGTH as a,
|
|
10463
|
+
normalizeRuntime as a0,
|
|
10464
|
+
RuntimeSheetService as a1,
|
|
10465
|
+
validateObjectBomQtyOnSubmit as a2,
|
|
10466
|
+
closeValidatorPopovers as a3,
|
|
10467
|
+
enrichFormChangeRowDetails as a4,
|
|
10468
|
+
useMaterialBalance as a5,
|
|
10469
|
+
collectFormChangeFieldLocations as a6,
|
|
10470
|
+
nextFormChangeRowViewHistoryId as a7,
|
|
10471
|
+
DeviceConnector as a8,
|
|
10472
|
+
DocumentLoading as a9,
|
|
10473
|
+
pickObjectFieldKeys as aA,
|
|
10474
|
+
recordSubtableRowAdd as aB,
|
|
10475
|
+
recordSubtableRowDelete as aC,
|
|
10476
|
+
resolveAnnotationFieldLocation as aD,
|
|
10477
|
+
resolveFormChangeRowUi as aE,
|
|
10478
|
+
resolveRowFormChangeMark as aF,
|
|
10479
|
+
setSelectMobileTdId as aG,
|
|
10480
|
+
stripLegacyFormConfigFromPaper as aH,
|
|
10481
|
+
SubTableActionMenuTypeEnum as aI,
|
|
10482
|
+
getMenuByAction as aJ,
|
|
10483
|
+
SubTableActionEnum as aK,
|
|
10484
|
+
resolveScanFillData as aL,
|
|
10485
|
+
buildDefaultMapFromProfile as aM,
|
|
10486
|
+
buildFieldStatusFromProfile as aN,
|
|
10487
|
+
getRowHandlersForFieldChange as aO,
|
|
10488
|
+
getInsertSubMenu as aP,
|
|
10489
|
+
resolveScanAdjustType as aQ,
|
|
10490
|
+
resolveScanQty as aR,
|
|
10491
|
+
toDateOnly as aS,
|
|
10492
|
+
hasSubtableBusinessData as aT,
|
|
10493
|
+
getCopySubMenu as aU,
|
|
10494
|
+
resolveScanParsedValue as aV,
|
|
10495
|
+
isProductBatchEmptyRow as aW,
|
|
10496
|
+
DynamicQuickFillModal as aa,
|
|
10497
|
+
FixedQuickFillModal as ab,
|
|
10498
|
+
FormTmplConfigController as ac,
|
|
10499
|
+
LEGACY_RUNTIME_FORM_CONFIG_KEYS as ad,
|
|
10500
|
+
LEGACY_RUNTIME_SHEET_ID as ae,
|
|
10501
|
+
LEGACY_RUNTIME_SHEET_TITLE as af,
|
|
10502
|
+
MCDataUtil as ag,
|
|
10503
|
+
OCR_MODEL_PRECISION_ENUM_KEY as ah,
|
|
10504
|
+
RuntimeAsyncTaskCoordinator as ai,
|
|
10505
|
+
RuntimeDependencyService as aj,
|
|
10506
|
+
RuntimeFieldRegistry as ak,
|
|
10507
|
+
RuntimeInstanceEventBus as al,
|
|
10508
|
+
RuntimePersistenceCoordinator as am,
|
|
10509
|
+
RuntimeValidationService as an,
|
|
10510
|
+
SubTableCore as ao,
|
|
10511
|
+
buildFormChangeDisplayRows as ap,
|
|
10512
|
+
convertV1Runtime as aq,
|
|
10513
|
+
detailsHaveFormChangeRowOps as ar,
|
|
10514
|
+
extractFormChangeRowDetails as as,
|
|
10515
|
+
getFormChangeRowKey as at,
|
|
10516
|
+
getFormChangeRowOp as au,
|
|
10517
|
+
getSubTableQuickFillInfo as av,
|
|
10518
|
+
isAnnLocationSelected as aw,
|
|
10519
|
+
isBlank as ax,
|
|
10520
|
+
isFormChangeGhostRow as ay,
|
|
10521
|
+
normalizeHistoricalFieldConfig as az,
|
|
10522
|
+
bindFormulaCacheInvalidation as b,
|
|
10523
|
+
currentParamsConfig as c,
|
|
10524
|
+
MULTI_SHEET_SCHEMA_VERSION as d,
|
|
10525
|
+
createRuntimeDocumentV2 as e,
|
|
10526
|
+
findFieldProfile as f,
|
|
10367
10527
|
getBusinessFieldKey as g,
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10528
|
+
normalizeHistoricalBusinessRow as h,
|
|
10529
|
+
DeviceLinkTmplUtil as i,
|
|
10530
|
+
normalizeAIOcrTmpl as j,
|
|
10531
|
+
useWidgetStaticAttrs as k,
|
|
10532
|
+
useRuntimeInstanceServices as l,
|
|
10533
|
+
setSelectAnnotationId as m,
|
|
10374
10534
|
normalizeFieldWidth as n,
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10535
|
+
useRuntimeRowState as o,
|
|
10536
|
+
getObjectBomMaterialLotQuery as p,
|
|
10537
|
+
buildObjectLotExtraQuery as q,
|
|
10378
10538
|
resolveObjectFieldKeys as r,
|
|
10379
10539
|
setSelectValidatorId as s,
|
|
10380
|
-
|
|
10540
|
+
MaterialConsumptionPatternEnum as t,
|
|
10381
10541
|
useFormTmplConfig as u,
|
|
10382
10542
|
validateObjectBomForScan as v,
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10543
|
+
resolveObjectBomEntry as w,
|
|
10544
|
+
runWithFillProduct as x,
|
|
10545
|
+
useNocodeFormWidget as y,
|
|
10546
|
+
applyConsumeObjectTraceChange as z
|
|
10387
10547
|
};
|