@gct-paas/excel 0.1.40-beta.3 → 0.1.40-beta.31
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 +3 -4
- package/dist/{BaseComponent-B9o59n-h.js → BaseComponent-etri-HVz.js} +2 -2
- package/dist/{VueVideoPlayer-CAWYWBHi.js → VueVideoPlayer-ClxhO4jg.js} +2 -2
- package/dist/{align-editor-a4DQt4Un.js → align-editor-DWHHVeY1.js} +1 -1
- package/dist/{barcode-design-CBqUEPYu.js → barcode-design-jb-cuT80.js} +2 -2
- package/dist/base/index.es.js +742 -306
- package/dist/{diagonal-design-u23896Ky.js → diagonal-design-vAc9RdXd.js} +2 -2
- package/dist/{dynamic-table-action-BWI4Gaqi.js → dynamic-table-action-DpIXTpSN.js} +1328 -512
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BvrrN6te.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BCLE4joQ.js} +3076 -1680
- package/dist/{edit.utils-CXmmCnxE-XxpC8ALV.js → edit.utils-CXmmCnxE-CXdATd1V.js} +1 -1
- package/dist/excel.css +6292 -5112
- package/dist/{exceljs.min-DfbB110X.js → exceljs.min-DKFXUxdP.js} +2 -2
- package/dist/{font-editor-BtSCLMrM.js → font-editor-CzFsHD-d.js} +3 -3
- package/dist/{image-design-CtE-Lw7N.js → image-design-4Ee8rZqa.js} +3 -8
- package/dist/{index-B0cdcIWq.js → index--JEQAw12.js} +2 -2
- package/dist/{index-DdWefZMa.js → index-B0BWjfNB.js} +2 -2
- package/dist/{index-BFg5eUdY.js → index-BCCIwSnM.js} +1 -1
- package/dist/{index-Dyomjz3y.js → index-BEi6Ietm.js} +2 -2
- package/dist/{index-BMoz_QhA.js → index-BHJxBByd.js} +1 -1
- package/dist/{index-BP-LhXXV.js → index-BHbTXjiU.js} +6 -5
- package/dist/{index-DVEe11uM.js → index-BYq7x5n6.js} +1 -1
- package/dist/{index-CAdDeEzJ.js → index-BcbH0-2H.js} +2 -2
- package/dist/{index-3WwCV4xR.js → index-BlMiHVOC.js} +1 -1
- package/dist/{index-Bnb70qEi.js → index-Bu2XMO2n.js} +3 -3
- package/dist/{index-BC8hQ4vo.js → index-BuYerha3.js} +2 -2
- package/dist/{index-BKXb3VJc.js → index-CNJu5jrK.js} +2 -2
- package/dist/{index-CdHVHaxO.js → index-C_GqkAxa.js} +2 -2
- package/dist/{index-CIa37rQm.js → index-CtatG-Ov.js} +3 -2
- package/dist/{index-CPTGioxl.js → index-D3KiKYMR.js} +1 -1
- package/dist/{index-CL9K9orM.js → index-D681oluc.js} +6 -3
- package/dist/{index-Bc61F6Hm.js → index-D7x7hItu.js} +5 -7
- package/dist/{index-I1r5pfu5.js → index-DCF-v4pK.js} +2 -2
- package/dist/{index-731OYkrc.js → index-DFhfnphF.js} +3 -3
- package/dist/{index-aNV9T6LI.js → index-DGq7IjrL.js} +2 -2
- package/dist/{index-7aS5L4ot.js → index-DIqqktrL.js} +6 -3
- package/dist/{index-BGAcYDx-.js → index-DM0OEvdI.js} +1 -1
- package/dist/{index-Ca9TLzUh.js → index-DPTR_QJn.js} +1 -1
- package/dist/{index-CeEhYXl9.js → index-DPr6NsTf.js} +2 -2
- package/dist/{index-ixQwAcB1.js → index-DoSH7mnC.js} +37708 -30078
- package/dist/{index-BRQkrFQ9.js → index-Dw-ygqE_.js} +2 -2
- package/dist/{index-9S48hpoJ.js → index-FzfTEWXH.js} +2 -2
- package/dist/{index-CpPk8P3L.js → index-KuhYPy5i.js} +1 -1
- package/dist/{index-CVsoaxTR.js → index-VyjgrRmJ.js} +2 -2
- package/dist/{index-DNj0vFvx.js → index-YlEOHde0.js} +1 -1
- package/dist/{index-IVc1dOet.js → index-aiurSMku.js} +6 -5
- package/dist/{index-CYLAVQfT.js → index-pWnZhMwm.js} +2 -2
- package/dist/{index-BfBuxgcp.js → index-s3x5GdWF.js} +2 -2
- package/dist/{index-51LtNdZ2.js → index-toqlO_-B.js} +1 -1
- package/dist/index.es.js +50 -46
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CRyGHP7k.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DAAF0eOB.js} +33 -3
- package/dist/{pagination-design-CmbsdlMe.js → pagination-design-C7Cd0vsm.js} +2 -2
- package/dist/paper-widget-design-C34lg4jR.js +4 -0
- package/dist/{print-runtime-instance-DQysbz5n.js → print-runtime-instance-CfG_y_pu.js} +1 -1
- package/dist/{print-snapshot-renderer-DWHjMsOC.js → print-snapshot-renderer-DSlZELM2.js} +3 -3
- package/dist/{qrcode-design-CX0_2mLC.js → qrcode-design-G75STwL4.js} +1 -1
- package/dist/{revo-grid.entry-DbmWFi7p.js → revo-grid.entry-Bj-4xHie.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BWQDu7fq.js → revogr-attribution_7.entry-NvaozwYj.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BtTYHFZi.js → revogr-clipboard_3.entry-CkRbECsx.js} +2 -2
- package/dist/{revogr-data_4.entry-CWPXyZ7g.js → revogr-data_4.entry-Dbbd8Mpz.js} +2 -2
- package/dist/{revogr-filter-panel.entry-5gYct0XI.js → revogr-filter-panel.entry-lcMbXUNb.js} +1 -1
- package/dist/seal-design-DIQKGBL7.js +4 -0
- package/dist/{serialnumber-design-aSqL4gX6.js → serialnumber-design-B608oYcy.js} +1 -1
- package/dist/shared/index.es.js +30 -27
- package/dist/{single-field-drop-C67wLHxK.js → single-field-drop-ui-vFIsu.js} +2 -3
- package/dist/{size-editor-BHGTPLir.js → size-editor-Bl-lUcdU.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +1 -1
- package/dist/src/adapter/index.d.ts +2 -0
- package/dist/src/adapter/web/inventory-scan-columns.d.ts +6 -0
- package/dist/src/{nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts → adapter/web/material-balance-render.d.ts} +1 -1
- package/dist/src/{nocode-web-render/src/render/sub-table/material-balance → adapter/web}/material-consume-modal.vue.d.ts +1 -1
- package/dist/src/adapter/web/material-consume-render.d.ts +25 -0
- package/dist/src/{nocode-web-render/src/render/common → adapter/web}/open-util.d.ts +1 -1
- package/dist/src/{nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts → adapter/web/stocktake-render.d.ts} +2 -2
- package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/sub-table-render.d.ts +2 -5
- package/dist/src/domain/document-business/business/product-release/profile.d.ts +2 -0
- package/dist/src/domain/document-business/business/product-release/service.d.ts +2 -0
- package/dist/src/domain/document-business/index.d.ts +2 -0
- package/dist/src/domain/document-business/registry.d.ts +2 -0
- package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
- package/dist/src/domain/document-business/types.d.ts +24 -0
- package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +2 -0
- package/dist/src/domain/field/query-filter.d.ts +15 -0
- package/dist/src/domain/table/business/material/material-balance/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +25 -10
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +4 -0
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +8 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +1 -7
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +19 -0
- package/dist/src/domain/table/design/autofill-expander.d.ts +2 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +6 -0
- package/dist/src/domain/table/index.d.ts +1 -1
- package/dist/src/domain/table/types.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/nocode-base/src/components/document-sub-table-action/dynamic-table-action.vue.d.ts +0 -2
- package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +0 -3
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +0 -4
- package/dist/src/nocode-base/src/components/material-consume/types.d.ts +1 -5
- package/dist/src/nocode-base/src/core/factory/sub-table-factory.d.ts +2 -0
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +2 -1
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +3 -3
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -5
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +9 -7
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +18 -20
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +1 -28
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +20 -7
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/bom-validator.d.ts +4 -3
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +19 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +9 -8
- package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +1 -1
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +4 -1
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +10 -6
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +1 -0
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +4 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +17 -1
- package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/formula-utils.d.ts +2 -0
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +3 -1
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +4 -0
- package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +23 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
- package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +6 -2
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +3 -0
- package/dist/src/nocode-base/src/runtime/table-row-identity.d.ts +2 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +6 -2
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +2 -15
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -11
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +2 -0
- 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/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +2 -2
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +8 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +35 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +18 -3
- package/dist/src/online-form/src/views/designer/modules/base/designer-wrapper.vue.d.ts +1 -0
- package/dist/src/{nocode-web-render/src/components/print-fill-background-selector.vue.d.ts → online-form/src/views/designer/modules/duplicate-field-notice.vue.d.ts} +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/object-init/hooks/useObjectInit.d.ts +2 -0
- package/dist/src/{nocode-web-render/src/render/parse-rule → online-form/src/views/designer/modules/panel/sub-table/comps}/add-rule-btn.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +12 -0
- 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/{nocode-web-render/src/render/sub-table/material-consume/bom-modal.vue.d.ts → online-form/src/views/designer/modules/xlsx-import-summary.vue.d.ts} +7 -7
- package/dist/src/online-form/src/views/designer/types/index.d.ts +3 -1
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/utils/cell-field-placements.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +9 -0
- package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +7 -0
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +9 -3
- 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-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 +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +0 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +1 -4
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/composables/useReferenceLabel.d.ts +4 -0
- package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
- package/dist/src/shared/enum/field-type.d.ts +10 -3
- package/dist/src/shared/enum/index.d.ts +2 -0
- package/dist/src/shared/enum/product-type.d.ts +9 -0
- package/dist/src/shared/enum/production-identification.d.ts +19 -0
- package/dist/src/{nocode-web-render/src → shared}/hooks/useWebUpload.d.ts +1 -1
- package/dist/src/shared/index.d.ts +1 -0
- package/dist/src/shared/types/index.d.ts +1 -0
- package/dist/src/shared/types/upload.d.ts +11 -0
- package/dist/src/shared/utils/cell-wrap.d.ts +9 -0
- package/dist/src/shared/utils/grid-size.d.ts +2 -0
- package/dist/src/shared/utils/lot2sn.d.ts +14 -1
- package/dist/src/shared/utils/query-filter.d.ts +24 -0
- package/dist/src/shared/utils/withRequestCache.d.ts +27 -0
- package/dist/{sub-table-factory-DTtDvr17.js → sub-table-factory-C8IG5P9N.js} +230 -156
- package/dist/{text-design-Dz0Qf2O3.js → text-design-ZbT4-OIQ.js} +5 -4
- package/dist/{throttle-Cpk1LoGk-CgtsG2CV.js → throttle-Cpk1LoGk-CFMeLNb-.js} +1 -1
- package/dist/{timediff-design-D9JfNqH8.js → timediff-design-DRum3zZt.js} +1 -1
- package/dist/{trace-like-wrapper-BXgr0Uv3.js → trace-like-wrapper-DX6B_qq8.js} +5 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-doohzADY.js → value-editor.vue_vue_type_style_index_0_lang-DiqzTQxP.js} +2 -2
- package/dist/{widget-barcode-XF3nCU9v.js → widget-barcode-FukO_v5o.js} +4 -4
- package/dist/{widget-diagonal-DSym7fks.js → widget-diagonal-BxaAV6Z0.js} +3 -4
- package/dist/{widget-image-CmjwkVs7.js → widget-image-CGmm4QwO.js} +5 -7
- package/dist/{widget-line-BX64xVfU.js → widget-line-DHV95v22.js} +2 -2
- package/dist/{widget-pagination-BV89Lvjt.js → widget-pagination-CAdmXA68.js} +5 -5
- package/dist/{widget-power-DoSfQv92.js → widget-power-sfFZYwYY.js} +3 -4
- package/dist/{widget-qrcode-UGcRLC56.js → widget-qrcode-BEISi2k7.js} +3 -3
- package/dist/{widget-rangelimit-CUHD__1H.js → widget-rangelimit-DmPylyRg.js} +3 -4
- package/dist/{widget-serialnumber-CAkZR5Xl.js → widget-serialnumber-4PW9_Sy0.js} +1 -1
- package/dist/{widget-text-DtYVTThu.js → widget-text-CFzr4fdg.js} +5 -5
- package/dist/{widget-timediff-DX_IoCMO.js → widget-timediff-BY4BQSVg.js} +2 -2
- package/package.json +2 -6
- package/dist/AntdIcon-DCIaV352.js +0 -1108
- package/dist/index-DeHX7rte.js +0 -4306
- package/dist/mb-render-Bs9S9oFn.js +0 -270
- package/dist/paper-widget-design-DIhsk1I9.js +0 -4
- package/dist/seal-design-BhzgwVju.js +0 -4
- package/dist/src/nocode-web-render/src/hooks/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +0 -15
- package/dist/src/nocode-web-render/src/index.d.ts +0 -6
- package/dist/src/nocode-web-render/src/logic/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/common/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/render/common/modal-manager.d.ts +0 -20
- package/dist/src/nocode-web-render/src/render/index.d.ts +0 -10
- package/dist/src/nocode-web-render/src/render/parse-rule/index.d.ts +0 -3
- package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/allocate-web-render.d.ts +0 -4
- package/dist/src/nocode-web-render/src/render/sub-table/allocate/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +0 -19
- package/dist/src/nocode-web-render/src/render/sub-table/index.d.ts +0 -3
- package/dist/src/nocode-web-render/src/render/sub-table/material-balance/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +0 -4
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +0 -42
- package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/types/hooks/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/types/index.d.ts +0 -1
- package/dist/web-render/index.d.ts +0 -1
- package/dist/web-render/index.es.js +0 -596
- /package/dist/src/{nocode-web-render/src/adapter/index.d.ts → adapter/web/setup.d.ts} +0 -0
- /package/dist/src/{nocode-web-render/src/logic/utils.d.ts → adapter/web/upload.d.ts} +0 -0
|
@@ -73,9 +73,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
73
73
|
"change-select": (...args: any[]) => void;
|
|
74
74
|
}, string, {
|
|
75
75
|
height: string;
|
|
76
|
-
autoResize: boolean;
|
|
77
76
|
wrapperHeight: number | string;
|
|
78
77
|
wrapperWidth: number | string;
|
|
78
|
+
autoResize: boolean;
|
|
79
79
|
showRowSelectionMode: boolean;
|
|
80
80
|
rowSelectionMode: "single" | "multiple";
|
|
81
81
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -100,9 +100,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
100
100
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
101
101
|
} & Readonly<{
|
|
102
102
|
height: string;
|
|
103
|
-
autoResize: boolean;
|
|
104
103
|
wrapperHeight: number | string;
|
|
105
104
|
wrapperWidth: number | string;
|
|
105
|
+
autoResize: boolean;
|
|
106
106
|
showRowSelectionMode: boolean;
|
|
107
107
|
rowSelectionMode: "single" | "multiple";
|
|
108
108
|
}> & Omit<Readonly<{
|
|
@@ -121,7 +121,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
121
121
|
}> & Readonly<{
|
|
122
122
|
onRequest?: ((...args: any[]) => any) | undefined;
|
|
123
123
|
"onChange-select"?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
}>, ("height" | "
|
|
124
|
+
}>, ("height" | "wrapperHeight" | "wrapperWidth" | "autoResize" | "showRowSelectionMode" | "rowSelectionMode") | "getRef"> & {
|
|
125
125
|
getRef: () => any;
|
|
126
126
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
127
127
|
$slots: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IModal } from '../../../../../shared/types';
|
|
2
|
-
import { IBomEntry } from '../../../../../nocode-base/src';
|
|
3
1
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
sheets: Array<{
|
|
3
|
+
title: string;
|
|
4
|
+
rows: number;
|
|
5
|
+
cols: number;
|
|
6
|
+
fields: number;
|
|
7
|
+
}>;
|
|
8
|
+
warnings: string[];
|
|
9
9
|
};
|
|
10
10
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
11
|
export default _default;
|
|
@@ -237,7 +237,7 @@ export interface IFormConfig {
|
|
|
237
237
|
parameterMapping?: Array<IParameterMapping>;
|
|
238
238
|
/** 规则配置-单位转化规则 */
|
|
239
239
|
unitConversionRules?: Array<IUnitConversionRule>;
|
|
240
|
-
/**
|
|
240
|
+
/** 规则配置-提前终止校验规则 */
|
|
241
241
|
inspectionDecisionRule?: IInspectionDecisionRule;
|
|
242
242
|
/** 数据初始化-数据源 */
|
|
243
243
|
customDataSource?: Array<ICustomDataSource>;
|
|
@@ -336,6 +336,8 @@ export interface ISelectionPaperData {
|
|
|
336
336
|
* @interface CopyData
|
|
337
337
|
*/
|
|
338
338
|
export interface ICopyData extends ISelectionPaperData {
|
|
339
|
+
/** 本次剪切的标识;字段仅允许通过当前会话中尚未使用的剪切数据移动。 */
|
|
340
|
+
cutId?: string;
|
|
339
341
|
/**
|
|
340
342
|
* 电子表单id
|
|
341
343
|
* @author lingxiaoming
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBindField } from '../../../../../nocode-base/src';
|
|
2
|
+
import { ICell, IPaper } from '../types';
|
|
3
|
+
interface CellFieldPlacement {
|
|
4
|
+
cell: ICell;
|
|
5
|
+
content: ICell | NonNullable<ICell['multiFieldsContent']>[number];
|
|
6
|
+
hidden: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** 合并区域仅左上角是实际填报位置,覆盖的字段保留供拆分恢复。 */
|
|
9
|
+
export declare function getCellFieldPlacements(paper: IPaper): CellFieldPlacement[];
|
|
10
|
+
/** 重新拖入被合并覆盖的字段时释放旧位置,防止拆分后恢复成重复绑定。 */
|
|
11
|
+
export declare function clearHiddenCellFieldPlacements(paper: IPaper, field: IBindField): void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ISheet } from '../types/sheets';
|
|
2
|
+
export interface PlacedFormField {
|
|
3
|
+
field: string;
|
|
4
|
+
fieldType: string;
|
|
5
|
+
model: string;
|
|
6
|
+
subFieldKey?: string;
|
|
7
|
+
}
|
|
8
|
+
/** 按 bizType(优先)或 fieldType 查询直接放置的字段;不包含组件配置引用的字段。 */
|
|
9
|
+
export declare function collectPlacedFieldsByType(sheets: readonly ISheet[], fieldType: string): PlacedFormField[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlacedFormField } from './placed-fields';
|
|
2
|
+
/** 从已保存的 Excel 设计稿提取指定类型的拖入字段,兼容单 Sheet 旧稿。 */
|
|
3
|
+
export declare function collectPlacedFieldsFromDesignerJson(designerJson: string | object | null | undefined, fieldType: string): PlacedFormField[];
|
|
4
|
+
/** 按模板 ID 查询已保存表单中拖入的指定类型字段,无需打开设计画布。 */
|
|
5
|
+
export declare function getPlacedFieldsByType(fieldType: string, templateId: string): Promise<PlacedFormField[]>;
|
|
6
|
+
/** 按模板 ID 查询已保存表单中拖入的印章字段。 */
|
|
7
|
+
export declare function getPlacedSealFields(templateId: string): Promise<PlacedFormField[]>;
|
|
@@ -18,15 +18,21 @@ export type ImportedFieldMeta = {
|
|
|
18
18
|
type PaperViewportRange = [string, string];
|
|
19
19
|
export declare class XlsxParser {
|
|
20
20
|
static extractPaperFields(paper: IPaper | null, fields: ImportedFieldMeta[] | null): CellField[];
|
|
21
|
-
static xlsx2Sheets(file: any, keyList?: string[]
|
|
21
|
+
static xlsx2Sheets(file: any, keyList?: string[], options?: {
|
|
22
|
+
withFields?: boolean;
|
|
23
|
+
}): Promise<{
|
|
22
24
|
sheets: {
|
|
23
25
|
title: string;
|
|
24
26
|
paper: IPaper;
|
|
25
27
|
paperFields: CellField[];
|
|
26
28
|
}[];
|
|
27
29
|
fields: ImportedFieldMeta[] | null;
|
|
30
|
+
warnings: string[];
|
|
28
31
|
}>;
|
|
29
|
-
static sheetToPaper(paperSheet: any, xlsxData: any
|
|
32
|
+
static sheetToPaper(paperSheet: any, xlsxData: any, size?: {
|
|
33
|
+
rows: number;
|
|
34
|
+
cols: number;
|
|
35
|
+
}): {
|
|
30
36
|
floatingFields?: import('../types').FloatingSealField[];
|
|
31
37
|
sheetId: string;
|
|
32
38
|
orientation: import('../../../../../nocode-base/src').Orientation;
|
|
@@ -62,7 +68,7 @@ export declare class XlsxParser {
|
|
|
62
68
|
* @param sheet
|
|
63
69
|
* @returns
|
|
64
70
|
*/
|
|
65
|
-
static sheetToFields(sheet: any, keyList: string[]): ImportedFieldMeta[];
|
|
71
|
+
static sheetToFields(sheet: any, keyList: string[], warnings?: string[]): ImportedFieldMeta[];
|
|
66
72
|
/**
|
|
67
73
|
* 字段信息转换为元数据
|
|
68
74
|
* @param field
|
|
@@ -17,13 +17,13 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
17
17
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
change: (...args: any[]) => void;
|
|
19
19
|
blur: (...args: any[]) => void;
|
|
20
|
-
focus: (...args: any[]) => void;
|
|
21
20
|
"update:value": (...args: any[]) => void;
|
|
21
|
+
focus: (...args: any[]) => void;
|
|
22
22
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
24
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
26
25
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
29
|
export default _default;
|
|
@@ -12,12 +12,12 @@ type __VLS_Props = {
|
|
|
12
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
13
|
change: (...args: any[]) => void;
|
|
14
14
|
blur: (...args: any[]) => void;
|
|
15
|
-
focus: (...args: any[]) => void;
|
|
16
15
|
"update:value": (...args: any[]) => void;
|
|
16
|
+
focus: (...args: any[]) => void;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
21
20
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -8,14 +8,14 @@ type __VLS_Props = {
|
|
|
8
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
9
|
change: (...args: any[]) => void;
|
|
10
10
|
blur: (...args: any[]) => void;
|
|
11
|
-
focus: (...args: any[]) => void;
|
|
12
11
|
"update:value": (...args: any[]) => void;
|
|
12
|
+
focus: (...args: any[]) => void;
|
|
13
13
|
pressEnter: (...args: any[]) => void;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
15
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
18
17
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
onPressEnter?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|
|
@@ -11,14 +11,14 @@ type __VLS_Props = {
|
|
|
11
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
12
|
change: (...args: any[]) => void;
|
|
13
13
|
blur: (...args: any[]) => void;
|
|
14
|
-
focus: (...args: any[]) => void;
|
|
15
14
|
"update:value": (...args: any[]) => void;
|
|
15
|
+
focus: (...args: any[]) => void;
|
|
16
16
|
pressEnter: (...args: any[]) => void;
|
|
17
17
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
18
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
onFocus?: ((...args: any[]) => any) | undefined;
|
|
21
20
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
onPressEnter?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
24
|
export default _default;
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
widget: ISeal;
|
|
4
4
|
formData: Record<string, any>;
|
|
5
5
|
surfaceGroup: string;
|
|
6
|
-
printMode: boolean;
|
|
7
6
|
};
|
|
8
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
export default _default;
|
|
@@ -3,7 +3,6 @@ type __VLS_Props = {
|
|
|
3
3
|
basicInfo: IBasicInfoItem;
|
|
4
4
|
dataCenter: Record<string, BaseCoreComponent.BasicSchema>;
|
|
5
5
|
formData: Record<string, any>;
|
|
6
|
-
printMode: boolean;
|
|
7
6
|
};
|
|
8
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
8
|
export default _default;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { SignInfo } from '../../../../../../../../shared/components/Signature';
|
|
2
1
|
import { SealStamp } from '../../../../../../../../shared/seal';
|
|
3
2
|
import { SealDetail, SealPasswordRequest } from './seal-api';
|
|
4
3
|
interface Dependencies {
|
|
5
4
|
sealId: string;
|
|
6
5
|
fetchDetail: (id: string) => Promise<SealDetail>;
|
|
7
6
|
verifyPassword: (request: SealPasswordRequest) => Promise<boolean>;
|
|
7
|
+
getCurrentUser: () => Pick<SealStamp, 'sealUserId' | 'sealUserName'>;
|
|
8
8
|
now: () => string;
|
|
9
9
|
isActive: () => boolean;
|
|
10
10
|
translate: (key: string) => string;
|
|
11
11
|
}
|
|
12
12
|
/** 弹窗内只暂存数据。返回最终结果后,调用方再一次性更新印章字段。 */
|
|
13
13
|
export declare function createSealStampFlow(deps: Dependencies): {
|
|
14
|
-
step: import('vue').Ref<"seal" | "signature", "seal" | "signature">;
|
|
15
14
|
detailStatus: import('vue').Ref<"idle" | "ready" | "error" | "loading", "idle" | "ready" | "error" | "loading">;
|
|
16
15
|
passwordStatus: import('vue').Ref<"idle" | "error" | "invalid" | "validating" | "valid", "idle" | "error" | "invalid" | "validating" | "valid">;
|
|
17
16
|
sealDetail: import('vue').Ref<SealDetail | undefined, SealDetail | undefined>;
|
|
@@ -19,11 +18,9 @@ export declare function createSealStampFlow(deps: Dependencies): {
|
|
|
19
18
|
passwordError: import('vue').Ref<string, string>;
|
|
20
19
|
error: import('vue').Ref<string, string>;
|
|
21
20
|
submitting: import('vue').Ref<boolean, boolean>;
|
|
22
|
-
authenticated: (info: SignInfo) => Promise<void>;
|
|
23
21
|
loadDetail: () => Promise<void>;
|
|
24
22
|
validatePassword: () => Promise<boolean>;
|
|
25
23
|
confirm: () => Promise<SealStamp | undefined>;
|
|
26
|
-
back: () => void;
|
|
27
24
|
dispose: () => void;
|
|
28
25
|
};
|
|
29
26
|
export {};
|
|
@@ -50,9 +50,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
50
50
|
"onChange-select"?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}>, {
|
|
52
52
|
height: string;
|
|
53
|
-
autoResize: boolean;
|
|
54
53
|
wrapperHeight: number | string;
|
|
55
54
|
wrapperWidth: number | string;
|
|
55
|
+
autoResize: boolean;
|
|
56
56
|
showRowSelectionMode: boolean;
|
|
57
57
|
rowSelectionMode: "single" | "multiple";
|
|
58
58
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -32,9 +32,9 @@ declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {},
|
|
|
32
32
|
}>, {
|
|
33
33
|
color: string | RgbaType;
|
|
34
34
|
width: number;
|
|
35
|
-
placement: any;
|
|
36
35
|
preset: string[];
|
|
37
36
|
useTrigger: boolean;
|
|
37
|
+
placement: any;
|
|
38
38
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
39
39
|
saturationRef: HTMLDivElement;
|
|
40
40
|
hueSliderRef: HTMLDivElement;
|
|
@@ -36,6 +36,19 @@ export declare function addSignHistory(opts: {
|
|
|
36
36
|
* @return {*}
|
|
37
37
|
*/
|
|
38
38
|
export declare function completeSignInfo(partial: PartialSignInfo): Promise<SignInfo>;
|
|
39
|
+
export interface ImageSize {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
/** 无图签名的显示尺寸,canvas 以两倍像素绘制 */
|
|
44
|
+
export declare const FALLBACK_SIGN_DISPLAY_SIZE: {
|
|
45
|
+
readonly width: 120;
|
|
46
|
+
readonly height: 68;
|
|
47
|
+
};
|
|
48
|
+
/** 横向“姓名 + 日期”兜底签名按文字内容决定宽度,保持默认高度。 */
|
|
49
|
+
export declare function getFormSignFallbackSize(name: string, time?: number | string, height?: 68): ImageSize;
|
|
50
|
+
/** 仅姓名兜底签名按最长一行文字宽度和左右各 8px 留白确定画布宽度。 */
|
|
51
|
+
export declare function getSimpleNameFallbackSize(name: string, height: number): ImageSize;
|
|
39
52
|
/**
|
|
40
53
|
* 获取预览url地址
|
|
41
54
|
*
|
|
@@ -52,4 +65,5 @@ export declare function resolveSignatureImageDirection(direction?: string): Sign
|
|
|
52
65
|
* 表单签名/报工人/仓管员字段预览(无图片时按兜底签名配置绘制)
|
|
53
66
|
* 无配置时默认「仅用户名」。
|
|
54
67
|
*/
|
|
68
|
+
export declare function getFormSignPreviewSize(name: string, time?: number | string, fallbackSignType?: FallbackSignTypeEnum | string, signatureImageDirection?: SignatureImageDirectionEnum | string): ImageSize;
|
|
55
69
|
export declare function getFormSignPreviewUrl(url: any, name: any, callback?: any, time?: number | string, fallbackSignType?: FallbackSignTypeEnum | string, signatureImageDirection?: SignatureImageDirectionEnum | string): any;
|
|
@@ -171,7 +171,7 @@ export declare enum FIELD_TYPE {
|
|
|
171
171
|
* 签名
|
|
172
172
|
*/
|
|
173
173
|
SIGNATURE = "electronic_signature",
|
|
174
|
-
/** 印章,存储 type=
|
|
174
|
+
/** 印章,存储 type=seal、bizType=seal */
|
|
175
175
|
SEAL = "seal",
|
|
176
176
|
/**
|
|
177
177
|
* 表单模板、在线表单模板
|
|
@@ -327,16 +327,20 @@ export declare enum FIELD_TYPE {
|
|
|
327
327
|
* 产品检验数量
|
|
328
328
|
*/
|
|
329
329
|
PRODUCT_CHECK_QTY = "product_check_qty",
|
|
330
|
+
/**
|
|
331
|
+
* 放行数量
|
|
332
|
+
*/
|
|
333
|
+
PRODUCT_RELEASE_QTY = "product_release_qty",
|
|
330
334
|
/**
|
|
331
335
|
* 材料检验数量
|
|
332
336
|
*/
|
|
333
337
|
MATERIAL_CHECK_QTY = "material_check_qty",
|
|
334
338
|
/**
|
|
335
|
-
*
|
|
339
|
+
* 送检数量
|
|
336
340
|
*/
|
|
337
341
|
INSPECTION_QTY = "inspection_qty",
|
|
338
342
|
/**
|
|
339
|
-
*
|
|
343
|
+
* 检验数量
|
|
340
344
|
*/
|
|
341
345
|
INSPECTION_MODULE_QTY = "inspection_module_qty",
|
|
342
346
|
/**
|
|
@@ -568,6 +572,7 @@ export declare const FieldIconMap: {
|
|
|
568
572
|
scrap_material_no: string;
|
|
569
573
|
destructive_test_qty: string;
|
|
570
574
|
product_check_qty: string;
|
|
575
|
+
product_release_qty: string;
|
|
571
576
|
material_check_qty: string;
|
|
572
577
|
inspection_qty: string;
|
|
573
578
|
inspection_module_qty: string;
|
|
@@ -581,6 +586,8 @@ export declare const FieldIconMap: {
|
|
|
581
586
|
qty_required: string;
|
|
582
587
|
qty_consumed: string;
|
|
583
588
|
qty: string;
|
|
589
|
+
object_type: string;
|
|
590
|
+
material_consume: string;
|
|
584
591
|
model_relation: string;
|
|
585
592
|
external_reference_no: string;
|
|
586
593
|
warehouse: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { FIELD_TYPE } from './field-type';
|
|
2
2
|
export { Platform, ButtonStyle, ButtonSize, ButtonType, ButtonType_vant, ButtonOpeEnum, } from './button';
|
|
3
3
|
export { SignatureTypeEnum } from './signature';
|
|
4
|
+
export { ProductTypeEnum } from './product-type';
|
|
5
|
+
export { ProductionIdentificationTypeEnum } from './production-identification';
|
|
4
6
|
export { CardControlEnum, onlineFormMasterModelTypeEnum, RecordNoGenerateEnum, } from './online-form';
|
|
5
7
|
export { SEARCH_SEVICE } from './search';
|
|
6
8
|
export { GctMqttTopsEnum } from './mqtt';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 生产标识类型(production_identification_type_) */
|
|
2
|
+
export declare enum ProductionIdentificationTypeEnum {
|
|
3
|
+
/** 物料批 */
|
|
4
|
+
MATERIAL = "MATERIAL",
|
|
5
|
+
/** 生产批次 */
|
|
6
|
+
LOT = "LOT",
|
|
7
|
+
/** 生产序列号 */
|
|
8
|
+
SN = "SN",
|
|
9
|
+
/** 灭菌批 */
|
|
10
|
+
STERILIZATION = "STERILIZATION",
|
|
11
|
+
/** 检验批 */
|
|
12
|
+
INSPECTION_CONTAINER = "INSPECTION_CONTAINER",
|
|
13
|
+
/** 旧检验批取值 */
|
|
14
|
+
LEGACY_INSPECTION = "inspection",
|
|
15
|
+
/** 包装箱 */
|
|
16
|
+
PACK_BOX = "PACK_BOX",
|
|
17
|
+
/** 医疗器械唯一标识 */
|
|
18
|
+
UDI = "UDI"
|
|
19
|
+
}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export * from './enum';
|
|
3
3
|
export type { SealPosition, SealStamp, SealFieldValue, SealSource } from './seal';
|
|
4
4
|
export type * from './types';
|
|
5
|
+
export { useWebUpload } from './hooks/useWebUpload';
|
|
5
6
|
export { VersionSelect } from './components/version-select';
|
|
6
7
|
export { OnlineFormModelSelect, OnlineFormModelModal, } from './components/online-form-model-select';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IUploadParams {
|
|
2
|
+
type: 'image' | 'file';
|
|
3
|
+
modelKey?: string;
|
|
4
|
+
}
|
|
5
|
+
type UploadFunction = (file: any, opts?: IUploadParams) => Promise<string> | string | void;
|
|
6
|
+
type TransferFunction = (filename: string) => string;
|
|
7
|
+
export interface IWebUploadApis {
|
|
8
|
+
upload: UploadFunction | null;
|
|
9
|
+
transfer: TransferFunction | null;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type CellWrapStyle = {
|
|
2
|
+
whiteSpace?: unknown;
|
|
3
|
+
wordBreak?: unknown;
|
|
4
|
+
'white-space'?: unknown;
|
|
5
|
+
'word-break'?: unknown;
|
|
6
|
+
};
|
|
7
|
+
/** 新模板使用 pre-wrap + break-all;旧模板的 pre-line 同样表示已开启换行。 */
|
|
8
|
+
export declare function isCellAutoLineBreak(style?: CellWrapStyle | null): boolean;
|
|
9
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { buildLikeQuery } from './query-filter';
|
|
1
2
|
export declare const LOT_CONTAINER_ROLE: {
|
|
2
3
|
/** 普通批次 */
|
|
3
4
|
readonly NORMAL: "normal";
|
|
@@ -15,7 +16,7 @@ export declare const LOT_CONTAINER_ROLE: {
|
|
|
15
16
|
/**
|
|
16
17
|
* 对齐 word buildLikeQuery:过滤条件写入 exp,搜索用 iLike,两者 AND。
|
|
17
18
|
*/
|
|
18
|
-
export declare function buildLotLikeQuery(
|
|
19
|
+
export declare function buildLotLikeQuery(...args: Parameters<typeof buildLikeQuery>): {
|
|
19
20
|
queryData: Record<string, any>;
|
|
20
21
|
exp: string;
|
|
21
22
|
};
|
|
@@ -39,6 +40,18 @@ export declare function composeProductionLotListQuery(queryData?: Record<string,
|
|
|
39
40
|
queryData: Record<string, any>;
|
|
40
41
|
exp: string;
|
|
41
42
|
};
|
|
43
|
+
/** 物料批下拉与 Word 使用相同的类型 OR 分组和统一查询构建方式。 */
|
|
44
|
+
export declare function buildMaterialLotListQuery(keyword?: string, extraQuery?: Record<string, any>): {
|
|
45
|
+
queryData: Record<string, any>;
|
|
46
|
+
exp: string;
|
|
47
|
+
};
|
|
48
|
+
/** 兼容已有 queryData/exp 和旧批号字段名,过滤部分仍由统一构建方法生成。 */
|
|
49
|
+
export declare function composeMaterialLotListQuery(queryData?: Record<string, any>, exp?: string): {
|
|
50
|
+
queryData: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
};
|
|
53
|
+
exp: string;
|
|
54
|
+
};
|
|
42
55
|
/** 关联子批次在界面展示父批次名,但实际值仍保留子批次。 */
|
|
43
56
|
export declare function resolveLotDisplayLabel(record: Record<string, any> | null | undefined, fallback?: unknown): string;
|
|
44
57
|
export declare function normalizeProductionContainerOptions(options?: any[]): any[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** 下拉接口使用的查询结构。 */
|
|
2
|
+
export interface FieldQuery {
|
|
3
|
+
queryData?: Record<string, unknown>;
|
|
4
|
+
exp?: string;
|
|
5
|
+
}
|
|
6
|
+
/** 空 values 明确表示无候选,空条件列表表示不追加过滤。 */
|
|
7
|
+
export interface FieldQueryFilter {
|
|
8
|
+
field: string;
|
|
9
|
+
operator: 'in';
|
|
10
|
+
values: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
/** 空 IN 可能被接口视为不筛选,使用占位值表达无候选。 */
|
|
13
|
+
export declare const EMPTY_QUERY_VALUE = "__excel_no_matching_query_value__";
|
|
14
|
+
/** 与 Word 相同的约定:搜索键 OR,过滤键 AND,__orExpKeys 指定过滤中的 OR 分组。 */
|
|
15
|
+
export declare function buildLikeQuery(searchFields: string[], keyword: string, extraQuery?: Record<string, any>, options?: {
|
|
16
|
+
filterCombine?: 'and' | 'or';
|
|
17
|
+
}): {
|
|
18
|
+
queryData: Record<string, any>;
|
|
19
|
+
exp: string;
|
|
20
|
+
};
|
|
21
|
+
/** 兼容已有 exp 入参时统一合并,避免破坏搜索 OR 或重复堆叠 AND。 */
|
|
22
|
+
export declare function combineQueryExpressions(...expressions: string[]): string;
|
|
23
|
+
/** 与 Word 一致:附加过滤按 AND 合并,同字段 IN 取交集。 */
|
|
24
|
+
export declare function mergeQueryFilters(query: FieldQuery, filters: readonly FieldQueryFilter[]): FieldQuery;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type RequestFn<TParams, TResult> = (params: TParams) => Promise<TResult>;
|
|
2
|
+
interface CacheEntry<TResult> {
|
|
3
|
+
data: TResult;
|
|
4
|
+
expireAt: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const withRequestCache: {
|
|
7
|
+
pendingMap: Map<string, Promise<any>>;
|
|
8
|
+
cacheMap: Map<string, CacheEntry<any>>;
|
|
9
|
+
defaultTTL: number;
|
|
10
|
+
/** 生成唯一 key */
|
|
11
|
+
getKey(url: string, params: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* 处理带缓存与去重的请求
|
|
14
|
+
* @param url 唯一逻辑标识(非实际 API 地址)
|
|
15
|
+
* @param params 请求参数
|
|
16
|
+
* @param requestFn 实际请求函数
|
|
17
|
+
* @param ttl 可选,缓存有效期(毫秒)
|
|
18
|
+
*/
|
|
19
|
+
handleRequest<TParams, TResult>(url: string, params: TParams, requestFn: RequestFn<TParams, TResult>, ttl?: number): Promise<TResult>;
|
|
20
|
+
/** 清空全部缓存 */
|
|
21
|
+
clearCache(): void;
|
|
22
|
+
/** 清空 pending 状态 */
|
|
23
|
+
clearPending(): void;
|
|
24
|
+
/** 定期清理过期缓存 */
|
|
25
|
+
cleanupExpiredCache(): void;
|
|
26
|
+
};
|
|
27
|
+
export {};
|