@gct-paas/word 0.1.60 → 0.1.62-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 +1 -1
- package/dist/assets/svgs/table/index.d.ts +2 -0
- package/dist/assets/svgs/toolkit/index.d.ts +10 -0
- package/dist/base/form-item/src/form-item.vue.d.ts +5 -2
- package/dist/base/modal/src/ModalRoot.vue.d.ts +2 -0
- package/dist/base/modal/src/modal.type.d.ts +4 -0
- package/dist/base/select/src/basic-select.vue.d.ts +5 -0
- package/dist/core/command/commands/SetWsecSize.d.ts +10 -0
- package/dist/core/command/types.d.ts +10 -2
- package/dist/core/constants/index.d.ts +10 -7
- package/dist/core/data/DataManager.d.ts +2 -0
- package/dist/core/data/derived-fields.d.ts +17 -0
- package/dist/core/data/enrichers/build-field-enrichers.d.ts +0 -4
- package/dist/core/data/enrichers/path-templates.d.ts +2 -0
- package/dist/core/data/enrichers/subtable-path.d.ts +15 -0
- package/dist/core/data/pipeline-logger.d.ts +1 -1
- package/dist/core/data/post-change-pipeline.d.ts +5 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/model/document/WsecPr.d.ts +14 -1
- package/dist/core/model/document/wtcRegionRef.d.ts +2 -2
- package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +3 -0
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +14 -1
- package/dist/core/utils/unit-converter-util.d.ts +2 -0
- package/dist/core/view/Doc.d.ts +5 -1
- package/dist/core/view/Section.d.ts +16 -7
- package/dist/core/widget/e-sop-view.d.ts +4 -0
- package/dist/domain/active/active-types.d.ts +12 -2
- package/dist/domain/constants/field-state.d.ts +9 -0
- package/dist/domain/field/field-props-schema-type.d.ts +2 -2
- package/dist/domain/field/field-type.d.ts +29 -1
- package/dist/domain/field/index.d.ts +1 -0
- package/dist/domain/field/of-inst-num/index.d.ts +1 -0
- package/dist/domain/field/of-inst-num/of-inst-num-enricher.d.ts +23 -0
- package/dist/domain/table/business/material/material-balance/actions/fetch-material-consume-data.d.ts +7 -0
- package/dist/domain/table/business/material/material-balance/actions/index.d.ts +3 -0
- package/dist/domain/table/business/material/material-balance/actions/open-consume-modal.d.ts +7 -0
- package/dist/domain/table/business/material/material-balance/components/material-consume-modal.vue.d.ts +6 -0
- package/dist/domain/table/business/material/material-balance/index.d.ts +1 -0
- package/dist/domain/table/business/material/material-balance/profile/field-keys.d.ts +25 -0
- package/dist/domain/table/business/material/material-balance/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-balance/profile/index.d.ts +1 -0
- package/dist/domain/table/business/material/material-balance/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-balance/runtime/use-consume-modal-cleanup.d.ts +3 -0
- package/dist/domain/table/business/material/material-consume/profile/index.d.ts +1 -0
- package/dist/domain/table/business/material/material-consume/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-consume/runtime/row-change-handlers.d.ts +2 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +7 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +2 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +7 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/index.d.ts +2 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +45 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +3 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +2 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +25 -0
- package/dist/domain/table/business/shared/change-parse-rule.d.ts +10 -0
- package/dist/domain/table/business/shared/scan-action.d.ts +25 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +7 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +2 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +7 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +2 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +28 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +3 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +2 -0
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +5 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +0 -3
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in-out/profile/field-keys.d.ts +8 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +10 -14
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +1 -0
- package/dist/domain/table/design/autofill-expander.d.ts +3 -1
- package/dist/domain/table/runtime/api/biz-service-api.d.ts +2 -0
- package/dist/domain/table/runtime/engines/init-load-engine.d.ts +1 -0
- package/dist/domain/table/runtime/engines/linkage-engine.d.ts +0 -2
- package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +1 -1
- package/dist/domain/table/runtime/row-change-utils.d.ts +25 -0
- package/dist/domain/table/runtime/runtime-handlers.d.ts +15 -11
- package/dist/domain/table/runtime/table-runtime-context.d.ts +4 -4
- package/dist/domain/table/runtime/table-runtime-utils.d.ts +8 -0
- package/dist/domain/table/runtime/table-runtime.d.ts +11 -1
- package/dist/domain/table/types.d.ts +53 -4
- package/dist/index.es.js +7065 -3464
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +5 -0
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
- package/dist/runtime/designer/toolkit/svg/toolkit-svg-icon.vue.d.ts +9 -0
- package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +5 -3
- package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +18 -18
- package/dist/runtime/factories/createValidateFactory.d.ts +2 -0
- package/dist/runtime/factories/useFormValidator.d.ts +4 -0
- package/dist/runtime/interface/computed.d.ts +9 -2
- package/dist/runtime/interface/context-defaults.d.ts +9 -0
- package/dist/runtime/interface/fetchers.d.ts +28 -6
- package/dist/runtime/interface/render.d.ts +0 -24
- package/dist/runtime/renderer/dialogs/signature/logic.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/signature/validate-signature-config.d.ts +5 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +22 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/rdo-ref.d.ts +17 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/merge-select-source.d.ts +10 -0
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +15 -2
- package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +18 -2
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +3 -0
- package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +2 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +1 -12
- package/dist/sdk/engine/index.d.ts +2 -2
- package/dist/sdk/types/index.d.ts +16 -1
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +7 -0
- package/dist/suites/edhr/manifest/field/business/of-inst-num-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/e-sop-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/e-sop-version-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/material-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/production-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/shopfloor-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/sterilization-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +3 -1
- package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/EntrustSterilBatchListTablePanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/entrust-steril-batch-list-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/material-balance-table/MaterialBalanceTablePanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/material-balance-table/material-balance-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/paper/modules/page-size-config.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/paper/modules/signature-config.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/paper/modules/table-setting-config.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/pretreatment-list-table/PretreatmentListTablePanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/pretreatment-list-table/pretreatment-list-table.basic.d.ts +1 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +15 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-utils.d.ts +22 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/from-field-tree-utils.d.ts +5 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/to-field-tree-utils.d.ts +19 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/types.d.ts +11 -0
- package/dist/suites/shared/panel/modules/online-form-tmpl-module/online-form-tmpl-utils.d.ts +3 -0
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/utils/composables/usePagesToPdf.d.ts +2 -2
- package/dist/utils/func/core.d.ts +4 -0
- package/dist/utils/func/form.d.ts +8 -0
- package/dist/word.css +866 -375
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MaterialConsumeModalRow } from '../actions/fetch-material-consume-data';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rows: MaterialConsumeModalRow[];
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 平衡表字段 key 统一定义
|
|
3
|
+
*/
|
|
4
|
+
/** 单字段 key */
|
|
5
|
+
export declare const F: {
|
|
6
|
+
/** 物料 */
|
|
7
|
+
readonly material: "material_id_";
|
|
8
|
+
readonly materialLb: "material_id__lb_";
|
|
9
|
+
/** 剩余量 */
|
|
10
|
+
readonly remainingQty: "remaining_amount_qty_";
|
|
11
|
+
/** 物料平衡 */
|
|
12
|
+
readonly materialBalancePercent: "material_balance_percent_";
|
|
13
|
+
/** 领用量 */
|
|
14
|
+
readonly amountReceivedQty: "amount_received_qty_";
|
|
15
|
+
/** 实际产量 */
|
|
16
|
+
readonly actualOutputQty: "actual_output_qty_";
|
|
17
|
+
/** 损耗量 */
|
|
18
|
+
readonly lossAmountQty: "loss_amount_qty_";
|
|
19
|
+
/** 消耗量 */
|
|
20
|
+
readonly consumeQty: "consume_qty_";
|
|
21
|
+
/** 物料批次号 */
|
|
22
|
+
readonly materialNo: "material_no_";
|
|
23
|
+
/** 工序 */
|
|
24
|
+
readonly routingOperation: "routing_operation_id_";
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 预处理表字段 key 统一定义
|
|
3
|
+
*/
|
|
4
|
+
/** 单字段 key */
|
|
5
|
+
export declare const F: {
|
|
6
|
+
/** 物料 */
|
|
7
|
+
readonly product: "product_id_";
|
|
8
|
+
/** 物料名称 */
|
|
9
|
+
readonly productName: "product_id_name_";
|
|
10
|
+
/** 物料编码 */
|
|
11
|
+
readonly productCode: "product_id_code_";
|
|
12
|
+
/** 物料规格 */
|
|
13
|
+
readonly productSpec: "product_id_spec_";
|
|
14
|
+
/** 物料批次号 */
|
|
15
|
+
readonly materialContainer: "material_container_no_";
|
|
16
|
+
/** 生产批次号 */
|
|
17
|
+
readonly productionContainer: "production_container_id_";
|
|
18
|
+
/** 数量 */
|
|
19
|
+
readonly qty: "qty_";
|
|
20
|
+
/** 工单号 */
|
|
21
|
+
readonly mfgOrderCode: "mfg_order_code_";
|
|
22
|
+
/** 工单 */
|
|
23
|
+
readonly mfgOrder: "mfg_order_id_";
|
|
24
|
+
/** 生产日期 */
|
|
25
|
+
readonly productionDate: "production_date_";
|
|
26
|
+
};
|
|
27
|
+
/** remoteSync 成功回写的基础字段 */
|
|
28
|
+
export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "mfg_order_code_"];
|
|
29
|
+
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
30
|
+
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
|
|
31
|
+
/** 行变更 handler:生产批次号切换时的字段集 */
|
|
32
|
+
export declare const CLEAR_ON_PROD_CONTAINER_SWITCH: ("material_container_no_" | "mfg_order_id_")[];
|
|
33
|
+
/** 行变更 handler:工单清空时的字段集 */
|
|
34
|
+
export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
|
|
35
|
+
/** 行变更 handler:工单切换时的字段集 */
|
|
36
|
+
export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("material_container_no_" | "production_container_id_")[];
|
|
37
|
+
/** 行变更 handler:物料批次号清空时的字段集 */
|
|
38
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
|
|
39
|
+
/** 行变更 handler:物料批次号切换时的字段集 */
|
|
40
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH: readonly ["mfg_order_id_", "production_container_id_"];
|
|
41
|
+
/** 行变更 handler:物料批次号手动输入(无 companion id)切换时需额外清空的字段 */
|
|
42
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH: readonly ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
|
|
43
|
+
export declare const MATERIAL_CONTAINER_ID: string;
|
|
44
|
+
/** 相关字段变更时需重算物料禁用态 */
|
|
45
|
+
export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_container_no_", string, "mfg_order_id_", "production_container_id_"];
|
package/dist/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
/**
|
|
3
|
+
* 生产批次号 切换 / 清空
|
|
4
|
+
* 切换【生产批次号】 → 清工单 + 物料批次号
|
|
5
|
+
* 清空【生产批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
|
|
6
|
+
*/
|
|
7
|
+
export declare function handleProductionContainerChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
8
|
+
/**
|
|
9
|
+
* 工单 切换 / 清空
|
|
10
|
+
* 切换【工单】 -> 清生产批次号 + 物料批次号
|
|
11
|
+
* 清空【工单】 -> 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
|
|
12
|
+
*/
|
|
13
|
+
export declare function handleMfgOrderChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
14
|
+
/**
|
|
15
|
+
* 物料批次号 切换 / 清空
|
|
16
|
+
* 下拉选中(有 companion id)→ 清生产批次号 + 工单
|
|
17
|
+
* 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产批次号 + 工单
|
|
18
|
+
* 清空【物料批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
|
|
19
|
+
*/
|
|
20
|
+
export declare function handleMaterialContainerNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
21
|
+
/**
|
|
22
|
+
* 物料 清空
|
|
23
|
+
* 清空【物料】 -> 清物料名称 + 物料编码 + 物料规格
|
|
24
|
+
*/
|
|
25
|
+
export declare function handleProductChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Doc, SubRenderer } from '../../../../core';
|
|
2
|
+
import { TriggerName } from '../../../../utils/TriggerUtil';
|
|
3
|
+
/** 变更子表条码解析规则(填报态) */
|
|
4
|
+
export declare function changeBarcodeParseRule(options: {
|
|
5
|
+
doc: Doc;
|
|
6
|
+
subRenderer: SubRenderer;
|
|
7
|
+
subModelKey?: string;
|
|
8
|
+
modalEvent: TriggerName;
|
|
9
|
+
ruleTip?: string;
|
|
10
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ParseRuleProps } from '../../../../types/material.type';
|
|
2
|
+
import { TriggerName } from '../../../../utils/TriggerUtil';
|
|
3
|
+
/** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
|
|
4
|
+
export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
|
|
5
|
+
export interface ScanRuleInfo {
|
|
6
|
+
rules_?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
export interface OpenScanWithParseRuleOptions {
|
|
10
|
+
regionId: string;
|
|
11
|
+
barcodeParsingRulesId?: string;
|
|
12
|
+
modalEvent: TriggerName;
|
|
13
|
+
title?: string;
|
|
14
|
+
onScan: (input: {
|
|
15
|
+
str: string;
|
|
16
|
+
}, ctx: {
|
|
17
|
+
parseRuleProps: ParseRuleProps;
|
|
18
|
+
scanRuleInfo: ScanRuleInfo;
|
|
19
|
+
}) => void | Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 扫码入口脚手架:防重入、校验解析规则、打开 modal、finally 清理
|
|
23
|
+
* 业务侧只实现 onScan
|
|
24
|
+
*/
|
|
25
|
+
export declare function openScanWithParseRule(options: OpenScanWithParseRuleOptions): Promise<void>;
|
package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 委托灭菌批次表字段 key 统一定义
|
|
3
|
+
*/
|
|
4
|
+
/** 单字段 key */
|
|
5
|
+
export declare const F: {
|
|
6
|
+
/** 产品 */
|
|
7
|
+
readonly product: "product_id_";
|
|
8
|
+
/** 产品名称 */
|
|
9
|
+
readonly productName: "product_id_name_";
|
|
10
|
+
/** 产品编码 */
|
|
11
|
+
readonly productCode: "product_id_code_";
|
|
12
|
+
/** 产品规格 */
|
|
13
|
+
readonly productSpec: "product_id_spec_";
|
|
14
|
+
/** 生产批次号 */
|
|
15
|
+
readonly productionContainer: "production_container_id_";
|
|
16
|
+
/** 数量 */
|
|
17
|
+
readonly qty: "qty_";
|
|
18
|
+
/** 工单号 */
|
|
19
|
+
readonly mfgOrderCode: "mfg_order_code_";
|
|
20
|
+
/** 工单 */
|
|
21
|
+
readonly mfgOrder: "mfg_order_id_";
|
|
22
|
+
/** 生产日期 */
|
|
23
|
+
readonly productionDate: "production_date_";
|
|
24
|
+
};
|
|
25
|
+
/** remoteSync 成功回写的基础字段 */
|
|
26
|
+
export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "mfg_order_code_", "mfg_order_id_"];
|
|
27
|
+
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
28
|
+
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "qty_", "mfg_order_code_", "mfg_order_id_", "production_date_"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/** 单字段 key */
|
|
5
5
|
export declare const F: {
|
|
6
6
|
readonly batch: "production_identification_id_";
|
|
7
|
-
readonly batchLb: "production_identification_id__lb_";
|
|
8
7
|
readonly product: "product_id_";
|
|
9
8
|
readonly productName: "product_id_name_";
|
|
10
9
|
readonly productCode: "product_id_code_";
|
|
@@ -14,9 +13,7 @@ export declare const F: {
|
|
|
14
13
|
readonly warehouse: "warehouse_id_";
|
|
15
14
|
readonly location: "location_id_";
|
|
16
15
|
readonly originWarehouseId: "origin_warehouse_id_";
|
|
17
|
-
readonly originWarehouseIdLb: "origin_warehouse_id__lb_";
|
|
18
16
|
readonly originLocationId: "origin_location_id_";
|
|
19
|
-
readonly originLocationIdLb: "origin_location_id__lb_";
|
|
20
17
|
readonly allocateReason: "allocate_reason_";
|
|
21
18
|
readonly allocateNum: "allocate_num_";
|
|
22
19
|
readonly matcode: "product_code_";
|
|
@@ -4,20 +4,16 @@
|
|
|
4
4
|
/** 单字段 key */
|
|
5
5
|
export declare const F: {
|
|
6
6
|
readonly batch: "production_identification_id_";
|
|
7
|
-
readonly batchLb: "production_identification_id__lb_";
|
|
8
7
|
readonly product: "product_id_";
|
|
9
|
-
readonly productLb: "product_id__lb_";
|
|
10
8
|
readonly productName: "product_id_name_";
|
|
11
9
|
readonly productCode: "product_id_code_";
|
|
12
10
|
readonly productSpec: "product_id_spec_";
|
|
13
11
|
readonly warehouse: "warehouse_id_";
|
|
14
12
|
readonly location: "location_id_";
|
|
15
|
-
readonly locationLb: "location_id__lb_";
|
|
16
13
|
readonly stock: "stock_num_";
|
|
17
14
|
readonly stocktake: "stocktake_num_";
|
|
18
15
|
readonly diff: "diff_num_";
|
|
19
16
|
readonly stocktakeStatus: "stocktake_status_";
|
|
20
|
-
readonly stocktakeStatusLb: "stocktake_status__lb_";
|
|
21
17
|
readonly matno: "material_no_";
|
|
22
18
|
readonly matcode: "product_code_";
|
|
23
19
|
readonly rowSource: "row_source_";
|
|
@@ -26,10 +22,10 @@ export declare const F: {
|
|
|
26
22
|
};
|
|
27
23
|
export type InventoryFieldKey = (typeof F)[keyof typeof F];
|
|
28
24
|
/** 含 label 的身份字段组 */
|
|
29
|
-
export declare const BATCH_IDENTITY: readonly ["production_identification_id_"
|
|
30
|
-
export declare const PRODUCT_IDENTITY: readonly ["product_id_"
|
|
25
|
+
export declare const BATCH_IDENTITY: readonly ["production_identification_id_"];
|
|
26
|
+
export declare const PRODUCT_IDENTITY: readonly ["product_id_"];
|
|
31
27
|
export declare const PRODUCT_DESC: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
32
|
-
export declare const LOCATION_FIELDS: readonly ["location_id_"
|
|
28
|
+
export declare const LOCATION_FIELDS: readonly ["location_id_"];
|
|
33
29
|
export declare const STOCK_FIELDS: readonly ["stock_num_", "stocktake_num_"];
|
|
34
30
|
/** 库存、实盘及差异清空集 */
|
|
35
31
|
export declare const STOCK_RELATED_CLEAR_FIELDS: readonly ["stock_num_", "stocktake_num_", "diff_num_"];
|
|
@@ -42,17 +38,17 @@ export declare const INVENTORY_REMOTE_SYNC_EXCLUDE_REQUEST_FIELDS: readonly ["lo
|
|
|
42
38
|
/** remoteSync 成功回写的基础字段(不含库位/库存,由 resolveApply 决定) */
|
|
43
39
|
export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
|
|
44
40
|
/** remoteSync 查无数据时清空的字段 */
|
|
45
|
-
export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "
|
|
41
|
+
export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
46
42
|
/** 行变更 handler:批次清空 / 切换时的字段集 */
|
|
47
|
-
export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "
|
|
48
|
-
export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "
|
|
43
|
+
export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
44
|
+
export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
49
45
|
/** 行变更 handler:物料清空 / 切换时的字段集 */
|
|
50
|
-
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "
|
|
51
|
-
export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "
|
|
46
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
47
|
+
export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
52
48
|
/** remoteSync:切换物料发请求前需清空的行字段(含库位与自动解析标记) */
|
|
53
|
-
export declare const PREPARE_ROW_ON_PRODUCT_SYNC: readonly ["production_identification_id_", "
|
|
49
|
+
export declare const PREPARE_ROW_ON_PRODUCT_SYNC: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_", "_location_auto_resolved_", "_inventory_location_ids_"];
|
|
54
50
|
/** remoteSync:批次查询无结果 / 接口异常时清空的字段 */
|
|
55
|
-
export declare const CLEAR_ON_BATCH_SYNC_ERROR: readonly ["production_identification_id_", "
|
|
51
|
+
export declare const CLEAR_ON_BATCH_SYNC_ERROR: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
|
|
56
52
|
/** runtimeRules:始终只读的信息字段 */
|
|
57
53
|
export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_", "stock_num_", "diff_num_", "stocktake_status_"];
|
|
58
54
|
/** auto 行只读的可选字段 */
|
|
@@ -10,8 +10,10 @@ interface ExpandAutofillContext {
|
|
|
10
10
|
sourceFieldKey: string;
|
|
11
11
|
/** 目标字段所在模型 key(子表字段为子模型 modelKey) */
|
|
12
12
|
toModelKey?: string;
|
|
13
|
-
/**
|
|
13
|
+
/** 是否为子表字段:0 / undefined = 主表,1 = 子表 */
|
|
14
14
|
toSubModel?: number;
|
|
15
|
+
/** 子表时:主表 master_slave 字段 key */
|
|
16
|
+
toSubFieldKey?: string;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
17
19
|
* 将字段 Profile 中的 autofillTemplates 展开为 widget.props.autofillRules
|
|
@@ -6,3 +6,5 @@ export declare function isBizServiceFailure(res: unknown): boolean;
|
|
|
6
6
|
export declare function unwrapBizServiceData<T extends Record<string, unknown>>(res: unknown): T | null;
|
|
7
7
|
/** listAll 类接口取数组 */
|
|
8
8
|
export declare function unwrapBizServiceList(res: unknown): Record<string, unknown>[];
|
|
9
|
+
/** 解析 biz-service 返回的 dict */
|
|
10
|
+
export declare function unwrapBizServiceDict(res: unknown): Record<string, Record<string, unknown>> | undefined;
|
|
@@ -62,6 +62,4 @@ export declare class LinkageEngine {
|
|
|
62
62
|
buildFillFromOption(ctx: TableRuntimeContext, fieldKey: string, rowIndex: number, selectedOption: Record<string, unknown>): Record<string, unknown>;
|
|
63
63
|
/** 将单条 FieldOptionFillDef 映射写入 updates */
|
|
64
64
|
private applyOptionFillDef;
|
|
65
|
-
/** 构建字段清空更新对象(同时清值、_lb_ 标签与 companion _id_) */
|
|
66
|
-
private buildClearUpdates;
|
|
67
65
|
}
|
|
@@ -9,6 +9,7 @@ export declare class RemoteSyncEngine {
|
|
|
9
9
|
constructor(doc: Doc);
|
|
10
10
|
/** 将远程同步结果写回行 */
|
|
11
11
|
applyToRow(ctx: TableRuntimeContext, rowIndex: number, config: RemoteSyncDef, data: Record<string, unknown>, rowPatch?: Record<string, unknown>): Promise<void>;
|
|
12
|
+
applySyncResult(ctx: TableRuntimeContext, rowIndex: number, config: RemoteSyncDef, records: Record<string, any>[], changedFieldKey?: string, row?: Record<string, any>): Promise<void>;
|
|
12
13
|
/** enrichment 写入不触发 enricher,remoteSync 回写后需补全 _lb_ */
|
|
13
14
|
private hydrateLabelsForPaths;
|
|
14
15
|
/** 按 profile.remoteSync 从行数据组装请求体;条件不足返回 null */
|
|
@@ -34,5 +35,4 @@ export declare class RemoteSyncEngine {
|
|
|
34
35
|
private refreshLinkageForRow;
|
|
35
36
|
private clearMissFields;
|
|
36
37
|
private afterApply;
|
|
37
|
-
private pickFields;
|
|
38
38
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Doc } from '../../../core';
|
|
2
|
+
/** 行变更上下文 */
|
|
3
|
+
export interface RowChangeCtx {
|
|
4
|
+
doc: Doc;
|
|
5
|
+
subFieldKey: string;
|
|
6
|
+
rowIndex: number;
|
|
7
|
+
rowPath: string;
|
|
8
|
+
row: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface GetRowChangeCtxOptions {
|
|
11
|
+
/** 行来源字段 key;与 skipRowSources 联用 */
|
|
12
|
+
rowSourceField?: string;
|
|
13
|
+
/** 这些来源的行跳过处理(如 auto/scan) */
|
|
14
|
+
skipRowSources?: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
export interface ApplyRowClearsOptions {
|
|
17
|
+
/** 额外写入(相对字段键 → 值),拼到 rowPath 下 */
|
|
18
|
+
patch?: Record<string, unknown>;
|
|
19
|
+
}
|
|
20
|
+
/** 读取行变更上下文;无行或命中 skipRowSources 时返回 null */
|
|
21
|
+
export declare function getRowChangeCtx(doc: Doc, subFieldKey: string, rowIndex: number, options?: GetRowChangeCtxOptions): RowChangeCtx | null;
|
|
22
|
+
/** 将指定行字段清空为 null,并可附带 patch */
|
|
23
|
+
export declare function applyRowClears(ctx: RowChangeCtx, fields: readonly string[], options?: ApplyRowClearsOptions): void;
|
|
24
|
+
/** 身份字段切换 / 清空:有值时清关联字段,清空时清另一组字段 */
|
|
25
|
+
export declare function handleIdentityFieldChange(ctx: RowChangeCtx, fieldKey: string, clearWhenEmpty: readonly string[], clearWhenPresent: readonly string[], options?: ApplyRowClearsOptions): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../../core';
|
|
2
|
-
import { RemoteSyncDef } from '../types';
|
|
2
|
+
import { RemoteSyncDef, TableType } from '../types';
|
|
3
3
|
import { TableRuntimeContext } from './table-runtime-context';
|
|
4
4
|
/**
|
|
5
5
|
* 单行运行时处理器类型定义
|
|
@@ -16,6 +16,8 @@ export interface InitLoadMapContext {
|
|
|
16
16
|
runtimeCtx: TableRuntimeContext;
|
|
17
17
|
/** 是否开启分组 */
|
|
18
18
|
groupBy: boolean;
|
|
19
|
+
/** 接口返回的字典数据 */
|
|
20
|
+
dict?: Record<string, Record<string, unknown>>;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* 初始化加载数据转换函数类型
|
|
@@ -46,27 +48,29 @@ export interface RemoteSyncApplyResult {
|
|
|
46
48
|
* remoteSync 回写解析器:根据接口返回条数决定 applyFields 的实际写入内容
|
|
47
49
|
*/
|
|
48
50
|
export type RemoteSyncApplyResolver = (records: Record<string, unknown>[], ctx: RemoteSyncApplyContext) => RemoteSyncApplyResult;
|
|
49
|
-
/**
|
|
50
|
-
export declare function registerRowHandler(name: string, handler: RowRuntimeHandler): void;
|
|
51
|
-
/**
|
|
52
|
-
export declare function registerInitLoadMapper(name: string, mapper: InitLoadRecordsMapper): void;
|
|
53
|
-
/**
|
|
54
|
-
export declare function registerRemoteSyncApplyResolver(name: string, resolver: RemoteSyncApplyResolver): void;
|
|
51
|
+
/** 按表类型注册单行运行时钩子;profile 只需写短名 */
|
|
52
|
+
export declare function registerRowHandler(tableType: TableType, name: string, handler: RowRuntimeHandler): void;
|
|
53
|
+
/** 按表类型注册初始化数据转换映射钩子函数 */
|
|
54
|
+
export declare function registerInitLoadMapper(tableType: TableType, name: string, mapper: InitLoadRecordsMapper): void;
|
|
55
|
+
/** 按表类型注册 remoteSync 回写解析钩子函数 */
|
|
56
|
+
export declare function registerRemoteSyncApplyResolver(tableType: TableType, name: string, resolver: RemoteSyncApplyResolver): void;
|
|
55
57
|
/**
|
|
56
58
|
* 执行指定名称的单行处理器
|
|
57
|
-
* @param
|
|
59
|
+
* @param tableType 表类型(与 registerRowHandler 一致)
|
|
60
|
+
* @param name 注册短名
|
|
58
61
|
* @param doc 文档实例
|
|
59
62
|
* @param subFieldKey 子表格字段key
|
|
60
63
|
* @param rowIndex 当前行索引
|
|
61
64
|
*/
|
|
62
|
-
export declare function runRowHandler(name: string | undefined, doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
65
|
+
export declare function runRowHandler(tableType: string | undefined, name: string | undefined, doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
63
66
|
/**
|
|
64
67
|
* 使用注册的转换函数处理初始化加载的表格数据
|
|
68
|
+
* @param tableType 表类型
|
|
65
69
|
* @param name 注册名称
|
|
66
70
|
* @param records 接口原始行数据
|
|
67
71
|
* @param ctx 转换上下文
|
|
68
72
|
* @returns 转换后数据;无对应转换器时返回原数组
|
|
69
73
|
*/
|
|
70
|
-
export declare function mapInitLoadRecords(name: string | undefined, records: Record<string, unknown>[], ctx: InitLoadMapContext): Record<string, unknown>[];
|
|
74
|
+
export declare function mapInitLoadRecords(tableType: string | undefined, name: string | undefined, records: Record<string, unknown>[], ctx: InitLoadMapContext): Record<string, unknown>[];
|
|
71
75
|
/** 使用注册的解析器决定 remoteSync 回写字段 */
|
|
72
|
-
export declare function resolveRemoteSyncApply(name: string | undefined, records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult | null;
|
|
76
|
+
export declare function resolveRemoteSyncApply(tableType: string | undefined, name: string | undefined, records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../../core';
|
|
2
|
-
import { RepeatingRegion } from '../../../core/model/logic';
|
|
2
|
+
import { RepeatingRegion, MaterialConsumeTableRegion } from '../../../core/model/logic';
|
|
3
3
|
import { BusinessFieldProfile, BusinessSubTableProfile, RuleContext } from '../types';
|
|
4
4
|
/** 行遍历选项 */
|
|
5
5
|
export interface EachRowOptions {
|
|
@@ -13,9 +13,9 @@ export declare class TableRuntimeContext {
|
|
|
13
13
|
readonly doc: Doc;
|
|
14
14
|
readonly profile: BusinessSubTableProfile;
|
|
15
15
|
readonly subFieldKey: string;
|
|
16
|
-
readonly region: RepeatingRegion;
|
|
16
|
+
readonly region: RepeatingRegion | MaterialConsumeTableRegion;
|
|
17
17
|
private widgetFieldKeys?;
|
|
18
|
-
constructor(doc: Doc, profile: BusinessSubTableProfile, subFieldKey: string, region: RepeatingRegion);
|
|
18
|
+
constructor(doc: Doc, profile: BusinessSubTableProfile, subFieldKey: string, region: RepeatingRegion | MaterialConsumeTableRegion);
|
|
19
19
|
/** 业务子模型 refModelType */
|
|
20
20
|
get refModelType(): string;
|
|
21
21
|
/** 子表数组路径 $.subFieldKey */
|
|
@@ -30,7 +30,7 @@ export declare class TableRuntimeContext {
|
|
|
30
30
|
buildRuleContext(rowIndex: number, changedFieldKey?: string): RuleContext;
|
|
31
31
|
/** 遍历子表数据行,支持指定单行或全量遍历,逐行注入 RuleContext */
|
|
32
32
|
eachRow(options: EachRowOptions, iteratee: (ctx: RuleContext) => void): void;
|
|
33
|
-
/**
|
|
33
|
+
/** 在子表字段配置列表中查找指定字段配置(支持 match.fieldKey 为数组) */
|
|
34
34
|
findFieldProfile(fieldKey: string): BusinessFieldProfile | undefined;
|
|
35
35
|
/** 本子表表单内已渲染的字段控件 key 集合 */
|
|
36
36
|
private get presentFieldWidgetKeys();
|
|
@@ -54,3 +54,11 @@ export declare function isSameFieldValue(a: unknown, b: unknown): boolean;
|
|
|
54
54
|
* @returns true:新旧值不同,需要清空下游下拉
|
|
55
55
|
*/
|
|
56
56
|
export declare function shouldClearDownstreamForFieldChange(change?: FieldChangeDetail): boolean;
|
|
57
|
+
/** 从 source 中挑出 keys 里已定义(!== undefined)的字段 */
|
|
58
|
+
export declare function pickDefinedFields(source: Record<string, unknown>, keys: readonly string[]): Record<string, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* 页面无指定字段时是否应按 groupBy 聚合
|
|
61
|
+
* @param hasFieldWidget 判断字段是否有控件
|
|
62
|
+
* @param fieldKey groupByWhenFieldAbsent 配置
|
|
63
|
+
*/
|
|
64
|
+
export declare function shouldGroupByWhenFieldAbsent(hasFieldWidget: (fieldKey: string) => boolean, fieldKey?: string): boolean;
|