@gct-paas/excel 0.1.39-beta.18 → 0.1.39-beta.20

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 (67) hide show
  1. package/dist/{BaseComponent-DlErT5t9.js → BaseComponent-DuVlKAnk.js} +1 -1
  2. package/dist/{VueVideoPlayer-IeaDX9ln.js → VueVideoPlayer-BlB2c7W0.js} +1 -1
  3. package/dist/{barcode-design-ejpO4TWN.js → barcode-design-CDhA1Xiw.js} +1 -1
  4. package/dist/base/index.es.js +4 -4
  5. package/dist/{diagonal-design-Bs9gWcVz.js → diagonal-design-ThSef3Um.js} +1 -1
  6. package/dist/{dynamic-table-action-BXNnUUIX.js → dynamic-table-action-cb-6H4R2.js} +10 -4
  7. package/dist/excel.css +10 -10
  8. package/dist/{exceljs.min-Cr5_l7GW.js → exceljs.min-CULCDRW9.js} +1 -1
  9. package/dist/{font-editor-CpisAVLZ.js → font-editor-trc2cWng.js} +1 -1
  10. package/dist/{image-design-DVq9O1ZF.js → image-design-DbOmyTpn.js} +1 -1
  11. package/dist/{index-Dg5modjI.js → index-1WZ6SgTp.js} +2 -2
  12. package/dist/{index-BK1OplGc.js → index-2Vv4Nw6L.js} +1 -1
  13. package/dist/{index-DAxqwkuO.js → index-B2lCwHgw.js} +1 -1
  14. package/dist/{index-B9mMKdWV.js → index-BBfo_rmJ.js} +1 -1
  15. package/dist/{index-Bq15nkZU.js → index-BhJGnoAZ.js} +1 -1
  16. package/dist/{index-BDXjjYXb.js → index-BkznJYts.js} +65 -45
  17. package/dist/{index-9S_12I_m.js → index-BsSL0R1j.js} +1 -1
  18. package/dist/{index-CabjW1sn.js → index-BsgB6y7K.js} +2 -2
  19. package/dist/{index-em0rzOJO.js → index-CAGghO4i.js} +1 -1
  20. package/dist/{index-BDQQZex8.js → index-CCyMfv1Z.js} +1 -1
  21. package/dist/{index-DQhVTdNc.js → index-CRo6J80n.js} +1 -1
  22. package/dist/{index-UMo1va8T.js → index-CksQHOUM.js} +1 -1
  23. package/dist/{index-_y43fj3W.js → index-CpQ_DR3c.js} +2 -2
  24. package/dist/{index-BkEEB8UX.js → index-DGZzlITI.js} +2 -2
  25. package/dist/{index-BQGtju-p.js → index-DOiOWH2x.js} +1 -1
  26. package/dist/{index-B0_PuKlp.js → index-DUXHvUXT.js} +1 -1
  27. package/dist/{index-265Zuy2Y.js → index-DYjYdrMD.js} +1 -1
  28. package/dist/{index-BaQfzPpW.js → index-Dkj2h_zE.js} +1 -1
  29. package/dist/{index-50OBRcTM.js → index-Dq5kgEpr.js} +1 -1
  30. package/dist/{index-BhRaNTnf.js → index-DrWkEAL9.js} +1 -1
  31. package/dist/{index-BLFfeKcf.js → index-DyZzboE8.js} +1 -1
  32. package/dist/{index-CSinNyyL.js → index-Dzqrtkn_.js} +1 -1
  33. package/dist/{index-BHmTVYqD.js → index-XtiIrcx4.js} +3 -3
  34. package/dist/{index-BO6dvJRn.js → index-cunDtoJs.js} +1 -1
  35. package/dist/{index-BHXvTfAC.js → index-l8FZ6Q3X.js} +49 -2
  36. package/dist/index.es.js +1 -1
  37. package/dist/{pagination-design-D_QjDeiL.js → pagination-design-Dlt_hRc9.js} +1 -1
  38. package/dist/paper-widget-design-CsNAYJIm.js +4 -0
  39. package/dist/{print-runtime-instance-BVl0QFuC.js → print-runtime-instance-C0P0bQ0t.js} +1 -1
  40. package/dist/{print-snapshot-renderer-CwlqVc2E.js → print-snapshot-renderer-hfbiNoQz.js} +3 -3
  41. package/dist/{qrcode-design-DlAjNGZV.js → qrcode-design-BKW9Ywq7.js} +1 -1
  42. package/dist/seal-design-D1K9CloN.js +4 -0
  43. package/dist/{single-field-drop-CILrDdkn.js → single-field-drop-DkjfkD4a.js} +1 -1
  44. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -1
  45. package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +4 -3
  46. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -1
  47. package/dist/src/nocode-web-render/src/render/sub-table/common/inventory-scan-columns.d.ts +6 -0
  48. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +2 -2
  49. package/dist/{sub-table-factory-CGAWlYDu.js → sub-table-factory-Bnb8zZTb.js} +10 -4
  50. package/dist/{text-design-DaLE4WYR.js → text-design-CJo1qzwn.js} +1 -1
  51. package/dist/{trace-like-wrapper-C4E9e2Je.js → trace-like-wrapper-BQv5F61v.js} +1 -1
  52. package/dist/{value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js → value-editor.vue_vue_type_style_index_0_lang-Cfy4DxTn.js} +1 -1
  53. package/dist/web-render/index.es.js +2 -2
  54. package/dist/{widget-barcode-D8sXBO3u.js → widget-barcode-Skwby19J.js} +2 -2
  55. package/dist/{widget-diagonal-CoiPow-N.js → widget-diagonal-2jkexxFy.js} +2 -2
  56. package/dist/{widget-image-CkfwiupS.js → widget-image-DzNGEvNB.js} +2 -2
  57. package/dist/{widget-line-BHHhjt39.js → widget-line-CKztM9A8.js} +1 -1
  58. package/dist/{widget-pagination-2D_pMT3X.js → widget-pagination-DewFBSHR.js} +2 -2
  59. package/dist/{widget-power-BWjDuOSj.js → widget-power-DXJJuRh4.js} +2 -2
  60. package/dist/{widget-qrcode-DxARlp5Q.js → widget-qrcode-js88isHk.js} +2 -2
  61. package/dist/{widget-rangelimit-DUyFFT_x.js → widget-rangelimit-DLy_aqqT.js} +2 -2
  62. package/dist/{widget-serialnumber-CeQt5Nwg.js → widget-serialnumber-BvpZV5f7.js} +1 -1
  63. package/dist/{widget-text-Ci9WHuOm.js → widget-text-CrZN9uDY.js} +3 -3
  64. package/dist/{widget-timediff-BNrCLWLE.js → widget-timediff-DJLoE_Xk.js} +1 -1
  65. package/package.json +1 -1
  66. package/dist/paper-widget-design-BuH_G9AK.js +0 -4
  67. package/dist/seal-design-CFxljXVw.js +0 -4
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, O as Orientation, a0 as LabelPosition, b0 as Bi
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
7
- import { g as getFieldWidget } from "./index-BDXjjYXb.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
+ import { g as getFieldWidget } from "./index-BkznJYts.js";
8
8
  class EnumSelect extends BaseComponent {
9
9
  component = ComponentTypeEnum.EnumSelect;
10
10
  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-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Diagonal extends BaseComponent {
8
8
  component = ComponentTypeEnum.Diagonal;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, O as Orientation, a1 as BooleanShowMode, a0 as
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class DynValue extends BaseComponent {
8
8
  component = ComponentTypeEnum.DynValue;
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 { n as normalizeSpacerWidth, g as getFieldWidget } from "./index-BDXjjYXb.js";
7
+ import { n as normalizeSpacerWidth, g as getFieldWidget } from "./index-BkznJYts.js";
8
8
  class CombineFields {
9
9
  component = ComponentTypeEnum.CombineFields;
10
10
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, a2 as SignatureImageDirectionEnum, a3 as Fallba
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Sign extends BaseComponent {
8
8
  component = ComponentTypeEnum.Sign;
9
9
  wrapperCmpConfig({ data }) {
@@ -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-BDXjjYXb.js";
6
+ import { A as AsyncGctOnlineComponents } from "./index-BkznJYts.js";
7
7
  class Tr {
8
8
  component = "tr";
9
9
  wrapperCmpConfig({ data, parent }) {
@@ -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-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Department extends BaseComponent {
8
8
  component = ComponentTypeEnum.Department;
9
9
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, ax as RangeCompareOp, aw as RangeValidateMode }
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Datepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Datepicker;
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-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class Input extends BaseComponent {
8
8
  component = ComponentTypeEnum.Input;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,11 +1,11 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-BXNnUUIX.js";
2
+ import { n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-cb-6H4R2.js";
3
3
  import { C as ComponentTypeEnum, O as Orientation, a1 as BooleanShowMode, a0 as LabelPosition, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
7
- import { g as getFieldWidget } from "./index-BDXjjYXb.js";
8
- import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
7
+ import { g as getFieldWidget } from "./index-BkznJYts.js";
8
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
9
9
  class Switch extends BaseComponent {
10
10
  component = ComponentTypeEnum.Switch;
11
11
  wrapperCmpConfig({ data }) {
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, az 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-DlErT5t9.js";
6
+ import { B as BaseComponent } from "./BaseComponent-DuVlKAnk.js";
7
7
  class UploadImage extends BaseComponent {
8
8
  component = ComponentTypeEnum.UploadImage;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,4 +1,4 @@
1
- import { E as api, a8 as _export_sfc, cI as getAugmentedNamespace, M as commonjsGlobal, N as getDefaultExportFromCjs, cf as getParseRuleConfig, bv as uuid2 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
1
+ import { E as api, a8 as _export_sfc, cI as getAugmentedNamespace, M as commonjsGlobal, N as getDefaultExportFromCjs, cf as getParseRuleConfig, aW as renderUtils, bv as uuid2 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
2
2
  import { message, Modal, Form } from "ant-design-vue";
3
3
  import { defineComponent, inject, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, nextTick, unref, ref as ref$1, onUnmounted, createVNode, h, mergeProps, reactive, Fragment, renderList, toRaw, toRef, watchEffect } from "vue";
4
4
  import { debounce, cloneDeep } from "lodash-es";
@@ -3893,6 +3893,49 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3893
3893
  }
3894
3894
  });
3895
3895
  const ParseRuleModal = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-2712d5f4"]]);
3896
+ function text(value) {
3897
+ if (typeof value === "string") return value.trim();
3898
+ if (typeof value === "number") return String(value);
3899
+ return "";
3900
+ }
3901
+ function referenceColumn(field, title, minWidth, displayField) {
3902
+ return {
3903
+ field,
3904
+ title,
3905
+ minWidth,
3906
+ showOverflow: "tooltip",
3907
+ formatter: ({ row }) => text(displayField ? row[displayField] : void 0) || text(renderUtils.getLabJsonValue(row, field)) || text(renderUtils.getLabByDict(row, field)) || "—"
3908
+ };
3909
+ }
3910
+ const SCENE_COLUMNS_MAP = {
3911
+ inventory: () => [
3912
+ {
3913
+ field: "materialName",
3914
+ title: $t("物料名称"),
3915
+ minWidth: 140,
3916
+ showOverflow: "tooltip",
3917
+ formatter: ({ row }) => text(row.materialName) || text(row.productId) || "—"
3918
+ },
3919
+ {
3920
+ field: "materialNo",
3921
+ title: $t("物料批次"),
3922
+ minWidth: 160,
3923
+ showOverflow: "tooltip"
3924
+ },
3925
+ referenceColumn("warehouse_id_", $t("sys.model.warehouse"), 140, "warehouse_name_"),
3926
+ referenceColumn(
3927
+ "location_id_",
3928
+ $t("sys.pageDesigner.fieldCmp.location"),
3929
+ 140,
3930
+ "location_name_"
3931
+ ),
3932
+ referenceColumn("mfg_order_id_", $t("指定工单"), 180, "mfg_order_code_"),
3933
+ referenceColumn("lot_sn_id_", $t("指定批次"), 160, "lot_sn_name_")
3934
+ ]
3935
+ };
3936
+ function getScanColumns(scene) {
3937
+ return scene ? SCENE_COLUMNS_MAP[scene]?.() : void 0;
3938
+ }
3896
3939
  class SubTableRender {
3897
3940
  modalManager = new ModalManager();
3898
3941
  openScanModal(opts) {
@@ -3919,9 +3962,13 @@ class SubTableRender {
3919
3962
  }
3920
3963
  };
3921
3964
  openMultiRowsModal = async (opts) => {
3965
+ const columns = getScanColumns(opts.scene);
3922
3966
  const { success, result } = await useFormBaseModal(
3923
3967
  "SCAN_MULTI_ROWS_MODAL",
3924
- { rows: opts.rows },
3968
+ {
3969
+ rows: opts.rows,
3970
+ ...columns === void 0 ? {} : { columns }
3971
+ },
3925
3972
  {
3926
3973
  title: opts.title ?? $t("sys.kit.selectMaterial"),
3927
3974
  width: 640,
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-BDXjjYXb.js";
1
+ import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-BkznJYts.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-CtYTpCF6.js";
3
3
  export {
4
4
  G 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 { j as calcText } from "./index-BDXjjYXb.js";
6
+ import { j as calcText } from "./index-BkznJYts.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "pagination-design",
9
9
  props: {
@@ -0,0 +1,4 @@
1
+ import { k as _sfc_main } from "./index-BkznJYts.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-BDXjjYXb.js";
1
+ import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-BkznJYts.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 { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-BXNnUUIX.js";
3
- import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-CGAWlYDu.js";
4
- import { _ as _sfc_main$1 } from "./index-BDXjjYXb.js";
2
+ import { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-cb-6H4R2.js";
3
+ import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-Bnb8zZTb.js";
4
+ import { _ as _sfc_main$1 } from "./index-BkznJYts.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-BDXjjYXb.js";
2
+ import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-BkznJYts.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-BkznJYts.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 { a as useNamespace } from "./AntdIcon-DCIaV352.js";
3
- import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-BDXjjYXb.js";
3
+ import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-BkznJYts.js";
4
4
  import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "single-field-drop",
@@ -3,6 +3,7 @@ import { SubTableActionEnum } from '../../components/document-sub-table-action';
3
3
  import { IDefaultValueMap, IFieldStatus, IRuntimeSubTableCtx } from '../types';
4
4
  import { TdHandler } from '../utils/td-handler';
5
5
  import { SubTableCoreFactory } from '../factory/sub-table-factory';
6
+ import { ScanRecordPickerOptions } from '../../types/render/sub-table-render';
6
7
  import { FormModelController } from '../../hooks/form-model';
7
8
  import { RefCustomLoader } from '../../interface/ref-loader';
8
9
  /**
@@ -187,7 +188,7 @@ export declare class SubTableCore {
187
188
  /**
188
189
  * 扫码多条候选时选择一行(1 条自动选中)
189
190
  */
190
- protected pickScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
191
+ protected pickScanRecord(records: Record<string, unknown>[], options?: ScanRecordPickerOptions): Promise<Record<string, unknown> | undefined>;
191
192
  /**
192
193
  * 处理扫码弹窗回调
193
194
  * 参数由扫码弹窗决定
@@ -62,9 +62,10 @@ export declare function getObjectBomMaterialLotQuery(opts: {
62
62
  } | null;
63
63
  /**
64
64
  * 表单提交:校验所有物料消耗对象(失败打在对应单元格,收集全部错误)
65
- * - 记录模式 / 人为指定 / 无配置:不校 BOM
66
- * - 未开人为指定:有物料则必须在实例 BOM 中
67
- * - 数量为空留给字段必填;有值且开了数量校验才校数量 vs 需求数量
65
+ * - 物料范围:无配置 / 人为指定 / 记录模式,不校验物料是否属于 BOM
66
+ * - 记录模式:仅开启人为指定时,继续执行数量校验
67
+ * - BOM 模式未开人为指定:有物料则必须在实例 BOM 中
68
+ * - 数量与需求数量均有值、非查看类型且开启数量校验时,执行数量规则
68
69
  * - 人为指定:用 objectBom.entries_[0];否则用 bomEntries 中与对象物料匹配的明细
69
70
  */
70
71
  export declare function validateObjectBomQtyOnSubmit(opts: {
@@ -1,5 +1,9 @@
1
1
  import { FormModelController } from '../../hooks/form-model';
2
2
  import { ParseRuleProps, ScanParamType } from '../../types/common/base';
3
+ /** 不传 scene 时保持默认列 */
4
+ export interface ScanRecordPickerOptions {
5
+ scene?: 'inventory';
6
+ }
3
7
  /**
4
8
  * 子表绘制的基类
5
9
  */
@@ -33,7 +37,7 @@ export interface ISubTableRender {
33
37
  /**
34
38
  * 扫码多条候选时选择一行
35
39
  */
36
- openMultiRowsModal(opts: {
40
+ openMultiRowsModal(opts: ScanRecordPickerOptions & {
37
41
  rows: any[];
38
42
  title?: string;
39
43
  }): Promise<any | undefined>;
@@ -0,0 +1,6 @@
1
+ import { ScanRecordPickerOptions } from '../../../../../nocode-base/src';
2
+ import { VxeGridPropTypes } from 'vxe-table';
3
+ type ScanPickerScene = NonNullable<ScanRecordPickerOptions['scene']>;
4
+ /** 未指定场景时使用弹窗默认列。 */
5
+ export declare function getScanColumns(scene?: ScanPickerScene): VxeGridPropTypes.Columns | undefined;
6
+ export {};
@@ -5,13 +5,13 @@ export interface IDisplayField {
5
5
  _dfUnremovable?: boolean;
6
6
  [key: string]: any;
7
7
  }
8
- /** 支持显示字段配置的普通字段不再预置显示列。 */
8
+ /** 物料字段的设计端默认显示列。 */
9
9
  export declare const DEFAULT_DISPLAY_FIELDS_MAP: Record<string, string[]>;
10
10
  interface DefaultDisplayFieldConfig {
11
11
  keys: string[];
12
12
  unremovableKeys: string[];
13
13
  }
14
- export declare const getDefaultDisplayFieldConfig: (_fieldType?: string) => DefaultDisplayFieldConfig;
14
+ export declare const getDefaultDisplayFieldConfig: (fieldType?: string) => DefaultDisplayFieldConfig;
15
15
  /** 仅保留设备及批次类字段从历史搜索配置初始化显示列的行为。 */
16
16
  export declare const retainsLegacyDisplayFields: (fieldType?: string) => boolean;
17
17
  export declare function getDisplayFieldKey(item?: {
@@ -1,5 +1,5 @@
1
1
  import { shallowReactive } from "vue";
2
- import { aG as SubTableActionMenuTypeEnum, aH as getMenuByAction, aI as SubTableActionEnum, aJ as resolveScanFillData, am as SubTableCore, aK as getInsertSubMenu, aL as resolveScanAdjustType, aM as resolveScanQty, aN as toDateOnly, aO as getCopySubMenu, aP as resolveScanParsedValue, aQ as isProductBatchEmptyRow } from "./dynamic-table-action-BXNnUUIX.js";
2
+ import { aG as SubTableActionMenuTypeEnum, aH as getMenuByAction, aI as SubTableActionEnum, aJ as resolveScanFillData, am as SubTableCore, aK as getInsertSubMenu, aL as resolveScanAdjustType, aM as resolveScanQty, aN as toDateOnly, aO as getCopySubMenu, aP as resolveScanParsedValue, aQ as isProductBatchEmptyRow } from "./dynamic-table-action-cb-6H4R2.js";
3
3
  import { E as api, cN as F$1, cO as SCAN_ROW_CONTENT_FIELDS, cP as F$2, cQ as F$3, cR as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cS as F$4, cT as F$5, cU as FILL_FROM_SOURCE_PRODUCT_OPTION, cV as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cW as FILL_FROM_INVENTORY_OPTION, cX as FILL_FROM_PART_OPTION, cY as FILL_FROM_INVENTORY_OPTION$1, cZ as TABLE_TYPE, c_ as FILL_FROM_INVENTORY_OPTION$2, b5 as F$6, c$ as INVENTORY_BASE_FIELDS, d0 as resolveGroupByWarehouse, d1 as AUTO_LOAD_READONLY_SELECT_FIELDS, b4 as STOCKTAKE_DIMENSION, b1 as getParseRuleInfo, d2 as buildFillFromInventoryOption, c3 as calcFillData, d3 as resolveStocktakeInventoryApi, b2 as getParseRuleValue, d4 as F$7, d5 as FILL_FROM_INVENTORY_OPTION$3, c9 as extractKeywordFromQueryData, d6 as composeProductionLotListQuery, aK as resolveLotDisplayLabel, d7 as F$8, d8 as isProductManuallyEditable, d9 as applyFillFromMfgOrderOption, da as applyFillFromOption$1, db as applyFillFromProductOption, a$ as ProductionIdentificationTypeEnum, aU as LOT_CONTAINER_ROLE, dc as MATERIAL_CONTAINER_ID, dd as F$9, de as PRODUCT_QUICK_SEARCH_FIELDS, df as PRODUCT_QUICK_SEARCH_EXP, dg as isProductManuallyEditable$1, dh as applyFillFromMaterialNoOption, di as applyFillFromProductOption$1, dj as F$a, dk as FILL_FROM_INVENTORY_OPTION$4, Y as FormTypeEnum, aF as transformUtils, f as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import { has, merge } from "lodash-es";
5
5
  function isBlank$4(value) {
@@ -968,7 +968,9 @@ class StocktakeTableCore extends ProfileDrivenSubTableCore {
968
968
  this.error({ content: SCAN_NOT_FOUND_MSG$2 });
969
969
  return;
970
970
  }
971
- const selected = await this.pickScanRecord(records);
971
+ const selected = await this.pickScanRecord(records, {
972
+ scene: "inventory"
973
+ });
972
974
  if (!selected) return;
973
975
  const scanAdjustType = resolveScanAdjustType(input);
974
976
  const scanQty = resolveScanQty(parsed.qty, selected.qty_);
@@ -1134,7 +1136,9 @@ class AllocateTableCore extends ProfileDrivenSubTableCore {
1134
1136
  this.error({ content: SCAN_NOT_FOUND_MSG$2 });
1135
1137
  return;
1136
1138
  }
1137
- const selected = await this.pickScanRecord(records);
1139
+ const selected = await this.pickScanRecord(records, {
1140
+ scene: "inventory"
1141
+ });
1138
1142
  if (!selected) return;
1139
1143
  const row = buildAllocateScanRow(selected, parsed, resolveScanFillData(input));
1140
1144
  this.appendOrFillScanRow(row);
@@ -1944,7 +1948,9 @@ class WarehouseOutTableCore extends ProfileDrivenSubTableCore {
1944
1948
  this.error({ content: SCAN_NOT_FOUND_MSG$2 });
1945
1949
  return;
1946
1950
  }
1947
- const selected = await this.pickScanRecord(records);
1951
+ const selected = await this.pickScanRecord(records, {
1952
+ scene: "inventory"
1953
+ });
1948
1954
  if (!selected) return;
1949
1955
  const scanQty = resolveScanQty(parsed.qty, selected.qty_);
1950
1956
  const fillData = resolveScanFillData(input);
@@ -3,7 +3,7 @@ import { pick } from "lodash-es";
3
3
  import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { u as useSpreadSheet, h as useModelFields } from "./index-BDXjjYXb.js";
6
+ import { u as useSpreadSheet, h as useModelFields } from "./index-BkznJYts.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-BDXjjYXb.js";
6
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-BkznJYts.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 { 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-BDXjjYXb.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-BkznJYts.js";
4
4
  import { Q as PaperWidgeValueType, at as ExpressionModeEnum, av as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,5 +1,5 @@
1
- import { M as ModalWrapper, _ as _sfc_main$3 } from "../index-BHXvTfAC.js";
2
- import { A, B, P, S, j, h, i, u } from "../index-BHXvTfAC.js";
1
+ import { M as ModalWrapper, _ as _sfc_main$3 } from "../index-l8FZ6Q3X.js";
2
+ import { A, B, P, S, j, h, i, u } from "../index-l8FZ6Q3X.js";
3
3
  import { message } from "ant-design-vue";
4
4
  import { J as useModal, a8 as _export_sfc, E as api, cf as getParseRuleConfig, b2 as getParseRuleValue, c3 as calcFillData, aZ as getLotLockedReason } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, createVNode, createTextVNode, reactive, onMounted, createBlock, unref, withCtx, withKeys, withDirectives, createCommentVNode, vShow, computed, mergeProps, toHandlers } from "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-BDXjjYXb.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BkznJYts.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Cfy4DxTn.js";
4
4
  import { o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.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-BDXjjYXb.js";
2
+ import { F as FormItem, q as SelectEx } from "./index-BkznJYts.js";
3
3
  import { defaults } from "lodash-es";
4
4
  import { F as FIELD_TYPE, a8 as _export_sfc, aj as DiagonalDirection, an as DiagonalVertex, cq as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
5
5
  import "dayjs";
6
6
  import { message } from "ant-design-vue";
7
7
  import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
8
- import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
8
+ import { S as SingleFieldDrop } from "./single-field-drop-DkjfkD4a.js";
9
9
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10
10
  __name: "diagonal-name-editor",
11
11
  props: {
@@ -1,11 +1,11 @@
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-BDXjjYXb.js";
2
+ import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-BkznJYts.js";
3
3
  import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
4
4
  import { message } from "ant-design-vue";
5
5
  import { ak as WidgetImageSizeMode, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
6
6
  import "lodash-es";
7
7
  import "dayjs";
8
- import { u as useWebUpload } from "./index-BHXvTfAC.js";
8
+ import { u as useWebUpload } from "./index-l8FZ6Q3X.js";
9
9
  import "@gct-paas/form-base";
10
10
  import "vxe-table";
11
11
  import { C as CloseOutlined } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CtYTpCF6.js";
@@ -3,7 +3,7 @@ import { al 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, x as LineStyleOptions, C as ColorPicker } from "./index-BDXjjYXb.js";
6
+ import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-BkznJYts.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, y as PaginationFormatOptions } from "./index-BDXjjYXb.js";
6
+ import { F as FormItem, y as PaginationFormatOptions } from "./index-BkznJYts.js";
7
7
  import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
8
8
  import { A as AlignEditor } from "./align-editor-wPpZ_4zH.js";
9
- import { F as FontEditor } from "./font-editor-CpisAVLZ.js";
9
+ import { F as FontEditor } from "./font-editor-trc2cWng.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, E as useReverseModeling, F as FormItem } from "./index-BDXjjYXb.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
2
+ import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-BkznJYts.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-DkjfkD4a.js";
4
4
  import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
5
5
  import { F as FIELD_TYPE, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.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-BDXjjYXb.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
2
+ import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BkznJYts.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Cfy4DxTn.js";
4
4
  import { o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.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-BDXjjYXb.js";
3
- import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
2
+ import { F as FormItem } from "./index-BkznJYts.js";
3
+ import { S as SingleFieldDrop } from "./single-field-drop-DkjfkD4a.js";
4
4
  import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
5
5
  import { F as FIELD_TYPE, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.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-BDXjjYXb.js";
2
+ import { F as FormItem } from "./index-BkznJYts.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-BDXjjYXb.js";
3
- import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
2
+ import { u as useSpreadSheet, F as FormItem } from "./index-BkznJYts.js";
3
+ import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-Cfy4DxTn.js";
4
4
  import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
5
5
  import { A as AlignEditor } from "./align-editor-wPpZ_4zH.js";
6
- import { F as FontEditor } from "./font-editor-CpisAVLZ.js";
6
+ import { F as FontEditor } from "./font-editor-trc2cWng.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-BDXjjYXb.js";
2
+ import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-BkznJYts.js";
3
3
  import { F as FIELD_TYPE, am as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.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.39-beta.18",
3
+ "version": "0.1.39-beta.20",
4
4
  "description": "GCT Excel online form rendering",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- import { k as _sfc_main } from "./index-BDXjjYXb.js";
2
- export {
3
- _sfc_main as default
4
- };
@@ -1,4 +0,0 @@
1
- import { f as _sfc_main } from "./index-BDXjjYXb.js";
2
- export {
3
- _sfc_main as default
4
- };