@gct-paas/excel 0.1.40-beta.0 → 0.1.40-beta.1

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 (99) hide show
  1. package/dist/{BaseComponent-BTolXjlE.js → BaseComponent-DXIDs5gk.js} +2 -2
  2. package/dist/{VueVideoPlayer-Dvf7Ya7H.js → VueVideoPlayer-DhyIm-g1.js} +2 -2
  3. package/dist/{align-editor-jp0NsOnT.js → align-editor-BcbgVXRp.js} +1 -1
  4. package/dist/{barcode-design-ClfdoOKn.js → barcode-design-BiCt0aS7.js} +2 -2
  5. package/dist/base/index.es.js +49 -44
  6. package/dist/{diagonal-design-Br0xpyqC.js → diagonal-design-DmvWALIE.js} +2 -2
  7. package/dist/{dynamic-table-action-C-HIKtZG.js → dynamic-table-action-fDIIzS2J.js} +41 -5
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.js} +352 -212
  9. package/dist/{edit.utils-CXmmCnxE-D4-n_eOM.js → edit.utils-CXmmCnxE-DxArFSxZ.js} +1 -1
  10. package/dist/excel.css +84 -84
  11. package/dist/{exceljs.min-BH63KI8s.js → exceljs.min-CjKNZPlo.js} +2 -2
  12. package/dist/{font-editor-QSpu9bjJ.js → font-editor-DseGyVgB.js} +3 -3
  13. package/dist/{image-design-ySQAmnTF.js → image-design-Dr-L9AdG.js} +2 -2
  14. package/dist/{index-COx1-SPe.js → index-0W-MEvEf.js} +2 -2
  15. package/dist/{index-FSCxAVGq.js → index-4acBM2Lp.js} +2 -2
  16. package/dist/{index-Qf8D5LdT.js → index-B29_mID7.js} +3 -3
  17. package/dist/{index-QTmeSdj9.js → index-B34ZIwqL.js} +2 -2
  18. package/dist/{index-CTO4kNz9.js → index-BPgCZjqV.js} +1 -1
  19. package/dist/{index-2FWN7Q91.js → index-BY7RGawr.js} +2 -2
  20. package/dist/{index-BxEjRF0o.js → index-BctQMMgh.js} +2 -2
  21. package/dist/{index-BXXvFDgt.js → index-BdJ4ouEl.js} +1 -1
  22. package/dist/{index-Cf7KwZfa.js → index-BjI7JCne.js} +4 -4
  23. package/dist/{index-nBc_3R3r.js → index-BxZ3M7eP.js} +1 -1
  24. package/dist/{index-C2RMbM6E.js → index-C4tVTc9U.js} +2 -2
  25. package/dist/{index-CN-rY-3F.js → index-C6dFliaf.js} +1 -1
  26. package/dist/{index-oOLbaFI8.js → index-C70T1sVm.js} +639 -353
  27. package/dist/{index-DbPA5PUX.js → index-C8OPhJhI.js} +1 -1
  28. package/dist/{index-BOaDYNtp.js → index-CAdGL3Vp.js} +2 -2
  29. package/dist/{index-BJ6ZaX-f.js → index-CEmRRPE7.js} +2 -2
  30. package/dist/{index-BJQd1G0r.js → index-CJ9CrORT.js} +3 -3
  31. package/dist/{index-4_qe7Eco.js → index-CScWLXnC.js} +2 -2
  32. package/dist/{index-B3mCVcXB.js → index-CX_eR36M.js} +2 -2
  33. package/dist/{index-DYxskDRv.js → index-CXh-4yX8.js} +3 -3
  34. package/dist/{index-C7DwXZ-K.js → index-CewKz2Ro.js} +1 -1
  35. package/dist/{index-Ca8q7yXC.js → index-D5IrgJyh.js} +2 -2
  36. package/dist/{index-CvDQjwre.js → index-DKRpaNo1.js} +1 -1
  37. package/dist/{index-ibQys99q.js → index-DKf57IGi.js} +1 -1
  38. package/dist/{index-D9zBCWpE.js → index-DNC5VG8P.js} +2 -2
  39. package/dist/{index-CMOvPSr6.js → index-DcjOJuDw.js} +2 -2
  40. package/dist/{index-DZGqXE3S.js → index-DqLVW6ej.js} +3 -3
  41. package/dist/{index-D3IdoYWe.js → index-DrmR7WIs.js} +2 -2
  42. package/dist/{index-8yhxxqYM.js → index-DsCTXMxB.js} +1 -1
  43. package/dist/{index-dhaw5vxN.js → index-JkPJqZ_5.js} +3 -3
  44. package/dist/{index-uVpJOLb3.js → index-Nytm1-X9.js} +2 -2
  45. package/dist/{index-Cb-I6DkL.js → index-hcCJUBne.js} +1 -1
  46. package/dist/{index-CUrMIr2v.js → index-iRameN0x.js} +2 -2
  47. package/dist/{index-B6Bs-q34.js → index-lwjRRvDn.js} +2 -2
  48. package/dist/{index-BHiNdrGr.js → index-r4MF8_-h.js} +2 -2
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-BRejJNP-.js → mb-render-BdRsSczc.js} +1 -1
  51. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-QX4lxsni.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D32c_U8J.js} +1 -1
  52. package/dist/{pagination-design-pTh3Fqbz.js → pagination-design-9Z_iRIKM.js} +2 -2
  53. package/dist/paper-widget-design-BGotQsIf.js +4 -0
  54. package/dist/{print-runtime-instance-CBUjws4D.js → print-runtime-instance-BBOww4jg.js} +1 -1
  55. package/dist/{print-snapshot-renderer-s0IhY_T_.js → print-snapshot-renderer-DGt44saz.js} +3 -3
  56. package/dist/{qrcode-design-CnKOb-s9.js → qrcode-design-qbUjPX-B.js} +1 -1
  57. package/dist/{revo-grid.entry-BqbaKcyR.js → revo-grid.entry-RzymRzb0.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-jmN78nkb.js → revogr-attribution_7.entry-CxTEXm8Q.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-eK74i7_f.js → revogr-clipboard_3.entry-DQEid83u.js} +2 -2
  60. package/dist/{revogr-data_4.entry-D2lAUBEM.js → revogr-data_4.entry-ASovYZWH.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-C-1WXBDy.js → revogr-filter-panel.entry-j_V74kgz.js} +1 -1
  62. package/dist/seal-design-DP1XaAY8.js +4 -0
  63. package/dist/{serialnumber-design-DEYD9ku_.js → serialnumber-design-DXKTYOY7.js} +1 -1
  64. package/dist/shared/index.es.js +6 -6
  65. package/dist/{single-field-drop-Bd3PcWQF.js → single-field-drop-CLjaHjL-.js} +2 -2
  66. package/dist/{size-editor-DiZ8E2R6.js → size-editor-C62H_eRP.js} +1 -1
  67. package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +21 -0
  68. package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +3 -0
  69. package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -0
  70. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +2 -2
  71. package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +1 -2
  72. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -0
  73. package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +11 -2
  74. package/dist/src/nocode-base/src/types/fields/i-sign.d.ts +1 -1
  75. package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +162 -2
  76. package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +41 -0
  77. package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +16 -0
  78. package/dist/src/shared/components/Signature/logic/index.d.ts +1 -1
  79. package/dist/{sub-table-factory-B6HdlZ7-.js → sub-table-factory-sn1Ek1c9.js} +16 -14
  80. package/dist/{text-design-D2IwsbOW.js → text-design-CwHfwel0.js} +2 -2
  81. package/dist/{throttle-Cpk1LoGk-DRpYOKiV.js → throttle-Cpk1LoGk-BHDq1lM3.js} +1 -1
  82. package/dist/{timediff-design-Cq3SADlb.js → timediff-design-8kCO3aXz.js} +1 -1
  83. package/dist/{trace-like-wrapper-Qmczl-Hz.js → trace-like-wrapper-CxPz9Trr.js} +2 -2
  84. package/dist/{value-editor.vue_vue_type_style_index_0_lang-UXPOa0Wv.js → value-editor.vue_vue_type_style_index_0_lang-CzEZ0CY7.js} +2 -2
  85. package/dist/web-render/index.es.js +3 -3
  86. package/dist/{widget-barcode-C7wO0SFO.js → widget-barcode-CRxh3tC2.js} +4 -4
  87. package/dist/{widget-diagonal-Cbuv8o5A.js → widget-diagonal-CO586oV2.js} +3 -3
  88. package/dist/{widget-image-4AeqjwGp.js → widget-image-CE6kVnu5.js} +5 -5
  89. package/dist/{widget-line--RgXiyvO.js → widget-line-Br4oIssb.js} +2 -2
  90. package/dist/{widget-pagination-jr6bVWPW.js → widget-pagination-BHwjrBV5.js} +5 -5
  91. package/dist/{widget-power-ptilZfAF.js → widget-power-BySYsE15.js} +3 -3
  92. package/dist/{widget-qrcode-DH-1741M.js → widget-qrcode-D6b0T_Qa.js} +3 -3
  93. package/dist/{widget-rangelimit-B4yv3Qw3.js → widget-rangelimit-DTH7nrqC.js} +3 -3
  94. package/dist/{widget-serialnumber-AZ2IUJTg.js → widget-serialnumber-DVtxhNC3.js} +1 -1
  95. package/dist/{widget-text-CW0A1n16.js → widget-text-gBGybAXk.js} +5 -5
  96. package/dist/{widget-timediff-C3xTGqfj.js → widget-timediff-aY-maVkE.js} +2 -2
  97. package/package.json +1 -1
  98. package/dist/paper-widget-design-CBI-8vTV.js +0 -4
  99. package/dist/seal-design-CMJBAfIN.js +0 -4
@@ -1,6 +1,6 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-C-HIKtZG.js";
1
+ import { n as normalizeFieldWidth } from "./dynamic-table-action-fDIIzS2J.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-BHExrYFJ.js";
3
+ import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.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-BHExrYFJ.js";
3
- import { r as require$$0 } from "./index-uVpJOLb3.js";
2
+ import { M as commonjsGlobal, N as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.js";
3
+ import { r as require$$0 } from "./index-Nytm1-X9.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-BHExrYFJ.js";
2
+ import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.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-oOLbaFI8.js";
4
- import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-C70T1sVm.js";
4
+ import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.js";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
7
7
  import "ant-design-vue";
@@ -1,14 +1,14 @@
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-BHExrYFJ.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-BHExrYFJ.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-C-HIKtZG.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-C-HIKtZG.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-DhWpxyhm.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-DhWpxyhm.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-fDIIzS2J.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-fDIIzS2J.js";
5
5
  import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, shallowRef, markRaw, ref, provide, onUnmounted, reactive, onBeforeUnmount } from "vue";
6
6
  import { cloneDeep, defaults, isEmpty, merge, get } from "lodash-es";
7
7
  import "dayjs";
8
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-B6HdlZ7-.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-B6HdlZ7-.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-sn1Ek1c9.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-sn1Ek1c9.js";
10
10
  import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, isFieldFillTargetProtected, buildDataSourceContext } from "@gct-paas/form-base";
11
- import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-BRejJNP-.js";
11
+ import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-BdRsSczc.js";
12
12
  const InstanceStatusValues = {
13
13
  /** 作废状态 */
14
14
  ABANDON: "ABANDON",
@@ -1113,7 +1113,8 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1113
1113
  const { selfInfo, paramsConfig, fillModeType } = result || {};
1114
1114
  setFormulaParamsConfig({
1115
1115
  routingParamList: selfInfo?.routingParamList || [],
1116
- inspectionParamList: selfInfo?.inspectionParamList || []
1116
+ inspectionParamList: selfInfo?.inspectionParamList || [],
1117
+ deviceParamList: selfInfo?.deviceParamList || []
1117
1118
  });
1118
1119
  let runtimeFormStateStore;
1119
1120
  let scriptRunner;
@@ -1845,7 +1846,7 @@ function createRuntimePersistenceAccess(runtimeRegistry, props, payload) {
1845
1846
  if (saveToken ? !runtimeRecord.persistence.completeSave(saveToken) : requestedRevision !== runtimeRecord.formState.revision) {
1846
1847
  return false;
1847
1848
  }
1848
- runtimeRecord.formState.patch(idsFormState, "restore");
1849
+ runtimeRecord.formState.patchSavedMetadata(idsFormState);
1849
1850
  if (!runtimeRecord.formState.dirty) payload.onFormStateReady?.(runtimeRecord.formState);
1850
1851
  return true;
1851
1852
  };
@@ -3257,6 +3258,7 @@ export {
3257
3258
  a0 as LabelPosition,
3258
3259
  al as LineDirection,
3259
3260
  L as LineType,
3261
+ bU as MAX_FRONT_ROW_KEY_LENGTH,
3260
3262
  M3 as MBRender,
3261
3263
  ac as MCDataUtil,
3262
3264
  a11 as MCRender,
@@ -3266,10 +3268,10 @@ export {
3266
3268
  M2 as MaterialRequisitionTableCore,
3267
3269
  MaterialStatusEnum,
3268
3270
  a10 as MaterialSubstitutionTableCore,
3269
- bU as MobileFillTypeEnum,
3271
+ bV as MobileFillTypeEnum,
3270
3272
  NCB_PROVIDE,
3271
3273
  ad as OCR_MODEL_PRECISION_ENUM_KEY,
3272
- bV as OfficeTypeEnum,
3274
+ bW as OfficeTypeEnum,
3273
3275
  O as Orientation,
3274
3276
  p as PageSizeEnum,
3275
3277
  P as PaginationFormat,
@@ -3279,10 +3281,10 @@ export {
3279
3281
  A as ParamModelTypeEnum,
3280
3282
  P2 as PartStocktakeTableCore,
3281
3283
  PlatformEnum,
3282
- bW as PosEnum,
3284
+ bX as PosEnum,
3283
3285
  b3 as PretreatmentListTableCore,
3284
3286
  c10 as ProfileDrivenSubTableCore,
3285
- bX as RUNTIME_COLUMN_ROW_KEY,
3287
+ bY as RUNTIME_COLUMN_ROW_KEY,
3286
3288
  ax as RangeCompareOp,
3287
3289
  aw as RangeValidateMode,
3288
3290
  RenderModeEnum,
@@ -3307,7 +3309,7 @@ export {
3307
3309
  ak2 as SubTableCore,
3308
3310
  SubTableCoreFactory,
3309
3311
  f as SubTableType,
3310
- bY as SummaryApproveHisTypeEnum,
3312
+ bZ as SummaryApproveHisTypeEnum,
3311
3313
  am as TimeDiffFormat,
3312
3314
  aq as ViewTypeEnum,
3313
3315
  W as WarehouseInTableCore,
@@ -3315,18 +3317,18 @@ export {
3315
3317
  g as WarehouseOutTableCore,
3316
3318
  h2 as WarehouseOutboundTableCore,
3317
3319
  ak as WidgetImageSizeMode,
3318
- bZ as applyCheckDsDataToRuntime,
3320
+ b_ as applyCheckDsDataToRuntime,
3319
3321
  q as applyConsumeObjectTraceChange,
3320
- b_ as applyMedProCheckDsDataToRuntime,
3322
+ b$ as applyMedProCheckDsDataToRuntime,
3321
3323
  baseDataUtils,
3322
- b$ as bindRuntimeTableColumns,
3323
- c0 as buildDeviceBaseQuery,
3324
+ c0 as bindRuntimeTableColumns,
3325
+ c1 as buildDeviceBaseQuery,
3324
3326
  bg as buildDeviceFilterQuery,
3325
3327
  al2 as buildFormChangeDisplayRows,
3326
3328
  k as buildObjectLotExtraQuery,
3327
3329
  buildRuntimeFieldPath,
3328
- c1 as calcFillData,
3329
- c2 as calcUtils,
3330
+ c2 as calcFillData,
3331
+ c3 as calcUtils,
3330
3332
  calculateFormula,
3331
3333
  collectAnnotationItemsByLocation,
3332
3334
  collectFormChangeFieldLocations,
@@ -3335,56 +3337,59 @@ export {
3335
3337
  am2 as convertV1Runtime,
3336
3338
  c as createRuntimeDocumentV2,
3337
3339
  createRuntimeInstanceContext,
3340
+ c4 as decodeTableCellRowKey,
3338
3341
  an2 as detailsHaveFormChangeRowOps,
3342
+ c5 as encodeTableCellRowKey,
3339
3343
  enrichFormChangeRowDetails,
3340
- c3 as ensureFrontRowKey,
3341
- c4 as ensureTableRowKeys,
3344
+ c6 as ensureFrontRowKey,
3345
+ c7 as ensureTableRowKeys,
3342
3346
  ao2 as extractFormChangeRowDetails,
3343
- c5 as extractKeywordFromQueryData,
3344
- c6 as fetchCheckDsDataForTable,
3345
- c7 as fetchCustomCheckDsData,
3347
+ c8 as extractKeywordFromQueryData,
3348
+ c9 as fetchCheckDsDataForTable,
3349
+ ca as fetchCustomCheckDsData,
3346
3350
  fetchHistoryConsume,
3347
- c8 as fetchMedProCheckDsData,
3351
+ cb as fetchMedProCheckDsData,
3348
3352
  fetchOperationReceiveQty,
3349
3353
  fetchUdi,
3350
3354
  filterAnnotationItemsUpToCurrent,
3351
3355
  bl as findRuntimeParentRow,
3352
- c9 as findRuntimeTableCell,
3356
+ cc as findRuntimeTableCell,
3353
3357
  findRuntimeTableRow,
3354
3358
  getAppInfo,
3355
3359
  getBusinessFieldKey,
3356
- ca as getCheckTableSnapshotKey,
3360
+ cd as getCheckTableSnapshotKey,
3357
3361
  ap as getFormChangeRowKey,
3358
3362
  aq2 as getFormChangeRowOp,
3359
3363
  aZ as getLotLockedReason,
3360
3364
  j as getObjectBomMaterialLotQuery,
3361
3365
  t2 as getObjectBomProductQuery,
3362
3366
  getParseFormulaVarInfos,
3363
- cb as getParseRuleConfig,
3367
+ ce as getParseRuleConfig,
3364
3368
  b0 as getParseRuleInfo,
3365
3369
  b1 as getParseRuleValue,
3366
- cc as getReinspectionDate,
3367
- cd as getRenderedRuntimeTableCell,
3370
+ cf as getReinspectionDate,
3371
+ cg as getRenderedRuntimeTableCell,
3368
3372
  getRuntimeDataFieldId,
3369
3373
  getRuntimeDependencyOutputKey,
3370
3374
  ar as getSubTableQuickFillInfo,
3371
3375
  getSuiteKey,
3372
- ce as handleOldConfig,
3373
- cf as hasAnyCheckTableSnapshot,
3374
- cg as hasByTableCheckTableSnapshot,
3375
- ch as hasSharedCheckTableSnapshot,
3376
+ ch as handleOldConfig,
3377
+ ci as hasAnyCheckTableSnapshot,
3378
+ cj as hasByTableCheckTableSnapshot,
3379
+ ck as hasSharedCheckTableSnapshot,
3376
3380
  as as isAnnLocationSelected,
3377
3381
  at as isBlank,
3378
3382
  isBomGranted,
3379
3383
  isEdhrSuite,
3380
3384
  isEqmSuite,
3381
3385
  au as isFormChangeGhostRow,
3382
- ci as isMedProSuite,
3386
+ cl as isMedProSuite,
3383
3387
  isRowAddedInCurrentFormChange,
3384
- cj as jsonSchemaUtils,
3385
- ck as judgeUnique,
3388
+ cm as isTableRowKeyMatch,
3389
+ cn as jsonSchemaUtils,
3390
+ co as judgeUnique,
3386
3391
  aY as materialCheck,
3387
- cl as migrateDiagonalDirectionToVertex,
3392
+ cp as migrateDiagonalDirectionToVertex,
3388
3393
  nextFormChangeRowViewHistoryId,
3389
3394
  d as normalizeAIOcrTmpl,
3390
3395
  w as normalizeHistoricalAutofillRow,
@@ -3399,10 +3404,10 @@ export {
3399
3404
  ax2 as recordSubtableRowAdd,
3400
3405
  ay2 as recordSubtableRowDelete,
3401
3406
  be as refUtils,
3402
- cm as relocateDeletedRowsToEnd,
3407
+ cq as relocateDeletedRowsToEnd,
3403
3408
  renderUtils,
3404
- cn as requestMedProCheckDsData,
3405
- co as requestNonMedProCheckDsData,
3409
+ cr as requestMedProCheckDsData,
3410
+ cs as requestNonMedProCheckDsData,
3406
3411
  az2 as resolveAnnotationFieldLocation,
3407
3412
  ao as resolveDiagonalVertex,
3408
3413
  t as resolveFieldRenderComponent,
@@ -3416,7 +3421,7 @@ export {
3416
3421
  aC as setSelectMobileTdId,
3417
3422
  s as setSelectValidatorId,
3418
3423
  aS as sqlUtils,
3419
- cp as stockCheck,
3424
+ ct as stockCheck,
3420
3425
  aD as stripLegacyFormConfigFromPaper,
3421
3426
  transformUtils,
3422
3427
  z as useDependency,
@@ -3427,7 +3432,7 @@ export {
3427
3432
  useMaterialBalance,
3428
3433
  useNocodeEmitter,
3429
3434
  p2 as useNocodeFormWidget,
3430
- cq as useOnlineFormActionButton,
3435
+ cu as useOnlineFormActionButton,
3431
3436
  bm as useOnlineFormTransformField2Component,
3432
3437
  useRenderPageFactory,
3433
3438
  C as useRuntimeEditorFlusher,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-oOLbaFI8.js";
3
- import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index-C70T1sVm.js";
3
+ import { ao as resolveDiagonalVertex, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
@@ -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 { ai as CellWidgetViewState, F as FIELD_TYPE, b8 as RenderModeEnum, Y as FormTypeEnum, bE as BpmnNodeTypeEnum, cr as getFieldPlaceholder, bU as MobileFillTypeEnum, C as ComponentTypeEnum, $ as PlatformEnum, cs as isReferenceOptionActive, E as api, bu as uuid2, c2 as calcUtils, bj as findRuntimeTableRow, c4 as ensureTableRowKeys, b$ as bindRuntimeTableColumns, bi as getRowId, ct as FRONT_ROW_KEY, bw as isAttachFieldActive, cu as filterRulesByTrigger, cv as isEmptyValue$1, c3 as ensureFrontRowKey, b0 as getParseRuleInfo, aF as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bn as FormulaRuleFieldKeyEnum, f as SubTableType, b1 as getParseRuleValue, cw as buildError, H as CreateType, bl as findRuntimeParentRow, aI as Dependency_ENUM, aH as ASSIGNMENTSTRATEGY_ENUM, bJ as commonUtils, aM as DeviceLink, a8 as _export_sfc, cd as getRenderedRuntimeTableCell, y as CellType, cm as relocateDeletedRowsToEnd, cx as resetTableRowIdentity, J as useModal, cy as q, cz as QUICK_FILL_ALLOWED_FIELDS, cA as groupFixedTableRows, cB as processQuickFillRows, cC as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BHExrYFJ.js";
2
+ import { ai as CellWidgetViewState, F as FIELD_TYPE, b8 as RenderModeEnum, Y as FormTypeEnum, bE as BpmnNodeTypeEnum, cv as getFieldPlaceholder, bV as MobileFillTypeEnum, C as ComponentTypeEnum, $ as PlatformEnum, cw as isReferenceOptionActive, E as api, bu as uuid2, c3 as calcUtils, bj as findRuntimeTableRow, c7 as ensureTableRowKeys, c0 as bindRuntimeTableColumns, bi as getRowId, cx as FRONT_ROW_KEY, cm as isTableRowKeyMatch, bw as isAttachFieldActive, cy as filterRulesByTrigger, cz as isEmptyValue$1, c4 as decodeTableCellRowKey, c6 as ensureFrontRowKey, b0 as getParseRuleInfo, aF as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bn as FormulaRuleFieldKeyEnum, f as SubTableType, b1 as getParseRuleValue, cA as buildError, H as CreateType, bl as findRuntimeParentRow, aI as Dependency_ENUM, aH as ASSIGNMENTSTRATEGY_ENUM, bJ as commonUtils, aM as DeviceLink, a8 as _export_sfc, cg as getRenderedRuntimeTableCell, y as CellType, cq as relocateDeletedRowsToEnd, cB as resetTableRowIdentity, J as useModal, cC as q, cD as QUICK_FILL_ALLOWED_FIELDS, cE as groupFixedTableRows, cF as processQuickFillRows, cG as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhWpxyhm.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-BRejJNP-.js";
8
+ import { u as useFormModel } from "./mb-render-BdRsSczc.js";
9
9
  var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
10
10
  MaterialConsumptionPatternEnum2["RECORD"] = "record";
11
11
  MaterialConsumptionPatternEnum2["BOM"] = "bom";
@@ -1605,6 +1605,14 @@ class RuntimeFormStateStore {
1605
1605
  const paths = Object.keys(values);
1606
1606
  this.mutate(paths, source, () => this.assignValues(this.reactiveState, values));
1607
1607
  }
1608
+ /**
1609
+ * 保存后只回填后端身份元数据,不能用仅含 id_/front_row_key_ 的数组覆盖当前业务行。
1610
+ * 二维内置复合键可通过原始子行键匹配保存前的本地行。
1611
+ */
1612
+ patchSavedMetadata(values) {
1613
+ const paths = Object.keys(values);
1614
+ this.mutate(paths, "restore", () => this.mergeSavedMetadata(this.reactiveState, values));
1615
+ }
1608
1616
  /**
1609
1617
  * 用新对象整体替换实例数据,删除旧对象中多余的顶层字段。
1610
1618
  * 草稿/接口恢复后会清空用户修改标记;restore 来源同时恢复为非脏状态。
@@ -1716,6 +1724,30 @@ class RuntimeFormStateStore {
1716
1724
  target[key] = incoming;
1717
1725
  });
1718
1726
  }
1727
+ mergeSavedMetadata(target, incoming, path = "") {
1728
+ if (Array.isArray(incoming)) {
1729
+ const isTableRows = this.subtableFields.has(path) || path.endsWith("._2DTABLE_");
1730
+ if (!isTableRows || !Array.isArray(target)) return incoming;
1731
+ incoming.forEach((savedRow) => {
1732
+ const rowKey = savedRow?.[FRONT_ROW_KEY];
1733
+ const savedId = savedRow?.id_;
1734
+ const currentRow = target.find((row) => {
1735
+ if (!row || typeof row !== "object") return false;
1736
+ if (rowKey != null && isTableRowKeyMatch(rowKey, row[FRONT_ROW_KEY])) return true;
1737
+ return savedId != null && row.id_ != null && String(row.id_) === String(savedId);
1738
+ });
1739
+ if (currentRow) this.mergeSavedMetadata(currentRow, savedRow, path);
1740
+ });
1741
+ return target;
1742
+ }
1743
+ if (!incoming || typeof incoming !== "object") return incoming;
1744
+ if (!target || typeof target !== "object" || Array.isArray(target)) return incoming;
1745
+ Object.entries(incoming).forEach(([key, value]) => {
1746
+ const childPath = path ? `${path}.${key}` : key;
1747
+ target[key] = this.mergeSavedMetadata(target[key], value, childPath);
1748
+ });
1749
+ return target;
1750
+ }
1719
1751
  /**
1720
1752
  * 所有写入口共用的表格身份边界:整表恢复/回填、数组插入、二维子行替换均在通知前补齐。
1721
1753
  * 只处理业务索引声明的表格及 _2DTABLE_,不把多选值、上传文件等数组当作表格。
@@ -3827,8 +3859,10 @@ const SNAPSHOT_SKIP = /* @__PURE__ */ new Set([
3827
3859
  ]);
3828
3860
  function rowIdentityKeys(row) {
3829
3861
  if (!row) return [];
3862
+ const frontRowKey = row[FRONT_ROW_KEY] != null && String(row[FRONT_ROW_KEY]).trim() !== "" ? String(row[FRONT_ROW_KEY]) : void 0;
3830
3863
  return [
3831
- row[FRONT_ROW_KEY] != null && String(row[FRONT_ROW_KEY]).trim() !== "" ? String(row[FRONT_ROW_KEY]) : void 0,
3864
+ frontRowKey,
3865
+ decodeTableCellRowKey(frontRowKey)?.cellRowKey,
3832
3866
  row.id_ != null && row.id_ !== "" ? String(row.id_) : void 0
3833
3867
  ].filter(Boolean);
3834
3868
  }
@@ -6682,7 +6716,8 @@ class SubTableCore {
6682
6716
  }
6683
6717
  let currentParamsConfig = {
6684
6718
  routingParamList: [],
6685
- inspectionParamList: []
6719
+ inspectionParamList: [],
6720
+ deviceParamList: []
6686
6721
  };
6687
6722
  function setFormulaParamsConfig(paramsConfig = {}) {
6688
6723
  currentParamsConfig = paramsConfig ?? {};
@@ -6703,7 +6738,8 @@ async function CALC_IS_QUALIFIED(key, value, paramList) {
6703
6738
  }
6704
6739
  const FORMULA_FUNCS = {
6705
6740
  RoutingParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.routingParamList || []),
6706
- InspectionParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.inspectionParamList || [])
6741
+ InspectionParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.inspectionParamList || []),
6742
+ DeviceParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.deviceParamList || [])
6707
6743
  };
6708
6744
  function registerFormulaFuncs() {
6709
6745
  const register2 = window.NocodeAdapter.utils?.formulaRegister;