@gct-paas/excel 0.1.39-beta.0 → 0.1.39-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.
Files changed (104) hide show
  1. package/dist/AntdIcon-DCIaV352.js +1108 -0
  2. package/dist/{BaseComponent-BO75HbkD.js → BaseComponent-Dri2NRAY.js} +2 -2
  3. package/dist/{VueVideoPlayer-C49th9G_.js → VueVideoPlayer-DPJyefX-.js} +2 -2
  4. package/dist/{align-editor-CpscpDxA.js → align-editor-BvGUsoz3.js} +1 -1
  5. package/dist/{barcode-design-CKbMreUi.js → barcode-design-BIAenf34.js} +2 -2
  6. package/dist/base/index.es.js +142 -125
  7. package/dist/{diagonal-design-DEz3_fE8.js → diagonal-design-Bg0Wzojk.js} +2 -2
  8. package/dist/{dynamic-table-action-DFnvJWw-.js → dynamic-table-action-BQfJFJ4j.js} +257 -114
  9. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js} +295 -215
  10. package/dist/{edit.utils-CXmmCnxE-evcsspEJ.js → edit.utils-CXmmCnxE-CvJGxh2v.js} +1 -1
  11. package/dist/excel.css +339 -143
  12. package/dist/{exceljs.min-CXjktZ33.js → exceljs.min-oMo9w3-p.js} +2 -2
  13. package/dist/{font-editor-DAcmrW2A.js → font-editor-JT-C4KUo.js} +3 -3
  14. package/dist/{image-design-BnDK5Jwf.js → image-design-A8_t4F3t.js} +2 -2
  15. package/dist/{index-D06X_Sz7.js → index-1Aq6q-wr.js} +3 -3
  16. package/dist/{index-CQ9v7Q0g.js → index-3clyu1Q_.js} +4 -4
  17. package/dist/{index-BRV9V8ld.js → index-B-Kwr44d.js} +1 -1
  18. package/dist/{index-D72ZxU1B.js → index-B8Vkmyc8.js} +3 -3
  19. package/dist/{index-CXBwY7ba.js → index-BE-3UQG0.js} +5 -4
  20. package/dist/{index-BJj0R1JE.js → index-BLmR9aiG.js} +1 -1
  21. package/dist/{index-DRF0yT-Y.js → index-BUK-p31i.js} +2 -2
  22. package/dist/{index-BA3994iB.js → index-B_GyS-E2.js} +1 -1
  23. package/dist/{index-CNBwsBrN.js → index-Bs8Xs0bo.js} +1 -1
  24. package/dist/{index-CeoXayAy.js → index-C3k8QiLF.js} +2 -2
  25. package/dist/{index-BvYfYS4D.js → index-CISAQtLd.js} +3 -3
  26. package/dist/{index-IAfu2tPO.js → index-CJdwj04Z.js} +1 -1
  27. package/dist/{index-4-w7U148.js → index-CJiOtrhx.js} +2 -2
  28. package/dist/{index-BlZQjpdp.js → index-CRloZ0HP.js} +2 -2
  29. package/dist/{index-BNjowwSy.js → index-CTASuQPn.js} +1 -1
  30. package/dist/{index-D1m06PsY.js → index-Caygbi4F.js} +2 -2
  31. package/dist/{index-DALo6h-z.js → index-CfGLFrkj.js} +1 -1
  32. package/dist/{index-CCNBotX0.js → index-Cls_jFJq.js} +26025 -25798
  33. package/dist/{index-kQi_q492.js → index-Cqcbgcw7.js} +2 -2
  34. package/dist/{index-BH4YqNzS.js → index-D1jXU0ka.js} +2 -2
  35. package/dist/{index-BRKs8S7h.js → index-D9444n1O.js} +2 -2
  36. package/dist/{index-D9SThznm.js → index-D9OUmbBs.js} +1 -1
  37. package/dist/{index-qKN7-uGo.js → index-DERot0lx.js} +3 -3
  38. package/dist/{index-vOd76hbp.js → index-DFNVqlgA.js} +1 -1
  39. package/dist/{index-DScv6Lhe.js → index-DIythXNr.js} +3 -3
  40. package/dist/{index-DWPgvBzt.js → index-DPHGDezJ.js} +1 -1
  41. package/dist/{index-H2lP-HBC.js → index-DT8qwYke.js} +2 -2
  42. package/dist/{index-C8AH07MC.js → index-DWVhXPb-.js} +2 -2
  43. package/dist/{index-KnPqm-JT.js → index-DY7Xkd8n.js} +2 -2
  44. package/dist/{index-BlFNgjr-.js → index-DkwkBWEP.js} +2 -2
  45. package/dist/{index-Dn7Za3rP.js → index-DmBx27M9.js} +2 -2
  46. package/dist/{index-ywxJkkJ_.js → index-DsLZqLga.js} +2 -2
  47. package/dist/{index-B0o6GTve.js → index-H2nF4SP8.js} +2 -2
  48. package/dist/{index-DUgFd0ON.js → index-afC-rHNa.js} +2 -2
  49. package/dist/{index-BVCrUywZ.js → index-bH6ERrWd.js} +2 -2
  50. package/dist/index.es.js +2 -2
  51. package/dist/{mb-render-jAsNtPqY.js → mb-render-DybPk-KF.js} +2 -2
  52. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CqKkoSRa.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BEX02BrW.js} +4 -1034
  53. package/dist/{pagination-design-6xxPBIk-.js → pagination-design-Ct6xpKO9.js} +2 -2
  54. package/dist/paper-widget-design-CEEWgUk_.js +4 -0
  55. package/dist/{print-runtime-instance-D8QAHAsd.js → print-runtime-instance-7aZCZWS4.js} +1 -1
  56. package/dist/{print-snapshot-renderer-BDrHYena.js → print-snapshot-renderer-DPFZBXE2.js} +3 -3
  57. package/dist/{qrcode-design-CBDd-S2d.js → qrcode-design-SOVTkKjY.js} +1 -1
  58. package/dist/{revo-grid.entry-Bygattd8.js → revo-grid.entry-EvEm_y2W.js} +1 -1
  59. package/dist/{revogr-attribution_7.entry-BqzhD1hP.js → revogr-attribution_7.entry-DgE6PR1L.js} +3 -3
  60. package/dist/{revogr-clipboard_3.entry-Wr7KhnJ_.js → revogr-clipboard_3.entry-CNDxeVhF.js} +2 -2
  61. package/dist/{revogr-data_4.entry-CrFW39f1.js → revogr-data_4.entry-DKwV9DMF.js} +2 -2
  62. package/dist/{revogr-filter-panel.entry-9khS41SL.js → revogr-filter-panel.entry-1SAhHHfl.js} +1 -1
  63. package/dist/seal-design-DukOrO2g.js +4 -0
  64. package/dist/{serialnumber-design-eXgfrjw9.js → serialnumber-design-Cs3B0ZNE.js} +1 -1
  65. package/dist/shared/index.es.js +6 -6
  66. package/dist/{single-field-drop-1eS6_6ko.js → single-field-drop-C-i51iU4.js} +3 -3
  67. package/dist/{size-editor-OEPrJU0W.js → size-editor-B2TfX4_r.js} +1 -1
  68. package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +1 -0
  69. package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +6 -2
  70. package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +2 -0
  71. package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +2 -0
  72. package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -1
  73. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -0
  74. package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +1 -0
  75. package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +11 -2
  76. package/dist/src/nocode-base/src/types/fields/i-sign.d.ts +1 -1
  77. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +1 -1
  78. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +1 -1
  79. package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +3 -0
  80. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +9 -9
  81. package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +5 -3
  82. package/dist/src/shared/components/Signature/logic/index.d.ts +1 -1
  83. package/dist/{sub-table-factory-D8KUikPE.js → sub-table-factory-CNkIUJTC.js} +20 -7
  84. package/dist/{text-design-BkvEuU7u.js → text-design-B-VmJzZy.js} +2 -2
  85. package/dist/{throttle-Cpk1LoGk-DxTostCa.js → throttle-Cpk1LoGk-Ch-cqj2G.js} +1 -1
  86. package/dist/{timediff-design-BFf9WtJn.js → timediff-design-DASqeRcJ.js} +1 -1
  87. package/dist/{trace-like-wrapper-SPo5HVCt.js → trace-like-wrapper-Cj-nluW3.js} +2 -2
  88. package/dist/{value-editor.vue_vue_type_style_index_0_lang-BzVvcoTa.js → value-editor.vue_vue_type_style_index_0_lang-D5fckkvA.js} +2 -2
  89. package/dist/web-render/index.es.js +3 -3
  90. package/dist/{widget-barcode-B_aUPEfd.js → widget-barcode-BOseDEJ_.js} +4 -4
  91. package/dist/{widget-diagonal-D32J64HV.js → widget-diagonal-CzWRf_zr.js} +4 -4
  92. package/dist/{widget-image-BOOWwiSe.js → widget-image-CNtyaz7J.js} +5 -5
  93. package/dist/{widget-line-xVHcCE1_.js → widget-line-CrOS0l_-.js} +2 -2
  94. package/dist/{widget-pagination-B0Bq_gL5.js → widget-pagination-wCWG30o6.js} +5 -5
  95. package/dist/{widget-power-TNCB2u1G.js → widget-power-ayN9em_Q.js} +4 -4
  96. package/dist/{widget-qrcode-gVSwYuKp.js → widget-qrcode-CZatrCp4.js} +3 -3
  97. package/dist/{widget-rangelimit-BO7Z_5N9.js → widget-rangelimit-CzboyNIZ.js} +4 -4
  98. package/dist/{widget-serialnumber-BX83djNf.js → widget-serialnumber-CHCW116y.js} +1 -1
  99. package/dist/{widget-text-CIqov_wj.js → widget-text-rVl_vy60.js} +5 -5
  100. package/dist/{widget-timediff-kFxxm2hM.js → widget-timediff-BhTa83S9.js} +2 -2
  101. package/package.json +1 -1
  102. package/dist/paper-widget-design-CUk1634i.js +0 -4
  103. package/dist/seal-design-DNrW57Za.js +0 -4
  104. package/dist/use-namespace-BxkK4ofX.js +0 -77
@@ -1,6 +1,6 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-DFnvJWw-.js";
1
+ import { n as normalizeFieldWidth } from "./dynamic-table-action-BQfJFJ4j.js";
2
2
  import { get, pick } from "lodash-es";
3
- import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
3
+ import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
4
4
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
5
5
  const DESIGNER_DEFAULT_TYPES = /* @__PURE__ */ new Set([
6
6
  FIELD_TYPE.DEVICE,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toRaw, shallowRef, computed, ref, readonly, onMounted, watch, normalizeClass, onBeforeUnmount, h as h$1, watchEffect, unref, createVNode, reactive } from "vue";
2
- import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
3
- import { r as require$$0 } from "./index-CXBwY7ba.js";
2
+ import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
3
+ import { r as require$$0 } from "./index-BE-3UQG0.js";
4
4
  var window_1;
5
5
  var hasRequiredWindow;
6
6
  function requireWindow() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
- import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
2
+ import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
3
3
  const _hoisted_1 = { class: "align-group-box" };
4
4
  const _hoisted_2 = ["onClick"];
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-CCNBotX0.js";
4
- import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-Cls_jFJq.js";
4
+ import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
7
7
  const _hoisted_1 = { class: "wrapper" };
@@ -1,13 +1,13 @@
1
- import { E as api, $ as PlatformEnum, F as FIELD_TYPE, bi as getRowId, bj as findRuntimeTableRow, b8 as RenderModeEnum, C as ComponentTypeEnum, bv as assembleRules, bw as isAttachFieldActive, aI as Dependency_ENUM, bk as calculateFormula, aH as ASSIGNMENTSTRATEGY_ENUM, R as getParseFormulaVarInfos, bx as fetchHistoryConsume, by as isBomGranted, aW as renderUtils, bu as uuid2, bz as parseFrontConfig, aL as CheckDsTypeEnum, aF as transformUtils, bA as baseDataUtils, bB as initializeSealFields, Y as FormTypeEnum, bC as normalizeToArray, bD as safeParseArray, bE as BpmnNodeTypeEnum, bF as mergeByMultiKey, a8 as _export_sfc, bG as evaluateInspectionDecisionRule, bH as areValidationCommentsEqual, bI as useNocodeEmitter, bJ as commonUtils, aJ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
2
- import { aO, aQ, a$, a1, bK, bL, B, bM, y, ai, bN, bO, bP, bh, bQ, aT, ay, aP, aM, aN, bR, aj, an, bS, bT, aG, a3, ah, az, aR, a0, al, L, bU, bV, O, p, P, aa, o, Q, A, bW, bX, ax, aw, a6, a2, a4, a5, a7, f, bY, am, aq, ak, bZ, b_, b$, c0, bg, c1, c2, c3, c4, c5, c6, c7, c8, bl, c9, ca, aZ, cb, b0, b1, cc, cd, ce, cf, cg, ch, ci, cj, ck, aY, cl, b2, be, cm, cn, co, ao, t, aS, cp, cq, bm, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
3
- import { L as getRuntimeDataFieldId, x as parseRuntimeFieldPath, O as buildRuntimeFieldPath, P as resolveRuntimeFieldProps, Q as resolveRuntimeFieldState, T as getRuntimeDependencyOutputKey, U as isRowAddedInCurrentFormChange, l as MaterialConsumptionPatternEnum, V as MaterialConsumeTableController, W as setFormulaParamsConfig, X as normalizeRuntime, F as createRuntimeInstanceContext, R as RuntimeFormStateStore, Y as RuntimeSheetService, g as getBusinessFieldKey, Z as validateObjectBomQtyOnSubmit, $ as closeValidatorPopovers, a0 as enrichFormChangeRowDetails, N as NCB_PROVIDE, G as RuntimeInstanceRegistry, a1 as useMaterialBalance, a2 as collectFormChangeFieldLocations, a3 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-DFnvJWw-.js";
4
- import { B as B2, a4 as a42, b, _, a5 as a52, J, a6 as a62, K, E, a7 as a72, a8, a9, aa as aa2, ab, ac, M, ad, ae, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, q, al as al2, k, am as am2, c, an as an2, ao as ao2, ap, aq as aq2, j, t as t2, ar, as, at, au, d, w, a, av, aw as aw2, ax as ax2, ay as ay2, az as az2, aA, m, r, aB, o as o2, h, aC, s, aD, z, A as A2, u, p as p2, C, f as f2, i, y as y2, e, v } from "../dynamic-table-action-DFnvJWw-.js";
1
+ import { E as api, $ as PlatformEnum, F as FIELD_TYPE, bi as getRowId, bj as findRuntimeTableRow, b8 as RenderModeEnum, C as ComponentTypeEnum, bv as assembleRules, bw as isAttachFieldActive, aI as Dependency_ENUM, bk as calculateFormula, aH as ASSIGNMENTSTRATEGY_ENUM, R as getParseFormulaVarInfos, bx as fetchHistoryConsume, by as isBomGranted, aW as renderUtils, bu as uuid2, bz as parseFrontConfig, aL as CheckDsTypeEnum, aF as transformUtils, bA as baseDataUtils, bB as initializeSealFields, Y as FormTypeEnum, bC as normalizeToArray, bD as safeParseArray, bE as BpmnNodeTypeEnum, bF as mergeByMultiKey, a8 as _export_sfc, bG as evaluateInspectionDecisionRule, bH as areValidationCommentsEqual, bI as useNocodeEmitter, bJ as commonUtils, aJ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
2
+ import { aO, aQ, a$, a1, bK, bL, B, bM, y, ai, bN, bO, bP, bh, bQ, aT, ay, aP, aM, aN, bR, aj, an, bS, bT, aG, a3, ah, az, aR, a0, al, L, bU, bV, bW, O, p, P, aa, o, Q, A, bX, bY, ax, aw, a6, a2, a4, a5, a7, f, bZ, am, aq, ak, b_, b$, c0, c1, bg, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, bl, cc, cd, aZ, ce, b0, b1, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, aY, cp, b2, be, cq, cr, cs, ao, t, aS, ct, cu, bm, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
3
+ import { P as getRuntimeDataFieldId, z as parseRuntimeFieldPath, Q as buildRuntimeFieldPath, T as resolveRuntimeFieldProps, U as resolveRuntimeFieldState, V as getRuntimeDependencyOutputKey, W as isRowAddedInCurrentFormChange, o as MaterialConsumptionPatternEnum, X as MaterialConsumeTableController, Y as setFormulaParamsConfig, Z as normalizeRuntime, H as createRuntimeInstanceContext, R as RuntimeFormStateStore, $ as RuntimeSheetService, g as getBusinessFieldKey, a0 as validateObjectBomQtyOnSubmit, a1 as closeValidatorPopovers, a2 as enrichFormChangeRowDetails, N as NCB_PROVIDE, I as RuntimeInstanceRegistry, a3 as useMaterialBalance, a4 as collectFormChangeFieldLocations, a5 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-BQfJFJ4j.js";
4
+ import { B as B2, a6 as a62, e, _, a7 as a72, L as L2, a8, O as O2, E, a9, aa as aa2, ab, ac, ad, M, a, ae, b, af, ag, ah as ah2, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, w, an as an2, m, ao as ao2, c, ap, aq as aq2, ar, as, l, x, at, au, av, aw as aw2, f as f2, y as y2, d, ax as ax2, ay as ay2, az as az2, aA, aB, aC, p as p2, r, aD, q, j, aE, s, aF, C, F, u, t as t2, G, i, k, A as A2, h, v } from "../dynamic-table-action-BQfJFJ4j.js";
5
5
  import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, ref, provide, onUnmounted, markRaw, reactive, onBeforeUnmount } from "vue";
6
6
  import { cloneDeep, defaults, isEmpty, merge } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-D8KUikPE.js";
9
- import { A as A3, D, M as M2, a as a10, P as P2, b as b3, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-D8KUikPE.js";
10
- import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-jAsNtPqY.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-CNkIUJTC.js";
9
+ import { A as A3, D, M as M2, a as a10, P as P2, b as b3, c as c10, d as d2, e as e2, W, f as f3, g, h as h2 } from "../sub-table-factory-CNkIUJTC.js";
10
+ import { B as B3, F as F2, M as M3, a as a11, u as u2 } from "../mb-render-DybPk-KF.js";
11
11
  const InstanceStatusValues = {
12
12
  /** 作废状态 */
13
13
  ABANDON: "ABANDON",
@@ -190,7 +190,7 @@ class RuntimeFieldInitializer {
190
190
  await Promise.resolve();
191
191
  this.scheduled = false;
192
192
  if (!signal.aborted && !this.disposed) await this.initialize();
193
- }).catch((error) => console.error("业务字段初始化失败", error)).finally(() => this.tasks.delete("initialize:structure"));
193
+ }).catch(() => void 0).finally(() => this.tasks.delete("initialize:structure"));
194
194
  });
195
195
  }
196
196
  record;
@@ -203,7 +203,7 @@ class RuntimeFieldInitializer {
203
203
  disposed = false;
204
204
  scheduled = false;
205
205
  unsubscribe;
206
- /** 初次加载等待全部目标;失败保留在任务中心,不能把未完成的默认值当成可提交数据。 */
206
+ /** 初次加载等待全部目标;默认值请求失败保留在任务中心供诊断,但不阻止提交。 */
207
207
  async initialize() {
208
208
  if (this.disposed || this.info.renderPurpose || this.info.platformType === PlatformEnum.INTEGRATION_PAAS_DP)
209
209
  return;
@@ -247,7 +247,8 @@ class RuntimeFieldInitializer {
247
247
  modelKey: props.modelKey,
248
248
  subModelKey: props.subModelKey
249
249
  },
250
- sheetId
250
+ sheetId,
251
+ blockOnFailure: false
251
252
  }
252
253
  ).finally(() => this.tasks.delete(key));
253
254
  pending.push(task);
@@ -259,7 +260,7 @@ class RuntimeFieldInitializer {
259
260
  this.record.asyncTasks.cancel(key);
260
261
  this.tasks.delete(key);
261
262
  }
262
- await Promise.all(pending);
263
+ await Promise.allSettled(pending);
263
264
  }
264
265
  request(key, fetch) {
265
266
  const existing = this.requests.get(key);
@@ -1070,27 +1071,23 @@ function mergeCheckTableConfig(current, next) {
1070
1071
  if (!Object.keys(result.byTable ?? {}).length) delete result.byTable;
1071
1072
  return result;
1072
1073
  }
1073
- function assertUniqueFieldLocations(locations, sheetTitleMap) {
1074
+ function collectDuplicateFieldWarnings(locations, sheetTitleMap) {
1074
1075
  const fieldLocationMap = /* @__PURE__ */ new Map();
1075
1076
  locations.forEach((location) => {
1076
1077
  if (!location.placement) return;
1077
1078
  const fieldKey = getBusinessFieldKey(location);
1078
- const previous = fieldLocationMap.get(fieldKey);
1079
- if (previous) {
1080
- const modelKey = location.subModelKey ?? location.modelKey;
1081
- const fieldName = modelKey ? `${modelKey}.${location.fieldId}` : location.fieldId;
1082
- if (previous.sheetId === location.sheetId) {
1083
- throw new Error(
1084
- `字段「${fieldName}」在工作表「${sheetTitleMap.get(location.sheetId)}」中存在多个位置(${previous.nodeId ?? "未知位置"}、${location.nodeId ?? "未知位置"})`
1085
- );
1086
- }
1087
- throw new Error(
1088
- `字段「${fieldName}」在工作表「${sheetTitleMap.get(
1089
- previous.sheetId
1090
- )}」和「${sheetTitleMap.get(location.sheetId)}」中重复使用`
1091
- );
1092
- }
1093
- fieldLocationMap.set(fieldKey, location);
1079
+ const entries = fieldLocationMap.get(fieldKey) ?? [];
1080
+ entries.push(location);
1081
+ fieldLocationMap.set(fieldKey, entries);
1082
+ });
1083
+ return Array.from(fieldLocationMap.values()).filter((entries) => entries.length > 1).map((entries) => {
1084
+ const first = entries[0];
1085
+ const modelKey = first.subModelKey ?? first.modelKey;
1086
+ const fieldName = modelKey ? `${modelKey}.${first.fieldId}` : first.fieldId;
1087
+ const sheets = Array.from(
1088
+ new Set(entries.map((entry) => `「${sheetTitleMap.get(entry.sheetId) ?? entry.sheetId}」`))
1089
+ );
1090
+ return `字段「${fieldName}」在工作表${sheets.join("、")}有 ${entries.length} 个填报位置`;
1094
1091
  });
1095
1092
  }
1096
1093
  function assertUniqueSubTableOwnership(sheets) {
@@ -1186,7 +1183,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1186
1183
  sheetEntries.flatMap((entry) => entry.subTableInfo),
1187
1184
  (item) => `${item.field}:${item.key}:${item.subType ?? ""}`
1188
1185
  );
1189
- assertUniqueFieldLocations(
1186
+ runtimeContext.duplicateFieldWarnings = collectDuplicateFieldWarnings(
1190
1187
  fieldInfoMap.fieldLocations,
1191
1188
  new Map(sheetEntries.map((entry) => [entry.sheet.sheetId, entry.sheet.title]))
1192
1189
  );
@@ -1546,6 +1543,18 @@ function bindRuntimeBusinessServices(runtimeRegistry, record, dataStatus) {
1546
1543
  uniqueId,
1547
1544
  () => MaterialConsumeTableController.render?.destroyAllModals(uniqueId)
1548
1545
  );
1546
+ runtimeRegistry.registerDisposable(
1547
+ uniqueId,
1548
+ watch(
1549
+ () => record.context.activeSheetId,
1550
+ (next, previous) => {
1551
+ if (next !== previous) {
1552
+ MaterialConsumeTableController.render?.destroyAllModals(uniqueId);
1553
+ }
1554
+ },
1555
+ { flush: "sync" }
1556
+ )
1557
+ );
1549
1558
  if (!mcList.length) return;
1550
1559
  const tmplBomC = record.context.services.tmplBomController;
1551
1560
  if (!tmplBomC) return;
@@ -1846,7 +1855,7 @@ function createRuntimePersistenceAccess(runtimeRegistry, props, payload) {
1846
1855
  if (saveToken ? !runtimeRecord.persistence.completeSave(saveToken) : requestedRevision !== runtimeRecord.formState.revision) {
1847
1856
  return false;
1848
1857
  }
1849
- runtimeRecord.formState.patch(idsFormState, "restore");
1858
+ runtimeRecord.formState.patchSavedMetadata(idsFormState);
1850
1859
  if (!runtimeRecord.formState.dirty) payload.onFormStateReady?.(runtimeRecord.formState);
1851
1860
  return true;
1852
1861
  };
@@ -2082,7 +2091,9 @@ function createRuntimeValidationBinding(runtimeRegistry, getInfo, platformType)
2082
2091
  if (!isCurrent() || runtimeRegistry.get(uniqueId) !== record) return;
2083
2092
  await record.validation.settleAfterModeSwitch(mode === RenderModeEnum.FormMode);
2084
2093
  }).catch((error) => {
2085
- if (runtimeRegistry.get(uniqueId) === record) console.error("表单模式准备失败", error);
2094
+ if (runtimeRegistry.get(uniqueId) !== record) return;
2095
+ if (error instanceof Error && error.message.startsWith("以下异步任务执行失败:")) return;
2096
+ console.error("表单模式准备失败", error);
2086
2097
  });
2087
2098
  }
2088
2099
  async function prepareInitialView(record) {
@@ -3084,19 +3095,19 @@ export {
3084
3095
  aT as DateFormat,
3085
3096
  ay as DecimalDisplayMode,
3086
3097
  aP as DenoiseMethodOptions,
3087
- a42 as DeviceConnector,
3098
+ a62 as DeviceConnector,
3088
3099
  aM as DeviceLink,
3089
- b as DeviceLinkTmplUtil,
3100
+ e as DeviceLinkTmplUtil,
3090
3101
  aN as DeviceParamsTypeTitle,
3091
3102
  D as DevicePartConsumeTableCore,
3092
3103
  bR as DeviceStatus,
3093
3104
  aj as DiagonalDirection,
3094
3105
  an as DiagonalVertex,
3095
3106
  _ as DocumentLayout,
3096
- a52 as DocumentLoading,
3097
- J as DocumentPaper,
3098
- a62 as DynamicQuickFillModal,
3099
- K as DynamicTableAction,
3107
+ a72 as DocumentLoading,
3108
+ L2 as DocumentPaper,
3109
+ a8 as DynamicQuickFillModal,
3110
+ O2 as DynamicTableAction,
3100
3111
  bS as EBR_PROVIDE_ENUM,
3101
3112
  bT as EFieldBizTypeEnum,
3102
3113
  E as EMPTY_PRODUCT_VERSION_ID,
@@ -3104,34 +3115,37 @@ export {
3104
3115
  a3 as FallbackSignTypeEnum,
3105
3116
  ah as FieldSysVarDefaultValueEnum,
3106
3117
  FillingTypeEnum,
3107
- a72 as FixedQuickFillModal,
3118
+ a9 as FixedQuickFillModal,
3108
3119
  FormAnnotationController,
3109
- F as FormModelController,
3120
+ F2 as FormModelController,
3110
3121
  FormTmplBomController,
3111
- a8 as FormTmplConfigController,
3122
+ aa2 as FormTmplConfigController,
3112
3123
  FormTypeEnum,
3113
3124
  az as ImageDisplayModeEnum,
3114
3125
  InstanceStatusValues,
3115
3126
  aR as JoinModelTypeEum,
3116
- a9 as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3117
- aa2 as LEGACY_RUNTIME_SHEET_ID,
3118
- ab as LEGACY_RUNTIME_SHEET_TITLE,
3127
+ ab as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
3128
+ ac as LEGACY_RUNTIME_SHEET_ID,
3129
+ ad as LEGACY_RUNTIME_SHEET_TITLE,
3119
3130
  a0 as LabelPosition,
3120
3131
  al as LineDirection,
3121
3132
  L as LineType,
3133
+ bU as MAX_FRONT_ROW_KEY_LENGTH,
3134
+ M as MAX_RUNTIME_SHEETS,
3135
+ a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
3122
3136
  M3 as MBRender,
3123
- ac as MCDataUtil,
3137
+ ae as MCDataUtil,
3124
3138
  a11 as MCRender,
3125
- M as MULTI_SHEET_SCHEMA_VERSION,
3139
+ b as MULTI_SHEET_SCHEMA_VERSION,
3126
3140
  MaterialConsumeTableController,
3127
3141
  MaterialConsumptionPatternEnum,
3128
3142
  M2 as MaterialRequisitionTableCore,
3129
3143
  MaterialStatusEnum,
3130
3144
  a10 as MaterialSubstitutionTableCore,
3131
- bU as MobileFillTypeEnum,
3145
+ bV as MobileFillTypeEnum,
3132
3146
  NCB_PROVIDE,
3133
- ad as OCR_MODEL_PRECISION_ENUM_KEY,
3134
- bV as OfficeTypeEnum,
3147
+ af as OCR_MODEL_PRECISION_ENUM_KEY,
3148
+ bW as OfficeTypeEnum,
3135
3149
  O as Orientation,
3136
3150
  p as PageSizeEnum,
3137
3151
  P as PaginationFormat,
@@ -3141,24 +3155,24 @@ export {
3141
3155
  A as ParamModelTypeEnum,
3142
3156
  P2 as PartStocktakeTableCore,
3143
3157
  PlatformEnum,
3144
- bW as PosEnum,
3158
+ bX as PosEnum,
3145
3159
  b3 as PretreatmentListTableCore,
3146
3160
  c10 as ProfileDrivenSubTableCore,
3147
- bX as RUNTIME_COLUMN_ROW_KEY,
3161
+ bY as RUNTIME_COLUMN_ROW_KEY,
3148
3162
  ax as RangeCompareOp,
3149
3163
  aw as RangeValidateMode,
3150
3164
  RenderModeEnum,
3151
- ae as RuntimeAsyncTaskCoordinator,
3152
- af as RuntimeDependencyService,
3153
- ag as RuntimeFieldRegistry,
3165
+ ag as RuntimeAsyncTaskCoordinator,
3166
+ ah2 as RuntimeDependencyService,
3167
+ ai2 as RuntimeFieldRegistry,
3154
3168
  RuntimeFormStateStore,
3155
3169
  RuntimeInstanceController,
3156
- ah2 as RuntimeInstanceEventBus,
3170
+ aj2 as RuntimeInstanceEventBus,
3157
3171
  RuntimeInstanceRegistry,
3158
- ai2 as RuntimePersistenceCoordinator,
3172
+ ak2 as RuntimePersistenceCoordinator,
3159
3173
  RuntimeRuleCompiler,
3160
3174
  RuntimeSheetService,
3161
- aj2 as RuntimeValidationService,
3175
+ al2 as RuntimeValidationService,
3162
3176
  a6 as SignShowTypeEnum,
3163
3177
  a2 as SignatureImageDirectionEnum,
3164
3178
  a4 as SignatureNumberTypeEnum,
@@ -3166,10 +3180,10 @@ export {
3166
3180
  a7 as SignatureTypeEnum,
3167
3181
  d2 as SterilizeBatchTableCore,
3168
3182
  e2 as StocktakeTableCore,
3169
- ak2 as SubTableCore,
3183
+ am2 as SubTableCore,
3170
3184
  SubTableCoreFactory,
3171
3185
  f as SubTableType,
3172
- bY as SummaryApproveHisTypeEnum,
3186
+ bZ as SummaryApproveHisTypeEnum,
3173
3187
  am as TimeDiffFormat,
3174
3188
  aq as ViewTypeEnum,
3175
3189
  W as WarehouseInTableCore,
@@ -3177,126 +3191,129 @@ export {
3177
3191
  g as WarehouseOutTableCore,
3178
3192
  h2 as WarehouseOutboundTableCore,
3179
3193
  ak as WidgetImageSizeMode,
3180
- bZ as applyCheckDsDataToRuntime,
3181
- q as applyConsumeObjectTraceChange,
3182
- b_ as applyMedProCheckDsDataToRuntime,
3194
+ b_ as applyCheckDsDataToRuntime,
3195
+ w as applyConsumeObjectTraceChange,
3196
+ b$ as applyMedProCheckDsDataToRuntime,
3183
3197
  baseDataUtils,
3184
- b$ as bindRuntimeTableColumns,
3185
- c0 as buildDeviceBaseQuery,
3198
+ c0 as bindRuntimeTableColumns,
3199
+ c1 as buildDeviceBaseQuery,
3186
3200
  bg as buildDeviceFilterQuery,
3187
- al2 as buildFormChangeDisplayRows,
3188
- k as buildObjectLotExtraQuery,
3201
+ an2 as buildFormChangeDisplayRows,
3202
+ m as buildObjectLotExtraQuery,
3189
3203
  buildRuntimeFieldPath,
3190
- c1 as calcFillData,
3191
- c2 as calcUtils,
3204
+ c2 as calcFillData,
3205
+ c3 as calcUtils,
3192
3206
  calculateFormula,
3193
3207
  collectAnnotationItemsByLocation,
3194
3208
  collectFormChangeFieldLocations,
3195
3209
  commonUtils,
3196
3210
  convertHistoricalAnnotationLocation,
3197
- am2 as convertV1Runtime,
3211
+ ao2 as convertV1Runtime,
3198
3212
  c as createRuntimeDocumentV2,
3199
3213
  createRuntimeInstanceContext,
3200
- an2 as detailsHaveFormChangeRowOps,
3214
+ c4 as decodeTableCellRowKey,
3215
+ ap as detailsHaveFormChangeRowOps,
3216
+ c5 as encodeTableCellRowKey,
3201
3217
  enrichFormChangeRowDetails,
3202
- c3 as ensureFrontRowKey,
3203
- c4 as ensureTableRowKeys,
3204
- ao2 as extractFormChangeRowDetails,
3205
- c5 as extractKeywordFromQueryData,
3206
- c6 as fetchCheckDsDataForTable,
3207
- c7 as fetchCustomCheckDsData,
3218
+ c6 as ensureFrontRowKey,
3219
+ c7 as ensureTableRowKeys,
3220
+ aq2 as extractFormChangeRowDetails,
3221
+ c8 as extractKeywordFromQueryData,
3222
+ c9 as fetchCheckDsDataForTable,
3223
+ ca as fetchCustomCheckDsData,
3208
3224
  fetchHistoryConsume,
3209
- c8 as fetchMedProCheckDsData,
3225
+ cb as fetchMedProCheckDsData,
3210
3226
  fetchOperationReceiveQty,
3211
3227
  fetchUdi,
3212
3228
  filterAnnotationItemsUpToCurrent,
3213
3229
  bl as findRuntimeParentRow,
3214
- c9 as findRuntimeTableCell,
3230
+ cc as findRuntimeTableCell,
3215
3231
  findRuntimeTableRow,
3216
3232
  getAppInfo,
3217
3233
  getBusinessFieldKey,
3218
- ca as getCheckTableSnapshotKey,
3219
- ap as getFormChangeRowKey,
3220
- aq2 as getFormChangeRowOp,
3234
+ cd as getCheckTableSnapshotKey,
3235
+ ar as getFormChangeRowKey,
3236
+ as as getFormChangeRowOp,
3221
3237
  aZ as getLotLockedReason,
3222
- j as getObjectBomMaterialLotQuery,
3223
- t2 as getObjectBomProductQuery,
3238
+ l as getObjectBomMaterialLotQuery,
3239
+ x as getObjectBomProductQuery,
3224
3240
  getParseFormulaVarInfos,
3225
- cb as getParseRuleConfig,
3241
+ ce as getParseRuleConfig,
3226
3242
  b0 as getParseRuleInfo,
3227
3243
  b1 as getParseRuleValue,
3228
- cc as getReinspectionDate,
3229
- cd as getRenderedRuntimeTableCell,
3244
+ cf as getReinspectionDate,
3245
+ cg as getRenderedRuntimeTableCell,
3230
3246
  getRuntimeDataFieldId,
3231
3247
  getRuntimeDependencyOutputKey,
3232
- ar as getSubTableQuickFillInfo,
3248
+ at as getSubTableQuickFillInfo,
3233
3249
  getSuiteKey,
3234
- ce as handleOldConfig,
3235
- cf as hasAnyCheckTableSnapshot,
3236
- cg as hasByTableCheckTableSnapshot,
3237
- ch as hasSharedCheckTableSnapshot,
3238
- as as isAnnLocationSelected,
3239
- at as isBlank,
3250
+ ch as handleOldConfig,
3251
+ ci as hasAnyCheckTableSnapshot,
3252
+ cj as hasByTableCheckTableSnapshot,
3253
+ ck as hasSharedCheckTableSnapshot,
3254
+ au as isAnnLocationSelected,
3255
+ av as isBlank,
3240
3256
  isBomGranted,
3241
3257
  isEdhrSuite,
3242
3258
  isEqmSuite,
3243
- au as isFormChangeGhostRow,
3244
- ci as isMedProSuite,
3259
+ aw2 as isFormChangeGhostRow,
3260
+ cl as isMedProSuite,
3245
3261
  isRowAddedInCurrentFormChange,
3246
- cj as jsonSchemaUtils,
3247
- ck as judgeUnique,
3262
+ cm as isTableRowKeyMatch,
3263
+ cn as jsonSchemaUtils,
3264
+ co as judgeUnique,
3248
3265
  aY as materialCheck,
3249
- cl as migrateDiagonalDirectionToVertex,
3266
+ cp as migrateDiagonalDirectionToVertex,
3250
3267
  nextFormChangeRowViewHistoryId,
3251
- d as normalizeAIOcrTmpl,
3252
- w as normalizeHistoricalAutofillRow,
3253
- a as normalizeHistoricalBusinessRow,
3254
- av as normalizeHistoricalFieldConfig,
3268
+ f2 as normalizeAIOcrTmpl,
3269
+ y2 as normalizeHistoricalAutofillRow,
3270
+ d as normalizeHistoricalBusinessRow,
3271
+ ax2 as normalizeHistoricalFieldConfig,
3255
3272
  b2 as normalizeRefLoaderResult,
3256
3273
  normalizeRuntime,
3257
3274
  parseFrontConfig,
3258
3275
  parseRuntimeFieldPath,
3259
3276
  parseUdi,
3260
- aw2 as pickObjectFieldKeys,
3261
- ax2 as recordSubtableRowAdd,
3262
- ay2 as recordSubtableRowDelete,
3277
+ ay2 as pickObjectFieldKeys,
3278
+ az2 as recordSubtableRowAdd,
3279
+ aA as recordSubtableRowDelete,
3263
3280
  be as refUtils,
3264
- cm as relocateDeletedRowsToEnd,
3281
+ cq as relocateDeletedRowsToEnd,
3265
3282
  renderUtils,
3266
- cn as requestMedProCheckDsData,
3267
- co as requestNonMedProCheckDsData,
3268
- az2 as resolveAnnotationFieldLocation,
3283
+ cr as requestMedProCheckDsData,
3284
+ cs as requestNonMedProCheckDsData,
3285
+ aB as resolveAnnotationFieldLocation,
3269
3286
  ao as resolveDiagonalVertex,
3270
3287
  t as resolveFieldRenderComponent,
3271
- aA as resolveFormChangeRowUi,
3272
- m as resolveObjectBomEntry,
3288
+ aC as resolveFormChangeRowUi,
3289
+ p2 as resolveObjectBomEntry,
3273
3290
  r as resolveObjectFieldKeys,
3274
- aB as resolveRowFormChangeMark,
3291
+ aD as resolveRowFormChangeMark,
3275
3292
  resolveUdiQuery,
3276
- o2 as runWithFillProduct,
3277
- h as setSelectAnnotationId,
3278
- aC as setSelectMobileTdId,
3293
+ q as runWithFillProduct,
3294
+ j as setSelectAnnotationId,
3295
+ aE as setSelectMobileTdId,
3279
3296
  s as setSelectValidatorId,
3280
3297
  aS as sqlUtils,
3281
- cp as stockCheck,
3282
- aD as stripLegacyFormConfigFromPaper,
3298
+ ct as stockCheck,
3299
+ aF as stripLegacyFormConfigFromPaper,
3283
3300
  transformUtils,
3284
- z as useDependency,
3301
+ C as useDependency,
3285
3302
  useEbrWikiFactoryV2,
3286
- A2 as useFieldPresentation,
3303
+ F as useFieldPresentation,
3287
3304
  u2 as useFormModel,
3288
3305
  u as useFormTmplConfig,
3289
3306
  useMaterialBalance,
3290
3307
  useNocodeEmitter,
3291
- p2 as useNocodeFormWidget,
3292
- cq as useOnlineFormActionButton,
3308
+ t2 as useNocodeFormWidget,
3309
+ cu as useOnlineFormActionButton,
3293
3310
  bm as useOnlineFormTransformField2Component,
3294
3311
  useRenderPageFactory,
3295
- C as useRuntimeEditorFlusher,
3296
- f2 as useRuntimeInstanceServices,
3297
- i as useRuntimeRowState,
3298
- y2 as useStyles,
3299
- e as useWidgetStaticAttrs,
3312
+ G as useRuntimeEditorFlusher,
3313
+ i as useRuntimeInstanceServices,
3314
+ k as useRuntimeRowState,
3315
+ A2 as useStyles,
3316
+ h as useWidgetStaticAttrs,
3300
3317
  v as validateObjectBomForScan,
3301
3318
  validateObjectBomQtyOnSubmit,
3302
3319
  a_ as validateReinspectionDate
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-CCNBotX0.js";
3
- import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index-Cls_jFJq.js";
3
+ import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DZRtpBe8.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";