@gct-paas/excel 0.1.21 → 0.1.23
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.
- package/dist/{VueVideoPlayer-Bf0x69CJ.js → VueVideoPlayer-DeGuauVb.js} +2 -2
- package/dist/{agg-design-CLSOm6QJ.js → agg-design-B485eEtY.js} +1 -1
- package/dist/{agg-props-4nnDqWtf.js → agg-props-g6XDFjb9.js} +1 -1
- package/dist/{agg-style-FHSkeH5u.js → agg-style-zIhxDQI2.js} +1 -1
- package/dist/{align-editor-Bf391dfO.js → align-editor-C3luWRCq.js} +1 -1
- package/dist/{attach-fields-editor-U0Vg4ar8.js → attach-fields-editor-Dy1bN4Aq.js} +2 -2
- package/dist/{barcode-design-XLuURxqD.js → barcode-design-Cw3ChYzU.js} +2 -2
- package/dist/base/index.es.js +93 -77
- package/dist/{base-font-editor-adnb7ShQ.js → base-font-editor-fpBDIpYD.js} +2 -2
- package/dist/{boolean-design-Bk3jIc2m.js → boolean-design-CMY1NvJx.js} +2 -2
- package/dist/{boolean-props-D1C7P7oX.js → boolean-props-CXd_zo-H.js} +3 -3
- package/dist/{boolean-style-CWmep9-Y.js → boolean-style-Bwn-w6Vd.js} +4 -4
- package/dist/{cell-upload-wzPF8ovv.js → cell-upload-DtUd8zB6.js} +2 -2
- package/dist/{date-range-editor-CGCLkDFp.js → date-range-editor-CbvWtTZu.js} +2 -2
- package/dist/{date-time-design-CG6fhsBd.js → date-time-design-DwDsnQbz.js} +1 -1
- package/dist/{date-time-props-DGa4XIFD.js → date-time-props-HkqTfmXs.js} +3 -3
- package/dist/{date-time-style-C5xs_HQX.js → date-time-style-C6mVoPbF.js} +1 -1
- package/dist/{decimal-design-Dg2PWB7J.js → decimal-design-BJbiiN7J.js} +1 -1
- package/dist/{decimal-display-mode-B5nxWZnK.js → decimal-display-mode-DOmLtCGz.js} +2 -2
- package/dist/{decimal-props-BUduwEu5.js → decimal-props-CRsHxz1d.js} +4 -4
- package/dist/{decimal-style-CW6QyMh0.js → decimal-style-DO4ROgq5.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Dqz0oW0Y.js} +2 -2
- package/dist/{diagonal-design-xlveiCza.js → diagonal-design-DSI944Jp.js} +16 -4
- package/dist/{double-design-Dkzgoo0g.js → double-design-DKS8QZ9M.js} +1 -1
- package/dist/{double-props-DwI5z-Mz.js → double-props-pw1mzMKu.js} +4 -4
- package/dist/{double-style-B09n2Oup.js → double-style-DtsZ-k10.js} +1 -1
- package/dist/{dynamic-table-action-KwzaoPBC.js → dynamic-table-action-D789BgJZ.js} +14 -3
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js} +412 -259
- package/dist/{edit.utils-CXmmCnxE-Do4weQUL.js → edit.utils-CXmmCnxE-VGRgG--d.js} +1 -1
- package/dist/{enum-design-D_hYB8q2.js → enum-design-BWcD5nJ8.js} +2 -2
- package/dist/{enum-props-SHpVl7is.js → enum-props-BYEq0j1n.js} +3 -3
- package/dist/{enum-style-zTZKj6Li.js → enum-style-C4gEWyWv.js} +3 -3
- package/dist/excel.css +284 -66
- package/dist/{exceljs.min-Dy4OavkS.js → exceljs.min-DGKleauA.js} +2 -2
- package/dist/{expression-design-DH37JCnd.js → expression-design-D-t2dkee.js} +1 -1
- package/dist/{expression-props-D4aZ2FzY.js → expression-props-D7W_GSGq.js} +1 -1
- package/dist/{expression-style-Bj0tEmqJ.js → expression-style-CYgNzm7c.js} +1 -1
- package/dist/{file-design-hV82bwcT.js → file-design-BfCxFUVB.js} +1 -1
- package/dist/{file-props-BR0xOn8f.js → file-props-DYyaq1fr.js} +2 -2
- package/dist/{file-style-CPXRGFCR.js → file-style-_hRTBdtu.js} +1 -1
- package/dist/{font-editor-QrOFLcNA.js → font-editor-CUQ-uX8Y.js} +3 -3
- package/dist/{image-design-WqYFe8Hz.js → image-design-B8Riz960.js} +2 -2
- package/dist/{image-design-B3FASJvR.js → image-design-DP_erJjS.js} +1 -1
- package/dist/{image-props-DZ0lHvNN.js → image-props-CF0qOMl7.js} +1 -1
- package/dist/{image-style-D3jSU46p.js → image-style-DOseQ6-D.js} +1 -1
- package/dist/{index-4aWfyi4S.js → index-2E2k77Mp.js} +2 -2
- package/dist/{index-DNHA-joo.js → index-74yt8jRE.js} +1 -1
- package/dist/{index-pMF19I7H.js → index-BHckv9v7.js} +1 -1
- package/dist/{index-CAp9OIUg.js → index-BO21uzcy.js} +2 -2
- package/dist/{index-BCRANZ6N.js → index-BOx6PIQM.js} +1 -1
- package/dist/{index-DpFPYL8b.js → index-BPI7rTC0.js} +1 -1
- package/dist/{index-CVsM5Bam.js → index-BRTYgbpR.js} +1 -1
- package/dist/{index-ChFaMPeg.js → index-BTAd2V7f.js} +2 -2
- package/dist/{index-iGA3l7nd.js → index-B_0vyB6E.js} +1 -1
- package/dist/{index-BocrGDq2.js → index-Bo_OCoXR.js} +1 -1
- package/dist/{index-C9uva5U9.js → index-BrjJ30E6.js} +1 -1
- package/dist/{index-wmbtcxzT.js → index-Bz8M9Mln.js} +2 -2
- package/dist/{index-dECIkP6q.js → index-C8iWIwYo.js} +1 -1
- package/dist/{index-CquVE9ii.js → index-C94OYngd.js} +1 -1
- package/dist/{index-B_bGf5j3.js → index-CB8l6mFL.js} +2 -2
- package/dist/{index-DVaUctcz.js → index-CFkt2dM4.js} +1 -1
- package/dist/{index-BYnhPyxm.js → index-CHDwrHq2.js} +1 -1
- package/dist/{index-DKR79OBc.js → index-CYt8frH_.js} +1 -1
- package/dist/{index-BYFfjfXo.js → index-CZTvhN0E.js} +249 -27
- package/dist/{index-CsLZerBY.js → index-CdaNfYLE.js} +794 -326
- package/dist/{index-Cqh9EW_d.js → index-Chy_3-Lj.js} +4 -1
- package/dist/{index-Cblyq6yH.js → index-Csg13q_7.js} +1 -1
- package/dist/{index-DU3SF4eg.js → index-DCE1_hqb.js} +1 -1
- package/dist/{index-Ol6_R1tg.js → index-DWiYwa2w.js} +1 -1
- package/dist/{index-B2JfWmQ5.js → index-DhU0uktW.js} +1 -1
- package/dist/{index-RY064UmV.js → index-DmC0_bvJ.js} +2 -1
- package/dist/{index-BgJenclY.js → index-DvJkM2Bd.js} +1 -1
- package/dist/{index-DxgKf-wy.js → index-DvdsMdJa.js} +1 -1
- package/dist/{index-D8uy8whi.js → index-XlAWg7sl.js} +1 -1
- package/dist/{index-Dvp79b5b.js → index-iR4iHe5n.js} +1 -1
- package/dist/{index-Jz0_ApK0.js → index-i_eUK3Y_.js} +1 -1
- package/dist/{index-DegtNz07.js → index-kn1q-2-D.js} +1 -1
- package/dist/{index-BpacgAuY.js → index-plkuJNfn.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{integer-design-_-oIGMZi.js → integer-design-CT90qISw.js} +1 -1
- package/dist/{integer-props-CbhqGTWT.js → integer-props-BFcLFx5P.js} +4 -4
- package/dist/{integer-style-CRDDq2e1.js → integer-style-Dnermx3g.js} +1 -1
- package/dist/{mb-render-Bh6EegbE.js → mb-render-BOzJ9uDs.js} +1 -1
- package/dist/{number-input-ex-n0MRaA8Z.js → number-input-ex-CGx2Sum-.js} +1 -1
- package/dist/{org-props-B_ED1XJd.js → org-props-CGSr5vBf.js} +2 -2
- package/dist/{org-style-P7mL2u1-.js → org-style-CXs2pG6E.js} +1 -1
- package/dist/{pagination-design-CC2ZvE5K.js → pagination-design-Dy8hlT-1.js} +2 -2
- package/dist/paper-widget-design-D6SgvBa5.js +4 -0
- package/dist/{qrcode-design-C_G8R7Lo.js → qrcode-design-Cbqb-yWl.js} +1 -1
- package/dist/{ref-autofill-editor-DdUMjliQ.js → ref-autofill-editor-BF6nRqWg.js} +2 -2
- package/dist/{ref-props-CCwA0E2w.js → ref-props-lNA1ikVB.js} +3 -3
- package/dist/{ref-style-C3Qy3L2V.js → ref-style-sATuD-j-.js} +1 -1
- package/dist/{regex-editor-CswiNY9l.js → regex-editor-B4H6oUzp.js} +2 -2
- package/dist/{revo-grid.entry-fhJrZlXs.js → revo-grid.entry-ClF8lyTa.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BxX5Aax7.js → revogr-attribution_7.entry-BgyHJZuq.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-B84Mg6_S.js → revogr-clipboard_3.entry-DsSlwjAg.js} +2 -2
- package/dist/{revogr-data_4.entry-BSSMKH9X.js → revogr-data_4.entry-BR0RiTEA.js} +2 -2
- package/dist/{revogr-filter-panel.entry-xjYp1Z8c.js → revogr-filter-panel.entry-6I6pIy1t.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-CVMraRrv.js} +2 -2
- package/dist/{serialnumber-design-qdEzFAi4.js → serialnumber-design-yaRfMsU0.js} +1 -1
- package/dist/shared/index.es.js +22 -22
- package/dist/{signature-design-DyLTKEwS.js → signature-design-7HumYOQU.js} +1 -1
- package/dist/{signature-props-CXwqrh0H.js → signature-props-CB6C305K.js} +3 -3
- package/dist/{signature-style-ibNQSAPQ.js → signature-style-CriOvfEO.js} +1 -1
- package/dist/{single-field-drop-BSdWy-C4.js → single-field-drop-PQGKA2za.js} +2 -2
- package/dist/{size-editor-8C1AxONY.js → size-editor-D0JnT0iA.js} +1 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +16 -1
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +13 -0
- package/dist/src/nocode-base/src/interface/check-ds-data.d.ts +19 -11
- package/dist/src/nocode-base/src/interface/front-config.d.ts +47 -0
- package/dist/src/nocode-base/src/interface/index.d.ts +3 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +9 -3
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/widgets/i-diagonal.d.ts +4 -2
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +12 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +7 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter-editor.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +30 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-source-field-select.vue.d.ts +22 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +40 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +55 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/assoc-filter.d.ts +11 -0
- package/dist/{text-design-Di-2lpQC.js → text-design-BvdLsdrT.js} +2 -2
- package/dist/{text-design-BzDtceUO.js → text-design-CaNDnT6K.js} +2 -2
- package/dist/{text-props-YXtd9DCt.js → text-props-B-1Pd7T_.js} +5 -5
- package/dist/{text-style-BtclwHUQ.js → text-style-Dc1qKOif.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-BFMM5iqm.js → throttle-Cpk1LoGk-Buf1TOpL.js} +1 -1
- package/dist/{timediff-design-DPDNHC4C.js → timediff-design-VY2vmzMg.js} +1 -1
- package/dist/{trace-design-B2tffMF2.js → trace-design-Cz9oOcMi.js} +2 -2
- package/dist/trace-props-Bd7RIYGS.js +610 -0
- package/dist/{trace-style-AmSVnHXF.js → trace-style-BEJyw_H3.js} +1 -1
- package/dist/{user-props-hR1saiG7.js → user-props-DZjVNaGe.js} +2 -2
- package/dist/{user-style-BsMfhFHo.js → user-style-ByfzJ6fg.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js → value-editor.vue_vue_type_style_index_0_lang-BFXbRbwW.js} +2 -2
- package/dist/{version-select-CeQP0Bne.js → version-select-B9NwTGaB.js} +1 -1
- package/dist/web-render/index.es.js +2 -2
- package/dist/{widget-barcode-DPdsvAF5.js → widget-barcode-BbzJjixG.js} +4 -4
- package/dist/{widget-diagonal-BfjZGony.js → widget-diagonal-C0FmAvs-.js} +72 -17
- package/dist/{widget-image-D_E_0ZEd.js → widget-image-BGJik8Ks.js} +5 -5
- package/dist/{widget-line-SDiSxrzr.js → widget-line-D30nzorH.js} +2 -2
- package/dist/{widget-pagination-DdIoe9Yy.js → widget-pagination-C3-oYS-M.js} +5 -5
- package/dist/{widget-power-hifeC3T0.js → widget-power-mKWuNVOP.js} +3 -3
- package/dist/{widget-qrcode-DBEsM1iE.js → widget-qrcode-CIFK-3XT.js} +3 -3
- package/dist/{widget-rangelimit-clQ84tvq.js → widget-rangelimit-BRAlTG7f.js} +3 -3
- package/dist/{widget-serialnumber-BXvzHCYR.js → widget-serialnumber-ZM6hEQKn.js} +1 -1
- package/dist/{widget-text-CPojsb_9.js → widget-text-BrswIiuT.js} +5 -5
- package/dist/{widget-timediff-DGBZsme_.js → widget-timediff-BGOWmPYX.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-CvvM0OZ2.js +0 -4
- package/dist/trace-props-CWTXFYZ9.js +0 -275
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed, unref, ref, defineComponent, onMounted, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, watch, toRaw, inject, reactive, createBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, defineAsyncComponent, normalizeClass, normalizeStyle, watchEffect, renderSlot, resolveDynamicComponent, mergeProps, normalizeProps, guardReactiveProps, withModifiers, withKeys, nextTick, withDirectives, vShow, onBeforeUnmount, onUnmounted, isRef, provide, isVNode, h, createApp, Teleport, TransitionGroup, getCurrentInstance, onActivated, onDeactivated, render, toRef, mergeDefaults, useCssVars, onBeforeMount, toHandlers, createSlots, useAttrs, vModelText, toRefs } from "vue";
|
|
2
|
-
import { P as PaginationFormat, a as PaperWidgeType, B as BwipCodeType, L as LineType, b as PageSizeEnum, O as Orientation, F as FIELD_TYPE, c as FIELD_TYPE_TRACE, d as FIELD_TYPE_BUSINESS, s as src, C as CreateType, e as ComponentTypeEnum, p as parse, f as estraverse, S as Syntax, g as SubTableType, h as CellType, i as api, j as FieldTypeToJs, r as requireEstraverse, k as commonjsGlobal, l as getDefaultExportFromCjs, m as PaperWidgeValueType, u as useCalculateFormula, o as onlineFormMasterModelTypeEnum, n as FIELD_TYPE_WAREHOUSE, U as UniqueConstraintType, q as FieldDefaultValueTypeEnum, t as FormTypeEnum, v as mitt, w as LabelPosition, x as BooleanShowMode, y as SignatureNumberTypeEnum, z as SignatureTimeTypeEnum, A as SignShowTypeEnum, D as SignatureTypeEnum, _ as _export_sfc, E as PlatformEnum, G as FieldIconMap, H as CellWidgetViewState, I as DiagonalDirection, W as WidgetImageSizeMode, J as LineDirection, T as TimeDiffFormat, V as ViewTypeEnum,
|
|
2
|
+
import { P as PaginationFormat, a as PaperWidgeType, B as BwipCodeType, L as LineType, b as PageSizeEnum, O as Orientation, F as FIELD_TYPE, c as FIELD_TYPE_TRACE, d as FIELD_TYPE_BUSINESS, s as src, C as CreateType, e as ComponentTypeEnum, p as parse, f as estraverse, S as Syntax, g as SubTableType, h as CellType, i as api, j as FieldTypeToJs, r as requireEstraverse, k as commonjsGlobal, l as getDefaultExportFromCjs, m as PaperWidgeValueType, u as useCalculateFormula, o as onlineFormMasterModelTypeEnum, n as FIELD_TYPE_WAREHOUSE, U as UniqueConstraintType, q as FieldDefaultValueTypeEnum, t as FormTypeEnum, v as mitt, w as LabelPosition, x as BooleanShowMode, y as SignatureNumberTypeEnum, z as SignatureTimeTypeEnum, A as SignShowTypeEnum, D as SignatureTypeEnum, _ as _export_sfc, E as PlatformEnum, G as FieldIconMap, H as CellWidgetViewState, I as DiagonalDirection, W as WidgetImageSizeMode, J as LineDirection, T as TimeDiffFormat, K as DiagonalVertex, M as resolveDiagonalVertex, V as ViewTypeEnum, N as EmptySymbol, Q as ASSIGNMENTSTRATEGY_ENUM, R as Dependency_ENUM, X as ExpressionModeEnum, Y as ExpressionTabEnum, Z as ReturnTypeEnum, $ as ImageDisplayModeEnum, a0 as PaperSizeMap, a1 as EntityModelCategoryEnum, a2 as CheckDsTypeEnum, a3 as DeviceLink, a4 as DeviceParamsTypeTitle, a5 as AITooltips, a6 as DenoiseMethodOptions, a7 as BinarizeMethodOptions, a8 as ParamModelTypeEnum, a9 as JoinModelTypeEum, aa as sqlUtils, ab as useWidgetStaticAttrs, ac as setSelectValidatorId, ad as setSelectAnnotationId, ae as useNocodeFormWidget, af as DateFormat, ag as renderUtils, ah as BindCmpStyleEnum, ai as DecimalDisplayMode, aj as NCB_PROVIDE, ak as normalizeRefLoaderResult, al as refUtils, am as getParseRuleInfo, an as getParseRuleValue, ao as useCurrentPageFormState, ap as RangeValidateMode, aq as RenderModeEnum, ar as EFieldBizTypeEnum, as as FormulaRuleFieldKeyEnum, at as formulaRuleFieldDict, au as useNocodeEmitter } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import { range, cloneDeep, get as get$3, merge, isEmpty, zip, pick, debounce, omit, has, isNil, times, last, mapValues, set as set$2, hasIn, isEqual } from "lodash-es";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import * as Antd from "ant-design-vue";
|
|
6
6
|
import { message, Modal, Empty, InputSearch, Cascader, ConfigProvider, Tooltip as Tooltip$1, DatePicker, TreeSelect, CheckboxGroup, Checkbox, Radio, Select, Input, Textarea, AutoComplete, RadioGroup, TimePicker } from "ant-design-vue";
|
|
7
|
-
import { u as useOnlineFormTransformField2Component, B as BorderTD, a as useFormTmplConfig, D as DeviceLinkTmplUtil, I as InstanceStatusValues, b as useStyles, c as useDependency, d as useValidator, M as MaterialConsumptionPatternEnum, _ as _sfc_main$4s, e as DocumentPaper, f as DynamicTableAction } from "./dynamic-table-action-
|
|
7
|
+
import { u as useOnlineFormTransformField2Component, B as BorderTD, a as useFormTmplConfig, D as DeviceLinkTmplUtil, I as InstanceStatusValues, b as useStyles, c as useDependency, d as useValidator, M as MaterialConsumptionPatternEnum, _ as _sfc_main$4s, e as DocumentPaper, f as DynamicTableAction } from "./dynamic-table-action-D789BgJZ.js";
|
|
8
8
|
import { u as useModal, a as useNamespace } from "./use-namespace-qtLS8nEh.js";
|
|
9
|
-
import { S as SEARCH_SEVICE, I as Icon$2, w as warning, u as useInsertStyles, s as svgBaseProps, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$4r, a as SignatureTypeEnum$1 } from "./version-select-
|
|
10
|
-
import { u as useWebUpload, i as initWebPaasUploadApis, d as defaultWindow, a as useEventListener, b as unrefElement, M as ModalWrapper, F as FormFieldSelect, r as require$$0, U as Uploader, c as useWindowSize, o as onClickOutside$1, A as AddRuleBtn, e as initWebNocodeAdapter } from "./index-
|
|
11
|
-
import { u as useFormModel, a as useThrottleFn, n as noop, i as isIOS } from "./mb-render-
|
|
9
|
+
import { S as SEARCH_SEVICE, I as Icon$2, w as warning, u as useInsertStyles, s as svgBaseProps, C as CloseOutlined, E as EmptyImg$2, _ as _sfc_main$4r, a as SignatureTypeEnum$1 } from "./version-select-B9NwTGaB.js";
|
|
10
|
+
import { u as useWebUpload, i as initWebPaasUploadApis, d as defaultWindow, a as useEventListener, b as unrefElement, M as ModalWrapper, F as FormFieldSelect, r as require$$0, U as Uploader, c as useWindowSize, o as onClickOutside$1, A as AddRuleBtn, e as initWebNocodeAdapter } from "./index-CZTvhN0E.js";
|
|
11
|
+
import { u as useFormModel, a as useThrottleFn, n as noop, i as isIOS } from "./mb-render-BOzJ9uDs.js";
|
|
12
12
|
import { useRoute } from "vue-router";
|
|
13
13
|
var ContextMenu$1 = /* @__PURE__ */ ((ContextMenu2) => {
|
|
14
14
|
ContextMenu2[ContextMenu2["InsertRowBefore"] = 0] = "InsertRowBefore";
|
|
@@ -819,7 +819,7 @@ const FieldTypeLabels = Object.entries(FIELD_TYPE_LABEL_MAP);
|
|
|
819
819
|
const TRACE_FIELDS = Object.values(FIELD_TYPE_TRACE);
|
|
820
820
|
const BUSINESS_FIELDS = Object.values(FIELD_TYPE_BUSINESS);
|
|
821
821
|
async function createWorkbook() {
|
|
822
|
-
const ExcelJs = (await import("./exceljs.min-
|
|
822
|
+
const ExcelJs = (await import("./exceljs.min-DGKleauA.js").then((n) => n.e)).default;
|
|
823
823
|
return new ExcelJs.Workbook();
|
|
824
824
|
}
|
|
825
825
|
class XlsxParser {
|
|
@@ -1106,37 +1106,37 @@ class XlsxParser {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
function asyncImportClassModules() {
|
|
1108
1108
|
const modules = /* @__PURE__ */ Object.assign({
|
|
1109
|
-
"./_field_/datepicker/index.ts": () => import("./index-
|
|
1110
|
-
"./_field_/datetimepicker/index.ts": () => import("./index-
|
|
1111
|
-
"./_field_/department/index.ts": () => import("./index-
|
|
1112
|
-
"./_field_/enum-select/index.ts": () => import("./index-
|
|
1113
|
-
"./_field_/input/index.ts": () => import("./index-
|
|
1114
|
-
"./_field_/inputdouble/index.ts": () => import("./index-
|
|
1115
|
-
"./_field_/inputnumber/index.ts": () => import("./index-
|
|
1116
|
-
"./_field_/select/index.ts": () => import("./index-
|
|
1117
|
-
"./_field_/sign/index.ts": () => import("./index-
|
|
1118
|
-
"./_field_/switch/index.ts": () => import("./index-
|
|
1119
|
-
"./_field_/textarea/index.ts": () => import("./index-
|
|
1120
|
-
"./_field_/timepicker/index.ts": () => import("./index-
|
|
1121
|
-
"./_field_/trace/index.ts": () => import("./index-
|
|
1122
|
-
"./_field_/upload-file/index.ts": () => import("./index-
|
|
1123
|
-
"./_field_/upload-image/index.ts": () => import("./index-
|
|
1124
|
-
"./_field_/userpicker/index.ts": () => import("./index-
|
|
1125
|
-
"./_widget_/barcode/index.ts": () => import("./index-
|
|
1126
|
-
"./_widget_/combine-fields/index.ts": () => import("./index-
|
|
1127
|
-
"./_widget_/diagonal/index.ts": () => import("./index-
|
|
1128
|
-
"./_widget_/dyn-value/index.ts": () => import("./index-
|
|
1129
|
-
"./_widget_/image/index.ts": () => import("./index-
|
|
1130
|
-
"./_widget_/line/index.ts": () => import("./index-
|
|
1131
|
-
"./_widget_/power/index.ts": () => import("./index-
|
|
1132
|
-
"./_widget_/qrcode/index.ts": () => import("./index-
|
|
1133
|
-
"./_widget_/ro/index.ts": () => import("./index-
|
|
1134
|
-
"./_widget_/serialnumber/index.ts": () => import("./index-
|
|
1135
|
-
"./_widget_/sub-table/index.ts": () => import("./index-
|
|
1136
|
-
"./_widget_/timediff/index.ts": () => import("./index-
|
|
1137
|
-
"./paper/index.ts": () => import("./index-
|
|
1138
|
-
"./td/index.ts": () => import("./index-
|
|
1139
|
-
"./tr/index.ts": () => import("./index-
|
|
1109
|
+
"./_field_/datepicker/index.ts": () => import("./index-i_eUK3Y_.js").then((m) => m["default"]),
|
|
1110
|
+
"./_field_/datetimepicker/index.ts": () => import("./index-C8iWIwYo.js").then((m) => m["default"]),
|
|
1111
|
+
"./_field_/department/index.ts": () => import("./index-Csg13q_7.js").then((m) => m["default"]),
|
|
1112
|
+
"./_field_/enum-select/index.ts": () => import("./index-BTAd2V7f.js").then((m) => m["default"]),
|
|
1113
|
+
"./_field_/input/index.ts": () => import("./index-iR4iHe5n.js").then((m) => m["default"]),
|
|
1114
|
+
"./_field_/inputdouble/index.ts": () => import("./index-CFkt2dM4.js").then((m) => m["default"]),
|
|
1115
|
+
"./_field_/inputnumber/index.ts": () => import("./index-XlAWg7sl.js").then((m) => m["default"]),
|
|
1116
|
+
"./_field_/select/index.ts": () => import("./index-B_0vyB6E.js").then((m) => m["default"]),
|
|
1117
|
+
"./_field_/sign/index.ts": () => import("./index-BrjJ30E6.js").then((m) => m["default"]),
|
|
1118
|
+
"./_field_/switch/index.ts": () => import("./index-CB8l6mFL.js").then((m) => m["default"]),
|
|
1119
|
+
"./_field_/textarea/index.ts": () => import("./index-DCE1_hqb.js").then((m) => m["default"]),
|
|
1120
|
+
"./_field_/timepicker/index.ts": () => import("./index-kn1q-2-D.js").then((m) => m["default"]),
|
|
1121
|
+
"./_field_/trace/index.ts": () => import("./index-Chy_3-Lj.js").then((m) => m["default"]),
|
|
1122
|
+
"./_field_/upload-file/index.ts": () => import("./index-Bo_OCoXR.js").then((m) => m["default"]),
|
|
1123
|
+
"./_field_/upload-image/index.ts": () => import("./index-C94OYngd.js").then((m) => m["default"]),
|
|
1124
|
+
"./_field_/userpicker/index.ts": () => import("./index-BHckv9v7.js").then((m) => m["default"]),
|
|
1125
|
+
"./_widget_/barcode/index.ts": () => import("./index-CHDwrHq2.js").then((m) => m["default"]),
|
|
1126
|
+
"./_widget_/combine-fields/index.ts": () => import("./index-2E2k77Mp.js").then((m) => m["default"]),
|
|
1127
|
+
"./_widget_/diagonal/index.ts": () => import("./index-DmC0_bvJ.js").then((m) => m["default"]),
|
|
1128
|
+
"./_widget_/dyn-value/index.ts": () => import("./index-BRTYgbpR.js").then((m) => m["default"]),
|
|
1129
|
+
"./_widget_/image/index.ts": () => import("./index-DWiYwa2w.js").then((m) => m["default"]),
|
|
1130
|
+
"./_widget_/line/index.ts": () => import("./index-BOx6PIQM.js").then((m) => m["default"]),
|
|
1131
|
+
"./_widget_/power/index.ts": () => import("./index-DhU0uktW.js").then((m) => m["default"]),
|
|
1132
|
+
"./_widget_/qrcode/index.ts": () => import("./index-CYt8frH_.js").then((m) => m["default"]),
|
|
1133
|
+
"./_widget_/ro/index.ts": () => import("./index-plkuJNfn.js").then((m) => m["default"]),
|
|
1134
|
+
"./_widget_/serialnumber/index.ts": () => import("./index-DvJkM2Bd.js").then((m) => m["default"]),
|
|
1135
|
+
"./_widget_/sub-table/index.ts": () => import("./index-BPI7rTC0.js").then((m) => m["default"]),
|
|
1136
|
+
"./_widget_/timediff/index.ts": () => import("./index-DvdsMdJa.js").then((m) => m["default"]),
|
|
1137
|
+
"./paper/index.ts": () => import("./index-74yt8jRE.js").then((m) => m["default"]),
|
|
1138
|
+
"./td/index.ts": () => import("./index-BO21uzcy.js").then((m) => m["default"]),
|
|
1139
|
+
"./tr/index.ts": () => import("./index-Bz8M9Mln.js").then((m) => m["default"])
|
|
1140
1140
|
});
|
|
1141
1141
|
return modules;
|
|
1142
1142
|
}
|
|
@@ -9002,6 +9002,23 @@ const useAllSpreadSheets = () => {
|
|
|
9002
9002
|
obj.subTableFieldMap = [...obj.subTableFieldMap, ...props2?.subTableFieldMap || []];
|
|
9003
9003
|
obj.subTable2DList = [...obj.subTable2DList, ...props2?.subTable2DList || []];
|
|
9004
9004
|
obj.checkTable2DList = [...obj.checkTable2DList, ...props2?.checkTable2DList || []];
|
|
9005
|
+
obj.subTableWidgetIds = [...obj.subTableWidgetIds, ...props2?.subTableWidgetIds || []];
|
|
9006
|
+
obj.materialConsumeTableList = [
|
|
9007
|
+
...obj.materialConsumeTableList,
|
|
9008
|
+
...props2?.materialConsumeTableList || []
|
|
9009
|
+
];
|
|
9010
|
+
obj.materialBalanceTableList = [
|
|
9011
|
+
...obj.materialBalanceTableList,
|
|
9012
|
+
...props2?.materialBalanceTableList || []
|
|
9013
|
+
];
|
|
9014
|
+
obj.sterilizeBatchTableList = [
|
|
9015
|
+
...obj.sterilizeBatchTableList,
|
|
9016
|
+
...props2?.sterilizeBatchTableList || []
|
|
9017
|
+
];
|
|
9018
|
+
obj.pretreatmentTableList = [
|
|
9019
|
+
...obj.pretreatmentTableList,
|
|
9020
|
+
...props2?.pretreatmentTableList || []
|
|
9021
|
+
];
|
|
9005
9022
|
obj.fixedTableFieldMap = {
|
|
9006
9023
|
...obj.fixedTableFieldMap,
|
|
9007
9024
|
...caculateRowIdx(props2?.fixedTableFieldMap || {}, s.startIndex * 1e4)
|
|
@@ -9020,7 +9037,12 @@ const useAllSpreadSheets = () => {
|
|
|
9020
9037
|
fixedTableFieldMap: {},
|
|
9021
9038
|
fixedTableLenMap: {},
|
|
9022
9039
|
subTable2DList: [],
|
|
9023
|
-
checkTable2DList: []
|
|
9040
|
+
checkTable2DList: [],
|
|
9041
|
+
subTableWidgetIds: [],
|
|
9042
|
+
materialConsumeTableList: [],
|
|
9043
|
+
materialBalanceTableList: [],
|
|
9044
|
+
sterilizeBatchTableList: [],
|
|
9045
|
+
pretreatmentTableList: []
|
|
9024
9046
|
}
|
|
9025
9047
|
);
|
|
9026
9048
|
const runJsonSheet = JSON.parse(activeSheet$1.value.runJson);
|
|
@@ -9183,6 +9205,21 @@ const _sfc_main$4p = /* @__PURE__ */ defineComponent({
|
|
|
9183
9205
|
type: { default: SubTableType.DEFAULT }
|
|
9184
9206
|
},
|
|
9185
9207
|
setup(__props) {
|
|
9208
|
+
const BUSINESS_REF_MODEL_TYPES = /* @__PURE__ */ new Set([
|
|
9209
|
+
onlineFormMasterModelTypeEnum.WAREHOUSE_IN_OUT,
|
|
9210
|
+
onlineFormMasterModelTypeEnum.MATERIAL_CONSUME,
|
|
9211
|
+
onlineFormMasterModelTypeEnum.MATERIAL_BALANCE,
|
|
9212
|
+
onlineFormMasterModelTypeEnum.STOCKTAKE,
|
|
9213
|
+
onlineFormMasterModelTypeEnum.ALLOCATE,
|
|
9214
|
+
onlineFormMasterModelTypeEnum.STERILIZE_BATCH,
|
|
9215
|
+
onlineFormMasterModelTypeEnum.PRETREATMENT_LIST
|
|
9216
|
+
]);
|
|
9217
|
+
const DATA_TABLE_TYPES = /* @__PURE__ */ new Set([
|
|
9218
|
+
SubTableType.DEFAULT,
|
|
9219
|
+
SubTableType.FIXED,
|
|
9220
|
+
SubTableType._2D,
|
|
9221
|
+
SubTableType.CHECK
|
|
9222
|
+
]);
|
|
9186
9223
|
const isInEDHR = computed(() => window.NocodeAdapter.stores?.appInfo?.value.suiteKey === "eDHR");
|
|
9187
9224
|
const props2 = __props;
|
|
9188
9225
|
const { subTableFieldModel: subTableFieldModel2, masterModel: masterModel2 } = useModelFields();
|
|
@@ -9217,6 +9254,13 @@ const _sfc_main$4p = /* @__PURE__ */ defineComponent({
|
|
|
9217
9254
|
if (props2.type === SubTableType.WAREHOUSE_IN_OUT) {
|
|
9218
9255
|
return item.field.refModelType === onlineFormMasterModelTypeEnum.WAREHOUSE_IN_OUT;
|
|
9219
9256
|
}
|
|
9257
|
+
if (DATA_TABLE_TYPES.has(props2.type)) {
|
|
9258
|
+
const refType = item.field.refModelType;
|
|
9259
|
+
if (props2.type === SubTableType.CHECK && refType === onlineFormMasterModelTypeEnum.INSPECTION) {
|
|
9260
|
+
return true;
|
|
9261
|
+
}
|
|
9262
|
+
return !refType || !BUSINESS_REF_MODEL_TYPES.has(refType);
|
|
9263
|
+
}
|
|
9220
9264
|
return true;
|
|
9221
9265
|
});
|
|
9222
9266
|
});
|
|
@@ -9770,6 +9814,7 @@ const config$2 = {
|
|
|
9770
9814
|
enableFormat: true,
|
|
9771
9815
|
autofillRules: [],
|
|
9772
9816
|
enableAutofill: false,
|
|
9817
|
+
enableAssocFilter: false,
|
|
9773
9818
|
displayFields: [],
|
|
9774
9819
|
searchable: false,
|
|
9775
9820
|
searchField: []
|
|
@@ -9816,7 +9861,7 @@ function asyncImportWidgetConfig() {
|
|
|
9816
9861
|
}
|
|
9817
9862
|
const widgetConfigMap = asyncImportWidgetConfig();
|
|
9818
9863
|
function asyncImportWidgetDesign$1() {
|
|
9819
|
-
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-design.vue": () => import("./agg-design-
|
|
9864
|
+
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-design.vue": () => import("./agg-design-B485eEtY.js"), "./boolean/boolean-design.vue": () => import("./boolean-design-CMY1NvJx.js"), "./cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "./date-time/date-time-design.vue": () => import("./date-time-design-DwDsnQbz.js"), "./decimal/decimal-design.vue": () => import("./decimal-design-BJbiiN7J.js"), "./double/double-design.vue": () => import("./double-design-DKS8QZ9M.js"), "./enum/enum-design.vue": () => import("./enum-design-BWcD5nJ8.js"), "./expression/expression-design.vue": () => import("./expression-design-D-t2dkee.js"), "./file/file-design.vue": () => import("./file-design-BfCxFUVB.js"), "./image/image-design.vue": () => import("./image-design-DP_erJjS.js"), "./integer/integer-design.vue": () => import("./integer-design-CT90qISw.js"), "./org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "./ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "./signature/signature-design.vue": () => import("./signature-design-7HumYOQU.js"), "./text/text-design.vue": () => import("./text-design-BvdLsdrT.js"), "./trace/trace-design.vue": () => import("./trace-design-Cz9oOcMi.js"), "./user/user-design.vue": () => import("./user-design-BRIV937X.js") });
|
|
9820
9865
|
const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
|
|
9821
9866
|
const mKey = path.match(/\/([a-z-]+)-design\.vue$/)?.[1];
|
|
9822
9867
|
if (mKey) {
|
|
@@ -9827,7 +9872,7 @@ function asyncImportWidgetDesign$1() {
|
|
|
9827
9872
|
return widgetDesignMap;
|
|
9828
9873
|
}
|
|
9829
9874
|
function asyncImportWidgetProps() {
|
|
9830
|
-
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-props.vue": () => import("./agg-props-
|
|
9875
|
+
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-props.vue": () => import("./agg-props-g6XDFjb9.js"), "./boolean/boolean-props.vue": () => import("./boolean-props-CXd_zo-H.js"), "./cell-widget-props.vue": () => Promise.resolve().then(() => cellWidgetProps), "./date-time/date-time-props.vue": () => import("./date-time-props-HkqTfmXs.js"), "./decimal/decimal-props.vue": () => import("./decimal-props-CRsHxz1d.js"), "./double/double-props.vue": () => import("./double-props-pw1mzMKu.js"), "./enum/enum-props.vue": () => import("./enum-props-BYEq0j1n.js"), "./expression/expression-props.vue": () => import("./expression-props-D7W_GSGq.js"), "./file/file-props.vue": () => import("./file-props-DYyaq1fr.js"), "./image/image-props.vue": () => import("./image-props-CF0qOMl7.js"), "./integer/integer-props.vue": () => import("./integer-props-BFcLFx5P.js"), "./org/org-props.vue": () => import("./org-props-CGSr5vBf.js"), "./ref/ref-props.vue": () => import("./ref-props-lNA1ikVB.js"), "./signature/signature-props.vue": () => import("./signature-props-CB6C305K.js"), "./text/text-props.vue": () => import("./text-props-B-1Pd7T_.js"), "./trace/trace-props.vue": () => import("./trace-props-Bd7RIYGS.js"), "./user/user-props.vue": () => import("./user-props-DZjVNaGe.js") });
|
|
9831
9876
|
const widgetPropsMap = Object.keys(modules).reduce((map2, path) => {
|
|
9832
9877
|
const mKey = path.match(/\/([a-z-]+)-props\.vue$/)?.[1];
|
|
9833
9878
|
if (mKey) {
|
|
@@ -9839,7 +9884,7 @@ function asyncImportWidgetProps() {
|
|
|
9839
9884
|
return widgetPropsMap;
|
|
9840
9885
|
}
|
|
9841
9886
|
function asyncImportWidgetStyle() {
|
|
9842
|
-
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-style.vue": () => import("./agg-style-
|
|
9887
|
+
const modules = /* @__PURE__ */ Object.assign({ "./agg/agg-style.vue": () => import("./agg-style-zIhxDQI2.js"), "./boolean/boolean-style.vue": () => import("./boolean-style-Bwn-w6Vd.js"), "./cell-widget-style.vue": () => Promise.resolve().then(() => cellWidgetStyle), "./date-time/date-time-style.vue": () => import("./date-time-style-C6mVoPbF.js"), "./decimal/decimal-style.vue": () => import("./decimal-style-DO4ROgq5.js"), "./double/double-style.vue": () => import("./double-style-DtsZ-k10.js"), "./enum/enum-style.vue": () => import("./enum-style-C4gEWyWv.js"), "./expression/expression-style.vue": () => import("./expression-style-CYgNzm7c.js"), "./file/file-style.vue": () => import("./file-style-_hRTBdtu.js"), "./image/image-style.vue": () => import("./image-style-DOseQ6-D.js"), "./integer/integer-style.vue": () => import("./integer-style-Dnermx3g.js"), "./org/org-style.vue": () => import("./org-style-CXs2pG6E.js"), "./ref/ref-style.vue": () => import("./ref-style-sATuD-j-.js"), "./signature/signature-style.vue": () => import("./signature-style-CriOvfEO.js"), "./text/text-style.vue": () => import("./text-style-Dc1qKOif.js"), "./trace/trace-style.vue": () => import("./trace-style-BEJyw_H3.js"), "./user/user-style.vue": () => import("./user-style-ByfzJ6fg.js") });
|
|
9843
9888
|
const widgetStyleMap = Object.keys(modules).reduce((map2, path) => {
|
|
9844
9889
|
const mKey = path.match(/\/([a-z-]+)-style\.vue$/)?.[1];
|
|
9845
9890
|
if (mKey) {
|
|
@@ -11521,10 +11566,24 @@ function useSpreadSheet() {
|
|
|
11521
11566
|
t2 = y;
|
|
11522
11567
|
l = x;
|
|
11523
11568
|
}
|
|
11524
|
-
const
|
|
11569
|
+
const cellInfo = judgeCellInfo(l, t2);
|
|
11570
|
+
const bindField = { ...data };
|
|
11571
|
+
const subTable = cellInfo?.dynamicTable || cellInfo?.fixedTable;
|
|
11572
|
+
if (subTable) {
|
|
11573
|
+
if (!bindField.subFieldKey && cellInfo?.refFieldKey) {
|
|
11574
|
+
bindField.subFieldKey = cellInfo.refFieldKey;
|
|
11575
|
+
}
|
|
11576
|
+
if (!bindField.subModelKey && cellInfo?.modelKey !== doc.value.modelKey) {
|
|
11577
|
+
bindField.subModelKey = cellInfo.modelKey;
|
|
11578
|
+
}
|
|
11579
|
+
if (!bindField.subModelType && subTable.type) {
|
|
11580
|
+
bindField.subModelType = subTable.type;
|
|
11581
|
+
}
|
|
11582
|
+
}
|
|
11583
|
+
const fieldWidget = getFieldWidget2(bindField);
|
|
11525
11584
|
const content = {
|
|
11526
11585
|
type: CellType.Field,
|
|
11527
|
-
fieldMeta:
|
|
11586
|
+
fieldMeta: bindField,
|
|
11528
11587
|
fieldWidget
|
|
11529
11588
|
};
|
|
11530
11589
|
const cell = paper$3.value.cells[t2 - 1][l - 1];
|
|
@@ -11869,6 +11928,10 @@ function useSpreadSheet() {
|
|
|
11869
11928
|
if (currentCellInfo.modelKey !== doc.value.modelKey) {
|
|
11870
11929
|
bindField.subFieldKey = currentCellInfo.refFieldKey;
|
|
11871
11930
|
bindField.subModelKey = currentCellInfo.modelKey;
|
|
11931
|
+
const subTable = currentCellInfo.dynamicTable || currentCellInfo.fixedTable;
|
|
11932
|
+
if (subTable?.type) {
|
|
11933
|
+
bindField.subModelType = subTable.type;
|
|
11934
|
+
}
|
|
11872
11935
|
}
|
|
11873
11936
|
addField(field);
|
|
11874
11937
|
bindFieldToCell(bindField, opts.x, opts.y);
|
|
@@ -11910,13 +11973,6 @@ function useSpreadSheet() {
|
|
|
11910
11973
|
message.error("只有绑定字段的单元格支持自动设置宽度");
|
|
11911
11974
|
return;
|
|
11912
11975
|
}
|
|
11913
|
-
if (cell.style) {
|
|
11914
|
-
const isWrap = cell.style["word-break"] === "break-all" || cell.style["white-space"] === "pre-line";
|
|
11915
|
-
if (isWrap) {
|
|
11916
|
-
message.error("换行的单元格无法自动计算并设置宽度");
|
|
11917
|
-
return;
|
|
11918
|
-
}
|
|
11919
|
-
}
|
|
11920
11976
|
let cellWidth = paper$3.value.cols[x - 1].width;
|
|
11921
11977
|
const mergeCell = findMergeCell(x, y);
|
|
11922
11978
|
if (mergeCell) {
|
|
@@ -11945,13 +12001,6 @@ function useSpreadSheet() {
|
|
|
11945
12001
|
message.error("只有绑定字段的单元格支持自动设置高度");
|
|
11946
12002
|
return;
|
|
11947
12003
|
}
|
|
11948
|
-
if (cell.style) {
|
|
11949
|
-
const isWrap = cell.style["word-break"] === "break-all" || cell.style["white-space"] === "pre-line";
|
|
11950
|
-
if (isWrap) {
|
|
11951
|
-
message.error("换行的单元格无法自动计算并设置高度");
|
|
11952
|
-
return;
|
|
11953
|
-
}
|
|
11954
|
-
}
|
|
11955
12004
|
let cellHeight = paper$3.value.rows[y - 1].height;
|
|
11956
12005
|
const mergeCell = findMergeCell(x, y);
|
|
11957
12006
|
if (mergeCell) {
|
|
@@ -13019,68 +13068,86 @@ const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
13019
13068
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13020
13069
|
const _hoisted_1$2u = { class: "column-name column-name--top" };
|
|
13021
13070
|
const _hoisted_2$1G = { class: "column-name column-name--bottom" };
|
|
13022
|
-
const _hoisted_3$1m =
|
|
13071
|
+
const _hoisted_3$1m = ["x1", "y1", "x2", "y2"];
|
|
13072
|
+
const _hoisted_4$_ = {
|
|
13073
|
+
key: 0,
|
|
13074
|
+
class: "column-name column-name--middle"
|
|
13075
|
+
};
|
|
13023
13076
|
const _sfc_main$4g = /* @__PURE__ */ defineComponent({
|
|
13024
13077
|
__name: "diagonal",
|
|
13025
13078
|
props: {
|
|
13026
13079
|
value: { default: () => [] },
|
|
13027
13080
|
size: { default: 2 },
|
|
13028
|
-
direction: { default: DiagonalDirection.Forward }
|
|
13081
|
+
direction: { default: DiagonalDirection.Forward },
|
|
13082
|
+
vertex: {}
|
|
13029
13083
|
},
|
|
13030
13084
|
setup(__props) {
|
|
13031
13085
|
const ns = useNamespace("diagonal");
|
|
13086
|
+
const props2 = __props;
|
|
13087
|
+
const rootClass = computed(() => {
|
|
13088
|
+
if (props2.size === 2) {
|
|
13089
|
+
return [ns.b(), ns.m(props2.direction)];
|
|
13090
|
+
}
|
|
13091
|
+
return [ns.b(), ns.m(props2.vertex)];
|
|
13092
|
+
});
|
|
13093
|
+
const lines = computed(() => {
|
|
13094
|
+
if (props2.size === 2) {
|
|
13095
|
+
return props2.direction === DiagonalDirection.Backward ? [{ x1: "100%", y1: "0", x2: "0", y2: "100%" }] : [{ x1: "0", y1: "0", x2: "100%", y2: "100%" }];
|
|
13096
|
+
}
|
|
13097
|
+
switch (props2.vertex) {
|
|
13098
|
+
case DiagonalVertex.TopRight:
|
|
13099
|
+
return [
|
|
13100
|
+
{ x1: "100%", y1: "0", x2: "0", y2: "40%" },
|
|
13101
|
+
{ x1: "100%", y1: "0", x2: "60%", y2: "100%" }
|
|
13102
|
+
];
|
|
13103
|
+
case DiagonalVertex.BottomLeft:
|
|
13104
|
+
return [
|
|
13105
|
+
{ x1: "0", y1: "100%", x2: "100%", y2: "60%" },
|
|
13106
|
+
{ x1: "0", y1: "100%", x2: "40%", y2: "0" }
|
|
13107
|
+
];
|
|
13108
|
+
case DiagonalVertex.BottomRight:
|
|
13109
|
+
return [
|
|
13110
|
+
{ x1: "40%", y1: "0", x2: "100%", y2: "100%" },
|
|
13111
|
+
{ x1: "0", y1: "40%", x2: "100%", y2: "100%" }
|
|
13112
|
+
];
|
|
13113
|
+
case DiagonalVertex.TopLeft:
|
|
13114
|
+
default:
|
|
13115
|
+
return [
|
|
13116
|
+
{ x1: "0", y1: "0", x2: "100%", y2: "40%" },
|
|
13117
|
+
{ x1: "0", y1: "0", x2: "40%", y2: "100%" }
|
|
13118
|
+
];
|
|
13119
|
+
}
|
|
13120
|
+
});
|
|
13032
13121
|
return (_ctx, _cache) => {
|
|
13033
13122
|
return openBlock(), createElementBlock("div", {
|
|
13034
|
-
class: normalizeClass(["absolute top-0px left-0px h-full w-full",
|
|
13123
|
+
class: normalizeClass(["absolute top-0px left-0px h-full w-full", rootClass.value])
|
|
13035
13124
|
}, [
|
|
13036
13125
|
createElementVNode("span", _hoisted_1$2u, toDisplayString(__props.value[0]), 1),
|
|
13037
13126
|
createElementVNode("span", _hoisted_2$1G, toDisplayString(__props.value[2]), 1),
|
|
13038
|
-
|
|
13039
|
-
key: 0,
|
|
13127
|
+
(openBlock(), createElementBlock("svg", {
|
|
13040
13128
|
class: normalizeClass(unref(ns).e("img")),
|
|
13041
13129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13042
13130
|
width: "100%",
|
|
13043
13131
|
height: "100%"
|
|
13044
|
-
}, [
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
}, null, -1)
|
|
13053
|
-
])], 2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13054
|
-
(openBlock(), createElementBlock("svg", {
|
|
13055
|
-
class: normalizeClass(unref(ns).e("img")),
|
|
13056
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13057
|
-
width: "100%",
|
|
13058
|
-
height: "100%"
|
|
13059
|
-
}, [..._cache[1] || (_cache[1] = [
|
|
13060
|
-
createElementVNode("line", {
|
|
13061
|
-
x1: "40%",
|
|
13062
|
-
y1: "0",
|
|
13063
|
-
x2: "100%",
|
|
13064
|
-
y2: "100%",
|
|
13065
|
-
stroke: "black",
|
|
13066
|
-
"stroke-width": "1"
|
|
13067
|
-
}, null, -1),
|
|
13068
|
-
createElementVNode("line", {
|
|
13069
|
-
x1: "0",
|
|
13070
|
-
y1: "40%",
|
|
13071
|
-
x2: "100%",
|
|
13072
|
-
y2: "100%",
|
|
13132
|
+
}, [
|
|
13133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(lines.value, (line, index2) => {
|
|
13134
|
+
return openBlock(), createElementBlock("line", {
|
|
13135
|
+
key: index2,
|
|
13136
|
+
x1: line.x1,
|
|
13137
|
+
y1: line.y1,
|
|
13138
|
+
x2: line.x2,
|
|
13139
|
+
y2: line.y2,
|
|
13073
13140
|
stroke: "black",
|
|
13074
13141
|
"stroke-width": "1"
|
|
13075
|
-
}, null,
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
],
|
|
13142
|
+
}, null, 8, _hoisted_3$1m);
|
|
13143
|
+
}), 128))
|
|
13144
|
+
], 2)),
|
|
13145
|
+
__props.size === 3 ? (openBlock(), createElementBlock("span", _hoisted_4$_, toDisplayString(__props.value[1]), 1)) : createCommentVNode("", true)
|
|
13079
13146
|
], 2);
|
|
13080
13147
|
};
|
|
13081
13148
|
}
|
|
13082
13149
|
});
|
|
13083
|
-
const Diagonal = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["__scopeId", "data-v-
|
|
13150
|
+
const Diagonal = /* @__PURE__ */ _export_sfc(_sfc_main$4g, [["__scopeId", "data-v-07498761"]]);
|
|
13084
13151
|
const _sfc_main$4f = /* @__PURE__ */ defineComponent({
|
|
13085
13152
|
__name: "diagonal-render",
|
|
13086
13153
|
props: {
|
|
@@ -13105,12 +13172,21 @@ const _sfc_main$4f = /* @__PURE__ */ defineComponent({
|
|
|
13105
13172
|
const names = computed(() => {
|
|
13106
13173
|
return [0, 1, 2].map((i) => getNameByIndex(i));
|
|
13107
13174
|
});
|
|
13175
|
+
const resolvedVertex = computed(
|
|
13176
|
+
() => resolveDiagonalVertex(
|
|
13177
|
+
props2.widget.size,
|
|
13178
|
+
props2.widget.direction,
|
|
13179
|
+
props2.widget.vertex,
|
|
13180
|
+
"vertex" in props2.widget
|
|
13181
|
+
)
|
|
13182
|
+
);
|
|
13108
13183
|
return (_ctx, _cache) => {
|
|
13109
13184
|
return openBlock(), createBlock(Diagonal, {
|
|
13110
13185
|
size: __props.widget.size,
|
|
13111
13186
|
direction: __props.widget.direction,
|
|
13187
|
+
vertex: resolvedVertex.value,
|
|
13112
13188
|
value: names.value
|
|
13113
|
-
}, null, 8, ["size", "direction", "value"]);
|
|
13189
|
+
}, null, 8, ["size", "direction", "vertex", "value"]);
|
|
13114
13190
|
};
|
|
13115
13191
|
}
|
|
13116
13192
|
});
|
|
@@ -13676,7 +13752,7 @@ function asyncImportWidgetConfigList() {
|
|
|
13676
13752
|
return widgetConfigList;
|
|
13677
13753
|
}
|
|
13678
13754
|
function asyncImportWidgetDesign() {
|
|
13679
|
-
const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/agg/agg-design.vue": () => import("./agg-design-
|
|
13755
|
+
const modules = /* @__PURE__ */ Object.assign({ "../__cell_widgets__/agg/agg-design.vue": () => import("./agg-design-B485eEtY.js"), "../__cell_widgets__/boolean/boolean-design.vue": () => import("./boolean-design-CMY1NvJx.js"), "../__cell_widgets__/cell-widget-design.vue": () => Promise.resolve().then(() => cellWidgetDesign), "../__cell_widgets__/date-time/date-time-design.vue": () => import("./date-time-design-DwDsnQbz.js"), "../__cell_widgets__/decimal/decimal-design.vue": () => import("./decimal-design-BJbiiN7J.js"), "../__cell_widgets__/double/double-design.vue": () => import("./double-design-DKS8QZ9M.js"), "../__cell_widgets__/enum/enum-design.vue": () => import("./enum-design-BWcD5nJ8.js"), "../__cell_widgets__/expression/expression-design.vue": () => import("./expression-design-D-t2dkee.js"), "../__cell_widgets__/file/file-design.vue": () => import("./file-design-BfCxFUVB.js"), "../__cell_widgets__/image/image-design.vue": () => import("./image-design-DP_erJjS.js"), "../__cell_widgets__/integer/integer-design.vue": () => import("./integer-design-CT90qISw.js"), "../__cell_widgets__/org/org-design.vue": () => import("./org-design-DEibx7uD.js"), "../__cell_widgets__/ref/ref-design.vue": () => import("./ref-design-C7LbDVQz.js"), "../__cell_widgets__/signature/signature-design.vue": () => import("./signature-design-7HumYOQU.js"), "../__cell_widgets__/text/text-design.vue": () => import("./text-design-BvdLsdrT.js"), "../__cell_widgets__/trace/trace-design.vue": () => import("./trace-design-Cz9oOcMi.js"), "../__cell_widgets__/user/user-design.vue": () => import("./user-design-BRIV937X.js"), "./barcode/barcode-design.vue": () => import("./barcode-design-Cw3ChYzU.js"), "./diagonal/diagonal-design.vue": () => import("./diagonal-design-DSI944Jp.js"), "./image/image-design.vue": () => import("./image-design-B8Riz960.js"), "./line/line-design.vue": () => Promise.resolve().then(() => lineDesign), "./pagination/pagination-design.vue": () => import("./pagination-design-Dy8hlT-1.js"), "./paper-widget-design.vue": () => import("./paper-widget-design-D6SgvBa5.js"), "./power/power-design.vue": () => Promise.resolve().then(() => powerDesign), "./qrcode/qrcode-design.vue": () => import("./qrcode-design-Cbqb-yWl.js"), "./rangelimit/rangelimit-design.vue": () => Promise.resolve().then(() => rangelimitDesign), "./serialnumber/serialnumber-design.vue": () => import("./serialnumber-design-yaRfMsU0.js"), "./text/text-design.vue": () => import("./text-design-CaNDnT6K.js"), "./timediff/timediff-design.vue": () => import("./timediff-design-VY2vmzMg.js") });
|
|
13680
13756
|
const widgetDesignMap = Object.keys(modules).reduce((map2, path) => {
|
|
13681
13757
|
const mKey = path.match(/\/([a-z]+)-design\.vue$/)?.[1];
|
|
13682
13758
|
if (mKey) {
|
|
@@ -15898,7 +15974,7 @@ const _hoisted_3$1i = ["width"];
|
|
|
15898
15974
|
const _hoisted_4$X = ["data-y", "height"];
|
|
15899
15975
|
const _hoisted_5$I = { style: { "position": "relative" } };
|
|
15900
15976
|
const _hoisted_6$x = ["onMouseenter"];
|
|
15901
|
-
const _hoisted_7$
|
|
15977
|
+
const _hoisted_7$m = ["onClick"];
|
|
15902
15978
|
const _sfc_main$3M = /* @__PURE__ */ defineComponent({
|
|
15903
15979
|
__name: "table-y",
|
|
15904
15980
|
setup(__props) {
|
|
@@ -15975,7 +16051,7 @@ const _sfc_main$3M = /* @__PURE__ */ defineComponent({
|
|
|
15975
16051
|
createElementVNode("i", {
|
|
15976
16052
|
class: "iconfont icon-tianjia hover-icon",
|
|
15977
16053
|
onClick: (e) => addRow(e, rowIndex + 1)
|
|
15978
|
-
}, null, 8, _hoisted_7$
|
|
16054
|
+
}, null, 8, _hoisted_7$m)
|
|
15979
16055
|
], 42, _hoisted_6$x)
|
|
15980
16056
|
]),
|
|
15981
16057
|
createElementVNode("td", {
|
|
@@ -17221,8 +17297,8 @@ const _hoisted_3$1b = { style: {
|
|
|
17221
17297
|
const _hoisted_4$S = { class: "color-picker-middle" };
|
|
17222
17298
|
const _hoisted_5$E = { style: { "flex": "auto" } };
|
|
17223
17299
|
const _hoisted_6$v = { class: "color-picker-diamond" };
|
|
17224
|
-
const _hoisted_7$
|
|
17225
|
-
const _hoisted_8$
|
|
17300
|
+
const _hoisted_7$l = { class: "color-picker-value" };
|
|
17301
|
+
const _hoisted_8$f = { class: "hex" };
|
|
17226
17302
|
const _hoisted_9$a = ["value"];
|
|
17227
17303
|
const _hoisted_10$9 = { class: "rgba-r" };
|
|
17228
17304
|
const _hoisted_11$6 = ["value"];
|
|
@@ -17667,8 +17743,8 @@ const _sfc_main$3z = /* @__PURE__ */ defineComponent({
|
|
|
17667
17743
|
}, null, 4)
|
|
17668
17744
|
])
|
|
17669
17745
|
]),
|
|
17670
|
-
createElementVNode("div", _hoisted_7$
|
|
17671
|
-
createElementVNode("div", _hoisted_8$
|
|
17746
|
+
createElementVNode("div", _hoisted_7$l, [
|
|
17747
|
+
createElementVNode("div", _hoisted_8$f, [
|
|
17672
17748
|
createElementVNode("label", null, [
|
|
17673
17749
|
createElementVNode("input", {
|
|
17674
17750
|
value: colorObj.value.hex8,
|
|
@@ -17934,8 +18010,8 @@ const _hoisted_3$1a = { class: "designer__toolbar__left__second" };
|
|
|
17934
18010
|
const _hoisted_4$R = { class: "second__top" };
|
|
17935
18011
|
const _hoisted_5$D = { class: "tool--dropdown" };
|
|
17936
18012
|
const _hoisted_6$u = { class: "flex items-center text-14px" };
|
|
17937
|
-
const _hoisted_7$
|
|
17938
|
-
const _hoisted_8$
|
|
18013
|
+
const _hoisted_7$k = { class: "tool--dropdown" };
|
|
18014
|
+
const _hoisted_8$e = { class: "tool--dropdown" };
|
|
17939
18015
|
const _hoisted_9$9 = { class: "designer__toolbar__left__third" };
|
|
17940
18016
|
const _hoisted_10$8 = ["onClick"];
|
|
17941
18017
|
const _hoisted_11$5 = { class: "tool--dropdown tool--dropdown-expand" };
|
|
@@ -18290,7 +18366,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
|
|
|
18290
18366
|
_: 1
|
|
18291
18367
|
})
|
|
18292
18368
|
]),
|
|
18293
|
-
createElementVNode("div", _hoisted_7$
|
|
18369
|
+
createElementVNode("div", _hoisted_7$k, [
|
|
18294
18370
|
createElementVNode("i", null, [
|
|
18295
18371
|
_cache[21] || (_cache[21] = createElementVNode("i", { class: "iconfont icon-wenziyanse" }, null, -1)),
|
|
18296
18372
|
createElementVNode("div", {
|
|
@@ -18317,7 +18393,7 @@ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
|
|
|
18317
18393
|
_: 1
|
|
18318
18394
|
}, 8, ["color"])
|
|
18319
18395
|
]),
|
|
18320
|
-
createElementVNode("div", _hoisted_8$
|
|
18396
|
+
createElementVNode("div", _hoisted_8$e, [
|
|
18321
18397
|
createElementVNode("i", null, [
|
|
18322
18398
|
_cache[23] || (_cache[23] = createElementVNode("i", { class: "iconfont icon-tianchongyanse relative left-1px" }, null, -1)),
|
|
18323
18399
|
createElementVNode("div", {
|
|
@@ -19751,6 +19827,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
19751
19827
|
disabled: true
|
|
19752
19828
|
};
|
|
19753
19829
|
};
|
|
19830
|
+
const isAssocField = (item) => {
|
|
19831
|
+
return [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF, FIELD_TYPE.MODEL_RELATION].includes(item.type) || item.bizType === FIELD_TYPE.MODEL_RELATION;
|
|
19832
|
+
};
|
|
19754
19833
|
const getFieldName = (item) => {
|
|
19755
19834
|
return item.highlightName ? createVNode("span", {
|
|
19756
19835
|
"class": "field-title",
|
|
@@ -19858,9 +19937,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
19858
19937
|
bizType: item.bizType,
|
|
19859
19938
|
...subTableObj
|
|
19860
19939
|
};
|
|
19861
|
-
const isRef2 =
|
|
19940
|
+
const isRef2 = isAssocField(item);
|
|
19862
19941
|
const isSubObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
|
|
19863
|
-
const children =
|
|
19942
|
+
const children = isSubObjectType && !last2 ? recursive(item.bindInfo, {
|
|
19864
19943
|
modelLinks: [...newModelLinks],
|
|
19865
19944
|
fieldLinks: [...newFieldLinks],
|
|
19866
19945
|
fieldKey: item.key,
|
|
@@ -19912,9 +19991,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
19912
19991
|
bizType: item.bizType,
|
|
19913
19992
|
...subTableObj
|
|
19914
19993
|
};
|
|
19915
|
-
const isRef2 =
|
|
19994
|
+
const isRef2 = isAssocField(item);
|
|
19916
19995
|
const isObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
|
|
19917
|
-
const children =
|
|
19996
|
+
const children = isObjectType ? recursive(item.bindInfo, {
|
|
19918
19997
|
modelLinks,
|
|
19919
19998
|
fieldLinks,
|
|
19920
19999
|
fieldKey: item.key,
|
|
@@ -19937,49 +20016,6 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
19937
20016
|
console.log(options, "renderOptions:FieldList");
|
|
19938
20017
|
return options;
|
|
19939
20018
|
};
|
|
19940
|
-
const recursiveList = (originModelKey, {
|
|
19941
|
-
modelLinks,
|
|
19942
|
-
fieldLinks,
|
|
19943
|
-
subTableObj,
|
|
19944
|
-
last: last2 = false
|
|
19945
|
-
}) => {
|
|
19946
|
-
if (!originModelKey) return [];
|
|
19947
|
-
const originModelMeta = modelMetaMap2.value[originModelKey];
|
|
19948
|
-
if (isEmpty(originModelMeta)) return [];
|
|
19949
|
-
const list = [];
|
|
19950
|
-
originModelMeta.fields.filter(filterFieldInfo).forEach((item) => {
|
|
19951
|
-
const newModelLinks = [...modelLinks, originModelKey];
|
|
19952
|
-
const newFieldLinks = [...fieldLinks, item.key];
|
|
19953
|
-
const fieldCodeChain = {
|
|
19954
|
-
field: item.key,
|
|
19955
|
-
fieldType: item.type,
|
|
19956
|
-
model: item.modelKey,
|
|
19957
|
-
/** 模型链路 */
|
|
19958
|
-
modelLink: [...newModelLinks],
|
|
19959
|
-
/** 字段链路 */
|
|
19960
|
-
fieldLink: [...newFieldLinks],
|
|
19961
|
-
isFieldModel: true,
|
|
19962
|
-
createType: item.createType,
|
|
19963
|
-
refModelKey: item.bindInfo,
|
|
19964
|
-
belongingObject: item.belongingObject,
|
|
19965
|
-
bizType: item.bizType,
|
|
19966
|
-
...subTableObj
|
|
19967
|
-
};
|
|
19968
|
-
const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
|
|
19969
|
-
const children = isRef2 && !last2 ? recursiveList(item.bindInfo, {
|
|
19970
|
-
modelLinks: newModelLinks,
|
|
19971
|
-
fieldLinks: newFieldLinks,
|
|
19972
|
-
subTableObj,
|
|
19973
|
-
last: true
|
|
19974
|
-
}) : [];
|
|
19975
|
-
list.push({
|
|
19976
|
-
...fieldCodeChain,
|
|
19977
|
-
name: item.name
|
|
19978
|
-
});
|
|
19979
|
-
list.push(children);
|
|
19980
|
-
});
|
|
19981
|
-
return list;
|
|
19982
|
-
};
|
|
19983
20019
|
const allFieldList = computed(() => {
|
|
19984
20020
|
const options = [];
|
|
19985
20021
|
if (!isEmpty(currentModelMeta.value)) {
|
|
@@ -20009,16 +20045,9 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
20009
20045
|
bizType: item.bizType,
|
|
20010
20046
|
...subTableObj
|
|
20011
20047
|
};
|
|
20012
|
-
const isRef2 = [FIELD_TYPE.REF, FIELD_TYPE.REF_MULTI, FIELD_TYPE.RDO_REF].includes(item.type);
|
|
20013
20048
|
const isObjectType = item.type === FIELD_TYPE.OBJECT_TYPE;
|
|
20014
20049
|
let children = [];
|
|
20015
|
-
if (
|
|
20016
|
-
children = recursiveList(item.bindInfo, {
|
|
20017
|
-
modelLinks,
|
|
20018
|
-
fieldLinks,
|
|
20019
|
-
subTableObj
|
|
20020
|
-
});
|
|
20021
|
-
} else if (isObjectType) {
|
|
20050
|
+
if (isObjectType) {
|
|
20022
20051
|
const objectChildFields = getObjectChildFields(item.key, modelKey);
|
|
20023
20052
|
children = objectChildFields.map((childItem) => {
|
|
20024
20053
|
const newFieldLinks = [...fieldLinks, childItem.key];
|
|
@@ -20069,7 +20098,10 @@ const ToolkitContentFields = /* @__PURE__ */ defineComponent({
|
|
|
20069
20098
|
});
|
|
20070
20099
|
const renderSearch = () => {
|
|
20071
20100
|
return searchFieldList.value.map((item) => {
|
|
20072
|
-
const isRef2 =
|
|
20101
|
+
const isRef2 = isAssocField({
|
|
20102
|
+
type: item.fieldType,
|
|
20103
|
+
bizType: item.bizType
|
|
20104
|
+
});
|
|
20073
20105
|
const fieldPathChains = getFieldMeta2({
|
|
20074
20106
|
...item,
|
|
20075
20107
|
modelLink: item.modelLink.join("."),
|
|
@@ -51303,7 +51335,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
|
|
|
51303
51335
|
});
|
|
51304
51336
|
const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main$3e, [["__scopeId", "data-v-463388f0"]]);
|
|
51305
51337
|
function asyncImportWidgetProp() {
|
|
51306
|
-
const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-
|
|
51338
|
+
const modules = /* @__PURE__ */ Object.assign({ "./widget-barcode.vue": () => import("./widget-barcode-BbzJjixG.js"), "./widget-diagonal.vue": () => import("./widget-diagonal-C0FmAvs-.js"), "./widget-image.vue": () => import("./widget-image-BGJik8Ks.js"), "./widget-line.vue": () => import("./widget-line-D30nzorH.js"), "./widget-pagination.vue": () => import("./widget-pagination-C3-oYS-M.js"), "./widget-power.vue": () => import("./widget-power-mKWuNVOP.js"), "./widget-qrcode.vue": () => import("./widget-qrcode-CIFK-3XT.js"), "./widget-rangelimit.vue": () => import("./widget-rangelimit-BRAlTG7f.js"), "./widget-serialnumber.vue": () => import("./widget-serialnumber-ZM6hEQKn.js"), "./widget-text.vue": () => import("./widget-text-BrswIiuT.js"), "./widget-timediff.vue": () => import("./widget-timediff-BGOWmPYX.js") });
|
|
51307
51339
|
const widgetPropMap = Object.keys(modules).reduce((map2, path) => {
|
|
51308
51340
|
const mKey = path.match(/\/widget-([a-z]+)\.vue$/)?.[1];
|
|
51309
51341
|
if (mKey) {
|
|
@@ -52629,7 +52661,7 @@ const _hoisted_5$A = {
|
|
|
52629
52661
|
class: "ml5px text-[#c3c3c3]"
|
|
52630
52662
|
};
|
|
52631
52663
|
const _hoisted_6$t = ["onClick"];
|
|
52632
|
-
const _hoisted_7$
|
|
52664
|
+
const _hoisted_7$j = { class: "text-[#797A7D] bg-[#fff] p-4px mt-2px ell h26px" };
|
|
52633
52665
|
const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
52634
52666
|
__name: "cell-widget-dependency",
|
|
52635
52667
|
props: {
|
|
@@ -52804,7 +52836,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
|
|
|
52804
52836
|
_: 1
|
|
52805
52837
|
}, 8, ["title", "onConfirm"])
|
|
52806
52838
|
]),
|
|
52807
|
-
createElementVNode("div", _hoisted_7$
|
|
52839
|
+
createElementVNode("div", _hoisted_7$j, toDisplayString(configDependency.value[item]?.expressionStr || configDependency.value[item]?.expression), 1)
|
|
52808
52840
|
]);
|
|
52809
52841
|
}), 128))
|
|
52810
52842
|
])
|
|
@@ -57081,8 +57113,8 @@ const _hoisted_3$Y = { class: "rules-item rules-item-title" };
|
|
|
57081
57113
|
const _hoisted_4$L = { class: "title left" };
|
|
57082
57114
|
const _hoisted_5$y = { class: "title right" };
|
|
57083
57115
|
const _hoisted_6$r = { class: "rules-item-value" };
|
|
57084
|
-
const _hoisted_7$
|
|
57085
|
-
const _hoisted_8$
|
|
57116
|
+
const _hoisted_7$i = { class: "rules-item-middle" };
|
|
57117
|
+
const _hoisted_8$d = { class: "rules-item-value" };
|
|
57086
57118
|
const _hoisted_9$8 = { class: "rules-item-ope" };
|
|
57087
57119
|
const _hoisted_10$7 = ["onClick"];
|
|
57088
57120
|
const _sfc_main$2N = /* @__PURE__ */ defineComponent({
|
|
@@ -57229,8 +57261,8 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
|
|
|
57229
57261
|
_: 2
|
|
57230
57262
|
}, 1032, ["name", "rules"])
|
|
57231
57263
|
]),
|
|
57232
|
-
createElementVNode("div", _hoisted_7$
|
|
57233
|
-
createElementVNode("div", _hoisted_8$
|
|
57264
|
+
createElementVNode("div", _hoisted_7$i, toDisplayString(_ctx.$t("sys.edhr.mutualExclusion")), 1),
|
|
57265
|
+
createElementVNode("div", _hoisted_8$d, [
|
|
57234
57266
|
createVNode(_component_a_form_item, {
|
|
57235
57267
|
name: ["configList", i, "checkIds"],
|
|
57236
57268
|
rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
|
|
@@ -57291,11 +57323,11 @@ const _hoisted_3$X = { class: "color-[#212528] text-12px lh-[18px]" };
|
|
|
57291
57323
|
const _hoisted_4$K = { class: "color-[#212528] text-12px lh-[18px]" };
|
|
57292
57324
|
const _hoisted_5$x = { class: "flex justify-end" };
|
|
57293
57325
|
const _hoisted_6$q = { class: "flex justify-end" };
|
|
57294
|
-
const _hoisted_7$
|
|
57326
|
+
const _hoisted_7$h = {
|
|
57295
57327
|
key: 0,
|
|
57296
57328
|
class: "dynamic-table"
|
|
57297
57329
|
};
|
|
57298
|
-
const _hoisted_8$
|
|
57330
|
+
const _hoisted_8$c = { class: "dynamic-table__header" };
|
|
57299
57331
|
const _hoisted_9$7 = {
|
|
57300
57332
|
key: 1,
|
|
57301
57333
|
class: "flex justify-center color-[#bebdc7]"
|
|
@@ -57583,8 +57615,8 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
|
|
|
57583
57615
|
inline: false
|
|
57584
57616
|
}, {
|
|
57585
57617
|
default: withCtx(() => [
|
|
57586
|
-
unref(paper2).thead?.thName ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
57587
|
-
createElementVNode("div", _hoisted_8$
|
|
57618
|
+
unref(paper2).thead?.thName ? (openBlock(), createElementBlock("div", _hoisted_7$h, [
|
|
57619
|
+
createElementVNode("div", _hoisted_8$c, [
|
|
57588
57620
|
createElementVNode("span", null, toDisplayString(unref(paper2).thead?.thName), 1),
|
|
57589
57621
|
!unref(sheetReadonly2) ? (openBlock(), createElementBlock("i", {
|
|
57590
57622
|
key: 0,
|
|
@@ -57768,7 +57800,7 @@ const _hoisted_3$V = ["id"];
|
|
|
57768
57800
|
const _hoisted_4$I = { key: 0 };
|
|
57769
57801
|
const _hoisted_5$w = ["onMouseenter"];
|
|
57770
57802
|
const _hoisted_6$p = ["onClick"];
|
|
57771
|
-
const _hoisted_7$
|
|
57803
|
+
const _hoisted_7$g = ["onClick"];
|
|
57772
57804
|
const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
57773
57805
|
__name: "panel-paper-widget-group",
|
|
57774
57806
|
setup(__props) {
|
|
@@ -57875,7 +57907,7 @@ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
|
57875
57907
|
key: 0,
|
|
57876
57908
|
class: "iconfont icon-shanchu2",
|
|
57877
57909
|
onClick: withModifiers(($event) => handleRemovePaperWidget(widget2.id), ["stop"])
|
|
57878
|
-
}, null, 8, _hoisted_7$
|
|
57910
|
+
}, null, 8, _hoisted_7$g)) : createCommentVNode("", true)
|
|
57879
57911
|
], 42, _hoisted_5$w);
|
|
57880
57912
|
}), 128))
|
|
57881
57913
|
])
|
|
@@ -58139,8 +58171,8 @@ const _hoisted_3$T = { class: "readonly-text" };
|
|
|
58139
58171
|
const _hoisted_4$G = { class: "readonly-text" };
|
|
58140
58172
|
const _hoisted_5$v = { class: "readonly-text" };
|
|
58141
58173
|
const _hoisted_6$o = { class: "readonly-text" };
|
|
58142
|
-
const _hoisted_7$
|
|
58143
|
-
const _hoisted_8$
|
|
58174
|
+
const _hoisted_7$f = { class: "mt-12px text-12px color-[#252525]" };
|
|
58175
|
+
const _hoisted_8$b = { class: "color-[#3168EC]" };
|
|
58144
58176
|
const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
58145
58177
|
__name: "panel-fixed-table",
|
|
58146
58178
|
setup(__props) {
|
|
@@ -58295,9 +58327,9 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
|
58295
58327
|
]),
|
|
58296
58328
|
_: 1
|
|
58297
58329
|
}),
|
|
58298
|
-
createElementVNode("div", _hoisted_7$
|
|
58330
|
+
createElementVNode("div", _hoisted_7$f, [
|
|
58299
58331
|
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.currentlyFixed")) + " ", 1),
|
|
58300
|
-
createElementVNode("span", _hoisted_8$
|
|
58332
|
+
createElementVNode("span", _hoisted_8$b, toDisplayString(validCellCount.value), 1),
|
|
58301
58333
|
createTextVNode(" " + toDisplayString(_ctx.$t("sys.onlineForm.cells")), 1)
|
|
58302
58334
|
]),
|
|
58303
58335
|
cells.value.length ? (openBlock(), createBlock(FormItem, {
|
|
@@ -58729,7 +58761,7 @@ const getColumns = (orderKeys, isTree = false) => {
|
|
|
58729
58761
|
...baseColumnConfig,
|
|
58730
58762
|
treeNode: isTree && index2 === 0,
|
|
58731
58763
|
...col,
|
|
58732
|
-
slots: col
|
|
58764
|
+
slots: col?.slots ? { ...baseColumnConfig.slots, ...col.slots } : baseColumnConfig.slots
|
|
58733
58765
|
};
|
|
58734
58766
|
});
|
|
58735
58767
|
};
|
|
@@ -60125,8 +60157,8 @@ const _hoisted_3$L = { class: "actions" };
|
|
|
60125
60157
|
const _hoisted_4$A = ["onClick"];
|
|
60126
60158
|
const _hoisted_5$q = ["onClick"];
|
|
60127
60159
|
const _hoisted_6$l = { class: "ks-row-middle fieldrow mb5px" };
|
|
60128
|
-
const _hoisted_7$
|
|
60129
|
-
const _hoisted_8$
|
|
60160
|
+
const _hoisted_7$e = { class: "ks-col ks-row" };
|
|
60161
|
+
const _hoisted_8$a = { class: "min-w-86px flex-grow-1" };
|
|
60130
60162
|
const _hoisted_9$6 = { class: "min-w-86px flex-grow-1" };
|
|
60131
60163
|
const _hoisted_10$5 = ["onClick"];
|
|
60132
60164
|
const _sfc_main$2w = /* @__PURE__ */ defineComponent({
|
|
@@ -60251,8 +60283,8 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
|
|
|
60251
60283
|
item: withCtx(({ element: option2 }) => [
|
|
60252
60284
|
createElementVNode("div", _hoisted_6$l, [
|
|
60253
60285
|
_cache[3] || (_cache[3] = createElementVNode("i", { class: "icon-drag iconfont mr4px cursor-move text-[#C3C3C3] primary-gct-hover" }, null, -1)),
|
|
60254
|
-
createElementVNode("div", _hoisted_7$
|
|
60255
|
-
createElementVNode("div", _hoisted_8$
|
|
60286
|
+
createElementVNode("div", _hoisted_7$e, [
|
|
60287
|
+
createElementVNode("div", _hoisted_8$a, [
|
|
60256
60288
|
createVNode(_component_a_input, {
|
|
60257
60289
|
value: option2.text,
|
|
60258
60290
|
"onUpdate:value": ($event) => option2.text = $event,
|
|
@@ -60761,8 +60793,8 @@ const _hoisted_3$I = ["title"];
|
|
|
60761
60793
|
const _hoisted_4$y = { class: "w-50% pl-11px flex items-center justify-end" };
|
|
60762
60794
|
const _hoisted_5$o = ["title"];
|
|
60763
60795
|
const _hoisted_6$j = { class: "flex items-center" };
|
|
60764
|
-
const _hoisted_7$
|
|
60765
|
-
const _hoisted_8$
|
|
60796
|
+
const _hoisted_7$d = { class: "flex-grow-1 w-1px" };
|
|
60797
|
+
const _hoisted_8$9 = {
|
|
60766
60798
|
key: 0,
|
|
60767
60799
|
class: "params-item-card__children"
|
|
60768
60800
|
};
|
|
@@ -60814,7 +60846,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
60814
60846
|
_: 1
|
|
60815
60847
|
}),
|
|
60816
60848
|
createElementVNode("div", _hoisted_6$j, [
|
|
60817
|
-
createElementVNode("div", _hoisted_7$
|
|
60849
|
+
createElementVNode("div", _hoisted_7$d, [
|
|
60818
60850
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
60819
60851
|
]),
|
|
60820
60852
|
props2.enableCollapse ? (openBlock(), createElementBlock("div", {
|
|
@@ -60826,7 +60858,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
|
60826
60858
|
])], 2)) : createCommentVNode("", true)
|
|
60827
60859
|
]),
|
|
60828
60860
|
renderSlot(_ctx.$slots, "center", {}, void 0, true),
|
|
60829
|
-
props2.enableCollapse && collapse.value ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
60861
|
+
props2.enableCollapse && collapse.value ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
|
|
60830
60862
|
renderSlot(_ctx.$slots, "children", {}, void 0, true)
|
|
60831
60863
|
])) : createCommentVNode("", true)
|
|
60832
60864
|
]);
|
|
@@ -61189,8 +61221,8 @@ const _hoisted_3$E = { class: "flex justify-end" };
|
|
|
61189
61221
|
const _hoisted_4$x = { class: "flex justify-end" };
|
|
61190
61222
|
const _hoisted_5$n = { class: "flex justify-end" };
|
|
61191
61223
|
const _hoisted_6$i = { class: "flex justify-end" };
|
|
61192
|
-
const _hoisted_7$
|
|
61193
|
-
const _hoisted_8$
|
|
61224
|
+
const _hoisted_7$c = { class: "px-8px py-12px ai-tmpl-editor__border-top" };
|
|
61225
|
+
const _hoisted_8$8 = { class: "ai-tmpl-editor__preview-btn mt-12px" };
|
|
61194
61226
|
const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
61195
61227
|
__name: "ai-tmpl-editor",
|
|
61196
61228
|
props: {
|
|
@@ -61357,7 +61389,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
61357
61389
|
_: 1
|
|
61358
61390
|
}, 8, ["label"])) : createCommentVNode("", true)
|
|
61359
61391
|
]),
|
|
61360
|
-
createElementVNode("div", _hoisted_7$
|
|
61392
|
+
createElementVNode("div", _hoisted_7$c, [
|
|
61361
61393
|
createVNode(_component_a_button, {
|
|
61362
61394
|
type: "dashed",
|
|
61363
61395
|
class: "ai-tmpl-editor__add-param",
|
|
@@ -61401,7 +61433,7 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
|
61401
61433
|
createTextVNode(toDisplayString(previewPrompt.value), 1)
|
|
61402
61434
|
]),
|
|
61403
61435
|
default: withCtx(() => [
|
|
61404
|
-
createElementVNode("div", _hoisted_8$
|
|
61436
|
+
createElementVNode("div", _hoisted_8$8, [
|
|
61405
61437
|
_cache[10] || (_cache[10] = createElementVNode("i", { class: "gct-iconfont icon-yulantishici" }, null, -1)),
|
|
61406
61438
|
createTextVNode(toDisplayString(_ctx.$t("sys.onlineForm.previewFullPrompt")), 1)
|
|
61407
61439
|
])
|
|
@@ -64300,8 +64332,8 @@ const _hoisted_4$v = {
|
|
|
64300
64332
|
};
|
|
64301
64333
|
const _hoisted_5$m = ["onClick"];
|
|
64302
64334
|
const _hoisted_6$h = { key: 1 };
|
|
64303
|
-
const _hoisted_7$
|
|
64304
|
-
const _hoisted_8$
|
|
64335
|
+
const _hoisted_7$b = { class: "w50px ml10px" };
|
|
64336
|
+
const _hoisted_8$7 = { class: "mr3px" };
|
|
64305
64337
|
const _hoisted_9$5 = { class: "flex-1 ml-10px" };
|
|
64306
64338
|
const _hoisted_10$4 = { class: "w-80px ml-10px flex flex-none" };
|
|
64307
64339
|
const _hoisted_11$3 = { key: 0 };
|
|
@@ -64518,8 +64550,8 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
64518
64550
|
}, 8, ["value", "onUpdate:value", "placeholder", "onChange", "disabled"]), [
|
|
64519
64551
|
[vShow, item.valueType === unref(ValueTypeEnum).INPUT || __props.isChild]
|
|
64520
64552
|
]),
|
|
64521
|
-
withDirectives(createElementVNode("div", _hoisted_7$
|
|
64522
|
-
createElementVNode("span", _hoisted_8$
|
|
64553
|
+
withDirectives(createElementVNode("div", _hoisted_7$b, [
|
|
64554
|
+
createElementVNode("span", _hoisted_8$7, toDisplayString(_ctx.$t("sys.model.required")), 1),
|
|
64523
64555
|
createVNode(_component_a_checkbox, {
|
|
64524
64556
|
checked: item.required,
|
|
64525
64557
|
"onUpdate:checked": ($event) => item.required = $event,
|
|
@@ -65579,8 +65611,8 @@ const _hoisted_3$x = { class: "object-init-list__label" };
|
|
|
65579
65611
|
const _hoisted_4$r = ["title"];
|
|
65580
65612
|
const _hoisted_5$j = ["onClick"];
|
|
65581
65613
|
const _hoisted_6$e = { class: "object-init-list__meta" };
|
|
65582
|
-
const _hoisted_7$
|
|
65583
|
-
const _hoisted_8$
|
|
65614
|
+
const _hoisted_7$a = { class: "object-init-list__label" };
|
|
65615
|
+
const _hoisted_8$6 = { class: "object-init-list__value" };
|
|
65584
65616
|
const _hoisted_9$4 = { class: "object-init-list__actions" };
|
|
65585
65617
|
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
65586
65618
|
__name: "object-init-list",
|
|
@@ -65618,8 +65650,8 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
65618
65650
|
}, null, 8, _hoisted_5$j)
|
|
65619
65651
|
]),
|
|
65620
65652
|
createElementVNode("div", _hoisted_6$e, [
|
|
65621
|
-
createElementVNode("span", _hoisted_7$
|
|
65622
|
-
createElementVNode("span", _hoisted_8$
|
|
65653
|
+
createElementVNode("span", _hoisted_7$a, toDisplayString(_ctx.$t("sys.onlineForm.fieldType")) + ":", 1),
|
|
65654
|
+
createElementVNode("span", _hoisted_8$6, toDisplayString(__props.getObjectFieldTypeName(item.objectFieldMeta)), 1)
|
|
65623
65655
|
]),
|
|
65624
65656
|
createElementVNode("div", _hoisted_9$4, [
|
|
65625
65657
|
__props.hasValues(item) ? (openBlock(), createBlock(_component_a_button, {
|
|
@@ -66884,7 +66916,7 @@ const _hoisted_3$u = { class: "cell-textarea-modal-header" };
|
|
|
66884
66916
|
const _hoisted_4$p = { class: "cell-textarea-modal-title" };
|
|
66885
66917
|
const _hoisted_5$h = { class: "cell-textarea-modal-body" };
|
|
66886
66918
|
const _hoisted_6$d = ["placeholder", "maxlength"];
|
|
66887
|
-
const _hoisted_7$
|
|
66919
|
+
const _hoisted_7$9 = { class: "cell-textarea-modal-footer" };
|
|
66888
66920
|
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
66889
66921
|
__name: "cell-textarea",
|
|
66890
66922
|
props: {
|
|
@@ -67011,7 +67043,7 @@ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
|
67011
67043
|
[vModelText, modalValue.value]
|
|
67012
67044
|
])
|
|
67013
67045
|
]),
|
|
67014
|
-
createElementVNode("div", _hoisted_7$
|
|
67046
|
+
createElementVNode("div", _hoisted_7$9, [
|
|
67015
67047
|
createElementVNode("button", {
|
|
67016
67048
|
class: "cell-textarea-modal-btn cell-textarea-modal-btn-cancel",
|
|
67017
67049
|
onClick: onModalCancel
|
|
@@ -68542,10 +68574,11 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
|
68542
68574
|
const match = str.match(/\.(\d+)/);
|
|
68543
68575
|
return match ? match[1].length : 0;
|
|
68544
68576
|
};
|
|
68577
|
+
const stripNumberNoise = (raw) => raw.replace(/\$\s?|,|,|\s/g, "");
|
|
68545
68578
|
const formatterValue = (inputValue2) => {
|
|
68546
68579
|
let value = inputValue2?.toString();
|
|
68547
|
-
if (
|
|
68548
|
-
value = value
|
|
68580
|
+
if (value) {
|
|
68581
|
+
value = stripNumberNoise(value);
|
|
68549
68582
|
}
|
|
68550
68583
|
const currentValue = parseFloat(value);
|
|
68551
68584
|
if (isNaN(currentValue)) {
|
|
@@ -76912,7 +76945,7 @@ const _hoisted_4$n = {
|
|
|
76912
76945
|
};
|
|
76913
76946
|
const _hoisted_5$f = ["title"];
|
|
76914
76947
|
const _hoisted_6$b = ["title"];
|
|
76915
|
-
const _hoisted_7$
|
|
76948
|
+
const _hoisted_7$8 = {
|
|
76916
76949
|
key: 0,
|
|
76917
76950
|
class: "date-text"
|
|
76918
76951
|
};
|
|
@@ -77185,7 +77218,7 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
77185
77218
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
77186
77219
|
}, ["stop"]))
|
|
77187
77220
|
}, null, 8, ["src"]),
|
|
77188
|
-
shouldShowDate.value && unref(signTimeType) === unref(SignatureTimeTypeEnum).FOLLOW_SIGNATURE ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
77221
|
+
shouldShowDate.value && unref(signTimeType) === unref(SignatureTimeTypeEnum).FOLLOW_SIGNATURE ? (openBlock(), createElementBlock("div", _hoisted_7$8, toDisplayString(formattedDate(signature.time)), 1)) : createCommentVNode("", true)
|
|
77189
77222
|
], 2);
|
|
77190
77223
|
}), 128))
|
|
77191
77224
|
]),
|
|
@@ -77885,7 +77918,7 @@ const _hoisted_3$q = {
|
|
|
77885
77918
|
const _hoisted_4$l = ["onContextmenu"];
|
|
77886
77919
|
const _hoisted_5$e = { class: "inner-label-box" };
|
|
77887
77920
|
const _hoisted_6$a = ["title"];
|
|
77888
|
-
const _hoisted_7$
|
|
77921
|
+
const _hoisted_7$7 = { class: "h-120px flex justify-center items-center" };
|
|
77889
77922
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
77890
77923
|
__name: "trace-select",
|
|
77891
77924
|
props: {
|
|
@@ -78236,7 +78269,7 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
|
78236
78269
|
state.fetching ? {
|
|
78237
78270
|
name: "notFoundContent",
|
|
78238
78271
|
fn: withCtx(() => [
|
|
78239
|
-
createElementVNode("div", _hoisted_7$
|
|
78272
|
+
createElementVNode("div", _hoisted_7$7, [
|
|
78240
78273
|
createVNode(_component_a_spin, { size: "small" })
|
|
78241
78274
|
])
|
|
78242
78275
|
]),
|
|
@@ -78285,6 +78318,16 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78285
78318
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
78286
78319
|
const props2 = __props;
|
|
78287
78320
|
const emit2 = __emit;
|
|
78321
|
+
const { displayFields, quickSearchField } = props2.widget.props;
|
|
78322
|
+
const searchForm = ref({
|
|
78323
|
+
keyword: void 0
|
|
78324
|
+
});
|
|
78325
|
+
const searchField = computed(() => {
|
|
78326
|
+
return Array.from(new Set(quickSearchField || []));
|
|
78327
|
+
});
|
|
78328
|
+
const searchExp = computed(() => {
|
|
78329
|
+
return `OR(${searchField.value.join(",")})`;
|
|
78330
|
+
});
|
|
78288
78331
|
const {
|
|
78289
78332
|
field,
|
|
78290
78333
|
bizType,
|
|
@@ -78295,11 +78338,19 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78295
78338
|
dataRelationShip
|
|
78296
78339
|
} = useWidgetStaticAttrs(props2.widget);
|
|
78297
78340
|
const columns2 = computed(() => {
|
|
78298
|
-
|
|
78299
|
-
if (
|
|
78300
|
-
|
|
78341
|
+
const cols = [];
|
|
78342
|
+
if (displayFields?.length) {
|
|
78343
|
+
cols.push(
|
|
78344
|
+
...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
|
|
78345
|
+
);
|
|
78346
|
+
} else {
|
|
78347
|
+
let keys2 = ["code", "name", "spec", "uom", "desc"];
|
|
78348
|
+
if (bizType === FIELD_TYPE.E_SOP) {
|
|
78349
|
+
keys2 = ["esopName", "esopCode", "esopType", "esopSize"];
|
|
78350
|
+
}
|
|
78351
|
+
cols.push(...getColumns(keys2, true));
|
|
78301
78352
|
}
|
|
78302
|
-
return
|
|
78353
|
+
return cols;
|
|
78303
78354
|
});
|
|
78304
78355
|
const wrapperWidth = computed(() => {
|
|
78305
78356
|
if (bizType === FIELD_TYPE.E_SOP) {
|
|
@@ -78318,7 +78369,11 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78318
78369
|
fieldKey: field,
|
|
78319
78370
|
refModelKey,
|
|
78320
78371
|
isRdo: true,
|
|
78321
|
-
exp: `OR(${(dataRelationShip?.productSearchFields ||
|
|
78372
|
+
// exp: `OR(${(dataRelationShip?.productSearchFields || 'name_,code_')
|
|
78373
|
+
// .split(',')
|
|
78374
|
+
// .map((k: string) => `${k}.like`)
|
|
78375
|
+
// .join(',')})`,
|
|
78376
|
+
exp: keyword2 ? searchExp.value : void 0,
|
|
78322
78377
|
queryData: {
|
|
78323
78378
|
...queryData,
|
|
78324
78379
|
...props2.extraQuery,
|
|
@@ -78336,7 +78391,8 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78336
78391
|
};
|
|
78337
78392
|
const { xTable, loading: loading2, tableData, pagination, search, setCurrentRowHighlight, onSizeChange } = useSelectTable(
|
|
78338
78393
|
fetcher,
|
|
78339
|
-
|
|
78394
|
+
// 已有关联过滤等额外条件时,不用预置 options,避免首开展示未过滤数据
|
|
78395
|
+
Object.keys(props2.extraQuery || {}).length ? void 0 : merge({}, transformTreeData(initialOptions ?? [], props2.modelValue ?? void 0), {
|
|
78340
78396
|
total: newTotalCount
|
|
78341
78397
|
})
|
|
78342
78398
|
);
|
|
@@ -78348,6 +78404,18 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78348
78404
|
pageSizeOptions: ["10", "20", "30"],
|
|
78349
78405
|
showTotal: (total) => $t("sys.component.table.total", { total })
|
|
78350
78406
|
}));
|
|
78407
|
+
const debounceSearch = debounce(async () => {
|
|
78408
|
+
await search(searchForm.value.keyword);
|
|
78409
|
+
}, 500);
|
|
78410
|
+
watch(
|
|
78411
|
+
() => searchForm.value,
|
|
78412
|
+
() => {
|
|
78413
|
+
debounceSearch();
|
|
78414
|
+
},
|
|
78415
|
+
{
|
|
78416
|
+
deep: true
|
|
78417
|
+
}
|
|
78418
|
+
);
|
|
78351
78419
|
const onChangeSelect = (row) => {
|
|
78352
78420
|
emit2("change-select", row);
|
|
78353
78421
|
if (props2.parentToDefault && row?.__DEFAULT__) {
|
|
@@ -78367,28 +78435,58 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
78367
78435
|
search
|
|
78368
78436
|
});
|
|
78369
78437
|
return (_ctx, _cache) => {
|
|
78370
|
-
|
|
78371
|
-
|
|
78372
|
-
|
|
78373
|
-
|
|
78374
|
-
|
|
78375
|
-
|
|
78376
|
-
|
|
78377
|
-
|
|
78378
|
-
|
|
78379
|
-
|
|
78380
|
-
|
|
78381
|
-
|
|
78382
|
-
|
|
78383
|
-
|
|
78384
|
-
|
|
78385
|
-
|
|
78386
|
-
|
|
78387
|
-
|
|
78388
|
-
|
|
78438
|
+
const _component_a_input = resolveComponent("a-input");
|
|
78439
|
+
const _component_a_col = resolveComponent("a-col");
|
|
78440
|
+
const _component_a_row = resolveComponent("a-row");
|
|
78441
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
78442
|
+
__props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
|
|
78443
|
+
key: 0,
|
|
78444
|
+
class: "base-vxe-search-form-container",
|
|
78445
|
+
gutter: 24
|
|
78446
|
+
}, {
|
|
78447
|
+
default: withCtx(() => [
|
|
78448
|
+
createVNode(_component_a_col, { span: 12 }, {
|
|
78449
|
+
default: withCtx(() => [
|
|
78450
|
+
createVNode(_component_a_input, {
|
|
78451
|
+
value: searchForm.value.keyword,
|
|
78452
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
|
|
78453
|
+
placeholder: _ctx.$t("sys.search")
|
|
78454
|
+
}, {
|
|
78455
|
+
prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
78456
|
+
createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
|
|
78457
|
+
])]),
|
|
78458
|
+
_: 1
|
|
78459
|
+
}, 8, ["value", "placeholder"])
|
|
78460
|
+
]),
|
|
78461
|
+
_: 1
|
|
78462
|
+
})
|
|
78463
|
+
]),
|
|
78464
|
+
_: 1
|
|
78465
|
+
})) : createCommentVNode("", true),
|
|
78466
|
+
createVNode(BaseVxeTable, {
|
|
78467
|
+
ref_key: "xTable",
|
|
78468
|
+
ref: xTable,
|
|
78469
|
+
columns: columns2.value,
|
|
78470
|
+
tableData: unref(tableData),
|
|
78471
|
+
modelValue: __props.modelValue,
|
|
78472
|
+
loading: unref(loading2),
|
|
78473
|
+
paginationAttr: paginationAttr.value,
|
|
78474
|
+
treeConfig: { rowField: "id_", childrenField: "children", expandAll: true },
|
|
78475
|
+
wrapperHeight: __props.wrapperHeight,
|
|
78476
|
+
onChangeSelect,
|
|
78477
|
+
onRequest: unref(onSizeChange),
|
|
78478
|
+
wrapperWidth: wrapperWidth.value
|
|
78479
|
+
}, {
|
|
78480
|
+
rdo_version_render: withCtx(({ record }) => [
|
|
78481
|
+
createVNode(RdoVersionNameTag, { data: record }, null, 8, ["data"])
|
|
78482
|
+
]),
|
|
78483
|
+
_: 1
|
|
78484
|
+
}, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "wrapperHeight", "onRequest", "wrapperWidth"])
|
|
78485
|
+
], 64);
|
|
78389
78486
|
};
|
|
78390
78487
|
}
|
|
78391
78488
|
});
|
|
78489
|
+
const RdoSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["__scopeId", "data-v-542f045b"]]);
|
|
78392
78490
|
const INITIAL_WRAPPER_HEIGHT = 360;
|
|
78393
78491
|
const MIN_WRAPPER_HEIGHT = 150;
|
|
78394
78492
|
const POPOVER_PADDING = 16;
|
|
@@ -78448,6 +78546,39 @@ function useWrapperHeight(triggerRef) {
|
|
|
78448
78546
|
calculateWrapperHeight
|
|
78449
78547
|
};
|
|
78450
78548
|
}
|
|
78549
|
+
function parseAssocSourceField(value) {
|
|
78550
|
+
if (!value) return null;
|
|
78551
|
+
const idx = value.indexOf(".");
|
|
78552
|
+
if (idx === -1) return { fieldKey: value };
|
|
78553
|
+
return {
|
|
78554
|
+
subFieldKey: value.slice(0, idx),
|
|
78555
|
+
fieldKey: value.slice(idx + 1)
|
|
78556
|
+
};
|
|
78557
|
+
}
|
|
78558
|
+
function buildAssocFilterExtraParams(filterProps, formData, mainFormState) {
|
|
78559
|
+
if (!filterProps?.enableAssocFilter || !filterProps.assocFilterSourceField) return {};
|
|
78560
|
+
const parsed = parseAssocSourceField(filterProps.assocFilterSourceField);
|
|
78561
|
+
if (!parsed) return {};
|
|
78562
|
+
const row = formData || {};
|
|
78563
|
+
const main = mainFormState || {};
|
|
78564
|
+
const scope = parsed.subFieldKey ? row : main;
|
|
78565
|
+
const value = scope[parsed.fieldKey];
|
|
78566
|
+
const idValue = scope[`${parsed.fieldKey}_id_`];
|
|
78567
|
+
if (isNil(value) || value === "") return {};
|
|
78568
|
+
const sourceType = filterProps.assocFilterSourceFieldType;
|
|
78569
|
+
if (sourceType === FIELD_TYPE.MATERIAL_NO) {
|
|
78570
|
+
const lotId = idValue || value;
|
|
78571
|
+
if (isNil(lotId) || lotId === "") return {};
|
|
78572
|
+
return { production_identification_id_: lotId };
|
|
78573
|
+
}
|
|
78574
|
+
if (sourceType === FIELD_TYPE.MFG_ORDER) {
|
|
78575
|
+
return { mfg_order_id_: value };
|
|
78576
|
+
}
|
|
78577
|
+
if (!isNil(idValue) && idValue !== "") {
|
|
78578
|
+
return { production_identification_id_: idValue };
|
|
78579
|
+
}
|
|
78580
|
+
return { mfg_order_id_: value };
|
|
78581
|
+
}
|
|
78451
78582
|
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
78452
78583
|
__name: "trace-rdo-select",
|
|
78453
78584
|
props: {
|
|
@@ -78469,11 +78600,25 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
78469
78600
|
showRequired,
|
|
78470
78601
|
showDisabled,
|
|
78471
78602
|
newQueryData,
|
|
78603
|
+
newQueryDataRef,
|
|
78472
78604
|
newDisplayRule,
|
|
78473
78605
|
modelKey
|
|
78474
78606
|
} = useWidgetStaticAttrs(props2.widget);
|
|
78475
78607
|
const { autofillRules, enableAutofill } = props2.widget.props;
|
|
78476
78608
|
const { applyAutofillRules } = useAutofill();
|
|
78609
|
+
const { currentPageFormState } = useCurrentPageFormState();
|
|
78610
|
+
const mergedQueryData = computed(() => ({
|
|
78611
|
+
...newQueryDataRef.value || newQueryData || {},
|
|
78612
|
+
...buildAssocFilterExtraParams(
|
|
78613
|
+
{
|
|
78614
|
+
enableAssocFilter: props2.widget.props.enableAssocFilter,
|
|
78615
|
+
assocFilterSourceField: props2.widget.props.assocFilterSourceField,
|
|
78616
|
+
assocFilterSourceFieldType: props2.widget.props.assocFilterSourceFieldType
|
|
78617
|
+
},
|
|
78618
|
+
props2.formData,
|
|
78619
|
+
currentPageFormState.value
|
|
78620
|
+
)
|
|
78621
|
+
}));
|
|
78477
78622
|
const open = ref(false);
|
|
78478
78623
|
const searchValue = ref();
|
|
78479
78624
|
const selectTableRef = ref(null);
|
|
@@ -78552,6 +78697,11 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
78552
78697
|
searchValue.value = keyword2;
|
|
78553
78698
|
selectTableRef.value?.search?.(keyword2);
|
|
78554
78699
|
}, 300);
|
|
78700
|
+
watch(open, async (visible) => {
|
|
78701
|
+
if (!visible || !props2.widget.props.enableAssocFilter) return;
|
|
78702
|
+
await nextTick();
|
|
78703
|
+
selectTableRef.value?.search?.(searchValue.value || "");
|
|
78704
|
+
});
|
|
78555
78705
|
const onClearSearchValue = () => {
|
|
78556
78706
|
if (searchValue.value && String(searchValue.value).trim()) {
|
|
78557
78707
|
searchValue.value = void 0;
|
|
@@ -78719,13 +78869,13 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
78719
78869
|
placement: unref(popoverPlacement)
|
|
78720
78870
|
}, {
|
|
78721
78871
|
content: withCtx(() => [
|
|
78722
|
-
createVNode(
|
|
78872
|
+
createVNode(RdoSelectTable, {
|
|
78723
78873
|
ref_key: "selectTableRef",
|
|
78724
78874
|
ref: selectTableRef,
|
|
78725
78875
|
widget: __props.widget,
|
|
78726
78876
|
modelValue: __props.value,
|
|
78727
78877
|
parentToDefault: __props.parentToDefault,
|
|
78728
|
-
extraQuery:
|
|
78878
|
+
extraQuery: mergedQueryData.value,
|
|
78729
78879
|
wrapperHeight: unref(wrapperHeight),
|
|
78730
78880
|
onChangeSelect
|
|
78731
78881
|
}, null, 8, ["widget", "modelValue", "parentToDefault", "extraQuery", "wrapperHeight"])
|
|
@@ -78765,7 +78915,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
78765
78915
|
};
|
|
78766
78916
|
}
|
|
78767
78917
|
});
|
|
78768
|
-
const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-
|
|
78918
|
+
const TraceRdoSelect = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-d39afcd2"]]);
|
|
78769
78919
|
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
78770
78920
|
__name: "lot-select-table",
|
|
78771
78921
|
props: {
|
|
@@ -78778,12 +78928,32 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
78778
78928
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
78779
78929
|
const props2 = __props;
|
|
78780
78930
|
const emit2 = __emit;
|
|
78781
|
-
const {
|
|
78782
|
-
|
|
78783
|
-
|
|
78784
|
-
|
|
78785
|
-
|
|
78786
|
-
);
|
|
78931
|
+
const { displayFields, quickSearchField } = props2.widget.props;
|
|
78932
|
+
const {
|
|
78933
|
+
options: initialOptions,
|
|
78934
|
+
newTotalCount,
|
|
78935
|
+
customLoaderRef
|
|
78936
|
+
} = useWidgetStaticAttrs(props2.widget);
|
|
78937
|
+
const searchForm = ref({
|
|
78938
|
+
keyword: void 0
|
|
78939
|
+
});
|
|
78940
|
+
const searchField = computed(() => {
|
|
78941
|
+
return Array.from(new Set(quickSearchField || []));
|
|
78942
|
+
});
|
|
78943
|
+
const searchExp = computed(() => {
|
|
78944
|
+
return `OR(${searchField.value.join(",")})`;
|
|
78945
|
+
});
|
|
78946
|
+
const columns2 = computed(() => {
|
|
78947
|
+
const cols = getColumns(["radio"]);
|
|
78948
|
+
if (displayFields?.length) {
|
|
78949
|
+
cols.push(
|
|
78950
|
+
...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
|
|
78951
|
+
);
|
|
78952
|
+
} else {
|
|
78953
|
+
cols.push(...getColumns(["lot2sn", "productCode", "productName", "spec"]));
|
|
78954
|
+
}
|
|
78955
|
+
return cols;
|
|
78956
|
+
});
|
|
78787
78957
|
const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize }) => {
|
|
78788
78958
|
const queryData = keyword2 && String(keyword2).trim() ? ["material_no_"].reduce((total, filedKey) => {
|
|
78789
78959
|
const expkey = filedKey.split(".").length > 1 ? filedKey : filedKey + ".like";
|
|
@@ -78793,6 +78963,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
78793
78963
|
const res = await renderUtils.requestLot2SnOptions({
|
|
78794
78964
|
isMaterialConsumeField: props2.widget.props.isMaterialConsumeField,
|
|
78795
78965
|
customLoader: customLoaderRef.value,
|
|
78966
|
+
exp: keyword2 ? searchExp.value : void 0,
|
|
78796
78967
|
queryData: {
|
|
78797
78968
|
...queryData,
|
|
78798
78969
|
...props2.extraQuery
|
|
@@ -78831,6 +79002,18 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
78831
79002
|
pageSizeOptions: ["10", "20", "30"],
|
|
78832
79003
|
showTotal: (total) => $t("sys.component.table.total", { total })
|
|
78833
79004
|
}));
|
|
79005
|
+
const debounceSearch = debounce(async () => {
|
|
79006
|
+
await search(searchForm.value.keyword);
|
|
79007
|
+
}, 500);
|
|
79008
|
+
watch(
|
|
79009
|
+
() => searchForm.value,
|
|
79010
|
+
() => {
|
|
79011
|
+
debounceSearch();
|
|
79012
|
+
},
|
|
79013
|
+
{
|
|
79014
|
+
deep: true
|
|
79015
|
+
}
|
|
79016
|
+
);
|
|
78834
79017
|
const onChangeSelect = (row) => {
|
|
78835
79018
|
emit2("change-select", row);
|
|
78836
79019
|
};
|
|
@@ -78839,22 +79022,52 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
78839
79022
|
search
|
|
78840
79023
|
});
|
|
78841
79024
|
return (_ctx, _cache) => {
|
|
78842
|
-
|
|
78843
|
-
|
|
78844
|
-
|
|
78845
|
-
|
|
78846
|
-
|
|
78847
|
-
|
|
78848
|
-
|
|
78849
|
-
|
|
78850
|
-
|
|
78851
|
-
|
|
78852
|
-
|
|
78853
|
-
|
|
78854
|
-
|
|
79025
|
+
const _component_a_input = resolveComponent("a-input");
|
|
79026
|
+
const _component_a_col = resolveComponent("a-col");
|
|
79027
|
+
const _component_a_row = resolveComponent("a-row");
|
|
79028
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
79029
|
+
__props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
|
|
79030
|
+
key: 0,
|
|
79031
|
+
class: "base-vxe-search-form-container",
|
|
79032
|
+
gutter: 24
|
|
79033
|
+
}, {
|
|
79034
|
+
default: withCtx(() => [
|
|
79035
|
+
createVNode(_component_a_col, { span: 12 }, {
|
|
79036
|
+
default: withCtx(() => [
|
|
79037
|
+
createVNode(_component_a_input, {
|
|
79038
|
+
value: searchForm.value.keyword,
|
|
79039
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
|
|
79040
|
+
placeholder: _ctx.$t("sys.search")
|
|
79041
|
+
}, {
|
|
79042
|
+
prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
79043
|
+
createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
|
|
79044
|
+
])]),
|
|
79045
|
+
_: 1
|
|
79046
|
+
}, 8, ["value", "placeholder"])
|
|
79047
|
+
]),
|
|
79048
|
+
_: 1
|
|
79049
|
+
})
|
|
79050
|
+
]),
|
|
79051
|
+
_: 1
|
|
79052
|
+
})) : createCommentVNode("", true),
|
|
79053
|
+
createVNode(BaseVxeTable, {
|
|
79054
|
+
ref_key: "xTable",
|
|
79055
|
+
ref: xTable,
|
|
79056
|
+
columns: columns2.value,
|
|
79057
|
+
tableData: unref(tableData),
|
|
79058
|
+
modelValue: __props.modelValue,
|
|
79059
|
+
loading: unref(loading2),
|
|
79060
|
+
paginationAttr: paginationAttr.value,
|
|
79061
|
+
"show-row-selection-mode": "",
|
|
79062
|
+
onChangeSelect,
|
|
79063
|
+
onRequest: unref(onSizeChange),
|
|
79064
|
+
wrapperHeight: __props.wrapperHeight
|
|
79065
|
+
}, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"])
|
|
79066
|
+
], 64);
|
|
78855
79067
|
};
|
|
78856
79068
|
}
|
|
78857
79069
|
});
|
|
79070
|
+
const LotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-d117eb50"]]);
|
|
78858
79071
|
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
78859
79072
|
__name: "trace-lot-select",
|
|
78860
79073
|
props: {
|
|
@@ -78990,7 +79203,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
78990
79203
|
autoAdjustOverflow: unref(autoAdjustOverflow)
|
|
78991
79204
|
}, {
|
|
78992
79205
|
content: withCtx(() => [
|
|
78993
|
-
createVNode(
|
|
79206
|
+
createVNode(LotSelectTable, {
|
|
78994
79207
|
ref_key: "selectTableRef",
|
|
78995
79208
|
ref: selectTableRef,
|
|
78996
79209
|
widget: __props.widget,
|
|
@@ -79220,15 +79433,34 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
79220
79433
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
79221
79434
|
const props2 = __props;
|
|
79222
79435
|
const emit2 = __emit;
|
|
79436
|
+
const { displayFields, quickSearchField } = props2.widget.props;
|
|
79223
79437
|
const { options: initialOptions, newTotalCount } = useWidgetStaticAttrs(props2.widget);
|
|
79224
|
-
const columns2 = computed(
|
|
79225
|
-
|
|
79226
|
-
|
|
79438
|
+
const columns2 = computed(() => {
|
|
79439
|
+
const cols = getColumns(["radio"]);
|
|
79440
|
+
if (displayFields?.length) {
|
|
79441
|
+
cols.push(
|
|
79442
|
+
...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
|
|
79443
|
+
);
|
|
79444
|
+
} else {
|
|
79445
|
+
cols.push(...getColumns(["lot2sn", "productCode", "productName", "spec"]));
|
|
79446
|
+
}
|
|
79447
|
+
return cols;
|
|
79448
|
+
});
|
|
79449
|
+
const searchForm = ref({
|
|
79450
|
+
keyword: void 0
|
|
79451
|
+
});
|
|
79452
|
+
const searchField = computed(() => {
|
|
79453
|
+
return Array.from(new Set(quickSearchField || []));
|
|
79454
|
+
});
|
|
79455
|
+
const searchExp = computed(() => {
|
|
79456
|
+
return `OR(${searchField.value.join(",")})`;
|
|
79457
|
+
});
|
|
79227
79458
|
const fetcher = async ({ keyword: keyword2 = "", pageNo, pageSize }) => {
|
|
79228
79459
|
const queryData = keyword2 && String(keyword2).trim() ? {
|
|
79229
79460
|
"name_.like": keyword2
|
|
79230
79461
|
} : {};
|
|
79231
79462
|
const res = await renderUtils.requestMaterialLotOptions({
|
|
79463
|
+
exp: keyword2 ? searchExp.value : void 0,
|
|
79232
79464
|
queryData: {
|
|
79233
79465
|
...queryData,
|
|
79234
79466
|
...props2.extraQuery
|
|
@@ -79264,6 +79496,18 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
79264
79496
|
pageSizeOptions: ["10", "20", "30"],
|
|
79265
79497
|
showTotal: (total) => $t("sys.component.table.total", { total })
|
|
79266
79498
|
}));
|
|
79499
|
+
const debounceSearch = debounce(async () => {
|
|
79500
|
+
await search(searchForm.value.keyword);
|
|
79501
|
+
}, 500);
|
|
79502
|
+
watch(
|
|
79503
|
+
() => searchForm.value,
|
|
79504
|
+
() => {
|
|
79505
|
+
debounceSearch();
|
|
79506
|
+
},
|
|
79507
|
+
{
|
|
79508
|
+
deep: true
|
|
79509
|
+
}
|
|
79510
|
+
);
|
|
79267
79511
|
const onChangeSelect = (row) => {
|
|
79268
79512
|
emit2("change-select", row);
|
|
79269
79513
|
};
|
|
@@ -79272,22 +79516,52 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
79272
79516
|
search
|
|
79273
79517
|
});
|
|
79274
79518
|
return (_ctx, _cache) => {
|
|
79275
|
-
|
|
79276
|
-
|
|
79277
|
-
|
|
79278
|
-
|
|
79279
|
-
|
|
79280
|
-
|
|
79281
|
-
|
|
79282
|
-
|
|
79283
|
-
|
|
79284
|
-
|
|
79285
|
-
|
|
79286
|
-
|
|
79287
|
-
|
|
79519
|
+
const _component_a_input = resolveComponent("a-input");
|
|
79520
|
+
const _component_a_col = resolveComponent("a-col");
|
|
79521
|
+
const _component_a_row = resolveComponent("a-row");
|
|
79522
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
79523
|
+
__props.widget.props.quickSearchable ? (openBlock(), createBlock(_component_a_row, {
|
|
79524
|
+
key: 0,
|
|
79525
|
+
class: "base-vxe-search-form-container",
|
|
79526
|
+
gutter: 24
|
|
79527
|
+
}, {
|
|
79528
|
+
default: withCtx(() => [
|
|
79529
|
+
createVNode(_component_a_col, { span: 12 }, {
|
|
79530
|
+
default: withCtx(() => [
|
|
79531
|
+
createVNode(_component_a_input, {
|
|
79532
|
+
value: searchForm.value.keyword,
|
|
79533
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
|
|
79534
|
+
placeholder: _ctx.$t("sys.search")
|
|
79535
|
+
}, {
|
|
79536
|
+
prefix: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
79537
|
+
createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)
|
|
79538
|
+
])]),
|
|
79539
|
+
_: 1
|
|
79540
|
+
}, 8, ["value", "placeholder"])
|
|
79541
|
+
]),
|
|
79542
|
+
_: 1
|
|
79543
|
+
})
|
|
79544
|
+
]),
|
|
79545
|
+
_: 1
|
|
79546
|
+
})) : createCommentVNode("", true),
|
|
79547
|
+
createVNode(BaseVxeTable, {
|
|
79548
|
+
ref_key: "xTable",
|
|
79549
|
+
ref: xTable,
|
|
79550
|
+
columns: columns2.value,
|
|
79551
|
+
tableData: unref(tableData),
|
|
79552
|
+
modelValue: __props.modelValue,
|
|
79553
|
+
loading: unref(loading2),
|
|
79554
|
+
paginationAttr: paginationAttr.value,
|
|
79555
|
+
"show-row-selection-mode": "",
|
|
79556
|
+
onChangeSelect,
|
|
79557
|
+
onRequest: unref(onSizeChange),
|
|
79558
|
+
wrapperHeight: __props.wrapperHeight
|
|
79559
|
+
}, null, 8, ["columns", "tableData", "modelValue", "loading", "paginationAttr", "onRequest", "wrapperHeight"])
|
|
79560
|
+
], 64);
|
|
79288
79561
|
};
|
|
79289
79562
|
}
|
|
79290
79563
|
});
|
|
79564
|
+
const MaterialLotSelectTable = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["__scopeId", "data-v-7d13eb18"]]);
|
|
79291
79565
|
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
79292
79566
|
__name: "trace-material-lot-select",
|
|
79293
79567
|
props: {
|
|
@@ -79423,7 +79697,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
79423
79697
|
autoAdjustOverflow: unref(autoAdjustOverflow)
|
|
79424
79698
|
}, {
|
|
79425
79699
|
content: withCtx(() => [
|
|
79426
|
-
createVNode(
|
|
79700
|
+
createVNode(MaterialLotSelectTable, {
|
|
79427
79701
|
ref_key: "selectTableRef",
|
|
79428
79702
|
ref: selectTableRef,
|
|
79429
79703
|
widget: __props.widget,
|
|
@@ -79737,9 +80011,9 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79737
80011
|
fieldMetaMap2.value[f.key] = f;
|
|
79738
80012
|
});
|
|
79739
80013
|
});
|
|
79740
|
-
const
|
|
79741
|
-
|
|
79742
|
-
|
|
80014
|
+
const searchForm = ref({
|
|
80015
|
+
keyword: void 0,
|
|
80016
|
+
deviceType: void 0
|
|
79743
80017
|
});
|
|
79744
80018
|
const props2 = __props;
|
|
79745
80019
|
const emit2 = __emit;
|
|
@@ -79750,14 +80024,20 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79750
80024
|
modelKey,
|
|
79751
80025
|
refModelKey,
|
|
79752
80026
|
placeholder,
|
|
79753
|
-
fieldType,
|
|
80027
|
+
// fieldType,
|
|
79754
80028
|
showRequired,
|
|
79755
80029
|
showDisabled,
|
|
79756
80030
|
options: initialOptions,
|
|
79757
80031
|
loadFinished2Options,
|
|
79758
80032
|
newTotalCount
|
|
79759
80033
|
} = useWidgetStaticAttrs(props2.widget);
|
|
79760
|
-
const {
|
|
80034
|
+
const {
|
|
80035
|
+
displayFields,
|
|
80036
|
+
quickSearchField,
|
|
80037
|
+
// quickSearchExp,
|
|
80038
|
+
autofillRules,
|
|
80039
|
+
enableAutofill
|
|
80040
|
+
} = props2.widget.props;
|
|
79761
80041
|
const { applyAutofillRules } = useAutofill();
|
|
79762
80042
|
const searchField = computed(() => {
|
|
79763
80043
|
return Array.from(new Set(["code_.like", "name_.like"].concat(quickSearchField || [])));
|
|
@@ -79811,7 +80091,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79811
80091
|
}
|
|
79812
80092
|
const info = res.options[0];
|
|
79813
80093
|
currentValue.value = info.value;
|
|
79814
|
-
changeSelect(info._item);
|
|
80094
|
+
changeSelect(info.value, info._item);
|
|
79815
80095
|
return true;
|
|
79816
80096
|
}
|
|
79817
80097
|
});
|
|
@@ -79835,15 +80115,21 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79835
80115
|
const columns2 = computed(() => {
|
|
79836
80116
|
const nameMeta = fieldMetaMap2.value["name_"];
|
|
79837
80117
|
const codeMeta = fieldMetaMap2.value["code_"];
|
|
79838
|
-
const cols = [
|
|
79839
|
-
|
|
79840
|
-
|
|
79841
|
-
|
|
79842
|
-
|
|
79843
|
-
|
|
79844
|
-
|
|
79845
|
-
|
|
79846
|
-
|
|
80118
|
+
const cols = [{ field: "radio", type: "radio", width: 46, showOverflow: false }];
|
|
80119
|
+
if (displayFields?.length) {
|
|
80120
|
+
cols.push(
|
|
80121
|
+
...displayFields.map(({ key, name }) => ({ title: name, field: key, minWidth: 170 }))
|
|
80122
|
+
);
|
|
80123
|
+
} else {
|
|
80124
|
+
cols.push(
|
|
80125
|
+
{ title: nameMeta?.name ?? $t("sys.name"), field: "name_", minWidth: 170 },
|
|
80126
|
+
{
|
|
80127
|
+
title: codeMeta?.name ?? $t("sys.edhr.field.code"),
|
|
80128
|
+
field: "code_",
|
|
80129
|
+
minWidth: 170
|
|
80130
|
+
}
|
|
80131
|
+
);
|
|
80132
|
+
}
|
|
79847
80133
|
const showKeys = searchField.value.map((s) => s.replace(".like", ""));
|
|
79848
80134
|
showKeys.forEach((k) => {
|
|
79849
80135
|
if (["name_", "code_"].includes(k)) {
|
|
@@ -79881,7 +80167,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79881
80167
|
exp: keyword2 ? searchExp.value : void 0,
|
|
79882
80168
|
queryData: {
|
|
79883
80169
|
...searchFieldQuery,
|
|
79884
|
-
"device_type_id_.eq":
|
|
80170
|
+
"device_type_id_.eq": searchForm.value.deviceType,
|
|
79885
80171
|
operating_state_: true
|
|
79886
80172
|
},
|
|
79887
80173
|
pageNo,
|
|
@@ -79909,10 +80195,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
79909
80195
|
showTotal: (total) => $t("sys.component.table.total", { total })
|
|
79910
80196
|
}));
|
|
79911
80197
|
const debounceSearch = debounce(async () => {
|
|
79912
|
-
await search(
|
|
80198
|
+
await search(searchForm.value.keyword);
|
|
79913
80199
|
}, 500);
|
|
79914
80200
|
watch(
|
|
79915
|
-
() =>
|
|
80201
|
+
() => searchForm.value,
|
|
79916
80202
|
() => {
|
|
79917
80203
|
debounceSearch();
|
|
79918
80204
|
},
|
|
@@ -80020,7 +80306,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
80020
80306
|
ref_key: "selectRef",
|
|
80021
80307
|
ref: selectRef
|
|
80022
80308
|
}), {
|
|
80023
|
-
dropdownRender: withCtx((
|
|
80309
|
+
dropdownRender: withCtx(() => [
|
|
80024
80310
|
createElementVNode("div", _hoisted_1$K, [
|
|
80025
80311
|
createVNode(_component_a_row, {
|
|
80026
80312
|
class: "trace-device__search-form",
|
|
@@ -80033,8 +80319,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
80033
80319
|
}, {
|
|
80034
80320
|
default: withCtx(() => [
|
|
80035
80321
|
createVNode(_component_a_input, {
|
|
80036
|
-
value:
|
|
80037
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) =>
|
|
80322
|
+
value: searchForm.value.keyword,
|
|
80323
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => searchForm.value.keyword = $event),
|
|
80038
80324
|
placeholder: _ctx.$t("sys.edhr.searchDevice")
|
|
80039
80325
|
}, {
|
|
80040
80326
|
prefix: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
@@ -80054,8 +80340,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
80054
80340
|
default: withCtx(() => [
|
|
80055
80341
|
createVNode(TraceSelect, {
|
|
80056
80342
|
dropdownClassName: "trace-device__exclude-outside",
|
|
80057
|
-
modelValue:
|
|
80058
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
80343
|
+
modelValue: searchForm.value.deviceType,
|
|
80344
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchForm.value.deviceType = $event),
|
|
80059
80345
|
placeholder: _ctx.$t("sys.chooseTextTip", { name: _ctx.$t("sys.edhr.deviceType") }),
|
|
80060
80346
|
"model-key": "em_device_type"
|
|
80061
80347
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -80089,7 +80375,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
80089
80375
|
};
|
|
80090
80376
|
}
|
|
80091
80377
|
});
|
|
80092
|
-
const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-
|
|
80378
|
+
const TraceDevice = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-498f9bc8"]]);
|
|
80093
80379
|
const _hoisted_1$J = { class: "allocate-product__dropdown" };
|
|
80094
80380
|
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
80095
80381
|
__name: "allocate-product",
|
|
@@ -81211,7 +81497,7 @@ const VuePdf = /* @__PURE__ */ defineComponent({
|
|
|
81211
81497
|
}
|
|
81212
81498
|
});
|
|
81213
81499
|
const VueVideoPlayer = defineAsyncComponent(
|
|
81214
|
-
() => import("./VueVideoPlayer-
|
|
81500
|
+
() => import("./VueVideoPlayer-DeGuauVb.js")
|
|
81215
81501
|
);
|
|
81216
81502
|
const _hoisted_1$I = {
|
|
81217
81503
|
key: 0,
|
|
@@ -85724,7 +86010,7 @@ const _hoisted_6$9 = {
|
|
|
85724
86010
|
class: "error",
|
|
85725
86011
|
style: { "color": "red" }
|
|
85726
86012
|
};
|
|
85727
|
-
const _hoisted_7$
|
|
86013
|
+
const _hoisted_7$6 = {
|
|
85728
86014
|
key: 1,
|
|
85729
86015
|
style: { "color": "var(--ant-primary-color)" }
|
|
85730
86016
|
};
|
|
@@ -85930,7 +86216,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
85930
86216
|
percent: item.percentNum
|
|
85931
86217
|
}, {
|
|
85932
86218
|
format: withCtx((percent) => [
|
|
85933
|
-
item.status === unref(statusEnum$1).EXCEPTION ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(_ctx.$t("sys.component.upload.uploadError")) + "!", 1)) : (openBlock(), createElementBlock("span", _hoisted_7$
|
|
86219
|
+
item.status === unref(statusEnum$1).EXCEPTION ? (openBlock(), createElementBlock("span", _hoisted_6$9, toDisplayString(_ctx.$t("sys.component.upload.uploadError")) + "!", 1)) : (openBlock(), createElementBlock("span", _hoisted_7$6, toDisplayString(percent + "%"), 1))
|
|
85934
86220
|
]),
|
|
85935
86221
|
_: 2
|
|
85936
86222
|
}, 1032, ["percent"]), [
|
|
@@ -89615,8 +89901,8 @@ const _hoisted_3$h = { class: "ks-row" };
|
|
|
89615
89901
|
const _hoisted_4$e = { class: "ks-col ell text-[12px]" };
|
|
89616
89902
|
const _hoisted_5$9 = ["title"];
|
|
89617
89903
|
const _hoisted_6$7 = { class: "mr4px text-#666" };
|
|
89618
|
-
const _hoisted_7$
|
|
89619
|
-
const _hoisted_8$
|
|
89904
|
+
const _hoisted_7$5 = { class: "ks-col ell" };
|
|
89905
|
+
const _hoisted_8$5 = ["title"];
|
|
89620
89906
|
const _hoisted_9$3 = { class: "mr4px text-#666" };
|
|
89621
89907
|
const _hoisted_10$3 = { class: "ks-col ell" };
|
|
89622
89908
|
const _hoisted_11$2 = ["onClick"];
|
|
@@ -89704,7 +89990,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
89704
89990
|
title: `${item.formulaLabel}[${item.formulaContent}]`
|
|
89705
89991
|
}, [
|
|
89706
89992
|
createElementVNode("div", _hoisted_6$7, toDisplayString(_ctx.$t("sys.onlineForm.unitConversion.ruleLabel")), 1),
|
|
89707
|
-
createElementVNode("div", _hoisted_7$
|
|
89993
|
+
createElementVNode("div", _hoisted_7$5, toDisplayString(item.formulaLabel) + "[" + toDisplayString(item.formulaContent) + "]", 1)
|
|
89708
89994
|
], 8, _hoisted_5$9),
|
|
89709
89995
|
createElementVNode("div", {
|
|
89710
89996
|
class: "ks-row",
|
|
@@ -89712,7 +89998,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
89712
89998
|
}, [
|
|
89713
89999
|
createElementVNode("div", _hoisted_9$3, toDisplayString(_ctx.$t("sys.onlineForm.unitConversion.materialLabel")), 1),
|
|
89714
90000
|
createElementVNode("div", _hoisted_10$3, toDisplayString(item.materialLabel), 1)
|
|
89715
|
-
], 8, _hoisted_8$
|
|
90001
|
+
], 8, _hoisted_8$5)
|
|
89716
90002
|
]),
|
|
89717
90003
|
createElementVNode("i", {
|
|
89718
90004
|
class: "iconfont icon-shanchu primary-gct-hover ml4px",
|
|
@@ -89886,8 +90172,8 @@ const _hoisted_3$g = {
|
|
|
89886
90172
|
const _hoisted_4$d = { class: "bom-entry-item-content ks-col" };
|
|
89887
90173
|
const _hoisted_5$8 = { class: "bom-entry-item-content-item ell overflow-hidden" };
|
|
89888
90174
|
const _hoisted_6$6 = ["title"];
|
|
89889
|
-
const _hoisted_7$
|
|
89890
|
-
const _hoisted_8$
|
|
90175
|
+
const _hoisted_7$4 = { class: "bom-entry-item-btns ml8px" };
|
|
90176
|
+
const _hoisted_8$4 = ["onClick"];
|
|
89891
90177
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
89892
90178
|
__name: "bom-entry-editor",
|
|
89893
90179
|
props: {
|
|
@@ -89991,7 +90277,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
89991
90277
|
title: `${_ctx.$t("sys.edhr.unitQty")}:${element.qty_required_}`
|
|
89992
90278
|
}, toDisplayString(_ctx.$t("sys.edhr.unitQty")) + ":" + toDisplayString(element.qty_required_), 9, _hoisted_6$6)
|
|
89993
90279
|
]),
|
|
89994
|
-
createElementVNode("div", _hoisted_7$
|
|
90280
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
89995
90281
|
createVNode(_component_a_tooltip, {
|
|
89996
90282
|
title: _ctx.$t("sys.edit")
|
|
89997
90283
|
}, {
|
|
@@ -89999,7 +90285,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
89999
90285
|
createElementVNode("i", {
|
|
90000
90286
|
class: "iconfont btn-item icon-bianjimingcheng",
|
|
90001
90287
|
onClick: ($event) => edit(element)
|
|
90002
|
-
}, null, 8, _hoisted_8$
|
|
90288
|
+
}, null, 8, _hoisted_8$4)
|
|
90003
90289
|
]),
|
|
90004
90290
|
_: 2
|
|
90005
90291
|
}, 1032, ["title"]),
|
|
@@ -90070,12 +90356,24 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
90070
90356
|
}
|
|
90071
90357
|
});
|
|
90072
90358
|
const EditParseRule = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-334f7559"]]);
|
|
90359
|
+
var ScanParamType = /* @__PURE__ */ ((ScanParamType2) => {
|
|
90360
|
+
ScanParamType2["Lot"] = "lot";
|
|
90361
|
+
ScanParamType2["UniqueCode"] = "uniqueCode";
|
|
90362
|
+
return ScanParamType2;
|
|
90363
|
+
})(ScanParamType || {});
|
|
90364
|
+
var RequiredQtyCalcRule = /* @__PURE__ */ ((RequiredQtyCalcRule2) => {
|
|
90365
|
+
RequiredQtyCalcRule2["LotQty"] = "lotQty";
|
|
90366
|
+
RequiredQtyCalcRule2["ProductQty"] = "productQty";
|
|
90367
|
+
return RequiredQtyCalcRule2;
|
|
90368
|
+
})(RequiredQtyCalcRule || {});
|
|
90073
90369
|
const _hoisted_1$l = { class: "panel-document" };
|
|
90074
90370
|
const _hoisted_2$g = { class: "pl-12px pr-12px pt-20px pb-20px" };
|
|
90075
90371
|
const _hoisted_3$f = { class: "color-[#212528] text-12px lh-[18px]" };
|
|
90076
90372
|
const _hoisted_4$c = { class: "color-[#212528] text-12px lh-[18px]" };
|
|
90077
90373
|
const _hoisted_5$7 = { class: "flex justify-end" };
|
|
90078
90374
|
const _hoisted_6$5 = { class: "flex justify-end" };
|
|
90375
|
+
const _hoisted_7$3 = { class: "flex justify-end" };
|
|
90376
|
+
const _hoisted_8$3 = { class: "flex justify-end" };
|
|
90079
90377
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
90080
90378
|
__name: "panel-material-consumption-table",
|
|
90081
90379
|
setup(__props) {
|
|
@@ -90087,8 +90385,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90087
90385
|
});
|
|
90088
90386
|
const { businessSetting } = window.NocodeAdapter.hooks?.useBusinessSetting?.();
|
|
90089
90387
|
const { paper: paper2, panelData: panelData2, sheetReadonly: sheetReadonly2, removeSubTable, setPanelData } = useSpreadSheet();
|
|
90090
|
-
const { modelMetaMap: modelMetaMap2 } = useModelFields();
|
|
90388
|
+
const { modelMetaMap: modelMetaMap2, masterModel: masterModel2 } = useModelFields();
|
|
90091
90389
|
const activeCollapse = ref(["1", "2", "3"]);
|
|
90390
|
+
const fieldsOptions = computed(() => {
|
|
90391
|
+
const fields = modelMetaMap2.value[masterModel2.value.key]?.fields ?? [];
|
|
90392
|
+
return fields.filter((e) => e.bizType === FIELD_TYPE.ProductQty);
|
|
90393
|
+
});
|
|
90092
90394
|
const table = computed({
|
|
90093
90395
|
get() {
|
|
90094
90396
|
return paper2.value.dynamicTables?.find((item) => item.id === panelData2.refId);
|
|
@@ -90109,10 +90411,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90109
90411
|
table.value.mcBomConfig = {
|
|
90110
90412
|
table_key_: `${table.value.id}:${table.value.field}`,
|
|
90111
90413
|
material_loading_model_enabled_: false,
|
|
90112
|
-
entries_: []
|
|
90414
|
+
entries_: [],
|
|
90415
|
+
required_qty_calc_rule_: RequiredQtyCalcRule.LotQty,
|
|
90416
|
+
bom_init_enabled_: true
|
|
90113
90417
|
};
|
|
90114
90418
|
}
|
|
90115
90419
|
});
|
|
90420
|
+
watchEffect(() => {
|
|
90421
|
+
if (config2.value && !config2.value.required_qty_calc_rule_) {
|
|
90422
|
+
config2.value.required_qty_calc_rule_ = RequiredQtyCalcRule.LotQty;
|
|
90423
|
+
}
|
|
90424
|
+
});
|
|
90116
90425
|
if (businessSetting.isBomGranted) {
|
|
90117
90426
|
watchEffect(() => {
|
|
90118
90427
|
if (config2.value && !config2.value.material_consumption_pattern_) {
|
|
@@ -90154,8 +90463,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90154
90463
|
};
|
|
90155
90464
|
return (_ctx, _cache) => {
|
|
90156
90465
|
const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
|
|
90157
|
-
const _component_a_select = resolveComponent("a-select");
|
|
90158
90466
|
const _component_a_switch = resolveComponent("a-switch");
|
|
90467
|
+
const _component_a_select_option = resolveComponent("a-select-option");
|
|
90468
|
+
const _component_a_select = resolveComponent("a-select");
|
|
90159
90469
|
const _component_a_collapse = resolveComponent("a-collapse");
|
|
90160
90470
|
return openBlock(), createElementBlock("div", _hoisted_1$l, [
|
|
90161
90471
|
createElementVNode("div", _hoisted_2$g, [
|
|
@@ -90190,7 +90500,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90190
90500
|
createVNode(_component_a_collapse, {
|
|
90191
90501
|
class: "override",
|
|
90192
90502
|
activeKey: activeCollapse.value,
|
|
90193
|
-
"onUpdate:activeKey": _cache[
|
|
90503
|
+
"onUpdate:activeKey": _cache[11] || (_cache[11] = ($event) => activeCollapse.value = $event),
|
|
90194
90504
|
ghost: "",
|
|
90195
90505
|
expandIconPosition: "right"
|
|
90196
90506
|
}, {
|
|
@@ -90219,6 +90529,23 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90219
90529
|
}, null, 8, ["tableProps"]),
|
|
90220
90530
|
!config2.value.material_loading_model_enabled_ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
90221
90531
|
createVNode(FormItem, {
|
|
90532
|
+
label: _ctx.$t("sys.enableBarcodeParseRule"),
|
|
90533
|
+
class: "justify-between"
|
|
90534
|
+
}, {
|
|
90535
|
+
default: withCtx(() => [
|
|
90536
|
+
createElementVNode("div", _hoisted_5$7, [
|
|
90537
|
+
createVNode(_component_a_switch, {
|
|
90538
|
+
size: "small",
|
|
90539
|
+
disabled: unref(sheetReadonly2),
|
|
90540
|
+
checked: !config2.value.disable_barcode_parsing_,
|
|
90541
|
+
onChange: _cache[1] || (_cache[1] = ($event) => config2.value.disable_barcode_parsing_ = !config2.value.disable_barcode_parsing_)
|
|
90542
|
+
}, null, 8, ["disabled", "checked"])
|
|
90543
|
+
])
|
|
90544
|
+
]),
|
|
90545
|
+
_: 1
|
|
90546
|
+
}, 8, ["label"]),
|
|
90547
|
+
!config2.value.disable_barcode_parsing_ ? (openBlock(), createBlock(FormItem, {
|
|
90548
|
+
key: 0,
|
|
90222
90549
|
inline: false,
|
|
90223
90550
|
label: _ctx.$t("sys.edhr.mcTable.parseRule"),
|
|
90224
90551
|
class: "justify-between",
|
|
@@ -90227,14 +90554,44 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90227
90554
|
default: withCtx(() => [
|
|
90228
90555
|
createVNode(EditParseRule, {
|
|
90229
90556
|
modelValue: config2.value.barcode_parsing_rules_id_,
|
|
90230
|
-
"onUpdate:modelValue": _cache[
|
|
90557
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => config2.value.barcode_parsing_rules_id_ = $event),
|
|
90231
90558
|
subModelKey: table.value?.model
|
|
90232
90559
|
}, null, 8, ["modelValue", "subModelKey"])
|
|
90233
90560
|
]),
|
|
90234
90561
|
_: 1
|
|
90235
|
-
}, 8, ["label"]),
|
|
90562
|
+
}, 8, ["label"])) : (openBlock(), createBlock(FormItem, {
|
|
90563
|
+
key: 1,
|
|
90564
|
+
inline: false,
|
|
90565
|
+
label: _ctx.$t("sys.params"),
|
|
90566
|
+
class: "justify-between",
|
|
90567
|
+
required: ""
|
|
90568
|
+
}, {
|
|
90569
|
+
default: withCtx(() => [
|
|
90570
|
+
createVNode(_component_a_select, {
|
|
90571
|
+
value: config2.value.scan_param_type_,
|
|
90572
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => config2.value.scan_param_type_ = $event),
|
|
90573
|
+
placeholder: _ctx.$t("sys.chooseText")
|
|
90574
|
+
}, {
|
|
90575
|
+
default: withCtx(() => [
|
|
90576
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(ScanParamType)), (item) => {
|
|
90577
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
90578
|
+
key: item,
|
|
90579
|
+
value: item
|
|
90580
|
+
}, {
|
|
90581
|
+
default: withCtx(() => [
|
|
90582
|
+
createTextVNode(toDisplayString(_ctx.$t(`sys.ScanParamType.${item}`)), 1)
|
|
90583
|
+
]),
|
|
90584
|
+
_: 2
|
|
90585
|
+
}, 1032, ["value"]);
|
|
90586
|
+
}), 128))
|
|
90587
|
+
]),
|
|
90588
|
+
_: 1
|
|
90589
|
+
}, 8, ["value", "placeholder"])
|
|
90590
|
+
]),
|
|
90591
|
+
_: 1
|
|
90592
|
+
}, 8, ["label"])),
|
|
90236
90593
|
unref(businessSetting).isBomGranted ? (openBlock(), createBlock(FormItem, {
|
|
90237
|
-
key:
|
|
90594
|
+
key: 2,
|
|
90238
90595
|
inline: false,
|
|
90239
90596
|
label: _ctx.$t("sys.edhr.mcTable.materialConsumptionPattern"),
|
|
90240
90597
|
class: "justify-between",
|
|
@@ -90243,32 +90600,48 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90243
90600
|
default: withCtx(() => [
|
|
90244
90601
|
createVNode(_component_a_select, {
|
|
90245
90602
|
value: config2.value.material_consumption_pattern_,
|
|
90246
|
-
"onUpdate:value": _cache[
|
|
90603
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => config2.value.material_consumption_pattern_ = $event),
|
|
90247
90604
|
options: patternOptions.value
|
|
90248
90605
|
}, null, 8, ["value", "options"])
|
|
90249
90606
|
]),
|
|
90250
90607
|
_: 1
|
|
90251
90608
|
}, 8, ["label"])) : createCommentVNode("", true),
|
|
90609
|
+
createVNode(FormItem, {
|
|
90610
|
+
label: _ctx.$t("sys.enableInitMaterial"),
|
|
90611
|
+
class: "justify-between"
|
|
90612
|
+
}, {
|
|
90613
|
+
default: withCtx(() => [
|
|
90614
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
90615
|
+
createVNode(_component_a_switch, {
|
|
90616
|
+
size: "small",
|
|
90617
|
+
disabled: unref(sheetReadonly2),
|
|
90618
|
+
checked: config2.value.bom_init_enabled_,
|
|
90619
|
+
"onUpdate:checked": _cache[5] || (_cache[5] = ($event) => config2.value.bom_init_enabled_ = $event)
|
|
90620
|
+
}, null, 8, ["disabled", "checked"])
|
|
90621
|
+
])
|
|
90622
|
+
]),
|
|
90623
|
+
_: 1
|
|
90624
|
+
}, 8, ["label"]),
|
|
90252
90625
|
createVNode(FormItem, {
|
|
90253
90626
|
label: _ctx.$t("sys.edhr.mcTable.personalBom"),
|
|
90254
90627
|
class: "justify-between"
|
|
90255
90628
|
}, {
|
|
90256
90629
|
default: withCtx(() => [
|
|
90257
|
-
createElementVNode("div",
|
|
90630
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
90258
90631
|
createVNode(_component_a_switch, {
|
|
90259
90632
|
size: "small",
|
|
90260
90633
|
disabled: unref(sheetReadonly2),
|
|
90261
90634
|
checked: config2.value.personal_bom_enabled_,
|
|
90262
|
-
"onUpdate:checked": _cache[
|
|
90635
|
+
"onUpdate:checked": _cache[6] || (_cache[6] = ($event) => config2.value.personal_bom_enabled_ = $event)
|
|
90263
90636
|
}, null, 8, ["disabled", "checked"])
|
|
90264
90637
|
])
|
|
90265
90638
|
]),
|
|
90266
90639
|
_: 1
|
|
90267
90640
|
}, 8, ["label"]),
|
|
90268
|
-
config2.value.personal_bom_enabled_ ? (openBlock(), createElementBlock(Fragment, { key:
|
|
90641
|
+
config2.value.personal_bom_enabled_ ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
90269
90642
|
createVNode(BomEntryEditor, {
|
|
90270
90643
|
list: config2.value.entries_,
|
|
90271
|
-
"onUpdate:list": _cache[
|
|
90644
|
+
"onUpdate:list": _cache[7] || (_cache[7] = ($event) => config2.value.entries_ = $event)
|
|
90272
90645
|
}, null, 8, ["list"]),
|
|
90273
90646
|
createVNode(FormItem, {
|
|
90274
90647
|
isFirst: "",
|
|
@@ -90276,18 +90649,69 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
90276
90649
|
class: "justify-between"
|
|
90277
90650
|
}, {
|
|
90278
90651
|
default: withCtx(() => [
|
|
90279
|
-
createElementVNode("div",
|
|
90652
|
+
createElementVNode("div", _hoisted_8$3, [
|
|
90280
90653
|
createVNode(_component_a_switch, {
|
|
90281
90654
|
size: "small",
|
|
90282
90655
|
disabled: unref(sheetReadonly2),
|
|
90283
90656
|
checked: config2.value.sequence_loading_enabled_,
|
|
90284
|
-
"onUpdate:checked": _cache[
|
|
90657
|
+
"onUpdate:checked": _cache[8] || (_cache[8] = ($event) => config2.value.sequence_loading_enabled_ = $event)
|
|
90285
90658
|
}, null, 8, ["disabled", "checked"])
|
|
90286
90659
|
])
|
|
90287
90660
|
]),
|
|
90288
90661
|
_: 1
|
|
90289
90662
|
}, 8, ["label"])
|
|
90290
|
-
], 64)) : createCommentVNode("", true)
|
|
90663
|
+
], 64)) : createCommentVNode("", true),
|
|
90664
|
+
createVNode(FormItem, {
|
|
90665
|
+
inline: false,
|
|
90666
|
+
label: _ctx.$t("sys.requiredQtyCalcRule"),
|
|
90667
|
+
class: "justify-between"
|
|
90668
|
+
}, {
|
|
90669
|
+
default: withCtx(() => [
|
|
90670
|
+
createVNode(_component_a_select, {
|
|
90671
|
+
value: config2.value.required_qty_calc_rule_,
|
|
90672
|
+
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => config2.value.required_qty_calc_rule_ = $event),
|
|
90673
|
+
placeholder: _ctx.$t("sys.chooseText")
|
|
90674
|
+
}, {
|
|
90675
|
+
default: withCtx(() => [
|
|
90676
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.values(unref(RequiredQtyCalcRule)), (item) => {
|
|
90677
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
90678
|
+
key: item,
|
|
90679
|
+
value: item
|
|
90680
|
+
}, {
|
|
90681
|
+
default: withCtx(() => [
|
|
90682
|
+
createTextVNode(toDisplayString(_ctx.$t(`sys.RequiredQtyCalcRule.${item}`)), 1)
|
|
90683
|
+
]),
|
|
90684
|
+
_: 2
|
|
90685
|
+
}, 1032, ["value"]);
|
|
90686
|
+
}), 128))
|
|
90687
|
+
]),
|
|
90688
|
+
_: 1
|
|
90689
|
+
}, 8, ["value", "placeholder"]),
|
|
90690
|
+
config2.value.required_qty_calc_rule_ === unref(RequiredQtyCalcRule).ProductQty ? (openBlock(), createBlock(_component_a_select, {
|
|
90691
|
+
key: 0,
|
|
90692
|
+
value: config2.value.product_qty_field_,
|
|
90693
|
+
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => config2.value.product_qty_field_ = $event),
|
|
90694
|
+
placeholder: _ctx.$t("sys.pleaseSelectField"),
|
|
90695
|
+
class: "mt10px"
|
|
90696
|
+
}, {
|
|
90697
|
+
default: withCtx(() => [
|
|
90698
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(fieldsOptions.value, (item) => {
|
|
90699
|
+
return openBlock(), createBlock(_component_a_select_option, {
|
|
90700
|
+
key: item.key,
|
|
90701
|
+
value: item.key
|
|
90702
|
+
}, {
|
|
90703
|
+
default: withCtx(() => [
|
|
90704
|
+
createTextVNode(toDisplayString(item.name), 1)
|
|
90705
|
+
]),
|
|
90706
|
+
_: 2
|
|
90707
|
+
}, 1032, ["value"]);
|
|
90708
|
+
}), 128))
|
|
90709
|
+
]),
|
|
90710
|
+
_: 1
|
|
90711
|
+
}, 8, ["value", "placeholder"])) : createCommentVNode("", true)
|
|
90712
|
+
]),
|
|
90713
|
+
_: 1
|
|
90714
|
+
}, 8, ["label"])
|
|
90291
90715
|
], 64)) : createCommentVNode("", true)
|
|
90292
90716
|
]),
|
|
90293
90717
|
_: 1
|
|
@@ -91775,7 +92199,51 @@ const sys = {
|
|
|
91775
92199
|
displayFields: "显示字段",
|
|
91776
92200
|
displayFieldsTip: "下拉选项中显示的字段",
|
|
91777
92201
|
selectDisplayFields: "选择显示字段",
|
|
91778
|
-
quickSearchFieldsTip: "作为搜索条件的字段,根据关键字模糊匹配搜索关键字"
|
|
92202
|
+
quickSearchFieldsTip: "作为搜索条件的字段,根据关键字模糊匹配搜索关键字",
|
|
92203
|
+
diagonal: {
|
|
92204
|
+
enableFIeldLabel: "绑定字段",
|
|
92205
|
+
sizeLabel: "分栏数量",
|
|
92206
|
+
directionLabel: "分栏方向",
|
|
92207
|
+
topNameLabel: "上分栏名称",
|
|
92208
|
+
bottomNameLabel: "下分栏名称",
|
|
92209
|
+
middleNameLabel: "中分栏名称",
|
|
92210
|
+
size2: "2 栏",
|
|
92211
|
+
size3: "3 栏",
|
|
92212
|
+
sizeEnum: {
|
|
92213
|
+
2: "两栏",
|
|
92214
|
+
3: "三栏"
|
|
92215
|
+
},
|
|
92216
|
+
directionEnum: {
|
|
92217
|
+
forward: "向左分栏",
|
|
92218
|
+
backward: "向右分栏"
|
|
92219
|
+
},
|
|
92220
|
+
vertexLabel: "放射顶点",
|
|
92221
|
+
vertexEnum: {
|
|
92222
|
+
topLeft: "左上",
|
|
92223
|
+
topRight: "右上",
|
|
92224
|
+
bottomLeft: "左下",
|
|
92225
|
+
bottomRight: "右下"
|
|
92226
|
+
}
|
|
92227
|
+
},
|
|
92228
|
+
enableBarcodeParseRule: "是否启用条码解析",
|
|
92229
|
+
params: "参数",
|
|
92230
|
+
ScanParamType: {
|
|
92231
|
+
lot: "物料批次",
|
|
92232
|
+
uniqueCode: "唯一码"
|
|
92233
|
+
},
|
|
92234
|
+
requiredQtyCalcRule: "需求数量计算规则",
|
|
92235
|
+
enableInitMaterial: "是否初始化物料",
|
|
92236
|
+
pleaseSelectField: "请选择字段",
|
|
92237
|
+
expandConfig: "展开配置",
|
|
92238
|
+
collapseConfig: "收起配置",
|
|
92239
|
+
scanRuleTip: "默认映射规则:条码批次 → 批次字段,条码物料编码 → 物料编码字段,条码有效期 → 有效期字段",
|
|
92240
|
+
RequiredQtyCalcRule: {
|
|
92241
|
+
lotQty: "按批次数量计算上料数量",
|
|
92242
|
+
productQty: "按表单生产数量计算上料数量"
|
|
92243
|
+
},
|
|
92244
|
+
assocFilter: "关联过滤",
|
|
92245
|
+
assocFilterBySourceField: "根据源字段过滤",
|
|
92246
|
+
assocFilterTip: "当前字段可根据「源字段」在表单中的当前值过滤;已选的值保留,不被清除"
|
|
91779
92247
|
};
|
|
91780
92248
|
const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91781
92249
|
__proto__: null,
|