@gct-paas/excel 0.1.48-beta.0 → 0.1.48
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/README.md +4 -3
- package/dist/AntdIcon-DCIaV352.js +1108 -0
- package/dist/{BaseComponent-CuX5xLFK.js → BaseComponent-CZpM9r44.js} +3 -4
- package/dist/{VueVideoPlayer-CBBB12Hj.js → VueVideoPlayer-B8GR2HPo.js} +2 -2
- package/dist/{align-editor-Df9gS31T.js → align-editor--BUxJjPg.js} +1 -1
- package/dist/{barcode-design-B34-4xJ9.js → barcode-design-c3GTQF-e.js} +2 -3
- package/dist/base/index.es.js +222 -517
- package/dist/{diagonal-design-D0HXMI8w.js → diagonal-design-rPVXdCYs.js} +2 -3
- package/dist/{dynamic-table-action-9sxv3gW5.js → dynamic-table-action-UhdVqWq_.js} +322 -452
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js} +597 -2298
- package/dist/{edit.utils-CXmmCnxE-0uJiCs33.js → edit.utils-CXmmCnxE-BXlWf2Zf.js} +1 -1
- package/dist/excel.css +723 -611
- package/dist/{exceljs.min-Doeyz39_.js → exceljs.min-Cr3KhthP.js} +2 -2
- package/dist/{font-editor-B8A9tDhO.js → font-editor-D8hczTjp.js} +3 -3
- package/dist/{image-design-CVyCbbef.js → image-design-C3yJcthI.js} +8 -3
- package/dist/{index-B3hu8heh.js → index-6D_uimK5.js} +2 -3
- package/dist/{index-DuuvFB0e.js → index-9AkXvLCn.js} +2 -3
- package/dist/index-B6csmYLK.js +4353 -0
- package/dist/{index-hDsTasdu.js → index-BAzcfKM5.js} +2 -3
- package/dist/{index-VrLq9hAc.js → index-BCoiCGuV.js} +3736 -8994
- package/dist/{index-R95URjcc.js → index-BDr7t7vL.js} +1 -2
- package/dist/{index-FCg2Jzvu.js → index-Bd15pfRH.js} +1 -2
- package/dist/{index-Uy8bXkuC.js → index-Bj0FhTCX.js} +3 -4
- package/dist/{index-ucaRXWE8.js → index-BrXTVTZI.js} +2 -3
- package/dist/{index-BLJdXkdZ.js → index-Bt9PAFFY.js} +4 -5
- package/dist/{index-DKKIL32g.js → index-C-1l-W9I.js} +2 -3
- package/dist/{index-B7Yt5TSq.js → index-C6WDE2xc.js} +1 -2
- package/dist/{index-CNmwpU3G.js → index-CBb53WuP.js} +3 -7
- package/dist/{index-BOO2K9Vu.js → index-CDhYyvG6.js} +3 -4
- package/dist/{index-TeozNhWH.js → index-CSCuwunJ.js} +2 -3
- package/dist/{index-BwyHByzZ.js → index-CZo7qVZK.js} +1 -2
- package/dist/{index-DMVIENZW.js → index-D6p0ybhH.js} +3 -4
- package/dist/{index-Bj2qRb0q.js → index-DBSvao2o.js} +1 -2
- package/dist/{index-CzztJ4fH.js → index-DDi7ZgcG.js} +3 -4
- package/dist/{index-PSQkEXxq.js → index-DGhgiFKR.js} +2 -3
- package/dist/{index-CGU3uK4z.js → index-DMAuxwlt.js} +1 -2
- package/dist/{index-CDObWZ7G.js → index-DNBQ2Mcz.js} +2 -3
- package/dist/{index-XE84LVO7.js → index-DQC7zJRO.js} +1 -2
- package/dist/{index-RG23XjoT.js → index-DRKCOV3w.js} +1 -2
- package/dist/{index-vEZ4Yr2u.js → index-DeLqXVq_.js} +2 -3
- package/dist/{index-CS1tP-l0.js → index-DphaGraj.js} +2 -3
- package/dist/{index-D_hAd0MQ.js → index-Ns6S766a.js} +3 -4
- package/dist/{index-D0VBKmKt.js → index-QwgVd2p_.js} +2 -3
- package/dist/{index-Cn_bmfoD.js → index-UnwowxL3.js} +1 -2
- package/dist/{index-7VROqGqR.js → index-dJ-8GxrY.js} +2 -3
- package/dist/{index-DA7GAWZ1.js → index-rFlXPuqT.js} +3 -4
- package/dist/{index-dUCz8OdV.js → index-rpyMdjHC.js} +2 -3
- package/dist/{index-Bb3Ugl3c.js → index-uIGXMq0b.js} +2 -3
- package/dist/{index-DU4dWvY6.js → index-wKwGHLnP.js} +1 -2
- package/dist/{index-CMmaJ4Ss.js → index-xTU-LDgM.js} +2 -3
- package/dist/index.es.js +46 -52
- package/dist/mb-render-CQlqaMrC.js +276 -0
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-ApLSXGFP.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-219qzsVL.js} +3 -27
- package/dist/{pagination-design-B5DxwV5F.js → pagination-design-CHYFEADY.js} +2 -3
- package/dist/paper-widget-design-DytgPKbZ.js +4 -0
- package/dist/{print-runtime-instance-BDM-anCd.js → print-runtime-instance-BpLQbf4O.js} +1 -1
- package/dist/{print-snapshot-renderer-kB1Bw7A_.js → print-snapshot-renderer-Di_OBv6Z.js} +3 -3
- package/dist/{qrcode-design-bN48s3rk.js → qrcode-design-BDBuzKwl.js} +1 -1
- package/dist/{revo-grid.entry-BXEGtAbW.js → revo-grid.entry-Be5Mx_h7.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CImeTxBl.js → revogr-attribution_7.entry-DmJFrubR.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DqcrJ6zB.js → revogr-clipboard_3.entry-COcvqK0w.js} +2 -2
- package/dist/{revogr-data_4.entry-Ccdsy3nO.js → revogr-data_4.entry-Dc4luGHv.js} +2 -2
- package/dist/{revogr-filter-panel.entry-B2xM2jvB.js → revogr-filter-panel.entry-B1l-ouo-.js} +1 -1
- package/dist/seal-design-Bku0cT8Z.js +4 -0
- package/dist/{serialnumber-design-BGTOIn2S.js → serialnumber-design-hcI8TwmS.js} +1 -1
- package/dist/shared/index.es.js +28 -29
- package/dist/{single-field-drop-b2b71HAk.js → single-field-drop-BmHF9A4z.js} +3 -2
- package/dist/{size-editor-DtX2f2CF.js → size-editor-D4ZNlV-c.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +1 -1
- package/dist/src/adapter/index.d.ts +0 -2
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +1 -37
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -7
- package/dist/src/domain/table/design/autofill-expander.d.ts +0 -2
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +0 -6
- package/dist/src/domain/table/index.d.ts +1 -1
- package/dist/src/domain/table/types.d.ts +0 -2
- package/dist/src/index.d.ts +0 -8
- package/dist/src/nocode-base/src/components/document-sub-table-action/dynamic-table-action.vue.d.ts +2 -0
- package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +3 -0
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +4 -0
- package/dist/src/nocode-base/src/components/material-consume/types.d.ts +5 -1
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +4 -4
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +4 -1
- package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +28 -1
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +8 -9
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +1 -7
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +2 -8
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +6 -55
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -24
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +1 -12
- package/dist/src/nocode-base/src/interface/render.d.ts +1 -2
- package/dist/src/nocode-base/src/interface/transform.d.ts +0 -3
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +0 -1
- package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +2 -5
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -8
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -8
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +15 -2
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +10 -0
- package/dist/src/nocode-web-render/src/components/print-fill-background-selector.vue.d.ts +2 -0
- package/dist/src/nocode-web-render/src/hooks/index.d.ts +2 -0
- package/dist/src/{shared → nocode-web-render/src}/hooks/useWebUpload.d.ts +1 -1
- package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +15 -0
- package/dist/src/nocode-web-render/src/index.d.ts +6 -0
- package/dist/src/nocode-web-render/src/logic/index.d.ts +1 -0
- package/dist/src/nocode-web-render/src/render/common/index.d.ts +2 -0
- package/dist/src/nocode-web-render/src/render/common/modal-manager.d.ts +20 -0
- package/dist/src/{adapter/web → nocode-web-render/src/render/common}/open-util.d.ts +1 -1
- package/dist/src/nocode-web-render/src/render/index.d.ts +10 -0
- package/dist/src/{online-form/src/views/designer/modules/panel/sub-table/comps → nocode-web-render/src/render/parse-rule}/add-rule-btn.vue.d.ts +1 -1
- package/dist/src/nocode-web-render/src/render/parse-rule/index.d.ts +3 -0
- package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +15 -0
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/allocate-web-render.d.ts +4 -0
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/index.d.ts +1 -0
- package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/common}/inventory-scan-columns.d.ts +1 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +15 -0
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +19 -0
- package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/common}/sub-table-render.d.ts +5 -2
- package/dist/src/nocode-web-render/src/render/sub-table/index.d.ts +3 -0
- package/dist/src/nocode-web-render/src/render/sub-table/material-balance/index.d.ts +1 -0
- package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/material-balance}/material-consume-modal.vue.d.ts +1 -1
- package/dist/src/{adapter/web/material-balance-render.d.ts → nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts} +1 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/bom-modal.vue.d.ts +11 -0
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +4 -0
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +42 -0
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +2 -0
- package/dist/src/{adapter/web/stocktake-render.d.ts → nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts} +2 -2
- package/dist/src/nocode-web-render/src/types/hooks/index.d.ts +1 -0
- package/dist/src/nocode-web-render/src/types/index.d.ts +1 -0
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +4 -4
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +0 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +0 -144
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +4 -87
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +0 -6
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/panel-check-table/select-check-ds-modal.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/designer/types/index.d.ts +1 -12
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +4 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
- package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +2 -162
- package/dist/src/shared/components/Signature/logic/index.d.ts +0 -14
- package/dist/src/shared/enum/field-type.d.ts +3 -8
- package/dist/src/shared/index.d.ts +0 -1
- package/dist/src/shared/types/index.d.ts +0 -1
- package/dist/{sub-table-factory-DoEvzrVN.js → sub-table-factory-ZW7olA2I.js} +89 -276
- package/dist/{text-design-BQVBFcI0.js → text-design-Br0TEp5D.js} +2 -3
- package/dist/{throttle-Cpk1LoGk-DR_8z9qq.js → throttle-Cpk1LoGk-DEDsjc1B.js} +1 -1
- package/dist/{timediff-design-DioTJEvx.js → timediff-design-BHLUYM_L.js} +1 -2
- package/dist/{trace-like-wrapper-CjxBkfYK.js → trace-like-wrapper-Bdu2jxVN.js} +2 -3
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DpfdcyX_.js → value-editor.vue_vue_type_style_index_0_lang-B9PzsrIT.js} +2 -3
- package/dist/web-render/index.d.ts +1 -0
- package/dist/web-render/index.es.js +595 -0
- package/dist/{widget-barcode-CEn3AYG0.js → widget-barcode-CGOzhXgh.js} +4 -5
- package/dist/{widget-diagonal-DbOhaNpW.js → widget-diagonal-D8MBtLON.js} +4 -4
- package/dist/{widget-image-BGP2w2mj.js → widget-image-CT93IXuR.js} +7 -5
- package/dist/{widget-line-CkSPcw5A.js → widget-line-BYSp1hP9.js} +2 -3
- package/dist/{widget-pagination-BH0VtWHT.js → widget-pagination-no9iK43-.js} +5 -6
- package/dist/{widget-power-DuTIvdpR.js → widget-power-5rx7wvJp.js} +4 -4
- package/dist/{widget-qrcode-CJJjPnwn.js → widget-qrcode-D2E9PmDl.js} +3 -4
- package/dist/{widget-rangelimit-828JH1wm.js → widget-rangelimit-F4ize9rw.js} +4 -3
- package/dist/{widget-serialnumber-CIjY3I-t.js → widget-serialnumber-Ci8R_067.js} +1 -1
- package/dist/{widget-text-C_Ja4yWN.js → widget-text-DuMr7oMw.js} +5 -5
- package/dist/{widget-timediff-CjmATkLS.js → widget-timediff-DBgkCEqn.js} +2 -3
- package/package.json +6 -2
- package/dist/paper-widget-design-A55mbwYv.js +0 -4
- package/dist/seal-design-B3FBumLr.js +0 -4
- package/dist/src/adapter/web/material-consume-render.d.ts +0 -25
- package/dist/src/domain/document-business/business/product-release/profile.d.ts +0 -2
- package/dist/src/domain/document-business/business/product-release/service.d.ts +0 -2
- package/dist/src/domain/document-business/index.d.ts +0 -2
- package/dist/src/domain/document-business/registry.d.ts +0 -2
- package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
- package/dist/src/domain/document-business/types.d.ts +0 -24
- package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +0 -2
- package/dist/src/domain/field/query-filter.d.ts +0 -15
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +0 -12
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -2
- package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +0 -19
- package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +0 -15
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +0 -4
- package/dist/src/nocode-base/src/hooks/render-page/initial-value-data-sources.d.ts +0 -3
- package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +0 -51
- package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +0 -3
- package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +0 -23
- package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +0 -23
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/message-rule-config/rule-modal.vue.d.ts +0 -32
- package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +0 -9
- package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +0 -7
- package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +0 -41
- package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +0 -16
- package/dist/src/shared/types/upload.d.ts +0 -11
- package/dist/src/shared/utils/withRequestCache.d.ts +0 -27
- /package/dist/src/{adapter/web/setup.d.ts → nocode-web-render/src/adapter/index.d.ts} +0 -0
- /package/dist/src/{adapter/web/upload.d.ts → nocode-web-render/src/logic/utils.d.ts} +0 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import { M as ModalWrapper, _ as _sfc_main$3 } from "../index-B6csmYLK.js";
|
|
2
|
+
import { A, B, P, S, j, h, i, u } from "../index-B6csmYLK.js";
|
|
3
|
+
import { message } from "ant-design-vue";
|
|
4
|
+
import { J as useModal, a7 as _export_sfc, E as api, c3 as getParseRuleConfig, b1 as getParseRuleValue, bT as calcFillData, aX as getLotLockedReason } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
|
|
5
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, createVNode, createTextVNode, reactive, onMounted, createBlock, unref, withCtx, withKeys, withDirectives, createCommentVNode, vShow, computed, mergeProps, toHandlers } from "vue";
|
|
6
|
+
import { cloneDeep } from "lodash-es";
|
|
7
|
+
import "dayjs";
|
|
8
|
+
import { VxeGrid } from "vxe-table";
|
|
9
|
+
const _hoisted_1$2 = { class: "print-fill-background-selector" };
|
|
10
|
+
const _hoisted_2$1 = { class: "selector-title" };
|
|
11
|
+
const _hoisted_3$1 = { class: "selector-options" };
|
|
12
|
+
const _hoisted_4$1 = ["onClick"];
|
|
13
|
+
const _hoisted_5$1 = { class: "preview-card" };
|
|
14
|
+
const _hoisted_6$1 = { class: "preview-sheet" };
|
|
15
|
+
const _hoisted_7$1 = { class: "radio-label" };
|
|
16
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
17
|
+
__name: "print-fill-background-selector",
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const selected = ref(false);
|
|
20
|
+
const options = [
|
|
21
|
+
{ label: $t("sys.printFillAreaBgYes"), value: true },
|
|
22
|
+
{ label: $t("sys.printFillAreaBgNo"), value: false }
|
|
23
|
+
];
|
|
24
|
+
useModal(async () => ({ ok: true, data: [{ showPrintFieldBg: selected.value }] }));
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
const _component_a_radio = resolveComponent("a-radio");
|
|
27
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
28
|
+
createElementVNode("div", _hoisted_2$1, toDisplayString(_ctx.$t("sys.printFillAreaBg")), 1),
|
|
29
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
30
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(options, (option) => {
|
|
31
|
+
return createElementVNode("button", {
|
|
32
|
+
key: String(option.value),
|
|
33
|
+
type: "button",
|
|
34
|
+
class: normalizeClass(["selector-option", selected.value === option.value && "is-selected"]),
|
|
35
|
+
onClick: ($event) => selected.value = option.value
|
|
36
|
+
}, [
|
|
37
|
+
createElementVNode("span", _hoisted_5$1, [
|
|
38
|
+
createElementVNode("span", _hoisted_6$1, [
|
|
39
|
+
createElementVNode("span", {
|
|
40
|
+
class: normalizeClass(["preview-value", option.value && "with-background"])
|
|
41
|
+
}, "aaa", 2)
|
|
42
|
+
])
|
|
43
|
+
]),
|
|
44
|
+
createElementVNode("span", _hoisted_7$1, [
|
|
45
|
+
createVNode(_component_a_radio, {
|
|
46
|
+
checked: selected.value === option.value
|
|
47
|
+
}, null, 8, ["checked"]),
|
|
48
|
+
createTextVNode(" " + toDisplayString(option.label), 1)
|
|
49
|
+
])
|
|
50
|
+
], 10, _hoisted_4$1);
|
|
51
|
+
}), 64))
|
|
52
|
+
])
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const PrintFillBackgroundSelector = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-a96546b6"]]);
|
|
58
|
+
var PrintModeEnum = /* @__PURE__ */ ((PrintModeEnum2) => {
|
|
59
|
+
PrintModeEnum2["ASYNC"] = "async";
|
|
60
|
+
PrintModeEnum2["SYNC"] = "sync";
|
|
61
|
+
return PrintModeEnum2;
|
|
62
|
+
})(PrintModeEnum || {});
|
|
63
|
+
var FileModeEnum = /* @__PURE__ */ ((FileModeEnum2) => {
|
|
64
|
+
FileModeEnum2["ZIP"] = "zip";
|
|
65
|
+
FileModeEnum2["UN_ZIP"] = "unZip";
|
|
66
|
+
return FileModeEnum2;
|
|
67
|
+
})(FileModeEnum || {});
|
|
68
|
+
const printPolling = useSingletonPolling();
|
|
69
|
+
async function formPrint(tmplInstantId, printConfig) {
|
|
70
|
+
if (!printConfig) {
|
|
71
|
+
const result = await window.NocodeAdapter.utils.overlay.modal(
|
|
72
|
+
PrintFillBackgroundSelector,
|
|
73
|
+
{},
|
|
74
|
+
{
|
|
75
|
+
title: $t("sys.onlineForm.singlePrint"),
|
|
76
|
+
width: 640,
|
|
77
|
+
okText: $t("sys.okText"),
|
|
78
|
+
showFooter: true
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
if (!result.ok) return;
|
|
82
|
+
printConfig = {
|
|
83
|
+
apiMode: "sync",
|
|
84
|
+
fileMode: "unZip",
|
|
85
|
+
showPrintFieldBg: result.data?.[0]?.showPrintFieldBg ?? false
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
const key = await api.apaas.fileTask.postSubmit({
|
|
89
|
+
tmplInstantId,
|
|
90
|
+
type: "FORM",
|
|
91
|
+
showPrintFieldBg: printConfig?.showPrintFieldBg
|
|
92
|
+
});
|
|
93
|
+
if (!key) return;
|
|
94
|
+
const hide = message.loading("打印中...", 0);
|
|
95
|
+
printPolling.start((signal) => pollPrintStatus(key, signal)).then(async (content) => {
|
|
96
|
+
hide();
|
|
97
|
+
message.success(content.message);
|
|
98
|
+
const url = `/minio/${content.appId}/${content.url}`;
|
|
99
|
+
switch (printConfig?.fileMode) {
|
|
100
|
+
case "zip":
|
|
101
|
+
downloadByUrl({ url });
|
|
102
|
+
break;
|
|
103
|
+
case "unZip":
|
|
104
|
+
await unzipUrl({ url: `/${content.url}`, appId: content.appId });
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
downloadByUrl({ url });
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}).catch((err) => {
|
|
111
|
+
hide();
|
|
112
|
+
if (err?.name === "AbortError") return;
|
|
113
|
+
message.error(err.message);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
async function pollPrintStatus(id, signal) {
|
|
117
|
+
let retry = 0;
|
|
118
|
+
while (retry < 100) {
|
|
119
|
+
if (signal?.aborted) {
|
|
120
|
+
throw new DOMException("轮询已中断", "AbortError");
|
|
121
|
+
}
|
|
122
|
+
const { status, url, appId } = await api.platform.fileTask.getInfo({ id }) || {};
|
|
123
|
+
if (status === "SUCCEED" && url && appId) {
|
|
124
|
+
return { message: "打印成功", url, appId };
|
|
125
|
+
}
|
|
126
|
+
if (status === "FAIL") {
|
|
127
|
+
throw new Error("打印失败");
|
|
128
|
+
}
|
|
129
|
+
retry++;
|
|
130
|
+
await sleep(3e3, signal);
|
|
131
|
+
}
|
|
132
|
+
throw new Error("打印超时");
|
|
133
|
+
}
|
|
134
|
+
function sleep(ms, signal) {
|
|
135
|
+
return new Promise((resolve, reject) => {
|
|
136
|
+
const timer = setTimeout(resolve, ms);
|
|
137
|
+
if (signal) {
|
|
138
|
+
signal.addEventListener(
|
|
139
|
+
"abort",
|
|
140
|
+
() => {
|
|
141
|
+
clearTimeout(timer);
|
|
142
|
+
reject(new DOMException("Aborted", "AbortError"));
|
|
143
|
+
},
|
|
144
|
+
{ once: true }
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function useSingletonPolling() {
|
|
150
|
+
let controller = null;
|
|
151
|
+
async function start(task) {
|
|
152
|
+
if (controller) {
|
|
153
|
+
controller.abort();
|
|
154
|
+
}
|
|
155
|
+
const currentController = new AbortController();
|
|
156
|
+
controller = currentController;
|
|
157
|
+
try {
|
|
158
|
+
return await task(currentController.signal);
|
|
159
|
+
} finally {
|
|
160
|
+
if (controller === currentController) {
|
|
161
|
+
controller = null;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function stop() {
|
|
166
|
+
if (controller) {
|
|
167
|
+
controller.abort();
|
|
168
|
+
controller = null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
return { start, stop };
|
|
172
|
+
}
|
|
173
|
+
function downloadByUrl({
|
|
174
|
+
url,
|
|
175
|
+
target = "_blank",
|
|
176
|
+
fileName
|
|
177
|
+
}) {
|
|
178
|
+
const isChrome = window.navigator.userAgent.toLowerCase().indexOf("chrome") > -1;
|
|
179
|
+
const isSafari = window.navigator.userAgent.toLowerCase().indexOf("safari") > -1;
|
|
180
|
+
if (/(iP)/g.test(window.navigator.userAgent)) {
|
|
181
|
+
console.error("Your browser does not support download!");
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
if (isChrome || isSafari) {
|
|
185
|
+
const link = document.createElement("a");
|
|
186
|
+
link.href = url;
|
|
187
|
+
link.target = target;
|
|
188
|
+
if (link.download !== void 0) {
|
|
189
|
+
link.download = fileName || url.substring(url.lastIndexOf("/") + 1, url.length);
|
|
190
|
+
}
|
|
191
|
+
if (document.createEvent) {
|
|
192
|
+
const e = document.createEvent("MouseEvents");
|
|
193
|
+
e.initEvent("click", true, true);
|
|
194
|
+
link.dispatchEvent(e);
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (url.indexOf("?") === -1) {
|
|
199
|
+
url += "?download";
|
|
200
|
+
}
|
|
201
|
+
window.open(url, target);
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
async function unzipUrl({ url, appId }) {
|
|
205
|
+
const unzipUrl2 = await window.NocodeAdapter.apis?.postMedproFileUnzip?.({ url }, { url });
|
|
206
|
+
const path = /^https?:\/\//.test(unzipUrl2) ? unzipUrl2 : /^\/w/.test(unzipUrl2) ? `${window.NocodeAdapter.minioPath}/${appId}/${unzipUrl2}` : `${window.NocodeAdapter.minioPath}/${appId}/${unzipUrl2}`;
|
|
207
|
+
console.log("unzipUrl", unzipUrl2);
|
|
208
|
+
const newWindow = window.open(`${path}`, "_blank", "noopener,noreferrer");
|
|
209
|
+
if (newWindow) newWindow.opener = null;
|
|
210
|
+
}
|
|
211
|
+
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";
|
|
212
|
+
const _hoisted_1$1 = {
|
|
213
|
+
class: /* @__PURE__ */ normalizeClass(["scan-modal__content"])
|
|
214
|
+
};
|
|
215
|
+
const _hoisted_2 = ["src"];
|
|
216
|
+
const _hoisted_3 = { class: "scan-modal__rule-control" };
|
|
217
|
+
const _hoisted_4 = { class: "scan-modal__subtitle" };
|
|
218
|
+
const _hoisted_5 = {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: "mb12px"
|
|
221
|
+
};
|
|
222
|
+
const _hoisted_6 = { class: "scan-modal__map" };
|
|
223
|
+
const _hoisted_7 = {
|
|
224
|
+
key: 0,
|
|
225
|
+
class: "scan-modal__row scan-modal__row--header"
|
|
226
|
+
};
|
|
227
|
+
const _hoisted_8 = { class: "scan-modal__barcodeField scan-modal__col-label is-required" };
|
|
228
|
+
const _hoisted_9 = { class: "scan-modal__formFields scan-modal__col-label is-required" };
|
|
229
|
+
const _hoisted_10 = { class: "scan-modal__row--content" };
|
|
230
|
+
const _hoisted_11 = { class: "scan-modal__actions" };
|
|
231
|
+
const _hoisted_12 = ["onClick", "title"];
|
|
232
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
233
|
+
__name: "scan-modal",
|
|
234
|
+
props: {
|
|
235
|
+
modal: {},
|
|
236
|
+
scanParam: {},
|
|
237
|
+
scanRules: {},
|
|
238
|
+
formFieldOptions: {},
|
|
239
|
+
onScan: { type: Function },
|
|
240
|
+
ruleTip: {}
|
|
241
|
+
},
|
|
242
|
+
setup(__props) {
|
|
243
|
+
const modalOptions = reactive({
|
|
244
|
+
width: 460,
|
|
245
|
+
draggable: true,
|
|
246
|
+
showFooter: false,
|
|
247
|
+
canFullscreen: false,
|
|
248
|
+
wrapClassName: "gct-draggable-modal",
|
|
249
|
+
mask: false,
|
|
250
|
+
maskClosable: false,
|
|
251
|
+
title: "扫码录入"
|
|
252
|
+
});
|
|
253
|
+
const props = __props;
|
|
254
|
+
const formState = ref({
|
|
255
|
+
parsingRuleId: props.scanRules?.parsingRuleId,
|
|
256
|
+
fillMapArr: cloneDeep(props.scanRules?.fillMapArr) ?? []
|
|
257
|
+
});
|
|
258
|
+
const scanRuleInfo = ref();
|
|
259
|
+
const configExpanded = ref(false);
|
|
260
|
+
onMounted(async () => {
|
|
261
|
+
if (formState.value.parsingRuleId) {
|
|
262
|
+
initRuleFieldOptions(formState.value.parsingRuleId);
|
|
263
|
+
scanRuleInfo.value = await getParseRuleConfig(formState.value.parsingRuleId);
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
const ruleFieldOptions = ref([]);
|
|
267
|
+
const onEnter = (...args) => {
|
|
268
|
+
console.log("onEnter", args, formState.value);
|
|
269
|
+
let parsedValue, transformedData = {};
|
|
270
|
+
const fillMaps = formState.value.fillMapArr;
|
|
271
|
+
if (scanRuleInfo.value) {
|
|
272
|
+
parsedValue = getParseRuleValue(formState.value.str, JSON.stringify(scanRuleInfo.value));
|
|
273
|
+
} else if (props.scanParam) {
|
|
274
|
+
parsedValue = { [props.scanParam]: formState.value.str };
|
|
275
|
+
}
|
|
276
|
+
if (fillMaps?.length) transformedData = calcFillData(parsedValue, fillMaps);
|
|
277
|
+
props.onScan({ str: formState.value.str, parsedValue, transformedData });
|
|
278
|
+
formState.value.str = "";
|
|
279
|
+
};
|
|
280
|
+
const initRuleFieldOptions = async (id) => {
|
|
281
|
+
if (!id) {
|
|
282
|
+
ruleFieldOptions.value = [];
|
|
283
|
+
return;
|
|
284
|
+
}
|
|
285
|
+
const config = await getParseRuleConfig(id);
|
|
286
|
+
if (!config) {
|
|
287
|
+
ruleFieldOptions.value = [];
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
scanRuleInfo.value = config;
|
|
291
|
+
ruleFieldOptions.value = config.fieldList.map((field) => {
|
|
292
|
+
return {
|
|
293
|
+
label: field.alias ?? $t(`sys.edhr.labelConfigFields.${field.type}`),
|
|
294
|
+
value: field.key
|
|
295
|
+
};
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
const onRuleChange = (rule) => {
|
|
299
|
+
if (rule === formState.value.parsingRuleId) {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
formState.value.parsingRuleId = rule;
|
|
303
|
+
formState.value.fillMapArr = [];
|
|
304
|
+
initRuleFieldOptions(rule);
|
|
305
|
+
};
|
|
306
|
+
const addFieldMap = () => {
|
|
307
|
+
if (!formState.value.fillMapArr) {
|
|
308
|
+
formState.value.fillMapArr = [];
|
|
309
|
+
}
|
|
310
|
+
formState.value.fillMapArr.push({});
|
|
311
|
+
};
|
|
312
|
+
const removeField = (index) => {
|
|
313
|
+
formState.value.fillMapArr?.splice(index, 1);
|
|
314
|
+
};
|
|
315
|
+
const filterFormFieldOption = (input, option) => {
|
|
316
|
+
return option.label.toLowerCase().includes(input.toLowerCase());
|
|
317
|
+
};
|
|
318
|
+
return (_ctx, _cache) => {
|
|
319
|
+
const _component_a_input = resolveComponent("a-input");
|
|
320
|
+
const _component_a_form_item = resolveComponent("a-form-item");
|
|
321
|
+
const _component_a_divider = resolveComponent("a-divider");
|
|
322
|
+
const _component_a_alert = resolveComponent("a-alert");
|
|
323
|
+
const _component_a_select = resolveComponent("a-select");
|
|
324
|
+
const _component_a_button = resolveComponent("a-button");
|
|
325
|
+
const _component_a_form = resolveComponent("a-form");
|
|
326
|
+
return openBlock(), createBlock(unref(ModalWrapper), {
|
|
327
|
+
opts: modalOptions,
|
|
328
|
+
class: normalizeClass(["scan-modal"])
|
|
329
|
+
}, {
|
|
330
|
+
default: withCtx(() => [
|
|
331
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
332
|
+
createVNode(_component_a_form_item, {
|
|
333
|
+
required: "",
|
|
334
|
+
class: "scan-form-item"
|
|
335
|
+
}, {
|
|
336
|
+
default: withCtx(() => [
|
|
337
|
+
createVNode(_component_a_input, {
|
|
338
|
+
value: formState.value.str,
|
|
339
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value.str = $event),
|
|
340
|
+
size: "large",
|
|
341
|
+
placeholder: "请扫码录入",
|
|
342
|
+
onKeyup: withKeys(onEnter, ["enter"])
|
|
343
|
+
}, {
|
|
344
|
+
prefix: withCtx(() => [
|
|
345
|
+
createElementVNode("img", {
|
|
346
|
+
src: unref(IconScan),
|
|
347
|
+
width: "24",
|
|
348
|
+
height: "24"
|
|
349
|
+
}, null, 8, _hoisted_2)
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
}, 8, ["value"])
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
}),
|
|
356
|
+
createVNode(_component_a_divider, { style: { "width": "calc(100% + 48px)", "margin": "28px 0 16px -24px" } }),
|
|
357
|
+
createVNode(_component_a_form_item, {
|
|
358
|
+
class: "scan-modal__rule",
|
|
359
|
+
label: _ctx.$t("sys.edhr.mcTable.parseRule") + ":",
|
|
360
|
+
name: "parsingRuleId"
|
|
361
|
+
}, {
|
|
362
|
+
default: withCtx(() => [
|
|
363
|
+
createElementVNode("div", _hoisted_3, [
|
|
364
|
+
createVNode(_sfc_main$3, {
|
|
365
|
+
"model-value": formState.value.parsingRuleId,
|
|
366
|
+
"onUpdate:modelValue": onRuleChange,
|
|
367
|
+
modelKey: "em_barcode_parsing_rules"
|
|
368
|
+
}, null, 8, ["model-value"]),
|
|
369
|
+
createElementVNode("div", {
|
|
370
|
+
class: "primary-gct cursor-pointer whitespace-nowrap",
|
|
371
|
+
onClick: _cache[1] || (_cache[1] = ($event) => configExpanded.value = !configExpanded.value)
|
|
372
|
+
}, [
|
|
373
|
+
createTextVNode(toDisplayString(configExpanded.value ? _ctx.$t("sys.collapseConfig") : _ctx.$t("sys.expandConfig")) + " ", 1),
|
|
374
|
+
createElementVNode("i", {
|
|
375
|
+
class: normalizeClass(["iconfont ml4px", configExpanded.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"])
|
|
376
|
+
}, null, 2)
|
|
377
|
+
])
|
|
378
|
+
])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}, 8, ["label"]),
|
|
382
|
+
withDirectives(createElementVNode("div", null, [
|
|
383
|
+
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.$t("sys.onlineForm.fieldMapping")), 1),
|
|
384
|
+
__props.ruleTip ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
385
|
+
createVNode(_component_a_alert, {
|
|
386
|
+
message: __props.ruleTip,
|
|
387
|
+
type: "info",
|
|
388
|
+
"show-icon": ""
|
|
389
|
+
}, null, 8, ["message"])
|
|
390
|
+
])) : createCommentVNode("", true),
|
|
391
|
+
createElementVNode("div", _hoisted_6, [
|
|
392
|
+
createVNode(_component_a_form, {
|
|
393
|
+
ref: "formRef",
|
|
394
|
+
model: formState.value,
|
|
395
|
+
layout: "vertical"
|
|
396
|
+
}, {
|
|
397
|
+
default: withCtx(() => [
|
|
398
|
+
formState.value.fillMapArr?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
399
|
+
createElementVNode("div", _hoisted_8, toDisplayString(_ctx.$t("sys.onlineForm.barcodeField")), 1),
|
|
400
|
+
createElementVNode("div", _hoisted_9, toDisplayString(_ctx.$t("sys.onlineForm.formFields")), 1)
|
|
401
|
+
])) : createCommentVNode("", true),
|
|
402
|
+
createElementVNode("div", _hoisted_10, [
|
|
403
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(formState.value.fillMapArr, (item, i2) => {
|
|
404
|
+
return openBlock(), createElementBlock("div", {
|
|
405
|
+
class: "scan-modal__row",
|
|
406
|
+
key: i2
|
|
407
|
+
}, [
|
|
408
|
+
createVNode(_component_a_form_item, {
|
|
409
|
+
class: "scan-modal__barcodeField",
|
|
410
|
+
name: ["fillMapArr", i2, "barcodeField"],
|
|
411
|
+
rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
|
|
412
|
+
}, {
|
|
413
|
+
default: withCtx(() => [
|
|
414
|
+
createVNode(_component_a_select, {
|
|
415
|
+
value: item.barcodeField,
|
|
416
|
+
"onUpdate:value": ($event) => item.barcodeField = $event,
|
|
417
|
+
placeholder: _ctx.$t("sys.chooseText"),
|
|
418
|
+
options: ruleFieldOptions.value
|
|
419
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder", "options"])
|
|
420
|
+
]),
|
|
421
|
+
_: 2
|
|
422
|
+
}, 1032, ["name", "rules"]),
|
|
423
|
+
_cache[2] || (_cache[2] = createElementVNode("div", { class: "scan-modal__divider" }, [
|
|
424
|
+
createElementVNode("i", { class: "gct-iconfont icon-lianjie text-[#8B8B8B] text-12px" })
|
|
425
|
+
], -1)),
|
|
426
|
+
createVNode(_component_a_form_item, {
|
|
427
|
+
class: "scan-modal__formFields",
|
|
428
|
+
name: ["fillMapArr", i2, "formFields"],
|
|
429
|
+
rules: [{ required: true, message: _ctx.$t("sys.chooseText") }]
|
|
430
|
+
}, {
|
|
431
|
+
default: withCtx(() => [
|
|
432
|
+
createVNode(_component_a_select, {
|
|
433
|
+
value: item.formFields,
|
|
434
|
+
"onUpdate:value": ($event) => item.formFields = $event,
|
|
435
|
+
mode: "multiple",
|
|
436
|
+
"allow-clear": "",
|
|
437
|
+
"show-search": "",
|
|
438
|
+
placeholder: _ctx.$t("sys.chooseText"),
|
|
439
|
+
options: __props.formFieldOptions,
|
|
440
|
+
"filter-option": filterFormFieldOption
|
|
441
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder", "options"])
|
|
442
|
+
]),
|
|
443
|
+
_: 2
|
|
444
|
+
}, 1032, ["name", "rules"]),
|
|
445
|
+
createElementVNode("div", _hoisted_11, [
|
|
446
|
+
createElementVNode("i", {
|
|
447
|
+
onClick: ($event) => removeField(i2),
|
|
448
|
+
class: "scan-modal__remove-btn iconfont icon-shanchu1 text-[#8B8B8B]",
|
|
449
|
+
title: _ctx.$t("sys.delete")
|
|
450
|
+
}, null, 8, _hoisted_12)
|
|
451
|
+
])
|
|
452
|
+
]);
|
|
453
|
+
}), 128))
|
|
454
|
+
]),
|
|
455
|
+
createVNode(_component_a_button, {
|
|
456
|
+
class: "scan-modal__add-btn",
|
|
457
|
+
type: "link",
|
|
458
|
+
onClick: addFieldMap
|
|
459
|
+
}, {
|
|
460
|
+
default: withCtx(() => [
|
|
461
|
+
_cache[3] || (_cache[3] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)),
|
|
462
|
+
createTextVNode(" " + toDisplayString(_ctx.$t("sys.onlineForm.addFieldMapping")), 1)
|
|
463
|
+
]),
|
|
464
|
+
_: 1
|
|
465
|
+
})
|
|
466
|
+
]),
|
|
467
|
+
_: 1
|
|
468
|
+
}, 8, ["model"])
|
|
469
|
+
])
|
|
470
|
+
], 512), [
|
|
471
|
+
[vShow, configExpanded.value]
|
|
472
|
+
])
|
|
473
|
+
])
|
|
474
|
+
]),
|
|
475
|
+
_: 1
|
|
476
|
+
}, 8, ["opts"]);
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
const scanModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-168f8868"]]);
|
|
481
|
+
const _hoisted_1 = {
|
|
482
|
+
class: /* @__PURE__ */ normalizeClass(["multi-rows-modal__content"])
|
|
483
|
+
};
|
|
484
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
485
|
+
__name: "multi-rows-modal",
|
|
486
|
+
props: {
|
|
487
|
+
modal: {},
|
|
488
|
+
rows: {}
|
|
489
|
+
},
|
|
490
|
+
setup(__props) {
|
|
491
|
+
const modalOptions = reactive({
|
|
492
|
+
width: 800,
|
|
493
|
+
draggable: true,
|
|
494
|
+
showFooter: true,
|
|
495
|
+
canFullscreen: false,
|
|
496
|
+
title: $t("sys.kit.selectMaterial"),
|
|
497
|
+
wrapClassName: "gct-draggable-modal"
|
|
498
|
+
});
|
|
499
|
+
const props = __props;
|
|
500
|
+
const selectedRow = ref();
|
|
501
|
+
const tableData = computed(
|
|
502
|
+
() => (props.rows ?? []).map((row, index) => ({
|
|
503
|
+
...row,
|
|
504
|
+
_rowKey: `${row.materialId ?? ""}_${row.productionIdentificationId ?? ""}_${index}`
|
|
505
|
+
}))
|
|
506
|
+
);
|
|
507
|
+
const gridOptions = reactive({
|
|
508
|
+
round: true,
|
|
509
|
+
maxHeight: 420,
|
|
510
|
+
rowConfig: {
|
|
511
|
+
isHover: true,
|
|
512
|
+
keyField: "_rowKey"
|
|
513
|
+
},
|
|
514
|
+
radioConfig: {
|
|
515
|
+
trigger: "row",
|
|
516
|
+
highlight: true
|
|
517
|
+
},
|
|
518
|
+
columns: [
|
|
519
|
+
{ type: "radio", width: 48 },
|
|
520
|
+
{
|
|
521
|
+
field: "productId",
|
|
522
|
+
title: $t("sys.model.product"),
|
|
523
|
+
showOverflow: "tooltip",
|
|
524
|
+
minWidth: 140
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
field: "materialNo",
|
|
528
|
+
title: $t("sys.edhr.materialNo"),
|
|
529
|
+
showOverflow: "tooltip",
|
|
530
|
+
minWidth: 160
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
});
|
|
534
|
+
const gridEvents = {
|
|
535
|
+
radioChange({ row }) {
|
|
536
|
+
selectedRow.value = row;
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
const doOk = async () => {
|
|
540
|
+
if (!selectedRow.value) {
|
|
541
|
+
message.error($t("请选择一条数据"));
|
|
542
|
+
return false;
|
|
543
|
+
}
|
|
544
|
+
const {
|
|
545
|
+
_rowKey: _,
|
|
546
|
+
productionIdentificationIsLocked,
|
|
547
|
+
productionIdentificationId,
|
|
548
|
+
...rest
|
|
549
|
+
} = selectedRow.value;
|
|
550
|
+
if (productionIdentificationIsLocked) {
|
|
551
|
+
const msg = await getLotLockedReason(productionIdentificationId);
|
|
552
|
+
message.error(msg);
|
|
553
|
+
throw new Error("物料批次已被锁定");
|
|
554
|
+
}
|
|
555
|
+
return {
|
|
556
|
+
ok: true,
|
|
557
|
+
data: rest
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
return (_ctx, _cache) => {
|
|
561
|
+
return openBlock(), createBlock(unref(ModalWrapper), {
|
|
562
|
+
opts: modalOptions,
|
|
563
|
+
class: normalizeClass(["multi-rows-modal"]),
|
|
564
|
+
"do-ok": doOk
|
|
565
|
+
}, {
|
|
566
|
+
default: withCtx(() => [
|
|
567
|
+
createElementVNode("div", _hoisted_1, [
|
|
568
|
+
createVNode(unref(VxeGrid), mergeProps({
|
|
569
|
+
class: "multi-rows-modal__grid default vxetable",
|
|
570
|
+
data: tableData.value,
|
|
571
|
+
"max-height": "420px"
|
|
572
|
+
}, gridOptions, toHandlers(gridEvents)), null, 16, ["data"])
|
|
573
|
+
])
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
}, 8, ["opts"]);
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
const multiRowsModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7a49d08"]]);
|
|
581
|
+
export {
|
|
582
|
+
A as AddRuleBtn,
|
|
583
|
+
B as BomViewerModal,
|
|
584
|
+
scanModal as CommonScanModal,
|
|
585
|
+
FileModeEnum,
|
|
586
|
+
multiRowsModal as MultiRowsModal,
|
|
587
|
+
P as ParseRuleModal,
|
|
588
|
+
PrintModeEnum,
|
|
589
|
+
S as StocktakeWebRender,
|
|
590
|
+
formPrint,
|
|
591
|
+
j as initRenderToAdapter,
|
|
592
|
+
h as initWebNocodeAdapter,
|
|
593
|
+
i as initWebPaasUploadApis,
|
|
594
|
+
u as useWebUpload
|
|
595
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import {
|
|
2
|
+
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BCoiCGuV.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-B9PzsrIT.js";
|
|
4
|
+
import { o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
7
|
-
import "@gct-paas/form-base";
|
|
8
7
|
import "ant-design-vue";
|
|
9
|
-
import { A as AlignEditor } from "./align-editor
|
|
8
|
+
import { A as AlignEditor } from "./align-editor--BUxJjPg.js";
|
|
10
9
|
const _hoisted_1 = { class: "pl-6px" };
|
|
11
10
|
const _hoisted_2 = { class: "flex justify-end" };
|
|
12
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
-
import { F as FormItem, q as SelectEx } from "./index-
|
|
2
|
+
import { F as FormItem, q as SelectEx } from "./index-BCoiCGuV.js";
|
|
3
3
|
import { defaults } from "lodash-es";
|
|
4
|
-
import {
|
|
4
|
+
import { F as FIELD_TYPE, a7 as _export_sfc, ag as DiagonalDirection, ak as DiagonalVertex, ce as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
|
|
5
5
|
import "dayjs";
|
|
6
|
-
import "@gct-paas/form-base";
|
|
7
6
|
import { message } from "ant-design-vue";
|
|
8
|
-
import {
|
|
7
|
+
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
8
|
+
import { S as SingleFieldDrop } from "./single-field-drop-BmHF9A4z.js";
|
|
9
9
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "diagonal-name-editor",
|
|
11
11
|
props: {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
|
|
2
|
-
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-
|
|
3
|
-
import { S as SizeEditor } from "./size-editor-
|
|
2
|
+
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-BCoiCGuV.js";
|
|
3
|
+
import { S as SizeEditor } from "./size-editor-D4ZNlV-c.js";
|
|
4
4
|
import { message } from "ant-design-vue";
|
|
5
|
-
import {
|
|
5
|
+
import { ah as WidgetImageSizeMode, a7 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
+
import { u as useWebUpload } from "./index-B6csmYLK.js";
|
|
8
9
|
import "@gct-paas/form-base";
|
|
9
|
-
import
|
|
10
|
+
import "vxe-table";
|
|
11
|
+
import { C as CloseOutlined } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-219qzsVL.js";
|
|
10
12
|
const resumeSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307154239'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7317'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M316%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208zM512%20622c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039zM512%20482c22.1%200%2040-17.9%2040-39%200-23.1-17.9-41-40-41s-40%2017.9-40%2041c0%2021.1%2017.9%2039%2040%2039z'%20p-id='7318'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M880%20112H144c-17.7%200-32%2014.3-32%2032v736c0%2017.7%2014.3%2032%2032%2032h736c17.7%200%2032-14.3%2032-32V144c0-17.7-14.3-32-32-32z%20m-40%20728H184V184h656v656z'%20p-id='7319'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M648%20672h60c4.4%200%208-3.6%208-8V360c0-4.4-3.6-8-8-8h-60c-4.4%200-8%203.6-8%208v304c0%204.4%203.6%208%208%208z'%20p-id='7320'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
11
13
|
const rotateSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595306944988'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1820'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M1464.3%20279.7'%20p-id='1821'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M512%20960c-60.5%200-119.1-11.9-174.4-35.2-53.4-22.6-101.3-54.9-142.4-96s-73.4-89-96-142.4C75.9%20631.1%2064%20572.5%2064%20512s11.9-119.1%2035.2-174.4c22.6-53.4%2054.9-101.3%2096-142.4s89-73.4%20142.4-96C392.9%2075.9%20451.5%2064%20512%2064s119.1%2011.9%20174.4%2035.2c53.4%2022.6%20101.3%2054.9%20142.4%2096s73.4%2089%2096%20142.4C948.1%20392.9%20960%20451.5%20960%20512c0%2019.1-15.5%2034.6-34.6%2034.6s-34.6-15.5-34.6-34.6c0-51.2-10-100.8-29.8-147.4-19.1-45.1-46.4-85.6-81.2-120.4C745%20209.4%20704.5%20182%20659.4%20163c-46.7-19.7-96.3-29.8-147.4-29.8-51.2%200-100.8%2010-147.4%2029.8-45.1%2019.1-85.6%2046.4-120.4%2081.2S182%20319.5%20163%20364.6c-19.7%2046.7-29.8%2096.3-29.8%20147.4%200%2051.2%2010%20100.8%2029.8%20147.4%2019.1%2045.1%2046.4%2085.6%2081.2%20120.4C279%20814.6%20319.5%20842%20364.6%20861c46.7%2019.7%2096.3%2029.8%20147.4%2029.8%2064.6%200%20128.4-16.5%20184.4-47.8%2054.4-30.4%20100.9-74.1%20134.6-126.6%2010.3-16.1%2031.7-20.8%2047.8-10.4%2016.1%2010.3%2020.8%2031.7%2010.4%2047.8-39.8%2062-94.8%20113.7-159.1%20149.6-66.2%2037-141.7%2056.6-218.1%2056.6z'%20p-id='1822'%20fill='%23ffffff'%3e%3c/path%3e%3cpath%20d='M924%20552c-19.8%200-36-16.2-36-36V228c0-19.8%2016.2-36%2036-36s36%2016.2%2036%2036v288c0%2019.8-16.2%2036-36%2036zM275.4%20575.5c9.5-2.5%2019.1%202.9%2022.3%2012.2%203.5%2010.2%209.9%2017.7%2019.1%2022.6%207.1%203.9%2015.1%205.8%2024%205.8%2016.6%200%2030.8-6.9%2042.5-20.8%2011.7-13.8%2020-32.7%2024.9-75.1-7.7%2012.2-17.3%2020.8-28.7%2025.8-11.4%205-23.7%207.4-36.8%207.4-26.7%200-47.7-8.3-63.3-24.9-15.5-16.6-23.3-37.9-23.3-64.1%200-25.1%207.7-47.1%2023-66.2%2015.3-19%2037.9-28.6%2067.8-28.6%2040.3%200%2068.1%2018.1%2083.4%2054.4%208.5%2019.9%2012.7%2044.9%2012.7%2074.9%200%2033.8-5.1%2063.8-15.3%2089.9-16.9%2043.5-45.5%2065.2-85.8%2065.2-27%200-47.6-7.1-61.6-21.2-10-10.1-16.4-22-19.3-35.8-2-9.6%204-19.1%2013.5-21.6l0.9%200.1z%20m103-74.4c9.4-7.5%2014.1-20.6%2014.1-39.3%200-16.8-4.2-29.3-12.7-37.5S360.6%20412%20347.5%20412c-14%200-25.2%204.7-33.4%2014.1-8.2%209.4-12.4%2022-12.4%2037.7%200%2014.9%203.6%2026.7%2010.9%2035.5%207.2%208.8%2018.8%2013.1%2034.6%2013.1%2011.4%200%2021.8-3.8%2031.2-11.3zM646.6%20414.4c12.4%2022.8%2018.5%2054%2018.5%2093.7%200%2037.6-5.6%2068.7-16.8%2093.3-16.2%2035.3-42.8%2052.9-79.6%2052.9-33.2%200-57.9-14.4-74.2-43.3-13.5-24.1-20.3-56.4-20.3-97%200-31.4%204.1-58.4%2012.2-80.9%2015.2-42%2042.7-63%2082.5-63%2035.9%200%2061.8%2014.8%2077.7%2044.3z%20m-40.2%20173.3c9.4-13.9%2014-39.9%2014-78%200-27.4-3.4-50-10.1-67.7-6.8-17.7-19.9-26.6-39.4-26.6-17.9%200-31%208.4-39.3%2025.2-8.3%2016.8-12.4%2041.6-12.4%2074.3%200%2024.6%202.6%2044.4%207.9%2059.4%208.1%2022.8%2022%2034.3%2041.6%2034.3%2015.7%200%2028.3-7%2037.7-20.9zM803.3%20387.2c11.2%2011.3%2016.8%2025%2016.8%2041.2%200%2016.7-5.8%2030.7-17.5%2041.8C791%20481.4%20777.4%20487%20762%20487c-17.1%200-31.2-5.8-42.1-17.4-10.9-11.6-16.4-25.1-16.4-40.6%200-16.5%205.8-30.4%2017.3-41.7%2011.5-11.3%2025.3-17%2041.2-17%2016.3%200%2030.1%205.7%2041.3%2016.9zM739.5%20451c6.2%206.2%2013.7%209.3%2022.5%209.3%208.4%200%2015.8-3.1%2022.1-9.3%206.3-6.2%209.4-13.7%209.4-22.6%200-8.5-3.1-15.9-9.3-22.1-6.2-6.2-13.6-9.3-22.2-9.3s-16.1%203.1-22.4%209.3c-6.3%206.2-9.4%2013.7-9.4%2022.6-0.1%208.4%203%2015.8%209.3%2022.1z'%20p-id='1823'%20fill='%23ffffff'%3e%3c/path%3e%3c/svg%3e";
|
|
12
14
|
const scaleSvg = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1595307195033'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8116'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='48'%20height='48'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M887.081%20904.791a25.8%2025.8%200%200%201-18.376-7.619L705.618%20734.075l-4.163%203.369c-58.255%2047.18-131.522%2073.16-206.32%2073.16-181.07%200-328.377-147.308-328.377-328.367%200-181.068%20147.308-328.376%20328.377-328.376%20181.063%200%20328.376%20147.308%20328.376%20328.376%200%2077.072-27.412%20152.07-77.169%20211.17l-3.522%204.173%20162.719%20162.744a25.846%2025.846%200%200%201%207.639%2018.432%2026.081%2026.081%200%200%201-26.051%2026.045l-0.046-0.01zM495.13%20205.957c-152.336%200-276.27%20123.935-276.27%20276.27%200%20152.33%20123.934%20276.27%20276.27%20276.27%20152.34%200%20276.275-123.94%20276.275-276.27%200-152.335-123.935-276.27-276.275-276.27z'%20fill='%23ffffff'%20p-id='8117'%3e%3c/path%3e%3cpath%20d='M626.545%20508.355h-262.83a26.127%2026.127%200%200%201%200-52.255h262.83a26.127%2026.127%200%200%201%200%2052.255z'%20fill='%23ffffff'%20p-id='8118'%3e%3c/path%3e%3cpath%20d='M495.13%20639.77a26.127%2026.127%200%200%201-26.128-26.128v-262.83a26.127%2026.127%200%200%201%2052.255%200v262.835a26.127%2026.127%200%200%201-26.127%2026.123z'%20fill='%23ffffff'%20p-id='8119'%3e%3c/path%3e%3c/svg%3e";
|
|
@@ -527,7 +529,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
527
529
|
};
|
|
528
530
|
}
|
|
529
531
|
});
|
|
530
|
-
const widgetImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
532
|
+
const widgetImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e1d708f2"]]);
|
|
531
533
|
export {
|
|
532
534
|
widgetImage as default
|
|
533
535
|
};
|