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

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 (106) hide show
  1. package/dist/{BaseComponent-Dfx-Xuv4.js → BaseComponent-ByKSQlX5.js} +2 -2
  2. package/dist/{VueVideoPlayer-DHqhqgGs.js → VueVideoPlayer-D9kpfmiz.js} +2 -2
  3. package/dist/{align-editor-hvllGvX8.js → align-editor-lWVPNKlR.js} +1 -1
  4. package/dist/{barcode-design-CzlfYJ3s.js → barcode-design-zpWBlelw.js} +2 -2
  5. package/dist/base/index.es.js +265 -109
  6. package/dist/{diagonal-design-DCVidBZD.js → diagonal-design-CzRKVjcY.js} +2 -2
  7. package/dist/{dynamic-table-action-Dn_iw4tV.js → dynamic-table-action-DkHb1ST4.js} +146 -146
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js} +536 -495
  9. package/dist/{edit.utils-CXmmCnxE-BUEfsAZ3.js → edit.utils-CXmmCnxE-DIhkrimt.js} +1 -1
  10. package/dist/excel.css +9 -9
  11. package/dist/{exceljs.min-9FX7NALn.js → exceljs.min-DoNsTxQp.js} +2 -2
  12. package/dist/{font-editor-ClqMOFPr.js → font-editor-N7060zuX.js} +3 -3
  13. package/dist/{image-design-Cx1YIea4.js → image-design-fXKNGIm3.js} +2 -2
  14. package/dist/{index-Cl_94fZQ.js → index-7J6OP2x9.js} +2 -2
  15. package/dist/{index-B4c_0M_d.js → index-8A45IOjw.js} +2 -2
  16. package/dist/{index-BM1sPB29.js → index-8BLKPnwH.js} +1 -1
  17. package/dist/{index-B3KkYxiX.js → index-B5FuofNW.js} +2 -2
  18. package/dist/{index-Dp2q7ZPo.js → index-B6fCHnZl.js} +2 -2
  19. package/dist/{index-BLrixMsM.js → index-BA4zmgdk.js} +2 -2
  20. package/dist/{index-mCrtpdq2.js → index-BDRyjPGr.js} +204 -59
  21. package/dist/{index-CcB9d0A-.js → index-BEX6lJX9.js} +2 -2
  22. package/dist/{index-CVG3Z6rp.js → index-BJA3YJns.js} +3 -3
  23. package/dist/{index-COmm7d4j.js → index-BXxzWXS4.js} +1 -1
  24. package/dist/{index-NqYSNDX9.js → index-Bgh8yfAl.js} +2 -2
  25. package/dist/{index-D7ZzvopL.js → index-Bh-tmh-F.js} +2 -2
  26. package/dist/{index-Dru8lW-_.js → index-C4Mlck0_.js} +1 -1
  27. package/dist/{index-B9xwdsWY.js → index-C5IwDker.js} +4 -4
  28. package/dist/{index-BWHnHAjs.js → index-C6STl6m-.js} +1 -1
  29. package/dist/{index-D4zDlgqU.js → index-CCw8gM1y.js} +1 -1
  30. package/dist/{index-CWjwF2wn.js → index-CZIuP6b-.js} +2 -2
  31. package/dist/{index-CjCFTTI3.js → index-CaojJi0S.js} +1 -1
  32. package/dist/{index-BdYI71iy.js → index-CbeaPNDv.js} +2 -2
  33. package/dist/{index-DCv60fUG.js → index-CfY2WTcN.js} +2 -2
  34. package/dist/{index-BgzCdSQH.js → index-CtHy6vBq.js} +3 -3
  35. package/dist/{index-NJZaG-sl.js → index-CuHKZOUw.js} +2 -2
  36. package/dist/{index-CG5LAGQp.js → index-Cza077GN.js} +2 -2
  37. package/dist/{index-DkXBzlUL.js → index-DGyygsxH.js} +2 -2
  38. package/dist/{index-BjSWHyj1.js → index-DSUDSbPf.js} +1 -1
  39. package/dist/{index-DYyVGkv3.js → index-DeEz6LI3.js} +2 -2
  40. package/dist/{index-BkoKoZbl.js → index-DgbgqO-w.js} +1 -1
  41. package/dist/{index-a6chYhIK.js → index-DnHsEIgl.js} +2 -2
  42. package/dist/{index-BRc6frrP.js → index-Xx36PP2U.js} +2 -2
  43. package/dist/{index-vEKEZcff.js → index-a0vY4sVG.js} +2 -2
  44. package/dist/{index-CyPwg8fV.js → index-bRZUDA7R.js} +1 -1
  45. package/dist/{index-Cj_t_73x.js → index-gEI8m-b5.js} +1 -1
  46. package/dist/{index-q_pMlfx9.js → index-pSRRsoDQ.js} +3 -3
  47. package/dist/{index-lf11EIvP.js → index-tjo9dn4X.js} +2 -2
  48. package/dist/{index-BKnroXXX.js → index-yf50oYV1.js} +3 -3
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-DjSdDuaL.js → mb-render-BCtvoXM-.js} +1 -1
  51. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-QrM7rL99.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DbNfQIzD.js} +1 -1
  52. package/dist/{pagination-design-DJEw5vlL.js → pagination-design-BLhJhoHb.js} +2 -2
  53. package/dist/paper-widget-design-B8gKgZep.js +4 -0
  54. package/dist/{print-runtime-instance-BtxZfq51.js → print-runtime-instance-v1jzD3oO.js} +1 -1
  55. package/dist/{print-snapshot-renderer-0D5MUsR6.js → print-snapshot-renderer-BSf76qD7.js} +3 -3
  56. package/dist/{qrcode-design-9jPH-S8z.js → qrcode-design-D9f0hRKd.js} +1 -1
  57. package/dist/{revo-grid.entry-BhCFcCVS.js → revo-grid.entry-NMojEZjd.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-icpuI3V8.js → revogr-attribution_7.entry-jR0LwEie.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-Dm2_h2RL.js → revogr-clipboard_3.entry-DMQ65QLh.js} +2 -2
  60. package/dist/{revogr-data_4.entry-DlVEyI7J.js → revogr-data_4.entry-Buvf7dRf.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-MJr7PMnd.js → revogr-filter-panel.entry-TLjszdsH.js} +1 -1
  62. package/dist/seal-design-B80mv8SJ.js +4 -0
  63. package/dist/{serialnumber-design-BsfJH6Kp.js → serialnumber-design-DsSZwN3t.js} +1 -1
  64. package/dist/shared/index.es.js +9 -9
  65. package/dist/{single-field-drop-DXjppxDh.js → single-field-drop-DRMCsh_s.js} +2 -2
  66. package/dist/{size-editor-DzQdRb-7.js → size-editor-m8uyQ1bU.js} +1 -1
  67. package/dist/src/domain/document-business/business/product-release/profile.d.ts +2 -0
  68. package/dist/src/domain/document-business/business/product-release/service.d.ts +2 -0
  69. package/dist/src/domain/document-business/index.d.ts +2 -0
  70. package/dist/src/domain/document-business/registry.d.ts +2 -0
  71. package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
  72. package/dist/src/domain/document-business/types.d.ts +24 -0
  73. package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +2 -0
  74. package/dist/src/domain/field/query-filter.d.ts +15 -0
  75. package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +13 -11
  76. package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +8 -0
  77. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +3 -3
  78. package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
  79. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +1 -0
  80. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +3 -0
  81. package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
  82. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
  83. package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
  84. package/dist/src/shared/enum/field-type.d.ts +5 -0
  85. package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
  86. package/dist/{sub-table-factory-Ddx70uYs.js → sub-table-factory-BxxIXXCZ.js} +194 -85
  87. package/dist/{text-design-DmLrMqdk.js → text-design-DgOV0ZhV.js} +2 -2
  88. package/dist/{throttle-Cpk1LoGk-DLVGpnFw.js → throttle-Cpk1LoGk-Dj14U5ox.js} +1 -1
  89. package/dist/{timediff-design-CYqz1SKQ.js → timediff-design-C0zYdIQI.js} +1 -1
  90. package/dist/{trace-like-wrapper-CVl0Vm8r.js → trace-like-wrapper-XB73ltP9.js} +2 -2
  91. package/dist/{value-editor.vue_vue_type_style_index_0_lang-B0aWEk5D.js → value-editor.vue_vue_type_style_index_0_lang-CRFXw695.js} +2 -2
  92. package/dist/web-render/index.es.js +3 -3
  93. package/dist/{widget-barcode-DwYihxgd.js → widget-barcode-BLKBY_Dh.js} +4 -4
  94. package/dist/{widget-diagonal-DWdxDYVl.js → widget-diagonal-LVxcpB3b.js} +3 -3
  95. package/dist/{widget-image-D1SXIbMU.js → widget-image-Cch0ImSI.js} +5 -5
  96. package/dist/{widget-line-BNTbSFkx.js → widget-line-CUSNrxgG.js} +2 -2
  97. package/dist/{widget-pagination-25CKNe-i.js → widget-pagination-CM1S6Ytp.js} +5 -5
  98. package/dist/{widget-power-BSjWdgM3.js → widget-power-DQJ8F2R7.js} +3 -3
  99. package/dist/{widget-qrcode-Kbe9Skrd.js → widget-qrcode-BmnaFfc4.js} +3 -3
  100. package/dist/{widget-rangelimit-TWPoG8DX.js → widget-rangelimit-Db0ZX6Fb.js} +3 -3
  101. package/dist/{widget-serialnumber-uNkQzBIT.js → widget-serialnumber-BEOWsFs1.js} +1 -1
  102. package/dist/{widget-text-DH4r60jo.js → widget-text-DZFAhPxy.js} +5 -5
  103. package/dist/{widget-timediff-Bv8VCgrv.js → widget-timediff-C_Nh7uw-.js} +2 -2
  104. package/package.json +1 -1
  105. package/dist/paper-widget-design-C3rm4SzP.js +0 -4
  106. package/dist/seal-design-CtzWGxnH.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 LOT_CONTAINER_ROLE, aV as buildLotSnListQuery, aW as renderUtils, aX as resolveLotRecordByValue, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, a$ as ProductionIdentificationTypeEnum, b0 as BindCmpStyleEnum, b1 as getParseRuleInfo, b2 as getParseRuleValue, b3 as normalizeRefLoaderResult, b4 as STOCKTAKE_DIMENSION, b5 as F, b6 as resolveStocktakeSelectApi, b7 as readSealValue, b8 as isSealStamped, b9 as RenderModeEnum, 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 findRuntimeParentRow, bn as useOnlineFormTransformField2Component, bo as FormulaRuleFieldKeyEnum, bp as formulaRuleFieldDict, bq as resolveDesignPanelFeatures, br as BIZ_TABLE_CONFIG_SEED_TYPES, bs as STOCKTAKE_DIMENSION_OPTIONS, bt as isRepeatingSubTablePanelType, bu as moveSealValue, bv as uuid2$1 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.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 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";
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-Dn_iw4tV.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-QrM7rL99.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, 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";
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-a6chYhIK.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";
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-DjSdDuaL.js";
14
+ import { u as useFormModel, F as FormModelController } from "./mb-render-BCtvoXM-.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";
@@ -1529,6 +1529,7 @@ const FieldTypeToCellWidgetMap = {
1529
1529
  [FIELD_TYPE.SCRAP_MATERIAL_NO]: CellWidgetCategory.Ref,
1530
1530
  [FIELD_TYPE.DESTRUCTIVE_TEST_QTY]: CellWidgetCategory.Double,
1531
1531
  [FIELD_TYPE.PRODUCT_CHECK_QTY]: CellWidgetCategory.Double,
1532
+ [FIELD_TYPE.PRODUCT_RELEASE_QTY]: CellWidgetCategory.Double,
1532
1533
  [FIELD_TYPE.MATERIAL_CHECK_QTY]: CellWidgetCategory.Double,
1533
1534
  [FIELD_TYPE.INSPECTION_QTY]: CellWidgetCategory.Double,
1534
1535
  [FIELD_TYPE.INSPECTION_MODULE_QTY]: CellWidgetCategory.Double,
@@ -1556,6 +1557,7 @@ const NumberFieldTypes = [
1556
1557
  FIELD_TYPE.SCRAP_QTY,
1557
1558
  FIELD_TYPE.DESTRUCTIVE_TEST_QTY,
1558
1559
  FIELD_TYPE.PRODUCT_CHECK_QTY,
1560
+ FIELD_TYPE.PRODUCT_RELEASE_QTY,
1559
1561
  FIELD_TYPE.MATERIAL_CHECK_QTY,
1560
1562
  FIELD_TYPE.INSPECTION_QTY,
1561
1563
  FIELD_TYPE.INSPECTION_MODULE_QTY,
@@ -1622,6 +1624,7 @@ const OnlineFormBusinessTypes = [
1622
1624
  FIELD_TYPE.SCRAP_MATERIAL_NO,
1623
1625
  FIELD_TYPE.DESTRUCTIVE_TEST_QTY,
1624
1626
  FIELD_TYPE.PRODUCT_CHECK_QTY,
1627
+ FIELD_TYPE.PRODUCT_RELEASE_QTY,
1625
1628
  FIELD_TYPE.MATERIAL_CHECK_QTY,
1626
1629
  FIELD_TYPE.INSPECTION_QTY,
1627
1630
  FIELD_TYPE.INSPECTION_MODULE_QTY,
@@ -1700,6 +1703,7 @@ const FIELD_TYPE_LABEL_MAP = {
1700
1703
  [FIELD_TYPE.SCRAP_MATERIAL_NO]: "报废物料批次",
1701
1704
  [FIELD_TYPE.DESTRUCTIVE_TEST_QTY]: "破坏性试验数量",
1702
1705
  [FIELD_TYPE.PRODUCT_CHECK_QTY]: "产品检验数量",
1706
+ [FIELD_TYPE.PRODUCT_RELEASE_QTY]: "放行数量",
1703
1707
  [FIELD_TYPE.MATERIAL_CHECK_QTY]: "材料检验数量",
1704
1708
  [FIELD_TYPE.INSPECTION_QTY]: "送检数量",
1705
1709
  [FIELD_TYPE.INSPECTION_MODULE_QTY]: "检验数量",
@@ -2014,7 +2018,7 @@ function openWindow(url, opt) {
2014
2018
  const FieldPropLabels = Object.entries(FIELD_PROP_LABEL_MAP);
2015
2019
  const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
2016
2020
  async function createWorkbook() {
2017
- const ExcelJs = (await import("./exceljs.min-9FX7NALn.js").then((n) => n.e)).default;
2021
+ const ExcelJs = (await import("./exceljs.min-DoNsTxQp.js").then((n) => n.e)).default;
2018
2022
  return new ExcelJs.Workbook();
2019
2023
  }
2020
2024
  class XlsxParser {
@@ -2342,39 +2346,39 @@ class XlsxParser {
2342
2346
  }
2343
2347
  function asyncImportClassModules() {
2344
2348
  const modules = /* @__PURE__ */ Object.assign({
2345
- "./_field_/auto-complete/index.ts": () => import("./index-BKnroXXX.js").then((m) => m["default"]),
2346
- "./_field_/datepicker/index.ts": () => import("./index-DkXBzlUL.js").then((m) => m["default"]),
2347
- "./_field_/datetimepicker/index.ts": () => import("./index-CWjwF2wn.js").then((m) => m["default"]),
2348
- "./_field_/department/index.ts": () => import("./index-NqYSNDX9.js").then((m) => m["default"]),
2349
- "./_field_/enum-select/index.ts": () => import("./index-q_pMlfx9.js").then((m) => m["default"]),
2350
- "./_field_/input/index.ts": () => import("./index-BRc6frrP.js").then((m) => m["default"]),
2351
- "./_field_/inputdouble/index.ts": () => import("./index-DYyVGkv3.js").then((m) => m["default"]),
2352
- "./_field_/inputnumber/index.ts": () => import("./index-BLrixMsM.js").then((m) => m["default"]),
2353
- "./_field_/rdo-select/index.ts": () => import("./index-CVG3Z6rp.js").then((m) => m["default"]),
2354
- "./_field_/seal/index.ts": () => import("./index-NJZaG-sl.js").then((m) => m["default"]),
2355
- "./_field_/select/index.ts": () => import("./index-BgzCdSQH.js").then((m) => m["default"]),
2356
- "./_field_/sign/index.ts": () => import("./index-B3KkYxiX.js").then((m) => m["default"]),
2357
- "./_field_/switch/index.ts": () => import("./index-B9xwdsWY.js").then((m) => m["default"]),
2358
- "./_field_/textarea/index.ts": () => import("./index-Dp2q7ZPo.js").then((m) => m["default"]),
2359
- "./_field_/timepicker/index.ts": () => import("./index-D7ZzvopL.js").then((m) => m["default"]),
2360
- "./_field_/upload-file/index.ts": () => import("./index-vEKEZcff.js").then((m) => m["default"]),
2361
- "./_field_/upload-image/index.ts": () => import("./index-B4c_0M_d.js").then((m) => m["default"]),
2362
- "./_field_/userpicker/index.ts": () => import("./index-Cl_94fZQ.js").then((m) => m["default"]),
2363
- "./_widget_/barcode/index.ts": () => import("./index-BjSWHyj1.js").then((m) => m["default"]),
2364
- "./_widget_/combine-fields/index.ts": () => import("./index-CG5LAGQp.js").then((m) => m["default"]),
2365
- "./_widget_/diagonal/index.ts": () => import("./index-DCv60fUG.js").then((m) => m["default"]),
2366
- "./_widget_/dyn-value/index.ts": () => import("./index-BdYI71iy.js").then((m) => m["default"]),
2367
- "./_widget_/image/index.ts": () => import("./index-BkoKoZbl.js").then((m) => m["default"]),
2368
- "./_widget_/line/index.ts": () => import("./index-Cj_t_73x.js").then((m) => m["default"]),
2369
- "./_widget_/power/index.ts": () => import("./index-Dru8lW-_.js").then((m) => m["default"]),
2370
- "./_widget_/qrcode/index.ts": () => import("./index-COmm7d4j.js").then((m) => m["default"]),
2371
- "./_widget_/ro/index.ts": () => import("./index-CjCFTTI3.js").then((m) => m["default"]),
2372
- "./_widget_/serialnumber/index.ts": () => import("./index-D4zDlgqU.js").then((m) => m["default"]),
2373
- "./_widget_/sub-table/index.ts": () => import("./index-BM1sPB29.js").then((m) => m["default"]),
2374
- "./_widget_/timediff/index.ts": () => import("./index-BWHnHAjs.js").then((m) => m["default"]),
2375
- "./paper/index.ts": () => import("./index-CyPwg8fV.js").then((m) => m["default"]),
2376
- "./td/index.ts": () => import("./index-CcB9d0A-.js").then((m) => m["default"]),
2377
- "./tr/index.ts": () => import("./index-lf11EIvP.js").then((m) => m["default"])
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"])
2378
2382
  });
2379
2383
  return modules;
2380
2384
  }
@@ -16014,7 +16018,7 @@ function asyncImportWidgetConfigList() {
16014
16018
  return widgetConfigList;
16015
16019
  }
16016
16020
  function asyncImportWidgetDesign() {
16017
- const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/seal/seal-design.vue": () => import("./seal-design-CtzWGxnH.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-CzlfYJ3s.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-DCVidBZD.js"), "./image/image-design.vue": () => import("./image-design-Cx1YIea4.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-DJEw5vlL.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-C3rm4SzP.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-9jPH-S8z.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-BsfJH6Kp.js"), "./text/text-design.vue": () => import("./text-design-DmLrMqdk.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-CYqz1SKQ.js") });
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") });
16018
16022
  const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
16019
16023
  const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
16020
16024
  if (mKey) {
@@ -33832,6 +33836,7 @@ const fifteenDigitTypes = /* @__PURE__ */ new Set([
33832
33836
  FIELD_TYPE.GOOD_QTY,
33833
33837
  FIELD_TYPE.NOT_GOOD_QTY,
33834
33838
  FIELD_TYPE.PRODUCT_CHECK_QTY,
33839
+ FIELD_TYPE.PRODUCT_RELEASE_QTY,
33835
33840
  FIELD_TYPE.DESTRUCTIVE_TEST_QTY,
33836
33841
  FIELD_TYPE.OPERATION_OUTPUT_QTY,
33837
33842
  FIELD_TYPE.OPERATION_RECEIVE_QTY,
@@ -34498,6 +34503,7 @@ const _sfc_main$4A = /* @__PURE__ */ defineComponent({
34498
34503
  FIELD_TYPE.SCRAP_QTY,
34499
34504
  FIELD_TYPE.DESTRUCTIVE_TEST_QTY,
34500
34505
  FIELD_TYPE.PRODUCT_CHECK_QTY,
34506
+ FIELD_TYPE.PRODUCT_RELEASE_QTY,
34501
34507
  FIELD_TYPE.MATERIAL_CHECK_QTY,
34502
34508
  FIELD_TYPE.INSPECTION_QTY,
34503
34509
  FIELD_TYPE.INSPECTION_MODULE_QTY
@@ -53354,7 +53360,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
53354
53360
  }
53355
53361
  });
53356
53362
  function asyncImportWidgetProp() {
53357
- const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-DwYihxgd.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-DWdxDYVl.js"), "./widget-image.vue": () => import("./widget-image-D1SXIbMU.js"), "./widget-line.vue": () => import("./widget-line-BNTbSFkx.js"), "./widget-pagination.vue": () => import("./widget-pagination-25CKNe-i.js"), "./widget-power.vue": () => import("./widget-power-BSjWdgM3.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-Kbe9Skrd.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-TWPoG8DX.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-uNkQzBIT.js"), "./widget-text.vue": () => import("./widget-text-DH4r60jo.js"), "./widget-timediff.vue": () => import("./widget-timediff-Bv8VCgrv.js") });
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") });
53358
53364
  const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
53359
53365
  const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
53360
53366
  if (mKey) {
@@ -61528,6 +61534,113 @@ function useSearchEnter({
61528
61534
  }
61529
61535
  };
61530
61536
  }
61537
+ async function fetchCollinearContainerIds(containerId) {
61538
+ const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
61539
+ { modelCategory: "entity", modelKey: "em_container", bsKey: "listAll" },
61540
+ {},
61541
+ { query: { collinear_production_container_id_: containerId } }
61542
+ );
61543
+ if (res == null || typeof res === "object" && "ok" in res && res.ok === false) {
61544
+ throw new Error("查询放行单共线批次失败");
61545
+ }
61546
+ const data = typeof res === "object" && "data" in res ? res.data : res;
61547
+ const rows = Array.isArray(data) ? data : data && typeof data === "object" && "data" in data && Array.isArray(data.data) ? data.data : [];
61548
+ return [
61549
+ ...new Set(rows.flatMap((row) => row.id_ != null && row.id_ !== "" ? [String(row.id_)] : []))
61550
+ ];
61551
+ }
61552
+ const productReleaseProfile = {
61553
+ businessType: "PRODUCT_RELEASE",
61554
+ fieldQueries: [
61555
+ {
61556
+ id: "collinear-lots",
61557
+ match: { fieldType: FIELD_TYPE.MATERIAL_NO },
61558
+ cache: {
61559
+ key: ({ paramsConfig }) => {
61560
+ const id = paramsConfig.containerId;
61561
+ return id != null && id !== "" ? String(id) : null;
61562
+ }
61563
+ },
61564
+ resolveFilters: async ({ paramsConfig }) => {
61565
+ const containerId = paramsConfig.containerId;
61566
+ if (containerId == null || containerId === "") return [];
61567
+ const ids = await fetchCollinearContainerIds(String(containerId));
61568
+ return ids.length ? [{ field: "id_", operator: "in", values: ids }] : [];
61569
+ }
61570
+ }
61571
+ ]
61572
+ };
61573
+ const profiles = [productReleaseProfile];
61574
+ const profileByBusinessType = new Map(profiles.map((profile) => [profile.businessType, profile]));
61575
+ function getDocumentBusinessProfile(businessType) {
61576
+ return businessType ? profileByBusinessType.get(businessType) : void 0;
61577
+ }
61578
+ async function resolveBusinessFieldFilters(context) {
61579
+ const profile = getDocumentBusinessProfile(context.businessType);
61580
+ if (!profile) return [];
61581
+ const rules = profile.fieldQueries.filter((rule) => rule.match.fieldType === context.fieldType);
61582
+ const results = await Promise.all(
61583
+ rules.map(async (rule) => {
61584
+ try {
61585
+ if (!rule.cache) return await rule.resolveFilters(context);
61586
+ return await withRequestCache.handleRequest(
61587
+ "document-business-field-query",
61588
+ {
61589
+ businessType: profile.businessType,
61590
+ ruleId: rule.id,
61591
+ key: rule.cache.key(context)
61592
+ },
61593
+ () => rule.resolveFilters(context),
61594
+ rule.cache.ttlMs
61595
+ );
61596
+ } catch {
61597
+ return [];
61598
+ }
61599
+ })
61600
+ );
61601
+ return results.flat();
61602
+ }
61603
+ const EMPTY_QUERY_VALUE = "__excel_no_matching_query_value__";
61604
+ function joinAnd(expressions) {
61605
+ return expressions.length > 1 ? `AND(${expressions.join(",")})` : expressions[0] ?? "";
61606
+ }
61607
+ function splitAndTerms(expression) {
61608
+ if (!expression.startsWith("AND(") || !expression.endsWith(")")) return [expression];
61609
+ const inner = expression.slice(4, -1);
61610
+ const terms = [];
61611
+ let depth = 0;
61612
+ let start = 0;
61613
+ for (let index2 = 0; index2 < inner.length; index2++) {
61614
+ const char = inner[index2];
61615
+ if (char === "(") depth++;
61616
+ if (char === ")" && --depth < 0) return [expression];
61617
+ if (char === "," && depth === 0) {
61618
+ terms.push(inner.slice(start, index2).trim());
61619
+ start = index2 + 1;
61620
+ }
61621
+ }
61622
+ terms.push(inner.slice(start).trim());
61623
+ if (depth !== 0 || terms.some((term) => !term)) return [expression];
61624
+ return terms.flatMap(splitAndTerms);
61625
+ }
61626
+ function mergeQueryFilters(query, filters) {
61627
+ if (!filters.length) return query;
61628
+ const queryData = { ...query.queryData };
61629
+ const baseExp = query.exp || joinAnd(Object.keys(queryData));
61630
+ const expressions = new Set(baseExp ? splitAndTerms(baseExp) : []);
61631
+ for (const filter of filters) {
61632
+ const key = `${filter.field}.${filter.operator}`;
61633
+ let values = [...new Set(filter.values)];
61634
+ const existing = queryData[key];
61635
+ if (Array.isArray(existing) && existing.length) {
61636
+ const existingValues = new Set(existing.map(String));
61637
+ values = values.filter((value) => existingValues.has(value));
61638
+ }
61639
+ queryData[key] = values.length ? values : [EMPTY_QUERY_VALUE];
61640
+ expressions.add(key);
61641
+ }
61642
+ return { ...query, queryData, exp: joinAnd([...expressions]) };
61643
+ }
61531
61644
  const _hoisted_1$1g = { class: "search-actions" };
61532
61645
  const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61533
61646
  __name: "lot-select-table",
@@ -61558,8 +61671,14 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61558
61671
  const {
61559
61672
  options: initialOptions,
61560
61673
  newTotalCount,
61561
- customLoaderRef
61674
+ customLoaderRef,
61675
+ dataRelationShip
61562
61676
  } = useWidgetStaticAttrs(props2.widget);
61677
+ const businessContext = computed(() => ({
61678
+ businessType: dataRelationShip?.businessType,
61679
+ paramsConfig: dataRelationShip?.paramsConfig ?? {},
61680
+ fieldType: props2.widget.props.bizType || props2.widget.props.fieldType
61681
+ }));
61563
61682
  const searchForm = ref({
61564
61683
  keyword: void 0
61565
61684
  });
@@ -61568,7 +61687,9 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61568
61687
  return getColumns(["radio", "lot2sn", "productCode", "productName", "productSpec"]);
61569
61688
  });
61570
61689
  const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize: pageSize2 }) => {
61571
- const { queryData, exp } = buildLotSnListQuery(keyword2, props2.extraQuery);
61690
+ const baseQuery = buildLotSnListQuery(keyword2, props2.extraQuery);
61691
+ const businessFilters = await resolveBusinessFieldFilters(businessContext.value);
61692
+ const { queryData, exp } = mergeQueryFilters(baseQuery, businessFilters);
61572
61693
  const res = await renderUtils.requestLot2SnOptions({
61573
61694
  isMaterialConsumeField: props2.widget.props.isMaterialConsumeField,
61574
61695
  customLoader: customLoaderRef.value,
@@ -61587,7 +61708,10 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61587
61708
  highlightIdx: info.highlightIdx
61588
61709
  };
61589
61710
  };
61590
- const usePreloaded = !customLoaderRef.value && !Object.keys(props2.extraQuery || {}).length;
61711
+ const hasBusinessQuery = getDocumentBusinessProfile(
61712
+ businessContext.value.businessType
61713
+ )?.fieldQueries.some((rule) => rule.match.fieldType === businessContext.value.fieldType);
61714
+ const usePreloaded = !hasBusinessQuery && !customLoaderRef.value && !Object.keys(props2.extraQuery || {}).length;
61591
61715
  const initialParams = usePreloaded ? merge(
61592
61716
  {},
61593
61717
  transformLotData(
@@ -61611,6 +61735,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61611
61735
  },
61612
61736
  { deep: true }
61613
61737
  );
61738
+ watch(businessContext, () => search(searchForm.value.keyword), { deep: true });
61614
61739
  const paginationAttr = computed(() => ({
61615
61740
  current: pagination.current,
61616
61741
  pageSize: pagination.pageSize,
@@ -61715,7 +61840,7 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
61715
61840
  };
61716
61841
  }
61717
61842
  });
61718
- const LotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$2k, [["__scopeId", "data-v-601a640e"]]);
61843
+ const LotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$2k, [["__scopeId", "data-v-f451e686"]]);
61719
61844
  const INITIAL_WRAPPER_HEIGHT = 360;
61720
61845
  const POPOVER_PADDING = 16;
61721
61846
  const SEARCH_BLOCK_HEIGHT = 44;
@@ -65261,6 +65386,9 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65261
65386
  const emit2 = __emit;
65262
65387
  const { field, bizType, fieldType, modelKey, refModelKey, customLoaderRef } = useWidgetStaticAttrs(props2.widget);
65263
65388
  const keyword2 = ref();
65389
+ const selectionValue = computed(
65390
+ () => customLoaderRef.value?.getSelectedKey ? customLoaderRef.value.getSelectedKey() : props2.modelValue
65391
+ );
65264
65392
  const showSearch = computed(
65265
65393
  () => (props2.widget.props.displayFields || []).some((item) => item?.key) && (!!props2.widget.props.quickSearchField?.length || (bizType || fieldType) === FIELD_TYPE.MFG_ORDER)
65266
65394
  );
@@ -65273,13 +65401,15 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65273
65401
  title: name,
65274
65402
  field: key,
65275
65403
  minWidth: 170,
65404
+ showOverflow: true,
65405
+ align: "left",
65276
65406
  slots: { default: "default" },
65277
65407
  formatter: formatDisplayCell
65278
65408
  }))
65279
65409
  ]);
65280
65410
  const fetcher = async ({ keyword: keyword22 = "", pageNo, pageSize: pageSize2 }) => {
65281
65411
  const queryData = {
65282
- operating_state_: (bizType || fieldType) === FIELD_TYPE.SHOPFLOOR ? true : void 0,
65412
+ ...(bizType || fieldType) === FIELD_TYPE.SHOPFLOOR ? { operating_state_: true } : {},
65283
65413
  ...props2.extraQuery
65284
65414
  };
65285
65415
  const searchFields = props2.widget.props.quickSearchField?.length ? props2.widget.props.quickSearchField : [(bizType || fieldType) === FIELD_TYPE.MFG_ORDER ? "code_" : "name_", "code_"];
@@ -65300,14 +65430,14 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65300
65430
  ...option2._item,
65301
65431
  _item: option2._item,
65302
65432
  _option: option2,
65303
- __VALUE__: option2.value
65433
+ __VALUE__: customLoaderRef.value?.getOptionKey?.(option2) ?? option2.value
65304
65434
  }));
65305
65435
  return {
65306
65436
  data,
65307
65437
  totalCount: Number(res.totalCount ?? 0),
65308
65438
  highlightIdx: {
65309
65439
  index: data.flatMap(
65310
- (row, index2) => row.__VALUE__ === props2.modelValue ? [index2] : []
65440
+ (row, index2) => row.__VALUE__ === selectionValue.value ? [index2] : []
65311
65441
  )
65312
65442
  }
65313
65443
  };
@@ -65386,7 +65516,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65386
65516
  ref: xTable,
65387
65517
  columns: columns.value,
65388
65518
  tableData: unref(tableData),
65389
- modelValue: __props.modelValue,
65519
+ modelValue: selectionValue.value,
65390
65520
  loading: unref(loading2),
65391
65521
  paginationAttr: paginationAttr.value,
65392
65522
  wrapperHeight: __props.wrapperHeight,
@@ -65399,7 +65529,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
65399
65529
  };
65400
65530
  }
65401
65531
  });
65402
- const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["__scopeId", "data-v-b48ca019"]]);
65532
+ const TraceRefSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1Z, [["__scopeId", "data-v-3bca389e"]]);
65403
65533
  const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
65404
65534
  ...{ inheritAttrs: false },
65405
65535
  __name: "parse-select",
@@ -65712,7 +65842,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
65712
65842
  emits: ["update:value", "change"],
65713
65843
  setup(__props, { expose: __expose, emit: __emit }) {
65714
65844
  const props2 = __props;
65715
- const { setRowField } = useRuntimeRowState(() => props2.formData);
65845
+ const { setRowField, patchRow } = useRuntimeRowState(() => props2.formData);
65716
65846
  const emit2 = __emit;
65717
65847
  const {
65718
65848
  field,
@@ -65886,11 +66016,23 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
65886
66016
  emit2("update:value", null);
65887
66017
  }
65888
66018
  };
65889
- function setVisible(visible) {
65890
- if (open.value === visible) {
66019
+ let visibilityRequest = 0;
66020
+ async function setVisible(visible) {
66021
+ const request = ++visibilityRequest;
66022
+ const loader = customLoaderRef.value;
66023
+ if (!visible || !loader?.beforeOpen) {
66024
+ open.value = visible && !showDisabled.value;
66025
+ return;
66026
+ }
66027
+ if (open.value || showDisabled.value) return;
66028
+ const result = await loader.beforeOpen();
66029
+ if (request !== visibilityRequest || loader !== customLoaderRef.value || showDisabled.value)
66030
+ return;
66031
+ if (!result.allowed) {
66032
+ if (result.message) message.error(result.message);
65891
66033
  return;
65892
66034
  }
65893
- open.value = visible;
66035
+ open.value = true;
65894
66036
  }
65895
66037
  function visibleChange(visible) {
65896
66038
  if (!visible) {
@@ -65993,7 +66135,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
65993
66135
  __RDO_LABEL__,
65994
66136
  __VERSION_NAME__
65995
66137
  } = record || {};
65996
- const value = __VALUE__ || id_ || null;
66138
+ const value = (useFlatCustomTable.value ? record?._option?.value : void 0) ?? (__VALUE__ || id_ || null);
65997
66139
  const rawRecord = record?._item ?? record;
65998
66140
  const optionLabel = record?._option?.label || record?.["product_id_.name_"] || rawRecord?.["product_id_.name_"] || rawRecord?._OPCT?.["product_id_.name_"] || record?.product_id_name_ || record?.label || record?.__LABEL__ || record?.name_;
65999
66141
  let showValue;
@@ -66050,6 +66192,9 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
66050
66192
  }
66051
66193
  );
66052
66194
  }
66195
+ if (useFlatCustomTable.value && customLoaderRef.value?.getSelectionPatch) {
66196
+ patchRow(customLoaderRef.value.getSelectionPatch(rawRecord), "user");
66197
+ }
66053
66198
  open.value = false;
66054
66199
  if (useFlatCustomTable.value) {
66055
66200
  emit2("change", showValue, record);
@@ -66143,7 +66288,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
66143
66288
  };
66144
66289
  }
66145
66290
  });
66146
- const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1X, [["__scopeId", "data-v-f00b4ba0"]]);
66291
+ const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1X, [["__scopeId", "data-v-1493d589"]]);
66147
66292
  const _hoisted_1$1a = { class: "allocate-product__dropdown" };
66148
66293
  const _sfc_main$1W = /* @__PURE__ */ defineComponent({
66149
66294
  __name: "allocate-product",
@@ -67367,7 +67512,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
67367
67512
  }
67368
67513
  });
67369
67514
  const VueVideoPlayer = defineAsyncComponent(
67370
- () => import("./VueVideoPlayer-DHqhqgGs.js")
67515
+ () => import("./VueVideoPlayer-D9kpfmiz.js")
67371
67516
  );
67372
67517
  const _hoisted_1$19 = {
67373
67518
  key: 0,
@@ -88979,8 +89124,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
88979
89124
  printTask = (async () => {
88980
89125
  if (document.activeElement instanceof HTMLElement) document.activeElement.blur();
88981
89126
  await nextTick();
88982
- const { printRuntimeInstance } = await import("./print-runtime-instance-BtxZfq51.js");
88983
- const { default: renderer } = await import("./print-snapshot-renderer-0D5MUsR6.js");
89127
+ const { printRuntimeInstance } = await import("./print-runtime-instance-v1jzD3oO.js");
89128
+ const { default: renderer } = await import("./print-snapshot-renderer-BSf76qD7.js");
88984
89129
  if (abort.signal.aborted) throw new Error("打印已取消");
88985
89130
  printRenderer.value = markRaw(renderer);
88986
89131
  await printRuntimeInstance(
@@ -1,6 +1,6 @@
1
1
  import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
2
- import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-mCrtpdq2.js";
3
- import { C as ComponentTypeEnum, A as CellType, q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-BDRyjPGr.js";
3
+ import { C as ComponentTypeEnum, A as CellType, q as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
@@ -1,11 +1,11 @@
1
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
1
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
2
2
  import "vue";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-Dfx-Xuv4.js";
8
- import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-CVl0Vm8r.js";
7
+ import { B as BaseComponent } from "./BaseComponent-ByKSQlX5.js";
8
+ import { g as getTraceLikeSelectProps } from "./trace-like-wrapper-XB73ltP9.js";
9
9
  class RdoSelect extends BaseComponent {
10
10
  component = ComponentTypeEnum.RdoSelect;
11
11
  wrapperCmpConfig({ data }) {
@@ -1,4 +1,4 @@
1
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
1
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
2
2
  import "vue";
3
3
  import { pick } from "lodash-es";
4
4
  import "dayjs";
@@ -1,10 +1,10 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-Dfx-Xuv4.js";
7
+ import { B as BaseComponent } from "./BaseComponent-ByKSQlX5.js";
8
8
  class Department extends BaseComponent {
9
9
  component = ComponentTypeEnum.Department;
10
10
  wrapperCmpConfig({ data }) {
@@ -1,10 +1,10 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
5
  import "@gct-paas/form-base";
6
6
  import "ant-design-vue";
7
- import { B as BaseComponent } from "./BaseComponent-Dfx-Xuv4.js";
7
+ import { B as BaseComponent } from "./BaseComponent-ByKSQlX5.js";
8
8
  class Timepicker extends BaseComponent {
9
9
  component = ComponentTypeEnum.Timepicker;
10
10
  wrapperCmpConfig({ data }) {
@@ -1,6 +1,6 @@
1
1
  import { pick, get } from "lodash-es";
2
2
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
3
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
3
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
@@ -1,12 +1,12 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-Dn_iw4tV.js";
3
- import { C as ComponentTypeEnum, O as Orientation, a2 as BooleanShowMode, a1 as LabelPosition, b0 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { n as normalizeFieldWidth, D as DEFAULT_BOOLEAN_FIELD_WIDTH } from "./dynamic-table-action-DkHb1ST4.js";
3
+ import { C as ComponentTypeEnum, O as Orientation, a2 as BooleanShowMode, a1 as LabelPosition, b1 as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
4
4
  import "vue";
5
5
  import "dayjs";
6
6
  import "@gct-paas/form-base";
7
7
  import "ant-design-vue";
8
- import { g as getFieldWidget } from "./index-mCrtpdq2.js";
9
- import { B as BaseComponent } from "./BaseComponent-Dfx-Xuv4.js";
8
+ import { g as getFieldWidget } from "./index-BDRyjPGr.js";
9
+ import { B as BaseComponent } from "./BaseComponent-ByKSQlX5.js";
10
10
  class Switch extends BaseComponent {
11
11
  component = ComponentTypeEnum.Switch;
12
12
  wrapperCmpConfig({ data }) {
@@ -1,5 +1,5 @@
1
1
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
3
3
  import "vue";
4
4
  import { pick, get } from "lodash-es";
5
5
  import "dayjs";
@@ -1,5 +1,5 @@
1
1
  import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
2
- import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
2
+ import { C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CAg9oyuD.js";
3
3
  import "vue";
4
4
  import { pick } from "lodash-es";
5
5
  import "dayjs";