@gct-paas/excel 0.1.40-beta.24 → 0.1.40-beta.25

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 (60) hide show
  1. package/dist/{BaseComponent-9hkBjQjp.js → BaseComponent-gOtXQLY_.js} +1 -1
  2. package/dist/{VueVideoPlayer-yISI5amX.js → VueVideoPlayer-CB5VHlj2.js} +1 -1
  3. package/dist/{barcode-design-CHbO1c-N.js → barcode-design-Mjrep3H_.js} +1 -1
  4. package/dist/base/index.es.js +34 -11
  5. package/dist/{diagonal-design-CwaKPsqR.js → diagonal-design-CFBp2E-O.js} +1 -1
  6. package/dist/{dynamic-table-action-JR8LU5WT.js → dynamic-table-action-BKX0Oeoy.js} +35 -17
  7. package/dist/{exceljs.min-wPuo8a9q.js → exceljs.min-eo-E80If.js} +1 -1
  8. package/dist/{font-editor-CGJQio2h.js → font-editor-CAZX85G4.js} +1 -1
  9. package/dist/{index-BCpitZ3H.js → index--7My1yo5.js} +30 -30
  10. package/dist/{index-Ds8UpdFP.js → index--RhdrCZV.js} +1 -1
  11. package/dist/{index-Bk67ggPI.js → index-0S-kw2HL.js} +1 -1
  12. package/dist/{index-up8dW1VW.js → index-0pYUJqWX.js} +1 -1
  13. package/dist/{index-KMB2TBbZ.js → index-8WHvZyAx.js} +1 -1
  14. package/dist/{index-DUma1ZGa.js → index-9Mi1Iiw8.js} +2 -2
  15. package/dist/{index-B_95dIym.js → index-BBq6DSLI.js} +1 -1
  16. package/dist/{index-C1b5ADFV.js → index-BLqJtzs6.js} +1 -1
  17. package/dist/{index-CX2lK91Y.js → index-BLv5fzzG.js} +1 -1
  18. package/dist/{index-DZb9l6Gw.js → index-BMlGh5m0.js} +1 -1
  19. package/dist/{index-37J1K1W1.js → index-BoGFEaqo.js} +1 -1
  20. package/dist/{index-PVGqEoN1.js → index-BycDrbO0.js} +1 -1
  21. package/dist/{index-Pgworj4S.js → index-CoKpbR25.js} +1 -1
  22. package/dist/{index-sIW7hZFQ.js → index-Cpn8pcne.js} +1 -1
  23. package/dist/{index-BIitBpK7.js → index-DgEDg0_J.js} +2 -2
  24. package/dist/{index-BoZN_3QI.js → index-DifKRFVy.js} +1 -1
  25. package/dist/{index-eLwoxKzH.js → index-DzT1SZ9z.js} +2 -2
  26. package/dist/{index-CpdA5MDE.js → index-NH1JcF4s.js} +1 -1
  27. package/dist/{index-C5izC2Mm.js → index-NulsmEum.js} +2 -2
  28. package/dist/{index-Cg8xpa-X.js → index-SrAjB-wq.js} +3 -3
  29. package/dist/{index-BxaqeEUh.js → index-fcxbS2U1.js} +2 -2
  30. package/dist/{index-BX8xuu9v.js → index-hNdJpzws.js} +2 -2
  31. package/dist/{index-LiOm5nws.js → index-iYrfBvkL.js} +1 -1
  32. package/dist/{index-9ipSNY71.js → index-jTfc0zM7.js} +1 -1
  33. package/dist/index.es.js +1 -1
  34. package/dist/{pagination-design-BasHtAud.js → pagination-design-DelDPMV6.js} +1 -1
  35. package/dist/paper-widget-design-UPTi8CN4.js +4 -0
  36. package/dist/{print-runtime-instance-OTdo3422.js → print-runtime-instance-NcHBwPwX.js} +1 -1
  37. package/dist/{print-snapshot-renderer-ByiTyPun.js → print-snapshot-renderer-Dw-xzoDx.js} +3 -3
  38. package/dist/{qrcode-design-hSEE0IFK.js → qrcode-design-DAYfoLN-.js} +1 -1
  39. package/dist/seal-design-CeJEHJ-K.js +4 -0
  40. package/dist/{single-field-drop-MFIjdRrG.js → single-field-drop-BcuqHgNO.js} +1 -1
  41. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +14 -7
  42. package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +8 -0
  43. package/dist/{sub-table-factory-D6MHOXzJ.js → sub-table-factory-v9spfnMN.js} +1 -1
  44. package/dist/{text-design-DaxQodcl.js → text-design-BjhwgpUv.js} +1 -1
  45. package/dist/{trace-like-wrapper-Dc2qmQo_.js → trace-like-wrapper-DHb2jlre.js} +1 -1
  46. package/dist/{value-editor.vue_vue_type_style_index_0_lang-yM2HYifj.js → value-editor.vue_vue_type_style_index_0_lang-CV1HsENd.js} +1 -1
  47. package/dist/{widget-barcode-CN13ewGl.js → widget-barcode-CNB9Sqle.js} +2 -2
  48. package/dist/{widget-diagonal-DMki09VI.js → widget-diagonal-6ZDcxCwX.js} +2 -2
  49. package/dist/{widget-image-BP_4rlRW.js → widget-image-D--Ynjra.js} +1 -1
  50. package/dist/{widget-line-BkbZEHCt.js → widget-line-CpwqEFD9.js} +1 -1
  51. package/dist/{widget-pagination-Bo31Q_F-.js → widget-pagination-BN3wWsKq.js} +2 -2
  52. package/dist/{widget-power-DNaqREkx.js → widget-power-Cn61OOWe.js} +2 -2
  53. package/dist/{widget-qrcode-DLGoKdnQ.js → widget-qrcode-BgUCM01T.js} +2 -2
  54. package/dist/{widget-rangelimit-CwI-0gsT.js → widget-rangelimit-CnNNwIo0.js} +2 -2
  55. package/dist/{widget-serialnumber-4TPNnZeQ.js → widget-serialnumber-gZih5585.js} +1 -1
  56. package/dist/{widget-text-kjnijcMF.js → widget-text--iXnC5zl.js} +3 -3
  57. package/dist/{widget-timediff-CZAMM1f0.js → widget-timediff-DN-FCR7T.js} +1 -1
  58. package/package.json +2 -2
  59. package/dist/paper-widget-design-BWJtqIvf.js +0 -4
  60. package/dist/seal-design-BRJgX3Fr.js +0 -4
@@ -1,4 +1,4 @@
1
- import { j as normalizeFieldWidth } from "./dynamic-table-action-JR8LU5WT.js";
1
+ import { j as normalizeFieldWidth } from "./dynamic-table-action-BKX0Oeoy.js";
2
2
  import { get, pick } from "lodash-es";
3
3
  import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
4
4
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
@@ -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
2
  import { V as commonjsGlobal, W as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
3
- import { G as require$$0 } from "./index-BCpitZ3H.js";
3
+ import { G as require$$0 } from "./index--7My1yo5.js";
4
4
  var window_1;
5
5
  var hasRequiredWindow;
6
6
  function requireWindow() {
@@ -1,6 +1,6 @@
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-BCpitZ3H.js";
3
+ import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index--7My1yo5.js";
4
4
  import { X as PaperWidgeValueType, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
@@ -1,12 +1,12 @@
1
1
  import { p as api, a3 as PlatformEnum, F as FIELD_TYPE, bk as getRowId, bl as findRuntimeTableRow, bm as RenderModeEnum, C as ComponentTypeEnum, aD as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, az as RangeValidateMode, aP as Dependency_ENUM, aO as ASSIGNMENTSTRATEGY_ENUM, bw as fetchHistoryConsume, bx as isBomGranted, b2 as renderUtils, bv as uuid2, by as parseFrontConfig, aS as CheckDsTypeEnum, aM as transformUtils, bz as baseDataUtils, a0 as FormTypeEnum, bA as normalizeToArray, bB as safeParseArray, bC as BpmnNodeTypeEnum, bD as mergeByMultiKey, ad as _export_sfc, bE as evaluateInspectionDecisionRule, bF as useNocodeEmitter, bG as commonUtils, aQ as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
2
2
  import { aV, aX, b9, a5, bH, bI, B, bJ, H, al, bK, bL, bM, bj, bN, a_, aE, aW, aT, aU, bO, am, aq, bP, bQ, aN, a7, ak, aF, aY, a4, ao, L, bR, bS, bT, O, t, P, af, q, X, K, bU, bV, aA, aa, a6, a8, a9, ab, h, bW, ap, at, an, bX, bY, bZ, b_, aI, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, bn, c9, ca, b5, cb, ba, bb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, b4, cm, bc, aJ, cn, co, ar, y, aZ, cp, cq, bo, b6 } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
3
- import { a8 as getRuntimeDataFieldId, S as parseRuntimeFieldPath, a9 as buildRuntimeFieldPath, m as findFieldProfile, aa as resolveRuntimeFieldProps, ab as resolveRuntimeFieldState, ac as assembleRules, ad as isAttachFieldActive, U as calculateFormula, ae as getRuntimeDependencyOutputKey, af as isRowAddedInCurrentFormChange, e as getParseFormulaVarInfos, A as MaterialConsumptionPatternEnum, ag as MaterialConsumeTableController, ah as setFormulaParamsConfig, ai as normalizeRuntime, _ as createRuntimeInstanceContext, aj as initializeSealFields, Z as RuntimeFormStateStore, ak as RuntimeSheetService, g as getBusinessFieldKey, al as validateObjectBomQtyOnSubmit, am as areValidationCommentsEqual, an as closeValidatorPopovers, ao as enrichFormChangeRowDetails, T as NCB_PROVIDE, $ as RuntimeInstanceRegistry, ap as useMaterialBalance, aq as collectFormChangeFieldLocations, ar as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-JR8LU5WT.js";
4
- import { as, B as B2, at as at2, p, a7 as a72, au, a5 as a52, av, a6 as a62, K as K2, aw, F, ax, ay, az, aA as aA2, M, a, a2, aB, a3, d, aC, aD, aE as aE2, aF as aF2, aG, aH, aI as aI2, aJ as aJ2, I, aK, y as y2, aL, f, aM, aN as aN2, aO, aP, x, J, aQ, aR, aS, aT as aT2, q as q2, L as L2, o, aU as aU2, aV as aV2, aW as aW2, aX as aX2, aY as aY2, aZ as aZ2, a_ as a_2, E, z, a$, G, v, b0, t as t2, b1, W, X as X2, u, l, H as H2, Y, s, w, V, r, C } from "../dynamic-table-action-JR8LU5WT.js";
3
+ import { a8 as getRuntimeDataFieldId, S as parseRuntimeFieldPath, a9 as buildRuntimeFieldPath, m as findFieldProfile, aa as resolveRuntimeFieldProps, ab as resolveRuntimeFieldState, ac as assembleRules, ad as isAttachFieldActive, U as calculateFormula, ae as getRuntimeDependencyOutputKey, af as isRowAddedInCurrentFormChange, e as getParseFormulaVarInfos, A as MaterialConsumptionPatternEnum, ag as MaterialConsumeTableController, ah as setFormulaParamsConfig, ai as normalizeRuntime, _ as createRuntimeInstanceContext, aj as initializeSealFields, Z as RuntimeFormStateStore, ak as RuntimeSheetService, g as getBusinessFieldKey, al as validateObjectBomQtyOnSubmit, am as areValidationCommentsEqual, an as closeValidatorPopovers, ao as enrichFormChangeRowDetails, T as NCB_PROVIDE, $ as RuntimeInstanceRegistry, ap as useMaterialBalance, aq as collectFormChangeFieldLocations, ar as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-BKX0Oeoy.js";
4
+ import { as, B as B2, at as at2, p, a7 as a72, au, a5 as a52, av, a6 as a62, K as K2, aw, F, ax, ay, az, aA as aA2, M, a, a2, aB, a3, d, aC, aD, aE as aE2, aF as aF2, aG, aH, aI as aI2, aJ as aJ2, I, aK, y as y2, aL, f, aM, aN as aN2, aO, aP, x, J, aQ, aR, aS, aT as aT2, q as q2, L as L2, o, aU as aU2, aV as aV2, aW as aW2, aX as aX2, aY as aY2, aZ as aZ2, a_ as a_2, E, z, a$, G, v, b0, t as t2, b1, W, X as X2, u, l, H as H2, Y, s, w, V, r, C } from "../dynamic-table-action-BKX0Oeoy.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-D6MHOXzJ.js";
9
- import { A, D, M as M2, a as a10, P as P2, b, c, d as d2, e, W as W2, f as f2, g, h as h2 } from "../sub-table-factory-D6MHOXzJ.js";
8
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-v9spfnMN.js";
9
+ import { A, D, M as M2, a as a10, P as P2, b, c, d as d2, e, W as W2, f as f2, g, h as h2 } from "../sub-table-factory-v9spfnMN.js";
10
10
  import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, buildFieldFillTableRows, buildFieldFillRows, isFieldFillTargetProtected, getFieldFillTable, getFieldFillColumn, buildDataSourceContext } from "@gct-paas/form-base";
11
11
  const InstanceStatusValues = {
12
12
  /** 作废状态 */
@@ -1042,6 +1042,28 @@ class FormTmplBomController {
1042
1042
  });
1043
1043
  });
1044
1044
  }
1045
+ /** 全部 Sheet 的消耗表统一在 LOADED 前准备。 */
1046
+ initializeFormState(opts) {
1047
+ Object.entries(this.field2TableMap).forEach(([field, tableKey]) => {
1048
+ const controller = this.tableControllers[tableKey];
1049
+ if (!controller) return;
1050
+ controller.prepareInitialData({
1051
+ formState: opts.formState,
1052
+ field,
1053
+ dataStatus: opts.dataStatus,
1054
+ defaultRowData: renderUtils.getDefaultValueInfo({
1055
+ defaultDataMap: opts.defaultDataMap,
1056
+ key: field
1057
+ })
1058
+ });
1059
+ });
1060
+ }
1061
+ /** 钩子若修改数量依赖,在创建 Store 和分页前按原规则重算。 */
1062
+ finalizeInitialQuantities() {
1063
+ Object.values(this.tableControllers).forEach((controller) => {
1064
+ controller.syncQtyRequiredFromBomIfChanged();
1065
+ });
1066
+ }
1045
1067
  async submitValidate() {
1046
1068
  const results = await Promise.all(
1047
1069
  Object.values(this.tableControllers).map((c10) => c10.submitValidate())
@@ -1633,6 +1655,11 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1633
1655
  });
1634
1656
  initializeSealFields(floatingFields, formState);
1635
1657
  }
1658
+ tmplBomC.initializeFormState({
1659
+ formState,
1660
+ dataStatus: selfInfo.dataStatus,
1661
+ defaultDataMap
1662
+ });
1636
1663
  await transformUtils.getEventInitDataLoaded({
1637
1664
  formConfig: runtimeContext.formConfig,
1638
1665
  formState,
@@ -1642,6 +1669,7 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
1642
1669
  }).catch((error) => {
1643
1670
  console.error("Error in getEventInitDataLoaded:", error);
1644
1671
  });
1672
+ tmplBomC.finalizeInitialQuantities();
1645
1673
  runtimeFormStateStore = new RuntimeFormStateStore(
1646
1674
  formState,
1647
1675
  // 子表信息覆盖普通/固定/检验表、二维关联列以及各类业务表;不能只依赖已放置字段。
@@ -1789,18 +1817,13 @@ function bindRuntimeBusinessServices(runtimeRegistry, record, dataStatus) {
1789
1817
  }
1790
1818
  }),
1791
1819
  mainFormState: computed(() => record.formState.state),
1792
- dataStatus,
1793
- defaultRowData: renderUtils.getDefaultValueInfo({
1794
- defaultDataMap: record.context.defaultData,
1795
- key: field
1796
- })
1820
+ dataStatus
1797
1821
  });
1798
1822
  stops.push(
1799
1823
  watch(
1800
1824
  () => controller.materialNoNum,
1801
1825
  () => {
1802
- if (controller.dataStatus === "SUBMIT") return;
1803
- controller.syncQtyRequiredFromBom();
1826
+ controller.syncQtyRequiredFromBomIfChanged();
1804
1827
  },
1805
1828
  { immediate: true }
1806
1829
  )
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { h as useModelFields, D as Diagonal } from "./index-BCpitZ3H.js";
2
+ import { h as useModelFields, D as Diagonal } from "./index--7My1yo5.js";
3
3
  import { ar as resolveDiagonalVertex, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -1,4 +1,4 @@
1
- import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, provide, nextTick, toRef, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
1
+ import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, toRef, provide, nextTick, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
2
2
  import { al as CellWidgetViewState, F as FIELD_TYPE, bm as RenderModeEnum, a0 as FormTypeEnum, bC as BpmnNodeTypeEnum, cr as getFieldPlaceholder, bS as MobileFillTypeEnum, C as ComponentTypeEnum, bl as findRuntimeTableRow, b2 as renderUtils, a3 as PlatformEnum, p as api, bv as uuid2, c0 as calcUtils, c4 as ensureTableRowKeys, bZ as bindRuntimeTableColumns, bk as getRowId, cs as FRONT_ROW_KEY, cj as isTableRowKeyMatch, aA as RangeCompareOp, az as RangeValidateMode, c1 as decodeTableCellRowKey, c3 as ensureFrontRowKey, ba as getParseRuleInfo, aM as transformUtils, b4 as materialCheck, b5 as getLotLockedReason, b6 as validateReinspectionDate, bp as FormulaRuleFieldKeyEnum, N as CreateType, h as SubTableType, bb as getParseRuleValue, bn as findRuntimeParentRow, aP as Dependency_ENUM, aO as ASSIGNMENTSTRATEGY_ENUM, bG as commonUtils, aT as DeviceLink, ac as useNamespace, ad as _export_sfc, I as Icon, cd as getRenderedRuntimeTableCell, H as CellType, ct as resetTableRowIdentity, R as useModal, cu as q, cv as QUICK_FILL_ALLOWED_FIELDS, cw as groupFixedTableRows, cx as processQuickFillRows, cy as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
3
3
  import dayjs from "dayjs";
4
4
  import { cloneDeep, isEmpty, isNil, pickBy, mergeWith, omit, last, pick, merge } from "lodash-es";
@@ -5938,8 +5938,10 @@ class MaterialConsumeTableController {
5938
5938
  mainFormState = ref({});
5939
5939
  /** 表单数据状态(由 factory bindRuntime 注入):未填报 / STASH / SUBMIT */
5940
5940
  dataStatus;
5941
- /** factory 是否已绑定过运行时(避免重复 initTableData) */
5942
- runtimeBound = false;
5941
+ /** 实例数据只在 LOADED 前准备一次,运行时绑定不再重新生成行。 */
5942
+ initialDataPrepared = false;
5943
+ /** 最近一次同步需求数量时使用的数量依赖。 */
5944
+ syncedMaterialNoNum;
5943
5945
  /** 表单是否已暂存或提交(已处理过则不再跑初始化) */
5944
5946
  get isDataProcessed() {
5945
5947
  return ["STASH", "SUBMIT"].includes(this.dataStatus ?? "");
@@ -6317,23 +6319,36 @@ class MaterialConsumeTableController {
6317
6319
  });
6318
6320
  this.isScanOpen = false;
6319
6321
  }
6320
- /**
6321
- * 表单加载时由 factory 调用:绑定稳定数据源并初始化行数据。
6322
- * 不在分页组件 setup 中调用,避免跨页挂载重复 init。
6323
- */
6322
+ /** Store 创建前准备物料行和数量,全部 Sheet 的 LOADED 共用这份数据。 */
6323
+ prepareInitialData(opts) {
6324
+ if (this.initialDataPrepared) return;
6325
+ this.tableDataRef = toRef(opts.formState, opts.field, []);
6326
+ this.mainFormState = toRef(() => opts.formState);
6327
+ this.dataStatus = opts.dataStatus;
6328
+ this.initTableData(opts.defaultRowData);
6329
+ const rows = this.actualTableData;
6330
+ if (rows.length === 1 && !rows[0].product_id_) {
6331
+ MCDataUtil.setRowEditing(rows[0], true);
6332
+ }
6333
+ if (this.dataStatus !== "SUBMIT") {
6334
+ this.syncQtyRequiredFromBom();
6335
+ }
6336
+ this.syncedMaterialNoNum = this.materialNoNum;
6337
+ this.initialDataPrepared = true;
6338
+ }
6339
+ /** 数量依赖实际变化时才重算,避免首次绑定覆盖 LOADED 中的回填。 */
6340
+ syncQtyRequiredFromBomIfChanged() {
6341
+ if (this.dataStatus === "SUBMIT") return;
6342
+ const materialNoNum = this.materialNoNum;
6343
+ if (this.initialDataPrepared && Object.is(materialNoNum, this.syncedMaterialNoNum)) return;
6344
+ this.syncQtyRequiredFromBom();
6345
+ this.syncedMaterialNoNum = materialNoNum;
6346
+ }
6347
+ /** 只绑定运行时 Store,不重新生成行或修改行内容。 */
6324
6348
  bindRuntime(opts) {
6325
6349
  this.tableDataRef = opts.tableDataRef;
6326
6350
  this.mainFormState = opts.mainFormState ?? ref({});
6327
6351
  this.dataStatus = opts.dataStatus;
6328
- if (this.runtimeBound) return;
6329
- this.runtimeBound = true;
6330
- this.initTableData(opts.defaultRowData);
6331
- if (this.actualTableData.length === 1) {
6332
- const firstRow = this.actualTableData[0];
6333
- if (!firstRow.product_id_) {
6334
- MCDataUtil.setRowEditing(firstRow, true);
6335
- }
6336
- }
6337
6352
  }
6338
6353
  /**
6339
6354
  * 消耗表组件挂载时调用:只同步视图依赖,不初始化数据、不注册 watch。
@@ -6347,7 +6362,10 @@ class MaterialConsumeTableController {
6347
6362
  * 按当前 materialNoNum 回写各行 qty_required_(校验侧 total 已通过 getter 实时读取)
6348
6363
  */
6349
6364
  syncQtyRequiredFromBom() {
6350
- if (this.tmplBom.required_qty_calc_rule_ === RequiredQtyCalcRule.Custom) return;
6365
+ if (this.tmplBom.required_qty_calc_rule_ === RequiredQtyCalcRule.Custom) {
6366
+ this.updateDerivedQtyFields();
6367
+ return;
6368
+ }
6351
6369
  this.actualTableData.forEach((row) => {
6352
6370
  if (!row.product_id_) return;
6353
6371
  const util = this.bomEntriesValidator.findUtilByProductId(row.product_id_);
@@ -1,5 +1,5 @@
1
1
  import { V as commonjsGlobal, W as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
2
- import { c as commonjsRequire } from "./index-BCpitZ3H.js";
2
+ import { c as commonjsRequire } from "./index--7My1yo5.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  for (var i = 0; i < m.length; i++) {
5
5
  const e = m[i];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, createVNode, unref, normalizeClass, withCtx, normalizeStyle } from "vue";
2
2
  import { A as AlignEditor } from "./align-editor-ssy7gJsD.js";
3
3
  import { pick } from "lodash-es";
4
- import { z as _sfc_main$1, C as ColorPicker } from "./index-BCpitZ3H.js";
4
+ import { z as _sfc_main$1, C as ColorPicker } from "./index--7My1yo5.js";
5
5
  import { ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
6
6
  const _hoisted_1 = { class: "ks-row-middle mb-6px" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -6,7 +6,7 @@ import dayjs from "dayjs";
6
6
  import { useFormBaseModal, DataSourceChangeEvent, getBuiltinContextFields, DataSources, FieldFills, closeAllFormBaseModal, FormBaseModalPlugin } from "@gct-paas/form-base";
7
7
  import * as Antd from "ant-design-vue";
8
8
  import { message, Modal, Alert, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, Form, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
9
- import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, g as getBusinessFieldKey, d as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, e as getParseFormulaVarInfos, f as createRuntimeDocumentV2, h as clampSealPosition, i as normalizeSealDiameter, j as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, k as isCellAutoLineBreak, B as BorderTD, u as useFormModel, l as useFormTmplConfig, m as findFieldProfile, o as normalizeHistoricalBusinessRow, p as DeviceLinkTmplUtil, q as normalizeAIOcrTmpl, r as useWidgetStaticAttrs, s as useRuntimeInstanceServices, t as setSelectValidatorId, v as setSelectAnnotationId, w as useRuntimeRowState, x as getObjectBomMaterialLotQuery, y as buildObjectLotExtraQuery, z as resolveObjectFieldKeys, F as FormModelController, A as MaterialConsumptionPatternEnum, C as validateObjectBomForScan, E as resolveObjectBomEntry, G as runWithFillProduct, H as useNocodeFormWidget, I as applyConsumeObjectTraceChange, J as getObjectBomProductQuery, K as EMPTY_PRODUCT_VERSION_ID, L as normalizeHistoricalAutofillRow, N as readSealValue, O as isSealStamped, P as stampSealValue, Q as isValidSealValue, R as clearSealValue, S as parseRuntimeFieldPath, T as NCB_PROVIDE, U as calculateFormula, V as useStyles, W as useDependency, X as useFieldPresentation, Y as useRuntimeEditorFlusher, Z as RuntimeFormStateStore, _ as createRuntimeInstanceContext, $ as RuntimeInstanceRegistry, a0 as ScanParamType, a1 as RequiredQtyCalcRule, a2 as MBRender, a3 as MCRender, a4 as moveSealValue, a5 as DocumentPaper, a6 as DynamicTableAction, a7 as _sfc_main$6C } from "./dynamic-table-action-JR8LU5WT.js";
9
+ import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, g as getBusinessFieldKey, d as MULTI_SHEET_SCHEMA_VERSION, n as normalizeGridColumnWidth, e as getParseFormulaVarInfos, f as createRuntimeDocumentV2, h as clampSealPosition, i as normalizeSealDiameter, j as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, k as isCellAutoLineBreak, B as BorderTD, u as useFormModel, l as useFormTmplConfig, m as findFieldProfile, o as normalizeHistoricalBusinessRow, p as DeviceLinkTmplUtil, q as normalizeAIOcrTmpl, r as useWidgetStaticAttrs, s as useRuntimeInstanceServices, t as setSelectValidatorId, v as setSelectAnnotationId, w as useRuntimeRowState, x as getObjectBomMaterialLotQuery, y as buildObjectLotExtraQuery, z as resolveObjectFieldKeys, F as FormModelController, A as MaterialConsumptionPatternEnum, C as validateObjectBomForScan, E as resolveObjectBomEntry, G as runWithFillProduct, H as useNocodeFormWidget, I as applyConsumeObjectTraceChange, J as getObjectBomProductQuery, K as EMPTY_PRODUCT_VERSION_ID, L as normalizeHistoricalAutofillRow, N as readSealValue, O as isSealStamped, P as stampSealValue, Q as isValidSealValue, R as clearSealValue, S as parseRuntimeFieldPath, T as NCB_PROVIDE, U as calculateFormula, V as useStyles, W as useDependency, X as useFieldPresentation, Y as useRuntimeEditorFlusher, Z as RuntimeFormStateStore, _ as createRuntimeInstanceContext, $ as RuntimeInstanceRegistry, a0 as ScanParamType, a1 as RequiredQtyCalcRule, a2 as MBRender, a3 as MCRender, a4 as moveSealValue, a5 as DocumentPaper, a6 as DynamicTableAction, a7 as _sfc_main$6C } from "./dynamic-table-action-BKX0Oeoy.js";
10
10
  import { S as SEARCH_SEVICE, u as useWebUpload, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$6B, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DjI5GeWt.js";
11
11
  import { HttpUtil } from "@gct-paas/api";
12
12
  import { Tooltip, Grid, Table, Column, Icon as Icon$2, Edit, Validator, VxeGrid } from "vxe-table";
@@ -2016,7 +2016,7 @@ function openWindow(url, opt) {
2016
2016
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
2017
2017
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
2018
2018
  async function createWorkbook() {
2019
- const ExcelJs = (await import("./exceljs.min-wPuo8a9q.js").then((n) => n.e)).default;
2019
+ const ExcelJs = (await import("./exceljs.min-eo-E80If.js").then((n) => n.e)).default;
2020
2020
  return new ExcelJs.Workbook();
2021
2021
  }
2022
2022
  class XlsxParser {
@@ -2387,28 +2387,28 @@ class XlsxParser {
2387
2387
  }
2388
2388
  function asyncImportClassModules() {
2389
2389
  const modules = /* @__PURE__ */ Object.assign({
2390
- "./_field_/auto-complete/index.ts": () => import("./index-BIitBpK7.js").then((m) => m["default"]),
2391
- "./_field_/datepicker/index.ts": () => import("./index-Ds8UpdFP.js").then((m) => m["default"]),
2392
- "./_field_/datetimepicker/index.ts": () => import("./index-LiOm5nws.js").then((m) => m["default"]),
2393
- "./_field_/department/index.ts": () => import("./index-B_95dIym.js").then((m) => m["default"]),
2394
- "./_field_/enum-select/index.ts": () => import("./index-BX8xuu9v.js").then((m) => m["default"]),
2395
- "./_field_/input/index.ts": () => import("./index-Bk67ggPI.js").then((m) => m["default"]),
2396
- "./_field_/inputdouble/index.ts": () => import("./index-37J1K1W1.js").then((m) => m["default"]),
2397
- "./_field_/inputnumber/index.ts": () => import("./index-BoZN_3QI.js").then((m) => m["default"]),
2398
- "./_field_/rdo-select/index.ts": () => import("./index-C5izC2Mm.js").then((m) => m["default"]),
2399
- "./_field_/seal/index.ts": () => import("./index-BxaqeEUh.js").then((m) => m["default"]),
2400
- "./_field_/select/index.ts": () => import("./index-eLwoxKzH.js").then((m) => m["default"]),
2401
- "./_field_/sign/index.ts": () => import("./index-sIW7hZFQ.js").then((m) => m["default"]),
2402
- "./_field_/switch/index.ts": () => import("./index-Cg8xpa-X.js").then((m) => m["default"]),
2403
- "./_field_/textarea/index.ts": () => import("./index-CpdA5MDE.js").then((m) => m["default"]),
2404
- "./_field_/timepicker/index.ts": () => import("./index-9ipSNY71.js").then((m) => m["default"]),
2405
- "./_field_/upload-file/index.ts": () => import("./index-KMB2TBbZ.js").then((m) => m["default"]),
2406
- "./_field_/upload-image/index.ts": () => import("./index-CX2lK91Y.js").then((m) => m["default"]),
2407
- "./_field_/userpicker/index.ts": () => import("./index-C1b5ADFV.js").then((m) => m["default"]),
2390
+ "./_field_/auto-complete/index.ts": () => import("./index-DgEDg0_J.js").then((m) => m["default"]),
2391
+ "./_field_/datepicker/index.ts": () => import("./index--RhdrCZV.js").then((m) => m["default"]),
2392
+ "./_field_/datetimepicker/index.ts": () => import("./index-iYrfBvkL.js").then((m) => m["default"]),
2393
+ "./_field_/department/index.ts": () => import("./index-BBq6DSLI.js").then((m) => m["default"]),
2394
+ "./_field_/enum-select/index.ts": () => import("./index-hNdJpzws.js").then((m) => m["default"]),
2395
+ "./_field_/input/index.ts": () => import("./index-0S-kw2HL.js").then((m) => m["default"]),
2396
+ "./_field_/inputdouble/index.ts": () => import("./index-BoGFEaqo.js").then((m) => m["default"]),
2397
+ "./_field_/inputnumber/index.ts": () => import("./index-DifKRFVy.js").then((m) => m["default"]),
2398
+ "./_field_/rdo-select/index.ts": () => import("./index-NulsmEum.js").then((m) => m["default"]),
2399
+ "./_field_/seal/index.ts": () => import("./index-fcxbS2U1.js").then((m) => m["default"]),
2400
+ "./_field_/select/index.ts": () => import("./index-DzT1SZ9z.js").then((m) => m["default"]),
2401
+ "./_field_/sign/index.ts": () => import("./index-Cpn8pcne.js").then((m) => m["default"]),
2402
+ "./_field_/switch/index.ts": () => import("./index-SrAjB-wq.js").then((m) => m["default"]),
2403
+ "./_field_/textarea/index.ts": () => import("./index-NH1JcF4s.js").then((m) => m["default"]),
2404
+ "./_field_/timepicker/index.ts": () => import("./index-jTfc0zM7.js").then((m) => m["default"]),
2405
+ "./_field_/upload-file/index.ts": () => import("./index-8WHvZyAx.js").then((m) => m["default"]),
2406
+ "./_field_/upload-image/index.ts": () => import("./index-BLv5fzzG.js").then((m) => m["default"]),
2407
+ "./_field_/userpicker/index.ts": () => import("./index-BLqJtzs6.js").then((m) => m["default"]),
2408
2408
  "./_widget_/barcode/index.ts": () => import("./index-D3cPbNne.js").then((m) => m["default"]),
2409
- "./_widget_/combine-fields/index.ts": () => import("./index-up8dW1VW.js").then((m) => m["default"]),
2410
- "./_widget_/diagonal/index.ts": () => import("./index-PVGqEoN1.js").then((m) => m["default"]),
2411
- "./_widget_/dyn-value/index.ts": () => import("./index-Pgworj4S.js").then((m) => m["default"]),
2409
+ "./_widget_/combine-fields/index.ts": () => import("./index-0pYUJqWX.js").then((m) => m["default"]),
2410
+ "./_widget_/diagonal/index.ts": () => import("./index-BycDrbO0.js").then((m) => m["default"]),
2411
+ "./_widget_/dyn-value/index.ts": () => import("./index-CoKpbR25.js").then((m) => m["default"]),
2412
2412
  "./_widget_/image/index.ts": () => import("./index-D-WSp3EA.js").then((m) => m["default"]),
2413
2413
  "./_widget_/line/index.ts": () => import("./index-C6oivLbu.js").then((m) => m["default"]),
2414
2414
  "./_widget_/power/index.ts": () => import("./index-DozFqpk2.js").then((m) => m["default"]),
@@ -2418,8 +2418,8 @@ function asyncImportClassModules() {
2418
2418
  "./_widget_/sub-table/index.ts": () => import("./index-CpQiCEe7.js").then((m) => m["default"]),
2419
2419
  "./_widget_/timediff/index.ts": () => import("./index-PUFY8idd.js").then((m) => m["default"]),
2420
2420
  "./paper/index.ts": () => import("./index-Cmr9DRpz.js").then((m) => m["default"]),
2421
- "./td/index.ts": () => import("./index-DUma1ZGa.js").then((m) => m["default"]),
2422
- "./tr/index.ts": () => import("./index-DZb9l6Gw.js").then((m) => m["default"])
2421
+ "./td/index.ts": () => import("./index-9Mi1Iiw8.js").then((m) => m["default"]),
2422
+ "./tr/index.ts": () => import("./index-BMlGh5m0.js").then((m) => m["default"])
2423
2423
  });
2424
2424
  return modules;
2425
2425
  }
@@ -16190,7 +16190,7 @@ function asyncImportWidgetConfigList() {
16190
16190
  return widgetConfigList;
16191
16191
  }
16192
16192
  function asyncImportWidgetDesign() {
16193
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-BRJgX3Fr.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-CHbO1c-N.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-CwaKPsqR.js"), "./image/image-design.vue": () => import("./image-design-g9R_z-IY.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-BasHtAud.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-BWJtqIvf.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-hSEE0IFK.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-C92sT5qW.js"), "./text/text-design.vue": () => import("./text-design-DaxQodcl.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-D84T_Isx.js") });
16193
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-CeJEHJ-K.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-Mjrep3H_.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-CFBp2E-O.js"), "./image/image-design.vue": () => import("./image-design-g9R_z-IY.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-DelDPMV6.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-UPTi8CN4.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-DAYfoLN-.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-C92sT5qW.js"), "./text/text-design.vue": () => import("./text-design-BjhwgpUv.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-D84T_Isx.js") });
16194
16194
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16195
16195
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16196
16196
  if (mKey) {
@@ -56809,7 +56809,7 @@ const _sfc_main$3v = /* @__PURE__ */ defineComponent({
56809
56809
  }
56810
56810
  });
56811
56811
  function asyncImportWidgetProp() {
56812
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-CN13ewGl.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DMki09VI.js"), "./widget-image.vue": () => import("./widget-image-BP_4rlRW.js"), "./widget-line.vue": () => import("./widget-line-BkbZEHCt.js"), "./widget-pagination.vue": () => import("./widget-pagination-Bo31Q_F-.js"), "./widget-power.vue": () => import("./widget-power-DNaqREkx.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DLGoKdnQ.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-CwI-0gsT.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-4TPNnZeQ.js"), "./widget-text.vue": () => import("./widget-text-kjnijcMF.js"), "./widget-timediff.vue": () => import("./widget-timediff-CZAMM1f0.js") });
56812
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-CNB9Sqle.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-6ZDcxCwX.js"), "./widget-image.vue": () => import("./widget-image-D--Ynjra.js"), "./widget-line.vue": () => import("./widget-line-CpwqEFD9.js"), "./widget-pagination.vue": () => import("./widget-pagination-BN3wWsKq.js"), "./widget-power.vue": () => import("./widget-power-Cn61OOWe.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-BgUCM01T.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-CnNNwIo0.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-gZih5585.js"), "./widget-text.vue": () => import("./widget-text--iXnC5zl.js"), "./widget-timediff.vue": () => import("./widget-timediff-DN-FCR7T.js") });
56813
56813
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
56814
56814
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
56815
56815
  if (mKey) {
@@ -74458,7 +74458,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
74458
74458
  }
74459
74459
  });
74460
74460
  const VueVideoPlayer = defineAsyncComponent(
74461
- () => import("./VueVideoPlayer-yISI5amX.js")
74461
+ () => import("./VueVideoPlayer-CB5VHlj2.js")
74462
74462
  );
74463
74463
  const _hoisted_1$18 = {
74464
74464
  key: 0,
@@ -95977,8 +95977,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
95977
95977
  printTask = (async () => {
95978
95978
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
95979
95979
  await nextTick();
95980
- const { printRuntimeInstance } = await import("./print-runtime-instance-OTdo3422.js");
95981
- const { default: renderer } = await import("./print-snapshot-renderer-ByiTyPun.js");
95980
+ const { printRuntimeInstance } = await import("./print-runtime-instance-NcHBwPwX.js");
95981
+ const { default: renderer } = await import("./print-snapshot-renderer-Dw-xzoDx.js");
95982
95982
  if (abort.signal.aborted) throw new Error("打印已取消");
95983
95983
  printRenderer.value = markRaw(renderer);
95984
95984
  await printRuntimeInstance(
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Datepicker extends BaseComponent {
9
9
  component = ComponentTypeEnum.Datepicker;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Input extends BaseComponent {
9
9
  component = ComponentTypeEnum.Input;
10
10
  wrapperCmpConfig({ data }) {
@@ -5,7 +5,7 @@ import { pick } from "lodash-es";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
7
7
  import "ant-design-vue";
8
- import { n as normalizeSpacerWidth, g as getFieldWidget } from "./index-BCpitZ3H.js";
8
+ import { n as normalizeSpacerWidth, g as getFieldWidget } from "./index--7My1yo5.js";
9
9
  class CombineFields {
10
10
  component = ComponentTypeEnum.CombineFields;
11
11
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class UploadFile extends BaseComponent {
9
9
  component = ComponentTypeEnum.UploadFile;
10
10
  wrapperCmpConfig({ data }) {
@@ -1,6 +1,6 @@
1
1
  import { pick, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-BCpitZ3H.js";
3
- import { k as isCellAutoLineBreak } from "./dynamic-table-action-JR8LU5WT.js";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index--7My1yo5.js";
3
+ import { k as isCellAutoLineBreak } from "./dynamic-table-action-BKX0Oeoy.js";
4
4
  import { C as ComponentTypeEnum, H as CellType, q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "vue";
6
6
  import "dayjs";
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Department extends BaseComponent {
9
9
  component = ComponentTypeEnum.Department;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Userpicker extends BaseComponent {
9
9
  component = ComponentTypeEnum.Userpicker;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class UploadImage extends BaseComponent {
9
9
  component = ComponentTypeEnum.UploadImage;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import { pick, has, isEmpty, cloneDeep, get } from "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { A as AsyncGctOnlineComponents } from "./index-BCpitZ3H.js";
7
+ import { A as AsyncGctOnlineComponents } from "./index--7My1yo5.js";
8
8
  class Tr {
9
9
  component = "tr";
10
10
  wrapperCmpConfig({ data, parent }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class InputDouble extends BaseComponent {
9
9
  component = ComponentTypeEnum.InputDouble;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import { pick } from "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Diagonal extends BaseComponent {
9
9
  component = ComponentTypeEnum.Diagonal;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class DynValue extends BaseComponent {
9
9
  component = ComponentTypeEnum.DynValue;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Sign extends BaseComponent {
9
9
  component = ComponentTypeEnum.Sign;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,8 +4,8 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-Dc2qmQo_.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-DHb2jlre.js";
9
9
  class AutoComplete extends BaseComponent {
10
10
  component = ComponentTypeEnum.AutoComplete;
11
11
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class InputNumber extends BaseComponent {
9
9
  component = ComponentTypeEnum.Inputnumber;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,8 +4,8 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-BCpitZ3H.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index--7My1yo5.js";
9
9
  class Select extends BaseComponent {
10
10
  component = ComponentTypeEnum.Select;
11
11
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Textarea extends BaseComponent {
9
9
  component = ComponentTypeEnum.Textarea;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,8 +4,8 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-Dc2qmQo_.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-DHb2jlre.js";
9
9
  class RdoSelect extends BaseComponent {
10
10
  component = ComponentTypeEnum.RdoSelect;
11
11
  wrapperCmpConfig({ data }) {
@@ -1,12 +1,12 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { j as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-JR8LU5WT.js";
2
+ import { j as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-BKX0Oeoy.js";
3
3
  import { C as ComponentTypeEnum, O as Orientation, a5 as BooleanShowMode, a4 as LabelPosition, b9 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
7
7
  import "ant-design-vue";
8
- import { g as getFieldWidget } from "./index-BCpitZ3H.js";
9
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
+ import { g as getFieldWidget } from "./index--7My1yo5.js";
9
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
10
10
  class Switch extends BaseComponent {
11
11
  component = ComponentTypeEnum.Switch;
12
12
  wrapperCmpConfig({ data }) {
@@ -2,10 +2,10 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
2
2
  import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
- import { i as normalizeSealDiameter } from "./dynamic-table-action-JR8LU5WT.js";
5
+ import { i as normalizeSealDiameter } from "./dynamic-table-action-BKX0Oeoy.js";
6
6
  import "@gct-paas/form-base";
7
7
  import "ant-design-vue";
8
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
9
9
  class Seal extends BaseComponent {
10
10
  component = ComponentTypeEnum.Seal;
11
11
  wrapperCmpConfig({ data }) {
@@ -4,8 +4,8 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
8
- import { g as getFieldWidget } from "./index-BCpitZ3H.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
+ import { g as getFieldWidget } from "./index--7My1yo5.js";
9
9
  class EnumSelect extends BaseComponent {
10
10
  component = ComponentTypeEnum.EnumSelect;
11
11
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class DateTimepicker extends BaseComponent {
9
9
  component = ComponentTypeEnum.DateTimepicker;
10
10
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-9hkBjQjp.js";
7
+ import { B as BaseComponent } from "./BaseComponent-gOtXQLY_.js";
8
8
  class Timepicker extends BaseComponent {
9
9
  component = ComponentTypeEnum.Timepicker;
10
10
  wrapperCmpConfig({ data }) {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H, J, K, M, N, O, Q, U, W, B, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, x, aa, ab, y, ac, P, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, h } from "./index-BCpitZ3H.js";
1
+ import { H, J, K, M, N, O, Q, U, W, B, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, x, aa, ab, y, ac, P, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, h } from "./index--7My1yo5.js";
2
2
  import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DjI5GeWt.js";
3
3
  import { DataSources } from "@gct-paas/form-base";
4
4
  export {
@@ -4,7 +4,7 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { j as calcText } from "./index-BCpitZ3H.js";
7
+ import { j as calcText } from "./index--7My1yo5.js";
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "pagination-design",
10
10
  props: {
@@ -0,0 +1,4 @@
1
+ import { k as _sfc_main } from "./index--7My1yo5.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,4 +1,4 @@
1
- import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-BCpitZ3H.js";
1
+ import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index--7My1yo5.js";
2
2
  async function printRuntimeInstance(record, basicInfo, renderSnapshot, signal, options = {}) {
3
3
  if (!record.controller) throw new Error("表单尚未完成初始化,暂时无法打印");
4
4
  const snapshot = await record.controller.preparePrintSnapshot(
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, provide, ref, onErrorCaptured, onBeforeUnmount, openBlock, createBlock, unref } from "vue";
2
- import { Z as RuntimeFormStateStore, $ as RuntimeInstanceRegistry, T as NCB_PROVIDE } from "./dynamic-table-action-JR8LU5WT.js";
3
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-D6MHOXzJ.js";
4
- import { _ as _sfc_main$1 } from "./index-BCpitZ3H.js";
2
+ import { Z as RuntimeFormStateStore, $ as RuntimeInstanceRegistry, T as NCB_PROVIDE } from "./dynamic-table-action-BKX0Oeoy.js";
3
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-v9spfnMN.js";
4
+ import { _ as _sfc_main$1 } from "./index--7My1yo5.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "print-snapshot-renderer",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
2
- import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-BCpitZ3H.js";
2
+ import { B as BwipCodeTypeOptions, l as loadBwip } from "./index--7My1yo5.js";
3
3
  const _hoisted_1 = ["src"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "qrcode-design",
@@ -0,0 +1,4 @@
1
+ import { f as _sfc_main } from "./index--7My1yo5.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
2
2
  import { ac as useNamespace, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
3
- import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-BCpitZ3H.js";
3
+ import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index--7My1yo5.js";
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "single-field-drop",
6
6
  props: {
@@ -42,8 +42,10 @@ export declare class MaterialConsumeTableController {
42
42
  mainFormState: Ref<any>;
43
43
  /** 表单数据状态(由 factory bindRuntime 注入):未填报 / STASH / SUBMIT */
44
44
  dataStatus?: string;
45
- /** factory 是否已绑定过运行时(避免重复 initTableData) */
46
- private runtimeBound;
45
+ /** 实例数据只在 LOADED 前准备一次,运行时绑定不再重新生成行。 */
46
+ private initialDataPrepared;
47
+ /** 最近一次同步需求数量时使用的数量依赖。 */
48
+ private syncedMaterialNoNum;
47
49
  /** 表单是否已暂存或提交(已处理过则不再跑初始化) */
48
50
  get isDataProcessed(): boolean;
49
51
  /** 批次数量或生产数量 */
@@ -166,15 +168,20 @@ export declare class MaterialConsumeTableController {
166
168
  openScanModal(opts: {
167
169
  title: string;
168
170
  }): Promise<void>;
169
- /**
170
- * 表单加载时由 factory 调用:绑定稳定数据源并初始化行数据。
171
- * 不在分页组件 setup 中调用,避免跨页挂载重复 init。
172
- */
171
+ /** Store 创建前准备物料行和数量,全部 Sheet 的 LOADED 共用这份数据。 */
172
+ prepareInitialData(opts: {
173
+ formState: Record<string, any>;
174
+ field: string;
175
+ dataStatus?: string;
176
+ defaultRowData?: Record<string, any>;
177
+ }): void;
178
+ /** 数量依赖实际变化时才重算,避免首次绑定覆盖 LOADED 中的回填。 */
179
+ syncQtyRequiredFromBomIfChanged(): void;
180
+ /** 只绑定运行时 Store,不重新生成行或修改行内容。 */
173
181
  bindRuntime(opts: {
174
182
  tableDataRef: Ref<any>;
175
183
  mainFormState?: Ref<any>;
176
184
  dataStatus?: string;
177
- defaultRowData?: Record<string, any>;
178
185
  }): void;
179
186
  /**
180
187
  * 消耗表组件挂载时调用:只同步视图依赖,不初始化数据、不注册 watch。
@@ -89,6 +89,14 @@ export declare class FormTmplBomController {
89
89
  * @param defaultMap
90
90
  */
91
91
  handleDefaultMap(defaultMap: Record<string, any>): void;
92
+ /** 全部 Sheet 的消耗表统一在 LOADED 前准备。 */
93
+ initializeFormState(opts: {
94
+ formState: Record<string, any>;
95
+ dataStatus?: string;
96
+ defaultDataMap: Record<string, any>;
97
+ }): void;
98
+ /** 钩子若修改数量依赖,在创建 Store 和分页前按原规则重算。 */
99
+ finalizeInitialQuantities(): void;
92
100
  submitValidate(): Promise<{
93
101
  isValid: boolean;
94
102
  fields: Record<string, any[]> | undefined;
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive } from "vue";
2
- import { b2 as SubTableActionMenuTypeEnum, b3 as getMenuByAction, b4 as SubTableActionEnum, b5 as resolveScanFillData, aJ as SubTableCore, b6 as buildDefaultMapFromProfile, b7 as buildFieldStatusFromProfile, b8 as getRowHandlersForFieldChange, b9 as getInsertSubMenu, ba as resolveScanAdjustType, bb as resolveScanQty, bc as toDateOnly, bd as hasSubtableBusinessData, be as getCopySubMenu, bf as resolveScanParsedValue, bg as isProductBatchEmptyRow } from "./dynamic-table-action-JR8LU5WT.js";
2
+ import { b2 as SubTableActionMenuTypeEnum, b3 as getMenuByAction, b4 as SubTableActionEnum, b5 as resolveScanFillData, aJ as SubTableCore, b6 as buildDefaultMapFromProfile, b7 as buildFieldStatusFromProfile, b8 as getRowHandlersForFieldChange, b9 as getInsertSubMenu, ba as resolveScanAdjustType, bb as resolveScanQty, bc as toDateOnly, bd as hasSubtableBusinessData, be as getCopySubMenu, bf as resolveScanParsedValue, bg as isProductBatchEmptyRow } from "./dynamic-table-action-BKX0Oeoy.js";
3
3
  import { p as api, cD as F$1, aR as resolveLotDisplayLabel, cE as FILL_FROM_TARGET_PRODUCT_OPTION, b3 as resolveLotRecordByValue, b8 as ProductionIdentificationTypeEnum, b1 as buildLotSnListQuery, cF as F$2, cG as SCAN_ROW_CONTENT_FIELDS, cH as F$3, cI as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cJ as F$4, cK as F$5, cL as FILL_FROM_SOURCE_PRODUCT_OPTION, cM as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cN as FILL_FROM_INVENTORY_OPTION, cO as FILL_FROM_PART_OPTION, cP as FILL_FROM_INVENTORY_OPTION$1, cQ as TABLE_TYPE, cR as FILL_FROM_INVENTORY_OPTION$2, be as F$6, cS as INVENTORY_BASE_FIELDS, cT as resolveGroupByWarehouse, cU as AUTO_LOAD_READONLY_SELECT_FIELDS, bd as STOCKTAKE_DIMENSION, ba as getParseRuleInfo, cV as buildFillFromInventoryOption, b$ as calcFillData, cW as resolveStocktakeInventoryApi, bb as getParseRuleValue, cX as F$7, cY as FILL_FROM_INVENTORY_OPTION$3, cZ as LOCKED_INPUT_FIELDS, c5 as extractKeywordFromQueryData, c_ as composeProductionLotListQuery, c$ as F$8, d0 as isProductManuallyEditable, d1 as applyFillFromMfgOrderOption, d2 as applyFillFromOption$1, d3 as applyFillFromProductOption, d4 as mergeQueryFilters, d5 as composeMaterialLotListQuery, b0 as LOT_CONTAINER_ROLE, d6 as MATERIAL_CONTAINER_ID, d7 as F$9, d8 as PRODUCT_QUICK_SEARCH_FIELDS, d9 as PRODUCT_QUICK_SEARCH_EXP, da as isProductManuallyEditable$1, db as applyFillFromMaterialNoOption, dc as applyFillFromProductOption$1, dd as F$a, de as FILL_FROM_INVENTORY_OPTION$4, a0 as FormTypeEnum, aM as transformUtils, h as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
4
4
  import { has, merge } from "lodash-es";
5
5
  class RuntimeInstanceController {
@@ -4,7 +4,7 @@ import { X as PaperWidgeValueType, ad as _export_sfc } from "./dynamic-table-act
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { u as useSpreadSheet, h as useModelFields } from "./index-BCpitZ3H.js";
7
+ import { u as useSpreadSheet, h as useModelFields } from "./index--7My1yo5.js";
8
8
  const _hoisted_1 = { class: "ws-pre-wrap" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "text-design",
@@ -4,7 +4,7 @@ import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-BCpitZ3H.js";
7
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index--7My1yo5.js";
8
8
  function getTraceLikeSelectProps(data) {
9
9
  const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
10
10
  const displayFields = (() => {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-BCpitZ3H.js";
3
+ import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index--7My1yo5.js";
4
4
  import { X as PaperWidgeValueType, aw as ExpressionModeEnum, ay as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BCpitZ3H.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-yM2HYifj.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index--7My1yo5.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CV1HsENd.js";
4
4
  import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
2
- import { F as FormItem, q as SelectEx } from "./index-BCpitZ3H.js";
2
+ import { F as FormItem, q as SelectEx } from "./index--7My1yo5.js";
3
3
  import { defaults } from "lodash-es";
4
4
  import { ac as useNamespace, F as FIELD_TYPE, ad as _export_sfc, am as DiagonalDirection, aq as DiagonalVertex, cm as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
7
7
  import { message } from "ant-design-vue";
8
- import { S as SingleFieldDrop } from "./single-field-drop-MFIjdRrG.js";
8
+ import { S as SingleFieldDrop } from "./single-field-drop-BcuqHgNO.js";
9
9
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10
10
  __name: "diagonal-name-editor",
11
11
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
2
- import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-BCpitZ3H.js";
2
+ import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index--7My1yo5.js";
3
3
  import { S as SizeEditor } from "./size-editor-JdHGylGx.js";
4
4
  import { message } from "ant-design-vue";
5
5
  import { an as WidgetImageSizeMode, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
@@ -4,7 +4,7 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-BCpitZ3H.js";
7
+ import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index--7My1yo5.js";
8
8
  const _hoisted_1 = { class: "ks-row-middle" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "widget-line",
@@ -4,10 +4,10 @@ import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { F as FormItem, y as PaginationFormatOptions } from "./index-BCpitZ3H.js";
7
+ import { F as FormItem, y as PaginationFormatOptions } from "./index--7My1yo5.js";
8
8
  import { S as SizeEditor } from "./size-editor-JdHGylGx.js";
9
9
  import { A as AlignEditor } from "./align-editor-ssy7gJsD.js";
10
- import { F as FontEditor } from "./font-editor-CGJQio2h.js";
10
+ import { F as FontEditor } from "./font-editor-CAZX85G4.js";
11
11
  const _hoisted_1 = { class: "pl-6px" };
12
12
  const _hoisted_2 = { class: "pl-6px" };
13
13
  const DefaultCustomFormat = "Page ${no} / ${total}";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-BCpitZ3H.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-MFIjdRrG.js";
2
+ import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index--7My1yo5.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-BcuqHgNO.js";
4
4
  import { F as FIELD_TYPE, ac as useNamespace, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import { message } from "ant-design-vue";
6
6
  import "lodash-es";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
2
- import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BCpitZ3H.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-yM2HYifj.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index--7My1yo5.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CV1HsENd.js";
4
4
  import { q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import "lodash-es";
6
6
  import "dayjs";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-BCpitZ3H.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-MFIjdRrG.js";
2
+ import { F as FormItem } from "./index--7My1yo5.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-BcuqHgNO.js";
4
4
  import { F as FIELD_TYPE, ac as useNamespace, ad as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
5
5
  import { message } from "ant-design-vue";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-BCpitZ3H.js";
2
+ import { F as FormItem } from "./index--7My1yo5.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "widget-serialnumber",
5
5
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, F as FormItem } from "./index-BCpitZ3H.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-yM2HYifj.js";
2
+ import { u as useSpreadSheet, F as FormItem } from "./index--7My1yo5.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-CV1HsENd.js";
4
4
  import { S as SizeEditor } from "./size-editor-JdHGylGx.js";
5
5
  import { A as AlignEditor } from "./align-editor-ssy7gJsD.js";
6
- import { F as FontEditor } from "./font-editor-CGJQio2h.js";
6
+ import { F as FontEditor } from "./font-editor-CAZX85G4.js";
7
7
  const _hoisted_1 = { class: "pl-6px" };
8
8
  const _hoisted_2 = { class: "pl-6px" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
2
- import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-BCpitZ3H.js";
2
+ import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index--7My1yo5.js";
3
3
  import { F as FIELD_TYPE, ap as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BsyVWing.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/excel",
3
- "version": "0.1.40-beta.24",
3
+ "version": "0.1.40-beta.25",
4
4
  "description": "GCT Excel online form rendering",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@ant-design/icons-vue": "^6.1.0",
47
47
  "@gct-paas/core": "0.1.6-dev.41",
48
- "@gct-paas/form-base": "0.1.6-beta.2",
48
+ "@gct-paas/form-base": "0.1.6-beta.3",
49
49
  "@gct-paas/scss": "0.1.6-dev.41",
50
50
  "@panzoom/panzoom": "^4.6.2",
51
51
  "@revolist/vue3-datagrid": "^4.24.2",
@@ -1,4 +0,0 @@
1
- import { k as _sfc_main } from "./index-BCpitZ3H.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f as _sfc_main } from "./index-BCpitZ3H.js";
2
- export {
3
- _sfc_main as default
4
- };