@gct-paas/excel 0.1.49 → 0.1.51-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-BujOt502.js → BaseComponent-BShN-6c8.js} +4 -3
- package/dist/{VueVideoPlayer-B8GR2HPo.js → VueVideoPlayer-DH8pXh28.js} +2 -2
- package/dist/{align-editor--BUxJjPg.js → align-editor-DJ859WQZ.js} +1 -1
- package/dist/{barcode-design-DGX6Ol4t.js → barcode-design-Gq8_VO9l.js} +3 -2
- package/dist/base/index.es.js +517 -222
- package/dist/{diagonal-design-oiPfvxr7.js → diagonal-design-C2Ybg80S.js} +3 -2
- package/dist/{dynamic-table-action-Bhkrp7KE.js → dynamic-table-action-B3QEu1gT.js} +452 -322
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-BY59Q_d_.js} +2296 -593
- package/dist/{edit.utils-CXmmCnxE-BXlWf2Zf.js → edit.utils-CXmmCnxE-wWPJuGRP.js} +1 -1
- package/dist/excel.css +614 -723
- package/dist/{exceljs.min-Ta0dJQqu.js → exceljs.min-D9sk8ogV.js} +2 -2
- package/dist/{font-editor-Dmj2hu7T.js → font-editor-CRxKpZ5w.js} +3 -3
- package/dist/{image-design-C3yJcthI.js → image-design-D6Mh4gmF.js} +3 -8
- package/dist/{index-C4SreE7Q.js → index-B10CES7y.js} +3 -2
- package/dist/{index-wKwGHLnP.js → index-BHaAq-DQ.js} +2 -1
- package/dist/{index-DMAuxwlt.js → index-BIks4AlA.js} +2 -1
- package/dist/{index-CMN1t7G7.js → index-BItsxlLG.js} +4 -3
- package/dist/{index-1kD3Vcrg.js → index-BLwPDGyh.js} +3 -2
- package/dist/{index-KQqw3i9h.js → index-BMBgoKQJ.js} +3 -2
- package/dist/{index-DF8n1Gru.js → index-Ba7SenEy.js} +4 -3
- package/dist/{index-DRKCOV3w.js → index-BaQxoGFV.js} +2 -1
- package/dist/{index-BDr7t7vL.js → index-BbNwGIpN.js} +2 -1
- package/dist/{index-DdOpcuy6.js → index-BdkVqSGZ.js} +8995 -3731
- package/dist/{index-GIYmXP7h.js → index-BfGKeHIi.js} +3 -2
- package/dist/{index-B0Qf1-mt.js → index-BkCygM2H.js} +4 -3
- package/dist/{index-CEYSrHod.js → index-Bkx2ZZxc.js} +3 -2
- package/dist/{index-OwTnsnnd.js → index-BzHOWFfJ.js} +3 -2
- package/dist/{index-CaLRSpkL.js → index-BzTGz-yp.js} +3 -2
- package/dist/{index-L7CRRS4N.js → index-C9oFT3gk.js} +3 -2
- package/dist/{index-C6WDE2xc.js → index-CCXIoitH.js} +2 -1
- package/dist/{index-IOqBW_eS.js → index-CfMaU3Cq.js} +7 -3
- package/dist/{index-D9lmC_sX.js → index-CkYFepvp.js} +4 -3
- package/dist/{index-B2VHOqo4.js → index-CqZOsGgU.js} +3 -2
- package/dist/{index-BOMuRlHQ.js → index-D8Pv4_xg.js} +3 -2
- package/dist/{index-BtAlyN0W.js → index-D925vhPg.js} +3 -2
- package/dist/{index-BEEhGWk7.js → index-DECfc3al.js} +3 -2
- package/dist/{index-CUTV5Yr2.js → index-DS1bbdtf.js} +5 -4
- package/dist/{index-DBSvao2o.js → index-DVloZxGE.js} +2 -1
- package/dist/{index-BlCF32GJ.js → index-DpPtXY8I.js} +4 -3
- package/dist/{index-UnwowxL3.js → index-DpQIy9xD.js} +2 -1
- package/dist/{index-DLTES9Zq.js → index-IY_wwSl8.js} +3 -2
- package/dist/{index-BwuwoFQQ.js → index-MWQxnJy_.js} +3 -2
- package/dist/{index-B4ZpSIPH.js → index-caGeDRoA.js} +4 -3
- package/dist/{index-Bd15pfRH.js → index-eHOXhn3S.js} +2 -1
- package/dist/{index-DQC7zJRO.js → index-emsDlrTV.js} +2 -1
- package/dist/{index-B4hIBKZ6.js → index-vrDKB2Af.js} +3 -2
- package/dist/{index-CZo7qVZK.js → index-xTI_Fqhb.js} +2 -1
- 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-219qzsVL.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-BftaGVRR.js} +27 -3
- package/dist/{pagination-design-CNML3qGx.js → pagination-design-BO_7vrQd.js} +3 -2
- package/dist/paper-widget-design-18uum1H9.js +4 -0
- package/dist/{print-runtime-instance-DKR1MX8-.js → print-runtime-instance-B1Q_Xc8x.js} +1 -1
- package/dist/{print-snapshot-renderer-BIWDQkSC.js → print-snapshot-renderer-wEKNMo0m.js} +3 -3
- package/dist/{qrcode-design-CUQ4gaJ0.js → qrcode-design-CeNvj_74.js} +1 -1
- package/dist/{revo-grid.entry-Be5Mx_h7.js → revo-grid.entry-iJpKwgs4.js} +1 -1
- package/dist/{revogr-attribution_7.entry-DmJFrubR.js → revogr-attribution_7.entry-C-cdTXU8.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-COcvqK0w.js → revogr-clipboard_3.entry-BHJgHR9f.js} +2 -2
- package/dist/{revogr-data_4.entry-Dc4luGHv.js → revogr-data_4.entry-R_-ZZIdp.js} +2 -2
- package/dist/{revogr-filter-panel.entry-B1l-ouo-.js → revogr-filter-panel.entry-RU6Tewnq.js} +1 -1
- package/dist/seal-design-BnQkmNDo.js +4 -0
- package/dist/{serialnumber-design-hcI8TwmS.js → serialnumber-design-b0I5H8lq.js} +1 -1
- package/dist/shared/index.es.js +29 -28
- package/dist/{single-field-drop-CnuMgeEW.js → single-field-drop-Bj73o6Jt.js} +2 -3
- package/dist/{size-editor-D4ZNlV-c.js → size-editor-Bps566OT.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-Df_Z-LYK.js → sub-table-factory-CykoFqnP.js} +276 -89
- package/dist/{text-design-gySXbKUQ.js → text-design-kWxwqj3H.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-DEDsjc1B.js → throttle-Cpk1LoGk-B3zgXjle.js} +1 -1
- package/dist/{timediff-design-BHLUYM_L.js → timediff-design-sh7-fMvN.js} +2 -1
- package/dist/{trace-like-wrapper-CD0q7Bpg.js → trace-like-wrapper-ByePbRT3.js} +3 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-Dp_NLPcS.js → value-editor.vue_vue_type_style_index_0_lang-BuGHTPEo.js} +3 -2
- package/dist/{widget-barcode-Dho-QBc4.js → widget-barcode-BP0WV4jM.js} +5 -4
- package/dist/{widget-diagonal-LOzS5LGZ.js → widget-diagonal-Cwfunmde.js} +4 -4
- package/dist/{widget-image-CE9y7lzB.js → widget-image-3xm-HfRy.js} +5 -7
- package/dist/{widget-line-DK-tRBi0.js → widget-line-B2Q3DwW6.js} +3 -2
- package/dist/{widget-pagination-JLrTk_QY.js → widget-pagination-CV9ShZXH.js} +6 -5
- package/dist/{widget-power-B136JrJ6.js → widget-power-Bc0Fv3R6.js} +4 -4
- package/dist/{widget-qrcode-CQ79eZwR.js → widget-qrcode-D_LkgIb2.js} +4 -3
- package/dist/{widget-rangelimit-DORQgXtz.js → widget-rangelimit-Db1rsnwU.js} +3 -4
- package/dist/{widget-serialnumber-BvhwTK5N.js → widget-serialnumber-BqZ3zJst.js} +1 -1
- package/dist/{widget-text-D6au0tli.js → widget-text-IJbtzWxl.js} +5 -5
- package/dist/{widget-timediff-C3SAIS2-.js → widget-timediff-Bp8U1rzO.js} +3 -2
- package/package.json +2 -6
- package/dist/AntdIcon-DCIaV352.js +0 -1108
- package/dist/index-B6csmYLK.js +0 -4353
- package/dist/mb-render-CQlqaMrC.js +0 -276
- package/dist/paper-widget-design-B8WyX87-.js +0 -4
- package/dist/seal-design-Q8W8Umib.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,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;
|
|
@@ -3,6 +3,51 @@ import { RuntimeInstanceRegistry } from '../runtime';
|
|
|
3
3
|
import { IProps, IPayload } from './render-page/types';
|
|
4
4
|
export type { IProps, IPayload } from './render-page/types';
|
|
5
5
|
export declare function useRenderPageFactory(props: IProps, payload: IPayload): {
|
|
6
|
+
dataSourceManagerMap: import('vue').ShallowRef<Record<string, {
|
|
7
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
8
|
+
getContext: () => Record<string, unknown>;
|
|
9
|
+
canExecute: () => boolean;
|
|
10
|
+
reload: (key: string) => Promise<unknown>;
|
|
11
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
12
|
+
states: {
|
|
13
|
+
readonly [x: string]: {
|
|
14
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
15
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
16
|
+
readonly clearTargets?: boolean | undefined;
|
|
17
|
+
readonly error?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
21
|
+
cancel: (key: string) => boolean;
|
|
22
|
+
getResult(key: string): unknown;
|
|
23
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
24
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
25
|
+
cleared?: boolean;
|
|
26
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}>, Record<string, {
|
|
29
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
30
|
+
getContext: () => Record<string, unknown>;
|
|
31
|
+
canExecute: () => boolean;
|
|
32
|
+
reload: (key: string) => Promise<unknown>;
|
|
33
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
34
|
+
states: {
|
|
35
|
+
readonly [x: string]: {
|
|
36
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
37
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
38
|
+
readonly clearTargets?: boolean | undefined;
|
|
39
|
+
readonly error?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
43
|
+
cancel: (key: string) => boolean;
|
|
44
|
+
getResult(key: string): unknown;
|
|
45
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
46
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
47
|
+
cleared?: boolean;
|
|
48
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
49
|
+
dispose(): void;
|
|
50
|
+
}>>;
|
|
6
51
|
counter: import('vue').Ref<number, number>;
|
|
7
52
|
finisher: import('vue').Ref<number, number>;
|
|
8
53
|
loading: import('vue').ComputedRef<boolean>;
|
|
@@ -48,7 +93,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
48
93
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
49
94
|
showPrintFieldBg?: boolean | undefined;
|
|
50
95
|
paramsConfig?: Record<string, any> | undefined;
|
|
96
|
+
businessType?: string | undefined;
|
|
51
97
|
instanceStatus?: string | undefined;
|
|
98
|
+
dataStatus?: string | undefined;
|
|
52
99
|
}[], IBasicInfoItem[] | {
|
|
53
100
|
key: string;
|
|
54
101
|
tid: string;
|
|
@@ -90,7 +137,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
90
137
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
91
138
|
showPrintFieldBg?: boolean | undefined;
|
|
92
139
|
paramsConfig?: Record<string, any> | undefined;
|
|
140
|
+
businessType?: string | undefined;
|
|
93
141
|
instanceStatus?: string | undefined;
|
|
142
|
+
dataStatus?: string | undefined;
|
|
94
143
|
}[]>;
|
|
95
144
|
selfInfoList: import('vue').Ref<{
|
|
96
145
|
[x: string]: any;
|
|
@@ -98,17 +147,14 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
98
147
|
viewType: import('..').ViewTypeEnum;
|
|
99
148
|
modelKey: string;
|
|
100
149
|
bindKey?: string | undefined;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
viewType: import('..').ViewTypeEnum;
|
|
104
|
-
modelKey: string;
|
|
105
|
-
bindKey?: string;
|
|
106
|
-
} & Record<string, any>)[] | {
|
|
150
|
+
txnInstId?: string | undefined;
|
|
151
|
+
}[], import('./render-page/types').RuntimeSelfInfo[] | {
|
|
107
152
|
[x: string]: any;
|
|
108
153
|
formType: import('..').FormTypeEnum;
|
|
109
154
|
viewType: import('..').ViewTypeEnum;
|
|
110
155
|
modelKey: string;
|
|
111
156
|
bindKey?: string | undefined;
|
|
157
|
+
txnInstId?: string | undefined;
|
|
112
158
|
}[]>;
|
|
113
159
|
hasData: import('vue').ComputedRef<boolean>;
|
|
114
160
|
findFormInsInfo: (id: string) => {
|
|
@@ -117,6 +163,7 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
117
163
|
viewType: import('..').ViewTypeEnum;
|
|
118
164
|
modelKey: string;
|
|
119
165
|
bindKey?: string | undefined;
|
|
166
|
+
txnInstId?: string | undefined;
|
|
120
167
|
} | undefined;
|
|
121
168
|
findBasicInsInfo: (id: string) => {
|
|
122
169
|
key: string;
|
|
@@ -159,7 +206,9 @@ export declare function useRenderPageFactory(props: IProps, payload: IPayload):
|
|
|
159
206
|
renderPurpose?: "print" | "pdf" | undefined;
|
|
160
207
|
showPrintFieldBg?: boolean | undefined;
|
|
161
208
|
paramsConfig?: Record<string, any> | undefined;
|
|
209
|
+
businessType?: string | undefined;
|
|
162
210
|
instanceStatus?: string | undefined;
|
|
211
|
+
dataStatus?: string | undefined;
|
|
163
212
|
} | undefined;
|
|
164
213
|
updateRenderModeType: (uniqueId: string, mode: import('..').RenderModeEnum, updateButton?: boolean) => Promise<void>;
|
|
165
214
|
setFromEditStatus: (uniqueId: string) => Promise<boolean>;
|
|
@@ -9,6 +9,30 @@ export declare function useRuntimeInstanceServices(uniqueIdSource?: RuntimeInsta
|
|
|
9
9
|
instance: import('vue').ComputedRef<import('..').RuntimeInstanceRecord | undefined>;
|
|
10
10
|
/** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
|
|
11
11
|
controller: import('vue').ComputedRef<import('..').RuntimeInstanceController | undefined>;
|
|
12
|
+
/** 全部 Sheet 共享的数源管理器,随实例注册与销毁。 */
|
|
13
|
+
dataSourceManager: import('vue').ComputedRef<{
|
|
14
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
15
|
+
getContext: () => Record<string, unknown>;
|
|
16
|
+
canExecute: () => boolean;
|
|
17
|
+
reload: (key: string) => Promise<unknown>;
|
|
18
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
19
|
+
states: {
|
|
20
|
+
readonly [x: string]: {
|
|
21
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
22
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
23
|
+
readonly clearTargets?: boolean | undefined;
|
|
24
|
+
readonly error?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
28
|
+
cancel: (key: string) => boolean;
|
|
29
|
+
getResult(key: string): unknown;
|
|
30
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
31
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
32
|
+
cleared?: boolean;
|
|
33
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
} | undefined>;
|
|
12
36
|
/** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
|
|
13
37
|
formConfig: import('vue').ComputedRef<Record<string, any>>;
|
|
14
38
|
/** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
|
|
@@ -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 组件消费结构 */
|
|
@@ -91,8 +91,9 @@ export declare const renderUtils: {
|
|
|
91
91
|
/** 提前设置值给widget */
|
|
92
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>;
|
|
93
93
|
/** 获取默认值集合 */
|
|
94
|
-
getDefaultValueMapByField: ({ defaultValueFields, objectProductDefaults, 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, }: {
|
|
95
95
|
defaultValueFields: any;
|
|
96
|
+
onDesignerDefault?: ((field: any, value: unknown) => void) | undefined;
|
|
96
97
|
objectProductDefaults?: WeakMap<object, ObjectProductDefault> | undefined;
|
|
97
98
|
mainMaterialNo?: undefined;
|
|
98
99
|
mainRelatedLotNo?: 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
|
/** 子表信息 */
|
|
@@ -108,6 +110,7 @@ export declare const transformUtils: {
|
|
|
108
110
|
}) => any;
|
|
109
111
|
/** 转换formState */
|
|
110
112
|
conversionFormState: (payload: {
|
|
113
|
+
defaultValueOrigins?: DesignerDefaultValues;
|
|
111
114
|
/** 默认值数据 */
|
|
112
115
|
defaultData: any;
|
|
113
116
|
/** 参数数据 */
|
|
@@ -3,7 +3,7 @@ import { NormalizedRuntimeDocument, RuntimeNodeMap } from '../multi-sheet-runtim
|
|
|
3
3
|
export declare const LEGACY_RUNTIME_SHEET_ID = "__legacy_sheet__";
|
|
4
4
|
export declare const LEGACY_RUNTIME_SHEET_TITLE = "\u5DE5\u4F5C\u8868 1";
|
|
5
5
|
/** 历史 runtimeJson 中存放在 paper.props、实际属于整份实例的配置。 */
|
|
6
|
-
export declare const LEGACY_RUNTIME_FORM_CONFIG_KEYS: readonly ["globalParams", "paramsMapList", "unitConversionRules", "inspectionDecisionRule", "customDataSource", "objectInitialValues", "javascript", "checkSignatureConfig", "keepExceptionHighlight", "objectFieldList", "dateObjects"];
|
|
6
|
+
export declare const LEGACY_RUNTIME_FORM_CONFIG_KEYS: readonly ["globalParams", "paramsMapList", "unitConversionRules", "inspectionDecisionRule", "customDataSource", "dataSources", "fieldFills", "objectInitialValues", "javascript", "checkSignatureConfig", "keepExceptionHighlight", "objectFieldList", "dateObjects"];
|
|
7
7
|
/** 历史运行时:paper 和所有节点都直接放在文档顶层。 */
|
|
8
8
|
export interface RuntimeDocumentV1 extends RuntimeNodeMap {
|
|
9
9
|
schemaVersion?: 1;
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { IBasicInfoItem } from '../types';
|
|
2
2
|
import { RuntimeInstanceRecord } from './runtime-instance-registry';
|
|
3
3
|
export type RuntimeFieldStateInfo = Pick<IBasicInfoItem, 'renderModeType' | 'modelKey' | 'formType' | 'bpmnType' | 'bpmnFieldAuthMap'> & Partial<Pick<IBasicInfoItem, 'annSwitchStatus' | 'renderPurpose'>>;
|
|
4
|
-
/**
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Core 提供业务规则,这里统一合并到静态配置;二维交叉字段使用所属父行的业务状态。
|
|
6
|
+
* 表单变更跳过签名锁定,保留字段本身、业务 Profile 和组件依赖施加的限制。
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveRuntimeFieldProps(record: RuntimeInstanceRecord, props: Record<string, any>, widgetId: string, row?: Record<string, any>, parentRow?: Record<string, any>, formChangeStatus?: boolean): {
|
|
6
9
|
[x: string]: any;
|
|
7
10
|
};
|
|
8
11
|
/** 只读展示方式、禁用和校验 blocked 由同一结果派生,UI 与未挂载字段使用相同权限语义。 */
|
|
@@ -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';
|
|
@@ -11,6 +12,7 @@ import { RuntimeFieldRegistry, RuntimeFieldMetadata } from './runtime-field-regi
|
|
|
11
12
|
import { RuntimeSheetService } from './runtime-sheet-service';
|
|
12
13
|
import { RuntimePersistenceCoordinator } from './runtime-persistence-coordinator';
|
|
13
14
|
import { RuntimeInstanceEventBus } from './runtime-instance-event-bus';
|
|
15
|
+
import { DataSourceManager } from '@gct-paas/form-base';
|
|
14
16
|
export interface RuntimeInstanceRecord {
|
|
15
17
|
/** 实例配置、业务索引和各 Sheet 的响应式状态;数据只由下方 Store 持有 */
|
|
16
18
|
context: RuntimeInstanceContext;
|
|
@@ -23,6 +25,10 @@ export interface RuntimeInstanceRecord {
|
|
|
23
25
|
ruleCompiler?: RuntimeRuleCompiler;
|
|
24
26
|
/** 业务默认值随实例及动态行初始化,不依赖控件挂载。 */
|
|
25
27
|
fieldInitializer?: RuntimeFieldInitializer;
|
|
28
|
+
/** 设计器默认值的独立业务查询,不参与提交拦截。 */
|
|
29
|
+
defaultValueValidation?: RuntimeDefaultValueValidation;
|
|
30
|
+
/** 整份表单共享的数源管理器;字段事件通过当前实例取用。 */
|
|
31
|
+
dataSourceManager?: DataSourceManager;
|
|
26
32
|
/** 实例唯一的数据写入口,生成 revision、dirty 和字段变更路径 */
|
|
27
33
|
formState: RuntimeFormStateStore;
|
|
28
34
|
/** 整份表单共享的脚本执行器,字段通过运行时记录调用,销毁由注册表负责。 */
|
|
@@ -71,10 +77,7 @@ export declare class RuntimeInstanceRegistry {
|
|
|
71
77
|
loading: boolean;
|
|
72
78
|
error: Error | undefined;
|
|
73
79
|
}>;
|
|
74
|
-
/**
|
|
75
|
-
* 顶层对象使用浅响应式:实例新增、删除需要驱动 Vue 更新;record 内的服务类
|
|
76
|
-
* 不需要被 Vue 深度代理,各自内部负责自己的响应式状态和生命周期
|
|
77
|
-
*/
|
|
80
|
+
/** 顶层容器和记录都只做浅响应式;服务类仍保持原始引用。 */
|
|
78
81
|
private readonly records;
|
|
79
82
|
/**
|
|
80
83
|
* 统一托管订阅、watch 和编译结果的取消函数
|
|
@@ -87,7 +90,7 @@ export declare class RuntimeInstanceRegistry {
|
|
|
87
90
|
* 此方法只创建实例级基础设施,不负责请求模板和业务数据。相同 uniqueId
|
|
88
91
|
* 再次注册时会先完整销毁旧记录,确保不会残留订阅或异步任务
|
|
89
92
|
*/
|
|
90
|
-
register(context: RuntimeInstanceContext, options: RegisterRuntimeInstanceOptions): RuntimeInstanceRecord
|
|
93
|
+
register(context: RuntimeInstanceContext, options: RegisterRuntimeInstanceOptions): import('vue').ShallowReactive<RuntimeInstanceRecord>;
|
|
91
94
|
/**
|
|
92
95
|
* 在页面回调准备完成后挂载实例控制器
|
|
93
96
|
* Sheet 服务的导航入口依赖控制器切换 Sheet,所以两者必须在这里建立连接
|
|
@@ -106,6 +106,8 @@ export declare namespace BaseCoreComponent {
|
|
|
106
106
|
* 组件依赖
|
|
107
107
|
*/
|
|
108
108
|
componentDependency?: DisplayProps;
|
|
109
|
+
/** 字段值变化时查询的数源 KEY。 */
|
|
110
|
+
valueChangeDataSourceKeys?: string[];
|
|
109
111
|
/** 是否是物料消耗表的字段 */
|
|
110
112
|
isMaterialConsumeField?: boolean;
|
|
111
113
|
/** 自定义组件的绘制标记 */
|
|
@@ -238,7 +240,7 @@ export interface IUnitConversionRule {
|
|
|
238
240
|
}
|
|
239
241
|
export type DecisionRuleRelation = 'AND' | 'OR';
|
|
240
242
|
export type DecisionRuleValueType = 'FIXED' | 'FIELD';
|
|
241
|
-
/**
|
|
243
|
+
/** 提前终止校验规则中的字段信息。 */
|
|
242
244
|
export interface IDecisionRuleField {
|
|
243
245
|
id?: string;
|
|
244
246
|
key: string;
|
|
@@ -280,7 +282,7 @@ export interface IDecisionRuleGroup {
|
|
|
280
282
|
operatorType: DecisionRuleRelation;
|
|
281
283
|
children: Array<IDecisionRuleGroup | IDecisionRuleCondition>;
|
|
282
284
|
}
|
|
283
|
-
/** Paper
|
|
285
|
+
/** Paper 级提前终止校验规则配置。 */
|
|
284
286
|
export interface IInspectionDecisionRule {
|
|
285
287
|
dataRuleEnabled: boolean;
|
|
286
288
|
dataRule: string;
|
|
@@ -375,8 +377,12 @@ export interface IBasicInfoItem {
|
|
|
375
377
|
showPrintFieldBg?: boolean;
|
|
376
378
|
/** 填报入参(selfInfo.params + paramExtraProps) */
|
|
377
379
|
paramsConfig?: Record<string, any>;
|
|
380
|
+
/** detail 返回的单据业务类型,供业务字段查询匹配场景。 */
|
|
381
|
+
businessType?: string;
|
|
378
382
|
/** 实例状态 */
|
|
379
383
|
instanceStatus?: string;
|
|
384
|
+
/** 旧接口的填报数据状态;已有暂存、提交数据均保留。 */
|
|
385
|
+
dataStatus?: string;
|
|
380
386
|
}
|
|
381
387
|
export interface ICellBorder {
|
|
382
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
|
}
|