@gct-paas/excel 0.1.40-beta.7 → 0.1.40-beta.9

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 (96) hide show
  1. package/dist/{BaseComponent-ByKSQlX5.js → BaseComponent-DKaXUiq4.js} +2 -2
  2. package/dist/{VueVideoPlayer-D9kpfmiz.js → VueVideoPlayer-BeylL5J6.js} +2 -2
  3. package/dist/{align-editor-lWVPNKlR.js → align-editor-r0dHXFka.js} +1 -1
  4. package/dist/{barcode-design-zpWBlelw.js → barcode-design-BTNQYLEC.js} +2 -2
  5. package/dist/base/index.es.js +10 -10
  6. package/dist/{diagonal-design-CzRKVjcY.js → diagonal-design-ByuNrPs-.js} +2 -2
  7. package/dist/{dynamic-table-action-DkHb1ST4.js → dynamic-table-action-CHY5xNLE.js} +14 -8
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js} +94 -61
  9. package/dist/{edit.utils-CXmmCnxE-DIhkrimt.js → edit.utils-CXmmCnxE-Cu6obgSA.js} +1 -1
  10. package/dist/excel.css +134 -137
  11. package/dist/{exceljs.min-DoNsTxQp.js → exceljs.min-BAX9-ZsR.js} +2 -2
  12. package/dist/{font-editor-N7060zuX.js → font-editor-DiFflAdU.js} +3 -3
  13. package/dist/{image-design-fXKNGIm3.js → image-design-FDLY6DFg.js} +2 -2
  14. package/dist/{index-pSRRsoDQ.js → index-2WkF904L.js} +5 -4
  15. package/dist/{index-BXxzWXS4.js → index-7u6Pmaax.js} +1 -1
  16. package/dist/{index-Bh-tmh-F.js → index-AGp5c3cl.js} +2 -2
  17. package/dist/{index-Bgh8yfAl.js → index-B-hfUWEs.js} +2 -2
  18. package/dist/{index-CfY2WTcN.js → index-B8pwnxas.js} +2 -2
  19. package/dist/{index-DSUDSbPf.js → index-BCsDTwbK.js} +1 -1
  20. package/dist/{index-Xx36PP2U.js → index-BIeu5JwZ.js} +2 -2
  21. package/dist/{index-DGyygsxH.js → index-BTfYHAPC.js} +2 -2
  22. package/dist/{index-CCw8gM1y.js → index-BdFPuj12.js} +1 -1
  23. package/dist/{index-B6fCHnZl.js → index-C3SyXJii.js} +2 -2
  24. package/dist/{index-CbeaPNDv.js → index-C6jVSwAq.js} +2 -2
  25. package/dist/{index-CtHy6vBq.js → index-C8LoodYv.js} +3 -3
  26. package/dist/{index-DnHsEIgl.js → index-CFVecFFb.js} +2 -2
  27. package/dist/{index-C6STl6m-.js → index-CRIhEnfm.js} +1 -1
  28. package/dist/{index-a0vY4sVG.js → index-CbmHekMw.js} +2 -2
  29. package/dist/{index-yf50oYV1.js → index-ChINVccu.js} +3 -3
  30. package/dist/{index-Cza077GN.js → index-D3s4H_1P.js} +6 -3
  31. package/dist/{index-tjo9dn4X.js → index-DDvfW5-d.js} +2 -2
  32. package/dist/{index-8BLKPnwH.js → index-DEHsGK91.js} +1 -1
  33. package/dist/{index-C4Mlck0_.js → index-DGODLCja.js} +1 -1
  34. package/dist/{index-DgbgqO-w.js → index-DJiuJgNx.js} +1 -1
  35. package/dist/{index-7J6OP2x9.js → index-DXNSTk5n.js} +2 -2
  36. package/dist/{index-CuHKZOUw.js → index-De6oWEZJ.js} +2 -2
  37. package/dist/{index-CaojJi0S.js → index-DgLLlaiF.js} +1 -1
  38. package/dist/{index-CZIuP6b-.js → index-DkYlfWLa.js} +2 -2
  39. package/dist/{index-B5FuofNW.js → index-Dl_ZgCRB.js} +2 -2
  40. package/dist/{index-BDRyjPGr.js → index-Dlihqay0.js} +430 -459
  41. package/dist/{index-BJA3YJns.js → index-DsQp4UCs.js} +3 -3
  42. package/dist/{index-gEI8m-b5.js → index-Go0PUrqy.js} +1 -1
  43. package/dist/{index-bRZUDA7R.js → index-KxrgWfEL.js} +1 -1
  44. package/dist/{index-DeEz6LI3.js → index-dXOMuxrp.js} +2 -2
  45. package/dist/{index-BA4zmgdk.js → index-gGYvWSjX.js} +2 -2
  46. package/dist/{index-C5IwDker.js → index-hllsJVUF.js} +6 -5
  47. package/dist/{index-BEX6lJX9.js → index-jkltWTT1.js} +2 -2
  48. package/dist/{index-8A45IOjw.js → index-rZVFumSM.js} +2 -2
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-BCtvoXM-.js → mb-render-_IUbyYCY.js} +1 -1
  51. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DbNfQIzD.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js} +1 -1
  52. package/dist/{pagination-design-BLhJhoHb.js → pagination-design-BPbb9CiE.js} +2 -2
  53. package/dist/paper-widget-design-BBuWfCac.js +4 -0
  54. package/dist/{print-runtime-instance-v1jzD3oO.js → print-runtime-instance-BmJ9GNr2.js} +1 -1
  55. package/dist/{print-snapshot-renderer-BSf76qD7.js → print-snapshot-renderer-NCND8gig.js} +3 -3
  56. package/dist/{qrcode-design-D9f0hRKd.js → qrcode-design-00WrOrbQ.js} +1 -1
  57. package/dist/{revo-grid.entry-NMojEZjd.js → revo-grid.entry-BZADj2ve.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-jR0LwEie.js → revogr-attribution_7.entry-DbQASE7d.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-DMQ65QLh.js → revogr-clipboard_3.entry-BUDhUelS.js} +2 -2
  60. package/dist/{revogr-data_4.entry-Buvf7dRf.js → revogr-data_4.entry-0V57Lz9p.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-TLjszdsH.js → revogr-filter-panel.entry-BJEYteeW.js} +1 -1
  62. package/dist/seal-design-CJuuDF64.js +4 -0
  63. package/dist/{serialnumber-design-DsSZwN3t.js → serialnumber-design-BbjW4gnZ.js} +1 -1
  64. package/dist/shared/index.es.js +2 -2
  65. package/dist/{single-field-drop-DRMCsh_s.js → single-field-drop-CZmE1hGc.js} +2 -2
  66. package/dist/{size-editor-m8uyQ1bU.js → size-editor-CcYZKUn5.js} +1 -1
  67. package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +1 -7
  68. package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +2 -0
  69. package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +2 -1
  70. package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +4 -3
  71. package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +2 -2
  72. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +0 -1
  73. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -1
  74. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +1 -4
  75. package/dist/src/shared/enum/field-type.d.ts +2 -0
  76. package/dist/{sub-table-factory-BxxIXXCZ.js → sub-table-factory-B0YWwWSA.js} +8 -2
  77. package/dist/{text-design-DgOV0ZhV.js → text-design-BjtdVSoz.js} +2 -2
  78. package/dist/{throttle-Cpk1LoGk-Dj14U5ox.js → throttle-Cpk1LoGk-BVommE6v.js} +1 -1
  79. package/dist/{timediff-design-C0zYdIQI.js → timediff-design-DLlIUaqv.js} +1 -1
  80. package/dist/{trace-like-wrapper-XB73ltP9.js → trace-like-wrapper-D91DvdFd.js} +2 -2
  81. package/dist/{value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js → value-editor.vue_vue_type_style_index_0_lang-CoD8ISWI.js} +2 -2
  82. package/dist/web-render/index.es.js +3 -3
  83. package/dist/{widget-barcode-BLKBY_Dh.js → widget-barcode-BYiE3tsx.js} +4 -4
  84. package/dist/{widget-diagonal-LVxcpB3b.js → widget-diagonal-DHQFi6CR.js} +3 -3
  85. package/dist/{widget-image-Cch0ImSI.js → widget-image-id71BcU3.js} +5 -5
  86. package/dist/{widget-line-CUSNrxgG.js → widget-line-Cp0b7r3U.js} +2 -2
  87. package/dist/{widget-pagination-CM1S6Ytp.js → widget-pagination-BtlUxqBg.js} +5 -5
  88. package/dist/{widget-power-DQJ8F2R7.js → widget-power-DHRfJ48L.js} +3 -3
  89. package/dist/{widget-qrcode-BmnaFfc4.js → widget-qrcode-DNCRxnIr.js} +3 -3
  90. package/dist/{widget-rangelimit-Db0ZX6Fb.js → widget-rangelimit-BSSBKq1C.js} +3 -3
  91. package/dist/{widget-serialnumber-BEOWsFs1.js → widget-serialnumber-CUluNTQw.js} +1 -1
  92. package/dist/{widget-text-DZFAhPxy.js → widget-text-BdzPeniw.js} +5 -5
  93. package/dist/{widget-timediff-C_Nh7uw-.js → widget-timediff-DerdwjRU.js} +2 -2
  94. package/package.json +1 -1
  95. package/dist/paper-widget-design-B8gKgZep.js +0 -4
  96. package/dist/seal-design-B80mv8SJ.js +0 -4
@@ -1,17 +1,17 @@
1
1
  import * as Vue from "vue";
2
2
  import { createVNode, computed, unref, ref, defineComponent, onMounted, resolveComponent, openBlock, createElementBlock, withCtx, watch, toRaw, inject, reactive, createBlock, Fragment, renderList, createTextVNode, toDisplayString as toDisplayString$1, createCommentVNode, createElementVNode, normalizeClass, h, normalizeStyle, watchEffect, renderSlot, shallowRef, defineAsyncComponent, resolveDynamicComponent, mergeProps, normalizeProps, guardReactiveProps, onUnmounted, Text, nextTick, onBeforeUnmount, withModifiers, withDirectives, vShow, Teleport, withKeys, vModelText, isRef, provide, isVNode as isVNode$1, createApp, render, TransitionGroup, toRefs, useAttrs, createSlots, onScopeDispose, useCssVars, onBeforeMount, toRef, mergeDefaults, toHandlers, getCurrentInstance as getCurrentInstance$1, Transition, useModel, mergeModels as mergeModels$1, onErrorCaptured, markRaw } from "vue";
3
- import { g as getAllDataProfiles, i as isDataTableProfile, a as getProfile, b as isBusinessSubTableProfile, c as getProfileByTableType, r as resolveCreateTargetByTableType, d as getBusinessProfileByRefModelType, S as SUB_TABLE_PANEL_TYPE_NAME, e as expandAutofillTemplates, f as resolveAutofillToField, h as SubTableType, j as getAllBusinessRefModelTypes, D as DateObjectContext, k as isBlank$1, F as FIELD_TYPE, l as isSameFieldValue$1, m as runDateObjectHandler, n as companionIdKey, o as companionLabelKey, p as api, P as PaginationFormat, q as PaperWidgeType, B as BwipCodeType, L as LineType, s as PageSizeEnum, O as Orientation, t as src, T as TRACE_FIELD_TYPES, u as BUSINESS_FIELD_TYPES, v as resolveFieldRenderComponent, C as ComponentTypeEnum, w as parse$1, x as estraverse, y as Syntax, z as isDynamicCreateTarget, A as CellType, E as isDynamicCellSubTable, G as ParamModelTypeEnum, H as FieldTypeToJs, I as CreateType, J as uuid2, K as useModal, M as requireEstraverse, N as commonjsGlobal, Q as getDefaultExportFromCjs, R as PaperWidgeValueType, U as getParseFormulaVarInfos, V as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, X as UniqueConstraintType, Y as FieldDefaultValueTypeEnum, Z as FormTypeEnum, _ as mitt, $ as isDateObjectField, a0 as PlatformEnum, a1 as LabelPosition, a2 as BooleanShowMode, a3 as SignatureImageDirectionEnum, a4 as FallbackSignTypeEnum, a5 as SignatureNumberTypeEnum, a6 as SignatureTimeTypeEnum, a7 as SignShowTypeEnum, a8 as SignatureTypeEnum, a9 as _export_sfc, aa as normalizeFieldType, ab as PaperSizeMap, ac as clampSealPosition, ad as normalizeSealDiameter, ae as getFieldMain, af as buildUUID, ag as FieldIconMap, ah as BigNumber, ai as FieldSysVarDefaultValueEnum, aj as CellWidgetViewState, ak as DiagonalDirection, al as WidgetImageSizeMode, am as LineDirection, an as TimeDiffFormat, ao as DiagonalVertex, ap as resolveDiagonalVertex, aq as getThemeColorByTableType, ar as ViewTypeEnum, as as isDynamicSubTablePanelType, at as isFixedSubTablePanelType, au as ExpressionModeEnum, av as ReturnTypeEnum, aw as ExpressionTabEnum, ax as RangeValidateMode, ay as RangeCompareOp, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as findFieldMain, aC as DecimalDisplayMode$1, aD as ImageDisplayModeEnum, aE as FormDesignEnum, aF as BASIC_FIELD_TYPES, aG as getAllTableProfiles, aH as transformUtils, aI as EmptySymbol, aJ as ASSIGNMENTSTRATEGY_ENUM, aK as Dependency_ENUM, aL as EntityModelCategoryEnum, aM as resolveLotDisplayLabel, aN as CheckDsTypeEnum, aO as DeviceLink, aP as DeviceParamsTypeTitle, aQ as AITooltips, aR as DenoiseMethodOptions, aS as BinarizeMethodOptions, aT as DateFormat, aU as withRequestCache, aV as LOT_CONTAINER_ROLE, aW as buildLotSnListQuery, aX as renderUtils, aY as resolveLotRecordByValue, aZ as materialCheck, a_ as getLotLockedReason, a$ as validateReinspectionDate, b0 as ProductionIdentificationTypeEnum, b1 as BindCmpStyleEnum, b2 as getParseRuleInfo, b3 as getParseRuleValue, b4 as normalizeRefLoaderResult, b5 as STOCKTAKE_DIMENSION, b6 as F, b7 as resolveStocktakeSelectApi, b8 as readSealValue, b9 as isSealStamped, ba as RenderModeEnum, bb as stampSealValue, bc as isValidSealValue, bd as clearSealValue, be as normalizeProductionContainerOptions, bf as buildProductionLotListQuery, bg as refUtils, bh as buildInspectionLotListQuery, bi as buildDeviceFilterQuery, bj as DEVICE_GROUP_QUERY_KEY, bk as getRowId, bl as findRuntimeTableRow, bm as calculateFormula, bn as findRuntimeParentRow, bo as useOnlineFormTransformField2Component, bp as FormulaRuleFieldKeyEnum, bq as formulaRuleFieldDict, br as resolveDesignPanelFeatures, bs as BIZ_TABLE_CONFIG_SEED_TYPES, bt as STOCKTAKE_DIMENSION_OPTIONS, bu as isRepeatingSubTablePanelType, bv as moveSealValue, bw as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
3
+ import { g as getAllDataProfiles, i as isDataTableProfile, a as getProfile, b as isBusinessSubTableProfile, c as getProfileByTableType, r as resolveCreateTargetByTableType, d as getBusinessProfileByRefModelType, S as SUB_TABLE_PANEL_TYPE_NAME, e as expandAutofillTemplates, f as resolveAutofillToField, h as SubTableType, j as getAllBusinessRefModelTypes, D as DateObjectContext, k as isBlank$1, F as FIELD_TYPE, l as isSameFieldValue$1, m as runDateObjectHandler, n as companionIdKey, o as companionLabelKey, p as api, P as PaginationFormat, q as PaperWidgeType, B as BwipCodeType, L as LineType, s as PageSizeEnum, O as Orientation, t as src, T as TRACE_FIELD_TYPES, u as BUSINESS_FIELD_TYPES, v as resolveFieldRenderComponent, C as ComponentTypeEnum, w as parse$1, x as estraverse, y as Syntax, z as isDynamicCreateTarget, A as CellType, E as isDynamicCellSubTable, G as ParamModelTypeEnum, H as FieldTypeToJs, I as CreateType, J as uuid2, K as useModal, M as requireEstraverse, N as commonjsGlobal, Q as getDefaultExportFromCjs, R as PaperWidgeValueType, U as getParseFormulaVarInfos, V as onlineFormMasterModelTypeEnum, W as WAREHOUSE_FIELD_TYPES, X as UniqueConstraintType, Y as FieldDefaultValueTypeEnum, Z as FormTypeEnum, _ as mitt, $ as isDateObjectField, a0 as PlatformEnum, a1 as LabelPosition, a2 as BooleanShowMode, a3 as SignatureImageDirectionEnum, a4 as FallbackSignTypeEnum, a5 as SignatureNumberTypeEnum, a6 as SignatureTimeTypeEnum, a7 as SignShowTypeEnum, a8 as SignatureTypeEnum, a9 as _export_sfc, aa as normalizeFieldType, ab as PaperSizeMap, ac as clampSealPosition, ad as normalizeSealDiameter, ae as getFieldMain, af as buildUUID, ag as FieldIconMap, ah as BigNumber, ai as FieldSysVarDefaultValueEnum, aj as CellWidgetViewState, ak as DiagonalDirection, al as WidgetImageSizeMode, am as LineDirection, an as TimeDiffFormat, ao as DiagonalVertex, ap as resolveDiagonalVertex, aq as getThemeColorByTableType, ar as ViewTypeEnum, as as isDynamicSubTablePanelType, at as isFixedSubTablePanelType, au as ExpressionModeEnum, av as ReturnTypeEnum, aw as ExpressionTabEnum, ax as RangeValidateMode, ay as RangeCompareOp, az as getExclusiveBusinessTypeTokens, aA as getSubTableTypeByRefModelType, aB as findFieldMain, aC as DecimalDisplayMode$1, aD as ImageDisplayModeEnum, aE as FormDesignEnum, aF as BASIC_FIELD_TYPES, aG as getAllTableProfiles, aH as transformUtils, aI as EmptySymbol, aJ as ASSIGNMENTSTRATEGY_ENUM, aK as Dependency_ENUM, aL as EntityModelCategoryEnum, aM as resolveLotDisplayLabel, aN as CheckDsTypeEnum, aO as DeviceLink, aP as DeviceParamsTypeTitle, aQ as AITooltips, aR as DenoiseMethodOptions, aS as BinarizeMethodOptions, aT as DateFormat, aU as withRequestCache, aV as LOT_CONTAINER_ROLE, aW as buildLotSnListQuery, aX as renderUtils, aY as resolveLotRecordByValue, aZ as materialCheck, a_ as getLotLockedReason, a$ as validateReinspectionDate, b0 as ProductionIdentificationTypeEnum, b1 as BindCmpStyleEnum, b2 as getParseRuleInfo, b3 as getParseRuleValue, b4 as normalizeRefLoaderResult, b5 as STOCKTAKE_DIMENSION, b6 as F, b7 as resolveStocktakeSelectApi, b8 as readSealValue, b9 as isSealStamped, ba as stampSealValue, bb as isValidSealValue, bc as clearSealValue, bd as normalizeProductionContainerOptions, be as buildProductionLotListQuery, bf as refUtils, bg as buildInspectionLotListQuery, bh as buildDeviceFilterQuery, bi as DEVICE_GROUP_QUERY_KEY, bj as getRowId, bk as findRuntimeTableRow, bl as calculateFormula, bm as RenderModeEnum, bn as findRuntimeParentRow, bo as useOnlineFormTransformField2Component, bp as FormulaRuleFieldKeyEnum, bq as formulaRuleFieldDict, br as resolveDesignPanelFeatures, bs as BIZ_TABLE_CONFIG_SEED_TYPES, bt as STOCKTAKE_DIMENSION_OPTIONS, bu as isRepeatingSubTablePanelType, bv as moveSealValue, bw as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js";
4
4
  import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, omit, has, debounce, isNil, times, clone as clone$3, differenceBy, mapValues, last, set as set$2, hasIn, isEqual } from "lodash-es";
5
5
  import dayjs from "dayjs";
6
6
  import { DataSourceChangeEvent, useFormBaseModal, getBuiltinContextFields, DataSources, FieldFills, FormBaseModalPlugin } from "@gct-paas/form-base";
7
7
  import * as Antd from "ant-design-vue";
8
8
  import { message, Modal, notification, 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";
9
- import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, d as MULTI_SHEET_SCHEMA_VERSION, e as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, f as findFieldProfile, h as normalizeHistoricalBusinessRow, i as DeviceLinkTmplUtil, j as normalizeAIOcrTmpl, k as useWidgetStaticAttrs, l as useRuntimeInstanceServices, s as setSelectValidatorId, m as setSelectAnnotationId, o as useRuntimeRowState, p as getObjectBomMaterialLotQuery, q as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, t as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, w as resolveObjectBomEntry, x as runWithFillProduct, y as useNocodeFormWidget, z as applyConsumeObjectTraceChange, A as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, C as normalizeHistoricalAutofillRow, N as NCB_PROVIDE, F as parseRuntimeFieldPath, G as useStyles, H as useDependency, I as useFieldPresentation, J as useRuntimeEditorFlusher, R as RuntimeFormStateStore, K as createRuntimeInstanceContext, L as RuntimeInstanceRegistry, S as ScanParamType, O as RequiredQtyCalcRule, P as DocumentPaper, Q as DynamicTableAction, _ as _sfc_main$6g } from "./dynamic-table-action-DkHb1ST4.js";
10
- import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DbNfQIzD.js";
9
+ import { b as bindFormulaCacheInvalidation, c as currentParamsConfig, M as MAX_RUNTIME_SHEETS, a as MAX_RUNTIME_SHEET_TITLE_LENGTH, d as MULTI_SHEET_SCHEMA_VERSION, e as createRuntimeDocumentV2, g as getBusinessFieldKey, n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH, B as BorderTD, u as useFormTmplConfig, f as findFieldProfile, h as normalizeHistoricalBusinessRow, i as DeviceLinkTmplUtil, j as normalizeAIOcrTmpl, k as useWidgetStaticAttrs, l as useRuntimeInstanceServices, s as setSelectValidatorId, m as setSelectAnnotationId, o as useRuntimeRowState, p as getObjectBomMaterialLotQuery, q as buildObjectLotExtraQuery, r as resolveObjectFieldKeys, t as MaterialConsumptionPatternEnum, v as validateObjectBomForScan, w as resolveObjectBomEntry, x as runWithFillProduct, y as useNocodeFormWidget, z as applyConsumeObjectTraceChange, A as getObjectBomProductQuery, E as EMPTY_PRODUCT_VERSION_ID, C as normalizeHistoricalAutofillRow, F as parseRuntimeFieldPath, N as NCB_PROVIDE, G as useStyles, H as useDependency, I as useFieldPresentation, J as useRuntimeEditorFlusher, R as RuntimeFormStateStore, K as createRuntimeInstanceContext, L as RuntimeInstanceRegistry, S as ScanParamType, O as RequiredQtyCalcRule, P as DocumentPaper, Q as DynamicTableAction, _ as _sfc_main$6g } from "./dynamic-table-action-CHY5xNLE.js";
10
+ import { S as SEARCH_SEVICE, V as VersionSelect, C as CloseOutlined, E as EmptyImg$2, P as ProductTypeEnum } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js";
11
11
  import { I as Icon$1, w as warning, u as useInsertStyles, s as svgBaseProps, a as useNamespace } from "./AntdIcon-DCIaV352.js";
12
- import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6f, h as initWebNocodeAdapter } from "./index-DnHsEIgl.js";
12
+ import { u as useWebUpload, i as initWebPaasUploadApis, a as useThrottleFn, d as defaultWindow, n as noop, b as useEventListener, c as isIOS, e as unrefElement, r as require$$0, U as Uploader, f as useIntersectionObserver, g as cacheAdapter, w as watchDebounced, A as AddRuleBtn, M as ModalWrapper, F as FormFieldSelect, o as onClickOutside$1, _ as _sfc_main$6f, h as initWebNocodeAdapter } from "./index-CFVecFFb.js";
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-BCtvoXM-.js";
14
+ import { u as useFormModel, F as FormModelController } from "./mb-render-_IUbyYCY.js";
15
15
  import { HttpUtil } from "@gct-paas/api";
16
16
  import { useModal as useModal$1, t as t$2 } from "@gct-paas/core";
17
17
  import { useRoute } from "vue-router";
@@ -450,9 +450,9 @@ function requestDeviceParams(id) {
450
450
  return request;
451
451
  }
452
452
  const FORMULA_FUNCS = {
453
- RoutingParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.routingParamList || []),
454
- InspectionParamCheck: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.inspectionParamList || []),
455
- DeviceParamCheck: async (id, key, value) => {
453
+ PROCESSPARAMCHECK: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.routingParamList || []),
454
+ INSPECTIONPARAMCHECK: (key, value) => CALC_IS_QUALIFIED(key, value, currentParamsConfig.inspectionParamList || []),
455
+ DEVICEPARAMCHECK: async (id, key, value) => {
456
456
  if (!id || typeof key !== "string" || !key.trim() || typeof value !== "number" || !Number.isFinite(value)) {
457
457
  return null;
458
458
  }
@@ -2018,7 +2018,7 @@ function openWindow(url, opt) {
2018
2018
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
2019
2019
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
2020
2020
  async function createWorkbook() {
2021
- const ExcelJs = (await import("./exceljs.min-DoNsTxQp.js").then((n) => n.e)).default;
2021
+ const ExcelJs = (await import("./exceljs.min-BAX9-ZsR.js").then((n) => n.e)).default;
2022
2022
  return new ExcelJs.Workbook();
2023
2023
  }
2024
2024
  class XlsxParser {
@@ -2346,39 +2346,39 @@ class XlsxParser {
2346
2346
  }
2347
2347
  function asyncImportClassModules() {
2348
2348
  const modules = /* @__PURE__ */ Object.assign({
2349
- "./_field_/auto-complete/index.ts": () => import("./index-yf50oYV1.js").then((m) => m["default"]),
2350
- "./_field_/datepicker/index.ts": () => import("./index-DGyygsxH.js").then((m) => m["default"]),
2351
- "./_field_/datetimepicker/index.ts": () => import("./index-CZIuP6b-.js").then((m) => m["default"]),
2352
- "./_field_/department/index.ts": () => import("./index-Bgh8yfAl.js").then((m) => m["default"]),
2353
- "./_field_/enum-select/index.ts": () => import("./index-pSRRsoDQ.js").then((m) => m["default"]),
2354
- "./_field_/input/index.ts": () => import("./index-Xx36PP2U.js").then((m) => m["default"]),
2355
- "./_field_/inputdouble/index.ts": () => import("./index-DeEz6LI3.js").then((m) => m["default"]),
2356
- "./_field_/inputnumber/index.ts": () => import("./index-BA4zmgdk.js").then((m) => m["default"]),
2357
- "./_field_/rdo-select/index.ts": () => import("./index-BJA3YJns.js").then((m) => m["default"]),
2358
- "./_field_/seal/index.ts": () => import("./index-CuHKZOUw.js").then((m) => m["default"]),
2359
- "./_field_/select/index.ts": () => import("./index-CtHy6vBq.js").then((m) => m["default"]),
2360
- "./_field_/sign/index.ts": () => import("./index-B5FuofNW.js").then((m) => m["default"]),
2361
- "./_field_/switch/index.ts": () => import("./index-C5IwDker.js").then((m) => m["default"]),
2362
- "./_field_/textarea/index.ts": () => import("./index-B6fCHnZl.js").then((m) => m["default"]),
2363
- "./_field_/timepicker/index.ts": () => import("./index-Bh-tmh-F.js").then((m) => m["default"]),
2364
- "./_field_/upload-file/index.ts": () => import("./index-a0vY4sVG.js").then((m) => m["default"]),
2365
- "./_field_/upload-image/index.ts": () => import("./index-8A45IOjw.js").then((m) => m["default"]),
2366
- "./_field_/userpicker/index.ts": () => import("./index-7J6OP2x9.js").then((m) => m["default"]),
2367
- "./_widget_/barcode/index.ts": () => import("./index-DSUDSbPf.js").then((m) => m["default"]),
2368
- "./_widget_/combine-fields/index.ts": () => import("./index-Cza077GN.js").then((m) => m["default"]),
2369
- "./_widget_/diagonal/index.ts": () => import("./index-CfY2WTcN.js").then((m) => m["default"]),
2370
- "./_widget_/dyn-value/index.ts": () => import("./index-CbeaPNDv.js").then((m) => m["default"]),
2371
- "./_widget_/image/index.ts": () => import("./index-DgbgqO-w.js").then((m) => m["default"]),
2372
- "./_widget_/line/index.ts": () => import("./index-gEI8m-b5.js").then((m) => m["default"]),
2373
- "./_widget_/power/index.ts": () => import("./index-C4Mlck0_.js").then((m) => m["default"]),
2374
- "./_widget_/qrcode/index.ts": () => import("./index-BXxzWXS4.js").then((m) => m["default"]),
2375
- "./_widget_/ro/index.ts": () => import("./index-CaojJi0S.js").then((m) => m["default"]),
2376
- "./_widget_/serialnumber/index.ts": () => import("./index-CCw8gM1y.js").then((m) => m["default"]),
2377
- "./_widget_/sub-table/index.ts": () => import("./index-8BLKPnwH.js").then((m) => m["default"]),
2378
- "./_widget_/timediff/index.ts": () => import("./index-C6STl6m-.js").then((m) => m["default"]),
2379
- "./paper/index.ts": () => import("./index-bRZUDA7R.js").then((m) => m["default"]),
2380
- "./td/index.ts": () => import("./index-BEX6lJX9.js").then((m) => m["default"]),
2381
- "./tr/index.ts": () => import("./index-tjo9dn4X.js").then((m) => m["default"])
2349
+ "./_field_/auto-complete/index.ts": () => import("./index-ChINVccu.js").then((m) => m["default"]),
2350
+ "./_field_/datepicker/index.ts": () => import("./index-BTfYHAPC.js").then((m) => m["default"]),
2351
+ "./_field_/datetimepicker/index.ts": () => import("./index-DkYlfWLa.js").then((m) => m["default"]),
2352
+ "./_field_/department/index.ts": () => import("./index-B-hfUWEs.js").then((m) => m["default"]),
2353
+ "./_field_/enum-select/index.ts": () => import("./index-2WkF904L.js").then((m) => m["default"]),
2354
+ "./_field_/input/index.ts": () => import("./index-BIeu5JwZ.js").then((m) => m["default"]),
2355
+ "./_field_/inputdouble/index.ts": () => import("./index-dXOMuxrp.js").then((m) => m["default"]),
2356
+ "./_field_/inputnumber/index.ts": () => import("./index-gGYvWSjX.js").then((m) => m["default"]),
2357
+ "./_field_/rdo-select/index.ts": () => import("./index-DsQp4UCs.js").then((m) => m["default"]),
2358
+ "./_field_/seal/index.ts": () => import("./index-De6oWEZJ.js").then((m) => m["default"]),
2359
+ "./_field_/select/index.ts": () => import("./index-C8LoodYv.js").then((m) => m["default"]),
2360
+ "./_field_/sign/index.ts": () => import("./index-Dl_ZgCRB.js").then((m) => m["default"]),
2361
+ "./_field_/switch/index.ts": () => import("./index-hllsJVUF.js").then((m) => m["default"]),
2362
+ "./_field_/textarea/index.ts": () => import("./index-C3SyXJii.js").then((m) => m["default"]),
2363
+ "./_field_/timepicker/index.ts": () => import("./index-AGp5c3cl.js").then((m) => m["default"]),
2364
+ "./_field_/upload-file/index.ts": () => import("./index-CbmHekMw.js").then((m) => m["default"]),
2365
+ "./_field_/upload-image/index.ts": () => import("./index-rZVFumSM.js").then((m) => m["default"]),
2366
+ "./_field_/userpicker/index.ts": () => import("./index-DXNSTk5n.js").then((m) => m["default"]),
2367
+ "./_widget_/barcode/index.ts": () => import("./index-BCsDTwbK.js").then((m) => m["default"]),
2368
+ "./_widget_/combine-fields/index.ts": () => import("./index-D3s4H_1P.js").then((m) => m["default"]),
2369
+ "./_widget_/diagonal/index.ts": () => import("./index-B8pwnxas.js").then((m) => m["default"]),
2370
+ "./_widget_/dyn-value/index.ts": () => import("./index-C6jVSwAq.js").then((m) => m["default"]),
2371
+ "./_widget_/image/index.ts": () => import("./index-DJiuJgNx.js").then((m) => m["default"]),
2372
+ "./_widget_/line/index.ts": () => import("./index-Go0PUrqy.js").then((m) => m["default"]),
2373
+ "./_widget_/power/index.ts": () => import("./index-DGODLCja.js").then((m) => m["default"]),
2374
+ "./_widget_/qrcode/index.ts": () => import("./index-7u6Pmaax.js").then((m) => m["default"]),
2375
+ "./_widget_/ro/index.ts": () => import("./index-DgLLlaiF.js").then((m) => m["default"]),
2376
+ "./_widget_/serialnumber/index.ts": () => import("./index-BdFPuj12.js").then((m) => m["default"]),
2377
+ "./_widget_/sub-table/index.ts": () => import("./index-DEHsGK91.js").then((m) => m["default"]),
2378
+ "./_widget_/timediff/index.ts": () => import("./index-CRIhEnfm.js").then((m) => m["default"]),
2379
+ "./paper/index.ts": () => import("./index-KxrgWfEL.js").then((m) => m["default"]),
2380
+ "./td/index.ts": () => import("./index-jkltWTT1.js").then((m) => m["default"]),
2381
+ "./tr/index.ts": () => import("./index-DDvfW5-d.js").then((m) => m["default"])
2382
2382
  });
2383
2383
  return modules;
2384
2384
  }
@@ -11653,10 +11653,13 @@ const resolveQuickSearchConfig = (fieldMeta) => {
11653
11653
  const fields2 = getBasicSearchFields(fieldMeta);
11654
11654
  return { searchable: true, fields: fields2 };
11655
11655
  }
11656
+ const defaultType = resolveDefaultSearchType(fieldMeta);
11657
+ if (showDisplayAndSearchConfig(fieldMeta) && Array.isArray(fieldMeta.searchField)) {
11658
+ return { searchable: fieldMeta.searchField.length > 0, fields: fieldMeta.searchField };
11659
+ }
11656
11660
  if (fieldMeta.searchField?.length) {
11657
11661
  return { searchable: true, fields: fieldMeta.searchField };
11658
11662
  }
11659
- const defaultType = resolveDefaultSearchType(fieldMeta);
11660
11663
  if (defaultType === FIELD_TYPE.ROUTING_OPERATION || defaultType === FIELD_TYPE.OPERATION) {
11661
11664
  return { searchable: false, fields: [] };
11662
11665
  }
@@ -11671,6 +11674,7 @@ const resolveQuickSearchConfig = (fieldMeta) => {
11671
11674
  FIELD_TYPE.SHOPFLOOR,
11672
11675
  "storage_zone"
11673
11676
  ].includes(defaultType)) {
11677
+ if (showDisplayAndSearchConfig(fieldMeta)) return { searchable: false, fields: [] };
11674
11678
  const fields2 = [...DEFAULT_QUICK_SEARCH_FIELDS[defaultType || ""]];
11675
11679
  return { searchable: true, fields: fields2 };
11676
11680
  }
@@ -14684,7 +14688,7 @@ const _hoisted_2$2m = {
14684
14688
  };
14685
14689
  const _hoisted_3$1M = ["title"];
14686
14690
  const _hoisted_4$1e = { class: "fake-option-select__label" };
14687
- const _hoisted_5$Y = {
14691
+ const _hoisted_5$X = {
14688
14692
  key: 3,
14689
14693
  class: "fake-option-select__affix"
14690
14694
  };
@@ -14767,8 +14771,9 @@ const _sfc_main$5_ = /* @__PURE__ */ defineComponent({
14767
14771
  const labels = options.value.filter((item) => selectedValues.value.includes(item.value)).map((item) => item.label);
14768
14772
  return labels.join(",");
14769
14773
  });
14770
- const DEFAULT_OPTION_GAP2 = computed(() => isBoolean2.value ? 16 : 12);
14771
- const optionGap = computed(() => enumWidget.value.optionGap ?? DEFAULT_OPTION_GAP2.value);
14774
+ const optionGap = computed(() => {
14775
+ return enumWidget.value.optionGap ?? (isPortrait.value ? 0 : 4);
14776
+ });
14772
14777
  const iconLabelSpace = computed(() => {
14773
14778
  if (!isNil(enumWidget.value.iconLabelSpace)) return enumWidget.value.iconLabelSpace;
14774
14779
  return isBoolean2.value ? 6 : 8;
@@ -14836,12 +14841,12 @@ const _sfc_main$5_ = /* @__PURE__ */ defineComponent({
14836
14841
  ], 10, _hoisted_3$1M);
14837
14842
  }), 128))
14838
14843
  ], 2)),
14839
- __props.fieldWidget.suffix ? (openBlock(), createElementBlock("span", _hoisted_5$Y, toDisplayString$1(__props.fieldWidget.suffix), 1)) : createCommentVNode("", true)
14844
+ __props.fieldWidget.suffix ? (openBlock(), createElementBlock("span", _hoisted_5$X, toDisplayString$1(__props.fieldWidget.suffix), 1)) : createCommentVNode("", true)
14840
14845
  ], 6);
14841
14846
  };
14842
14847
  }
14843
14848
  });
14844
- const FakeOptionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$5_, [["__scopeId", "data-v-10208898"]]);
14849
+ const FakeOptionSelect = /* @__PURE__ */ _export_sfc(_sfc_main$5_, [["__scopeId", "data-v-a22b0a63"]]);
14845
14850
  const FieldDesignComponents = {
14846
14851
  "fw:input": FakeInput,
14847
14852
  "fw:number": FakeNumberInput,
@@ -16018,7 +16023,7 @@ function asyncImportWidgetConfigList() {
16018
16023
  return widgetConfigList;
16019
16024
  }
16020
16025
  function asyncImportWidgetDesign() {
16021
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-B80mv8SJ.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-zpWBlelw.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-CzRKVjcY.js"), "./image/image-design.vue": () => import("./image-design-fXKNGIm3.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-BLhJhoHb.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-B8gKgZep.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-D9f0hRKd.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-DsSZwN3t.js"), "./text/text-design.vue": () => import("./text-design-DgOV0ZhV.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-C0zYdIQI.js") });
16026
+ const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-CJuuDF64.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-BTNQYLEC.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-ByuNrPs-.js"), "./image/image-design.vue": () => import("./image-design-FDLY6DFg.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-BPbb9CiE.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-BBuWfCac.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-00WrOrbQ.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-BbjW4gnZ.js"), "./text/text-design.vue": () => import("./text-design-BjtdVSoz.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-DLlIUaqv.js") });
16022
16027
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16023
16028
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16024
16029
  if (mKey) {
@@ -20975,7 +20980,7 @@ const _hoisted_3$1I = {
20975
20980
  class: "inline-icon-suggestions__group"
20976
20981
  };
20977
20982
  const _hoisted_4$1b = ["onPointerdown", "onMouseenter"];
20978
- const _hoisted_5$X = { class: "inline-icon-suggestions__label" };
20983
+ const _hoisted_5$W = { class: "inline-icon-suggestions__label" };
20979
20984
  const InlineCellClipboardMime = "application/x-gct-inline-cell-content+json";
20980
20985
  const InlineCellClipboardVersion = 1;
20981
20986
  const _sfc_main$5H = /* @__PURE__ */ defineComponent({
@@ -21665,7 +21670,7 @@ const _sfc_main$5H = /* @__PURE__ */ defineComponent({
21665
21670
  content: [unref(inlineIconToContent)(row.icon)],
21666
21671
  "show-media-title": false
21667
21672
  }, null, 8, ["content"]),
21668
- createElementVNode("span", _hoisted_5$X, toDisplayString$1(row.icon.name), 1)
21673
+ createElementVNode("span", _hoisted_5$W, toDisplayString$1(row.icon.name), 1)
21669
21674
  ], 42, _hoisted_4$1b)), [
21670
21675
  [vSuggestionOverflowTitle, row.icon.name]
21671
21676
  ])
@@ -21897,8 +21902,6 @@ const _sfc_main$5G = /* @__PURE__ */ defineComponent({
21897
21902
  styles["--auto-line-break"] = "wrap";
21898
21903
  }
21899
21904
  if (props2.cell.multiFields) {
21900
- const mode = styles["writing-mode"] ?? styles.writingMode;
21901
- styles["--composite-text-writing-mode"] = mode && mode !== "unset" ? mode : "horizontal-tb";
21902
21905
  styles.writingMode = styles["writing-mode"] = "horizontal-tb";
21903
21906
  }
21904
21907
  return styles;
@@ -22010,7 +22013,7 @@ const _sfc_main$5G = /* @__PURE__ */ defineComponent({
22010
22013
  };
22011
22014
  }
22012
22015
  });
22013
- const SpreadSheetCell = /* @__PURE__ */ _export_sfc(_sfc_main$5G, [["__scopeId", "data-v-e4431701"]]);
22016
+ const SpreadSheetCell = /* @__PURE__ */ _export_sfc(_sfc_main$5G, [["__scopeId", "data-v-cf05747a"]]);
22014
22017
  const ThresholdValue = 8;
22015
22018
  function getOffsetValue(left, width, points) {
22016
22019
  let offset2 = left;
@@ -23902,8 +23905,8 @@ const _hoisted_1$30 = {
23902
23905
  const _hoisted_2$2b = ["data-x", "width"];
23903
23906
  const _hoisted_3$1G = ["data-x"];
23904
23907
  const _hoisted_4$1a = ["onMouseenter"];
23905
- const _hoisted_5$W = ["onClick"];
23906
- const _hoisted_6$I = ["data-x"];
23908
+ const _hoisted_5$V = ["onClick"];
23909
+ const _hoisted_6$H = ["data-x"];
23907
23910
  const _sfc_main$5o = /* @__PURE__ */ defineComponent({
23908
23911
  __name: "table-x",
23909
23912
  setup(__props) {
@@ -23988,7 +23991,7 @@ const _sfc_main$5o = /* @__PURE__ */ defineComponent({
23988
23991
  createElementVNode("i", {
23989
23992
  class: "iconfont icon-tianjia hover-icon",
23990
23993
  onClick: (e) => addCol(e, colIndex + 1)
23991
- }, null, 8, _hoisted_5$W)
23994
+ }, null, 8, _hoisted_5$V)
23992
23995
  ], 42, _hoisted_4$1a)
23993
23996
  ], 8, _hoisted_3$1G);
23994
23997
  }), 128))
@@ -24011,7 +24014,7 @@ const _sfc_main$5o = /* @__PURE__ */ defineComponent({
24011
24014
  style: normalizeStyle({
24012
24015
  height: tableHeight.value + "px"
24013
24016
  })
24014
- }, null, 14, _hoisted_6$I);
24017
+ }, null, 14, _hoisted_6$H);
24015
24018
  }), 128))
24016
24019
  ], 4)
24017
24020
  ])
@@ -24029,8 +24032,8 @@ const _hoisted_2$2a = {
24029
24032
  };
24030
24033
  const _hoisted_3$1F = ["width"];
24031
24034
  const _hoisted_4$19 = ["data-y", "height"];
24032
- const _hoisted_5$V = { style: { "position": "relative" } };
24033
- const _hoisted_6$H = ["onMouseenter"];
24035
+ const _hoisted_5$U = { style: { "position": "relative" } };
24036
+ const _hoisted_6$G = ["onMouseenter"];
24034
24037
  const _hoisted_7$u = ["onClick"];
24035
24038
  const _sfc_main$5n = /* @__PURE__ */ defineComponent({
24036
24039
  __name: "table-y",
@@ -24085,7 +24088,7 @@ const _sfc_main$5n = /* @__PURE__ */ defineComponent({
24085
24088
  "data-y": rowIndex + 1,
24086
24089
  height: row.height
24087
24090
  }, [
24088
- createElementVNode("td", _hoisted_5$V, [
24091
+ createElementVNode("td", _hoisted_5$U, [
24089
24092
  rowIndex === 0 ? (openBlock(), createElementBlock("div", {
24090
24093
  key: 0,
24091
24094
  class: normalizeClass(["table-y__point top", hoverLineIndex.value === 0 && "is-hover"]),
@@ -24109,7 +24112,7 @@ const _sfc_main$5n = /* @__PURE__ */ defineComponent({
24109
24112
  class: "iconfont icon-tianjia hover-icon",
24110
24113
  onClick: (e) => addRow(e, rowIndex + 1)
24111
24114
  }, null, 8, _hoisted_7$u)
24112
- ], 42, _hoisted_6$H)
24115
+ ], 42, _hoisted_6$G)
24113
24116
  ]),
24114
24117
  createElementVNode("td", {
24115
24118
  class: normalizeClass([
@@ -24258,7 +24261,7 @@ const _hoisted_1$2Z = { class: "file-form-upload-wrapper" };
24258
24261
  const _hoisted_2$29 = { class: "file-form-upload-design" };
24259
24262
  const _hoisted_3$1E = { style: { "pointer-events": "none" } };
24260
24263
  const _hoisted_4$18 = { class: "file-form-upload-text" };
24261
- const _hoisted_5$U = { class: "file-form-hint" };
24264
+ const _hoisted_5$T = { class: "file-form-hint" };
24262
24265
  const _sfc_main$5k = /* @__PURE__ */ defineComponent({
24263
24266
  __name: "file-view",
24264
24267
  setup(__props) {
@@ -24279,7 +24282,7 @@ const _sfc_main$5k = /* @__PURE__ */ defineComponent({
24279
24282
  })
24280
24283
  ]),
24281
24284
  createElementVNode("p", _hoisted_4$18, toDisplayString$1(_ctx.$t("sys.edhr.uploadFileTips")), 1),
24282
- createElementVNode("p", _hoisted_5$U, toDisplayString$1(_ctx.$t("sys.onlineForm.uploadLimitTip")), 1)
24285
+ createElementVNode("p", _hoisted_5$T, toDisplayString$1(_ctx.$t("sys.onlineForm.uploadLimitTip")), 1)
24283
24286
  ]),
24284
24287
  _: 1
24285
24288
  })
@@ -24295,8 +24298,8 @@ const _hoisted_1$2Y = { class: "swapper" };
24295
24298
  const _hoisted_2$28 = { class: "item-box" };
24296
24299
  const _hoisted_3$1D = ["onClick"];
24297
24300
  const _hoisted_4$17 = ["onClick"];
24298
- const _hoisted_5$T = ["onClick"];
24299
- const _hoisted_6$G = ["title"];
24301
+ const _hoisted_5$S = ["onClick"];
24302
+ const _hoisted_6$F = ["title"];
24300
24303
  const _hoisted_7$t = {
24301
24304
  key: 0,
24302
24305
  class: "swapper-btn"
@@ -24392,7 +24395,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
24392
24395
  key: 0,
24393
24396
  class: "sheet-item ell",
24394
24397
  onClick: ($event) => unref(deleteSheet)(item)
24395
- }, toDisplayString$1(_ctx.$t("sys.delText")), 9, _hoisted_5$T)) : createCommentVNode("", true)
24398
+ }, toDisplayString$1(_ctx.$t("sys.delText")), 9, _hoisted_5$S)) : createCommentVNode("", true)
24396
24399
  ]),
24397
24400
  default: withCtx(() => [
24398
24401
  createElementVNode("div", {
@@ -24401,7 +24404,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
24401
24404
  style: normalizeStyle({
24402
24405
  "pointer-events": __props.readonly ? "none" : "unset"
24403
24406
  })
24404
- }, toDisplayString$1(item.title), 13, _hoisted_6$G)
24407
+ }, toDisplayString$1(item.title), 13, _hoisted_6$F)
24405
24408
  ]),
24406
24409
  _: 2
24407
24410
  }, 1032, ["onVisibleChange"])
@@ -24779,7 +24782,7 @@ const _hoisted_2$25 = {
24779
24782
  };
24780
24783
  const _hoisted_3$1A = ["data-x", "width"];
24781
24784
  const _hoisted_4$16 = ["data-x"];
24782
- const _hoisted_5$S = { class: "title-x" };
24785
+ const _hoisted_5$R = { class: "title-x" };
24783
24786
  const _sfc_main$5e = /* @__PURE__ */ defineComponent({
24784
24787
  __name: "sheet-x",
24785
24788
  setup(__props) {
@@ -24846,7 +24849,7 @@ const _sfc_main$5e = /* @__PURE__ */ defineComponent({
24846
24849
  "data-x": colIndex + 1,
24847
24850
  onMousedown: handleClick
24848
24851
  }, [
24849
- createElementVNode("div", _hoisted_5$S, toDisplayString$1(unref(NumColMap)[colIndex + 1]), 1),
24852
+ createElementVNode("div", _hoisted_5$R, toDisplayString$1(unref(NumColMap)[colIndex + 1]), 1),
24850
24853
  createElementVNode("div", {
24851
24854
  class: "resize-x",
24852
24855
  onMousedown: _cache[0] || (_cache[0] = withModifiers(
@@ -25454,11 +25457,11 @@ const _hoisted_3$1y = { style: {
25454
25457
  borderRadius: "4px"
25455
25458
  } };
25456
25459
  const _hoisted_4$14 = { class: "color-picker-middle" };
25457
- const _hoisted_5$R = { style: { "flex": "auto" } };
25458
- const _hoisted_6$F = { class: "color-picker-diamond" };
25460
+ const _hoisted_5$Q = { style: { "flex": "auto" } };
25461
+ const _hoisted_6$E = { class: "color-picker-diamond" };
25459
25462
  const _hoisted_7$s = { class: "color-picker-value" };
25460
25463
  const _hoisted_8$n = { class: "hex" };
25461
- const _hoisted_9$h = ["value"];
25464
+ const _hoisted_9$i = ["value"];
25462
25465
  const _hoisted_10$f = { class: "rgba-r" };
25463
25466
  const _hoisted_11$d = ["value"];
25464
25467
  const _hoisted_12$a = { class: "rgba-g" };
@@ -25869,7 +25872,7 @@ const _sfc_main$5a = /* @__PURE__ */ defineComponent({
25869
25872
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "color-picker-saturation-h" }, null, -1))
25870
25873
  ], 544),
25871
25874
  createElementVNode("div", _hoisted_4$14, [
25872
- createElementVNode("div", _hoisted_5$R, [
25875
+ createElementVNode("div", _hoisted_5$Q, [
25873
25876
  createElementVNode("div", {
25874
25877
  class: "hue-slider",
25875
25878
  ref_key: "hueSliderRef",
@@ -25896,7 +25899,7 @@ const _sfc_main$5a = /* @__PURE__ */ defineComponent({
25896
25899
  }, null, 4)
25897
25900
  ], 544)
25898
25901
  ]),
25899
- createElementVNode("div", _hoisted_6$F, [
25902
+ createElementVNode("div", _hoisted_6$E, [
25900
25903
  createElementVNode("div", {
25901
25904
  style: normalizeStyle(`background-color: ${colorObj.value.rgba};width: 100%;height: 100%;box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 4px rgba(0, 0, 0, .25);`)
25902
25905
  }, null, 4)
@@ -25909,7 +25912,7 @@ const _sfc_main$5a = /* @__PURE__ */ defineComponent({
25909
25912
  value: colorObj.value.hex8,
25910
25913
  onInput: hexChange,
25911
25914
  spellcheck: "false"
25912
- }, null, 40, _hoisted_9$h)
25915
+ }, null, 40, _hoisted_9$i)
25913
25916
  ]),
25914
25917
  _cache[2] || (_cache[2] = createElementVNode("p", null, "Hex", -1))
25915
25918
  ]),
@@ -26163,8 +26166,8 @@ const _hoisted_1$2R = ["aria-label"];
26163
26166
  const _hoisted_2$22 = { class: "inline-media-modal__header" };
26164
26167
  const _hoisted_3$1x = ["aria-label"];
26165
26168
  const _hoisted_4$13 = ["aria-selected"];
26166
- const _hoisted_5$Q = ["aria-selected"];
26167
- const _hoisted_6$E = {
26169
+ const _hoisted_5$P = ["aria-selected"];
26170
+ const _hoisted_6$D = {
26168
26171
  key: 0,
26169
26172
  class: "inline-media-modal__body icon-picker"
26170
26173
  };
@@ -26173,7 +26176,7 @@ const _hoisted_8$m = {
26173
26176
  key: 0,
26174
26177
  class: "icon-picker__group-block"
26175
26178
  };
26176
- const _hoisted_9$g = ["aria-expanded"];
26179
+ const _hoisted_9$h = ["aria-expanded"];
26177
26180
  const _hoisted_10$e = ["src"];
26178
26181
  const _hoisted_11$c = {
26179
26182
  key: 0,
@@ -26443,10 +26446,10 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
26443
26446
  "aria-selected": activeTab.value === "image",
26444
26447
  class: normalizeClass([activeTab.value === "image" && "inline-media-modal__tab--active", "inline-media-modal__tab"]),
26445
26448
  onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "image")
26446
- }, toDisplayString$1(_ctx.$t("sys.image")), 11, _hoisted_5$Q)
26449
+ }, toDisplayString$1(_ctx.$t("sys.image")), 11, _hoisted_5$P)
26447
26450
  ], 8, _hoisted_3$1x)
26448
26451
  ]),
26449
- activeTab.value === "icon" ? (openBlock(), createElementBlock("div", _hoisted_6$E, [
26452
+ activeTab.value === "icon" ? (openBlock(), createElementBlock("div", _hoisted_6$D, [
26450
26453
  createElementVNode("aside", {
26451
26454
  class: "icon-picker__sidebar",
26452
26455
  "aria-label": _ctx.$t("sys.onlineForm.inlineMedia.categoryAriaLabel")
@@ -26472,7 +26475,7 @@ const _sfc_main$55 = /* @__PURE__ */ defineComponent({
26472
26475
  }, null, 8, _hoisted_10$e)
26473
26476
  ], 2),
26474
26477
  createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.onlineForm.inlineMedia.assetIcons")), 1)
26475
- ], 8, _hoisted_9$g),
26478
+ ], 8, _hoisted_9$h),
26476
26479
  assetExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_11$c, [
26477
26480
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(assetIconGroups), (group) => {
26478
26481
  return openBlock(), createElementBlock("button", {
@@ -26746,11 +26749,11 @@ const _hoisted_1$2Q = { class: "designer__toolbar" };
26746
26749
  const _hoisted_2$21 = { class: "designer__toolbar__left" };
26747
26750
  const _hoisted_3$1w = { class: "designer__toolbar__left__second" };
26748
26751
  const _hoisted_4$12 = { class: "second__top" };
26749
- const _hoisted_5$P = { class: "tool--dropdown" };
26750
- const _hoisted_6$D = { class: "flex items-center text-14px" };
26752
+ const _hoisted_5$O = { class: "tool--dropdown" };
26753
+ const _hoisted_6$C = { class: "flex items-center text-14px" };
26751
26754
  const _hoisted_7$q = { class: "tool--dropdown" };
26752
26755
  const _hoisted_8$l = { class: "tool--dropdown" };
26753
- const _hoisted_9$f = { class: "designer__toolbar__left__third" };
26756
+ const _hoisted_9$g = { class: "designer__toolbar__left__third" };
26754
26757
  const _hoisted_10$d = ["onClick"];
26755
26758
  const _hoisted_11$b = ["aria-disabled"];
26756
26759
  const _hoisted_12$8 = ["src"];
@@ -27060,7 +27063,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
27060
27063
  ]),
27061
27064
  _: 1
27062
27065
  }),
27063
- createElementVNode("div", _hoisted_5$P, [
27066
+ createElementVNode("div", _hoisted_5$O, [
27064
27067
  createElementVNode("i", {
27065
27068
  onClick: _cache[6] || (_cache[6] = ($event) => unref(setBorder)(borderIconType.value))
27066
27069
  }, [
@@ -27081,7 +27084,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
27081
27084
  key: item.type
27082
27085
  }, {
27083
27086
  default: withCtx(() => [
27084
- createElementVNode("div", _hoisted_6$D, [
27087
+ createElementVNode("div", _hoisted_6$C, [
27085
27088
  createVNode(BorderIcon, {
27086
27089
  type: item.type,
27087
27090
  class: "mr-6px relative -top-1px"
@@ -27158,7 +27161,7 @@ const _sfc_main$54 = /* @__PURE__ */ defineComponent({
27158
27161
  ])
27159
27162
  ]),
27160
27163
  _cache[28] || (_cache[28] = createElementVNode("div", { class: "vertical-divider" }, null, -1)),
27161
- createElementVNode("div", _hoisted_9$f, [
27164
+ createElementVNode("div", _hoisted_9$g, [
27162
27165
  (openBlock(true), createElementBlock(Fragment, null, renderList(alignList.value, (item, index2) => {
27163
27166
  return openBlock(), createBlock(_component_a_tooltip, {
27164
27167
  placement: "bottom",
@@ -28484,7 +28487,7 @@ const _hoisted_1$2I = ["title"];
28484
28487
  const _hoisted_2$1Y = ["title"];
28485
28488
  const _hoisted_3$1r = ["title"];
28486
28489
  const _hoisted_4$11 = { class: "group-fields__content" };
28487
- const _hoisted_5$O = ["title"];
28490
+ const _hoisted_5$N = ["title"];
28488
28491
  const _sfc_main$4W = /* @__PURE__ */ defineComponent({
28489
28492
  __name: "toolkit-content-param",
28490
28493
  props: {
@@ -28609,7 +28612,7 @@ const _sfc_main$4W = /* @__PURE__ */ defineComponent({
28609
28612
  class: "group-fields__field",
28610
28613
  key: field.key,
28611
28614
  title: field.tooltip
28612
- }, toDisplayString$1(field.caption), 9, _hoisted_5$O);
28615
+ }, toDisplayString$1(field.caption), 9, _hoisted_5$N);
28613
28616
  }), 128))
28614
28617
  ])
28615
28618
  ]);
@@ -29270,7 +29273,7 @@ const _hoisted_2$1U = {
29270
29273
  };
29271
29274
  const _hoisted_3$1o = { class: "guides" };
29272
29275
  const _hoisted_4$10 = ["onClick"];
29273
- const _hoisted_5$N = ["onClick"];
29276
+ const _hoisted_5$M = ["onClick"];
29274
29277
  const _sfc_main$4R = /* @__PURE__ */ defineComponent({
29275
29278
  __name: "toolkit-hook",
29276
29279
  setup(__props) {
@@ -29345,7 +29348,7 @@ const _sfc_main$4R = /* @__PURE__ */ defineComponent({
29345
29348
  key: 1,
29346
29349
  class: normalizeClass(["iconfont", config2.icon]),
29347
29350
  onClick: config2.onClick
29348
- }, null, 10, _hoisted_5$N))
29351
+ }, null, 10, _hoisted_5$M))
29349
29352
  ]);
29350
29353
  }), 128))
29351
29354
  ])
@@ -32269,8 +32272,8 @@ const _hoisted_1$2A = { style: { "float": "right" } };
32269
32272
  const _hoisted_2$1R = { class: "option-container" };
32270
32273
  const _hoisted_3$1n = { class: "option" };
32271
32274
  const _hoisted_4$$ = { class: "option__label" };
32272
- const _hoisted_5$M = { class: "option-container" };
32273
- const _hoisted_6$C = { class: "option" };
32275
+ const _hoisted_5$L = { class: "option-container" };
32276
+ const _hoisted_6$B = { class: "option" };
32274
32277
  const _hoisted_7$p = { class: "option__label" };
32275
32278
  const _sfc_main$4M = /* @__PURE__ */ defineComponent({
32276
32279
  __name: "boolean-props",
@@ -32364,8 +32367,8 @@ const _sfc_main$4M = /* @__PURE__ */ defineComponent({
32364
32367
  "onUpdate:items": _cache[2] || (_cache[2] = ($event) => formState.value.trueAttachFields = $event)
32365
32368
  }, null, 8, ["disabled", "items"])) : createCommentVNode("", true)
32366
32369
  ]),
32367
- createElementVNode("div", _hoisted_5$M, [
32368
- createElementVNode("div", _hoisted_6$C, [
32370
+ createElementVNode("div", _hoisted_5$L, [
32371
+ createElementVNode("div", _hoisted_6$B, [
32369
32372
  createElementVNode("span", _hoisted_7$p, toDisplayString$1(`${_ctx.$t("sys.fake")}`), 1),
32370
32373
  createVNode(_component_a_input, {
32371
32374
  class: "option__input",
@@ -35737,7 +35740,13 @@ const _sfc_main$4m = /* @__PURE__ */ defineComponent({
35737
35740
  };
35738
35741
  }
35739
35742
  });
35740
- const getDefaultDisplayFieldConfig = (_fieldType) => {
35743
+ const DEFAULT_DISPLAY_FIELDS_MAP = {
35744
+ material: ["code_", "name_", "spec_", "uom_id_", "description_"]
35745
+ };
35746
+ const getDefaultDisplayFieldConfig = (fieldType) => {
35747
+ if ([FIELD_TYPE.PRODUCT, FIELD_TYPE.SCRAP_MATERIAL].includes(fieldType)) {
35748
+ return { keys: DEFAULT_DISPLAY_FIELDS_MAP.material, unremovableKeys: ["code_"] };
35749
+ }
35741
35750
  return { keys: [], unremovableKeys: [] };
35742
35751
  };
35743
35752
  const retainsLegacyDisplayFields = (fieldType) => [
@@ -37265,7 +37274,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
37265
37274
  return { options, values, displayTitle };
37266
37275
  });
37267
37276
  const unremovableKeys = computed(() => {
37268
- return (props2.displayFields || []).filter((o) => o._dfUnremovable).map((o) => o._dfValue);
37277
+ return (props2.displayFields || []).filter((o) => o._dfUnremovable || defaultConfig.value.unremovableKeys.includes(o.key)).map((o) => o._dfValue);
37269
37278
  });
37270
37279
  const handleOpenModal = () => {
37271
37280
  open({
@@ -37288,19 +37297,22 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
37288
37297
  _dfValue: f.id,
37289
37298
  _dfUnremovable: defaultConfig.value.unremovableKeys.includes(f.key)
37290
37299
  }));
37291
- emit2("update:displayFields", fields);
37300
+ const locked = (props2.displayFields || []).filter(
37301
+ (field) => defaultConfig.value.unremovableKeys.includes(field.key) && !fields.some((item) => item.key === field.key)
37302
+ );
37303
+ emit2("update:displayFields", [...locked, ...fields]);
37292
37304
  }
37293
37305
  });
37294
37306
  };
37295
37307
  const handleSelectChange = (remainingKeys) => {
37296
37308
  if (props2.disabled) return;
37297
37309
  const options = (props2.displayFields || []).filter((o) => {
37298
- return o._dfUnremovable ? true : remainingKeys.includes(o._dfValue);
37310
+ return unremovableKeys.value.includes(o._dfValue) || remainingKeys.includes(o._dfValue);
37299
37311
  });
37300
37312
  emit2("update:displayFields", options);
37301
37313
  };
37302
37314
  const handleTagClose = (val) => {
37303
- if (props2.disabled) return;
37315
+ if (props2.disabled || unremovableKeys.value.includes(val)) return;
37304
37316
  const options = (props2.displayFields || []).filter((o) => o._dfValue !== val);
37305
37317
  emit2("update:displayFields", options);
37306
37318
  };
@@ -37312,13 +37324,15 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
37312
37324
  if (!shouldInit) return;
37313
37325
  if (!refModelKey) return;
37314
37326
  const retainsDefaults = retainsLegacyDisplayFields(fieldMeta.bizType || fieldType) || fieldMeta.field?.split("$").pop() === "part_id_";
37315
- if (!retainsDefaults) {
37327
+ if (!retainsDefaults && !defaultConfig.value.keys.length) {
37316
37328
  emit2("update:displayFields", []);
37317
37329
  return;
37318
37330
  }
37319
- const { unremovableKeys: unremovableKeys2 } = getDefaultDisplayFieldConfig(fieldMeta.bizType || fieldType);
37331
+ const { keys: defaultKeys, unremovableKeys: unremovableKeys2 } = defaultConfig.value;
37320
37332
  const keys2 = Array.from(
37321
- new Set((props2.legacySearchFields || []).map((key) => key.split(".")[0]))
37333
+ new Set(
37334
+ defaultKeys.length ? defaultKeys : (props2.legacySearchFields || []).map((key) => key.split(".")[0])
37335
+ )
37322
37336
  );
37323
37337
  if (!keys2.length) return;
37324
37338
  if (!modelMetaMap2.value[refModelKey]) {
@@ -37381,7 +37395,7 @@ const _sfc_main$4j = /* @__PURE__ */ defineComponent({
37381
37395
  };
37382
37396
  }
37383
37397
  });
37384
- const DisplayFieldsEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-9a44d291"]]);
37398
+ const DisplayFieldsEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4j, [["__scopeId", "data-v-9ad99a29"]]);
37385
37399
  const _hoisted_1$2q = {
37386
37400
  key: 0,
37387
37401
  class: "quick-search-editor"
@@ -37778,11 +37792,11 @@ const _hoisted_1$2o = {
37778
37792
  const _hoisted_2$1F = { class: "section-heading" };
37779
37793
  const _hoisted_3$1g = { class: "section-title" };
37780
37794
  const _hoisted_4$Y = { class: "rule-count" };
37781
- const _hoisted_5$L = { class: "section-hint" };
37782
- const _hoisted_6$B = { class: "built-in-table" };
37795
+ const _hoisted_5$K = { class: "section-hint" };
37796
+ const _hoisted_6$A = { class: "built-in-table" };
37783
37797
  const _hoisted_7$o = { class: "built-in-table-head" };
37784
37798
  const _hoisted_8$k = ["title"];
37785
- const _hoisted_9$e = { class: "field-name" };
37799
+ const _hoisted_9$f = { class: "field-name" };
37786
37800
  const _hoisted_10$c = { class: "field-key" };
37787
37801
  const _hoisted_11$a = ["aria-label"];
37788
37802
  const _hoisted_12$7 = ["title"];
@@ -38088,9 +38102,9 @@ const _sfc_main$4g = /* @__PURE__ */ defineComponent({
38088
38102
  createTextVNode(toDisplayString$1(unref($t2)("sys.pageDesigner.builtInFillRules")) + " ", 1),
38089
38103
  createElementVNode("span", _hoisted_4$Y, toDisplayString$1(builtInDisplayRules.value.length), 1)
38090
38104
  ]),
38091
- createElementVNode("span", _hoisted_5$L, toDisplayString$1(unref($t2)("sys.pageDesigner.builtInFillRulesTip")), 1)
38105
+ createElementVNode("span", _hoisted_5$K, toDisplayString$1(unref($t2)("sys.pageDesigner.builtInFillRulesTip")), 1)
38092
38106
  ]),
38093
- createElementVNode("div", _hoisted_6$B, [
38107
+ createElementVNode("div", _hoisted_6$A, [
38094
38108
  createElementVNode("div", _hoisted_7$o, [
38095
38109
  createElementVNode("span", null, toDisplayString$1(unref($t2)("sys.pageDesigner.valueSource")), 1),
38096
38110
  _cache[0] || (_cache[0] = createElementVNode("span", null, null, -1)),
@@ -38105,7 +38119,7 @@ const _sfc_main$4g = /* @__PURE__ */ defineComponent({
38105
38119
  class: "field-cell",
38106
38120
  title: rule.fromField
38107
38121
  }, [
38108
- createElementVNode("span", _hoisted_9$e, toDisplayString$1(rule.sourceLabel), 1),
38122
+ createElementVNode("span", _hoisted_9$f, toDisplayString$1(rule.sourceLabel), 1),
38109
38123
  createElementVNode("code", _hoisted_10$c, toDisplayString$1(rule.fromField), 1)
38110
38124
  ], 8, _hoisted_8$k),
38111
38125
  createElementVNode("span", {
@@ -46752,8 +46766,8 @@ const _hoisted_1$2e = { class: "card-signer" };
46752
46766
  const _hoisted_2$1B = { class: "card-account" };
46753
46767
  const _hoisted_3$1f = ["aria-busy"];
46754
46768
  const _hoisted_4$X = ["src"];
46755
- const _hoisted_5$K = { class: "card-message" };
46756
- const _hoisted_6$A = ["disabled"];
46769
+ const _hoisted_5$J = { class: "card-message" };
46770
+ const _hoisted_6$z = ["disabled"];
46757
46771
  const _sfc_main$43 = /* @__PURE__ */ defineComponent({
46758
46772
  __name: "card-signer",
46759
46773
  props: {
@@ -46897,7 +46911,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
46897
46911
  class: normalizeClass(["card-image", { waiting: status.value === "NORMAL" }]),
46898
46912
  alt: ""
46899
46913
  }, null, 10, _hoisted_4$X),
46900
- createElementVNode("div", _hoisted_5$K, toDisplayString$1(statusInfo.value.title), 1)
46914
+ createElementVNode("div", _hoisted_5$J, toDisplayString$1(statusInfo.value.title), 1)
46901
46915
  ], 8, _hoisted_3$1f),
46902
46916
  withDirectives(createElementVNode("input", {
46903
46917
  ref_key: "inputRef",
@@ -46911,7 +46925,7 @@ const _sfc_main$43 = /* @__PURE__ */ defineComponent({
46911
46925
  onKeydown: onCardInput,
46912
46926
  onPaste: _cache[1] || (_cache[1] = withModifiers(() => {
46913
46927
  }, ["prevent"]))
46914
- }, null, 40, _hoisted_6$A), [
46928
+ }, null, 40, _hoisted_6$z), [
46915
46929
  [vModelText, cardNo.value]
46916
46930
  ])
46917
46931
  ]);
@@ -46945,7 +46959,7 @@ const _hoisted_4$W = {
46945
46959
  key: 0,
46946
46960
  class: "sign-popover-content__methods"
46947
46961
  };
46948
- const _hoisted_5$J = { class: "sign-popover-content__footer" };
46962
+ const _hoisted_5$I = { class: "sign-popover-content__footer" };
46949
46963
  const _sfc_main$42 = /* @__PURE__ */ defineComponent({
46950
46964
  __name: "sign-popover-content",
46951
46965
  props: {
@@ -47089,7 +47103,7 @@ const _sfc_main$42 = /* @__PURE__ */ defineComponent({
47089
47103
  "signature-image-direction": __props.signatureImageDirection
47090
47104
  }, null, 8, ["sign-mode", "hidden-sign-mode", "fix-sign-mode", "get-sign-img-by-account", "upload-sign-file", "disable-user-name", "fill-user-name", "default-user-name", "enable-sign-password", "signature-image-direction"]))
47091
47105
  ], 64)),
47092
- withDirectives(createElementVNode("div", _hoisted_5$J, [
47106
+ withDirectives(createElementVNode("div", _hoisted_5$I, [
47093
47107
  createVNode(_component_a_button, {
47094
47108
  size: "small",
47095
47109
  onClick: _cache[3] || (_cache[3] = ($event) => emit2("cancel"))
@@ -47124,8 +47138,8 @@ const _hoisted_1$2c = { class: "adaptive-warning" };
47124
47138
  const _hoisted_2$1z = { class: "warning-title" };
47125
47139
  const _hoisted_3$1d = { class: "warning-list" };
47126
47140
  const _hoisted_4$V = { class: "signature-format-selects" };
47127
- const _hoisted_5$I = { class: "signature-select-wrapper" };
47128
- const _hoisted_6$z = {
47141
+ const _hoisted_5$H = { class: "signature-select-wrapper" };
47142
+ const _hoisted_6$y = {
47129
47143
  key: 4,
47130
47144
  class: "fill-fields-area"
47131
47145
  };
@@ -47482,7 +47496,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
47482
47496
  }, {
47483
47497
  default: withCtx(() => [
47484
47498
  createElementVNode("div", null, [
47485
- createElementVNode("div", _hoisted_5$I, [
47499
+ createElementVNode("div", _hoisted_5$H, [
47486
47500
  createElementVNode("div", {
47487
47501
  onClick: _cache[6] || (_cache[6] = ($event) => setSignDisplayStyle(unref(SignShowTypeEnum).VERTICAL)),
47488
47502
  class: "cursor-pointer"
@@ -47512,7 +47526,7 @@ const _sfc_main$41 = /* @__PURE__ */ defineComponent({
47512
47526
  }, 8, ["label"])) : createCommentVNode("", true),
47513
47527
  !isNewSignatureConfig.value && [unref(SignatureTypeEnum).SIGNATURE_DATE, unref(SignatureTypeEnum).SIGNATURE_DATETIME].includes(
47514
47528
  formState.value.signatureType
47515
- ) && formState.value.signTimeType === unref(SignatureTimeTypeEnum).POPULATE_FIELD ? (openBlock(), createElementBlock("div", _hoisted_6$z, [
47529
+ ) && formState.value.signTimeType === unref(SignatureTimeTypeEnum).POPULATE_FIELD ? (openBlock(), createElementBlock("div", _hoisted_6$y, [
47516
47530
  createVNode(AttachFieldEditor, mergeProps({
47517
47531
  items: formState.value.populateFields,
47518
47532
  "onUpdate:items": _cache[8] || (_cache[8] = ($event) => formState.value.populateFields = $event),
@@ -47691,11 +47705,11 @@ const _hoisted_1$2a = { class: "common-regex-panel__header" };
47691
47705
  const _hoisted_2$1x = { class: "common-regex-panel__title" };
47692
47706
  const _hoisted_3$1b = { class: "common-regex-panel__empty" };
47693
47707
  const _hoisted_4$U = { class: "common-regex-panel__empty-tip" };
47694
- const _hoisted_5$H = { class: "common-regex-panel__header has-border" };
47695
- const _hoisted_6$y = { class: "common-regex-panel__title" };
47708
+ const _hoisted_5$G = { class: "common-regex-panel__header has-border" };
47709
+ const _hoisted_6$x = { class: "common-regex-panel__title" };
47696
47710
  const _hoisted_7$m = { class: "common-regex-panel__list" };
47697
47711
  const _hoisted_8$i = { class: "common-regex-panel__item-main" };
47698
- const _hoisted_9$d = ["title"];
47712
+ const _hoisted_9$e = ["title"];
47699
47713
  const _hoisted_10$b = ["title"];
47700
47714
  const _hoisted_11$9 = { class: "common-regex-panel__item-actions" };
47701
47715
  const _hoisted_12$6 = ["onClick"];
@@ -47903,8 +47917,8 @@ const _sfc_main$3$ = /* @__PURE__ */ defineComponent({
47903
47917
  })
47904
47918
  ])
47905
47919
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
47906
- createElementVNode("div", _hoisted_5$H, [
47907
- createElementVNode("span", _hoisted_6$y, toDisplayString$1(_ctx.$t("sys.regexEditor.commonReg")), 1),
47920
+ createElementVNode("div", _hoisted_5$G, [
47921
+ createElementVNode("span", _hoisted_6$x, toDisplayString$1(_ctx.$t("sys.regexEditor.commonReg")), 1),
47908
47922
  createElementVNode("button", {
47909
47923
  class: "common-regex-panel__add",
47910
47924
  type: "button",
@@ -47928,7 +47942,7 @@ const _sfc_main$3$ = /* @__PURE__ */ defineComponent({
47928
47942
  createElementVNode("div", {
47929
47943
  class: "common-regex-panel__item-name",
47930
47944
  title: item.name
47931
- }, toDisplayString$1(item.name), 9, _hoisted_9$d),
47945
+ }, toDisplayString$1(item.name), 9, _hoisted_9$e),
47932
47946
  createElementVNode("div", {
47933
47947
  class: "common-regex-panel__item-value",
47934
47948
  title: item.value
@@ -48036,8 +48050,8 @@ const _hoisted_1$29 = { class: "regex-editor-modal" };
48036
48050
  const _hoisted_2$1w = { class: "regex-editor-modal__item" };
48037
48051
  const _hoisted_3$1a = { class: "regex-editor-modal__label" };
48038
48052
  const _hoisted_4$T = { class: "regex-editor-modal__regex-row" };
48039
- const _hoisted_5$G = { class: "regex-editor-modal__regex-main" };
48040
- const _hoisted_6$x = {
48053
+ const _hoisted_5$F = { class: "regex-editor-modal__regex-main" };
48054
+ const _hoisted_6$w = {
48041
48055
  key: 0,
48042
48056
  class: "error"
48043
48057
  };
@@ -48046,7 +48060,7 @@ const _hoisted_7$l = {
48046
48060
  class: "regex-editor-modal__tags"
48047
48061
  };
48048
48062
  const _hoisted_8$h = ["onClick"];
48049
- const _hoisted_9$c = { class: "regex-common-panel-overlay__clip" };
48063
+ const _hoisted_9$d = { class: "regex-common-panel-overlay__clip" };
48050
48064
  const _hoisted_10$a = { class: "delete-confirm__title" };
48051
48065
  const _hoisted_11$8 = { class: "delete-confirm__actions" };
48052
48066
  const _hoisted_12$5 = { class: "regex-editor-modal__item regex-editor-modal__item--hint" };
@@ -48186,7 +48200,7 @@ const _sfc_main$3_ = /* @__PURE__ */ defineComponent({
48186
48200
  createElementVNode("div", _hoisted_2$1w, [
48187
48201
  createElementVNode("div", _hoisted_3$1a, toDisplayString$1(_ctx.$t("sys.regexEditor.regex")), 1),
48188
48202
  createElementVNode("div", _hoisted_4$T, [
48189
- createElementVNode("div", _hoisted_5$G, [
48203
+ createElementVNode("div", _hoisted_5$F, [
48190
48204
  createElementVNode("div", {
48191
48205
  class: normalizeClass({ "ant-form-item-has-error": !!errors.regex })
48192
48206
  }, [
@@ -48202,7 +48216,7 @@ const _sfc_main$3_ = /* @__PURE__ */ defineComponent({
48202
48216
  onBlur: _cache[2] || (_cache[2] = ($event) => validateField("regex"))
48203
48217
  }, null, 8, ["value", "placeholder", "disabled"])
48204
48218
  ], 2),
48205
- errors.regex ? (openBlock(), createElementBlock("div", _hoisted_6$x, toDisplayString$1(errors.regex), 1)) : createCommentVNode("", true),
48219
+ errors.regex ? (openBlock(), createElementBlock("div", _hoisted_6$w, toDisplayString$1(errors.regex), 1)) : createCommentVNode("", true),
48206
48220
  commonList.value.length && !__props.readonly ? (openBlock(), createElementBlock("div", _hoisted_7$l, [
48207
48221
  (openBlock(true), createElementBlock(Fragment, null, renderList(commonList.value, (item) => {
48208
48222
  return openBlock(), createBlock(_component_a_tooltip, {
@@ -48239,7 +48253,7 @@ const _sfc_main$3_ = /* @__PURE__ */ defineComponent({
48239
48253
  onClick: _cache[7] || (_cache[7] = withModifiers(() => {
48240
48254
  }, ["stop"]))
48241
48255
  }, [
48242
- createElementVNode("div", _hoisted_9$c, [
48256
+ createElementVNode("div", _hoisted_9$d, [
48243
48257
  panelShown.value ? (openBlock(), createBlock(CommonRegexPanel, {
48244
48258
  key: 0,
48245
48259
  ref_key: "commonPanelRef",
@@ -50888,7 +50902,8 @@ const _sfc_main$3H = /* @__PURE__ */ defineComponent({
50888
50902
  }
50889
50903
  });
50890
50904
  const optionGap = computed({
50891
- get: () => props2.widget.optionGap ?? DEFAULT_OPTION_GAP$1,
50905
+ // 只展示旧组件的实际间距,不在打开属性面板时补默认值。
50906
+ get: () => props2.widget.optionGap ?? (props2.widget.direction === Orientation.Portrait ? 0 : 4),
50892
50907
  set: (value) => {
50893
50908
  formState.value.optionGap = value ?? DEFAULT_OPTION_GAP$1;
50894
50909
  }
@@ -51072,7 +51087,7 @@ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
51072
51087
  });
51073
51088
  const optionGap = computed({
51074
51089
  get() {
51075
- return props2.widget.optionGap ?? DEFAULT_OPTION_GAP;
51090
+ return props2.widget.optionGap ?? (props2.widget.direction === Orientation.Portrait ? 0 : 4);
51076
51091
  },
51077
51092
  set(v) {
51078
51093
  formState.value.optionGap = v ?? DEFAULT_OPTION_GAP;
@@ -52370,34 +52385,31 @@ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
52370
52385
  group: { id: "ONLINE_FORM_FUNC", name: "业务函数" },
52371
52386
  functions: [
52372
52387
  {
52373
- id: "RoutingParamCheck",
52388
+ id: "PROCESSPARAMCHECK",
52374
52389
  returnType: "boolean",
52375
52390
  args: ["key", "value"],
52376
- desc: `工艺参数合格校验(参数字段KEY,参数字段)
52377
- 根据表单填报的参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52378
- 示例
52379
- 工艺参数合格校验('gycs',工艺参数)==true`,
52380
- definition: "declare function RoutingParamCheck(key:string; value: number): Promise<boolean | null>;"
52391
+ desc: `PROCESSPARAMCHECK(参数字段KEY,参数字段)
52392
+ 根据表单填报的工艺参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52393
+ 示例:PROCESSPARAMCHECK('gycs',灭菌参数) 返回 true`,
52394
+ definition: "declare function PROCESSPARAMCHECK(key:string; value: number): Promise<boolean | null>;"
52381
52395
  },
52382
52396
  {
52383
- id: "DeviceParamCheck",
52397
+ id: "DEVICEPARAMCHECK",
52384
52398
  returnType: "boolean",
52385
52399
  args: ["id", "key", "value"],
52386
- desc: `设备参数合格校验(设备字段,参数字段KEY,参数字段)
52387
- 根据表单填报的参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52388
- 示例
52389
- 设备参数合格校验(设备字段,'sbcs',设备参数)==true`,
52390
- definition: "declare function DeviceParamCheck(id:string; key:string, value: number): Promise<boolean | null>;"
52400
+ desc: `DEVICEPARAMCHECK(设备字段,参数字段KEY,参数字段)
52401
+ 根据表单填报的设备参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52402
+ 示例:DEVICEPARAMCHECK(设备字段,'sbcs',运行转速) 返回 true`,
52403
+ definition: "declare function DEVICEPARAMCHECK(id:string; key:string, value: number): Promise<boolean | null>;"
52391
52404
  },
52392
52405
  {
52393
- id: "InspectionParamCheck",
52406
+ id: "INSPECTIONPARAMCHECK",
52394
52407
  returnType: "boolean",
52395
52408
  args: ["key", "value"],
52396
- desc: `检验参数合格校验(参数字段KEY,参数字段)
52397
- 根据表单填报的参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52398
- 示例
52399
- 检验参数合格校验('mjwd',灭菌温度)==true`,
52400
- definition: "declare function InspectionParamCheck(key:string; value: number): Promise<boolean | null>;"
52409
+ desc: `INSPECTIONPARAMCHECK(参数字段KEY,参数字段)
52410
+ 根据表单填报的检验参数实际值,与该参数配置的上限和下限进行比较,判断参数是否合格。
52411
+ 示例:INSPECTIONPARAMCHECK('jycs',含量) 返回 true`,
52412
+ definition: "declare function INSPECTIONPARAMCHECK(key:string; value: number): Promise<boolean | null>;"
52401
52413
  }
52402
52414
  ]
52403
52415
  }
@@ -52597,16 +52609,16 @@ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
52597
52609
  };
52598
52610
  }
52599
52611
  });
52600
- const addDependencyModal = /* @__PURE__ */ _export_sfc(_sfc_main$3i, [["__scopeId", "data-v-96099e43"]]);
52612
+ const addDependencyModal = /* @__PURE__ */ _export_sfc(_sfc_main$3i, [["__scopeId", "data-v-d15f9081"]]);
52601
52613
  const _hoisted_1$1Y = { class: "text-[#C3C3C3] text-12px mb8px" };
52602
52614
  const _hoisted_2$1p = { class: "ks-row" };
52603
52615
  const _hoisted_3$16 = { class: "mr-auto" };
52604
52616
  const _hoisted_4$R = { class: "text-[#212528] text-[400]" };
52605
- const _hoisted_5$F = {
52617
+ const _hoisted_5$E = {
52606
52618
  key: 0,
52607
52619
  class: "ml5px text-[#c3c3c3]"
52608
52620
  };
52609
- const _hoisted_6$w = ["onClick"];
52621
+ const _hoisted_6$v = ["onClick"];
52610
52622
  const _hoisted_7$k = { class: "text-[#797A7D] bg-[#fff] p-4px mt-2px ell h26px" };
52611
52623
  const _sfc_main$3h = /* @__PURE__ */ defineComponent({
52612
52624
  __name: "cell-widget-dependency",
@@ -52760,7 +52772,7 @@ const _sfc_main$3h = /* @__PURE__ */ defineComponent({
52760
52772
  createElementVNode("div", _hoisted_2$1p, [
52761
52773
  createElementVNode("div", _hoisted_3$16, [
52762
52774
  createElementVNode("span", _hoisted_4$R, toDisplayString$1(_ctx.$t("sys.pageDesigner." + item)), 1),
52763
- item === unref(Dependency_ENUM).ASSIGNMENT ? (openBlock(), createElementBlock("span", _hoisted_5$F, [
52775
+ item === unref(Dependency_ENUM).ASSIGNMENT ? (openBlock(), createElementBlock("span", _hoisted_5$E, [
52764
52776
  createTextVNode(toDisplayString$1(_ctx.$t("sys.pageDesigner.formulaCalculation")) + " ", 1),
52765
52777
  configDependency.value[item]?.strategy ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
52766
52778
  createTextVNode(" · " + toDisplayString$1(_ctx.$t("sys.pageDesigner." + configDependency.value[item].strategy)), 1)
@@ -52775,7 +52787,7 @@ const _sfc_main$3h = /* @__PURE__ */ defineComponent({
52775
52787
  createElementVNode("i", {
52776
52788
  class: "iconfont icon-bianji cursor-pointer ml8px primary-gct-hover text-[#797A7D] allow-readonly-view",
52777
52789
  onClick: ($event) => editList(item, index2)
52778
- }, null, 8, _hoisted_6$w)
52790
+ }, null, 8, _hoisted_6$v)
52779
52791
  ]),
52780
52792
  _: 2
52781
52793
  }, 1024),
@@ -53075,6 +53087,10 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
53075
53087
  }
53076
53088
  return tabs;
53077
53089
  });
53090
+ const formatKey = computed(() => {
53091
+ const fk = props2.fieldMeta?.field?.split("$") || [];
53092
+ return fk[fk.length - 1];
53093
+ });
53078
53094
  watch(
53079
53095
  [availableTabs, activeTab],
53080
53096
  ([tabs, currentTab]) => {
@@ -53161,9 +53177,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
53161
53177
  label: _ctx.$t("sys.onlineForm.fieldKey")
53162
53178
  }, {
53163
53179
  default: withCtx(() => [
53164
- createVNode(FieldAttributeValue, {
53165
- value: __props.fieldMeta?.field
53166
- }, null, 8, ["value"])
53180
+ createVNode(FieldAttributeValue, { value: formatKey.value }, null, 8, ["value"])
53167
53181
  ]),
53168
53182
  _: 1
53169
53183
  }, 8, ["label"]),
@@ -53344,7 +53358,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
53344
53358
  };
53345
53359
  }
53346
53360
  });
53347
- const FieldConfig = /* @__PURE__ */ _export_sfc(_sfc_main$3c, [["__scopeId", "data-v-b9d0f7f4"]]);
53361
+ const FieldConfig = /* @__PURE__ */ _export_sfc(_sfc_main$3c, [["__scopeId", "data-v-b57d639e"]]);
53348
53362
  const _sfc_main$3b = /* @__PURE__ */ defineComponent({
53349
53363
  __name: "panel-seal",
53350
53364
  setup(__props) {
@@ -53360,7 +53374,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
53360
53374
  }
53361
53375
  });
53362
53376
  function asyncImportWidgetProp() {
53363
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BLKBY_Dh.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-LVxcpB3b.js"), "./widget-image.vue": () => import("./widget-image-Cch0ImSI.js"), "./widget-line.vue": () => import("./widget-line-CUSNrxgG.js"), "./widget-pagination.vue": () => import("./widget-pagination-CM1S6Ytp.js"), "./widget-power.vue": () => import("./widget-power-DQJ8F2R7.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-BmnaFfc4.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-Db0ZX6Fb.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-BEOWsFs1.js"), "./widget-text.vue": () => import("./widget-text-DZFAhPxy.js"), "./widget-timediff.vue": () => import("./widget-timediff-C_Nh7uw-.js") });
53377
+ const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BYiE3tsx.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DHQFi6CR.js"), "./widget-image.vue": () => import("./widget-image-id71BcU3.js"), "./widget-line.vue": () => import("./widget-line-Cp0b7r3U.js"), "./widget-pagination.vue": () => import("./widget-pagination-BtlUxqBg.js"), "./widget-power.vue": () => import("./widget-power-DHRfJ48L.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-DNCRxnIr.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-BSSBKq1C.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-CUluNTQw.js"), "./widget-text.vue": () => import("./widget-text-BdzPeniw.js"), "./widget-timediff.vue": () => import("./widget-timediff-DerdwjRU.js") });
53364
53378
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
53365
53379
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
53366
53380
  if (mKey) {
@@ -54325,8 +54339,8 @@ const _hoisted_1$1N = { class: "dynamic-table__header mb-4px" };
54325
54339
  const _hoisted_2$1h = ["onClick"];
54326
54340
  const _hoisted_3$12 = { class: "dynamic-table__body" };
54327
54341
  const _hoisted_4$P = ["onClick"];
54328
- const _hoisted_5$E = ["onClick"];
54329
- const _hoisted_6$v = {
54342
+ const _hoisted_5$D = ["onClick"];
54343
+ const _hoisted_6$u = {
54330
54344
  key: 0,
54331
54345
  class: "flex justify-center color-[#bebdc7]"
54332
54346
  };
@@ -54382,11 +54396,11 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
54382
54396
  key: 0,
54383
54397
  class: "iconfont icon-shanchu2",
54384
54398
  onClick: withModifiers(() => unref(removeSubTable)(item), ["stop"])
54385
- }, null, 8, _hoisted_5$E)) : createCommentVNode("", true)
54399
+ }, null, 8, _hoisted_5$D)) : createCommentVNode("", true)
54386
54400
  ])
54387
54401
  ]);
54388
54402
  }), 128)),
54389
- !__props.tables.length ? (openBlock(), createElementBlock("div", _hoisted_6$v, toDisplayString$1(_ctx.$t("sys.onlineForm.notSetYet")) + toDisplayString$1(_ctx.$t("sys.onlineForm.subTableType." + __props.type)), 1)) : createCommentVNode("", true)
54403
+ !__props.tables.length ? (openBlock(), createElementBlock("div", _hoisted_6$u, toDisplayString$1(_ctx.$t("sys.onlineForm.notSetYet")) + toDisplayString$1(_ctx.$t("sys.onlineForm.subTableType." + __props.type)), 1)) : createCommentVNode("", true)
54390
54404
  ]),
54391
54405
  _: 1
54392
54406
  }, 8, ["label"])) : createCommentVNode("", true);
@@ -54490,14 +54504,14 @@ const _hoisted_1$1L = {
54490
54504
  const _hoisted_2$1g = { class: "rules-item rules-item-title" };
54491
54505
  const _hoisted_3$11 = { class: "title left" };
54492
54506
  const _hoisted_4$O = { class: "title right" };
54493
- const _hoisted_5$D = { class: "rules-item-value" };
54494
- const _hoisted_6$u = { class: "rules-item-middle" };
54507
+ const _hoisted_5$C = { class: "rules-item-value" };
54508
+ const _hoisted_6$t = { class: "rules-item-middle" };
54495
54509
  const _hoisted_7$j = { class: "rules-item-value" };
54496
54510
  const _hoisted_8$g = {
54497
54511
  key: 0,
54498
54512
  class: "rules-item-ope"
54499
54513
  };
54500
- const _hoisted_9$b = ["onClick"];
54514
+ const _hoisted_9$c = ["onClick"];
54501
54515
  const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
54502
54516
  __name: "config-modal",
54503
54517
  props: {
@@ -54641,7 +54655,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
54641
54655
  key: i,
54642
54656
  class: "rules-item"
54643
54657
  }, [
54644
- createElementVNode("div", _hoisted_5$D, [
54658
+ createElementVNode("div", _hoisted_5$C, [
54645
54659
  createVNode(_component_a_form_item, {
54646
54660
  name: ["configList", i, "main", "key"],
54647
54661
  rules: __props.readonly ? [] : [{ required: true, message: _ctx.$t("sys.chooseText") }]
@@ -54659,7 +54673,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
54659
54673
  _: 2
54660
54674
  }, 1032, ["name", "rules"])
54661
54675
  ]),
54662
- createElementVNode("div", _hoisted_6$u, toDisplayString$1(_ctx.$t("sys.edhr.mutualExclusion")), 1),
54676
+ createElementVNode("div", _hoisted_6$t, toDisplayString$1(_ctx.$t("sys.edhr.mutualExclusion")), 1),
54663
54677
  createElementVNode("div", _hoisted_7$j, [
54664
54678
  createVNode(_component_a_form_item, {
54665
54679
  name: ["configList", i, "checkIds"],
@@ -54683,7 +54697,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
54683
54697
  createElementVNode("i", {
54684
54698
  class: "iconfont icon-shanchu2 error-gct cursor-pointer lh-32px",
54685
54699
  onClick: ($event) => onDelete(i)
54686
- }, null, 8, _hoisted_9$b)
54700
+ }, null, 8, _hoisted_9$c)
54687
54701
  ])) : createCommentVNode("", true)
54688
54702
  ]);
54689
54703
  }), 128))
@@ -54727,14 +54741,14 @@ const _hoisted_1$1K = { class: "panel-document" };
54727
54741
  const _hoisted_2$1f = { class: "pl-12px pr-12px pt-20px pb-20px" };
54728
54742
  const _hoisted_3$10 = { class: "color-[#212528] text-12px lh-[18px]" };
54729
54743
  const _hoisted_4$N = { class: "color-[#212528] text-12px lh-[18px]" };
54730
- const _hoisted_5$C = { class: "flex justify-end" };
54731
- const _hoisted_6$t = { class: "flex justify-end" };
54744
+ const _hoisted_5$B = { class: "flex justify-end" };
54745
+ const _hoisted_6$s = { class: "flex justify-end" };
54732
54746
  const _hoisted_7$i = {
54733
54747
  key: 0,
54734
54748
  class: "dynamic-table"
54735
54749
  };
54736
54750
  const _hoisted_8$f = { class: "dynamic-table__header" };
54737
- const _hoisted_9$a = {
54751
+ const _hoisted_9$b = {
54738
54752
  key: 1,
54739
54753
  class: "flex justify-center color-[#bebdc7]"
54740
54754
  };
@@ -55019,7 +55033,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
55019
55033
  class: "justify-between"
55020
55034
  }, {
55021
55035
  default: withCtx(() => [
55022
- createElementVNode("div", _hoisted_5$C, [
55036
+ createElementVNode("div", _hoisted_5$B, [
55023
55037
  createVNode(_component_a_switch, {
55024
55038
  size: "small",
55025
55039
  disabled: unref(sheetReadonly2),
@@ -55035,7 +55049,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
55035
55049
  class: "justify-between"
55036
55050
  }, {
55037
55051
  default: withCtx(() => [
55038
- createElementVNode("div", _hoisted_6$t, [
55052
+ createElementVNode("div", _hoisted_6$s, [
55039
55053
  createVNode(_component_a_switch, {
55040
55054
  size: "small",
55041
55055
  disabled: unref(sheetReadonly2),
@@ -55060,7 +55074,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
55060
55074
  onClick: _cache[6] || (_cache[6] = withModifiers(() => unref(removeThead)(), ["stop"]))
55061
55075
  })) : createCommentVNode("", true)
55062
55076
  ])
55063
- ])) : (openBlock(), createElementBlock("div", _hoisted_9$a, toDisplayString$1(_ctx.$t("sys.onlineForm.noHeaderSetYet")), 1))
55077
+ ])) : (openBlock(), createElementBlock("div", _hoisted_9$b, toDisplayString$1(_ctx.$t("sys.onlineForm.noHeaderSetYet")), 1))
55064
55078
  ]),
55065
55079
  _: 1
55066
55080
  }, 8, ["label"]),
@@ -55234,8 +55248,8 @@ const _hoisted_1$1I = { class: "p-12px h-full flex flex-col" };
55234
55248
  const _hoisted_2$1d = { class: "text-12px font-500 flex-none" };
55235
55249
  const _hoisted_3$_ = ["id"];
55236
55250
  const _hoisted_4$L = { key: 0 };
55237
- const _hoisted_5$B = ["onMouseenter"];
55238
- const _hoisted_6$s = ["onClick"];
55251
+ const _hoisted_5$A = ["onMouseenter"];
55252
+ const _hoisted_6$r = ["onClick"];
55239
55253
  const _hoisted_7$h = ["onClick"];
55240
55254
  const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
55241
55255
  __name: "panel-paper-widget-group",
@@ -55338,13 +55352,13 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
55338
55352
  class: normalizeClass(["iconfont", widget2.icon])
55339
55353
  }, null, 2),
55340
55354
  createElementVNode("span", null, toDisplayString$1(widget2.name), 1)
55341
- ], 8, _hoisted_6$s),
55355
+ ], 8, _hoisted_6$r),
55342
55356
  !unref(sheetReadonly2) ? (openBlock(), createElementBlock("i", {
55343
55357
  key: 0,
55344
55358
  class: "iconfont icon-shanchu2",
55345
55359
  onClick: withModifiers(($event) => handleRemovePaperWidget(widget2.id), ["stop"])
55346
55360
  }, null, 8, _hoisted_7$h)) : createCommentVNode("", true)
55347
- ], 42, _hoisted_5$B);
55361
+ ], 42, _hoisted_5$A);
55348
55362
  }), 128))
55349
55363
  ])
55350
55364
  ], 40, _hoisted_3$_)
@@ -55399,11 +55413,11 @@ const _hoisted_1$1G = { class: "panel-fixed-table" };
55399
55413
  const _hoisted_2$1b = { class: "readonly-text" };
55400
55414
  const _hoisted_3$Z = { class: "readonly-text" };
55401
55415
  const _hoisted_4$K = { class: "readonly-text" };
55402
- const _hoisted_5$A = { class: "readonly-text" };
55403
- const _hoisted_6$r = { class: "readonly-text" };
55416
+ const _hoisted_5$z = { class: "readonly-text" };
55417
+ const _hoisted_6$q = { class: "readonly-text" };
55404
55418
  const _hoisted_7$g = { class: "mt-12px text-12px color-[#252525]" };
55405
55419
  const _hoisted_8$e = { class: "color-[#3168EC]" };
55406
- const _hoisted_9$9 = { class: "config-tip" };
55420
+ const _hoisted_9$a = { class: "config-tip" };
55407
55421
  const _hoisted_10$8 = { class: "config-extra" };
55408
55422
  const _hoisted_11$6 = { class: "config-tip" };
55409
55423
  const _sfc_main$2W = /* @__PURE__ */ defineComponent({
@@ -55592,7 +55606,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
55592
55606
  label: _ctx.$t("sys.onlineForm.numberOfRows")
55593
55607
  }, {
55594
55608
  default: withCtx(() => [
55595
- createElementVNode("span", _hoisted_5$A, toDisplayString$1(rowCount.value), 1)
55609
+ createElementVNode("span", _hoisted_5$z, toDisplayString$1(rowCount.value), 1)
55596
55610
  ]),
55597
55611
  _: 1
55598
55612
  }, 8, ["label"])
@@ -55605,7 +55619,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
55605
55619
  label: _ctx.$t("sys.onlineForm.numberOfColumns")
55606
55620
  }, {
55607
55621
  default: withCtx(() => [
55608
- createElementVNode("span", _hoisted_6$r, toDisplayString$1(colCount.value), 1)
55622
+ createElementVNode("span", _hoisted_6$q, toDisplayString$1(colCount.value), 1)
55609
55623
  ]),
55610
55624
  _: 1
55611
55625
  }, 8, ["label"])
@@ -55666,7 +55680,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
55666
55680
  disabled: unref(sheetReadonly2),
55667
55681
  placeholder: _ctx.$t("sys.chooseText")
55668
55682
  }, null, 8, ["value", "options", "disabled", "placeholder"]),
55669
- createElementVNode("div", _hoisted_9$9, toDisplayString$1(_ctx.$t("sys.fixedTableMainFieldBindingTip")), 1)
55683
+ createElementVNode("div", _hoisted_9$a, toDisplayString$1(_ctx.$t("sys.fixedTableMainFieldBindingTip")), 1)
55670
55684
  ]),
55671
55685
  _: 1
55672
55686
  }, 8, ["label"]),
@@ -55711,7 +55725,7 @@ const _hoisted_1$1F = { class: "p-16px" };
55711
55725
  const _hoisted_2$1a = { class: "flex" };
55712
55726
  const _hoisted_3$Y = { class: "section-title" };
55713
55727
  const _hoisted_4$J = { class: "ml-16px" };
55714
- const _hoisted_5$z = { class: "section-title" };
55728
+ const _hoisted_5$y = { class: "section-title" };
55715
55729
  const _sfc_main$2V = /* @__PURE__ */ defineComponent({
55716
55730
  __name: "select-modal",
55717
55731
  props: {
@@ -55936,7 +55950,7 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
55936
55950
  }, null, 8, ["row-selection", "columns", "data-source", "loading"])
55937
55951
  ]),
55938
55952
  createElementVNode("div", _hoisted_4$J, [
55939
- createElementVNode("div", _hoisted_5$z, toDisplayString$1(_ctx.$t("sys.appDesigner.newViewField.selectedArea")), 1),
55953
+ createElementVNode("div", _hoisted_5$y, toDisplayString$1(_ctx.$t("sys.appDesigner.newViewField.selectedArea")), 1),
55940
55954
  createVNode(_component_a_table, {
55941
55955
  "row-key": "id_",
55942
55956
  columns: selectedColumns,
@@ -56199,6 +56213,7 @@ const getDisplayFieldColumns = (displayFields, isTree = false) => {
56199
56213
  const fragmentKey = key ? knownFieldToFragment[key] : void 0;
56200
56214
  const base = fragmentKey ? getColumns([fragmentKey])[0] : void 0;
56201
56215
  return {
56216
+ ...baseColumnConfig,
56202
56217
  ...base,
56203
56218
  title: name || base?.title || key,
56204
56219
  field: key,
@@ -56216,7 +56231,10 @@ function renderWithFormatter(column = {}, row = {}) {
56216
56231
  if (typeof formatter === "function") {
56217
56232
  return formatter({ cellValue, row, column }) || params.defaultValueStr || "--";
56218
56233
  }
56219
- return cellValue ?? params.defaultValueStr ?? "--";
56234
+ const raw = normalizeHistoricalBusinessRow(row);
56235
+ const dictValue = (row?._DICT ?? raw?._DICT)?.[field]?.[cellValue];
56236
+ const displayValue = Array.isArray(dictValue) ? dictValue.join("") : dictValue ?? cellValue;
56237
+ return displayValue ?? params.defaultValueStr ?? "--";
56220
56238
  }
56221
56239
  const transformTreeData = (options = [], currentValue) => {
56222
56240
  const highlightIdx = { parent: -1, child: -1 };
@@ -56531,7 +56549,7 @@ const _hoisted_3$X = {
56531
56549
  class: /* @__PURE__ */ normalizeClass(["right-list__list"])
56532
56550
  };
56533
56551
  const _hoisted_4$I = ["title"];
56534
- const _hoisted_5$y = {
56552
+ const _hoisted_5$x = {
56535
56553
  key: 1,
56536
56554
  class: /* @__PURE__ */ normalizeClass(["right-list__empty"])
56537
56555
  };
@@ -56582,7 +56600,7 @@ const _sfc_main$2T = /* @__PURE__ */ defineComponent({
56582
56600
  }, null, 8, ["onClick"])
56583
56601
  ]);
56584
56602
  }), 128))
56585
- ])) : (openBlock(), createElementBlock("div", _hoisted_5$y, [
56603
+ ])) : (openBlock(), createElementBlock("div", _hoisted_5$x, [
56586
56604
  createVNode(_component_a_empty, {
56587
56605
  class: "empty-data",
56588
56606
  description: "未选择检验项目",
@@ -57045,8 +57063,8 @@ const _hoisted_1$1A = { class: "panel-data-group" };
57045
57063
  const _hoisted_2$15 = { class: "readonly-text" };
57046
57064
  const _hoisted_3$U = { class: "readonly-text" };
57047
57065
  const _hoisted_4$G = { class: "flex justify-end" };
57048
- const _hoisted_5$x = { class: "readonly-text" };
57049
- const _hoisted_6$q = { class: "readonly-text" };
57066
+ const _hoisted_5$w = { class: "readonly-text" };
57067
+ const _hoisted_6$p = { class: "readonly-text" };
57050
57068
  const _sfc_main$2P = /* @__PURE__ */ defineComponent({
57051
57069
  __name: "panel-data-group",
57052
57070
  setup(__props) {
@@ -57176,7 +57194,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
57176
57194
  label: _ctx.$t("sys.onlineForm.numberOfRows")
57177
57195
  }, {
57178
57196
  default: withCtx(() => [
57179
- createElementVNode("span", _hoisted_5$x, toDisplayString$1(rowCount.value), 1)
57197
+ createElementVNode("span", _hoisted_5$w, toDisplayString$1(rowCount.value), 1)
57180
57198
  ]),
57181
57199
  _: 1
57182
57200
  }, 8, ["label"])
@@ -57189,7 +57207,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
57189
57207
  label: _ctx.$t("sys.onlineForm.numberOfColumns")
57190
57208
  }, {
57191
57209
  default: withCtx(() => [
57192
- createElementVNode("span", _hoisted_6$q, toDisplayString$1(colCount.value), 1)
57210
+ createElementVNode("span", _hoisted_6$p, toDisplayString$1(colCount.value), 1)
57193
57211
  ]),
57194
57212
  _: 1
57195
57213
  }, 8, ["label"])
@@ -57235,8 +57253,8 @@ const _hoisted_1$1z = { class: "panel-data-group" };
57235
57253
  const _hoisted_2$14 = { class: "readonly-text" };
57236
57254
  const _hoisted_3$T = { class: "readonly-text" };
57237
57255
  const _hoisted_4$F = { class: "flex justify-end" };
57238
- const _hoisted_5$w = { class: "readonly-text" };
57239
- const _hoisted_6$p = { class: "readonly-text" };
57256
+ const _hoisted_5$v = { class: "readonly-text" };
57257
+ const _hoisted_6$o = { class: "readonly-text" };
57240
57258
  const _sfc_main$2O = /* @__PURE__ */ defineComponent({
57241
57259
  __name: "panel-data-group-2d",
57242
57260
  setup(__props) {
@@ -57428,7 +57446,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
57428
57446
  label: _ctx.$t("sys.onlineForm.numberOfRows")
57429
57447
  }, {
57430
57448
  default: withCtx(() => [
57431
- createElementVNode("span", _hoisted_5$w, toDisplayString$1(rowCount.value), 1)
57449
+ createElementVNode("span", _hoisted_5$v, toDisplayString$1(rowCount.value), 1)
57432
57450
  ]),
57433
57451
  _: 1
57434
57452
  }, 8, ["label"])
@@ -57441,7 +57459,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
57441
57459
  label: _ctx.$t("sys.onlineForm.numberOfColumns")
57442
57460
  }, {
57443
57461
  default: withCtx(() => [
57444
- createElementVNode("span", _hoisted_6$p, toDisplayString$1(colCount.value), 1)
57462
+ createElementVNode("span", _hoisted_6$o, toDisplayString$1(colCount.value), 1)
57445
57463
  ]),
57446
57464
  _: 1
57447
57465
  }, 8, ["label"])
@@ -57618,11 +57636,11 @@ const _hoisted_1$1x = { class: "panel-global-config" };
57618
57636
  const _hoisted_2$12 = { class: "option-item-title" };
57619
57637
  const _hoisted_3$R = { class: "actions" };
57620
57638
  const _hoisted_4$E = ["onClick"];
57621
- const _hoisted_5$v = ["onClick"];
57622
- const _hoisted_6$o = { class: "ks-row-middle fieldrow mb5px" };
57639
+ const _hoisted_5$u = ["onClick"];
57640
+ const _hoisted_6$n = { class: "ks-row-middle fieldrow mb5px" };
57623
57641
  const _hoisted_7$f = { class: "ks-col ks-row" };
57624
57642
  const _hoisted_8$d = { class: "min-w-86px flex-grow-1" };
57625
- const _hoisted_9$8 = { class: "min-w-86px flex-grow-1" };
57643
+ const _hoisted_9$9 = { class: "min-w-86px flex-grow-1" };
57626
57644
  const _hoisted_10$7 = ["onClick"];
57627
57645
  const _sfc_main$2M = /* @__PURE__ */ defineComponent({
57628
57646
  __name: "panel-global-config",
@@ -57729,7 +57747,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
57729
57747
  }, [
57730
57748
  _cache[1] || (_cache[1] = createElementVNode("i", { class: "iconfont icon-chuangjian mr-4px" }, null, -1)),
57731
57749
  createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.insert")), 1)
57732
- ], 8, _hoisted_5$v)
57750
+ ], 8, _hoisted_5$u)
57733
57751
  ])
57734
57752
  ])
57735
57753
  ]),
@@ -57744,7 +57762,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
57744
57762
  class: "field-list"
57745
57763
  }, {
57746
57764
  item: withCtx(({ element: option2 }) => [
57747
- createElementVNode("div", _hoisted_6$o, [
57765
+ createElementVNode("div", _hoisted_6$n, [
57748
57766
  _cache[3] || (_cache[3] = createElementVNode("i", { class: "icon-drag iconfont mr4px cursor-move text-[#C3C3C3] primary-gct-hover" }, null, -1)),
57749
57767
  createElementVNode("div", _hoisted_7$f, [
57750
57768
  createElementVNode("div", _hoisted_8$d, [
@@ -57756,7 +57774,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
57756
57774
  }, null, 8, ["value", "onUpdate:value", "placeholder"])
57757
57775
  ]),
57758
57776
  _cache[2] || (_cache[2] = createElementVNode("div", { class: "w4px" }, null, -1)),
57759
- createElementVNode("div", _hoisted_9$8, [
57777
+ createElementVNode("div", _hoisted_9$9, [
57760
57778
  createVNode(_component_a_input, {
57761
57779
  value: option2.value,
57762
57780
  "onUpdate:value": ($event) => option2.value = $event,
@@ -57807,8 +57825,8 @@ const _hoisted_1$1w = { class: "tmpl-card" };
57807
57825
  const _hoisted_2$11 = { class: "tmpl-card__header" };
57808
57826
  const _hoisted_3$Q = { class: "flex items-center" };
57809
57827
  const _hoisted_4$D = ["src"];
57810
- const _hoisted_5$u = { class: "tmpl-card__title" };
57811
- const _hoisted_6$n = { class: "tmpl-card__body" };
57828
+ const _hoisted_5$t = { class: "tmpl-card__title" };
57829
+ const _hoisted_6$m = { class: "tmpl-card__body" };
57812
57830
  const _sfc_main$2L = /* @__PURE__ */ defineComponent({
57813
57831
  __name: "tmpl-card",
57814
57832
  props: {
@@ -57850,13 +57868,13 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
57850
57868
  class: normalizeClass([`${type2Icon[props2.type]}`, "text-14px!"])
57851
57869
  }, null, 2))
57852
57870
  ], 2),
57853
- createElementVNode("div", _hoisted_5$u, toDisplayString$1(type2Title[props2.type]), 1)
57871
+ createElementVNode("div", _hoisted_5$t, toDisplayString$1(type2Title[props2.type]), 1)
57854
57872
  ]),
57855
57873
  createVNode(unref(RemoveIcon), {
57856
57874
  onClick: _cache[0] || (_cache[0] = ($event) => emit2("remove"))
57857
57875
  })
57858
57876
  ]),
57859
- createElementVNode("div", _hoisted_6$n, [
57877
+ createElementVNode("div", _hoisted_6$m, [
57860
57878
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
57861
57879
  ])
57862
57880
  ]);
@@ -58101,8 +58119,8 @@ const _hoisted_1$1t = { class: "params-item-card" };
58101
58119
  const _hoisted_2$$ = { class: "flex justify-between items-center" };
58102
58120
  const _hoisted_3$O = ["title"];
58103
58121
  const _hoisted_4$C = { class: "w-50% pl-11px flex items-center justify-end" };
58104
- const _hoisted_5$t = ["title"];
58105
- const _hoisted_6$m = { class: "flex items-center" };
58122
+ const _hoisted_5$s = ["title"];
58123
+ const _hoisted_6$l = { class: "flex items-center" };
58106
58124
  const _hoisted_7$e = { class: "flex-grow-1 w-1px" };
58107
58125
  const _hoisted_8$c = {
58108
58126
  key: 0,
@@ -58134,7 +58152,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
58134
58152
  createElementVNode("span", {
58135
58153
  class: "flex-shrink-1 truncate",
58136
58154
  title: __props.deviceParams.name
58137
- }, toDisplayString$1(__props.deviceParams.name), 9, _hoisted_5$t),
58155
+ }, toDisplayString$1(__props.deviceParams.name), 9, _hoisted_5$s),
58138
58156
  createVNode(_component_a_popover, {
58139
58157
  placement: "bottomRight",
58140
58158
  overlayClassName: "dhr-custom-popover"
@@ -58155,7 +58173,7 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
58155
58173
  ])]),
58156
58174
  _: 1
58157
58175
  }),
58158
- createElementVNode("div", _hoisted_6$m, [
58176
+ createElementVNode("div", _hoisted_6$l, [
58159
58177
  createElementVNode("div", _hoisted_7$e, [
58160
58178
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
58161
58179
  ]),
@@ -58543,14 +58561,14 @@ const _hoisted_1$1p = { class: "ai-tmpl-editor__section" };
58543
58561
  const _hoisted_2$X = { class: "ai-tmpl-editor__section-content--basic" };
58544
58562
  const _hoisted_3$L = { class: "ai-tmpl-editor__field-list" };
58545
58563
  const _hoisted_4$B = { class: "ai-tmpl-editor__section" };
58546
- const _hoisted_5$s = { class: "ai-tmpl-editor__section-content--model" };
58547
- const _hoisted_6$l = { class: "ai-tmpl-editor__field-list" };
58564
+ const _hoisted_5$r = { class: "ai-tmpl-editor__section-content--model" };
58565
+ const _hoisted_6$k = { class: "ai-tmpl-editor__field-list" };
58548
58566
  const _hoisted_7$d = {
58549
58567
  key: 0,
58550
58568
  class: "ai-tmpl-editor__advanced-card"
58551
58569
  };
58552
58570
  const _hoisted_8$b = { class: "ai-tmpl-editor__advanced-row" };
58553
- const _hoisted_9$7 = {
58571
+ const _hoisted_9$8 = {
58554
58572
  key: 0,
58555
58573
  class: "ai-tmpl-editor__advanced-sub-row"
58556
58574
  };
@@ -58798,8 +58816,8 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
58798
58816
  }, null, 8, ["class"]),
58799
58817
  _cache[20] || (_cache[20] = createElementVNode("span", null, "模型配置", -1))
58800
58818
  ]),
58801
- withDirectives(createElementVNode("div", _hoisted_5$s, [
58802
- createElementVNode("div", _hoisted_6$l, [
58819
+ withDirectives(createElementVNode("div", _hoisted_5$r, [
58820
+ createElementVNode("div", _hoisted_6$k, [
58803
58821
  createVNode(FormItem, {
58804
58822
  isFirst: "",
58805
58823
  class: "ai-tmpl-editor__form-row",
@@ -58847,7 +58865,7 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
58847
58865
  "onUpdate:checked": _cache[7] || (_cache[7] = ($event) => formState.enableDenoise = $event)
58848
58866
  }, null, 8, ["checked"])
58849
58867
  ]),
58850
- formState.enableDenoise ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
58868
+ formState.enableDenoise ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
58851
58869
  createElementVNode("span", null, toDisplayString$1(_ctx.$t("sys.onlineForm.denoiseMethod")) + ":", 1),
58852
58870
  createVNode(_component_a_select, {
58853
58871
  value: formState.denoiseMethod,
@@ -60103,11 +60121,11 @@ const _hoisted_1$1l = { class: "object-init-list" };
60103
60121
  const _hoisted_2$U = { class: "object-init-list__meta header" };
60104
60122
  const _hoisted_3$I = { class: "object-init-list__label" };
60105
60123
  const _hoisted_4$y = ["title"];
60106
- const _hoisted_5$r = ["onClick"];
60107
- const _hoisted_6$k = { class: "object-init-list__meta" };
60124
+ const _hoisted_5$q = ["onClick"];
60125
+ const _hoisted_6$j = { class: "object-init-list__meta" };
60108
60126
  const _hoisted_7$c = { class: "object-init-list__label" };
60109
60127
  const _hoisted_8$a = { class: "object-init-list__value" };
60110
- const _hoisted_9$6 = { class: "object-init-list__actions" };
60128
+ const _hoisted_9$7 = { class: "object-init-list__actions" };
60111
60129
  const _sfc_main$2w = /* @__PURE__ */ defineComponent({
60112
60130
  __name: "object-init-list",
60113
60131
  props: {
@@ -60141,13 +60159,13 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
60141
60159
  createElementVNode("i", {
60142
60160
  class: "iconfont icon-shanchu2 primary-gct-hover ml-8px",
60143
60161
  onClick: ($event) => emit2("remove", item.objectField)
60144
- }, null, 8, _hoisted_5$r)
60162
+ }, null, 8, _hoisted_5$q)
60145
60163
  ]),
60146
- createElementVNode("div", _hoisted_6$k, [
60164
+ createElementVNode("div", _hoisted_6$j, [
60147
60165
  createElementVNode("span", _hoisted_7$c, toDisplayString$1(_ctx.$t("sys.onlineForm.fieldType")) + ":", 1),
60148
60166
  createElementVNode("span", _hoisted_8$a, toDisplayString$1(__props.getObjectFieldTypeName(item.objectFieldMeta)), 1)
60149
60167
  ]),
60150
- createElementVNode("div", _hoisted_9$6, [
60168
+ createElementVNode("div", _hoisted_9$7, [
60151
60169
  __props.hasValues(item) ? (openBlock(), createBlock(_component_a_button, {
60152
60170
  key: 0,
60153
60171
  type: "primary",
@@ -60228,7 +60246,7 @@ function useObjectInit() {
60228
60246
  const currentModelFields = computed(() => allModelFields.value.filter(isObjectInitField));
60229
60247
  const objectFields = computed(
60230
60248
  () => currentModelFields.value.filter(
60231
- (item) => item.type === FIELD_TYPE.OBJECT_TYPE && !isDateObjectField(item)
60249
+ (item) => item.type === FIELD_TYPE.OBJECT_TYPE && item.bizType === FIELD_TYPE.MATERIAL_CONSUME
60232
60250
  )
60233
60251
  );
60234
60252
  const configuredItems = computed(() => {
@@ -60390,7 +60408,7 @@ const _hoisted_4$x = {
60390
60408
  key: 2,
60391
60409
  class: "cell-wrapper-affix cell-wrapper-affix--prefix"
60392
60410
  };
60393
- const _hoisted_5$q = {
60411
+ const _hoisted_5$p = {
60394
60412
  key: 5,
60395
60413
  class: "cell-wrapper-affix cell-wrapper-affix--suffix"
60396
60414
  };
@@ -60528,7 +60546,7 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
60528
60546
  }, null, 8, ["class", "readonlyText", "type", "nullValSymbol", "style", "filledBackground", "required", "renderScript"]),
60529
60547
  renderSlot(_ctx.$slots, "readonlyIntroduce", {}, void 0, true)
60530
60548
  ], 64)) : renderSlot(_ctx.$slots, "default", {}, void 0, true, 4),
60531
- unref(suffix) ? (openBlock(), createElementBlock("span", _hoisted_5$q, toDisplayString$1(unref(suffix)), 1)) : createCommentVNode("", true)
60549
+ unref(suffix) ? (openBlock(), createElementBlock("span", _hoisted_5$p, toDisplayString$1(unref(suffix)), 1)) : createCommentVNode("", true)
60532
60550
  ], 14, _hoisted_1$1j);
60533
60551
  };
60534
60552
  }
@@ -61280,8 +61298,8 @@ const _hoisted_1$1h = { class: "cell-textarea-wrap" };
61280
61298
  const _hoisted_2$R = ["title"];
61281
61299
  const _hoisted_3$G = { class: "cell-textarea-modal-header" };
61282
61300
  const _hoisted_4$w = { class: "cell-textarea-modal-title" };
61283
- const _hoisted_5$p = { class: "cell-textarea-modal-body" };
61284
- const _hoisted_6$j = ["placeholder", "maxlength"];
61301
+ const _hoisted_5$o = { class: "cell-textarea-modal-body" };
61302
+ const _hoisted_6$i = ["placeholder", "maxlength"];
61285
61303
  const _hoisted_7$b = { class: "cell-textarea-modal-footer" };
61286
61304
  const _sfc_main$2m = /* @__PURE__ */ defineComponent({
61287
61305
  __name: "cell-textarea",
@@ -61387,14 +61405,14 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
61387
61405
  onClick: onModalCancel
61388
61406
  }, "×")
61389
61407
  ]),
61390
- createElementVNode("div", _hoisted_5$p, [
61408
+ createElementVNode("div", _hoisted_5$o, [
61391
61409
  withDirectives(createElementVNode("textarea", {
61392
61410
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => modalValue.value = $event),
61393
61411
  placeholder: __props.placeholder,
61394
61412
  maxlength: unref(maxlength),
61395
61413
  rows: "8",
61396
61414
  class: "cell-textarea-modal-input"
61397
- }, null, 8, _hoisted_6$j), [
61415
+ }, null, 8, _hoisted_6$i), [
61398
61416
  [vModelText, modalValue.value]
61399
61417
  ])
61400
61418
  ]),
@@ -64067,7 +64085,7 @@ const _hoisted_1$1d = { class: "search-wrapper" };
64067
64085
  const _hoisted_2$Q = { class: "inner-list search-visible" };
64068
64086
  const _hoisted_3$F = ["onContextmenu"];
64069
64087
  const _hoisted_4$v = { class: "inner-label-box" };
64070
- const _hoisted_5$o = ["title"];
64088
+ const _hoisted_5$n = ["title"];
64071
64089
  const _sfc_main$28 = /* @__PURE__ */ defineComponent({
64072
64090
  __name: "select-enum",
64073
64091
  props: {
@@ -64173,7 +64191,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
64173
64191
  onContextmenu: (e) => unref(handleShowCustomTooltip)(e, label)
64174
64192
  }, [
64175
64193
  createElementVNode("div", _hoisted_4$v, [
64176
- createElementVNode("span", { title: label }, toDisplayString$1(label), 9, _hoisted_5$o)
64194
+ createElementVNode("span", { title: label }, toDisplayString$1(label), 9, _hoisted_5$n)
64177
64195
  ])
64178
64196
  ], 40, _hoisted_3$F)
64179
64197
  ]),
@@ -64253,12 +64271,12 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
64253
64271
  };
64254
64272
  });
64255
64273
  const separatorAttr = computed(() => {
64256
- const cmpStyle = {};
64274
+ const cmpStyle = { "--option-gap": "0px" };
64257
64275
  const cmpClass = [
64258
64276
  props2.widget.props.direction,
64259
64277
  `text-pos-${props2.widget.props.labelPos}`,
64260
64278
  bindCompStyleType,
64261
- "has-option-gap",
64279
+ !isNil(props2.widget.props.optionGap) && "has-option-gap",
64262
64280
  showRequired.value && "is-show-required",
64263
64281
  realFieldId.value
64264
64282
  ];
@@ -64267,11 +64285,13 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
64267
64285
  "--space": `${props2.widget.props.letterSpace}px`
64268
64286
  });
64269
64287
  }
64270
- const optionGap = `${props2.widget.props.optionGap ?? 12}px`;
64271
- Object.assign(cmpStyle, {
64272
- "--option-gap": optionGap,
64273
- gap: optionGap
64274
- });
64288
+ if (!isNil(props2.widget.props.optionGap)) {
64289
+ const optionGap = `${props2.widget.props.optionGap}px`;
64290
+ Object.assign(cmpStyle, {
64291
+ "--option-gap": optionGap,
64292
+ gap: optionGap
64293
+ });
64294
+ }
64275
64295
  let attr = {
64276
64296
  placeholder,
64277
64297
  disabled: showDisabled.value,
@@ -64416,7 +64436,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
64416
64436
  };
64417
64437
  }
64418
64438
  });
64419
- const enumSelectRender = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["__scopeId", "data-v-7043c4d8"]]);
64439
+ const enumSelectRender = /* @__PURE__ */ _export_sfc(_sfc_main$27, [["__scopeId", "data-v-6db9b17f"]]);
64420
64440
  const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64421
64441
  __proto__: null,
64422
64442
  default: enumSelectRender
@@ -64959,6 +64979,9 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
64959
64979
  } = useWidgetStaticAttrs(props2.widget);
64960
64980
  const searchField = computed(() => {
64961
64981
  const realFieldType = bizType || fieldType;
64982
+ if (Array.isArray(quickSearchField) && !quickSearchField.length) {
64983
+ return [];
64984
+ }
64962
64985
  const basicFields = [FIELD_TYPE.PRODUCT, FIELD_TYPE.SCRAP_MATERIAL].includes(realFieldType) ? ["code_.like", "version_.like", "name_.like", "spec_.like"] : [];
64963
64986
  const configuredFields = (() => {
64964
64987
  if (quickSearchField?.length) return quickSearchField;
@@ -65127,7 +65150,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
65127
65150
  };
65128
65151
  }
65129
65152
  });
65130
- const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["__scopeId", "data-v-ca7c40d7"]]);
65153
+ const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1$, [["__scopeId", "data-v-ba907b47"]]);
65131
65154
  const _hoisted_1$1b = { class: "rdo-select-tree" };
65132
65155
  const _hoisted_2$O = {
65133
65156
  key: 0,
@@ -65390,10 +65413,13 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65390
65413
  () => customLoaderRef.value?.getSelectedKey ? customLoaderRef.value.getSelectedKey() : props2.modelValue
65391
65414
  );
65392
65415
  const showSearch = computed(
65393
- () => (props2.widget.props.displayFields || []).some((item) => item?.key) && (!!props2.widget.props.quickSearchField?.length || (bizType || fieldType) === FIELD_TYPE.MFG_ORDER)
65416
+ () => (props2.widget.props.displayFields || []).some((item) => item?.key) && !!props2.widget.props.quickSearchField?.length
65394
65417
  );
65395
- function formatDisplayCell({ cellValue }) {
65396
- return cellValue === "" || cellValue === null || cellValue === void 0 ? "--" : cellValue;
65418
+ function formatDisplayCell({ cellValue, row, column }) {
65419
+ const raw = row?._item ?? row;
65420
+ const dictValue = (row?._DICT ?? raw?._DICT)?.[column.field]?.[cellValue];
65421
+ const displayValue = Array.isArray(dictValue) ? dictValue.join("") : dictValue ?? cellValue;
65422
+ return displayValue === "" || displayValue === null || displayValue === void 0 ? "--" : displayValue;
65397
65423
  }
65398
65424
  const columns = computed(() => [
65399
65425
  ...getColumns(["radio"]),
@@ -65529,7 +65555,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65529
65555
  };
65530
65556
  }
65531
65557
  });
65532
- const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["__scopeId", "data-v-3bca389e"]]);
65558
+ const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["__scopeId", "data-v-3fc5ac60"]]);
65533
65559
  const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
65534
65560
  ...{ inheritAttrs: false },
65535
65561
  __name: "parse-select",
@@ -67512,7 +67538,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
67512
67538
  }
67513
67539
  });
67514
67540
  const VueVideoPlayer = defineAsyncComponent(
67515
- () => import("./VueVideoPlayer-D9kpfmiz.js")
67541
+ () => import("./VueVideoPlayer-BeylL5J6.js")
67516
67542
  );
67517
67543
  const _hoisted_1$19 = {
67518
67544
  key: 0,
@@ -67834,11 +67860,9 @@ function getSealUserTime() {
67834
67860
  return dayjs().format("YYYY-MM-DD HH:mm:ss");
67835
67861
  }
67836
67862
  function createSealStampFlow(deps) {
67837
- const step = ref("signature");
67838
67863
  const detailStatus = ref("idle");
67839
67864
  const passwordStatus = ref("idle");
67840
67865
  const sealDetail = ref();
67841
- const signInfo = ref();
67842
67866
  const password = ref("");
67843
67867
  const passwordError = ref("");
67844
67868
  const error = ref("");
@@ -67846,7 +67870,7 @@ function createSealStampFlow(deps) {
67846
67870
  let disposed = false, session = 0, detailVersion = 0, passwordVersion = 0;
67847
67871
  let validation;
67848
67872
  const active = () => !disposed && deps.isActive();
67849
- const current = (s, d, p) => active() && step.value === "seal" && session === s && detailVersion === d && (p === void 0 || passwordVersion === p);
67873
+ const current = (s, d, p) => active() && session === s && detailVersion === d && (p === void 0 || passwordVersion === p);
67850
67874
  const validDetail = (value) => value.id === deps.sealId && !!value.name?.trim() && !!value.code?.trim() && !!value.sealImage?.trim();
67851
67875
  const snapshot = (value) => ({
67852
67876
  id: value.id,
@@ -67862,7 +67886,7 @@ function createSealStampFlow(deps) {
67862
67886
  }
67863
67887
  const stopWatch = watch(password, invalidatePassword, { flush: "sync" });
67864
67888
  async function loadDetail() {
67865
- if (!active() || step.value !== "seal" || submitting.value) return;
67889
+ if (!active() || submitting.value) return;
67866
67890
  const s = session, d = ++detailVersion;
67867
67891
  invalidatePassword();
67868
67892
  sealDetail.value = void 0;
@@ -67881,19 +67905,8 @@ function createSealStampFlow(deps) {
67881
67905
  }
67882
67906
  }
67883
67907
  }
67884
- async function authenticated(info) {
67885
- if (!active() || step.value !== "signature") return;
67886
- if (!info.userId || !info.username || !info.historyId) {
67887
- error.value = deps.translate("signatureInvalid");
67888
- return;
67889
- }
67890
- signInfo.value = { ...info };
67891
- step.value = "seal";
67892
- await loadDetail();
67893
- }
67894
67908
  function validatePassword() {
67895
- if (!active() || step.value !== "seal" || detailStatus.value !== "ready" || !signInfo.value)
67896
- return Promise.resolve(false);
67909
+ if (!active() || detailStatus.value !== "ready") return Promise.resolve(false);
67897
67910
  if (!password.value.trim()) {
67898
67911
  passwordStatus.value = "invalid";
67899
67912
  passwordError.value = deps.translate("passwordRequired");
@@ -67934,8 +67947,7 @@ function createSealStampFlow(deps) {
67934
67947
  return task.promise;
67935
67948
  }
67936
67949
  async function confirm() {
67937
- if (!active() || submitting.value || step.value !== "seal" || detailStatus.value !== "ready")
67938
- return;
67950
+ if (!active() || submitting.value || detailStatus.value !== "ready") return;
67939
67951
  const s = session, d = detailVersion, p = passwordVersion;
67940
67952
  submitting.value = true;
67941
67953
  error.value = "";
@@ -67951,13 +67963,18 @@ function createSealStampFlow(deps) {
67951
67963
  error.value = deps.translate("detailChanged");
67952
67964
  return;
67953
67965
  }
67966
+ const user = deps.getCurrentUser();
67967
+ if (!user.sealUserId || !user.sealUserName) {
67968
+ error.value = deps.translate("currentUserInvalid");
67969
+ return;
67970
+ }
67954
67971
  return {
67955
67972
  sealId: value.id,
67956
67973
  sealName: value.name,
67957
67974
  sealType: value.code,
67958
67975
  sealImage: value.sealImage,
67959
- sealUserId: signInfo.value.userId,
67960
- sealUserName: signInfo.value.username,
67976
+ sealUserId: user.sealUserId,
67977
+ sealUserName: user.sealUserName,
67961
67978
  sealUserTime: deps.now()
67962
67979
  };
67963
67980
  } catch {
@@ -67971,32 +67988,17 @@ function createSealStampFlow(deps) {
67971
67988
  if (session === s) submitting.value = false;
67972
67989
  }
67973
67990
  }
67974
- function back() {
67975
- if (!active()) return;
67976
- session++;
67977
- detailVersion++;
67978
- step.value = "signature";
67979
- signInfo.value = void 0;
67980
- sealDetail.value = void 0;
67981
- password.value = "";
67982
- invalidatePassword();
67983
- detailStatus.value = "idle";
67984
- submitting.value = false;
67985
- error.value = "";
67986
- }
67987
67991
  function dispose() {
67988
67992
  disposed = true;
67989
67993
  session++;
67990
67994
  detailVersion++;
67991
67995
  stopWatch();
67992
67996
  password.value = "";
67993
- signInfo.value = void 0;
67994
67997
  sealDetail.value = void 0;
67995
67998
  invalidatePassword();
67996
67999
  submitting.value = false;
67997
68000
  }
67998
68001
  return {
67999
- step,
68000
68002
  detailStatus,
68001
68003
  passwordStatus,
68002
68004
  sealDetail,
@@ -68004,37 +68006,33 @@ function createSealStampFlow(deps) {
68004
68006
  passwordError,
68005
68007
  error,
68006
68008
  submitting,
68007
- authenticated,
68008
68009
  loadDetail,
68009
68010
  validatePassword,
68010
68011
  confirm,
68011
- back,
68012
68012
  dispose
68013
68013
  };
68014
68014
  }
68015
68015
  const _hoisted_1$18 = { class: "seal-stamp-modal" };
68016
- const _hoisted_2$M = {
68016
+ const _hoisted_2$M = { class: "seal-stamp-modal__content" };
68017
+ const _hoisted_3$C = {
68017
68018
  key: 0,
68018
68019
  class: "seal-stamp-modal__preview",
68019
68020
  role: "status"
68020
68021
  };
68021
- const _hoisted_3$C = {
68022
+ const _hoisted_4$t = {
68022
68023
  key: 1,
68023
68024
  class: "seal-stamp-modal__preview",
68024
68025
  role: "alert"
68025
68026
  };
68026
- const _hoisted_4$t = { class: "seal-stamp-modal__preview" };
68027
- const _hoisted_5$n = ["src", "alt"];
68028
- const _hoisted_6$i = { class: "seal-stamp-modal__name" };
68029
- const _hoisted_7$a = {
68027
+ const _hoisted_5$m = { class: "seal-stamp-modal__preview" };
68028
+ const _hoisted_6$h = ["src", "alt"];
68029
+ const _hoisted_7$a = { class: "seal-stamp-modal__name" };
68030
+ const _hoisted_8$9 = {
68030
68031
  key: 3,
68031
68032
  class: "seal-stamp-modal__error",
68032
68033
  role: "alert"
68033
68034
  };
68034
- const _hoisted_8$9 = {
68035
- key: 0,
68036
- class: "seal-stamp-modal__footer"
68037
- };
68035
+ const _hoisted_9$6 = { class: "seal-stamp-modal__footer" };
68038
68036
  const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68039
68037
  __name: "seal-stamp-modal",
68040
68038
  props: {
@@ -68048,12 +68046,18 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68048
68046
  sealId: props2.sealId,
68049
68047
  fetchDetail: getSealDetail,
68050
68048
  verifyPassword: verifySealPassword,
68049
+ getCurrentUser: () => {
68050
+ const user = window.NocodeAdapter.stores?.userInfo?.value;
68051
+ return {
68052
+ sealUserId: user?.userId?.trim() || "",
68053
+ sealUserName: user?.fullname?.trim() || user?.username?.trim() || ""
68054
+ };
68055
+ },
68051
68056
  now: getSealUserTime,
68052
68057
  isActive: props2.canStamp,
68053
68058
  translate: (key) => $t(`sys.seal.${key}`)
68054
68059
  });
68055
68060
  const {
68056
- step,
68057
68061
  detailStatus,
68058
68062
  passwordStatus,
68059
68063
  sealDetail,
@@ -68061,11 +68065,13 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68061
68065
  passwordError,
68062
68066
  error,
68063
68067
  submitting,
68064
- authenticated,
68065
68068
  loadDetail
68066
68069
  } = flow;
68067
68070
  const { transfer } = useWebUpload();
68068
68071
  const sealPreviewUrl = computed(() => transfer(sealDetail.value?.sealImage || ""));
68072
+ onMounted(() => {
68073
+ void loadDetail();
68074
+ });
68069
68075
  onBeforeUnmount(flow.dispose);
68070
68076
  modal?.callback(void 0, async () => {
68071
68077
  flow.dispose();
@@ -68074,13 +68080,6 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68074
68080
  watch(props2.canStamp, (active) => {
68075
68081
  if (!active) void cancel();
68076
68082
  });
68077
- function validateSignature(info) {
68078
- if (!info.userId || !info.username || !info.historyId) {
68079
- const text = $t("sys.seal.signatureInvalid");
68080
- message.error(text);
68081
- throw new Error(text);
68082
- }
68083
- }
68084
68083
  function onPasswordEnter(event2) {
68085
68084
  event2.preventDefault();
68086
68085
  event2.stopPropagation();
@@ -68102,76 +68101,59 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68102
68101
  const _component_a_input_password = resolveComponent("a-input-password");
68103
68102
  const _component_a_form_item = resolveComponent("a-form-item");
68104
68103
  return openBlock(), createElementBlock("div", _hoisted_1$18, [
68105
- createElementVNode("div", {
68106
- class: normalizeClass(["seal-stamp-modal__content", { "seal-stamp-modal__content--signature": unref(step) === "signature" }])
68107
- }, [
68108
- unref(step) === "signature" ? (openBlock(), createBlock(unref(SignPopoverContent), {
68109
- key: 0,
68110
- "default-sign-mode": unref(SignMode).PASSWORD,
68111
- "fix-sign-mode": true,
68112
- "disable-user-name": false,
68113
- "fill-user-name": true,
68114
- "confirm-text": _ctx.$t("sys.seal.next"),
68115
- "show-card-cancel": true,
68116
- "validate-signature": validateSignature,
68117
- onConfirm: unref(authenticated),
68118
- onCancel: cancel
68119
- }, null, 8, ["default-sign-mode", "confirm-text", "onConfirm"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
68120
- unref(detailStatus) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2$M, [
68121
- createVNode(_component_a_spin)
68122
- ])) : unref(detailStatus) === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
68123
- createElementVNode("p", null, toDisplayString$1(unref(error)), 1),
68124
- createVNode(_component_a_button, { onClick: unref(loadDetail) }, {
68125
- default: withCtx(() => [
68126
- createTextVNode(toDisplayString$1(_ctx.$t("sys.seal.retry")), 1)
68127
- ]),
68128
- _: 1
68129
- }, 8, ["onClick"])
68130
- ])) : unref(sealDetail) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
68131
- createElementVNode("div", _hoisted_4$t, [
68132
- createElementVNode("img", {
68133
- src: sealPreviewUrl.value,
68134
- alt: unref(sealDetail).name
68135
- }, null, 8, _hoisted_5$n)
68136
- ]),
68137
- createElementVNode("div", _hoisted_6$i, [
68138
- createTextVNode(toDisplayString$1(_ctx.$t("sys.seal.currentSeal")) + ":", 1),
68139
- createElementVNode("strong", null, toDisplayString$1(unref(sealDetail).name), 1)
68140
- ])
68141
- ], 64)) : createCommentVNode("", true),
68142
- createVNode(_component_a_form_item, {
68143
- label: _ctx.$t("sys.seal.password"),
68144
- required: "",
68145
- "validate-status": unref(passwordError) ? "error" : void 0,
68146
- help: unref(passwordError) || void 0
68147
- }, {
68104
+ createElementVNode("div", _hoisted_2$M, [
68105
+ unref(detailStatus) === "loading" ? (openBlock(), createElementBlock("div", _hoisted_3$C, [
68106
+ createVNode(_component_a_spin)
68107
+ ])) : unref(detailStatus) === "error" ? (openBlock(), createElementBlock("div", _hoisted_4$t, [
68108
+ createElementVNode("p", null, toDisplayString$1(unref(error)), 1),
68109
+ createVNode(_component_a_button, { onClick: unref(loadDetail) }, {
68148
68110
  default: withCtx(() => [
68149
- createVNode(_component_a_input_password, {
68150
- value: unref(password),
68151
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(password) ? password.value = $event : null),
68152
- autocomplete: "new-password",
68153
- placeholder: _ctx.$t("sys.seal.passwordRequired"),
68154
- disabled: unref(detailStatus) !== "ready" || unref(submitting),
68155
- onPressEnter: onPasswordEnter
68156
- }, null, 8, ["value", "placeholder", "disabled"])
68111
+ createTextVNode(toDisplayString$1(_ctx.$t("sys.seal.retry")), 1)
68157
68112
  ]),
68158
68113
  _: 1
68159
- }, 8, ["label", "validate-status", "help"]),
68160
- unref(error) && unref(detailStatus) !== "error" ? (openBlock(), createElementBlock("p", _hoisted_7$a, toDisplayString$1(unref(error)), 1)) : createCommentVNode("", true)
68161
- ], 64))
68162
- ], 2),
68163
- unref(step) === "seal" ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
68164
- createVNode(_component_a_button, {
68165
- onClick: unref(flow).back
68114
+ }, 8, ["onClick"])
68115
+ ])) : unref(sealDetail) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
68116
+ createElementVNode("div", _hoisted_5$m, [
68117
+ createElementVNode("img", {
68118
+ src: sealPreviewUrl.value,
68119
+ alt: unref(sealDetail).name
68120
+ }, null, 8, _hoisted_6$h)
68121
+ ]),
68122
+ createElementVNode("div", _hoisted_7$a, [
68123
+ createTextVNode(toDisplayString$1(_ctx.$t("sys.seal.currentSeal")) + ":", 1),
68124
+ createElementVNode("strong", null, toDisplayString$1(unref(sealDetail).name), 1)
68125
+ ])
68126
+ ], 64)) : createCommentVNode("", true),
68127
+ createVNode(_component_a_form_item, {
68128
+ label: _ctx.$t("sys.seal.password"),
68129
+ required: "",
68130
+ "validate-status": unref(passwordError) ? "error" : void 0,
68131
+ help: unref(passwordError) || void 0
68166
68132
  }, {
68167
68133
  default: withCtx(() => [
68168
- createTextVNode(toDisplayString$1(_ctx.$t("sys.seal.previous")), 1)
68134
+ createVNode(_component_a_input_password, {
68135
+ value: unref(password),
68136
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(password) ? password.value = $event : null),
68137
+ autocomplete: "new-password",
68138
+ placeholder: _ctx.$t("sys.seal.passwordRequired"),
68139
+ disabled: unref(detailStatus) !== "ready" || unref(submitting),
68140
+ onPressEnter: onPasswordEnter
68141
+ }, null, 8, ["value", "placeholder", "disabled"])
68142
+ ]),
68143
+ _: 1
68144
+ }, 8, ["label", "validate-status", "help"]),
68145
+ unref(error) && unref(detailStatus) !== "error" ? (openBlock(), createElementBlock("p", _hoisted_8$9, toDisplayString$1(unref(error)), 1)) : createCommentVNode("", true)
68146
+ ]),
68147
+ createElementVNode("div", _hoisted_9$6, [
68148
+ createVNode(_component_a_button, { onClick: cancel }, {
68149
+ default: withCtx(() => [
68150
+ createTextVNode(toDisplayString$1(_ctx.$t("sys.cancelText")), 1)
68169
68151
  ]),
68170
68152
  _: 1
68171
- }, 8, ["onClick"]),
68153
+ }),
68172
68154
  createVNode(_component_a_button, {
68173
68155
  type: "primary",
68174
- loading: unref(passwordStatus) === "validating",
68156
+ loading: unref(submitting) || unref(passwordStatus) === "validating",
68175
68157
  disabled: unref(detailStatus) !== "ready" || unref(submitting),
68176
68158
  onClick: confirmStamp
68177
68159
  }, {
@@ -68180,22 +68162,17 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
68180
68162
  ]),
68181
68163
  _: 1
68182
68164
  }, 8, ["loading", "disabled"])
68183
- ])) : createCommentVNode("", true)
68165
+ ])
68184
68166
  ]);
68185
68167
  };
68186
68168
  }
68187
68169
  });
68188
- const SealStampModal = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["__scopeId", "data-v-5369d9c9"]]);
68170
+ const SealStampModal = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["__scopeId", "data-v-f5e19737"]]);
68189
68171
  const _hoisted_1$17 = ["title"];
68190
68172
  const _hoisted_2$L = ["src", "alt"];
68191
- const _hoisted_3$B = {
68192
- key: 0,
68193
- class: "seal-detail-empty"
68194
- };
68195
- const _hoisted_4$s = { key: 4 };
68196
- const _hoisted_5$m = ["title"];
68197
- const _hoisted_6$h = {
68198
- key: 7,
68173
+ const _hoisted_3$B = ["title"];
68174
+ const _hoisted_4$s = {
68175
+ key: 5,
68199
68176
  class: "seal-error",
68200
68177
  "data-seal-no-drag": ""
68201
68178
  };
@@ -68204,8 +68181,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68204
68181
  props: {
68205
68182
  modelValue: {},
68206
68183
  widget: {},
68207
- formData: {},
68208
- printMode: { type: Boolean }
68184
+ formData: {}
68209
68185
  },
68210
68186
  emits: ["update:modelValue"],
68211
68187
  setup(__props, { emit: __emit }) {
@@ -68215,7 +68191,6 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68215
68191
  const showSealException = computed(
68216
68192
  () => !!(annotationInfo.value && annotationInfo.value.showValidatorClass)
68217
68193
  );
68218
- const pdfMode = inject(NCB_PROVIDE.IS_PDF, false);
68219
68194
  const { showRequired, showDisabled, showDisplayStatus, dataRelationShip } = useWidgetStaticAttrs(
68220
68195
  props2.widget
68221
68196
  );
@@ -68223,11 +68198,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68223
68198
  const { transfer } = useWebUpload();
68224
68199
  const sealImageUrl = computed(() => transfer(value.value.sealImage || ""));
68225
68200
  const stamped = computed(() => isSealStamped(props2.modelValue));
68226
- const printMode = computed(
68227
- () => props2.printMode || pdfMode || !!dataRelationShip?.__isPrintRender
68228
- );
68229
- const isDetailMode = computed(() => dataRelationShip?.renderModeType === RenderModeEnum.ViewMode);
68230
- const isReadOnlyMode = computed(() => isDetailMode.value || printMode.value);
68201
+ const isReadonly = computed(() => showDisplayStatus.value !== "edit-component");
68231
68202
  const hasNullValSymbol = computed(() => {
68232
68203
  const symbol = props2.widget.props.nullValSymbol;
68233
68204
  return symbol != null && String(symbol).trim().length > 0;
@@ -68235,10 +68206,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68235
68206
  const emptySymbolText = computed(
68236
68207
  () => hasNullValSymbol.value ? $t(`sys.edhr.emptySymbol.${props2.widget.props.nullValSymbol}`) : ""
68237
68208
  );
68238
- const draggable = computed(
68239
- () => !isReadOnlyMode.value && !["readonly-text", "readonly-component"].includes(showDisplayStatus.value)
68240
- );
68241
- const editable = computed(() => draggable.value && !showDisabled.value);
68209
+ const editable = computed(() => !isReadonly.value && !showDisabled.value);
68242
68210
  const showRequiredBorder = computed(() => {
68243
68211
  if (!showSealException.value || !editable.value || !showRequired.value || stamped.value) {
68244
68212
  return false;
@@ -68310,29 +68278,29 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68310
68278
  const _component_a_button = resolveComponent("a-button");
68311
68279
  return openBlock(), createElementBlock("div", {
68312
68280
  class: normalizeClass(["seal-render", {
68313
- "is-draggable": draggable.value,
68281
+ "is-draggable": editable.value,
68314
68282
  "validator-mark": showRequiredBorder.value
68315
68283
  }]),
68316
68284
  title: error.value
68317
68285
  }, [
68318
- showSealException.value ? (openBlock(), createBlock(SealPlaceholder, {
68286
+ createTextVNode(toDisplayString$1(showSealException.value) + "-- ", 1),
68287
+ stamped.value ? (openBlock(), createElementBlock("img", {
68319
68288
  key: 0,
68320
- required: true,
68321
- disabled: false
68322
- })) : stamped.value ? (openBlock(), createElementBlock("img", {
68323
- key: 1,
68324
68289
  class: "seal-image",
68325
68290
  src: sealImageUrl.value,
68326
68291
  alt: value.value.sealName,
68327
68292
  draggable: "false"
68328
- }, null, 8, _hoisted_2$L)) : isReadOnlyMode.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
68329
- hasNullValSymbol.value ? (openBlock(), createElementBlock("div", _hoisted_3$B, toDisplayString$1(emptySymbolText.value), 1)) : createCommentVNode("", true)
68330
- ], 64)) : editable.value || unref(showDisabled) ? (openBlock(), createBlock(SealPlaceholder, {
68331
- key: 3,
68293
+ }, null, 8, _hoisted_2$L)) : isReadonly.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
68294
+ hasNullValSymbol.value || showSealException.value ? (openBlock(), createElementBlock("div", {
68295
+ key: 0,
68296
+ class: normalizeClass(["seal-detail-empty", [showSealException.value && "error"]])
68297
+ }, toDisplayString$1(hasNullValSymbol.value ? emptySymbolText.value : ""), 3)) : createCommentVNode("", true)
68298
+ ], 64)) : (openBlock(), createBlock(SealPlaceholder, {
68299
+ key: 2,
68332
68300
  required: unref(showRequired),
68333
68301
  disabled: unref(showDisabled)
68334
- }, null, 8, ["required", "disabled"])) : (openBlock(), createElementBlock("span", _hoisted_4$s, toDisplayString$1(__props.widget.props.nullValSymbol), 1)),
68335
- editable.value ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
68302
+ }, null, 8, ["required", "disabled"])),
68303
+ editable.value ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
68336
68304
  stamped.value ? (openBlock(), createElementBlock("button", {
68337
68305
  key: 0,
68338
68306
  class: "seal-delete",
@@ -68341,7 +68309,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68341
68309
  onClick: withModifiers(remove, ["stop"])
68342
68310
  }, [..._cache[0] || (_cache[0] = [
68343
68311
  createElementVNode("i", { class: "iconfont icon-a-shanchubiaoge" }, null, -1)
68344
- ])], 8, _hoisted_5$m)) : createCommentVNode("", true),
68312
+ ])], 8, _hoisted_3$B)) : createCommentVNode("", true),
68345
68313
  createVNode(_component_a_button, {
68346
68314
  class: "seal-apply",
68347
68315
  type: "primary",
@@ -68354,8 +68322,8 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68354
68322
  ]),
68355
68323
  _: 1
68356
68324
  }, 8, ["disabled", "loading"])
68357
- ], 64)) : unref(showDisabled) && !isReadOnlyMode.value ? (openBlock(), createBlock(_component_a_button, {
68358
- key: 6,
68325
+ ], 64)) : unref(showDisabled) && !isReadonly.value ? (openBlock(), createBlock(_component_a_button, {
68326
+ key: 4,
68359
68327
  class: "seal-apply",
68360
68328
  disabled: ""
68361
68329
  }, {
@@ -68364,12 +68332,12 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
68364
68332
  ]),
68365
68333
  _: 1
68366
68334
  })) : createCommentVNode("", true),
68367
- error.value ? (openBlock(), createElementBlock("span", _hoisted_6$h, toDisplayString$1(error.value), 1)) : createCommentVNode("", true)
68335
+ error.value ? (openBlock(), createElementBlock("span", _hoisted_4$s, toDisplayString$1(error.value), 1)) : createCommentVNode("", true)
68368
68336
  ], 10, _hoisted_1$17);
68369
68337
  };
68370
68338
  }
68371
68339
  });
68372
- const sealRender = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["__scopeId", "data-v-b0d382d2"]]);
68340
+ const sealRender = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["__scopeId", "data-v-32510b5c"]]);
68373
68341
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
68374
68342
  __proto__: null,
68375
68343
  default: sealRender
@@ -68658,12 +68626,6 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
68658
68626
  const displayFields = computed(() => {
68659
68627
  const configured = props2.widget.props.displayFields;
68660
68628
  if (configured !== void 0) return configured.filter((item) => item?.key);
68661
- if ([FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes(fieldType) || [FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes(bizType) || ["warehouse_id_", "target_warehouse_id_", "origin_warehouse_id_"].includes(field)) {
68662
- return [
68663
- { key: "name_", name: $t2("sys.name") },
68664
- { key: "code_", name: $t2("sys.edhr.field.code") }
68665
- ];
68666
- }
68667
68629
  return [];
68668
68630
  });
68669
68631
  const multiple = fieldType === FIELD_TYPE.REF_MULTI || fieldType === FIELD_TYPE.DEVICE_REF_MULTI;
@@ -68680,8 +68642,11 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
68680
68642
  const isRoutingOperation = fieldType === FIELD_TYPE.ROUTING_OPERATION || bizType === FIELD_TYPE.ROUTING_OPERATION;
68681
68643
  const isOperationRef = !isRoutingOperation && (bizType === FIELD_TYPE.OPERATION || fieldType === FIELD_TYPE.OPERATION || refModelKey === "em_operation");
68682
68644
  const isWarehouseSelect = [FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes(fieldType) || [FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes(bizType) || ["warehouse_id_", "target_warehouse_id_", "origin_warehouse_id_"].includes(field);
68645
+ const isWarehouseFamilySelect = isWarehouseSelect || fieldType === FIELD_TYPE.LOCATION || bizType === FIELD_TYPE.LOCATION || ["location_id_", "target_location_id_", "origin_location_id_", "storage_zone_id_"].includes(
68646
+ field
68647
+ );
68683
68648
  const useDisplayFieldSelect = computed(
68684
- () => (isGroup || isReason || isRoutingOperation || isOperationRef || isWarehouseSelect || bizType === FIELD_TYPE.PRODUCT || fieldType === FIELD_TYPE.PRODUCT || bizType === FIELD_TYPE.SCRAP_MATERIAL || fieldType === FIELD_TYPE.SCRAP_MATERIAL) && displayFields.value.length >= 2
68649
+ () => (isGroup || isReason || isRoutingOperation || isOperationRef || isWarehouseFamilySelect || bizType === FIELD_TYPE.MODEL_RELATION && !multiple || bizType === FIELD_TYPE.PRODUCT || fieldType === FIELD_TYPE.PRODUCT || bizType === FIELD_TYPE.SCRAP_MATERIAL || fieldType === FIELD_TYPE.SCRAP_MATERIAL) && displayFields.value.length >= 2
68685
68650
  );
68686
68651
  const defaultDeviceSearchField = ["name_.iLike", "code_.iLike", "asset_number_.iLike"];
68687
68652
  const defaultProductLotSearchField = ["name_.iLike"];
@@ -68692,6 +68657,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
68692
68657
  if ((bizType || fieldType) === FIELD_TYPE.E_SOP || isRoutingOperation || isOperationRef) {
68693
68658
  return [];
68694
68659
  }
68660
+ if (Array.isArray(quickSearchField)) return [];
68695
68661
  if (customLoaderRef.value) return ["name_.like"];
68696
68662
  return quickSearchField;
68697
68663
  })();
@@ -68705,7 +68671,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
68705
68671
  }
68706
68672
  });
68707
68673
  const searchVisible = computed(() => {
68708
- if (isWarehouseSelect && !displayFields.value.length) return false;
68674
+ if (isWarehouseFamilySelect && !displayFields.value.length) return false;
68709
68675
  return !!quickSearchFields?.length;
68710
68676
  });
68711
68677
  const selectProps = computed(() => {
@@ -69149,7 +69115,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
69149
69115
  }, [
69150
69116
  createVNode(unref(VNode), { node: menuNode }, null, 8, ["node"])
69151
69117
  ], 2),
69152
- state.data.length && !unref(loadFinished2Options) && !state.hasSearched ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString$1(unref($t2)("sys.onlineForm.searchForMore")), 1)) : createCommentVNode("", true),
69118
+ searchVisible.value && state.data.length && !unref(loadFinished2Options) && !state.hasSearched ? (openBlock(), createElementBlock("div", _hoisted_2$K, toDisplayString$1(unref($t2)("sys.onlineForm.searchForMore")), 1)) : createCommentVNode("", true),
69153
69119
  unref(customTooltip) ? (openBlock(), createElementBlock("div", {
69154
69120
  key: 2,
69155
69121
  class: "inner-custom-tooltip",
@@ -70616,6 +70582,8 @@ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
70616
70582
  } = useWidgetStaticAttrs(props2.widget);
70617
70583
  const searchField = searchFieldMap[fieldType] || "name_";
70618
70584
  const searchVisible = computed(() => {
70585
+ const { quickSearchField } = props2.widget.props;
70586
+ if (Array.isArray(quickSearchField) && !quickSearchField.length) return false;
70619
70587
  if ((bizType || fieldType) === FIELD_TYPE.MFG_ORDER) {
70620
70588
  return !!props2.widget.props.quickSearchField?.length;
70621
70589
  }
@@ -72227,7 +72195,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
72227
72195
  };
72228
72196
  });
72229
72197
  const separatorAttr = computed(() => {
72230
- const cmpStyle = {};
72198
+ const cmpStyle = { "--option-gap": "0px", "--legacy-option-margin": "4px" };
72231
72199
  const cmpClass = [
72232
72200
  direction,
72233
72201
  `text-pos-${labelPos}`,
@@ -72239,12 +72207,14 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
72239
72207
  "--space": `${letterSpace}px`
72240
72208
  });
72241
72209
  }
72242
- const optionGap = `${props2.widget.props.optionGap ?? 12}px`;
72243
- Object.assign(cmpStyle, {
72244
- "--option-gap": optionGap,
72245
- "--legacy-option-margin": "0px",
72246
- gap: optionGap
72247
- });
72210
+ if (!isNil(props2.widget.props.optionGap)) {
72211
+ const optionGap = `${props2.widget.props.optionGap}px`;
72212
+ Object.assign(cmpStyle, {
72213
+ "--option-gap": optionGap,
72214
+ "--legacy-option-margin": "0px",
72215
+ gap: optionGap
72216
+ });
72217
+ }
72248
72218
  return {
72249
72219
  placeholder,
72250
72220
  fieldType,
@@ -72279,7 +72249,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
72279
72249
  immediate: true
72280
72250
  }
72281
72251
  );
72282
- function readonlyCallback(val) {
72252
+ function readonlyCallback(_val) {
72283
72253
  return renderUtils.getLabJsonValue(props2.formData, field);
72284
72254
  }
72285
72255
  function getOptionLabel(val) {
@@ -72347,7 +72317,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
72347
72317
  };
72348
72318
  }
72349
72319
  });
72350
- const switchRender = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-bf15424f"]]);
72320
+ const switchRender = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-2cdeac24"]]);
72351
72321
  const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72352
72322
  __proto__: null,
72353
72323
  default: switchRender
@@ -78188,13 +78158,21 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
78188
78158
  setup(__props) {
78189
78159
  const props2 = __props;
78190
78160
  const { fields } = reactive(props2.widget.props);
78161
+ const dataRelationShip = inject(NCB_PROVIDE.DATA_RELATION_SHIP);
78162
+ const isPreview = computed(() => dataRelationShip?.renderModeType === RenderModeEnum.ViewMode);
78191
78163
  const wrapFields = computed(
78192
78164
  () => props2.widget.style?.whiteSpace === "pre-wrap" && props2.widget.style?.wordBreak === "break-all"
78193
78165
  );
78194
78166
  const layoutStyle = computed(() => {
78195
78167
  const { textAlign, verticalAlign } = props2.widget.style ?? {};
78168
+ const mode = props2.widget.style?.["--composite-text-writing-mode"] ?? "horizontal-tb";
78196
78169
  const vertical = verticalAlign === "top" ? "flex-start" : verticalAlign === "bottom" ? "flex-end" : "center";
78197
78170
  return {
78171
+ "--composite-text-writing-mode": mode,
78172
+ // 竖向时数字、字母逐字正立;两个 90° 方向选项沿用旋转显示。
78173
+ "--composite-text-orientation": mode === "vertical-lr" ? "upright" : "mixed",
78174
+ // 固定组合容器的布局轴,避免控件排列和占位宽度随文字方向改变。
78175
+ writingMode: "horizontal-tb",
78198
78176
  justifyContent: textAlign === "right" ? "flex-end" : textAlign === "left" ? "flex-start" : "center",
78199
78177
  alignItems: vertical,
78200
78178
  alignContent: vertical
@@ -78202,7 +78180,10 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
78202
78180
  });
78203
78181
  return (_ctx, _cache) => {
78204
78182
  return openBlock(), createElementBlock("div", {
78205
- class: normalizeClass(["combine-fields-area", { "combine-fields-area--wrap": wrapFields.value }]),
78183
+ class: normalizeClass(["combine-fields-area", {
78184
+ "combine-fields-area--wrap": wrapFields.value,
78185
+ "combine-fields-area--preview": isPreview.value
78186
+ }]),
78206
78187
  style: normalizeStyle(layoutStyle.value)
78207
78188
  }, [
78208
78189
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(fields), (fieldWidget) => {
@@ -78229,7 +78210,7 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
78229
78210
  };
78230
78211
  }
78231
78212
  });
78232
- const combineFieldsRender = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["__scopeId", "data-v-d606f7a6"]]);
78213
+ const combineFieldsRender = /* @__PURE__ */ _export_sfc(_sfc_main$1s, [["__scopeId", "data-v-23527377"]]);
78233
78214
  const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78234
78215
  __proto__: null,
78235
78216
  default: combineFieldsRender
@@ -79495,7 +79476,9 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
79495
79476
  );
79496
79477
  }
79497
79478
  const componentType = computed(() => {
79498
- if (props2.dynamicConfig?.isDynRo) return ComponentTypeEnum.DynRo;
79479
+ if (props2.dynamicConfig?.isDynRo && props2.widget.component !== ComponentTypeEnum.CombineFields) {
79480
+ return ComponentTypeEnum.DynRo;
79481
+ }
79499
79482
  if (props2.componentOverride) return props2.componentOverride;
79500
79483
  const widget2 = dateObjectWidget.value ?? props2.widget;
79501
79484
  if (!widget2?.props?.field) return widget2?.component;
@@ -87177,6 +87160,7 @@ const sys$1 = {
87177
87160
  detailLoadFailed: "Failed to load seal details. Please retry",
87178
87161
  detailChanged: "Seal details have changed. Verify the password and confirm again",
87179
87162
  confirmFailed: "Stamp confirmation failed. Reload the seal and retry",
87163
+ currentUserInvalid: "Current user information is incomplete. Please sign in again",
87180
87164
  signatureInvalid: "Signature identity is incomplete. Authenticate again",
87181
87165
  uncategorized: "Uncategorized",
87182
87166
  diameter: "Seal diameter",
@@ -87438,6 +87422,7 @@ const sys = {
87438
87422
  detailLoadFailed: "印章详情加载失败,请重试",
87439
87423
  detailChanged: "印章信息已更新,请重新验证密码并确认",
87440
87424
  confirmFailed: "盖章确认失败,请重新加载印章后重试",
87425
+ currentUserInvalid: "当前登录用户信息不完整,请重新登录后重试",
87441
87426
  signatureInvalid: "签名人员信息不完整,请重新认证",
87442
87427
  uncategorized: "未分类",
87443
87428
  diameter: "印章尺寸(直径)",
@@ -88249,8 +88234,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
88249
88234
  props: {
88250
88235
  widget: {},
88251
88236
  formData: {},
88252
- surfaceGroup: {},
88253
- printMode: { type: Boolean }
88237
+ surfaceGroup: {}
88254
88238
  },
88255
88239
  setup(__props) {
88256
88240
  const props2 = __props;
@@ -88258,16 +88242,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
88258
88242
  const position = computed(
88259
88243
  () => readSealValue(props2.formData[field.value], props2.widget.props.sealPosition).sealPosition
88260
88244
  );
88261
- const { showDisplayStatus, showDisabled, dataRelationShip } = useWidgetStaticAttrs(props2.widget);
88262
- const pdfMode = inject(NCB_PROVIDE.IS_PDF, false);
88263
- const printMode = computed(
88264
- () => props2.printMode || pdfMode || !!dataRelationShip?.__isPrintRender
88265
- );
88266
- const isDetailMode = computed(() => dataRelationShip?.renderModeType === RenderModeEnum.ViewMode);
88267
- const isReadOnlyMode = computed(() => isDetailMode.value || printMode.value);
88268
- const blocked = computed(
88269
- () => isReadOnlyMode.value || showDisabled.value || ["readonly-text", "readonly-component"].includes(showDisplayStatus.value)
88270
- );
88245
+ const { showDisplayStatus, showDisabled } = useWidgetStaticAttrs(props2.widget);
88246
+ const isReadonly = computed(() => showDisplayStatus.value !== "edit-component");
88247
+ const blocked = computed(() => isReadonly.value || showDisabled.value);
88271
88248
  const { onChange, annotationInfo } = useNocodeFormWidget(
88272
88249
  {
88273
88250
  widget: props2.widget,
@@ -88282,7 +88259,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
88282
88259
  );
88283
88260
  const visible = computed(() => {
88284
88261
  if (annotationInfo.value && annotationInfo.value.showValidatorClass) return true;
88285
- if (!isReadOnlyMode.value || isSealStamped(props2.formData[field.value])) return true;
88262
+ if (!isReadonly.value || isSealStamped(props2.formData[field.value])) return true;
88286
88263
  const symbol = props2.widget.props.nullValSymbol;
88287
88264
  return symbol != null && String(symbol).trim().length > 0;
88288
88265
  });
@@ -88302,15 +88279,14 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
88302
88279
  "diameter-mm": __props.widget.props.diameterMm,
88303
88280
  "surface-group": __props.surfaceGroup,
88304
88281
  disabled: blocked.value,
88305
- "pass-through": isReadOnlyMode.value,
88282
+ "pass-through": isReadonly.value,
88306
88283
  onMove: move
88307
88284
  }, {
88308
88285
  default: withCtx(() => [
88309
88286
  createVNode(_sfc_main$1e, {
88310
88287
  widget: __props.widget,
88311
- "form-data": __props.formData,
88312
- "print-mode": printMode.value
88313
- }, null, 8, ["widget", "form-data", "print-mode"])
88288
+ "form-data": __props.formData
88289
+ }, null, 8, ["widget", "form-data"])
88314
88290
  ]),
88315
88291
  _: 1
88316
88292
  }, 8, ["visible", "position", "diameter-mm", "surface-group", "disabled", "pass-through"]);
@@ -88322,8 +88298,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
88322
88298
  props: {
88323
88299
  basicInfo: {},
88324
88300
  dataCenter: {},
88325
- formData: {},
88326
- printMode: { type: Boolean }
88301
+ formData: {}
88327
88302
  },
88328
88303
  setup(__props) {
88329
88304
  const props2 = __props;
@@ -88331,9 +88306,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
88331
88306
  provide(NCB_PROVIDE.DATA_RELATION_SHIP, props2.basicInfo);
88332
88307
  provide(NCB_PROVIDE.PAGER, paper2);
88333
88308
  const widgets = computed(
88334
- () => (paper2.props.floatingFieldIds ?? []).map((id) => props2.dataCenter[id]).filter(Boolean).map(
88335
- (widget2) => props2.printMode ? { ...widget2, props: { ...widget2.props, field_readonly: true } } : widget2
88336
- )
88309
+ () => (paper2.props.floatingFieldIds ?? []).map((id) => props2.dataCenter[id]).filter(Boolean)
88337
88310
  );
88338
88311
  return (_ctx, _cache) => {
88339
88312
  return openBlock(true), createElementBlock(Fragment, null, renderList(widgets.value, (widget2) => {
@@ -88341,9 +88314,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
88341
88314
  key: widget2.id,
88342
88315
  widget: widget2,
88343
88316
  "form-data": __props.formData,
88344
- "surface-group": __props.basicInfo.uniqueId,
88345
- "print-mode": __props.printMode
88346
- }, null, 8, ["widget", "form-data", "surface-group", "print-mode"]);
88317
+ "surface-group": __props.basicInfo.uniqueId
88318
+ }, null, 8, ["widget", "form-data", "surface-group"]);
88347
88319
  }), 128);
88348
88320
  };
88349
88321
  }
@@ -88488,14 +88460,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
88488
88460
  key: activeSheetId2.value,
88489
88461
  "basic-info": __props.basicInfo,
88490
88462
  "data-center": widgetCenter.value,
88491
- "form-data": formState.value,
88492
- "print-mode": !!__props.basicInfo.renderPurpose
88493
- }, null, 8, ["basic-info", "data-center", "form-data", "print-mode"])) : createCommentVNode("", true)
88463
+ "form-data": formState.value
88464
+ }, null, 8, ["basic-info", "data-center", "form-data"])) : createCommentVNode("", true)
88494
88465
  ], 64);
88495
88466
  };
88496
88467
  }
88497
88468
  });
88498
- const ActiveSheetRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-6738db7d"]]);
88469
+ const ActiveSheetRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ed96ebf7"]]);
88499
88470
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
88500
88471
  __name: "all-sheets-renderer",
88501
88472
  props: {
@@ -89124,8 +89095,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
89124
89095
  printTask = (async () => {
89125
89096
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
89126
89097
  await nextTick();
89127
- const { printRuntimeInstance } = await import("./print-runtime-instance-v1jzD3oO.js");
89128
- const { default: renderer } = await import("./print-snapshot-renderer-BSf76qD7.js");
89098
+ const { printRuntimeInstance } = await import("./print-runtime-instance-BmJ9GNr2.js");
89099
+ const { default: renderer } = await import("./print-snapshot-renderer-NCND8gig.js");
89129
89100
  if (abort.signal.aborted) throw new Error("打印已取消");
89130
89101
  printRenderer.value = markRaw(renderer);
89131
89102
  await printRuntimeInstance(