@gct-paas/excel 0.1.40-beta.3 → 0.1.40-beta.30
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-EzX32ZdY.js} +2 -2
- package/dist/{VueVideoPlayer-CAWYWBHi.js → VueVideoPlayer-BuuQaqyI.js} +2 -2
- package/dist/{align-editor-a4DQt4Un.js → align-editor-DWHHVeY1.js} +1 -1
- package/dist/{barcode-design-CBqUEPYu.js → barcode-design-B0WcJSEI.js} +2 -2
- package/dist/base/index.es.js +742 -306
- package/dist/{diagonal-design-u23896Ky.js → diagonal-design-D6uOJZmP.js} +2 -2
- package/dist/{dynamic-table-action-BWI4Gaqi.js → dynamic-table-action-D-ub6KoK.js} +1316 -502
- 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-BXhhaToT.js} +2 -2
- package/dist/{font-editor-BtSCLMrM.js → font-editor-_HTdKFX6.js} +3 -3
- package/dist/{image-design-CtE-Lw7N.js → image-design-4Ee8rZqa.js} +3 -8
- package/dist/{index-I1r5pfu5.js → index-7AmrbQlC.js} +2 -2
- package/dist/{index-IVc1dOet.js → index-8ZnBcx1k.js} +6 -5
- package/dist/{index-CYLAVQfT.js → index-B4LuUmbW.js} +2 -2
- package/dist/{index-BFg5eUdY.js → index-BCCIwSnM.js} +1 -1
- package/dist/{index-BMoz_QhA.js → index-BHJxBByd.js} +1 -1
- package/dist/{index-Bc61F6Hm.js → index-BLf1U1A9.js} +5 -7
- package/dist/{index-DVEe11uM.js → index-BYq7x5n6.js} +1 -1
- package/dist/{index-BfBuxgcp.js → index-B_DPnVrC.js} +2 -2
- package/dist/{index-CL9K9orM.js → index-Bbyb-owd.js} +6 -3
- package/dist/{index-3WwCV4xR.js → index-BlMiHVOC.js} +1 -1
- package/dist/{index-BKXb3VJc.js → index-BnOOLcX1.js} +2 -2
- package/dist/{index-B0cdcIWq.js → index-Bnt54Sc6.js} +2 -2
- package/dist/{index-Dyomjz3y.js → index-CH_C9ijO.js} +2 -2
- package/dist/{index-aNV9T6LI.js → index-CMdXdyvs.js} +2 -2
- package/dist/{index-CdHVHaxO.js → index-CQ0_Kx1_.js} +2 -2
- package/dist/{index-DdWefZMa.js → index-Cb7Fh_E2.js} +2 -2
- package/dist/{index-Bnb70qEi.js → index-CtVFTmHZ.js} +3 -3
- package/dist/{index-CPTGioxl.js → index-D3KiKYMR.js} +1 -1
- package/dist/{index-BRQkrFQ9.js → index-D87CVHA-.js} +2 -2
- package/dist/{index-BGAcYDx-.js → index-DM0OEvdI.js} +1 -1
- package/dist/{index-Ca9TLzUh.js → index-DPTR_QJn.js} +1 -1
- package/dist/{index-CAdDeEzJ.js → index-DVzaxa5k.js} +2 -2
- package/dist/{index-BP-LhXXV.js → index-DcXbL-0o.js} +6 -5
- package/dist/{index-CIa37rQm.js → index-Dn0qfALy.js} +3 -2
- package/dist/{index-CVsoaxTR.js → index-Dnz3YPDV.js} +2 -2
- package/dist/{index-BC8hQ4vo.js → index-DoWp9uDw.js} +2 -2
- package/dist/{index-CeEhYXl9.js → index-Dstr-PNj.js} +2 -2
- package/dist/{index-9S48hpoJ.js → index-DzqaKW6e.js} +2 -2
- package/dist/{index-ixQwAcB1.js → index-GoAXo3fT.js} +37707 -30077
- package/dist/{index-731OYkrc.js → index-Jy2tofdo.js} +3 -3
- package/dist/{index-7aS5L4ot.js → index-KRo2-iQv.js} +6 -3
- package/dist/{index-CpPk8P3L.js → index-KuhYPy5i.js} +1 -1
- package/dist/{index-DNj0vFvx.js → index-YlEOHde0.js} +1 -1
- 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-DANnqQdI.js} +2 -2
- package/dist/paper-widget-design-BrE7Bb4V.js +4 -0
- package/dist/{print-runtime-instance-DQysbz5n.js → print-runtime-instance-PabaORE2.js} +1 -1
- package/dist/{print-snapshot-renderer-DWHjMsOC.js → print-snapshot-renderer-DQr2G7Hv.js} +3 -3
- package/dist/{qrcode-design-CX0_2mLC.js → qrcode-design-BEA1JchI.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-CX-ZxOn3.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-CkUP3H7u.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 +2 -2
- 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 +2 -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 +23 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +11 -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 +1 -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 +6 -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-GzYKYE9t.js} +230 -156
- package/dist/{text-design-Dz0Qf2O3.js → text-design-V3TQuLps.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-D1Gzs1mF.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-DoOuCca5.js} +2 -2
- package/dist/{widget-barcode-XF3nCU9v.js → widget-barcode-CNrl2NxY.js} +4 -4
- package/dist/{widget-diagonal-DSym7fks.js → widget-diagonal-CqjD1SwW.js} +3 -4
- package/dist/{widget-image-CmjwkVs7.js → widget-image-Xjl5W2Fp.js} +5 -7
- package/dist/{widget-line-BX64xVfU.js → widget-line-BUVVnwrU.js} +2 -2
- package/dist/{widget-pagination-BV89Lvjt.js → widget-pagination-DjMXWioI.js} +5 -5
- package/dist/{widget-power-DoSfQv92.js → widget-power-Dck9H8a9.js} +3 -4
- package/dist/{widget-qrcode-UGcRLC56.js → widget-qrcode-Cu8BwE24.js} +3 -3
- package/dist/{widget-rangelimit-CUHD__1H.js → widget-rangelimit-DLxebCKf.js} +3 -4
- package/dist/{widget-serialnumber-CAkZR5Xl.js → widget-serialnumber-DecFCGS0.js} +1 -1
- package/dist/{widget-text-DtYVTThu.js → widget-text-DV3yKKsx.js} +5 -5
- package/dist/{widget-timediff-DX_IoCMO.js → widget-timediff-BIwewJ39.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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ObjectProductDefault {
|
|
2
|
+
value: unknown;
|
|
3
|
+
sourceData?: Record<string, any>;
|
|
4
|
+
}
|
|
5
|
+
/** 准备数据和生成默认值使用同一份字段列表,按字段对象隔离不同对象的默认值。 */
|
|
6
|
+
export type ObjectProductDefaultMap = WeakMap<object, ObjectProductDefault>;
|
|
7
|
+
interface Options {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
fields: readonly unknown[];
|
|
10
|
+
objectInitialValues?: readonly {
|
|
11
|
+
objectField: string;
|
|
12
|
+
objectFieldName?: string;
|
|
13
|
+
values?: Record<string, any>;
|
|
14
|
+
}[];
|
|
15
|
+
onWarning?: (message: string) => void;
|
|
16
|
+
}
|
|
17
|
+
/** 只解析对象物料默认值、查询对应详情;赋值和填充统一由默认值入口执行。 */
|
|
18
|
+
export declare function prepareObjectProductDefaults({ enabled, fields, objectInitialValues, onWarning, }: Options): Promise<ObjectProductDefaultMap>;
|
|
19
|
+
export {};
|
package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IBasicInfoItem, ValidateFieldErrorMap } from '../../types';
|
|
2
|
+
import { RuntimeInstanceRecord } from '../../runtime';
|
|
3
|
+
type Options = {
|
|
4
|
+
record: RuntimeInstanceRecord;
|
|
5
|
+
getInfo(): IBasicInfoItem | undefined;
|
|
6
|
+
isCurrent(): boolean;
|
|
7
|
+
shouldSkip(): boolean;
|
|
8
|
+
applyComments(fields: ValidateFieldErrorMap): void;
|
|
9
|
+
};
|
|
10
|
+
type Result = {
|
|
11
|
+
isValid: boolean;
|
|
12
|
+
fields?: ValidateFieldErrorMap;
|
|
13
|
+
};
|
|
14
|
+
/** 实例级对象错误展示与刷新;数据变化由已有 Store 订阅传入。 */
|
|
15
|
+
export declare function createMaterialConsumeObjectValidation(options: Options): {
|
|
16
|
+
validate: (live?: boolean) => Promise<Result | undefined>;
|
|
17
|
+
requestLive: () => void;
|
|
18
|
+
replaceTableFields: (fields?: ValidateFieldErrorMap) => void;
|
|
19
|
+
clear: () => void;
|
|
20
|
+
beginSubmit(): void;
|
|
21
|
+
endSubmit(): void;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { RenderModeEnum, FormTypeEnum, PlatformEnum } from '../../constant';
|
|
2
2
|
import { RuntimeFormStateStore, RuntimeInstanceRegistry, RuntimeInstanceRecord } from '../../runtime';
|
|
3
|
-
import { IProps, IPayload, RuntimeInstanceSource } from './types';
|
|
3
|
+
import { IProps, IPayload, RuntimeInstanceSource, RuntimeSelfInfo } from './types';
|
|
4
4
|
import { useMaterialBalance } from '../material-balance/useMaterialBalance';
|
|
5
|
-
|
|
5
|
+
import { DesignerDefaultValues } from '../../runtime/designer-default-values';
|
|
6
|
+
export declare function createRuntimeInstanceInitializer(props: IProps, payload: IPayload, getConsumeData: ReturnType<typeof useMaterialBalance>['getConsumeData']): (id: string, result: RuntimeInstanceSource, options?: {
|
|
7
|
+
initializeValues?: boolean;
|
|
8
|
+
}) => Promise<{
|
|
6
9
|
runtimeContext: import('../..').RuntimeInstanceContext;
|
|
7
10
|
runtimeFormStateStore: RuntimeFormStateStore;
|
|
8
11
|
runtimeFieldMetadata: import('../..').RuntimeFieldMetadata;
|
|
12
|
+
defaultValueOrigins: DesignerDefaultValues;
|
|
9
13
|
scriptRunner: any;
|
|
10
14
|
basicInfo: {
|
|
11
15
|
key: string;
|
|
@@ -41,14 +45,11 @@ export declare function createRuntimeInstanceInitializer(props: IProps, payload:
|
|
|
41
45
|
productSearchFields: string;
|
|
42
46
|
showPrintFieldBg: any;
|
|
43
47
|
paramsConfig: Record<string, any> | undefined;
|
|
48
|
+
businessType: any;
|
|
44
49
|
instanceStatus: any;
|
|
50
|
+
dataStatus: any;
|
|
45
51
|
};
|
|
46
|
-
selfInfo:
|
|
47
|
-
formType: FormTypeEnum;
|
|
48
|
-
viewType: import('../..').ViewTypeEnum;
|
|
49
|
-
modelKey: string;
|
|
50
|
-
bindKey?: string;
|
|
51
|
-
} & Record<string, any>;
|
|
52
|
+
selfInfo: RuntimeSelfInfo;
|
|
52
53
|
} | undefined>;
|
|
53
54
|
export type PreparedRuntimeInstance = NonNullable<Awaited<ReturnType<ReturnType<typeof createRuntimeInstanceInitializer>>>>;
|
|
54
55
|
/** 过期请求和批量初始化失败的结果未注册,资源在此释放,不影响当前页面的实例。 */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RuntimeFieldMetadata } from '../../runtime/runtime-field-registry';
|
|
2
|
-
/** detail
|
|
2
|
+
/** detail 中的交易实例关联灭菌记录,首次加载时仅补齐所有工作表主、子表字段的空值。 */
|
|
3
3
|
export declare function fillSterilizationDate(txnInstId: unknown, metadata: RuntimeFieldMetadata, formState: Record<string, unknown>): Promise<void>;
|
|
@@ -51,7 +51,10 @@ export interface IPayload extends ITemplatePayload, IInstancePayload {
|
|
|
51
51
|
onFormStateReady?: (store: RuntimeFormStateStore) => unknown;
|
|
52
52
|
}
|
|
53
53
|
/** 不同平台接口的开放业务元信息;不是运行时索引或提交数据的副本。 */
|
|
54
|
-
export type RuntimeSelfInfo = Parameters<typeof baseDataUtils.requestRenderData>[0]['info']
|
|
54
|
+
export type RuntimeSelfInfo = Parameters<typeof baseDataUtils.requestRenderData>[0]['info'] & {
|
|
55
|
+
/** detail 返回的交易实例 id,供检验数量查询使用。 */
|
|
56
|
+
txnInstId?: string;
|
|
57
|
+
};
|
|
55
58
|
/** 请求适配后的内部初始化输入,单个/批量入口使用同一约定。 */
|
|
56
59
|
export interface RuntimeInstanceSource {
|
|
57
60
|
id?: string;
|
|
@@ -87,7 +87,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
87
87
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
88
88
|
showPrintFieldBg?: boolean | undefined;
|
|
89
89
|
paramsConfig?: Record<string, any> | undefined;
|
|
90
|
+
businessType?: string | undefined;
|
|
90
91
|
instanceStatus?: string | undefined;
|
|
92
|
+
dataStatus?: string | undefined;
|
|
91
93
|
}[], IBasicInfoItem[] | {
|
|
92
94
|
key: string;
|
|
93
95
|
tid: string;
|
|
@@ -129,7 +131,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
129
131
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
130
132
|
showPrintFieldBg?: boolean | undefined;
|
|
131
133
|
paramsConfig?: Record<string, any> | undefined;
|
|
134
|
+
businessType?: string | undefined;
|
|
132
135
|
instanceStatus?: string | undefined;
|
|
136
|
+
dataStatus?: string | undefined;
|
|
133
137
|
}[]>;
|
|
134
138
|
selfInfoList: import('vue').Ref<{
|
|
135
139
|
[x: string]: any;
|
|
@@ -137,17 +141,14 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
137
141
|
viewType: import('..').ViewTypeEnum;
|
|
138
142
|
modelKey: string;
|
|
139
143
|
bindKey?: string | undefined;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
viewType: import('..').ViewTypeEnum;
|
|
143
|
-
modelKey: string;
|
|
144
|
-
bindKey?: string;
|
|
145
|
-
} & Record<string, any>)[] | {
|
|
144
|
+
txnInstId?: string | undefined;
|
|
145
|
+
}[], import('./render-page/types').RuntimeSelfInfo[] | {
|
|
146
146
|
[x: string]: any;
|
|
147
147
|
formType: import('..').FormTypeEnum;
|
|
148
148
|
viewType: import('..').ViewTypeEnum;
|
|
149
149
|
modelKey: string;
|
|
150
150
|
bindKey?: string | undefined;
|
|
151
|
+
txnInstId?: string | undefined;
|
|
151
152
|
}[]>;
|
|
152
153
|
hasData: import('vue').ComputedRef<boolean>;
|
|
153
154
|
findFormInsInfo: (id: string) => {
|
|
@@ -156,6 +157,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
156
157
|
viewType: import('..').ViewTypeEnum;
|
|
157
158
|
modelKey: string;
|
|
158
159
|
bindKey?: string | undefined;
|
|
160
|
+
txnInstId?: string | undefined;
|
|
159
161
|
} | undefined;
|
|
160
162
|
findBasicInsInfo: (id: string) => {
|
|
161
163
|
key: string;
|
|
@@ -198,7 +200,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
198
200
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
199
201
|
showPrintFieldBg?: boolean | undefined;
|
|
200
202
|
paramsConfig?: Record<string, any> | undefined;
|
|
203
|
+
businessType?: string | undefined;
|
|
201
204
|
instanceStatus?: string | undefined;
|
|
205
|
+
dataStatus?: string | undefined;
|
|
202
206
|
} | undefined;
|
|
203
207
|
updateRenderModeType: (uniqueId: string, mode: import('..').RenderModeEnum, updateButton?: boolean) => Promise<void>;
|
|
204
208
|
setFromEditStatus: (uniqueId: string) => Promise<boolean>;
|
|
@@ -34,7 +34,18 @@ export type RefCustomLoaderRawResult = RefLoaderNormalizedResult | {
|
|
|
34
34
|
dict?: any;
|
|
35
35
|
pageSize?: number;
|
|
36
36
|
} | any[];
|
|
37
|
-
export type RefCustomLoader = (params: RefCustomLoaderParams) => Promise<RefCustomLoaderRawResult
|
|
37
|
+
export type RefCustomLoader = ((params: RefCustomLoaderParams) => Promise<RefCustomLoaderRawResult>) & {
|
|
38
|
+
/** 下拉展开前校验;未通过时由字段组件弹出 message 并阻止展开。 */
|
|
39
|
+
beforeOpen?: () => Promise<{
|
|
40
|
+
allowed: boolean;
|
|
41
|
+
message?: string;
|
|
42
|
+
}>;
|
|
43
|
+
/** 选项关联同一物料时,仍按批次等独立身份高亮。 */
|
|
44
|
+
getSelectedKey?: () => string | undefined;
|
|
45
|
+
getOptionKey?: (option: RefLoaderNormalizedResult['options'][number]) => string;
|
|
46
|
+
/** 选中后立即与主字段一起回填的关联数据。 */
|
|
47
|
+
getSelectionPatch?: (record: Record<string, any>) => Record<string, unknown>;
|
|
48
|
+
};
|
|
38
49
|
/** 从 queryData 中提取快捷搜索关键字 */
|
|
39
50
|
export declare function extractKeywordFromQueryData(queryData?: Record<string, any>): any;
|
|
40
51
|
/** 将自定义数据源返回值标准化为 ref 组件消费结构 */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormTypeEnum } from '../constant';
|
|
2
2
|
import { FormTmplBomController } from '../hooks';
|
|
3
3
|
import { RuntimeFieldMetadata } from '../runtime/runtime-field-registry';
|
|
4
|
+
import { ObjectProductDefault } from '../hooks/material-consume-object/initialize-autofill';
|
|
4
5
|
/** 渲染端公共类 */
|
|
5
6
|
export declare const renderUtils: {
|
|
6
7
|
getValue: (modelValue: any, multiple: any) => any;
|
|
@@ -90,8 +91,10 @@ export declare const renderUtils: {
|
|
|
90
91
|
/** 提前设置值给widget */
|
|
91
92
|
setRequestInfo2DataCenter: (dataCenters: any, modelKeys: any, platformType: any, isMockReport: any, formType: FormTypeEnum, paramsConfig: any, useSignFields: any, useClsReasonDataLink: any, useClsGroupDataLink: any, tmplBomC: FormTmplBomController, modelQueries: any) => Promise<void>;
|
|
92
93
|
/** 获取默认值集合 */
|
|
93
|
-
getDefaultValueMapByField: ({ defaultValueFields, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
94
|
+
getDefaultValueMapByField: ({ defaultValueFields, onDesignerDefault, objectProductDefaults, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
94
95
|
defaultValueFields: any;
|
|
96
|
+
onDesignerDefault?: ((field: any, value: unknown) => void) | undefined;
|
|
97
|
+
objectProductDefaults?: WeakMap<object, ObjectProductDefault> | undefined;
|
|
95
98
|
mainMaterialNo?: undefined;
|
|
96
99
|
mainRelatedLotNo?: undefined;
|
|
97
100
|
mainProductName?: undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderModeEnum } from '../constant';
|
|
2
2
|
import { ICheckTableConfig } from './front-config';
|
|
3
3
|
import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
|
|
4
|
+
import { DesignerDefaultValues } from '../runtime/designer-default-values';
|
|
4
5
|
import { RuntimeTableRelation } from '../runtime/table-row-identity';
|
|
5
6
|
/** 将源数据转换为子表数据 */
|
|
6
7
|
declare function transformSourceData2SubTable(data: any, dict?: {},
|
|
@@ -22,6 +23,7 @@ export declare const transformUtils: {
|
|
|
22
23
|
getSubTableInfo: (paper: any) => any;
|
|
23
24
|
/** 获取默认值 */
|
|
24
25
|
getDefaultData: (payload: {
|
|
26
|
+
defaultValueOrigins?: DesignerDefaultValues;
|
|
25
27
|
/** 默认值数据 */
|
|
26
28
|
defaultDataMap: any;
|
|
27
29
|
/** 子表信息 */
|
|
@@ -90,6 +92,14 @@ export declare const transformUtils: {
|
|
|
90
92
|
viewMode: RenderModeEnum;
|
|
91
93
|
ofCtx: any;
|
|
92
94
|
}) => Promise<any>;
|
|
95
|
+
/** 数据加载完成事件;全部 Sheet 的数据合并后、创建 Store 和分页前只执行一次。 */
|
|
96
|
+
getEventInitDataLoaded: (payload: {
|
|
97
|
+
formConfig: Record<string, any>;
|
|
98
|
+
formState: any;
|
|
99
|
+
viewMode: RenderModeEnum;
|
|
100
|
+
dataStatus?: string;
|
|
101
|
+
ofCtx: any;
|
|
102
|
+
}) => Promise<void>;
|
|
93
103
|
/** 创建字段事件执行器;注册后由 RuntimeInstanceRecord 持有,全部 Sheet 共用。 */
|
|
94
104
|
createScriptRunner: (payload: {
|
|
95
105
|
formConfig: Record<string, any>;
|
|
@@ -100,6 +110,7 @@ export declare const transformUtils: {
|
|
|
100
110
|
}) => any;
|
|
101
111
|
/** 转换formState */
|
|
102
112
|
conversionFormState: (payload: {
|
|
113
|
+
defaultValueOrigins?: DesignerDefaultValues;
|
|
103
114
|
/** 默认值数据 */
|
|
104
115
|
defaultData: any;
|
|
105
116
|
/** 参数数据 */
|
|
@@ -139,10 +150,15 @@ export declare const transformUtils: {
|
|
|
139
150
|
};
|
|
140
151
|
/** 数据转成真实提交数据(二维表要平铺);layout 是所有 Sheet 的业务表汇总索引。 */
|
|
141
152
|
getSubmitFormData: (formData: any, layout: {
|
|
153
|
+
subTableInfo?: {
|
|
154
|
+
field: string;
|
|
155
|
+
key?: string;
|
|
156
|
+
}[];
|
|
157
|
+
businessTableFields?: readonly string[];
|
|
142
158
|
subTable2DList?: any[];
|
|
143
159
|
checkTable2DList?: any[];
|
|
144
160
|
materialConsumeTableList?: any[];
|
|
145
161
|
}) => Partial<{}>;
|
|
146
|
-
getFormDataIdsMap: (formData: any, preserveKeys?: string[]) => any;
|
|
162
|
+
getFormDataIdsMap: (formData: any, preserveKeys?: string[], shouldPreserveField?: (path: string) => boolean) => any;
|
|
147
163
|
};
|
|
148
164
|
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** 仅未填报时允许清理;新版 UNFILLED 也可能固定返回 dataStatus=SUBMIT。 */
|
|
2
|
+
export declare function canClearDesignerDefaults(status: {
|
|
3
|
+
instanceStatus?: string;
|
|
4
|
+
dataStatus?: string;
|
|
5
|
+
}): boolean;
|
|
6
|
+
/** 只记录本次确实由设计器默认值初始化的位置,不把相同的历史值当成默认值。 */
|
|
7
|
+
export declare class DesignerDefaultValues {
|
|
8
|
+
readonly values: Record<string, Record<string, unknown>>;
|
|
9
|
+
private readonly applied;
|
|
10
|
+
private appliedRows?;
|
|
11
|
+
add(subFieldKey: string | undefined, field: string, value: unknown): void;
|
|
12
|
+
private key;
|
|
13
|
+
captureRow(row: Record<string, any>, subFieldKey?: string, overrides?: Record<string, any>): void;
|
|
14
|
+
capture(state: Record<string, any>): void;
|
|
15
|
+
/** 转换及合并结束后绑定真实运行时对象,替换成同 ID、同值的新行也不再算旧默认值。 */
|
|
16
|
+
bindRuntimeRows(state: Record<string, any>): void;
|
|
17
|
+
has(row: Record<string, any>, subFieldKey: string | undefined, field: string): boolean;
|
|
18
|
+
owns(row: Record<string, any>, subFieldKey: string | undefined, field: string): boolean;
|
|
19
|
+
revoke(row: Record<string, any>, subFieldKey: string | undefined, field: string): void;
|
|
20
|
+
/** 后续数据源显式提供同一个值也算覆盖,不能仅比较最终值是否相等。 */
|
|
21
|
+
excludeOverrides(target: Record<string, any>, source: any, subFieldKey?: string): void;
|
|
22
|
+
clear(): void;
|
|
23
|
+
}
|
|
@@ -3,5 +3,7 @@ export declare const getParseFormulaVarInfos: (expr?: string) => {
|
|
|
3
3
|
rowArgs: string[];
|
|
4
4
|
parseInfos: IParseFormulaVar[];
|
|
5
5
|
};
|
|
6
|
+
/** 计算与变更比较共用同一份输入解析,避免关联字段、空值及聚合的取值语义分叉。 */
|
|
7
|
+
export declare const resolveFormulaData: (expr: string, formData: any, instanceFormState: any) => Record<string, any>;
|
|
6
8
|
/** 当前行变量从 formData 解析;主表及子表汇总变量从完整实例解析,可跨 Sheet 引用。 */
|
|
7
9
|
export declare const calculateFormula: (expr: string, formData: any, instanceFormState: any) => Promise<any>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormTypeEnum } from '../constant';
|
|
1
2
|
/** 当前真实多 Sheet 运行时格式版本。缺少版本号的历史数据按 v1 解析。 */
|
|
2
3
|
export declare const MULTI_SHEET_SCHEMA_VERSION: 2;
|
|
3
4
|
export declare const MAX_RUNTIME_SHEETS = 100;
|
|
@@ -30,10 +31,11 @@ export interface NormalizedRuntimeDocument {
|
|
|
30
31
|
* 将历史 v1 和真实多 Sheet v2 统一为同一种读取结构。
|
|
31
32
|
*
|
|
32
33
|
* - v1:顶层 paper + nodes,包装成一个固定标识的虚拟 Sheet。
|
|
34
|
+
* - 文件表单:历史空模板补一个内存中的空根节点,以复用实例 Store 和提交服务。
|
|
33
35
|
* - v2:读取有序 sheets,并为现有单 Sheet 渲染器组装 dataCenter。
|
|
34
36
|
* - 未知版本:直接报错,避免旧客户端误写更高版本数据。
|
|
35
37
|
*/
|
|
36
|
-
export declare function normalizeRuntime(runtime: unknown): NormalizedRuntimeDocument;
|
|
38
|
+
export declare function normalizeRuntime(runtime: unknown, formType?: FormTypeEnum): NormalizedRuntimeDocument;
|
|
37
39
|
/**
|
|
38
40
|
* 将各 Sheet 独立编译得到的旧式 dataCenter 封装为 v2 文档。
|
|
39
41
|
* 保存前复用统一解析器,保证整份模板的节点唯一性和引用完整性。
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPageData } from '../types';
|
|
2
|
+
import { FormTypeEnum } from '../constant';
|
|
2
3
|
import { NormalizedRuntimeDocument, RuntimeNodeMap } from './multi-sheet-runtime';
|
|
3
4
|
import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
|
|
4
5
|
import { FormTmplBomController } from '../hooks/material-consume/tmpl-bom-controller';
|
|
@@ -100,6 +101,8 @@ export interface RuntimeInstanceContext {
|
|
|
100
101
|
uniqueId: string;
|
|
101
102
|
instanceId: string;
|
|
102
103
|
templateId: string;
|
|
104
|
+
/** 文件表单由 PDF 组件分页,不参与工作表布局计算。 */
|
|
105
|
+
formType?: FormTypeEnum;
|
|
103
106
|
schemaVersion: NormalizedRuntimeDocument['schemaVersion'];
|
|
104
107
|
formConfig: Record<string, any>;
|
|
105
108
|
defaultData: Record<string, any>;
|
|
@@ -116,6 +119,7 @@ export interface CreateRuntimeInstanceContextOptions {
|
|
|
116
119
|
uniqueId: string;
|
|
117
120
|
instanceId: string;
|
|
118
121
|
templateId: string;
|
|
122
|
+
formType?: FormTypeEnum;
|
|
119
123
|
runtime: NormalizedRuntimeDocument;
|
|
120
124
|
defaultData: Record<string, any>;
|
|
121
125
|
activeSheetId?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IBasicInfoItem } from '../types';
|
|
2
|
+
import { DesignerDefaultValues } from './designer-default-values';
|
|
3
|
+
import { RuntimeInstanceRecord } from './runtime-instance-registry';
|
|
4
|
+
/** 只清理本次实际采用的失效设计器默认值,覆盖未挂载 Sheet 和动态行。 */
|
|
5
|
+
export declare class RuntimeDefaultValueValidation {
|
|
6
|
+
private readonly record;
|
|
7
|
+
private readonly info;
|
|
8
|
+
readonly defaults: DesignerDefaultValues;
|
|
9
|
+
private disposed;
|
|
10
|
+
private scheduled;
|
|
11
|
+
/** 同一实例中,相同引用记录的查询结果可供不同 Sheet 和行复用。 */
|
|
12
|
+
private readonly requests;
|
|
13
|
+
private readonly stops;
|
|
14
|
+
constructor(record: RuntimeInstanceRecord, info: IBasicInfoItem, defaults: DesignerDefaultValues);
|
|
15
|
+
private targets;
|
|
16
|
+
private queryDefault;
|
|
17
|
+
/** 后台检查不加入页面准备、草稿或提交的等待链路。 */
|
|
18
|
+
requestCheck(): void;
|
|
19
|
+
private schedule;
|
|
20
|
+
private isEnabled;
|
|
21
|
+
initialize(): Promise<void>;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
}
|
|
@@ -8,6 +8,8 @@ export interface FormStateChange {
|
|
|
8
8
|
paths: string[];
|
|
9
9
|
/** 整个事务的变更来源。 */
|
|
10
10
|
source: FormStateMutationSource;
|
|
11
|
+
/** 局部恢复只触发实际变更字段的联动;缺省仍按整份数据恢复处理。 */
|
|
12
|
+
restoreScope?: 'fields';
|
|
11
13
|
}
|
|
12
14
|
export type FormStateSubscriber = (change: FormStateChange) => void;
|
|
13
15
|
/**
|
|
@@ -35,7 +37,7 @@ export declare class RuntimeFormStateStore {
|
|
|
35
37
|
private readonly reactiveState;
|
|
36
38
|
/** 每次成功提交一批变更递增一次,保存和提交用它判断快照是否过期。 */
|
|
37
39
|
revision: number;
|
|
38
|
-
/**
|
|
40
|
+
/** 是否存在尚未保存的变更;数据恢复及保存回填不会把实例标记为脏。 */
|
|
39
41
|
dirty: boolean;
|
|
40
42
|
/** 当前嵌套事务深度;只有最外层事务结束时才递增 revision 并通知订阅方。 */
|
|
41
43
|
private mutationDepth;
|
|
@@ -43,6 +45,7 @@ export declare class RuntimeFormStateStore {
|
|
|
43
45
|
private pendingPaths;
|
|
44
46
|
/** 最外层事务的变更来源,嵌套写入沿用该来源。 */
|
|
45
47
|
private pendingSource;
|
|
48
|
+
private pendingRestoreScope?;
|
|
46
49
|
/** 联动、分页失效、自动保存等实例服务登记的变更监听器。 */
|
|
47
50
|
private readonly subscribers;
|
|
48
51
|
/** 用户主动修改过的业务路径,供公式和自动填充执行“不覆盖用户输入”策略。 */
|
|
@@ -89,6 +92,7 @@ export declare class RuntimeFormStateStore {
|
|
|
89
92
|
/**
|
|
90
93
|
* 保存后只回填后端身份元数据,不能用仅含 id_/front_row_key_ 的数组覆盖当前业务行。
|
|
91
94
|
* 二维内置复合键可通过原始子行键匹配保存前的本地行。
|
|
95
|
+
* 保存回填只通知实际变化的字段,不作为整份数据恢复触发全部赋值规则。
|
|
92
96
|
*/
|
|
93
97
|
patchSavedMetadata(values: Record<string, any>): void;
|
|
94
98
|
/**
|
|
@@ -100,7 +104,7 @@ export declare class RuntimeFormStateStore {
|
|
|
100
104
|
* 将多次深层写入合并成一次变更提交。
|
|
101
105
|
* 嵌套事务只累计路径,最外层 finally 统一递增 revision 并通知订阅方。
|
|
102
106
|
*/
|
|
103
|
-
transaction<T>(source: FormStateMutationSource, callback: (state: Record<string, any>) => T): T;
|
|
107
|
+
transaction<T>(source: FormStateMutationSource, callback: (state: Record<string, any>) => T, options?: Pick<FormStateChange, 'restoreScope'>): T;
|
|
104
108
|
/** 登记路径和来源后执行底层修改,是所有显式 Store 写方法的统一入口。 */
|
|
105
109
|
mutate<T>(paths: string[], source: FormStateMutationSource, callback: () => T): T;
|
|
106
110
|
/** 查询某业务路径是否曾由用户主动修改。 */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RuntimeFieldInitializer } from './runtime-field-initializer';
|
|
2
|
+
import { RuntimeDefaultValueValidation } from './runtime-default-value-validation';
|
|
2
3
|
import { RuntimeValidationService } from './runtime-validation-service';
|
|
3
4
|
import { RuntimeInstanceContext } from './runtime-context';
|
|
4
5
|
import { RuntimeInstanceController } from './runtime-instance-controller';
|
|
@@ -24,6 +25,8 @@ export interface RuntimeInstanceRecord {
|
|
|
24
25
|
ruleCompiler?: RuntimeRuleCompiler;
|
|
25
26
|
/** 业务默认值随实例及动态行初始化,不依赖控件挂载。 */
|
|
26
27
|
fieldInitializer?: RuntimeFieldInitializer;
|
|
28
|
+
/** 设计器默认值的独立业务查询,不参与提交拦截。 */
|
|
29
|
+
defaultValueValidation?: RuntimeDefaultValueValidation;
|
|
27
30
|
/** 整份表单共享的数源管理器;字段事件通过当前实例取用。 */
|
|
28
31
|
dataSourceManager?: DataSourceManager;
|
|
29
32
|
/** 实例唯一的数据写入口,生成 revision、dirty 和字段变更路径 */
|
|
@@ -9,6 +9,8 @@ export declare function decodeTableCellRowKey(rowKey: unknown): PersistedTableCe
|
|
|
9
9
|
/** 未配置业务引用或引用值为空时,将子行与列行身份共同持久化到已有字段。 */
|
|
10
10
|
export declare function encodeTableCellRowKey(cellRowKey: unknown, columnRowKey: unknown): string;
|
|
11
11
|
export declare function isTableRowKeyMatch(rowKey: unknown, expected: unknown): boolean;
|
|
12
|
+
/** 内置二维行键自带点号,路径匹配时仍须作为一个完整行身份处理。 */
|
|
13
|
+
export declare function splitRuntimeDataPath(path: string): string[];
|
|
12
14
|
export interface RuntimeTableRelation {
|
|
13
15
|
rowSubFieldKey: string;
|
|
14
16
|
colSubFieldKey?: string;
|
|
@@ -240,7 +240,7 @@ export interface IUnitConversionRule {
|
|
|
240
240
|
}
|
|
241
241
|
export type DecisionRuleRelation = 'AND' | 'OR';
|
|
242
242
|
export type DecisionRuleValueType = 'FIXED' | 'FIELD';
|
|
243
|
-
/**
|
|
243
|
+
/** 提前终止校验规则中的字段信息。 */
|
|
244
244
|
export interface IDecisionRuleField {
|
|
245
245
|
id?: string;
|
|
246
246
|
key: string;
|
|
@@ -282,7 +282,7 @@ export interface IDecisionRuleGroup {
|
|
|
282
282
|
operatorType: DecisionRuleRelation;
|
|
283
283
|
children: Array<IDecisionRuleGroup | IDecisionRuleCondition>;
|
|
284
284
|
}
|
|
285
|
-
/** Paper
|
|
285
|
+
/** Paper 级提前终止校验规则配置。 */
|
|
286
286
|
export interface IInspectionDecisionRule {
|
|
287
287
|
dataRuleEnabled: boolean;
|
|
288
288
|
dataRule: string;
|
|
@@ -377,8 +377,12 @@ export interface IBasicInfoItem {
|
|
|
377
377
|
showPrintFieldBg?: boolean;
|
|
378
378
|
/** 填报入参(selfInfo.params + paramExtraProps) */
|
|
379
379
|
paramsConfig?: Record<string, any>;
|
|
380
|
+
/** detail 返回的单据业务类型,供业务字段查询匹配场景。 */
|
|
381
|
+
businessType?: string;
|
|
380
382
|
/** 实例状态 */
|
|
381
383
|
instanceStatus?: string;
|
|
384
|
+
/** 旧接口的填报数据状态;已有暂存、提交数据均保留。 */
|
|
385
|
+
dataStatus?: string;
|
|
382
386
|
}
|
|
383
387
|
export interface ICellBorder {
|
|
384
388
|
left?: boolean;
|
|
@@ -10,8 +10,7 @@ export interface IMcRender {
|
|
|
10
10
|
content: string;
|
|
11
11
|
}): any;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @static
|
|
13
|
+
* 打开扫码弹窗
|
|
15
14
|
*/
|
|
16
15
|
openScanModal(opts: {
|
|
17
16
|
title: string;
|
|
@@ -26,18 +25,6 @@ export interface IMcRender {
|
|
|
26
25
|
transformedData?: any;
|
|
27
26
|
}) => void;
|
|
28
27
|
}): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* 打开修改条码解析规则的modal
|
|
31
|
-
* 返回空或者修改后的规则字段id
|
|
32
|
-
* @param opts \
|
|
33
|
-
* - config 回显用的配置对象
|
|
34
|
-
* @return {*}
|
|
35
|
-
*/
|
|
36
|
-
openChangeRuleModal(opts: {
|
|
37
|
-
config: ParseRuleProps;
|
|
38
|
-
subModelKey?: string;
|
|
39
|
-
formModelController: FormModelController;
|
|
40
|
-
}): Promise<ParseRuleProps | undefined>;
|
|
41
28
|
/**
|
|
42
29
|
* 扫码返回多条候选时,弹窗选择其中一条
|
|
43
30
|
* 取消返回 undefined
|
|
@@ -47,7 +34,7 @@ export interface IMcRender {
|
|
|
47
34
|
title?: string;
|
|
48
35
|
}): Promise<any | undefined>;
|
|
49
36
|
/**
|
|
50
|
-
* 关闭当前页面的 form-base
|
|
37
|
+
* 关闭当前页面的 form-base 弹层
|
|
51
38
|
*/
|
|
52
39
|
destroyAllModals(ownerId: string): any;
|
|
53
40
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FormModelController } from '../../hooks/form-model';
|
|
2
2
|
import { ParseRuleProps, ScanParamType } from '../../types/common/base';
|
|
3
|
+
/** 不传 scene 时保持默认列 */
|
|
4
|
+
export interface ScanRecordPickerOptions {
|
|
5
|
+
scene?: 'inventory';
|
|
6
|
+
}
|
|
3
7
|
/**
|
|
4
8
|
* 子表绘制的基类
|
|
5
9
|
*/
|
|
@@ -20,20 +24,10 @@ export interface ISubTableRender {
|
|
|
20
24
|
transformedData?: any;
|
|
21
25
|
}) => void;
|
|
22
26
|
}): void;
|
|
23
|
-
/**
|
|
24
|
-
* 修改条码解析规则
|
|
25
|
-
* @param opts
|
|
26
|
-
* @return {*}
|
|
27
|
-
*/
|
|
28
|
-
openChangeRuleModal(opts: {
|
|
29
|
-
config: ParseRuleProps;
|
|
30
|
-
subModelKey?: string;
|
|
31
|
-
formModelController: FormModelController;
|
|
32
|
-
}): Promise<ParseRuleProps | undefined>;
|
|
33
27
|
/**
|
|
34
28
|
* 扫码多条候选时选择一行
|
|
35
29
|
*/
|
|
36
|
-
openMultiRowsModal(opts: {
|
|
30
|
+
openMultiRowsModal(opts: ScanRecordPickerOptions & {
|
|
37
31
|
rows: any[];
|
|
38
32
|
title?: string;
|
|
39
33
|
}): Promise<any | undefined>;
|
|
@@ -3,6 +3,8 @@ import { IBindField } from '../../../../nocode-base/src';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
fieldWidget: CellWidget.BasicSchema;
|
|
5
5
|
fieldMeta: IBindField;
|
|
6
|
+
autoLineBreak?: boolean;
|
|
7
|
+
inCombinedFields?: boolean;
|
|
6
8
|
};
|
|
7
9
|
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>;
|
|
8
10
|
export default _default;
|
|
@@ -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, {
|
|
@@ -25,8 +25,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
25
25
|
}>, {
|
|
26
26
|
placeholder: string;
|
|
27
27
|
modelCategory: string;
|
|
28
|
-
parentToDefault: boolean;
|
|
29
28
|
showDefaultTag: boolean;
|
|
29
|
+
parentToDefault: boolean;
|
|
30
30
|
hideSingleVersion: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
32
32
|
selectTableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
@@ -111,9 +111,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
111
111
|
"change-select": (...args: any[]) => void;
|
|
112
112
|
}, string, {
|
|
113
113
|
height: string;
|
|
114
|
-
autoResize: boolean;
|
|
115
114
|
wrapperHeight: number | string;
|
|
116
115
|
wrapperWidth: number | string;
|
|
116
|
+
autoResize: boolean;
|
|
117
117
|
showRowSelectionMode: boolean;
|
|
118
118
|
rowSelectionMode: "single" | "multiple";
|
|
119
119
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -138,9 +138,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
138
138
|
$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;
|
|
139
139
|
} & Readonly<{
|
|
140
140
|
height: string;
|
|
141
|
-
autoResize: boolean;
|
|
142
141
|
wrapperHeight: number | string;
|
|
143
142
|
wrapperWidth: number | string;
|
|
143
|
+
autoResize: boolean;
|
|
144
144
|
showRowSelectionMode: boolean;
|
|
145
145
|
rowSelectionMode: "single" | "multiple";
|
|
146
146
|
}> & Omit<Readonly<{
|
|
@@ -159,7 +159,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
159
159
|
}> & Readonly<{
|
|
160
160
|
onRequest?: ((...args: any[]) => any) | undefined;
|
|
161
161
|
"onChange-select"?: ((...args: any[]) => any) | undefined;
|
|
162
|
-
}>, "getRef" | ("height" | "
|
|
162
|
+
}>, "getRef" | ("height" | "wrapperHeight" | "wrapperWidth" | "autoResize" | "showRowSelectionMode" | "rowSelectionMode")> & {
|
|
163
163
|
getRef: () => any;
|
|
164
164
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
165
165
|
$slots: {
|
|
@@ -82,9 +82,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
82
82
|
"change-select": (...args: any[]) => void;
|
|
83
83
|
}, string, {
|
|
84
84
|
height: string;
|
|
85
|
-
autoResize: boolean;
|
|
86
85
|
wrapperHeight: number | string;
|
|
87
86
|
wrapperWidth: number | string;
|
|
87
|
+
autoResize: boolean;
|
|
88
88
|
showRowSelectionMode: boolean;
|
|
89
89
|
rowSelectionMode: "single" | "multiple";
|
|
90
90
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
@@ -109,9 +109,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
109
109
|
$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;
|
|
110
110
|
} & Readonly<{
|
|
111
111
|
height: string;
|
|
112
|
-
autoResize: boolean;
|
|
113
112
|
wrapperHeight: number | string;
|
|
114
113
|
wrapperWidth: number | string;
|
|
114
|
+
autoResize: boolean;
|
|
115
115
|
showRowSelectionMode: boolean;
|
|
116
116
|
rowSelectionMode: "single" | "multiple";
|
|
117
117
|
}> & Omit<Readonly<{
|
|
@@ -130,7 +130,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
130
130
|
}> & Readonly<{
|
|
131
131
|
onRequest?: ((...args: any[]) => any) | undefined;
|
|
132
132
|
"onChange-select"?: ((...args: any[]) => any) | undefined;
|
|
133
|
-
}>, "getRef" | ("height" | "
|
|
133
|
+
}>, "getRef" | ("height" | "wrapperHeight" | "wrapperWidth" | "autoResize" | "showRowSelectionMode" | "rowSelectionMode")> & {
|
|
134
134
|
getRef: () => any;
|
|
135
135
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
136
136
|
$slots: {
|