@gct-paas/excel 0.1.33 → 0.1.35

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 (55) hide show
  1. package/dist/{BaseComponent-QH47BZYH.js → BaseComponent-C-T3bipZ.js} +1 -1
  2. package/dist/{barcode-design-DiIS1gNc.js → barcode-design-B11QXZvG.js} +1 -1
  3. package/dist/base/index.es.js +22 -8
  4. package/dist/{diagonal-design-Dlq2NlNE.js → diagonal-design-B6qOpgJB.js} +1 -1
  5. package/dist/{dynamic-table-action-D-axSJVP.js → dynamic-table-action-ClvCYTXt.js} +12 -4
  6. package/dist/{exceljs.min-CqMyKpM3.js → exceljs.min-wkM2JRWA.js} +1 -1
  7. package/dist/{font-editor-YZwEiqSS.js → font-editor-qk8ye00Z.js} +1 -1
  8. package/dist/{index-BoGQt_z8.js → index-98JlcyIh.js} +2 -2
  9. package/dist/{index-vqXiNAFc.js → index-B0CE87b5.js} +2 -2
  10. package/dist/{index-DM5va-M0.js → index-B4SeHIvj.js} +2 -2
  11. package/dist/{index-SmWabE6L.js → index-BHTh3IKd.js} +1 -1
  12. package/dist/{index-DSxQW0Eu.js → index-BHihG6wo.js} +2 -2
  13. package/dist/{index-B0n76qw3.js → index-BNd6EBaX.js} +1 -1
  14. package/dist/{index-BoIfj26G.js → index-BReNIvpZ.js} +1 -1
  15. package/dist/{index-UuC3K_km.js → index-BbxeAoGv.js} +1 -1
  16. package/dist/{index-BZLUBq9c.js → index-BsAib_T0.js} +1 -1
  17. package/dist/{index-C-kqDeYD.js → index-C4WGrLrq.js} +1 -1
  18. package/dist/{index-JBw-iMqr.js → index-CMyaYX19.js} +1 -1
  19. package/dist/{index-DOe_vbNZ.js → index-COIKVzHE.js} +1 -1
  20. package/dist/{index-WWP_bNEW.js → index-CSOaeJHs.js} +43 -29
  21. package/dist/{index-BpiiOmU7.js → index-CUVo4Y3e.js} +1 -1
  22. package/dist/{index-BRlNzGtZ.js → index-CZ19OTa-.js} +1 -1
  23. package/dist/{index-BzLs7VMv.js → index-CmKaq9BA.js} +1 -1
  24. package/dist/{index-BBMWNymr.js → index-DEPdSmRz.js} +1 -1
  25. package/dist/{index-CUqEO4di.js → index-Da3dLccm.js} +1 -1
  26. package/dist/{index-G4AQrMgx.js → index-DblJyfD1.js} +2 -2
  27. package/dist/{index-BsINOoan.js → index-DyYIAGuW.js} +1 -1
  28. package/dist/{index-jcNuZQe-.js → index-Yak4dcr8.js} +1 -1
  29. package/dist/{index-BerwVhz-.js → index-ZPbeIApi.js} +1 -1
  30. package/dist/{index-yioAk3Lm.js → index-hlChb3S5.js} +1 -1
  31. package/dist/index.es.js +1 -1
  32. package/dist/{pagination-design-Bxtn0Tcj.js → pagination-design-e6YmfypM.js} +1 -1
  33. package/dist/paper-widget-design-DNgkKQGY.js +4 -0
  34. package/dist/{qrcode-design-C_Ps-Wb2.js → qrcode-design-B8OeEjHi.js} +1 -1
  35. package/dist/{single-field-drop-DmFtvydW.js → single-field-drop-DtXqBBy7.js} +1 -1
  36. package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +2 -0
  37. package/dist/src/nocode-base/src/core/sub-table/sterilize-batch-table-core.d.ts +1 -0
  38. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -0
  39. package/dist/src/online-form/src/views/render/__components__/_common_/widget-component.vue.d.ts +3 -1
  40. package/dist/{text-design-Cl9vHbq5.js → text-design-DpCprqkB.js} +1 -1
  41. package/dist/{trace-like-wrapper-De2qx1IG.js → trace-like-wrapper-aVtmhEpO.js} +1 -1
  42. package/dist/{value-editor.vue_vue_type_style_index_0_lang-DqROGWNL.js → value-editor.vue_vue_type_style_index_0_lang-C98Wj3QJ.js} +1 -1
  43. package/dist/{widget-barcode-DgC3sCzk.js → widget-barcode-fA706IEU.js} +2 -2
  44. package/dist/{widget-diagonal-vIXLuLtX.js → widget-diagonal-DJIIPhRm.js} +2 -2
  45. package/dist/{widget-image-BzIWHWyi.js → widget-image-iA5POujb.js} +1 -1
  46. package/dist/{widget-line-LJwGVJug.js → widget-line-bjO0OmRM.js} +1 -1
  47. package/dist/{widget-pagination-ri_4BLdH.js → widget-pagination-CCWAQS5T.js} +2 -2
  48. package/dist/{widget-power-DwS4V4oM.js → widget-power-D3TkaSwc.js} +2 -2
  49. package/dist/{widget-qrcode-BDwZdgpF.js → widget-qrcode-B1ohZ9gB.js} +2 -2
  50. package/dist/{widget-rangelimit-BAzKSvjH.js → widget-rangelimit-D8F6Ryvq.js} +2 -2
  51. package/dist/{widget-serialnumber-IxaRP9FK.js → widget-serialnumber-CWpzTsBq.js} +1 -1
  52. package/dist/{widget-text-BASemodd.js → widget-text-Ouno0e1_.js} +3 -3
  53. package/dist/{widget-timediff-BcxQF4ra.js → widget-timediff-biUSdm8e.js} +1 -1
  54. package/package.json +1 -1
  55. package/dist/paper-widget-design-DjqAUl3n.js +0 -4
@@ -1,4 +1,4 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-D-axSJVP.js";
1
+ import { n as normalizeFieldWidth } from "./dynamic-table-action-ClvCYTXt.js";
2
2
  import { get, pick } from "lodash-es";
3
3
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
4
4
  class BaseComponent {
@@ -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, d as useModelFields, l as loadBwip } from "./index-WWP_bNEW.js";
3
+ import { u as useSpreadSheet, d as useModelFields, l as loadBwip } from "./index-CSOaeJHs.js";
4
4
  import { M as PaperWidgeValueType, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,7 +1,7 @@
1
1
  import { bp as fetchHistoryConsume, bq as isBomGranted, F as FIELD_TYPE, z as api, br as F$1, bs as F$2, bt as runRowHandler, h as getProfileByTableType, f as isBusinessSubTableProfile, bu as F$3, bv as F$4, bw as FILL_FROM_INVENTORY_OPTION, bx as FILL_FROM_PART_OPTION, by as FILL_FROM_INVENTORY_OPTION$1, bz as TABLE_TYPE, bA as FILL_FROM_INVENTORY_OPTION$2, b5 as F$5, bB as INVENTORY_BASE_FIELDS, bC as resolveGroupByWarehouse, bD as AUTO_LOAD_READONLY_SELECT_FIELDS, b4 as STOCKTAKE_DIMENSION, b1 as getParseRuleInfo, bE as buildFillFromInventoryOption, bF as calcFillData, bG as resolveStocktakeInventoryApi, b2 as getParseRuleValue, bH as F$6, bI as FILL_FROM_INVENTORY_OPTION$3, bJ as extractKeywordFromQueryData, bK as composeProductionLotListQuery, aF as resolveLotDisplayLabel, bL as F$7, bM as isProductManuallyEditable, bN as applyFillFromMfgOrderOption, bO as applyFillFromOption$1, bP as applyFillFromProductOption, aT as LOT_CONTAINER_ROLE, bQ as MATERIAL_CONTAINER_ID, bR as F$8, bS as PRODUCT_QUICK_SEARCH_FIELDS, bT as PRODUCT_QUICK_SEARCH_EXP, bU as isProductManuallyEditable$1, bV as applyFillFromMaterialNoOption, bW as applyFillFromProductOption$1, bX as F$9, bY as FILL_FROM_INVENTORY_OPTION$4, V as FormTypeEnum, bb as transformUtils, l as SubTableType, aW as NCB_PROVIDE, bZ as settleAndValidateDisplay, b_ as unregisterValidationContext, b$ as clearFormRules, c0 as registerValidationContext, C as ComponentTypeEnum, bf as RenderModeEnum, c1 as requestFullValidation, c2 as requestDisplayValidation, aV as renderUtils, c3 as closeValidatorPopovers, c4 as baseDataUtils, c5 as getRawFormRuleMeta, c6 as enrichFormChangeRowDetails, c7 as settleAfterModeSwitch, c8 as calcUtils, aG as CheckDsTypeEnum, Z as PlatformEnum, c9 as uuid2, ca as normalizeToArray, cb as safeParseArray, cc as BpmnNodeTypeEnum, cd as mergeByMultiKey, bo as useNocodeEmitter, ce as commonUtils, aE as EntityModelCategoryEnum, cf as getRowId, cg as collectFormChangeFieldLocations, ch as nextFormChangeRowViewHistoryId } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
2
  import { aJ, aL, b0, $, ci, cj, B, ck, x, ab, cl, cm, cn, bd, co, aS, au, aK, aH, aI, cp, ac, ag, cq, cr, aB, aa, av, aN, _, ae, L, cs, ct, O, o, P, a6, n, M, aM, cu, at, as, a2, a0, a1, a3, cv, af, aj, ad, cw, cx, cy, bc, cz, cA, cB, cC, cD, cE, cF, cG, cH, cI, cJ, aZ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, aY, cY, b7, cZ, c_, c$, ba, d0, d1, d2, d3, ah, q, d4, d5, aR, d6, aQ, aO, d7, N, b3, bg, a$, d8, be, aP, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
3
- import { M as MaterialConsumptionPatternEnum, o as MaterialConsumeTableController, i as isEdhrSuite, p as SubTableCore, q as SubTableActionMenuTypeEnum, s as getMenuByAction, t as SubTableActionEnum, w as getInsertSubMenu, x as resolveScanAdjustType, y as resolveScanQty, z as toDateOnly, A as getCopySubMenu, C as resolveScanParsedValue, F as resolveScanFillData, G as isProductBatchEmptyRow, H as useMaterialBalance, J as validate, K as validateObjectBomQtyOnSubmit } from "../dynamic-table-action-D-axSJVP.js";
4
- import { B as B2, L as L2, D, _ as _2, N as N2, l, O as O2, m, E, P as P2, Q, I, T, U, e, b, f, V, g, h, W, X, Y, Z, c, r, d, u, j, a, k, v } from "../dynamic-table-action-D-axSJVP.js";
3
+ import { M as MaterialConsumptionPatternEnum, o as MaterialConsumeTableController, i as isEdhrSuite, p as SubTableCore, q as SubTableActionMenuTypeEnum, s as getMenuByAction, t as SubTableActionEnum, w as getInsertSubMenu, x as resolveScanAdjustType, y as resolveScanQty, z as toDateOnly, A as getCopySubMenu, C as resolveScanParsedValue, F as resolveScanFillData, G as isProductBatchEmptyRow, H as useMaterialBalance, J as validate, K as validateObjectBomQtyOnSubmit } from "../dynamic-table-action-ClvCYTXt.js";
4
+ import { B as B2, L as L2, D, _ as _2, N as N2, l, O as O2, m, E, P as P2, Q, I, T, U, e, b, f, V, g, h, W, X, Y, Z, c, r, d, u, j, a, k, v } from "../dynamic-table-action-ClvCYTXt.js";
5
5
  import { ref, provide, watch, computed, onUnmounted, onBeforeMount } from "vue";
6
6
  import { defaults, has, merge, isEmpty, cloneDeep, debounce } from "lodash-es";
7
7
  import "dayjs";
@@ -1118,7 +1118,7 @@ function applyFillFromOption(A, B4) {
1118
1118
  const writableA = A;
1119
1119
  fillFromOption.forEach(({ optionField, toField }) => {
1120
1120
  if (has(B4, optionField)) {
1121
- writableA[toField] = B4[optionField];
1121
+ writableA[toField] = toField === F2.productionDate ? toDateOnly(B4[optionField]) : B4[optionField];
1122
1122
  }
1123
1123
  });
1124
1124
  return A;
@@ -1263,7 +1263,7 @@ class SterilizeBatchTableCore extends SubTableCore {
1263
1263
  const { field, option, value, rowData } = params;
1264
1264
  if (field !== F2.productionContainer) return;
1265
1265
  if (option) {
1266
- applyFillFromOption(rowData, option);
1266
+ applyFillFromOption(rowData, option._item ?? option);
1267
1267
  return;
1268
1268
  }
1269
1269
  if (value == null || value === "") {
@@ -1272,6 +1272,15 @@ class SterilizeBatchTableCore extends SubTableCore {
1272
1272
  });
1273
1273
  }
1274
1274
  };
1275
+ prepareSubmitFormState(formState) {
1276
+ const rows = formState[this.subFieldKey];
1277
+ if (!Array.isArray(rows)) return;
1278
+ rows.forEach((row) => {
1279
+ if (row?.[F2.productionDate] != null && row[F2.productionDate] !== "") {
1280
+ row[F2.productionDate] = toDateOnly(row[F2.productionDate]);
1281
+ }
1282
+ });
1283
+ }
1275
1284
  async onScan(input) {
1276
1285
  const parsed = resolveScanParsedValue(input);
1277
1286
  if (!parsed || !hasProductionIdentificationScanKey(parsed)) {
@@ -1928,6 +1937,10 @@ class SubTableCoreFactory {
1928
1937
  }
1929
1938
  });
1930
1939
  }
1940
+ /** 提交前让各子表处理表单副本 */
1941
+ prepareSubmitFormState(formState) {
1942
+ Object.values(this.coreMap).forEach((core) => core.prepareSubmitFormState(formState));
1943
+ }
1931
1944
  /**
1932
1945
  * 处理子表字段的默认值映射
1933
1946
  * 往已有的默认值映射里补充额外的默认值
@@ -2787,10 +2800,11 @@ function useRenderPageFactory(props, payload) {
2787
2800
  const getFormState = (uniqueId) => {
2788
2801
  const formState = formStateMap.value?.[uniqueId];
2789
2802
  const dataCenter = dataCenterMap.value?.[uniqueId];
2790
- return transformUtils.getSubmitFormData(
2791
- cloneDeep(formState),
2792
- dataCenter[ComponentTypeEnum.PAPER]
2793
- );
2803
+ const submitFormState = cloneDeep(formState);
2804
+ if (submitFormState) {
2805
+ subTableCoreFactoryMap.value[uniqueId]?.prepareSubmitFormState(submitFormState);
2806
+ }
2807
+ return transformUtils.getSubmitFormData(submitFormState, dataCenter[ComponentTypeEnum.PAPER]);
2794
2808
  };
2795
2809
  const setFromEditStatus = async (uniqueId) => {
2796
2810
  payload.onFinisher && payload.onFinisher(props.selfId, RenderModeEnum.FormMode);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock } from "vue";
2
- import { d as useModelFields, D as Diagonal } from "./index-WWP_bNEW.js";
2
+ import { d as useModelFields, D as Diagonal } from "./index-CSOaeJHs.js";
3
3
  import { ah as resolveDiagonalVertex, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
4
4
  import "lodash-es";
5
5
  import "dayjs";
@@ -3136,6 +3136,9 @@ class SubTableCore {
3136
3136
  handleInitializeFormState(_params) {
3137
3137
  return void 0;
3138
3138
  }
3139
+ /** 提交前处理当前子表的数据(由工厂在表单副本上调用) */
3140
+ prepareSubmitFormState(_formState) {
3141
+ }
3139
3142
  /**
3140
3143
  * 计算每行的行操作的菜单
3141
3144
  * @param rowData
@@ -5606,11 +5609,16 @@ const DocumentPaper = /* @__PURE__ */ defineComponent({
5606
5609
  quickFill
5607
5610
  } = table;
5608
5611
  const {
5612
+ l: leftNo,
5609
5613
  r: rightNo,
5610
5614
  t: topNo
5611
5615
  } = range;
5612
- const firstTrId = widgetCenter[ComponentTypeEnum.PAPER].nextIds[topNo - 1];
5613
- const lastTdId_inFirstTr = widgetCenter[firstTrId].nextIds[rightNo - 1];
5616
+ const firstTrId = table.topTrId ?? widgetCenter[ComponentTypeEnum.PAPER].nextIds[topNo - 1];
5617
+ const actionTdId = widgetCenter[firstTrId]?.nextIds.slice(leftNo - 1, rightNo).reverse().find((tdId) => {
5618
+ const td = widgetCenter[tdId];
5619
+ return td?.cellValueType && !td.cellHidden;
5620
+ });
5621
+ if (!actionTdId) return;
5614
5622
  const columns = Object.values(widgetCenter[ComponentTypeEnum.PAPER].props.fixedTableFieldMap || {}).filter((o) => o.fieldMeta?.subFieldKey === subFieldKey).map((o) => {
5615
5623
  const {
5616
5624
  fieldMeta,
@@ -5623,7 +5631,7 @@ const DocumentPaper = /* @__PURE__ */ defineComponent({
5623
5631
  };
5624
5632
  });
5625
5633
  const columnKeys = columns.map((c) => c.prop);
5626
- map[lastTdId_inFirstTr] = {
5634
+ map[actionTdId] = {
5627
5635
  subFieldKey,
5628
5636
  subModelKey,
5629
5637
  range,
@@ -5867,7 +5875,7 @@ const DocumentPaper = /* @__PURE__ */ defineComponent({
5867
5875
  ...widgetAttrs,
5868
5876
  dynamicConfig
5869
5877
  }) : null,
5870
- // [固定表]右上角 加装 操作按钮
5878
+ // 在[固定表]顶部的可见单元格上加装操作按钮
5871
5879
  tableAction: (() => {
5872
5880
  const fixedTableActionVisible = fixedTableInfo?.quickFillVisible && !filledFixedTableKeys.value.includes(fixedTableInfo.subFieldKey);
5873
5881
  return () => fixedTableActionVisible ? createVNode(_sfc_main$2, {
@@ -1,5 +1,5 @@
1
1
  import { I as commonjsGlobal, J as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
- import { c as commonjsRequire } from "./index-WWP_bNEW.js";
2
+ import { c as commonjsRequire } from "./index-CSOaeJHs.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-Bk5NBwxp.js";
3
3
  import { pick } from "lodash-es";
4
- import { p as _sfc_main$1, C as ColorPicker } from "./index-WWP_bNEW.js";
4
+ import { p as _sfc_main$1, C as ColorPicker } from "./index-CSOaeJHs.js";
5
5
  import { a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
6
6
  const _hoisted_1 = { class: "ks-row-middle mb-6px" };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE } from "./dynamic-table-action.
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
7
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-WWP_bNEW.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-CSOaeJHs.js";
8
8
  class Select extends BaseComponent {
9
9
  component = ComponentTypeEnum.Select;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, O as Orientation, $ as BooleanShowMode, _ as La
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { g as getFieldWidget } from "./index-WWP_bNEW.js";
7
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { g as getFieldWidget } from "./index-CSOaeJHs.js";
7
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
8
8
  class Switch extends BaseComponent {
9
9
  component = ComponentTypeEnum.Switch;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, O as Orientation, _ as LabelPosition, b0 as Bin
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
7
- import { g as getFieldWidget } from "./index-WWP_bNEW.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
+ import { g as getFieldWidget } from "./index-CSOaeJHs.js";
8
8
  class EnumSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.EnumSelect;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, av as ImageDisplayModeEnum } from "./dynamic-ta
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class UploadImage extends BaseComponent {
8
8
  component = ComponentTypeEnum.UploadImage;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-De2qx1IG.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-aVtmhEpO.js";
8
8
  class AutoComplete extends BaseComponent {
9
9
  component = ComponentTypeEnum.AutoComplete;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Timepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Timepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import "vue";
3
3
  import { pick } from "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Diagonal extends BaseComponent {
8
8
  component = ComponentTypeEnum.Diagonal;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, at as RangeCompareOp, as as RangeValidateMode }
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Datepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Datepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, au as DecimalDisplayMode, at as RangeCompareOp,
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class InputDouble extends BaseComponent {
8
8
  component = ComponentTypeEnum.InputDouble;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, O as Orientation, $ as BooleanShowMode, _ as La
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class DynValue extends BaseComponent {
8
8
  component = ComponentTypeEnum.DynValue;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, av as ImageDisplayModeEnum, a0 as SignatureNumb
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Sign extends BaseComponent {
8
8
  component = ComponentTypeEnum.Sign;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, au as DecimalDisplayMode, at as RangeCompareOp,
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class InputNumber extends BaseComponent {
8
8
  component = ComponentTypeEnum.Inputnumber;
9
9
  wrapperCmpConfig({ data }) {
@@ -7,7 +7,7 @@ import * as Antd from "ant-design-vue";
7
7
  import { message, Modal, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, Input, Tree, Transfer, Select, Tag, AutoComplete, TimePicker, DatePicker, Textarea, TreeSelect, CheckboxGroup, Checkbox, Radio, RadioGroup } from "ant-design-vue";
8
8
  import { S as SEARCH_SEVICE, I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$5W, a as SignatureTypeEnum$1 } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D0gNSgDm.js";
9
9
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
10
- import { n as normalizeFieldWidth, B as BorderTD, u as useFormTmplConfig, D as DeviceLinkTmplUtil, a as useTmplBom, g as getObjectBomMaterialLotQuery, b as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, M as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, c as resolveObjectBomEntry, d as runWithFillProduct, e as applyConsumeObjectTraceChange, i as isEdhrSuite, I as InstanceStatusValues, f as fetchOperationReceiveQty, h as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, j as useStyles, k as useValidator, S as ScanParamType, R as RequiredQtyCalcRule, _ as _sfc_main$5Y, l as DocumentPaper, m as DynamicTableAction } from "./dynamic-table-action-D-axSJVP.js";
10
+ import { n as normalizeFieldWidth, B as BorderTD, u as useFormTmplConfig, D as DeviceLinkTmplUtil, a as useTmplBom, g as getObjectBomMaterialLotQuery, b as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, M as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, c as resolveObjectBomEntry, d as runWithFillProduct, e as applyConsumeObjectTraceChange, i as isEdhrSuite, I as InstanceStatusValues, f as fetchOperationReceiveQty, h as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, j as useStyles, k as useValidator, S as ScanParamType, R as RequiredQtyCalcRule, _ as _sfc_main$5Y, l as DocumentPaper, m as DynamicTableAction } from "./dynamic-table-action-ClvCYTXt.js";
11
11
  import { u as useWebUpload, i as initWebPaasUploadApis, d as defaultWindow, a as useEventListener, b as unrefElement, c as useIntersectionObserver, e as cacheAdapter, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, r as require$$0, U as Uploader, _ as _sfc_main$5X, f as initWebNocodeAdapter } from "./index-CkNER_VJ.js";
12
12
  import { useFormBaseModal, FormBaseModalPlugin } from "@gct-paas/form-base";
13
13
  import { Tooltip, Grid, Table, Column, Icon as Icon$2, Edit, Validator, VxeGrid } from "vxe-table";
@@ -1218,7 +1218,7 @@ function openWindow(url, opt) {
1218
1218
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
1219
1219
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
1220
1220
  async function createWorkbook() {
1221
- const ExcelJs = (await import("./exceljs.min-CqMyKpM3.js").then((n) => n.e)).default;
1221
+ const ExcelJs = (await import("./exceljs.min-wkM2JRWA.js").then((n) => n.e)).default;
1222
1222
  return new ExcelJs.Workbook();
1223
1223
  }
1224
1224
  class XlsxParser {
@@ -1505,27 +1505,27 @@ class XlsxParser {
1505
1505
  }
1506
1506
  function asyncImportClassModules() {
1507
1507
  const modules = /* @__PURE__ */ Object.assign({
1508
- "./_field_/auto-complete/index.ts": () => import("./index-DSxQW0Eu.js").then((m) => m["default"]),
1509
- "./_field_/datepicker/index.ts": () => import("./index-UuC3K_km.js").then((m) => m["default"]),
1510
- "./_field_/datetimepicker/index.ts": () => import("./index-BzLs7VMv.js").then((m) => m["default"]),
1511
- "./_field_/department/index.ts": () => import("./index-CUqEO4di.js").then((m) => m["default"]),
1512
- "./_field_/enum-select/index.ts": () => import("./index-DM5va-M0.js").then((m) => m["default"]),
1513
- "./_field_/input/index.ts": () => import("./index-jcNuZQe-.js").then((m) => m["default"]),
1514
- "./_field_/inputdouble/index.ts": () => import("./index-BZLUBq9c.js").then((m) => m["default"]),
1515
- "./_field_/inputnumber/index.ts": () => import("./index-DOe_vbNZ.js").then((m) => m["default"]),
1516
- "./_field_/rdo-select/index.ts": () => import("./index-G4AQrMgx.js").then((m) => m["default"]),
1517
- "./_field_/select/index.ts": () => import("./index-BoGQt_z8.js").then((m) => m["default"]),
1518
- "./_field_/sign/index.ts": () => import("./index-JBw-iMqr.js").then((m) => m["default"]),
1519
- "./_field_/switch/index.ts": () => import("./index-vqXiNAFc.js").then((m) => m["default"]),
1520
- "./_field_/textarea/index.ts": () => import("./index-BerwVhz-.js").then((m) => m["default"]),
1521
- "./_field_/timepicker/index.ts": () => import("./index-B0n76qw3.js").then((m) => m["default"]),
1522
- "./_field_/upload-file/index.ts": () => import("./index-BsINOoan.js").then((m) => m["default"]),
1523
- "./_field_/upload-image/index.ts": () => import("./index-SmWabE6L.js").then((m) => m["default"]),
1524
- "./_field_/userpicker/index.ts": () => import("./index-yioAk3Lm.js").then((m) => m["default"]),
1508
+ "./_field_/auto-complete/index.ts": () => import("./index-BHihG6wo.js").then((m) => m["default"]),
1509
+ "./_field_/datepicker/index.ts": () => import("./index-BbxeAoGv.js").then((m) => m["default"]),
1510
+ "./_field_/datetimepicker/index.ts": () => import("./index-CmKaq9BA.js").then((m) => m["default"]),
1511
+ "./_field_/department/index.ts": () => import("./index-Da3dLccm.js").then((m) => m["default"]),
1512
+ "./_field_/enum-select/index.ts": () => import("./index-B4SeHIvj.js").then((m) => m["default"]),
1513
+ "./_field_/input/index.ts": () => import("./index-Yak4dcr8.js").then((m) => m["default"]),
1514
+ "./_field_/inputdouble/index.ts": () => import("./index-BsAib_T0.js").then((m) => m["default"]),
1515
+ "./_field_/inputnumber/index.ts": () => import("./index-COIKVzHE.js").then((m) => m["default"]),
1516
+ "./_field_/rdo-select/index.ts": () => import("./index-DblJyfD1.js").then((m) => m["default"]),
1517
+ "./_field_/select/index.ts": () => import("./index-98JlcyIh.js").then((m) => m["default"]),
1518
+ "./_field_/sign/index.ts": () => import("./index-CMyaYX19.js").then((m) => m["default"]),
1519
+ "./_field_/switch/index.ts": () => import("./index-B0CE87b5.js").then((m) => m["default"]),
1520
+ "./_field_/textarea/index.ts": () => import("./index-ZPbeIApi.js").then((m) => m["default"]),
1521
+ "./_field_/timepicker/index.ts": () => import("./index-BNd6EBaX.js").then((m) => m["default"]),
1522
+ "./_field_/upload-file/index.ts": () => import("./index-DyYIAGuW.js").then((m) => m["default"]),
1523
+ "./_field_/upload-image/index.ts": () => import("./index-BHTh3IKd.js").then((m) => m["default"]),
1524
+ "./_field_/userpicker/index.ts": () => import("./index-hlChb3S5.js").then((m) => m["default"]),
1525
1525
  "./_widget_/barcode/index.ts": () => import("./index-BCm5uXm-.js").then((m) => m["default"]),
1526
- "./_widget_/combine-fields/index.ts": () => import("./index-BBMWNymr.js").then((m) => m["default"]),
1527
- "./_widget_/diagonal/index.ts": () => import("./index-BoIfj26G.js").then((m) => m["default"]),
1528
- "./_widget_/dyn-value/index.ts": () => import("./index-C-kqDeYD.js").then((m) => m["default"]),
1526
+ "./_widget_/combine-fields/index.ts": () => import("./index-DEPdSmRz.js").then((m) => m["default"]),
1527
+ "./_widget_/diagonal/index.ts": () => import("./index-BReNIvpZ.js").then((m) => m["default"]),
1528
+ "./_widget_/dyn-value/index.ts": () => import("./index-C4WGrLrq.js").then((m) => m["default"]),
1529
1529
  "./_widget_/image/index.ts": () => import("./index-C6yP97M1.js").then((m) => m["default"]),
1530
1530
  "./_widget_/line/index.ts": () => import("./index-DIPExK1-.js").then((m) => m["default"]),
1531
1531
  "./_widget_/power/index.ts": () => import("./index-DZZB4Wki.js").then((m) => m["default"]),
@@ -1535,8 +1535,8 @@ function asyncImportClassModules() {
1535
1535
  "./_widget_/sub-table/index.ts": () => import("./index-Dnv99kDV.js").then((m) => m["default"]),
1536
1536
  "./_widget_/timediff/index.ts": () => import("./index-DK3WaVk5.js").then((m) => m["default"]),
1537
1537
  "./paper/index.ts": () => import("./index-C3OVB8dF.js").then((m) => m["default"]),
1538
- "./td/index.ts": () => import("./index-BRlNzGtZ.js").then((m) => m["default"]),
1539
- "./tr/index.ts": () => import("./index-BpiiOmU7.js").then((m) => m["default"])
1538
+ "./td/index.ts": () => import("./index-CZ19OTa-.js").then((m) => m["default"]),
1539
+ "./tr/index.ts": () => import("./index-CUVo4Y3e.js").then((m) => m["default"])
1540
1540
  });
1541
1541
  return modules;
1542
1542
  }
@@ -9274,7 +9274,14 @@ const useAllSpreadSheets = () => {
9274
9274
  ...obj.pretreatmentTableList,
9275
9275
  ...props2?.pretreatmentTableList || []
9276
9276
  ];
9277
- obj.fixedTables = [...activeSheet$1.value.paper?.fixedTables || []];
9277
+ obj.fixedTables = [
9278
+ ...obj.fixedTables,
9279
+ ...(s.paper?.fixedTables ?? []).map((table) => ({
9280
+ ...table,
9281
+ // 固定表范围使用 sheet 内行号,渲染时需要对应运行时的行 ID。
9282
+ topTrId: json.paper.nextIds[table.range.t - 1]
9283
+ }))
9284
+ ];
9278
9285
  obj.fixedTableFieldMap = {
9279
9286
  ...obj.fixedTableFieldMap,
9280
9287
  ...caculateRowIdx(props2?.fixedTableFieldMap || {}, s.startIndex * 1e4)
@@ -16012,7 +16019,7 @@ function asyncImportWidgetConfigList() {
16012
16019
  return widgetConfigList;
16013
16020
  }
16014
16021
  function asyncImportWidgetDesign() {
16015
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./barcode/barcode-design.vue": () => import("./barcode-design-DiIS1gNc.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-Dlq2NlNE.js"), "./image/image-design.vue": () => import("./image-design-DnAdcfkb.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-Bxtn0Tcj.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-DjqAUl3n.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-C_Ps-Wb2.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-nwsYg88n.js"), "./text/text-design.vue": () => import("./text-design-Cl9vHbq5.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-CRhHuuBP.js") });
16022
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./barcode/barcode-design.vue": () => import("./barcode-design-B11QXZvG.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-B6qOpgJB.js"), "./image/image-design.vue": () => import("./image-design-DnAdcfkb.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-e6YmfypM.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-DNgkKQGY.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-B8OeEjHi.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-nwsYg88n.js"), "./text/text-design.vue": () => import("./text-design-DpCprqkB.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-CRhHuuBP.js") });
16016
16023
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16017
16024
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16018
16025
  if (mKey) {
@@ -29693,7 +29700,7 @@ const _sfc_main$4z = /* @__PURE__ */ defineComponent({
29693
29700
  });
29694
29701
  const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4z, [["__scopeId", "data-v-463388f0"]]);
29695
29702
  function asyncImportWidgetProp() {
29696
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-DgC3sCzk.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-vIXLuLtX.js"), "./widget-image.vue": () => import("./widget-image-BzIWHWyi.js"), "./widget-line.vue": () => import("./widget-line-LJwGVJug.js"), "./widget-pagination.vue": () => import("./widget-pagination-ri_4BLdH.js"), "./widget-power.vue": () => import("./widget-power-DwS4V4oM.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-BDwZdgpF.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-BAzKSvjH.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-IxaRP9FK.js"), "./widget-text.vue": () => import("./widget-text-BASemodd.js"), "./widget-timediff.vue": () => import("./widget-timediff-BcxQF4ra.js") });
29703
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-fA706IEU.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DJIIPhRm.js"), "./widget-image.vue": () => import("./widget-image-iA5POujb.js"), "./widget-line.vue": () => import("./widget-line-bjO0OmRM.js"), "./widget-pagination.vue": () => import("./widget-pagination-CCWAQS5T.js"), "./widget-power.vue": () => import("./widget-power-D3TkaSwc.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-B1ohZ9gB.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-D8F6Ryvq.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-CWpzTsBq.js"), "./widget-text.vue": () => import("./widget-text-Ouno0e1_.js"), "./widget-timediff.vue": () => import("./widget-timediff-biUSdm8e.js") });
29697
29704
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
29698
29705
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
29699
29706
  if (mKey) {
@@ -78037,6 +78044,10 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
78037
78044
  return acc;
78038
78045
  }, {});
78039
78046
  const { cmpKey } = useOnlineFormTransformField2Component(config2.fieldType) || {};
78047
+ if (!cmpKey) {
78048
+ widgetSchema.value = void 0;
78049
+ return;
78050
+ }
78040
78051
  widgetSchema.value = {
78041
78052
  id: `${cmpKey}_${Date.now()}_${Math.random().toString(36).substr(2)}`,
78042
78053
  component: cmpKey,
@@ -78075,13 +78086,14 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
78075
78086
  default: withCtx(() => [
78076
78087
  createVNode(_sfc_main$S, {
78077
78088
  widget: widgetSchema.value,
78089
+ "component-override": widgetSchema.value.component,
78078
78090
  formData: __props.formData,
78079
78091
  subtableFieldId: __props.subtableFieldId,
78080
78092
  realRowIndex: __props.realRowIndex,
78081
78093
  realColIndex: __props.realColIndex,
78082
78094
  pageRowIndex: __props.pageRowIndex,
78083
78095
  childSubTableDataIndex: __props.childSubTableDataIndex
78084
- }, null, 8, ["widget", "formData", "subtableFieldId", "realRowIndex", "realColIndex", "pageRowIndex", "childSubTableDataIndex"])
78096
+ }, null, 8, ["widget", "component-override", "formData", "subtableFieldId", "realRowIndex", "realColIndex", "pageRowIndex", "childSubTableDataIndex"])
78085
78097
  ]),
78086
78098
  _: 1
78087
78099
  }, 8, ["widget"])) : createCommentVNode("", true);
@@ -78870,7 +78882,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
78870
78882
  childSubTableDataIndex: {},
78871
78883
  rowKey: {},
78872
78884
  referenceInfo: {},
78873
- dynamicConfig: {}
78885
+ dynamicConfig: {},
78886
+ componentOverride: {}
78874
78887
  },
78875
78888
  setup(__props) {
78876
78889
  const tmplConfigC = useFormTmplConfig().injectController();
@@ -78890,6 +78903,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
78890
78903
  }
78891
78904
  const componentType = computed(() => {
78892
78905
  if (props2.dynamicConfig?.isDynRo) return ComponentTypeEnum.DynRo;
78906
+ if (props2.componentOverride) return props2.componentOverride;
78893
78907
  const widget2 = dateObjectWidget.value ?? props2.widget;
78894
78908
  return resolveFieldRenderComponent(widget2?.props) ?? widget2?.component;
78895
78909
  });
@@ -3,7 +3,7 @@ import "vue";
3
3
  import { pick, has, isEmpty, cloneDeep, get } from "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { A as AsyncGctOnlineComponents } from "./index-WWP_bNEW.js";
6
+ import { A as AsyncGctOnlineComponents } from "./index-CSOaeJHs.js";
7
7
  class Tr {
8
8
  component = "tr";
9
9
  wrapperCmpConfig({ data, parent }) {
@@ -1,5 +1,5 @@
1
1
  import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-WWP_bNEW.js";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-CSOaeJHs.js";
3
3
  import { C as ComponentTypeEnum, x as CellType, n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
4
4
  import "vue";
5
5
  import "dayjs";
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE, at as RangeCompareOp, as as Ra
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class DateTimepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.DateTimepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -4,7 +4,7 @@ import "vue";
4
4
  import { pick } from "lodash-es";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
7
- import { g as getFieldWidget } from "./index-WWP_bNEW.js";
7
+ import { g as getFieldWidget } from "./index-CSOaeJHs.js";
8
8
  class CombineFields {
9
9
  component = ComponentTypeEnum.CombineFields;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Department extends BaseComponent {
8
8
  component = ComponentTypeEnum.Department;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,8 +3,8 @@ import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
7
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-De2qx1IG.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-aVtmhEpO.js";
8
8
  class RdoSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.RdoSelect;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class UploadFile extends BaseComponent {
8
8
  component = ComponentTypeEnum.UploadFile;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Input extends BaseComponent {
8
8
  component = ComponentTypeEnum.Input;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Textarea extends BaseComponent {
8
8
  component = ComponentTypeEnum.Textarea;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_styl
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-QH47BZYH.js";
6
+ import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
7
7
  class Userpicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Userpicker;
9
9
  wrapperCmpConfig({ data }) {
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, v, w, x, y, z, E, G, H, B, J, K, M, N, O, Q, U, W, X, Y, Z, $, a0, a1, n, a2, a3, o, a4, P, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, d } from "./index-WWP_bNEW.js";
1
+ import { t, v, w, x, y, z, E, G, H, B, J, K, M, N, O, Q, U, W, X, Y, Z, $, a0, a1, n, a2, a3, o, a4, P, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, d } from "./index-CSOaeJHs.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-D0gNSgDm.js";
3
3
  export {
4
4
  t as AiTmplEditor,
@@ -3,7 +3,7 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { e as calcText } from "./index-WWP_bNEW.js";
6
+ import { e as calcText } from "./index-CSOaeJHs.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "pagination-design",
9
9
  props: {
@@ -0,0 +1,4 @@
1
+ import { _ as _sfc_main } from "./index-CSOaeJHs.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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-WWP_bNEW.js";
2
+ import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-CSOaeJHs.js";
3
3
  const _hoisted_1 = ["src"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "qrcode-design",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
2
2
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
3
- import { f as useDrop, T as TransferType, d as useModelFields, h as getFieldIcon, S as SingleDrop } from "./index-WWP_bNEW.js";
3
+ import { f as useDrop, T as TransferType, d as useModelFields, h as getFieldIcon, S as SingleDrop } from "./index-CSOaeJHs.js";
4
4
  import { a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "single-field-drop",
@@ -37,6 +37,8 @@ export declare class SubTableCoreFactory {
37
37
  /** 所有的默认值 */
38
38
  defaultMap: Record<string, any>;
39
39
  }): void;
40
+ /** 提交前让各子表处理表单副本 */
41
+ prepareSubmitFormState(formState: Record<string, any>): void;
40
42
  /**
41
43
  * 处理子表字段的默认值映射
42
44
  * 往已有的默认值映射里补充额外的默认值
@@ -17,5 +17,6 @@ export declare class SterilizeBatchTableCore extends SubTableCore {
17
17
  }): IFieldStatus;
18
18
  calcFieldDataSource: SubTableCore['calcFieldDataSource'];
19
19
  handleChange: SubTableCore['handleChange'];
20
+ prepareSubmitFormState(formState: Record<string, any>): void;
20
21
  protected onScan(input: ScanModalInput): Promise<void>;
21
22
  }
@@ -76,6 +76,8 @@ export declare class SubTableCore {
76
76
  /** 所有的默认值 */
77
77
  defaultMap: Record<string, any>;
78
78
  }): any[] | undefined;
79
+ /** 提交前处理当前子表的数据(由工厂在表单副本上调用) */
80
+ prepareSubmitFormState(_formState: Record<string, any>): void;
79
81
  /**
80
82
  * 计算每行的行操作的菜单
81
83
  * @param rowData
@@ -1,4 +1,4 @@
1
- import { BaseCoreComponent } from '../../../../../../nocode-base/src';
1
+ import { ComponentTypeEnum, BaseCoreComponent } from '../../../../../../nocode-base/src';
2
2
  type __VLS_Props = {
3
3
  widget: BaseCoreComponent.BasicSchema;
4
4
  formData: {
@@ -28,6 +28,8 @@ type __VLS_Props = {
28
28
  sourceTdId: string;
29
29
  isDynRo: boolean;
30
30
  };
31
+ /** 动态值组件已选定的实际字段组件,避免再次识别为动态值组件 */
32
+ componentOverride?: ComponentTypeEnum;
31
33
  };
32
34
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
35
  export default _default;
@@ -3,7 +3,7 @@ import { pick } from "lodash-es";
3
3
  import { M as PaperWidgeValueType, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { u as useSpreadSheet, d as useModelFields } from "./index-WWP_bNEW.js";
6
+ import { u as useSpreadSheet, d as useModelFields } from "./index-CSOaeJHs.js";
7
7
  const _hoisted_1 = { class: "ws-pre-wrap" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "text-design",
@@ -3,7 +3,7 @@ import { F as FIELD_TYPE, b0 as BindCmpStyleEnum } from "./dynamic-table-action.
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-WWP_bNEW.js";
6
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-CSOaeJHs.js";
7
7
  function getTraceLikeSelectProps(data) {
8
8
  const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
9
9
  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 { d as useModelFields, u as useSpreadSheet, f as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, h as getFieldIcon } from "./index-WWP_bNEW.js";
3
+ import { d as useModelFields, u as useSpreadSheet, f as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, h as getFieldIcon } from "./index-CSOaeJHs.js";
4
4
  import { M as PaperWidgeValueType, ap as ExpressionModeEnum, ar as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -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-WWP_bNEW.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DqROGWNL.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-CSOaeJHs.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C98Wj3QJ.js";
4
4
  import { n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.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, j as SelectEx } from "./index-WWP_bNEW.js";
2
+ import { F as FormItem, j as SelectEx } from "./index-CSOaeJHs.js";
3
3
  import { defaults } from "lodash-es";
4
4
  import { F as FIELD_TYPE, a4 as _export_sfc, ac as DiagonalDirection, ag as DiagonalVertex, cY as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
5
5
  import "dayjs";
6
6
  import { message } from "ant-design-vue";
7
7
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
8
- import { S as SingleFieldDrop } from "./single-field-drop-DmFtvydW.js";
8
+ import { S as SingleFieldDrop } from "./single-field-drop-DtXqBBy7.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, k as isClient, u as useSpreadSheet, F as FormItem, m as ImgParser } from "./index-WWP_bNEW.js";
2
+ import { L as LeftOutlined, R as RightOutlined, k as isClient, u as useSpreadSheet, F as FormItem, m as ImgParser } from "./index-CSOaeJHs.js";
3
3
  import { S as SizeEditor } from "./size-editor-Bl32fjTp.js";
4
4
  import { message } from "ant-design-vue";
5
5
  import { ad as WidgetImageSizeMode, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
@@ -3,7 +3,7 @@ import { ae as LineDirection } from "./dynamic-table-action.vue_vue_type_style_i
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { F as FormItem, n as LineStyleOptions, C as ColorPicker } from "./index-WWP_bNEW.js";
6
+ import { F as FormItem, n as LineStyleOptions, C as ColorPicker } from "./index-CSOaeJHs.js";
7
7
  const _hoisted_1 = { class: "ks-row-middle" };
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  __name: "widget-line",
@@ -3,10 +3,10 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { F as FormItem, o as PaginationFormatOptions } from "./index-WWP_bNEW.js";
6
+ import { F as FormItem, o as PaginationFormatOptions } from "./index-CSOaeJHs.js";
7
7
  import { S as SizeEditor } from "./size-editor-Bl32fjTp.js";
8
8
  import { A as AlignEditor } from "./align-editor-Bk5NBwxp.js";
9
- import { F as FontEditor } from "./font-editor-YZwEiqSS.js";
9
+ import { F as FontEditor } from "./font-editor-qk8ye00Z.js";
10
10
  const _hoisted_1 = { class: "pl-6px" };
11
11
  const _hoisted_2 = { class: "pl-6px" };
12
12
  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, q as useReverseModeling, F as FormItem } from "./index-WWP_bNEW.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-DmFtvydW.js";
2
+ import { u as useSpreadSheet, q as useReverseModeling, F as FormItem } from "./index-CSOaeJHs.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-DtXqBBy7.js";
4
4
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
5
5
  import { F as FIELD_TYPE, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
6
6
  import { message } from "ant-design-vue";
@@ -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-WWP_bNEW.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DqROGWNL.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-CSOaeJHs.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C98Wj3QJ.js";
4
4
  import { n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.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-WWP_bNEW.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-DmFtvydW.js";
2
+ import { F as FormItem } from "./index-CSOaeJHs.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-DtXqBBy7.js";
4
4
  import { u as useNamespace } from "./use-namespace-BxkK4ofX.js";
5
5
  import { F as FIELD_TYPE, a4 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
6
6
  import { message } from "ant-design-vue";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
2
- import { F as FormItem } from "./index-WWP_bNEW.js";
2
+ import { F as FormItem } from "./index-CSOaeJHs.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-WWP_bNEW.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-DqROGWNL.js";
2
+ import { u as useSpreadSheet, F as FormItem } from "./index-CSOaeJHs.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C98Wj3QJ.js";
4
4
  import { S as SizeEditor } from "./size-editor-Bl32fjTp.js";
5
5
  import { A as AlignEditor } from "./align-editor-Bk5NBwxp.js";
6
- import { F as FontEditor } from "./font-editor-YZwEiqSS.js";
6
+ import { F as FontEditor } from "./font-editor-qk8ye00Z.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, d as useModelFields, F as FormItem } from "./index-WWP_bNEW.js";
2
+ import { u as useSpreadSheet, d as useModelFields, F as FormItem } from "./index-CSOaeJHs.js";
3
3
  import { F as FIELD_TYPE, af as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.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.33",
3
+ "version": "0.1.35",
4
4
  "description": "GCT Excel online form rendering",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- import { _ as _sfc_main } from "./index-WWP_bNEW.js";
2
- export {
3
- _sfc_main as default
4
- };