@gct-paas/word 0.2.11 → 0.2.12-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/dist/assets/svgs/table/index.d.ts +1 -0
- package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +6 -0
- package/dist/base/input/src/input-number.vue.d.ts +1 -0
- package/dist/base/message/src/Message.vue.d.ts +2 -0
- package/dist/base/message/src/message.d.ts +2 -0
- package/dist/base/modal/src/modal.type.d.ts +3 -1
- package/dist/base/select/src/basic-select.vue.d.ts +16 -4
- package/dist/base/utils/image-size-util.d.ts +12 -6
- package/dist/capabilities/model-field-runtime/types/field.d.ts +4 -0
- package/dist/core/command/base/FloatingFieldCommand.d.ts +9 -0
- package/dist/core/command/commands/DeleteCol.d.ts +1 -1
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/command/commands/InsertFloatingField.d.ts +9 -0
- package/dist/core/command/commands/InsertTable.d.ts +0 -1
- package/dist/core/command/commands/MoveFloatingField.d.ts +10 -0
- package/dist/core/command/commands/RemoveFloatingField.d.ts +12 -0
- package/dist/core/command/commands/SetTableBorder.d.ts +14 -0
- package/dist/core/command/types.d.ts +21 -0
- package/dist/core/data/DataManager.d.ts +6 -1
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +19 -0
- package/dist/core/data/enrichers/udi-enricher.d.ts +23 -0
- package/dist/core/data/formula/business-functions.d.ts +10 -0
- package/dist/core/data/formula/formula-params-cache.d.ts +15 -0
- package/dist/core/data/types/runtime-config.d.ts +13 -0
- package/dist/core/event/handlers/IMEHandler.d.ts +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/model/document/WtblPr.d.ts +2 -0
- package/dist/core/model/document/Wtc.d.ts +2 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -1
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +37 -1
- package/dist/core/model/overlays/Wlayout.d.ts +4 -0
- package/dist/core/model/types/table-border.d.ts +18 -0
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +34 -0
- package/dist/core/table/border-selection.d.ts +9 -0
- package/dist/core/table/borders.d.ts +42 -0
- package/dist/core/view/Doc.d.ts +5 -0
- package/dist/core/view/TableCell.d.ts +3 -0
- package/dist/core/widget/types.d.ts +2 -2
- package/dist/domain/active/active-types.d.ts +3 -1
- package/dist/domain/document-rule/index.d.ts +3 -0
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +13 -0
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +19 -0
- package/dist/domain/document-rule/types.d.ts +50 -0
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +60 -2
- package/dist/domain/field/form-value.d.ts +6 -0
- package/dist/domain/field/seal/seal-binding.d.ts +19 -0
- package/dist/domain/field/seal/seal-display.d.ts +32 -0
- package/dist/domain/field/seal/seal-value.d.ts +39 -0
- package/dist/domain/table/business/device/maintenance/index.d.ts +1 -0
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/point-inspection/index.d.ts +1 -0
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +13 -0
- package/dist/domain/table/business/device/signature-lock.d.ts +26 -0
- package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/index.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +41 -0
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +4 -0
- package/dist/domain/table/business/material/types.d.ts +2 -1
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +3 -0
- package/dist/domain/table/design/ribbon-options.d.ts +2 -0
- package/dist/domain/table/design/sub-model-matcher.d.ts +2 -0
- package/dist/domain/table/design/validate-nested-table-insert.d.ts +3 -0
- package/dist/domain/table/index.d.ts +3 -0
- package/dist/domain/table/registry.d.ts +5 -2
- package/dist/domain/table/runtime/option-fill-updates.d.ts +6 -0
- package/dist/domain/table/runtime/table-runtime.d.ts +3 -0
- package/dist/domain/table/types.d.ts +13 -3
- package/dist/index.es.js +32692 -10599
- package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +10 -0
- package/dist/runtime/canvas/doc-layout.vue.d.ts +1 -2
- package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +6 -0
- package/dist/runtime/canvas/print-capture.d.ts +12 -0
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +10 -2
- package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +1 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -0
- package/dist/runtime/canvas/table/shared/table-lines.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/table-presentation.d.ts +16 -0
- package/dist/runtime/canvas/table/utils/paint-table-borders.d.ts +4 -0
- package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +7 -0
- package/dist/runtime/designer/ribbon/svg/table-border-icon.vue.d.ts +6 -0
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/sterilization-date.d.ts +9 -0
- package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +3 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +5 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +3 -0
- package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +17 -0
- package/dist/runtime/renderer/dialogs/seal/seal-auth-dialog.vue.d.ts +60 -0
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +9 -0
- package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +24 -0
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +29 -0
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +54 -1
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +1 -0
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +17 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +18 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +2 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
- package/dist/runtime/renderer/dropdowns/factories/dropdown-factory.d.ts +1 -5
- package/dist/runtime/validation/layout.d.ts +20 -0
- package/dist/runtime/validation/useFormValidator.d.ts +4 -0
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +3 -0
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -0
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -0
- package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +7 -0
- package/dist/sdk/engine/index.d.ts +3 -1
- package/dist/sdk/setup.d.ts +6 -0
- package/dist/sdk/types/index.d.ts +8 -0
- package/dist/sdk/types/placed-form-field.d.ts +6 -0
- package/dist/sdk/vue/index.d.ts +6 -0
- package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +7 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +8 -3
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +19 -0
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +16 -0
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +34 -0
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -0
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
- package/dist/utils/adapters/ServiceUtil.d.ts +9 -0
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +4 -0
- package/dist/word.css +1720 -1332
- package/package.json +4 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 物料替换表(MATERIAL_SUBSTITUTION)字段 key
|
|
3
|
+
*/
|
|
4
|
+
export declare const F: {
|
|
5
|
+
/** 工序节点 */
|
|
6
|
+
readonly routingOperation: "routing_operation_id_";
|
|
7
|
+
/** SN */
|
|
8
|
+
readonly productionContainer: "production_container_id_";
|
|
9
|
+
/** 被替换物料批号 */
|
|
10
|
+
readonly sourceMaterialNo: "source_material_no_";
|
|
11
|
+
/** 被替换物料 */
|
|
12
|
+
readonly sourceProduct: "source_product_id_";
|
|
13
|
+
/** 被替换物料名称 */
|
|
14
|
+
readonly sourceProductName: "source_product_id_name_";
|
|
15
|
+
/** 被替换物料编码 */
|
|
16
|
+
readonly sourceProductCode: "source_product_id_code_";
|
|
17
|
+
/** 被替换物料规格 */
|
|
18
|
+
readonly sourceProductSpec: "source_product_id_spec_";
|
|
19
|
+
/** 原上料数量 */
|
|
20
|
+
readonly sourceQtyConsumed: "source_qty_consumed_";
|
|
21
|
+
/** 替换物料批号 */
|
|
22
|
+
readonly targetMaterialNo: "target_material_no_";
|
|
23
|
+
/** 替换物料 */
|
|
24
|
+
readonly targetProduct: "target_product_id_";
|
|
25
|
+
/** 替换物料名称 */
|
|
26
|
+
readonly targetProductName: "target_product_id_name_";
|
|
27
|
+
/** 替换物料编码 */
|
|
28
|
+
readonly targetProductCode: "target_product_id_code_";
|
|
29
|
+
/** 替换物料规格 */
|
|
30
|
+
readonly targetProductSpec: "target_product_id_spec_";
|
|
31
|
+
/** 替换数量 */
|
|
32
|
+
readonly targetQtyConsumed: "target_qty_consumed_";
|
|
33
|
+
};
|
|
34
|
+
export type MaterialSubstitutionFieldKey = (typeof F)[keyof typeof F];
|
|
35
|
+
/** 设计态固定禁用、运行态只读的物料信息字段 */
|
|
36
|
+
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_"];
|
|
37
|
+
export declare const CLEAR_ON_SOURCE_PRODUCT_EMPTY: readonly ["source_material_no_", "source_product_id_name_", "source_product_id_code_", "source_product_id_spec_", "source_qty_consumed_"];
|
|
38
|
+
/** 替换物料批号清空 / 手输时需清空的物料字段 */
|
|
39
|
+
export declare const CLEAR_ON_TARGET_MATERIAL_NO_EMPTY: readonly ["target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
|
|
40
|
+
/** 替换料清空时同步清除批次、数量和物料信息。 */
|
|
41
|
+
export declare const CLEAR_ON_TARGET_PRODUCT_EMPTY: readonly ["target_material_no_", "target_product_id_name_", "target_product_id_code_", "target_product_id_spec_", "target_qty_consumed_"];
|
package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
export declare function handleTargetMaterialNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
3
|
+
export declare function handleSourceProductChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
4
|
+
export declare function handleTargetProductChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
@@ -7,6 +7,8 @@ export interface RibbonTableOptionsParams {
|
|
|
7
7
|
suiteKey?: string;
|
|
8
8
|
/** 套件级需从 Ribbon 隐藏的业务表类型 */
|
|
9
9
|
hiddenBusinessTableTypes?: BusinessSubTableType[];
|
|
10
|
+
/** 是否可使用仅向 eDHR Max / Ultra 开放的业务表 */
|
|
11
|
+
canUseMaxEditionTables?: boolean;
|
|
10
12
|
}
|
|
11
13
|
/** 生成 Ribbon「数据表」「业务表」下拉选项 */
|
|
12
14
|
export declare function getRibbonTableOptions(params?: RibbonTableOptionsParams): {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FieldMeta } from '../../../capabilities/model-field-runtime';
|
|
2
2
|
import { DropdownOption } from '../../../base';
|
|
3
|
+
/** 是否为仅能通过固定表入口选择的业务子模型。 */
|
|
4
|
+
export declare function isFixedOnlyBusinessRefModelType(refModelType: string | undefined | null): boolean;
|
|
3
5
|
/**
|
|
4
6
|
* 生成「选择子模型」下拉选项
|
|
5
7
|
* @param tableTypeOrRibbonAction 表类型或 Ribbon action
|
|
@@ -13,5 +13,8 @@ export * from './runtime/table-runtime';
|
|
|
13
13
|
export * from './design/hooks/on-subtable-create';
|
|
14
14
|
export * from './design/hooks/on-field-attach';
|
|
15
15
|
export * from './design/hooks/on-repeating-default-props';
|
|
16
|
+
export * from './design/hooks/on-bounded-default-props';
|
|
16
17
|
export * from './design/validate-table-selection';
|
|
17
18
|
export * from './design/validate-nested-table-region';
|
|
19
|
+
export * from './design/validate-nested-table-insert';
|
|
20
|
+
export * from './business/device/signature-lock';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BusinessSubTableProfile, TableCategory, TableProfile } from './types';
|
|
1
|
+
import { BusinessFieldProfile, BusinessSubTableProfile, TableCategory, TableProfile } from './types';
|
|
2
|
+
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
2
3
|
/** 所有已注册的子表 Profile */
|
|
3
4
|
declare const ALL_TABLE_PROFILES: TableProfile[];
|
|
4
5
|
/** 按分类获取 Profile 列表 */
|
|
@@ -15,5 +16,7 @@ export declare function getProfileByLayoutType(layoutType: string): TableProfile
|
|
|
15
16
|
*/
|
|
16
17
|
export declare function getAllBusinessRefModelTypes(): string[];
|
|
17
18
|
/** 按 refModelType 获取业务表 Profile */
|
|
18
|
-
export declare function getBusinessProfileByRefModelType(refModelType: string): BusinessSubTableProfile | undefined;
|
|
19
|
+
export declare function getBusinessProfileByRefModelType(refModelType: string | undefined | null): BusinessSubTableProfile | undefined;
|
|
20
|
+
/** 与设计态使用同一匹配顺序,读取业务表字段配置。 */
|
|
21
|
+
export declare function getBusinessFieldProfileByRefModelType(refModelType: string | undefined | null, field: Pick<FieldMeta, 'key' | 'type' | 'bizType'>): BusinessFieldProfile | undefined;
|
|
19
22
|
export { ALL_TABLE_PROFILES };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface OptionFillWriter {
|
|
2
|
+
setMultiple(updates: Record<string, unknown>, source: 'user' | 'enrichment'): unknown;
|
|
3
|
+
}
|
|
4
|
+
/** 选中值保留用户事件;同行回填使用 enrichment,避免触发被填字段的手工变更副作用。 */
|
|
5
|
+
export declare function applyOptionFillUpdates(writer: OptionFillWriter, nextValues: Record<string, unknown>, optionFill: Record<string, unknown>, inputValues: Record<string, unknown>, optionFillSource?: 'user' | 'enrichment'): void;
|
|
6
|
+
export {};
|
|
@@ -36,6 +36,7 @@ export declare class TableRuntime {
|
|
|
36
36
|
private readonly remoteSync;
|
|
37
37
|
private readonly initLoad;
|
|
38
38
|
private readonly mainFieldBind;
|
|
39
|
+
private readonly deviceSignatureLock;
|
|
39
40
|
constructor(doc: Doc);
|
|
40
41
|
/** 文档是否包含业务子表 */
|
|
41
42
|
get hasBusinessTables(): boolean;
|
|
@@ -60,6 +61,8 @@ export declare class TableRuntime {
|
|
|
60
61
|
* 解析业务表字段的下拉数据源 / 列覆盖(selectSource)。
|
|
61
62
|
*/
|
|
62
63
|
resolveSelectSource(options: ResolveSelectSourceOptions): SelectSourceDef | null;
|
|
64
|
+
/** 默认保留原来的 user 写入,仅显式配置的业务字段改变回填事件来源。 */
|
|
65
|
+
resolveOptionFillSource(options: ResolveSelectSourceOptions): 'user' | 'enrichment';
|
|
63
66
|
/**
|
|
64
67
|
* 下拉选中后从选项反向回填同行字段,供 onChange 使用。
|
|
65
68
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FIELD_TYPE } from '../field/field-type';
|
|
2
2
|
import { SubTableLayoutType } from '../../core/model/document/wtcRegionRef';
|
|
3
|
+
import { RequiredQtyCalcRule } from './business/material/types';
|
|
3
4
|
/**
|
|
4
5
|
* 数据表类型
|
|
5
6
|
* @property dynamic-table - 动态表
|
|
@@ -20,12 +21,15 @@ export type DataTableType = 'dynamic-table' | 'fixed-table' | 'two-d-table';
|
|
|
20
21
|
* @property warehouse-allocate - 库存调拨表
|
|
21
22
|
* @property material-consume - 物料消耗表
|
|
22
23
|
* @property material-balance - 物料平衡表
|
|
23
|
-
* @property material-requisition -
|
|
24
|
+
* @property material-requisition - 产线收料表
|
|
25
|
+
* @property material-substitution - 物料替换表
|
|
26
|
+
* @property point-inspection - 设备点检表(固定表业务模型)
|
|
27
|
+
* @property maintenance - 设备保养表(固定表业务模型)
|
|
24
28
|
* @property check-table - 检验表
|
|
25
29
|
* @property pretreatment-list - 预处理表
|
|
26
30
|
* @property entrust-steril-batch-list - 委托灭菌生产批次表
|
|
27
31
|
*/
|
|
28
|
-
export type BusinessSubTableType = 'warehouse-in' | 'warehouse-inbound' | 'warehouse-out' | 'warehouse-outbound' | 'warehouse-in-out' | 'warehouse-inventory' | 'part-stocktake' | 'device-part-consume' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'material-requisition' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
|
|
32
|
+
export type BusinessSubTableType = 'warehouse-in' | 'warehouse-inbound' | 'warehouse-out' | 'warehouse-outbound' | 'warehouse-in-out' | 'warehouse-inventory' | 'part-stocktake' | 'device-part-consume' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'material-requisition' | 'material-substitution' | 'point-inspection' | 'maintenance' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
|
|
29
33
|
/** 所有子表类型(数据表 + 业务表) */
|
|
30
34
|
export type TableType = DataTableType | BusinessSubTableType;
|
|
31
35
|
/**
|
|
@@ -105,8 +109,10 @@ export interface BusinessSubTableProfile extends TableProfileBase {
|
|
|
105
109
|
category: 'business';
|
|
106
110
|
type: BusinessSubTableType;
|
|
107
111
|
match: BusinessTableMatchRule;
|
|
112
|
+
/** fixed-table-model 不注册独立 Ribbon 入口,仅借用固定表选择业务子模型。 */
|
|
113
|
+
entry?: 'ribbon' | 'fixed-table-model';
|
|
108
114
|
/** Ribbon 业务表分组名 */
|
|
109
|
-
ribbonGroup
|
|
115
|
+
ribbonGroup?: string;
|
|
110
116
|
ribbonGroupDivider?: boolean;
|
|
111
117
|
/** 仅在这些套件的 Ribbon 中展示;省略则所有套件可见(仍受 suite hidden 列表约束) */
|
|
112
118
|
ribbonSuites?: SuiteKey[];
|
|
@@ -365,6 +371,8 @@ export interface BusinessFieldProfile {
|
|
|
365
371
|
select?: SelectBehaviorDef;
|
|
366
372
|
/** 选中下拉项后,从 option 数据同步填充同行多个字段 */
|
|
367
373
|
fillFromOption?: FieldOptionFillDef[];
|
|
374
|
+
/** 同行回填的事件来源;默认沿用 user,仅显式配置的字段使用 enrichment。 */
|
|
375
|
+
optionFillSource?: 'user' | 'enrichment';
|
|
368
376
|
/**
|
|
369
377
|
* 按表实例 props 动态解析回填规则;返回值优先于 fillFromOption。
|
|
370
378
|
* 返回 null/undefined 时回退 fillFromOption。
|
|
@@ -471,6 +479,8 @@ export type RuleTrigger = 'always' | 'onRowInit' | 'onFieldChange' | 'onRowConfi
|
|
|
471
479
|
export interface RuleContext {
|
|
472
480
|
/** 当前文档是否为模拟填报 */
|
|
473
481
|
isMockReport: boolean;
|
|
482
|
+
/** 物料消耗表的需求数量计算规则 */
|
|
483
|
+
requiredQtyCalcRule?: RequiredQtyCalcRule;
|
|
474
484
|
/** 子表在 rawData 中的 fieldKey */
|
|
475
485
|
subFieldKey: string;
|
|
476
486
|
/** 业务子模型 refModelType */
|