@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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, normalizeStyle } from "vue";
|
|
2
|
-
import { u as useWebUpload } from "./index-
|
|
2
|
+
import { u as useWebUpload } from "./index-CZTvhN0E.js";
|
|
3
3
|
import "ant-design-vue";
|
|
4
|
-
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
4
|
+
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
7
|
const _hoisted_1 = ["src"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, normalizeClass, unref } from "vue";
|
|
2
2
|
import { a as useNamespace } from "./use-namespace-qtLS8nEh.js";
|
|
3
|
-
import { C as CellUpload } from "./cell-upload-
|
|
3
|
+
import { C as CellUpload } from "./cell-upload-DtUd8zB6.js";
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "image-design",
|
|
6
6
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
-
import FileProps from "./file-props-
|
|
2
|
+
import FileProps from "./file-props-DYyaq1fr.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "image-props",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { _ as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
const _sfc_main = {};
|
|
3
3
|
function _sfc_render(_ctx, _cache) {
|
|
4
4
|
return null;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
|
|
2
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import { pick } from "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { g as getFieldWidget } from "./index-
|
|
7
|
+
import { g as getFieldWidget } from "./index-CdaNfYLE.js";
|
|
8
8
|
class CombineFields {
|
|
9
9
|
component = ComponentTypeEnum.CombineFields;
|
|
10
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as PageSizeEnum, e as ComponentTypeEnum,
|
|
1
|
+
import { b as PageSizeEnum, e as ComponentTypeEnum, a8 as ParamModelTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { has, cloneDeep, isNil, isEmpty } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pick, isEmpty, has, cloneDeep, get } from "lodash-es";
|
|
2
|
-
import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-
|
|
3
|
-
import { e as ComponentTypeEnum, h as CellType, a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { A as AsyncGctOnlineComponents, g as getFieldWidget } from "./index-CdaNfYLE.js";
|
|
3
|
+
import { e as ComponentTypeEnum, h as CellType, a as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as ComponentTypeEnum, F as FIELD_TYPE, g as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { e as ComponentTypeEnum, F as FIELD_TYPE, g as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick, has, isEmpty } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum, O as Orientation, x as BooleanShowMode, w as LabelPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { e as ComponentTypeEnum, O as Orientation, x as BooleanShowMode, w as LabelPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { get, pick, omit, merge } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum, O as Orientation, w as LabelPosition,
|
|
2
|
+
import { e as ComponentTypeEnum, O as Orientation, w as LabelPosition, ah as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
6
|
import { B as BaseComponent } from "./BaseComponent-xTm5lvAr.js";
|
|
7
|
-
import { g as getFieldWidget } from "./index-
|
|
7
|
+
import { g as getFieldWidget } from "./index-CdaNfYLE.js";
|
|
8
8
|
class EnumSelect extends BaseComponent {
|
|
9
9
|
component = ComponentTypeEnum.EnumSelect;
|
|
10
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum,
|
|
2
|
+
import { e as ComponentTypeEnum, $ as ImageDisplayModeEnum, y as SignatureNumberTypeEnum, z as SignatureTimeTypeEnum, A as SignShowTypeEnum, D as SignatureTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick, has, isEmpty, cloneDeep, get } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { A as AsyncGctOnlineComponents } from "./index-
|
|
6
|
+
import { A as AsyncGctOnlineComponents } from "./index-CdaNfYLE.js";
|
|
7
7
|
class Tr {
|
|
8
8
|
component = "tr";
|
|
9
9
|
wrapperCmpConfig({ data, parent }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum, F as FIELD_TYPE,
|
|
2
|
+
import { e as ComponentTypeEnum, F as FIELD_TYPE, b3 as RangeCompareOp, ap as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum,
|
|
2
|
+
import { e as ComponentTypeEnum, $ as ImageDisplayModeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum, O as Orientation, x as BooleanShowMode, w as LabelPosition,
|
|
2
|
+
import { e as ComponentTypeEnum, O as Orientation, x as BooleanShowMode, w as LabelPosition, ah as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { g as getFieldWidget } from "./index-
|
|
6
|
+
import { g as getFieldWidget } from "./index-CdaNfYLE.js";
|
|
7
7
|
import { B as BaseComponent } from "./BaseComponent-xTm5lvAr.js";
|
|
8
8
|
class Switch extends BaseComponent {
|
|
9
9
|
component = ComponentTypeEnum.Switch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { has, get, pick } from "lodash-es";
|
|
2
|
-
import { e as ComponentTypeEnum,
|
|
2
|
+
import { e as ComponentTypeEnum, ai as DecimalDisplayMode, b3 as RangeCompareOp, ap as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { e as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { pick } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as api, _ as _export_sfc,
|
|
1
|
+
import { i as api, _ as _export_sfc, bX as getAugmentedNamespace, k as commonjsGlobal, l as getDefaultExportFromCjs, bi as getParseRuleConfig, an as getParseRuleValue, ax as calcFillData, aM as uuid2 } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Bomssr4x.js";
|
|
2
2
|
import { message, Modal, Form } from "ant-design-vue";
|
|
3
|
-
import { watch, ref as ref$1, defineComponent, inject, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, onUnmounted, createVNode, h, onMounted, mergeProps, unref, reactive, Fragment, renderList, toRaw, withKeys, toRef, watchEffect } from "vue";
|
|
3
|
+
import { watch, ref as ref$1, defineComponent, inject, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode, onUnmounted, createVNode, h, onMounted, mergeProps, unref, reactive, Fragment, renderList, toRaw, withKeys, withDirectives, vShow, toRef, watchEffect } from "vue";
|
|
4
4
|
import { debounce, cloneDeep } from "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import { n as noop, t as tryOnScopeDispose, c as isClient, d as tryOnMounted, r as resolveUnref, i as isIOS, e as isString, f as identity, w as watchDebounced, u as useFormModel, M as MBRender, b as MCRender } from "./mb-render-
|
|
6
|
+
import { n as noop, t as tryOnScopeDispose, c as isClient, d as tryOnMounted, r as resolveUnref, i as isIOS, e as isString, f as identity, w as watchDebounced, u as useFormModel, M as MBRender, b as MCRender } from "./mb-render-BOzJ9uDs.js";
|
|
7
7
|
function unrefElement(elRef) {
|
|
8
8
|
var _a;
|
|
9
9
|
const plain = resolveUnref(elRef);
|
|
@@ -422,7 +422,7 @@ class ModalManager {
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
const _hoisted_1$6 = { class: "modal-wrapper__content" };
|
|
425
|
-
const _hoisted_2$
|
|
425
|
+
const _hoisted_2$3 = {
|
|
426
426
|
key: 0,
|
|
427
427
|
class: "modal-wrapper__footer"
|
|
428
428
|
};
|
|
@@ -488,7 +488,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
488
488
|
createElementVNode("div", _hoisted_1$6, [
|
|
489
489
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
490
490
|
]),
|
|
491
|
-
showFooter.value ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
491
|
+
showFooter.value ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
|
|
492
492
|
_options.value.showCancelBtn ? (openBlock(), createBlock(_component_a_button, {
|
|
493
493
|
key: 0,
|
|
494
494
|
onClick: onCancel
|
|
@@ -3508,14 +3508,14 @@ const FormFieldSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId",
|
|
|
3508
3508
|
const _hoisted_1$4 = {
|
|
3509
3509
|
class: /* @__PURE__ */ normalizeClass(["parse-rule-modal__content"])
|
|
3510
3510
|
};
|
|
3511
|
-
const _hoisted_2$
|
|
3511
|
+
const _hoisted_2$2 = {
|
|
3512
3512
|
key: 0,
|
|
3513
3513
|
class: "mb12px"
|
|
3514
3514
|
};
|
|
3515
|
-
const _hoisted_3 = { class: "parse-rule-modal__subtitle" };
|
|
3516
|
-
const _hoisted_4 = { class: "parse-rule-modal__map" };
|
|
3517
|
-
const _hoisted_5 = { class: "parse-rule-modal__actions" };
|
|
3518
|
-
const _hoisted_6 = ["onClick", "title"];
|
|
3515
|
+
const _hoisted_3$1 = { class: "parse-rule-modal__subtitle" };
|
|
3516
|
+
const _hoisted_4$1 = { class: "parse-rule-modal__map" };
|
|
3517
|
+
const _hoisted_5$1 = { class: "parse-rule-modal__actions" };
|
|
3518
|
+
const _hoisted_6$1 = ["onClick", "title"];
|
|
3519
3519
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
3520
3520
|
__name: "parse-rule-modal",
|
|
3521
3521
|
props: {
|
|
@@ -3610,15 +3610,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3610
3610
|
]),
|
|
3611
3611
|
_: 1
|
|
3612
3612
|
}, 8, ["label"]),
|
|
3613
|
-
__props.ruleTip ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
3613
|
+
__props.ruleTip ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
3614
3614
|
createVNode(_component_a_alert, {
|
|
3615
3615
|
message: __props.ruleTip,
|
|
3616
3616
|
type: "info",
|
|
3617
3617
|
"show-icon": ""
|
|
3618
3618
|
}, null, 8, ["message"])
|
|
3619
3619
|
])) : createCommentVNode("", true),
|
|
3620
|
-
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.$t("sys.onlineForm.fieldMapping")), 1),
|
|
3621
|
-
createElementVNode("div", _hoisted_4, [
|
|
3620
|
+
createElementVNode("div", _hoisted_3$1, toDisplayString(_ctx.$t("sys.onlineForm.fieldMapping")), 1),
|
|
3621
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
3622
3622
|
createVNode(_component_a_form, {
|
|
3623
3623
|
ref_key: "formRef",
|
|
3624
3624
|
ref: formRef,
|
|
@@ -3668,12 +3668,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3668
3668
|
]),
|
|
3669
3669
|
_: 2
|
|
3670
3670
|
}, 1032, ["name", "label"]),
|
|
3671
|
-
createElementVNode("div", _hoisted_5, [
|
|
3671
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
3672
3672
|
createElementVNode("i", {
|
|
3673
3673
|
onClick: ($event) => removeField(i),
|
|
3674
3674
|
class: "parse-rule-modal__remove-btn iconfont icon-shanchu1",
|
|
3675
3675
|
title: _ctx.$t("sys.delete")
|
|
3676
|
-
}, null, 8, _hoisted_6)
|
|
3676
|
+
}, null, 8, _hoisted_6$1)
|
|
3677
3677
|
])
|
|
3678
3678
|
]);
|
|
3679
3679
|
}), 128)),
|
|
@@ -3700,35 +3700,126 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3700
3700
|
}
|
|
3701
3701
|
});
|
|
3702
3702
|
const ParseRuleModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0257ff99"]]);
|
|
3703
|
+
const IconScan = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_401_32653)'%3e%3cpath%20d='M8.41026%205.53845H6.03849C5.76236%205.53845%205.5385%205.7623%205.5385%206.03844L5.53847%207.26153V8.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M8.41026%2018.4615H6.03849C5.76236%2018.4615%205.5385%2018.2377%205.5385%2017.9616L5.53847%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%205.53845H17.9615C18.2376%205.53845%2018.4615%205.76231%2018.4615%206.03845L18.4615%208.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%2018.4615H17.9615C18.2376%2018.4615%2018.4615%2018.2377%2018.4615%2017.9616L18.4615%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M23.8461%2012H0.153809'%20stroke='url(%23paint0_linear_401_32653)'%20stroke-width='2'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_401_32653'%20x1='0.153809'%20y1='12.5'%20x2='23.8461'%20y2='12.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3cstop%20offset='0.5'%20stop-color='%23026AC8'/%3e%3cstop%20offset='1'%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_401_32653'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
3703
3704
|
const _hoisted_1$3 = {
|
|
3704
3705
|
class: /* @__PURE__ */ normalizeClass(["scan-modal__content"])
|
|
3705
3706
|
};
|
|
3707
|
+
const _hoisted_2$1 = ["src"];
|
|
3708
|
+
const _hoisted_3 = { class: "ks-row items-center gap-24px" };
|
|
3709
|
+
const _hoisted_4 = { class: "ks-col" };
|
|
3710
|
+
const _hoisted_5 = { class: "scan-modal__subtitle" };
|
|
3711
|
+
const _hoisted_6 = {
|
|
3712
|
+
key: 0,
|
|
3713
|
+
class: "mb12px"
|
|
3714
|
+
};
|
|
3715
|
+
const _hoisted_7 = { class: "scan-modal__map" };
|
|
3716
|
+
const _hoisted_8 = {
|
|
3717
|
+
key: 0,
|
|
3718
|
+
class: "scan-modal__row scan-modal__row--header"
|
|
3719
|
+
};
|
|
3720
|
+
const _hoisted_9 = { class: "scan-modal__barcodeField scan-modal__col-label is-required" };
|
|
3721
|
+
const _hoisted_10 = { class: "scan-modal__formFields scan-modal__col-label is-required" };
|
|
3722
|
+
const _hoisted_11 = { class: "scan-modal__row--content" };
|
|
3723
|
+
const _hoisted_12 = { class: "scan-modal__actions" };
|
|
3724
|
+
const _hoisted_13 = ["onClick", "title"];
|
|
3706
3725
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
3707
3726
|
__name: "scan-modal",
|
|
3708
3727
|
props: {
|
|
3709
3728
|
modal: {},
|
|
3710
3729
|
title: {},
|
|
3711
|
-
|
|
3730
|
+
subModelKey: {},
|
|
3731
|
+
scanParam: {},
|
|
3732
|
+
scanRules: {},
|
|
3733
|
+
onScan: { type: Function },
|
|
3734
|
+
formModelController: {},
|
|
3735
|
+
ruleTip: {}
|
|
3712
3736
|
},
|
|
3713
3737
|
setup(__props) {
|
|
3714
3738
|
const modalOptions = reactive({
|
|
3715
|
-
width:
|
|
3739
|
+
width: 460,
|
|
3716
3740
|
draggable: true,
|
|
3717
3741
|
showFooter: false,
|
|
3718
3742
|
canFullscreen: false,
|
|
3719
3743
|
wrapClassName: "gct-draggable-modal",
|
|
3720
|
-
mask: false
|
|
3744
|
+
mask: false,
|
|
3745
|
+
maskClosable: false
|
|
3721
3746
|
});
|
|
3722
3747
|
const props = __props;
|
|
3723
|
-
const formState = ref$1({
|
|
3748
|
+
const formState = ref$1({
|
|
3749
|
+
parsingRuleId: props.scanRules?.parsingRuleId,
|
|
3750
|
+
fillMapArr: props.scanRules?.fillMapArr
|
|
3751
|
+
});
|
|
3752
|
+
const controller = useFormModel().provideController(props.formModelController);
|
|
3753
|
+
const modelReady = ref$1(!!controller.masterModel);
|
|
3754
|
+
const scanRuleInfo = ref$1();
|
|
3755
|
+
const configExpanded = ref$1(false);
|
|
3756
|
+
onMounted(async () => {
|
|
3757
|
+
if (!controller.masterModel && props.subModelKey) {
|
|
3758
|
+
await controller.init({ model: props.subModelKey });
|
|
3759
|
+
}
|
|
3760
|
+
modelReady.value = !!controller.masterModel;
|
|
3761
|
+
if (formState.value.parsingRuleId) {
|
|
3762
|
+
initRuleFieldOptions(formState.value.parsingRuleId);
|
|
3763
|
+
scanRuleInfo.value = await getParseRuleConfig(formState.value.parsingRuleId);
|
|
3764
|
+
}
|
|
3765
|
+
});
|
|
3766
|
+
const ruleFieldOptions = ref$1([]);
|
|
3724
3767
|
const onEnter = (...args) => {
|
|
3725
3768
|
console.log("onEnter", args, formState.value);
|
|
3726
|
-
|
|
3727
|
-
formState.value
|
|
3769
|
+
let parsedValue, transformedData;
|
|
3770
|
+
const fillMaps = formState.value.fillMapArr;
|
|
3771
|
+
if (scanRuleInfo.value) {
|
|
3772
|
+
parsedValue = getParseRuleValue(formState.value.str, JSON.stringify(scanRuleInfo.value));
|
|
3773
|
+
} else if (props.scanParam) {
|
|
3774
|
+
parsedValue = { [props.scanParam]: formState.value.str };
|
|
3775
|
+
}
|
|
3776
|
+
if (fillMaps?.length) transformedData = calcFillData(parsedValue, fillMaps);
|
|
3777
|
+
props.onScan({ str: formState.value.str, parsedValue, transformedData });
|
|
3778
|
+
formState.value.str = "";
|
|
3779
|
+
};
|
|
3780
|
+
const initRuleFieldOptions = async (id) => {
|
|
3781
|
+
if (!id) {
|
|
3782
|
+
ruleFieldOptions.value = [];
|
|
3783
|
+
return;
|
|
3784
|
+
}
|
|
3785
|
+
const config = await getParseRuleConfig(id);
|
|
3786
|
+
if (!config) {
|
|
3787
|
+
ruleFieldOptions.value = [];
|
|
3788
|
+
return;
|
|
3789
|
+
}
|
|
3790
|
+
scanRuleInfo.value = config;
|
|
3791
|
+
ruleFieldOptions.value = config.fieldList.map((field) => {
|
|
3792
|
+
return {
|
|
3793
|
+
label: field.alias ?? $t(`sys.edhr.labelConfigFields.${field.type}`),
|
|
3794
|
+
value: field.key
|
|
3795
|
+
};
|
|
3796
|
+
});
|
|
3797
|
+
};
|
|
3798
|
+
const onRuleChange = (rule) => {
|
|
3799
|
+
if (rule === formState.value.parsingRuleId) {
|
|
3800
|
+
return;
|
|
3801
|
+
}
|
|
3802
|
+
formState.value.parsingRuleId = rule;
|
|
3803
|
+
formState.value.fillMapArr = [];
|
|
3804
|
+
initRuleFieldOptions(rule);
|
|
3805
|
+
};
|
|
3806
|
+
const addFieldMap = () => {
|
|
3807
|
+
if (!formState.value.fillMapArr) {
|
|
3808
|
+
formState.value.fillMapArr = [];
|
|
3809
|
+
}
|
|
3810
|
+
formState.value.fillMapArr.push({});
|
|
3811
|
+
};
|
|
3812
|
+
const removeField = (index) => {
|
|
3813
|
+
formState.value.fillMapArr?.splice(index, 1);
|
|
3728
3814
|
};
|
|
3729
3815
|
return (_ctx, _cache) => {
|
|
3730
3816
|
const _component_a_input = resolveComponent("a-input");
|
|
3731
3817
|
const _component_a_form_item = resolveComponent("a-form-item");
|
|
3818
|
+
const _component_a_divider = resolveComponent("a-divider");
|
|
3819
|
+
const _component_a_alert = resolveComponent("a-alert");
|
|
3820
|
+
const _component_a_select = resolveComponent("a-select");
|
|
3821
|
+
const _component_a_button = resolveComponent("a-button");
|
|
3822
|
+
const _component_a_form = resolveComponent("a-form");
|
|
3732
3823
|
return openBlock(), createBlock(unref(ModalWrapper), {
|
|
3733
3824
|
opts: modalOptions,
|
|
3734
3825
|
class: normalizeClass(["scan-modal"])
|
|
@@ -3744,11 +3835,137 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3744
3835
|
createVNode(_component_a_input, {
|
|
3745
3836
|
value: formState.value.str,
|
|
3746
3837
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.str = $event),
|
|
3838
|
+
size: "large",
|
|
3747
3839
|
onKeyup: withKeys(onEnter, ["enter"])
|
|
3748
|
-
},
|
|
3840
|
+
}, {
|
|
3841
|
+
prefix: withCtx(() => [
|
|
3842
|
+
createElementVNode("img", {
|
|
3843
|
+
src: unref(IconScan),
|
|
3844
|
+
width: "24",
|
|
3845
|
+
height: "24"
|
|
3846
|
+
}, null, 8, _hoisted_2$1)
|
|
3847
|
+
]),
|
|
3848
|
+
_: 1
|
|
3849
|
+
}, 8, ["value"])
|
|
3749
3850
|
]),
|
|
3750
3851
|
_: 1
|
|
3751
|
-
}, 8, ["label"])
|
|
3852
|
+
}, 8, ["label"]),
|
|
3853
|
+
createVNode(_component_a_divider, { style: { "width": "calc(100% + 48px)", "margin": "28px 0 16px -24px" } }),
|
|
3854
|
+
createElementVNode("div", _hoisted_3, [
|
|
3855
|
+
createElementVNode("div", _hoisted_4, [
|
|
3856
|
+
createVNode(_component_a_form_item, {
|
|
3857
|
+
class: "scan-modal__rule",
|
|
3858
|
+
label: _ctx.$t("sys.edhr.mcTable.parseRule") + ":",
|
|
3859
|
+
name: "parsingRuleId"
|
|
3860
|
+
}, {
|
|
3861
|
+
default: withCtx(() => [
|
|
3862
|
+
createVNode(_sfc_main$7, {
|
|
3863
|
+
"model-value": formState.value.parsingRuleId,
|
|
3864
|
+
"onUpdate:modelValue": onRuleChange,
|
|
3865
|
+
modelKey: "em_barcode_parsing_rules"
|
|
3866
|
+
}, null, 8, ["model-value"])
|
|
3867
|
+
]),
|
|
3868
|
+
_: 1
|
|
3869
|
+
}, 8, ["label"])
|
|
3870
|
+
]),
|
|
3871
|
+
createElementVNode("div", {
|
|
3872
|
+
class: "primary-gct cursor-pointer whitespace-nowrap",
|
|
3873
|
+
onClick: _cache[1] || (_cache[1] = ($event) => configExpanded.value = !configExpanded.value)
|
|
3874
|
+
}, [
|
|
3875
|
+
createTextVNode(toDisplayString(configExpanded.value ? _ctx.$t("sys.collapseConfig") : _ctx.$t("sys.expandConfig")) + " ", 1),
|
|
3876
|
+
createElementVNode("i", {
|
|
3877
|
+
class: normalizeClass(["iconfont ml4px", configExpanded.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"])
|
|
3878
|
+
}, null, 2)
|
|
3879
|
+
])
|
|
3880
|
+
]),
|
|
3881
|
+
withDirectives(createElementVNode("div", null, [
|
|
3882
|
+
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.$t("sys.onlineForm.fieldMapping")), 1),
|
|
3883
|
+
__props.ruleTip ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
3884
|
+
createVNode(_component_a_alert, {
|
|
3885
|
+
message: __props.ruleTip,
|
|
3886
|
+
type: "info",
|
|
3887
|
+
"show-icon": ""
|
|
3888
|
+
}, null, 8, ["message"])
|
|
3889
|
+
])) : createCommentVNode("", true),
|
|
3890
|
+
createElementVNode("div", _hoisted_7, [
|
|
3891
|
+
createVNode(_component_a_form, {
|
|
3892
|
+
ref: "formRef",
|
|
3893
|
+
model: formState.value,
|
|
3894
|
+
layout: "vertical"
|
|
3895
|
+
}, {
|
|
3896
|
+
default: withCtx(() => [
|
|
3897
|
+
formState.value.fillMapArr?.length ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
3898
|
+
createElementVNode("div", _hoisted_9, toDisplayString(_ctx.$t("sys.onlineForm.barcodeField")), 1),
|
|
3899
|
+
createElementVNode("div", _hoisted_10, toDisplayString(_ctx.$t("sys.onlineForm.formFields")), 1)
|
|
3900
|
+
])) : createCommentVNode("", true),
|
|
3901
|
+
createElementVNode("div", _hoisted_11, [
|
|
3902
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(formState.value.fillMapArr, (item, i) => {
|
|
3903
|
+
return openBlock(), createElementBlock("div", {
|
|
3904
|
+
class: "scan-modal__row",
|
|
3905
|
+
key: i
|
|
3906
|
+
}, [
|
|
3907
|
+
createVNode(_component_a_form_item, {
|
|
3908
|
+
class: "scan-modal__barcodeField",
|
|
3909
|
+
name: ["fillMapArr", i, "barcodeField"],
|
|
3910
|
+
rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
|
|
3911
|
+
}, {
|
|
3912
|
+
default: withCtx(() => [
|
|
3913
|
+
createVNode(_component_a_select, {
|
|
3914
|
+
value: item.barcodeField,
|
|
3915
|
+
"onUpdate:value": ($event) => item.barcodeField = $event,
|
|
3916
|
+
placeholder: _ctx.$t("sys.chooseText"),
|
|
3917
|
+
options: ruleFieldOptions.value
|
|
3918
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder", "options"])
|
|
3919
|
+
]),
|
|
3920
|
+
_: 2
|
|
3921
|
+
}, 1032, ["name", "rules"]),
|
|
3922
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "scan-modal__divider" }, [
|
|
3923
|
+
createElementVNode("i", { class: "gct-iconfont icon-lianjie text-[#8B8B8B] text-12px" })
|
|
3924
|
+
], -1)),
|
|
3925
|
+
createVNode(_component_a_form_item, {
|
|
3926
|
+
class: "scan-modal__formFields",
|
|
3927
|
+
name: ["fillMapArr", i, "formFields"],
|
|
3928
|
+
rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
|
|
3929
|
+
}, {
|
|
3930
|
+
default: withCtx(() => [
|
|
3931
|
+
modelReady.value ? (openBlock(), createBlock(unref(FormFieldSelect), {
|
|
3932
|
+
key: 0,
|
|
3933
|
+
subModelKey: __props.subModelKey,
|
|
3934
|
+
multiple: true,
|
|
3935
|
+
modelValue: item.formFields,
|
|
3936
|
+
"onUpdate:modelValue": ($event) => item.formFields = $event
|
|
3937
|
+
}, null, 8, ["subModelKey", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
|
|
3938
|
+
]),
|
|
3939
|
+
_: 2
|
|
3940
|
+
}, 1032, ["name", "rules"]),
|
|
3941
|
+
createElementVNode("div", _hoisted_12, [
|
|
3942
|
+
createElementVNode("i", {
|
|
3943
|
+
onClick: ($event) => removeField(i),
|
|
3944
|
+
class: "scan-modal__remove-btn iconfont icon-shanchu1 text-[#8B8B8B]",
|
|
3945
|
+
title: _ctx.$t("sys.delete")
|
|
3946
|
+
}, null, 8, _hoisted_13)
|
|
3947
|
+
])
|
|
3948
|
+
]);
|
|
3949
|
+
}), 128))
|
|
3950
|
+
]),
|
|
3951
|
+
createVNode(_component_a_button, {
|
|
3952
|
+
class: "scan-modal__add-btn",
|
|
3953
|
+
type: "link",
|
|
3954
|
+
onClick: addFieldMap
|
|
3955
|
+
}, {
|
|
3956
|
+
default: withCtx(() => [
|
|
3957
|
+
_cache[3] || (_cache[3] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)),
|
|
3958
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("sys.onlineForm.addFieldMapping")), 1)
|
|
3959
|
+
]),
|
|
3960
|
+
_: 1
|
|
3961
|
+
})
|
|
3962
|
+
]),
|
|
3963
|
+
_: 1
|
|
3964
|
+
}, 8, ["model"])
|
|
3965
|
+
])
|
|
3966
|
+
], 512), [
|
|
3967
|
+
[vShow, configExpanded.value]
|
|
3968
|
+
])
|
|
3752
3969
|
])
|
|
3753
3970
|
]),
|
|
3754
3971
|
_: 1
|
|
@@ -3756,16 +3973,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3756
3973
|
};
|
|
3757
3974
|
}
|
|
3758
3975
|
});
|
|
3759
|
-
const ScanModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
3976
|
+
const ScanModal$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-c02eb83e"]]);
|
|
3760
3977
|
class SubTableRender {
|
|
3761
3978
|
modalManager = new ModalManager();
|
|
3762
3979
|
openScanModal(opts) {
|
|
3763
3980
|
return this.modalManager.openModal(
|
|
3764
3981
|
ScanModal$1,
|
|
3765
3982
|
{
|
|
3766
|
-
onScan: opts.onScan
|
|
3983
|
+
onScan: opts.onScan,
|
|
3984
|
+
subModelKey: opts.subModelKey,
|
|
3985
|
+
formModelController: opts.formModelController,
|
|
3986
|
+
scanRules: opts.scanRules,
|
|
3987
|
+
scanParam: opts.scanParam
|
|
3767
3988
|
},
|
|
3768
|
-
{ title: opts.title, mask: false }
|
|
3989
|
+
{ title: opts.title, mask: false, draggable: true }
|
|
3769
3990
|
);
|
|
3770
3991
|
}
|
|
3771
3992
|
openChangeRuleModal = async (params) => {
|
|
@@ -4009,7 +4230,8 @@ class McWebRender extends MCRender {
|
|
|
4009
4230
|
const modal = window.NocodeAdapter.utils.overlay.createModal(
|
|
4010
4231
|
ScanModal$1,
|
|
4011
4232
|
{
|
|
4012
|
-
|
|
4233
|
+
...opts,
|
|
4234
|
+
ruleTip: $t("sys.scanRuleTip")
|
|
4013
4235
|
},
|
|
4014
4236
|
{ title: opts.title, mask: false }
|
|
4015
4237
|
);
|