@gct-paas/excel 0.1.35 → 0.1.36

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 (85) hide show
  1. package/dist/{BaseComponent-C-T3bipZ.js → BaseComponent-Dkr9EHwb.js} +1 -1
  2. package/dist/{VueVideoPlayer-uu8pHm89.js → VueVideoPlayer-QmiFwFQB.js} +2 -2
  3. package/dist/{align-editor-Bk5NBwxp.js → align-editor-OaXgeuWX.js} +1 -1
  4. package/dist/{barcode-design-B11QXZvG.js → barcode-design-CAzpyssF.js} +2 -2
  5. package/dist/base/index.es.js +5 -5
  6. package/dist/{diagonal-design-B6qOpgJB.js → diagonal-design-C3JGFswf.js} +2 -2
  7. package/dist/{dynamic-table-action-ClvCYTXt.js → dynamic-table-action-MloBs3jp.js} +78 -12
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js} +7 -7
  9. package/dist/{edit.utils-CXmmCnxE-DBJfGya8.js → edit.utils-CXmmCnxE-Cl7i5AyG.js} +1 -1
  10. package/dist/excel.css +18 -18
  11. package/dist/{exceljs.min-wkM2JRWA.js → exceljs.min-BmhMOCmv.js} +2 -2
  12. package/dist/{font-editor-qk8ye00Z.js → font-editor-D-IcSFTK.js} +3 -3
  13. package/dist/{image-design-DnAdcfkb.js → image-design-CoMKHl0Q.js} +2 -2
  14. package/dist/{index-DblJyfD1.js → index-5xAXV_RW.js} +3 -3
  15. package/dist/{index-hlChb3S5.js → index-9xGsFq4z.js} +2 -2
  16. package/dist/{index-COIKVzHE.js → index-B-koHYBR.js} +2 -2
  17. package/dist/{index-CMyaYX19.js → index-BOf5cqL9.js} +2 -2
  18. package/dist/{index-CmKaq9BA.js → index-BPGs5Cz3.js} +2 -2
  19. package/dist/{index-DIPExK1-.js → index-BPOAaTJZ.js} +1 -1
  20. package/dist/{index-C3OVB8dF.js → index-BTDuk15b.js} +1 -1
  21. package/dist/{index-DEPdSmRz.js → index-BUJMWJUt.js} +2 -2
  22. package/dist/{index-CkNER_VJ.js → index-BYjXv9tc.js} +2 -2
  23. package/dist/{index-CSOaeJHs.js → index-BaKLE58A.js} +164 -90
  24. package/dist/{index-Yak4dcr8.js → index-BbtMZHP5.js} +2 -2
  25. package/dist/{index-VX-I525j.js → index-BdOb_E0-.js} +1 -1
  26. package/dist/{index-CZ19OTa-.js → index-Bgjmyqf3.js} +2 -2
  27. package/dist/{index-DZZB4Wki.js → index-BnnboU4e.js} +1 -1
  28. package/dist/{index-BReNIvpZ.js → index-Bu0NS0WR.js} +2 -2
  29. package/dist/{index-BNd6EBaX.js → index-BuJute2u.js} +2 -2
  30. package/dist/{index-B0CE87b5.js → index-C92h_8jV.js} +3 -3
  31. package/dist/{index-DK3WaVk5.js → index-CK9Jb4BC.js} +1 -1
  32. package/dist/{index-K2KtldGf.js → index-C_aY8-1F.js} +1 -1
  33. package/dist/{index-YHJMTfT6.js → index-CgHFRM28.js} +1 -1
  34. package/dist/{index-ZPbeIApi.js → index-Cga0IK5A.js} +2 -2
  35. package/dist/{index-BbxeAoGv.js → index-ClFvHh9r.js} +2 -2
  36. package/dist/{index-DyYIAGuW.js → index-CsLTcOIa.js} +2 -2
  37. package/dist/{index-98JlcyIh.js → index-DRKZ0yh5.js} +3 -3
  38. package/dist/{index-Da3dLccm.js → index-DXJN9iYx.js} +2 -2
  39. package/dist/{index-BCm5uXm-.js → index-DZ-95Xyi.js} +1 -1
  40. package/dist/{index-BHihG6wo.js → index-DcD5_iSz.js} +3 -3
  41. package/dist/{index-B4SeHIvj.js → index-DizZCNAs.js} +3 -3
  42. package/dist/{index-CUVo4Y3e.js → index-Ed8dzqIj.js} +2 -2
  43. package/dist/{index-BsAib_T0.js → index-SnR5k06w.js} +2 -2
  44. package/dist/{index-C6yP97M1.js → index-X34P5CQc.js} +1 -1
  45. package/dist/{index-BHTh3IKd.js → index-eP5FgfsT.js} +2 -2
  46. package/dist/{index-C4WGrLrq.js → index-geKEnJZt.js} +2 -2
  47. package/dist/{index-Dnv99kDV.js → index-l7OgY52A.js} +1 -1
  48. package/dist/index.es.js +2 -2
  49. package/dist/{mb-render-BWsK2uaj.js → mb-render-CzX2E2Ns.js} +1 -1
  50. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D0gNSgDm.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CxAuNR6B.js} +1 -1
  51. package/dist/{pagination-design-e6YmfypM.js → pagination-design-RiNto9F1.js} +2 -2
  52. package/dist/paper-widget-design-Bx_DMVQ4.js +4 -0
  53. package/dist/{qrcode-design-B8OeEjHi.js → qrcode-design-DXyYtKbf.js} +1 -1
  54. package/dist/{revo-grid.entry-C8HVGuwE.js → revo-grid.entry-wAZS5Q_f.js} +1 -1
  55. package/dist/{revogr-attribution_7.entry-C57R5N9H.js → revogr-attribution_7.entry-BYLiJyq5.js} +3 -3
  56. package/dist/{revogr-clipboard_3.entry-C-t0bHXx.js → revogr-clipboard_3.entry-BYdLJ3yv.js} +2 -2
  57. package/dist/{revogr-data_4.entry-xIPTVLfC.js → revogr-data_4.entry-CHqaaCKS.js} +2 -2
  58. package/dist/{revogr-filter-panel.entry-ByM_cVBE.js → revogr-filter-panel.entry-Cqc52XdV.js} +1 -1
  59. package/dist/{serialnumber-design-nwsYg88n.js → serialnumber-design-BeUOVmG1.js} +1 -1
  60. package/dist/shared/index.es.js +2 -2
  61. package/dist/{single-field-drop-DtXqBBy7.js → single-field-drop-BSZxlNxp.js} +2 -2
  62. package/dist/{size-editor-Bl32fjTp.js → size-editor-DzsmPSj3.js} +1 -1
  63. package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-layout.d.ts +23 -0
  64. package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-modal.vue.d.ts +2 -0
  65. package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +1 -2
  66. package/dist/src/nocode-base/src/components/document-sub-table-action/fixed-table-action.vue.d.ts +2 -0
  67. package/dist/{text-design-DpCprqkB.js → text-design-DeXMb67O.js} +2 -2
  68. package/dist/{throttle-Cpk1LoGk-CRmC7Dda.js → throttle-Cpk1LoGk-wugUYaTg.js} +1 -1
  69. package/dist/{timediff-design-CRhHuuBP.js → timediff-design-B5m_vT5S.js} +1 -1
  70. package/dist/{trace-like-wrapper-aVtmhEpO.js → trace-like-wrapper-4yBUGGtN.js} +2 -2
  71. package/dist/{value-editor.vue_vue_type_style_index_0_lang-C98Wj3QJ.js → value-editor.vue_vue_type_style_index_0_lang-BcQNMosl.js} +2 -2
  72. package/dist/web-render/index.es.js +3 -3
  73. package/dist/{widget-barcode-fA706IEU.js → widget-barcode-B7xQpLj3.js} +4 -4
  74. package/dist/{widget-diagonal-DJIIPhRm.js → widget-diagonal-DZ3m3Brh.js} +3 -3
  75. package/dist/{widget-image-iA5POujb.js → widget-image-BldCdjwV.js} +5 -5
  76. package/dist/{widget-line-bjO0OmRM.js → widget-line-CozoSdQ2.js} +2 -2
  77. package/dist/{widget-pagination-CCWAQS5T.js → widget-pagination-DTHzdWhE.js} +5 -5
  78. package/dist/{widget-power-D3TkaSwc.js → widget-power-Chb6sR_L.js} +3 -3
  79. package/dist/{widget-qrcode-B1ohZ9gB.js → widget-qrcode-0Zk8nMay.js} +3 -3
  80. package/dist/{widget-rangelimit-D8F6Ryvq.js → widget-rangelimit-BreLyXSk.js} +3 -3
  81. package/dist/{widget-serialnumber-CWpzTsBq.js → widget-serialnumber-DXa_bjwt.js} +1 -1
  82. package/dist/{widget-text-Ouno0e1_.js → widget-text--ID_v_oi.js} +5 -5
  83. package/dist/{widget-timediff-biUSdm8e.js → widget-timediff-DMHq5Q2O.js} +2 -2
  84. package/package.json +1 -1
  85. package/dist/paper-widget-design-DNgkKQGY.js +0 -4
@@ -1,17 +1,17 @@
1
1
  import * as Vue from "vue";
2
2
  import { computed, unref, ref, defineComponent, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, watch, toRaw, inject, reactive, createBlock, Fragment, renderList, createTextVNode, toDisplayString as toDisplayString$1, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, watchEffect, renderSlot, shallowRef, defineAsyncComponent, resolveDynamicComponent, mergeProps, normalizeProps, guardReactiveProps, onUnmounted, h, Text, nextTick, onBeforeUnmount, withModifiers, withDirectives, vShow, withKeys, vModelText, isRef, provide, isVNode as isVNode$1, createApp, render, TransitionGroup, toRefs, createSlots, toRef, mergeDefaults, useCssVars, onBeforeMount, toHandlers, getCurrentInstance as getCurrentInstance$1, Teleport, useAttrs, onScopeDispose, useModel, mergeModels as mergeModels$1 } from "vue";
3
- import { D as DateObjectContext, i as isBlank$1, F as FIELD_TYPE, a as isSameFieldValue$1, r as runDateObjectHandler, c as companionIdKey, b as companionLabelKey, g as getAllDataProfiles, d as isDataTableProfile, e as getProfile, f as isBusinessSubTableProfile, h as getProfileByTableType, j as resolveCreateTargetByTableType, S as SUB_TABLE_PANEL_TYPE_NAME, k as expandAutofillTemplates, l as SubTableType, m as getAllBusinessRefModelTypes, P as PaginationFormat, n as PaperWidgeType, B as BwipCodeType, L as LineType, o as PageSizeEnum, O as Orientation, s as src, T as TRACE_FIELD_TYPES, p as BUSINESS_FIELD_TYPES, q as resolveFieldRenderComponent, C as ComponentTypeEnum, t as parse$1, u as estraverse, v as Syntax, w as isDynamicCreateTarget, x as CellType, y as isDynamicCellSubTable, z as api, A as FieldTypeToJs, E as CreateType, G as useModal, H as requireEstraverse, I as commonjsGlobal, J as getDefaultExportFromCjs, K as uuid2, M as PaperWidgeValueType, N as useCalculateFormula, Q as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, U as UniqueConstraintType, R as FieldDefaultValueTypeEnum, V as FormTypeEnum, X as mitt, Y as isDateObjectField, Z as PlatformEnum, _ as LabelPosition, $ as BooleanShowMode, a0 as SignatureNumberTypeEnum, a1 as SignatureTimeTypeEnum, a2 as SignShowTypeEnum, a3 as SignatureTypeEnum, a4 as _export_sfc, a5 as normalizeFieldType, a6 as PaperSizeMap, a7 as getFieldMain, a8 as buildUUID, a9 as FieldIconMap, aa as FieldSysVarDefaultValueEnum, ab as CellWidgetViewState, ac as DiagonalDirection, ad as WidgetImageSizeMode, ae as LineDirection, af as TimeDiffFormat, ag as DiagonalVertex, ah as resolveDiagonalVertex, ai as getThemeColorByTableType, aj as ViewTypeEnum, ak as useThrottleFn, al as noop, am as isIOS, an as isDynamicSubTablePanelType, ao as isFixedSubTablePanelType, ap as ExpressionModeEnum, aq as ReturnTypeEnum, ar as ExpressionTabEnum, as as RangeValidateMode, at as RangeCompareOp, au as DecimalDisplayMode$1, av as ImageDisplayModeEnum, aw as FormDesignEnum, ax as BASIC_FIELD_TYPES, ay as watchDebounced, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as EmptySymbol, aC as ASSIGNMENTSTRATEGY_ENUM, aD as Dependency_ENUM, aE as EntityModelCategoryEnum, aF as resolveLotDisplayLabel, aG as CheckDsTypeEnum, aH as DeviceLink, aI as DeviceParamsTypeTitle, aJ as AITooltips, aK as DenoiseMethodOptions, aL as BinarizeMethodOptions, aM as ParamModelTypeEnum, aN as JoinModelTypeEum, aO as sqlUtils, aP as useWidgetStaticAttrs, aQ as setSelectValidatorId, aR as setSelectAnnotationId, aS as DateFormat, aT as LOT_CONTAINER_ROLE, aU as buildLotSnListQuery, aV as renderUtils, aW as NCB_PROVIDE, aX as resolveLotRecordByValue, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, a$ as useNocodeFormWidget, b0 as BindCmpStyleEnum, b1 as getParseRuleInfo, b2 as getParseRuleValue, b3 as useCurrentPageFormState, b4 as STOCKTAKE_DIMENSION, b5 as F, b6 as resolveStocktakeSelectApi, b7 as normalizeRefLoaderResult, b8 as normalizeProductionContainerOptions, b9 as buildProductionLotListQuery, ba as refUtils, bb as transformUtils, bc as buildDeviceFilterQuery, bd as DEVICE_GROUP_QUERY_KEY, be as useOnlineFormTransformField2Component, bf as RenderModeEnum, bg as useDependency, bh as FormulaRuleFieldKeyEnum, bi as formulaRuleFieldDict, bj as resolveDesignPanelFeatures, bk as BIZ_TABLE_CONFIG_SEED_TYPES, bl as STOCKTAKE_DIMENSION_OPTIONS, bm as getAllTableProfiles, bn as isRepeatingSubTablePanelType, bo as useNocodeEmitter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
3
+ import { D as DateObjectContext, i as isBlank$1, F as FIELD_TYPE, a as isSameFieldValue$1, r as runDateObjectHandler, c as companionIdKey, b as companionLabelKey, g as getAllDataProfiles, d as isDataTableProfile, e as getProfile, f as isBusinessSubTableProfile, h as getProfileByTableType, j as resolveCreateTargetByTableType, S as SUB_TABLE_PANEL_TYPE_NAME, k as expandAutofillTemplates, l as SubTableType, m as getAllBusinessRefModelTypes, P as PaginationFormat, n as PaperWidgeType, B as BwipCodeType, L as LineType, o as PageSizeEnum, O as Orientation, s as src, T as TRACE_FIELD_TYPES, p as BUSINESS_FIELD_TYPES, q as resolveFieldRenderComponent, C as ComponentTypeEnum, t as parse$1, u as estraverse, v as Syntax, w as isDynamicCreateTarget, x as CellType, y as isDynamicCellSubTable, z as api, A as FieldTypeToJs, E as CreateType, G as useModal, H as requireEstraverse, I as commonjsGlobal, J as getDefaultExportFromCjs, K as uuid2, M as PaperWidgeValueType, N as useCalculateFormula, Q as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, U as UniqueConstraintType, R as FieldDefaultValueTypeEnum, V as FormTypeEnum, X as mitt, Y as isDateObjectField, Z as PlatformEnum, _ as LabelPosition, $ as BooleanShowMode, a0 as SignatureNumberTypeEnum, a1 as SignatureTimeTypeEnum, a2 as SignShowTypeEnum, a3 as SignatureTypeEnum, a4 as _export_sfc, a5 as normalizeFieldType, a6 as PaperSizeMap, a7 as getFieldMain, a8 as buildUUID, a9 as FieldIconMap, aa as FieldSysVarDefaultValueEnum, ab as CellWidgetViewState, ac as DiagonalDirection, ad as WidgetImageSizeMode, ae as LineDirection, af as TimeDiffFormat, ag as DiagonalVertex, ah as resolveDiagonalVertex, ai as getThemeColorByTableType, aj as ViewTypeEnum, ak as useThrottleFn, al as noop, am as isIOS, an as isDynamicSubTablePanelType, ao as isFixedSubTablePanelType, ap as ExpressionModeEnum, aq as ReturnTypeEnum, ar as ExpressionTabEnum, as as RangeValidateMode, at as RangeCompareOp, au as DecimalDisplayMode$1, av as ImageDisplayModeEnum, aw as FormDesignEnum, ax as BASIC_FIELD_TYPES, ay as watchDebounced, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as EmptySymbol, aC as ASSIGNMENTSTRATEGY_ENUM, aD as Dependency_ENUM, aE as EntityModelCategoryEnum, aF as resolveLotDisplayLabel, aG as CheckDsTypeEnum, aH as DeviceLink, aI as DeviceParamsTypeTitle, aJ as AITooltips, aK as DenoiseMethodOptions, aL as BinarizeMethodOptions, aM as ParamModelTypeEnum, aN as JoinModelTypeEum, aO as sqlUtils, aP as useWidgetStaticAttrs, aQ as setSelectValidatorId, aR as setSelectAnnotationId, aS as DateFormat, aT as LOT_CONTAINER_ROLE, aU as buildLotSnListQuery, aV as renderUtils, aW as NCB_PROVIDE, aX as resolveLotRecordByValue, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, a$ as useNocodeFormWidget, b0 as BindCmpStyleEnum, b1 as getParseRuleInfo, b2 as getParseRuleValue, b3 as useCurrentPageFormState, b4 as STOCKTAKE_DIMENSION, b5 as F, b6 as resolveStocktakeSelectApi, b7 as normalizeRefLoaderResult, b8 as normalizeProductionContainerOptions, b9 as buildProductionLotListQuery, ba as refUtils, bb as transformUtils, bc as buildDeviceFilterQuery, bd as DEVICE_GROUP_QUERY_KEY, be as useOnlineFormTransformField2Component, bf as RenderModeEnum, bg as useDependency, bh as FormulaRuleFieldKeyEnum, bi as formulaRuleFieldDict, bj as resolveDesignPanelFeatures, bk as BIZ_TABLE_CONFIG_SEED_TYPES, bl as STOCKTAKE_DIMENSION_OPTIONS, bm as getAllTableProfiles, bn as isRepeatingSubTablePanelType, bo as useNocodeEmitter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
4
4
  import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, debounce, omit, has, isNil, times, clone as clone$4, differenceBy, last, mapValues, set as set$2, hasIn, isEqual } from "lodash-es";
5
5
  import dayjs from "dayjs";
6
6
  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
- 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";
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-CxAuNR6B.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-ClvCYTXt.js";
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";
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-MloBs3jp.js";
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-BYjXv9tc.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";
14
- import { u as useFormModel, F as FormModelController } from "./mb-render-BWsK2uaj.js";
14
+ import { u as useFormModel, F as FormModelController } from "./mb-render-CzX2E2Ns.js";
15
15
  import { useModal as useModal$1 } from "@gct-paas/core";
16
16
  import { useRoute } from "vue-router";
17
17
  import "@gct-paas/form-base/style.css";
@@ -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-wkM2JRWA.js").then((n) => n.e)).default;
1221
+ const ExcelJs = (await import("./exceljs.min-BmhMOCmv.js").then((n) => n.e)).default;
1222
1222
  return new ExcelJs.Workbook();
1223
1223
  }
1224
1224
  class XlsxParser {
@@ -1505,38 +1505,38 @@ class XlsxParser {
1505
1505
  }
1506
1506
  function asyncImportClassModules() {
1507
1507
  const modules = /* @__PURE__ */ Object.assign({
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
- "./_widget_/barcode/index.ts": () => import("./index-BCm5uXm-.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
- "./_widget_/image/index.ts": () => import("./index-C6yP97M1.js").then((m) => m["default"]),
1530
- "./_widget_/line/index.ts": () => import("./index-DIPExK1-.js").then((m) => m["default"]),
1531
- "./_widget_/power/index.ts": () => import("./index-DZZB4Wki.js").then((m) => m["default"]),
1532
- "./_widget_/qrcode/index.ts": () => import("./index-K2KtldGf.js").then((m) => m["default"]),
1533
- "./_widget_/ro/index.ts": () => import("./index-YHJMTfT6.js").then((m) => m["default"]),
1534
- "./_widget_/serialnumber/index.ts": () => import("./index-VX-I525j.js").then((m) => m["default"]),
1535
- "./_widget_/sub-table/index.ts": () => import("./index-Dnv99kDV.js").then((m) => m["default"]),
1536
- "./_widget_/timediff/index.ts": () => import("./index-DK3WaVk5.js").then((m) => m["default"]),
1537
- "./paper/index.ts": () => import("./index-C3OVB8dF.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"])
1508
+ "./_field_/auto-complete/index.ts": () => import("./index-DcD5_iSz.js").then((m) => m["default"]),
1509
+ "./_field_/datepicker/index.ts": () => import("./index-ClFvHh9r.js").then((m) => m["default"]),
1510
+ "./_field_/datetimepicker/index.ts": () => import("./index-BPGs5Cz3.js").then((m) => m["default"]),
1511
+ "./_field_/department/index.ts": () => import("./index-DXJN9iYx.js").then((m) => m["default"]),
1512
+ "./_field_/enum-select/index.ts": () => import("./index-DizZCNAs.js").then((m) => m["default"]),
1513
+ "./_field_/input/index.ts": () => import("./index-BbtMZHP5.js").then((m) => m["default"]),
1514
+ "./_field_/inputdouble/index.ts": () => import("./index-SnR5k06w.js").then((m) => m["default"]),
1515
+ "./_field_/inputnumber/index.ts": () => import("./index-B-koHYBR.js").then((m) => m["default"]),
1516
+ "./_field_/rdo-select/index.ts": () => import("./index-5xAXV_RW.js").then((m) => m["default"]),
1517
+ "./_field_/select/index.ts": () => import("./index-DRKZ0yh5.js").then((m) => m["default"]),
1518
+ "./_field_/sign/index.ts": () => import("./index-BOf5cqL9.js").then((m) => m["default"]),
1519
+ "./_field_/switch/index.ts": () => import("./index-C92h_8jV.js").then((m) => m["default"]),
1520
+ "./_field_/textarea/index.ts": () => import("./index-Cga0IK5A.js").then((m) => m["default"]),
1521
+ "./_field_/timepicker/index.ts": () => import("./index-BuJute2u.js").then((m) => m["default"]),
1522
+ "./_field_/upload-file/index.ts": () => import("./index-CsLTcOIa.js").then((m) => m["default"]),
1523
+ "./_field_/upload-image/index.ts": () => import("./index-eP5FgfsT.js").then((m) => m["default"]),
1524
+ "./_field_/userpicker/index.ts": () => import("./index-9xGsFq4z.js").then((m) => m["default"]),
1525
+ "./_widget_/barcode/index.ts": () => import("./index-DZ-95Xyi.js").then((m) => m["default"]),
1526
+ "./_widget_/combine-fields/index.ts": () => import("./index-BUJMWJUt.js").then((m) => m["default"]),
1527
+ "./_widget_/diagonal/index.ts": () => import("./index-Bu0NS0WR.js").then((m) => m["default"]),
1528
+ "./_widget_/dyn-value/index.ts": () => import("./index-geKEnJZt.js").then((m) => m["default"]),
1529
+ "./_widget_/image/index.ts": () => import("./index-X34P5CQc.js").then((m) => m["default"]),
1530
+ "./_widget_/line/index.ts": () => import("./index-BPOAaTJZ.js").then((m) => m["default"]),
1531
+ "./_widget_/power/index.ts": () => import("./index-BnnboU4e.js").then((m) => m["default"]),
1532
+ "./_widget_/qrcode/index.ts": () => import("./index-C_aY8-1F.js").then((m) => m["default"]),
1533
+ "./_widget_/ro/index.ts": () => import("./index-CgHFRM28.js").then((m) => m["default"]),
1534
+ "./_widget_/serialnumber/index.ts": () => import("./index-BdOb_E0-.js").then((m) => m["default"]),
1535
+ "./_widget_/sub-table/index.ts": () => import("./index-l7OgY52A.js").then((m) => m["default"]),
1536
+ "./_widget_/timediff/index.ts": () => import("./index-CK9Jb4BC.js").then((m) => m["default"]),
1537
+ "./paper/index.ts": () => import("./index-BTDuk15b.js").then((m) => m["default"]),
1538
+ "./td/index.ts": () => import("./index-Bgjmyqf3.js").then((m) => m["default"]),
1539
+ "./tr/index.ts": () => import("./index-Ed8dzqIj.js").then((m) => m["default"])
1540
1540
  });
1541
1541
  return modules;
1542
1542
  }
@@ -16019,7 +16019,7 @@ function asyncImportWidgetConfigList() {
16019
16019
  return widgetConfigList;
16020
16020
  }
16021
16021
  function asyncImportWidgetDesign() {
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") });
16022
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./barcode/barcode-design.vue": () => import("./barcode-design-CAzpyssF.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-C3JGFswf.js"), "./image/image-design.vue": () => import("./image-design-CoMKHl0Q.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-RiNto9F1.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-Bx_DMVQ4.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-DXyYtKbf.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-BeUOVmG1.js"), "./text/text-design.vue": () => import("./text-design-DeXMb67O.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-B5m_vT5S.js") });
16023
16023
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16024
16024
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16025
16025
  if (mKey) {
@@ -29700,7 +29700,7 @@ const _sfc_main$4z = /* @__PURE__ */ defineComponent({
29700
29700
  });
29701
29701
  const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$4z, [["__scopeId", "data-v-463388f0"]]);
29702
29702
  function asyncImportWidgetProp() {
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") });
29703
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-B7xQpLj3.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DZ3m3Brh.js"), "./widget-image.vue": () => import("./widget-image-BldCdjwV.js"), "./widget-line.vue": () => import("./widget-line-CozoSdQ2.js"), "./widget-pagination.vue": () => import("./widget-pagination-DTHzdWhE.js"), "./widget-power.vue": () => import("./widget-power-Chb6sR_L.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-0Zk8nMay.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-BreLyXSk.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-DXa_bjwt.js"), "./widget-text.vue": () => import("./widget-text--ID_v_oi.js"), "./widget-timediff.vue": () => import("./widget-timediff-DMHq5Q2O.js") });
29704
29704
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
29705
29705
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
29706
29706
  if (mKey) {
@@ -60248,7 +60248,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
60248
60248
  }
60249
60249
  });
60250
60250
  const VueVideoPlayer = defineAsyncComponent(
60251
- () => import("./VueVideoPlayer-uu8pHm89.js")
60251
+ () => import("./VueVideoPlayer-QmiFwFQB.js")
60252
60252
  );
60253
60253
  const _hoisted_1$Y = {
60254
60254
  key: 0,
@@ -62256,7 +62256,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62256
62256
  formData: {},
62257
62257
  realFieldId: {}
62258
62258
  },
62259
- emits: ["update:value"],
62259
+ emits: ["update:value", "change"],
62260
62260
  setup(__props, { expose: __expose, emit: __emit }) {
62261
62261
  const fieldMetaMap2 = ref({});
62262
62262
  onMounted(async () => {
@@ -62319,8 +62319,9 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62319
62319
  return `OR(${searchField.value.join(",")})`;
62320
62320
  });
62321
62321
  const state = reactive({
62322
- data: initialOptions
62322
+ data: []
62323
62323
  });
62324
+ const selectedLoading = ref(false);
62324
62325
  const currentValue = computed({
62325
62326
  get() {
62326
62327
  return props2.value;
@@ -62360,7 +62361,6 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62360
62361
  return false;
62361
62362
  }
62362
62363
  const info = res.options[0];
62363
- currentValue.value = info.value;
62364
62364
  changeSelect(info._item);
62365
62365
  return true;
62366
62366
  }
@@ -62431,7 +62431,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62431
62431
  });
62432
62432
  };
62433
62433
  const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize: pageSize2 }) => {
62434
- const searchFieldQuery = keyword2 ? refUtils.getQuickQueryDataByKeyWord({ quickSearchField: searchField.value, keyword: keyword2 }) : {};
62434
+ const searchFieldQuery = keyword2 ? refUtils.getQuickQueryDataByKeyWord({ quickSearchFields: searchField.value, keyword: keyword2 }) : {};
62435
62435
  const { queryData: deviceQuery, exp: deviceExp } = buildDeviceFilterQuery({
62436
62436
  "device_type_id_.eq": searchForm.value.deviceType,
62437
62437
  ...deviceGroupQuery.value ? { [DEVICE_GROUP_QUERY_KEY]: deviceGroupQuery.value } : {}
@@ -62472,6 +62472,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62472
62472
  watch(
62473
62473
  () => searchForm.value,
62474
62474
  () => {
62475
+ console.log("watch---search---", searchForm.value);
62475
62476
  debounceSearch();
62476
62477
  },
62477
62478
  {
@@ -62483,48 +62484,91 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62483
62484
  debounceSearch.cancel();
62484
62485
  searchForm.value.keyword = void 0;
62485
62486
  });
62487
+ let selectedRequestId = 0;
62488
+ let selectedDisposed = false;
62489
+ let pendingSelectedOption = Promise.resolve(null);
62490
+ function updateSelectedLabel(labels) {
62491
+ const labelKey = `${field}_lb_`;
62492
+ const labelJson = JSON.stringify(labels);
62493
+ if (props2.formData[labelKey] !== labelJson) {
62494
+ Object.assign(props2.formData, { [labelKey]: labelJson });
62495
+ }
62496
+ }
62497
+ function refreshSelectedOption(value) {
62498
+ const expectedValue = value || void 0;
62499
+ const requestId = ++selectedRequestId;
62500
+ state.data = [];
62501
+ if (!expectedValue) {
62502
+ selectedLoading.value = false;
62503
+ updateSelectedLabel([]);
62504
+ pendingSelectedOption = Promise.resolve(null);
62505
+ return pendingSelectedOption;
62506
+ }
62507
+ selectedLoading.value = true;
62508
+ pendingSelectedOption = (async () => {
62509
+ try {
62510
+ const options = await getOptionByIds([expectedValue]);
62511
+ if (selectedDisposed || requestId !== selectedRequestId || (currentValue.value || void 0) !== expectedValue) {
62512
+ return null;
62513
+ }
62514
+ const option2 = options.find((item) => item.value === expectedValue);
62515
+ if (!option2 || isNil(option2.label) || option2.label === "") {
62516
+ throw new Error("未获取到设备名称");
62517
+ }
62518
+ state.data = [option2];
62519
+ updateSelectedLabel([option2.label]);
62520
+ return option2;
62521
+ } catch (error) {
62522
+ if (selectedDisposed || requestId !== selectedRequestId || (currentValue.value || void 0) !== expectedValue) {
62523
+ return null;
62524
+ }
62525
+ updateSelectedLabel([]);
62526
+ console.error("设备回显查询失败", error);
62527
+ message.error("设备名称加载失败,请重新选择重试");
62528
+ return null;
62529
+ } finally {
62530
+ if (!selectedDisposed && requestId === selectedRequestId) {
62531
+ selectedLoading.value = false;
62532
+ }
62533
+ }
62534
+ })();
62535
+ return pendingSelectedOption;
62536
+ }
62486
62537
  watch(
62487
62538
  () => currentValue.value,
62488
- async (val, val2) => {
62489
- if (val2 && !val) {
62490
- onClear();
62539
+ (value, oldValue) => {
62540
+ if (oldValue && value !== oldValue) {
62541
+ updateSelectedLabel([]);
62491
62542
  }
62492
- if (!loadFinished2Options) {
62493
- await checkInitialValue();
62494
- }
62495
- if (!isNil(currentValue.value)) {
62496
- const newLb = JSON.stringify(
62497
- renderUtils.getSelectOptions({
62498
- value: currentValue.value,
62499
- multiple: false,
62500
- options: state.data,
62501
- key: "label"
62502
- }).labels
62503
- );
62504
- const oldLb = props2.formData[`${field}_lb_`];
62505
- if (oldLb !== newLb) {
62506
- props2.formData[`${field}_lb_`] = newLb;
62507
- }
62543
+ if (oldValue && !value) {
62544
+ onClear();
62508
62545
  }
62546
+ void refreshSelectedOption(value);
62509
62547
  },
62510
- {
62511
- immediate: true
62512
- }
62548
+ { immediate: true }
62513
62549
  );
62550
+ async function waitForSelectedOption(value) {
62551
+ const expectedValue = value || void 0;
62552
+ await nextTick();
62553
+ if (selectedDisposed || (currentValue.value || void 0) !== expectedValue) {
62554
+ return { stale: true, option: null };
62555
+ }
62556
+ const requestId = selectedRequestId;
62557
+ const option2 = await pendingSelectedOption;
62558
+ const stale = selectedDisposed || requestId !== selectedRequestId || (currentValue.value || void 0) !== expectedValue;
62559
+ return { stale, option: stale ? null : option2 };
62560
+ }
62561
+ function handleNativeChange(value, option2) {
62562
+ emit2("change", value, option2);
62563
+ }
62564
+ onBeforeUnmount(() => {
62565
+ selectedDisposed = true;
62566
+ selectedRequestId++;
62567
+ });
62514
62568
  const handleSearch = (keyword2) => {
62515
62569
  if (loadFinished2Options) return;
62516
- state.data = [];
62517
62570
  debounceSearch(keyword2);
62518
62571
  };
62519
- async function checkInitialValue() {
62520
- if (currentValue.value && !initialOptions.some((o) => o.value === currentValue.value)) {
62521
- const remoteOption = await getOptionByIds([currentValue.value]);
62522
- state.data = [...remoteOption, ...initialOptions];
62523
- } else {
62524
- state.data = initialOptions;
62525
- }
62526
- state.hasSearched = false;
62527
- }
62528
62572
  async function getOptionByIds(ids) {
62529
62573
  const { data = [] } = await api.apaas.modelComprehensive.postQueryRefDataByIdsModelCategory(
62530
62574
  {
@@ -62543,21 +62587,34 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62543
62587
  }
62544
62588
  ) || {};
62545
62589
  return data?.map((i) => {
62546
- return { disabled: !!i.deleted_, label: i.__LABEL__, value: i.id_ || i.id, _item: i };
62590
+ return {
62591
+ disabled: !!i.deleted_,
62592
+ label: i.__LABEL__ || i.name_,
62593
+ value: i.id_ || i.id,
62594
+ _item: i
62595
+ };
62547
62596
  }) ?? [];
62548
62597
  }
62549
62598
  async function changeSelect(info) {
62550
- currentValue.value = info.id_;
62599
+ const value = info.id_ ?? info.id ?? info.value;
62600
+ if (!value) return;
62601
+ const sameValue = currentValue.value === value;
62602
+ currentValue.value = value;
62551
62603
  open.value = false;
62604
+ if (sameValue) {
62605
+ void refreshSelectedOption(value);
62606
+ }
62552
62607
  if (autofillRules && autofillRules.length !== 0) {
62553
62608
  await nextTick();
62554
62609
  applyAutofillRules(autofillRules, info, props2.formData, { enabled: enableAutofill });
62555
62610
  }
62611
+ emit2("change", value, info);
62556
62612
  }
62557
62613
  __expose({
62558
62614
  getOptions: () => {
62559
62615
  return state.data;
62560
- }
62616
+ },
62617
+ waitForSelectedOption
62561
62618
  });
62562
62619
  return (_ctx, _cache) => {
62563
62620
  const _component_a_input = resolveComponent("a-input");
@@ -62569,6 +62626,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62569
62626
  value: currentValue.value,
62570
62627
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => currentValue.value = $event),
62571
62628
  options: state.data,
62629
+ loading: selectedLoading.value,
62572
62630
  disabled: unref(showDisabled)
62573
62631
  }, separatorAttr.value, {
62574
62632
  formData: __props.formData,
@@ -62578,6 +62636,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62578
62636
  "onUpdate:mode": _cache[3] || (_cache[3] = ($event) => isRef(mode) ? mode.value = $event : null),
62579
62637
  open: open.value,
62580
62638
  onSearch: handleSearch,
62639
+ onChange: handleNativeChange,
62581
62640
  onScan: unref(handleEnter),
62582
62641
  onClick: onSelectClick,
62583
62642
  ref_key: "selectRef",
@@ -62648,11 +62707,11 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
62648
62707
  ])
62649
62708
  ]),
62650
62709
  _: 1
62651
- }, 16, ["class", "value", "options", "disabled", "formData", "widget", "allowSwitch", "mode", "open", "onScan"]);
62710
+ }, 16, ["class", "value", "options", "loading", "disabled", "formData", "widget", "allowSwitch", "mode", "open", "onScan"]);
62652
62711
  };
62653
62712
  }
62654
62713
  });
62655
- const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-a46c3abf"]]);
62714
+ const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["__scopeId", "data-v-dda4857b"]]);
62656
62715
  const _hoisted_1$S = { class: "search-wrapper" };
62657
62716
  const _hoisted_2$A = {
62658
62717
  key: 1,
@@ -63482,6 +63541,21 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63482
63541
  renderScript.value = void 0;
63483
63542
  return label;
63484
63543
  };
63544
+ let deviceChangeId = 0;
63545
+ async function handleDeviceChange(selectedValue, info) {
63546
+ const changeId = ++deviceChangeId;
63547
+ const expectedValue = selectedValue || void 0;
63548
+ const result = await selectRef.value?.waitForSelectedOption(selectedValue);
63549
+ if (!result || result.stale || changeId !== deviceChangeId || (value.value || void 0) !== expectedValue) {
63550
+ return;
63551
+ }
63552
+ const label = result.option?.label ?? String(expectedValue ?? "");
63553
+ return onChange((current) => {
63554
+ if (!current) return "";
63555
+ if (current === expectedValue) return label;
63556
+ return getOptionLabel(current) || String(current);
63557
+ }, resolveChangeOption(selectedValue, info));
63558
+ }
63485
63559
  function getOptionLabel(val) {
63486
63560
  if (val) {
63487
63561
  const options = selectRef.value?.getOptions();
@@ -63549,7 +63623,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63549
63623
  formData: __props.formData,
63550
63624
  realFieldId: unref(realFieldId),
63551
63625
  "onUpdate:value": _cache[6] || (_cache[6] = (v) => value.value = v),
63552
- onChange: _cache[7] || (_cache[7] = (v, info) => unref(onChange)(getOptionLabel, resolveChangeOption(v, info))),
63626
+ onChange: handleDeviceChange,
63553
63627
  onFocus: _ctx.$attrs.onFocus,
63554
63628
  onBlur: unref(onBlur)
63555
63629
  }, unref(newComponentProps)), null, 16, ["widget", "value", "formData", "realFieldId", "onFocus", "onBlur"])) : isTraceRefTable.value ? (openBlock(), createBlock(_sfc_main$1q, mergeProps({
@@ -63560,8 +63634,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63560
63634
  value: value.value,
63561
63635
  formData: __props.formData,
63562
63636
  realFieldId: unref(realFieldId),
63563
- "onUpdate:value": _cache[8] || (_cache[8] = (v) => value.value = v),
63564
- onChange: _cache[9] || (_cache[9] = (v, info) => unref(onChange)(getOptionLabel, resolveChangeOption(v, info))),
63637
+ "onUpdate:value": _cache[7] || (_cache[7] = (v) => value.value = v),
63638
+ onChange: _cache[8] || (_cache[8] = (v, info) => unref(onChange)(getOptionLabel, resolveChangeOption(v, info))),
63565
63639
  onFocus: _ctx.$attrs.onFocus,
63566
63640
  onBlur: unref(onBlur)
63567
63641
  }, unref(newComponentProps)), null, 16, ["widget", "value", "formData", "realFieldId", "onFocus", "onBlur"])) : isTraceSelect.value ? (openBlock(), createBlock(_sfc_main$1s, mergeProps({
@@ -63572,8 +63646,8 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63572
63646
  value: value.value,
63573
63647
  formData: __props.formData,
63574
63648
  realFieldId: unref(realFieldId),
63575
- "onUpdate:value": _cache[10] || (_cache[10] = (v) => value.value = v),
63576
- onChange: _cache[11] || (_cache[11] = (v, info) => unref(onChange)(getOptionLabel, resolveChangeOption(v, info))),
63649
+ "onUpdate:value": _cache[9] || (_cache[9] = (v) => value.value = v),
63650
+ onChange: _cache[10] || (_cache[10] = (v, info) => unref(onChange)(getOptionLabel, resolveChangeOption(v, info))),
63577
63651
  onFocus: _ctx.$attrs.onFocus,
63578
63652
  onBlur: unref(onBlur)
63579
63653
  }, unref(newComponentProps)), null, 16, ["widget", "value", "formData", "realFieldId", "onFocus", "onBlur"])) : (openBlock(), createBlock(_sfc_main$1y, {
@@ -63582,10 +63656,10 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63582
63656
  ref: selectRef,
63583
63657
  widget: __props.widget,
63584
63658
  value: value.value,
63585
- "onUpdate:value": _cache[12] || (_cache[12] = ($event) => value.value = $event),
63659
+ "onUpdate:value": _cache[11] || (_cache[11] = ($event) => value.value = $event),
63586
63660
  formData: __props.formData,
63587
63661
  realFieldId: unref(realFieldId),
63588
- onChange: _cache[13] || (_cache[13] = (v, info) => unref(onChange)(getOptionLabel, info?._item ?? info)),
63662
+ onChange: _cache[12] || (_cache[12] = (v, info) => unref(onChange)(getOptionLabel, info?._item ?? info)),
63589
63663
  onFocus: _ctx.$attrs.onFocus,
63590
63664
  onBlur: unref(onBlur)
63591
63665
  }, null, 8, ["widget", "value", "formData", "realFieldId", "onFocus", "onBlur"]))
@@ -63595,7 +63669,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
63595
63669
  };
63596
63670
  }
63597
63671
  });
63598
- const selectRender = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-42d39145"]]);
63672
+ const selectRender = /* @__PURE__ */ _export_sfc(_sfc_main$1p, [["__scopeId", "data-v-73500791"]]);
63599
63673
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63600
63674
  __proto__: null,
63601
63675
  default: selectRender
@@ -1,9 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class Input extends BaseComponent {
8
8
  component = ComponentTypeEnum.Input;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,5 +1,5 @@
1
1
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import { pick } from "lodash-es";
5
5
  import "dayjs";
@@ -1,6 +1,6 @@
1
1
  import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-CSOaeJHs.js";
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";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-BaKLE58A.js";
3
+ import { C as ComponentTypeEnum, x as CellType, n as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,6 +1,6 @@
1
1
  import { pick, get } from "lodash-es";
2
2
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
3
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
3
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "ant-design-vue";
@@ -1,9 +1,9 @@
1
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
1
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
2
2
  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-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class Diagonal extends BaseComponent {
8
8
  component = ComponentTypeEnum.Diagonal;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,9 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class Timepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Timepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,10 +1,10 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum, O as Orientation, $ as BooleanShowMode, _ as LabelPosition, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum, O as Orientation, $ as BooleanShowMode, _ as LabelPosition, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { g as getFieldWidget } from "./index-CSOaeJHs.js";
7
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { g as getFieldWidget } from "./index-BaKLE58A.js";
7
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
8
8
  class Switch extends BaseComponent {
9
9
  component = ComponentTypeEnum.Switch;
10
10
  wrapperCmpConfig({ data }) {
@@ -1,5 +1,5 @@
1
1
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import { pick, get } from "lodash-es";
5
5
  import "dayjs";
@@ -1,4 +1,4 @@
1
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
1
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
2
2
  import "vue";
3
3
  import { pick } from "lodash-es";
4
4
  import "dayjs";
@@ -1,5 +1,5 @@
1
1
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import { pick } from "lodash-es";
5
5
  import "dayjs";
@@ -1,9 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class Textarea extends BaseComponent {
8
8
  component = ComponentTypeEnum.Textarea;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,9 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum, at as RangeCompareOp, as as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum, at as RangeCompareOp, as as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class Datepicker extends BaseComponent {
8
8
  component = ComponentTypeEnum.Datepicker;
9
9
  wrapperCmpConfig({ data }) {
@@ -1,9 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DhvnFfly.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-r5NoUEI7.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "ant-design-vue";
6
- import { B as BaseComponent } from "./BaseComponent-C-T3bipZ.js";
6
+ import { B as BaseComponent } from "./BaseComponent-Dkr9EHwb.js";
7
7
  class UploadFile extends BaseComponent {
8
8
  component = ComponentTypeEnum.UploadFile;
9
9
  wrapperCmpConfig({ data }) {