@gct-paas/excel 0.1.41 → 0.1.42-beta.0
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-CD_dAL9D.js → BaseComponent-CuX5xLFK.js} +4 -3
- package/dist/{VueVideoPlayer-DQQlv_cp.js → VueVideoPlayer-CBBB12Hj.js} +2 -2
- package/dist/{align-editor-DchzBHaC.js → align-editor-Df9gS31T.js} +1 -1
- package/dist/{barcode-design-BBW5cG3v.js → barcode-design-B34-4xJ9.js} +3 -2
- package/dist/base/index.es.js +517 -222
- package/dist/{diagonal-design-CawGqmc7.js → diagonal-design-D0HXMI8w.js} +3 -2
- package/dist/{dynamic-table-action-Dw7AIthU.js → dynamic-table-action-9sxv3gW5.js} +452 -322
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DEjLEs33.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js} +2296 -593
- package/dist/{edit.utils-CXmmCnxE-B7lpVZjb.js → edit.utils-CXmmCnxE-0uJiCs33.js} +1 -1
- package/dist/excel.css +611 -723
- package/dist/{exceljs.min-DDPQIUli.js → exceljs.min-Doeyz39_.js} +2 -2
- package/dist/{font-editor-n8zk8Vt2.js → font-editor-B8A9tDhO.js} +3 -3
- package/dist/{image-design-D4mIDz9K.js → image-design-CVyCbbef.js} +3 -8
- package/dist/{index-DfFakGrF.js → index-7VROqGqR.js} +3 -2
- package/dist/{index-1klMDz7G.js → index-B3hu8heh.js} +3 -2
- package/dist/{index-C4t8sSlN.js → index-B7Yt5TSq.js} +2 -1
- package/dist/{index-B0u6FHDq.js → index-BLJdXkdZ.js} +5 -4
- package/dist/{index-TZy8JxSW.js → index-BOO2K9Vu.js} +4 -3
- package/dist/{index-DUztXGMj.js → index-Bb3Ugl3c.js} +3 -2
- package/dist/{index-Dh0_kanw.js → index-Bj2qRb0q.js} +2 -1
- package/dist/{index-BZ7bC20P.js → index-BwyHByzZ.js} +2 -1
- package/dist/{index-Do-QyvWW.js → index-CDObWZ7G.js} +3 -2
- package/dist/{index-Bm8wYtHB.js → index-CGU3uK4z.js} +2 -1
- package/dist/{index-BW95iBc7.js → index-CMmaJ4Ss.js} +3 -2
- package/dist/{index-CYSJt1Zc.js → index-CNmwpU3G.js} +7 -3
- package/dist/{index-BMsHMGap.js → index-CS1tP-l0.js} +3 -2
- package/dist/{index-4p1VXlOx.js → index-Cn_bmfoD.js} +2 -1
- package/dist/{index-C-NpFAft.js → index-CzztJ4fH.js} +4 -3
- package/dist/{index-CXnuud67.js → index-D0VBKmKt.js} +3 -2
- package/dist/{index-DiWzNeZJ.js → index-DA7GAWZ1.js} +4 -3
- package/dist/{index-Boy8--Ns.js → index-DKKIL32g.js} +3 -2
- package/dist/{index-DPf5_q0T.js → index-DMVIENZW.js} +4 -3
- package/dist/{index-r9t3crs-.js → index-DU4dWvY6.js} +2 -1
- package/dist/{index-BcHwRIXW.js → index-D_hAd0MQ.js} +4 -3
- package/dist/{index-Ch88zDje.js → index-DuuvFB0e.js} +3 -2
- package/dist/{index-CI6Hl1Ns.js → index-FCg2Jzvu.js} +2 -1
- package/dist/{index-r0yHBje3.js → index-PSQkEXxq.js} +3 -2
- package/dist/{index-CAc9drK5.js → index-R95URjcc.js} +2 -1
- package/dist/{index-gHOlYnAA.js → index-RG23XjoT.js} +2 -1
- package/dist/{index-S8Dj5ycu.js → index-TeozNhWH.js} +3 -2
- package/dist/{index--MetH_r4.js → index-Uy8bXkuC.js} +4 -3
- package/dist/{index-DiPWQwMU.js → index-VrLq9hAc.js} +8987 -3728
- package/dist/{index-DvMu7-8y.js → index-XE84LVO7.js} +2 -1
- package/dist/{index-CmjTSiUa.js → index-dUCz8OdV.js} +3 -2
- package/dist/{index-DgybKcgI.js → index-hDsTasdu.js} +3 -2
- package/dist/{index-H4f-e99t.js → index-ucaRXWE8.js} +3 -2
- package/dist/{index-BWoOPv6-.js → index-vEZ4Yr2u.js} +3 -2
- package/dist/index.es.js +52 -46
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DDJetWQU.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-ApLSXGFP.js} +27 -3
- package/dist/{pagination-design-lckCQWcK.js → pagination-design-B5DxwV5F.js} +3 -2
- package/dist/paper-widget-design-A55mbwYv.js +4 -0
- package/dist/{print-runtime-instance-Dckul2Bk.js → print-runtime-instance-BDM-anCd.js} +1 -1
- package/dist/{print-snapshot-renderer-lub7u9sp.js → print-snapshot-renderer-kB1Bw7A_.js} +3 -3
- package/dist/{qrcode-design-M0HzGVjM.js → qrcode-design-bN48s3rk.js} +1 -1
- package/dist/{revo-grid.entry-Dr4S1tgO.js → revo-grid.entry-BXEGtAbW.js} +1 -1
- package/dist/{revogr-attribution_7.entry-27u9hxgM.js → revogr-attribution_7.entry-CImeTxBl.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DxjljgJl.js → revogr-clipboard_3.entry-DqcrJ6zB.js} +2 -2
- package/dist/{revogr-data_4.entry-CnSalg4D.js → revogr-data_4.entry-Ccdsy3nO.js} +2 -2
- package/dist/{revogr-filter-panel.entry-CSsekbYc.js → revogr-filter-panel.entry-B2xM2jvB.js} +1 -1
- package/dist/seal-design-B3FBumLr.js +4 -0
- package/dist/{serialnumber-design-DUiLiTSj.js → serialnumber-design-BGTOIn2S.js} +1 -1
- package/dist/shared/index.es.js +29 -28
- package/dist/{single-field-drop-CF_r0dCX.js → single-field-drop-b2b71HAk.js} +2 -3
- package/dist/{size-editor-DNMqRicI.js → size-editor-DtX2f2CF.js} +1 -1
- package/dist/src/adapter/adapter.d.ts +1 -1
- package/dist/src/adapter/index.d.ts +2 -0
- package/dist/src/{nocode-web-render/src/render/sub-table/common → adapter/web}/inventory-scan-columns.d.ts +1 -1
- 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-substitution/profile/field-keys.d.ts +37 -1
- package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +7 -0
- package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +12 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.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 +8 -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/sub-table/profile-driven-sub-table-core.d.ts +4 -4
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +1 -4
- package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +1 -2
- package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +15 -0
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +0 -6
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +1 -28
- package/dist/src/nocode-base/src/hooks/render-page/initial-value-data-sources.d.ts +3 -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/runtime-data-sources.d.ts +51 -0
- package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +7 -1
- package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +8 -2
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +55 -6
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +24 -0
- package/dist/src/nocode-base/src/interface/ref-loader.d.ts +12 -1
- package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +3 -0
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +23 -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-field-state.d.ts +5 -2
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +8 -5
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -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 +0 -10
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +4 -4
- package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +3 -3
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +144 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +87 -4
- package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/message-rule-config/rule-modal.vue.d.ts +32 -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/online-form/src/views/designer/types/index.d.ts +12 -1
- 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/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +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_/seal/index.d.ts +1 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
- package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
- package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +162 -2
- package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +41 -0
- package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +16 -0
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
- package/dist/src/shared/enum/field-type.d.ts +8 -3
- 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/withRequestCache.d.ts +27 -0
- package/dist/{sub-table-factory-D-GcNTOB.js → sub-table-factory-DoEvzrVN.js} +276 -89
- package/dist/{text-design-BfZf4B27.js → text-design-BQVBFcI0.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-B4SDzSMU.js → throttle-Cpk1LoGk-DR_8z9qq.js} +1 -1
- package/dist/{timediff-design-BeO94tLR.js → timediff-design-DioTJEvx.js} +2 -1
- package/dist/{trace-like-wrapper-Xc4cr21n.js → trace-like-wrapper-CjxBkfYK.js} +3 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CMpVHBLK.js → value-editor.vue_vue_type_style_index_0_lang-DpfdcyX_.js} +3 -2
- package/dist/{widget-barcode-CrfBj8iv.js → widget-barcode-CEn3AYG0.js} +5 -4
- package/dist/{widget-diagonal-C3Nho_Um.js → widget-diagonal-DbOhaNpW.js} +4 -4
- package/dist/{widget-image-CjsL9QW8.js → widget-image-BGP2w2mj.js} +5 -7
- package/dist/{widget-line-BtvpVv_s.js → widget-line-CkSPcw5A.js} +3 -2
- package/dist/{widget-pagination-DAUQo2nI.js → widget-pagination-BH0VtWHT.js} +6 -5
- package/dist/{widget-power-yUHZ4Hoc.js → widget-power-DuTIvdpR.js} +4 -4
- package/dist/{widget-qrcode-DJtT9NaM.js → widget-qrcode-CJJjPnwn.js} +4 -3
- package/dist/{widget-rangelimit-BhadVdCu.js → widget-rangelimit-828JH1wm.js} +3 -4
- package/dist/{widget-serialnumber-WMHB8nl6.js → widget-serialnumber-CIjY3I-t.js} +1 -1
- package/dist/{widget-text-C4dD9JF3.js → widget-text-C_Ja4yWN.js} +5 -5
- package/dist/{widget-timediff-C9d8_3hY.js → widget-timediff-CjmATkLS.js} +3 -2
- package/package.json +2 -6
- package/dist/AntdIcon-DCIaV352.js +0 -1108
- package/dist/index-_Ec5LAW9.js +0 -4353
- package/dist/mb-render-sgVmAe6_.js +0 -276
- package/dist/paper-widget-design-Nd5VjI7n.js +0 -4
- package/dist/seal-design-kuAsmNq1.js +0 -4
- package/dist/src/nocode-web-render/src/components/print-fill-background-selector.vue.d.ts +0 -2
- 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/bom-modal.vue.d.ts +0 -11
- 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 -595
- /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,24 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '../../shared/enum';
|
|
2
|
+
import { FieldQueryFilter } from '../field/query-filter';
|
|
3
|
+
/** detail 业务类型、实例参数与当前查询字段;业务规则无需依赖组件。 */
|
|
4
|
+
export interface BusinessFieldQueryContext {
|
|
5
|
+
businessType?: string;
|
|
6
|
+
paramsConfig: Readonly<Record<string, unknown>>;
|
|
7
|
+
fieldType?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BusinessFieldQueryRule {
|
|
10
|
+
id: string;
|
|
11
|
+
match: {
|
|
12
|
+
fieldType: FIELD_TYPE;
|
|
13
|
+
};
|
|
14
|
+
/** 声明结果缓存的依赖参数,由 Runtime 统一执行缓存和请求去重。 */
|
|
15
|
+
cache?: {
|
|
16
|
+
key: (context: BusinessFieldQueryContext) => unknown;
|
|
17
|
+
ttlMs?: number;
|
|
18
|
+
};
|
|
19
|
+
resolveFilters: (context: BusinessFieldQueryContext) => Promise<readonly FieldQueryFilter[]>;
|
|
20
|
+
}
|
|
21
|
+
export interface DocumentBusinessProfile {
|
|
22
|
+
businessType: string;
|
|
23
|
+
fieldQueries: readonly BusinessFieldQueryRule[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
/** 附加条件统一按 AND 合并;同字段 IN 条件取交集,保留已有搜索表达式。 */
|
|
15
|
+
export declare function mergeQueryFilters(query: FieldQuery, filters: readonly FieldQueryFilter[]): FieldQuery;
|
package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts
CHANGED
|
@@ -26,8 +26,12 @@ export declare const F: {
|
|
|
26
26
|
readonly targetMaterialNo: "target_material_no_";
|
|
27
27
|
/** 替换物料批号 ID */
|
|
28
28
|
readonly targetMaterialNoId: "target_material_no__id_";
|
|
29
|
+
/** 替换物料批号展示值 */
|
|
30
|
+
readonly targetMaterialNoLb: "target_material_no__lb_";
|
|
29
31
|
/** 替换物料 */
|
|
30
32
|
readonly targetProduct: "target_product_id_";
|
|
33
|
+
/** 替换物料展示值 */
|
|
34
|
+
readonly targetProductLb: "target_product_id__lb_";
|
|
31
35
|
/** 替换物料名称 */
|
|
32
36
|
readonly targetProductName: "target_product_id_name_";
|
|
33
37
|
/** 替换物料编码 */
|
|
@@ -42,34 +46,66 @@ export type MaterialSubstitutionFieldKey = (typeof F)[keyof typeof F];
|
|
|
42
46
|
export declare const DISABLED_INPUT_FIELDS: readonly ["source_material_no_", "source_product_id_name_", "source_product_id_code_", "source_product_id_spec_", "source_qty_consumed_", "target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
|
|
43
47
|
export declare const CLEAR_ON_SOURCE_PRODUCT_EMPTY: readonly ["source_material_no_", "source_material_no__lb_", "source_product_id__lb_", "source_product_id_name_", "source_product_id_code_", "source_product_id_spec_", "source_qty_consumed_"];
|
|
44
48
|
/** 替换物料批号清空 / 手输时需清空的物料字段 */
|
|
45
|
-
export declare const CLEAR_ON_TARGET_MATERIAL_NO_EMPTY: readonly ["target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
|
|
49
|
+
export declare const CLEAR_ON_TARGET_MATERIAL_NO_EMPTY: readonly ["target_product_id_", "target_product_id__lb_", "target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
|
|
46
50
|
/** 历史消耗选项 → 被替换物料行字段 */
|
|
47
51
|
export declare const FILL_FROM_SOURCE_PRODUCT_OPTION: readonly [{
|
|
48
52
|
readonly optionField: "material_name_";
|
|
49
53
|
readonly toField: "source_material_no_";
|
|
54
|
+
readonly name: "物料批号";
|
|
50
55
|
}, {
|
|
51
56
|
readonly optionField: "product_id_.name_";
|
|
52
57
|
readonly toField: "source_product_id_name_";
|
|
58
|
+
readonly name: "物料名称";
|
|
53
59
|
}, {
|
|
54
60
|
readonly optionField: "product_id_.code_";
|
|
55
61
|
readonly toField: "source_product_id_code_";
|
|
62
|
+
readonly name: "物料编码";
|
|
56
63
|
}, {
|
|
57
64
|
readonly optionField: "product_id_.spec_";
|
|
58
65
|
readonly toField: "source_product_id_spec_";
|
|
66
|
+
readonly name: "物料规格";
|
|
59
67
|
}, {
|
|
60
68
|
readonly optionField: "qty_consumed_";
|
|
61
69
|
readonly toField: "source_qty_consumed_";
|
|
70
|
+
readonly name: "已消耗数量";
|
|
62
71
|
}];
|
|
63
72
|
/** 替换物料批号选项 → 替换物料信息 */
|
|
64
73
|
export declare const FILL_FROM_TARGET_MATERIAL_NO_OPTION: readonly [{
|
|
74
|
+
readonly optionField: "product_id_";
|
|
75
|
+
readonly toField: "target_product_id_";
|
|
76
|
+
readonly name: "物料";
|
|
77
|
+
}, {
|
|
65
78
|
readonly optionField: "product_id_name_";
|
|
66
79
|
readonly toField: "target_product_id_name_";
|
|
80
|
+
readonly name: "物料名称";
|
|
67
81
|
}, {
|
|
68
82
|
readonly optionField: "product_id_code_";
|
|
69
83
|
readonly toField: "target_product_id_code_";
|
|
84
|
+
readonly name: "物料编码";
|
|
70
85
|
}, {
|
|
71
86
|
readonly optionField: "product_id_spec_";
|
|
72
87
|
readonly toField: "target_product_id_spec_";
|
|
88
|
+
readonly name: "物料规格";
|
|
73
89
|
}];
|
|
74
90
|
/** SN / 工序不影响扫码结果能否复用当前空行。 */
|
|
75
91
|
export declare const SCAN_ROW_CONTENT_FIELDS: readonly ["source_material_no_", "source_product_id_", "target_material_no_", "target_product_id_"];
|
|
92
|
+
/** LOT/SN 选项 → 替换物料行字段;替换数量保留用户输入。 */
|
|
93
|
+
export declare const FILL_FROM_TARGET_PRODUCT_OPTION: readonly [{
|
|
94
|
+
readonly optionField: "name_";
|
|
95
|
+
readonly toField: "target_material_no_";
|
|
96
|
+
readonly name: "物料批号";
|
|
97
|
+
}, {
|
|
98
|
+
readonly optionField: "product_id_name_";
|
|
99
|
+
readonly toField: "target_product_id_name_";
|
|
100
|
+
readonly name: "物料名称";
|
|
101
|
+
}, {
|
|
102
|
+
readonly optionField: "product_id_code_";
|
|
103
|
+
readonly toField: "target_product_id_code_";
|
|
104
|
+
readonly name: "物料编码";
|
|
105
|
+
}, {
|
|
106
|
+
readonly optionField: "product_id_spec_";
|
|
107
|
+
readonly toField: "target_product_id_spec_";
|
|
108
|
+
readonly name: "物料规格";
|
|
109
|
+
}];
|
|
110
|
+
/** 替换物料清空时同步清除批次、物料信息和数量。 */
|
|
111
|
+
export declare const CLEAR_ON_TARGET_PRODUCT_EMPTY: readonly ["target_product_id__lb_", "target_material_no_", "target_material_no__id_", "target_material_no__lb_", "target_product_id_name_", "target_product_id_code_", "target_product_id_spec_", "target_qty_consumed_"];
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/** 工序切换或清空后,原工序下选择的历史消耗信息失效。 */
|
|
2
|
+
export declare function handleRoutingOperationChange(ctx: {
|
|
3
|
+
rowData: Record<string, any>;
|
|
4
|
+
}): void;
|
|
1
5
|
export declare function handleSourceProductChange(ctx: {
|
|
2
6
|
rowData: Record<string, any>;
|
|
3
7
|
}): void;
|
|
4
8
|
export declare function handleTargetMaterialNoChange(ctx: {
|
|
5
9
|
rowData: Record<string, any>;
|
|
6
10
|
}): void;
|
|
11
|
+
export declare function handleTargetProductChange(ctx: {
|
|
12
|
+
rowData: Record<string, any>;
|
|
13
|
+
}): void;
|
package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefCustomLoader } from '../../../../../../nocode-base/src/interface/ref-loader';
|
|
2
|
+
export declare function flattenMaterialConsumeRecord(item: Record<string, any>): Record<string, any>;
|
|
3
|
+
/** 扫码、批号查询和 LOT/SN 列表的物料信息统一为表内填充字段。 */
|
|
4
|
+
export declare function normalizeMaterialSubstitutionRecord(item: Record<string, any>): Record<string, any>;
|
|
5
|
+
/** 扫码解析后的物料编码需转换为产品 ID,并补齐被替换侧的物料信息。 */
|
|
6
|
+
export declare function buildSourceMaterialScanPatch(record: Record<string, any>): Record<string, unknown>;
|
|
7
|
+
/** 同一条选中记录的批次名称、ID 和展示名必须一起回填。 */
|
|
8
|
+
export declare function buildTargetMaterialSelectionPatch(record: Record<string, any>): Record<string, unknown>;
|
|
9
|
+
/** 历史消耗只使用当前行生产 SN,未选、LOT 或无法确认类型时阻断查询。 */
|
|
10
|
+
export declare function createMaterialConsumeHistoryLoader(rowData: Record<string, any>, fieldName?: string): RefCustomLoader;
|
|
11
|
+
/** 替换料从 LOT/SN 选择,保存产品 ID,批次身份由行内批号字段保存。 */
|
|
12
|
+
export declare function createTargetMaterialLoader(rowData: Record<string, any>): RefCustomLoader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 备件业务表的自定义选项字段不一定存在于关联模型元数据中。 */
|
|
2
|
+
export declare const PART_OPTION_FIELD_LABELS: {
|
|
3
|
+
readonly part_name_: "备件名称";
|
|
4
|
+
readonly part_code_: "备件编码";
|
|
5
|
+
readonly specification_: "备件规格";
|
|
6
|
+
readonly unit_: "数量单位";
|
|
7
|
+
};
|
|
8
|
+
export declare const INVENTORY_OPTION_FIELD_LABELS: {
|
|
9
|
+
readonly id_: "库存记录";
|
|
10
|
+
readonly part_id_name_: "备件名称";
|
|
11
|
+
readonly part_id_code_: "备件编码";
|
|
12
|
+
readonly part_id_spec_: "备件规格";
|
|
13
|
+
readonly warehouse_id_: "仓库";
|
|
14
|
+
readonly storage_zone_id_: "库区";
|
|
15
|
+
readonly location_id_: "库位";
|
|
16
|
+
readonly uom_id_: "数量单位";
|
|
17
|
+
readonly validate_: "有效期";
|
|
18
|
+
readonly stock_num_: "库存数量";
|
|
19
|
+
};
|
|
@@ -4,6 +4,8 @@ import { AutofillTemplate } from '../types';
|
|
|
4
4
|
* @example product_id_ → product_id → product_id_name_
|
|
5
5
|
*/
|
|
6
6
|
export declare function normalizeRefFieldKey(fieldKey: string): string;
|
|
7
|
+
/** 将 AutofillTemplate 中的 toField 解析为字符串 */
|
|
8
|
+
export declare function resolveAutofillToField(template: AutofillTemplate, sourceFieldKey: string): string;
|
|
7
9
|
interface ExpandAutofillContext {
|
|
8
10
|
/** 拖入的源字段 key,如 product_id_ */
|
|
9
11
|
sourceFieldKey: string;
|
|
@@ -6,6 +6,12 @@ interface ApplyFieldProfileInput {
|
|
|
6
6
|
/** 子表 SubTableType 或业务子模型 refModelType */
|
|
7
7
|
subModelType?: string;
|
|
8
8
|
}
|
|
9
|
+
/** 设计态展示用的内置填充映射,与拖入字段时写入的模板共用一份 Profile。 */
|
|
10
|
+
export declare function getBuiltInAutofillRules(field: ApplyFieldProfileInput): {
|
|
11
|
+
fromField: string;
|
|
12
|
+
toField: string;
|
|
13
|
+
fromFieldLabel: string | undefined;
|
|
14
|
+
}[];
|
|
9
15
|
/**
|
|
10
16
|
* 按子表类型 + 字段 key 应用 Profile,返回合并后的 widget 配置片段
|
|
11
17
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { getBusinessRibbonMenuGroups, getDataRibbonMenuItems } from './design/ribbon-options';
|
|
2
2
|
export { resolveSubTableCreate, resolvePanelTypeByTableType } from './design/create-subtable';
|
|
3
|
-
export { applyFieldProfileOnAttach } from './design/hooks/on-field-attach';
|
|
3
|
+
export { applyFieldProfileOnAttach, getBuiltInAutofillRules } from './design/hooks/on-field-attach';
|
|
4
4
|
export { SUB_TABLE_PANEL_TYPE_NAME, isDynamicSubTablePanelType, isFixedSubTablePanelType, isRepeatingSubTablePanelType, } from './design/panel-type';
|
|
5
5
|
export { resolveDesignPanelFeatures, BIZ_TABLE_CONFIG_SEED_TYPES } from './design/panel-features';
|
|
6
6
|
export { resolveTableLabelKey } from './design/label';
|
|
@@ -44,6 +44,8 @@ export interface ContextAssignmentDef {
|
|
|
44
44
|
/** 数据填充模板:拖入关联字段时展开为 autofillRules(设计态消费) */
|
|
45
45
|
export interface AutofillTemplate {
|
|
46
46
|
fromField: string;
|
|
47
|
+
/** 自定义选项数据源中的字段名称;设计态展示内置规则时使用 */
|
|
48
|
+
fromFieldLabel?: string;
|
|
47
49
|
toField: string | ((ctx: {
|
|
48
50
|
sourceFieldKey: string;
|
|
49
51
|
}) => string);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export { calcUsedFields, isReverseModelingEnabled, FieldSceneType, scanField, }
|
|
|
19
19
|
export { FIELD_TYPE_LABEL_MAP, FieldTypeToCellWidgetMap, } from './online-form/src/views/designer/constants';
|
|
20
20
|
export { XlsxParser } from './online-form/src/views/designer/utils/xlsx-parser';
|
|
21
21
|
export { DomParser } from './online-form/src/views/designer/utils/dom-parser';
|
|
22
|
+
export { getPlacedFieldsByType, getPlacedSealFields, } from './online-form/src/views/designer/utils/template-placed-fields';
|
|
23
|
+
export type { PlacedFormField } from './online-form/src/views/designer/utils/placed-fields';
|
|
22
24
|
export { VersionSelect } from './shared/components/version-select';
|
|
23
25
|
export { OnlineFormModelSelect, OnlineFormModelModal, } from './shared/components/online-form-model-select';
|
|
24
26
|
export { openVersionDiff, VersionDiffPreviewRouter, } from './online-form/src/components/version-diff';
|
|
@@ -30,3 +32,9 @@ export { default as AiTmplEditor } from './online-form/src/views/designer/module
|
|
|
30
32
|
export { default as AiTmplModal } from './online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor-modal.vue';
|
|
31
33
|
export type { AiTmplEditorExpose, AiTmplEditorProps, FieldOption, PrecisionOption, } from './online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/types';
|
|
32
34
|
export { ApaasCollect, ApaasCollectSheetView, ApaasDpPrint, ApaasDpPrintSheetView, BomEditorModal, SelectCheckDsModal, OutParamModal, InputParamModal, SignatureConfigModal, RenderFieldWrapper, };
|
|
35
|
+
/**
|
|
36
|
+
* 共用数据获取列表:设计配置与运行时查看、手动加载
|
|
37
|
+
* word, excel 都暴露出去了,gct-dhr-kit 可从中任用一个
|
|
38
|
+
*/
|
|
39
|
+
export { DataSources } from '@gct-paas/form-base';
|
|
40
|
+
export type { DataSourceManager } from '@gct-paas/form-base';
|
package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ type __VLS_Props = {
|
|
|
10
10
|
showEditBtn?: boolean;
|
|
11
11
|
/** 是否是物料消耗 */
|
|
12
12
|
isMaterialConsume?: boolean;
|
|
13
|
-
/** 是否显示查看Bom */
|
|
14
|
-
showBom?: boolean;
|
|
15
13
|
/** 是否显示扫描 */
|
|
16
14
|
showScanBtn?: boolean;
|
|
17
15
|
/** 是否显示确认按钮 */
|
|
@@ -36,7 +34,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
36
34
|
showInsertMultiple: boolean;
|
|
37
35
|
showEditBtn: boolean;
|
|
38
36
|
isMaterialConsume: boolean;
|
|
39
|
-
showBom: boolean;
|
|
40
37
|
showScanBtn: boolean;
|
|
41
38
|
showConfirmBtn: boolean;
|
|
42
39
|
noPopover: boolean;
|
|
@@ -80,10 +80,10 @@ export declare class MaterialRequisitionTableCore extends ProfileDrivenSubTableC
|
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* 物料替换表 Core
|
|
83
|
-
* -
|
|
84
|
-
* -
|
|
85
|
-
* -
|
|
86
|
-
* -
|
|
83
|
+
* - 被替换物料从当前行生产 SN 的历史消耗中选择,可按行内工序过滤
|
|
84
|
+
* - 替换物料从 LOT/SN 中选择,回填批次和物料信息,保留替换数量
|
|
85
|
+
* - 替换物料批号回填替换物料及其信息
|
|
86
|
+
* - 扫码走生产标识匹配接口,按字段映射回填两侧物料,优先填充空行
|
|
87
87
|
*/
|
|
88
88
|
export declare class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
|
|
89
89
|
protected isEmptyScanRow(row: Record<string, unknown>): boolean;
|
|
@@ -110,6 +110,7 @@ export declare class SubTableCore {
|
|
|
110
110
|
calcFieldStatus(params: {
|
|
111
111
|
rowData: any;
|
|
112
112
|
field: string;
|
|
113
|
+
formChangeStatus?: boolean;
|
|
113
114
|
}): IFieldStatus;
|
|
114
115
|
/**
|
|
115
116
|
* 计算字段的查询条件,如果返回值有值则修改到td的newQueryData里
|
|
@@ -165,10 +166,6 @@ export declare class SubTableCore {
|
|
|
165
166
|
};
|
|
166
167
|
/** 解析规则配置对象 */
|
|
167
168
|
scanRuleProps: ParseRuleProps;
|
|
168
|
-
/**
|
|
169
|
-
* 变更条码规则
|
|
170
|
-
*/
|
|
171
|
-
changeScanRule(): Promise<void>;
|
|
172
169
|
/**
|
|
173
170
|
* 打开扫描弹窗
|
|
174
171
|
* @param opts
|
|
@@ -28,8 +28,7 @@ export declare const F: {
|
|
|
28
28
|
/** 生产日期 */
|
|
29
29
|
readonly productionDate: "production_date_";
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
export declare const STERILIZE_ALWAYS_DISABLED_FIELDS: readonly ["product_id_", "product_id_code_", "product_id_spec_", "product_id_name_", "mfg_order_code_", "mfg_order_id_"];
|
|
31
|
+
export { LOCKED_INPUT_FIELDS as STERILIZE_ALWAYS_DISABLED_FIELDS } from '../../../../../../domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys';
|
|
33
32
|
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
34
33
|
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ["product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "qty_", "mfg_order_code_", "mfg_order_id_", "mfg_order_id__lb_", "production_date_"];
|
|
35
34
|
export declare const fillFromOption: ({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FormulaParam {
|
|
2
|
+
customFieldKey: string;
|
|
3
|
+
lowerLimit?: number | string | null;
|
|
4
|
+
upperLimit?: number | string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const currentParamsConfig: {
|
|
7
|
+
readonly routingParamList: FormulaParam[];
|
|
8
|
+
readonly inspectionParamList: FormulaParam[];
|
|
9
|
+
readonly deviceParamList: FormulaParam[];
|
|
10
|
+
};
|
|
11
|
+
/** Excel、Word 共用参数;空配置也要覆盖旧值。 */
|
|
12
|
+
export declare function setFormulaParamsConfig(paramsConfig?: Record<string, any> | null): void;
|
|
13
|
+
/** 随应用绑定一次失效通知,不包装或替换宿主计算函数。 */
|
|
14
|
+
export declare function bindFormulaCacheInvalidation(value: unknown): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** 检验数量只读取 inspection_number_,兼容原始记录、data 及 data.data 返回。 */
|
|
2
|
+
export declare function parseInspectionModuleQty(res: unknown): number | undefined;
|
|
3
|
+
/** 使用表单 detail 的交易实例 id;不能以表单 id 或 paramsConfig 中的 id 代替。 */
|
|
4
|
+
export declare function fetchInspectionModuleQty(txnInstId?: string): Promise<number | undefined>;
|
package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts
CHANGED
|
@@ -46,8 +46,6 @@ export declare class MaterialConsumeTableController {
|
|
|
46
46
|
private initialDataPrepared;
|
|
47
47
|
/** 最近一次同步需求数量时使用的数量依赖。 */
|
|
48
48
|
private syncedMaterialNoNum;
|
|
49
|
-
/** 多 Sheet / 同屏多实例下,弹层和异步交互使用该键隔离。 */
|
|
50
|
-
private runtimeOwnerId;
|
|
51
49
|
/** 表单是否已暂存或提交(已处理过则不再跑初始化) */
|
|
52
50
|
get isDataProcessed(): boolean;
|
|
53
51
|
/** 批次数量或生产数量 */
|
|
@@ -100,10 +98,6 @@ export declare class MaterialConsumeTableController {
|
|
|
100
98
|
* @param id (老数据是id,新数据是json对象字符串)
|
|
101
99
|
*/
|
|
102
100
|
protected initScanRule(id: string): Promise<void>;
|
|
103
|
-
/**
|
|
104
|
-
* 变更条码规则
|
|
105
|
-
*/
|
|
106
|
-
changeScanRule(): Promise<void>;
|
|
107
101
|
/**
|
|
108
102
|
* 是否人为指定物料
|
|
109
103
|
* @readonly
|
|
@@ -15,8 +15,6 @@ export declare class MCRender implements IMcRender {
|
|
|
15
15
|
type: 'error' | 'warning';
|
|
16
16
|
content: string;
|
|
17
17
|
}): void;
|
|
18
|
-
/** 每个表单实例独立维护 BOM 弹层参数。 */
|
|
19
|
-
private readonly bomModalProps;
|
|
20
18
|
openScanModal(opts: {
|
|
21
19
|
title: string;
|
|
22
20
|
subModelKey?: string;
|
|
@@ -30,31 +28,6 @@ export declare class MCRender implements IMcRender {
|
|
|
30
28
|
transformedData?: any;
|
|
31
29
|
}) => void;
|
|
32
30
|
}): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* 实际打开UIModal的函数
|
|
35
|
-
*/
|
|
36
|
-
protected _openBomModal(reactiveOpts: {
|
|
37
|
-
ownerId: string;
|
|
38
|
-
bomList: any[];
|
|
39
|
-
onSubstitute: Function;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
openBomModal(opts: {
|
|
42
|
-
ownerId: string;
|
|
43
|
-
bomList: any[];
|
|
44
|
-
onSubstitute: Function;
|
|
45
|
-
}): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* 打开修改条码解析规则的modal
|
|
48
|
-
* 返回空或者修改后的规则字段id
|
|
49
|
-
* @param opts \
|
|
50
|
-
* - config 回显用的配置对象
|
|
51
|
-
* @return {*}
|
|
52
|
-
*/
|
|
53
|
-
openChangeRuleModal(opts: {
|
|
54
|
-
config: ParseRuleProps;
|
|
55
|
-
subModelKey?: string;
|
|
56
|
-
formModelController: FormModelController;
|
|
57
|
-
}): Promise<ParseRuleProps | undefined>;
|
|
58
31
|
/**
|
|
59
32
|
* 扫码返回多条候选时,弹窗选择其中一条
|
|
60
33
|
* 取消返回 undefined
|
|
@@ -64,7 +37,7 @@ export declare class MCRender implements IMcRender {
|
|
|
64
37
|
title?: string;
|
|
65
38
|
}): Promise<any | undefined>;
|
|
66
39
|
/**
|
|
67
|
-
*
|
|
40
|
+
* 关闭当前页面的 form-base 弹层
|
|
68
41
|
*/
|
|
69
42
|
destroyAllModals(_ownerId: string): void;
|
|
70
43
|
}
|
|
@@ -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
|
/** 过期请求和批量初始化失败的结果未注册,资源在此释放,不影响当前页面的实例。 */
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { IBasicInfoItem } from '../../types';
|
|
2
|
+
import { RuntimeInstanceRecord, RuntimeInstanceRegistry } from '../../runtime';
|
|
3
|
+
import { IPayload, RuntimeSelfInfo } from './types';
|
|
4
|
+
export declare function createRuntimeDataSourceBinding(registry: RuntimeInstanceRegistry, payload: IPayload): {
|
|
5
|
+
dataSourceManagerMap: import('vue').ShallowRef<Record<string, {
|
|
6
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
7
|
+
getContext: () => Record<string, unknown>;
|
|
8
|
+
canExecute: () => boolean;
|
|
9
|
+
reload: (key: string) => Promise<unknown>;
|
|
10
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
11
|
+
states: {
|
|
12
|
+
readonly [x: string]: {
|
|
13
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
14
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
15
|
+
readonly clearTargets?: boolean | undefined;
|
|
16
|
+
readonly error?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
20
|
+
cancel: (key: string) => boolean;
|
|
21
|
+
getResult(key: string): unknown;
|
|
22
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
23
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
24
|
+
cleared?: boolean;
|
|
25
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
}>, Record<string, {
|
|
28
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
29
|
+
getContext: () => Record<string, unknown>;
|
|
30
|
+
canExecute: () => boolean;
|
|
31
|
+
reload: (key: string) => Promise<unknown>;
|
|
32
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
33
|
+
states: {
|
|
34
|
+
readonly [x: string]: {
|
|
35
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
36
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
37
|
+
readonly clearTargets?: boolean | undefined;
|
|
38
|
+
readonly error?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
42
|
+
cancel: (key: string) => boolean;
|
|
43
|
+
getResult(key: string): unknown;
|
|
44
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
45
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
46
|
+
cleared?: boolean;
|
|
47
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
48
|
+
dispose(): void;
|
|
49
|
+
}>>;
|
|
50
|
+
bindDataSources: (record: RuntimeInstanceRecord, info: IBasicInfoItem, selfInfo: RuntimeSelfInfo) => Promise<void>;
|
|
51
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { RuntimeFieldMetadata } from '../../runtime/runtime-field-registry';
|
|
2
|
+
/** detail 中的交易实例关联灭菌记录,首次加载时仅补齐所有工作表主、子表字段的空值。 */
|
|
3
|
+
export declare function fillSterilizationDate(txnInstId: unknown, metadata: RuntimeFieldMetadata, formState: Record<string, unknown>): Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderModeEnum, PlatformEnum, BpmnNodeTypeEnum } from '../../constant';
|
|
2
2
|
import { baseDataUtils } from '../../interface';
|
|
3
3
|
import { RuntimeFormStateStore } from '../../runtime';
|
|
4
|
+
import { DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
4
5
|
export interface IProps {
|
|
5
6
|
/** 模板实例id或者模板id */
|
|
6
7
|
selfId: string | string[] | undefined;
|
|
@@ -32,6 +33,8 @@ interface IDeviceConfig {
|
|
|
32
33
|
export interface IPayload extends ITemplatePayload, IInstancePayload {
|
|
33
34
|
/** 工厂类型 */
|
|
34
35
|
factoryType: 'template' | 'instance' | 'batchInstance' | 'batchTemplate';
|
|
36
|
+
/** 表单、实体和业务数源的宿主查询适配器。 */
|
|
37
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
35
38
|
/** 请求接口函数 */
|
|
36
39
|
requestCallback: (...args: any[]) => any;
|
|
37
40
|
/** 平台参数类型 */
|
|
@@ -48,7 +51,10 @@ export interface IPayload extends ITemplatePayload, IInstancePayload {
|
|
|
48
51
|
onFormStateReady?: (store: RuntimeFormStateStore) => unknown;
|
|
49
52
|
}
|
|
50
53
|
/** 不同平台接口的开放业务元信息;不是运行时索引或提交数据的副本。 */
|
|
51
|
-
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
|
+
};
|
|
52
58
|
/** 请求适配后的内部初始化输入,单个/批量入口使用同一约定。 */
|
|
53
59
|
export interface RuntimeInstanceSource {
|
|
54
60
|
id?: string;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export { setFormulaParamsConfig } from './formula-params-cache';
|
|
2
|
+
interface DeviceParamConfig {
|
|
3
|
+
customFieldKey: string;
|
|
4
|
+
lowerLimit?: number | string | null;
|
|
5
|
+
upperLimit?: number | string | null;
|
|
6
|
+
}
|
|
7
|
+
type FetchDeviceParamLimits = (id: any) => Promise<DeviceParamConfig[] | null>;
|
|
8
|
+
export declare function configureDeviceParamCheck(fetcher: FetchDeviceParamLimits): void;
|
|
3
9
|
export declare function registerFormulaFuncs(): void;
|