@gct-paas/word 0.1.62 → 0.1.63-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/button/src/button.type.d.ts +1 -1
- 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/base/utils/image-size-util.d.ts +2 -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/event/handlers/InteractionHandler.d.ts +1 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/interaction/InteractionController.d.ts +5 -0
- package/dist/core/interaction/types.d.ts +10 -1
- package/dist/core/interaction/useInteraction.d.ts +7 -0
- 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/{suites/edhr/panel-schema/warehouse-allocate-table/WarehouseAllocateTablePanel.vue.d.ts → domain/table/business/material/material-balance/components/material-consume-modal.vue.d.ts} +2 -4
- 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 +13166 -8542
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +12 -1
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
- package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +36 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +7 -0
- 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 +9 -1
- package/dist/runtime/interface/computed.d.ts +14 -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 +3 -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/entrust-steril-batch-list-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/index.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/pretreatment-list-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/rule/RulePanel.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +6 -0
- package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +35 -0
- package/dist/suites/edhr/panel-schema/rule/components/rule-item-card.vue.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/rule/components/rule-section.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/constants/builtin-field-maps.d.ts +10 -0
- package/dist/suites/edhr/panel-schema/rule/modals/open-rule-modal.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/rule/modals/unit-field-map-modal.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/rule.basic.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +47 -0
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +48 -0
- package/dist/suites/edhr/panel-schema/rule/utils/rule-field-map.d.ts +29 -0
- package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +26 -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-node.vue.d.ts +19 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +26 -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/config/editor/ref-autofill-editor/utils.d.ts +2 -0
- package/dist/suites/shared/panel/modules/online-form-tmpl-module/online-form-tmpl-utils.d.ts +3 -0
- package/dist/types/material.type.d.ts +10 -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 +1109 -482
- package/package.json +1 -1
- package/dist/suites/edhr/panel-schema/warehouse-inventory-table/WarehouseInventoryTablePanel.vue.d.ts +0 -8
|
@@ -212,6 +212,10 @@ export declare enum FIELD_TYPE {
|
|
|
212
212
|
* 工单号
|
|
213
213
|
*/
|
|
214
214
|
MFG_ORDER = "mfg_order",
|
|
215
|
+
/**
|
|
216
|
+
* 车间
|
|
217
|
+
*/
|
|
218
|
+
SHOPFLOOR = "shopfloor",
|
|
215
219
|
/**
|
|
216
220
|
* 记录单号
|
|
217
221
|
*/
|
|
@@ -355,5 +359,29 @@ export declare enum FIELD_TYPE {
|
|
|
355
359
|
/**
|
|
356
360
|
* 需求数量
|
|
357
361
|
*/
|
|
358
|
-
QTY_REQUIRED = "qty_required"
|
|
362
|
+
QTY_REQUIRED = "qty_required",
|
|
363
|
+
/**
|
|
364
|
+
* E-SOP
|
|
365
|
+
*/
|
|
366
|
+
E_SOP = "e_sop",
|
|
367
|
+
/**
|
|
368
|
+
* E-SOP版本
|
|
369
|
+
*/
|
|
370
|
+
E_SOP_VERSION = "e_sop_version",
|
|
371
|
+
/**
|
|
372
|
+
* 实例数
|
|
373
|
+
*/
|
|
374
|
+
OF_INST_NUM = "of_inst_num",
|
|
375
|
+
/**
|
|
376
|
+
* 生产批次号
|
|
377
|
+
*/
|
|
378
|
+
PRODUCTION_CONTAINER = "production_container",
|
|
379
|
+
/**
|
|
380
|
+
* 物料批(追溯)
|
|
381
|
+
*/
|
|
382
|
+
MATERIAL_CONTAINER = "material_container",
|
|
383
|
+
/**
|
|
384
|
+
* 灭菌批(追溯)
|
|
385
|
+
*/
|
|
386
|
+
STERILIZATION_CONTAINER = "sterilization_container"
|
|
359
387
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './of-inst-num';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createOfInstNumEnricher, tryCollectOfInstNumTarget, type OfInstNumWidgetTarget, } from './of-inst-num-enricher';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Doc } from '../../../core';
|
|
2
|
+
import { DataEnricherRegistration } from '../../../core/data/enricher-types';
|
|
3
|
+
import { FIELD_TYPE } from '../field-type';
|
|
4
|
+
export interface OfInstNumWidgetTarget {
|
|
5
|
+
valuePath: string;
|
|
6
|
+
bindFormTmplRefId?: string | null;
|
|
7
|
+
}
|
|
8
|
+
type OfInstNumWidgetInstance = {
|
|
9
|
+
widgetMeta?: {
|
|
10
|
+
field?: {
|
|
11
|
+
fieldType?: FIELD_TYPE;
|
|
12
|
+
type?: FIELD_TYPE;
|
|
13
|
+
bizType?: FIELD_TYPE;
|
|
14
|
+
};
|
|
15
|
+
props?: Record<string, unknown>;
|
|
16
|
+
};
|
|
17
|
+
valuePath?: string;
|
|
18
|
+
};
|
|
19
|
+
/** 从单个 widget 实例解析实例数 enrich 目标 */
|
|
20
|
+
export declare function tryCollectOfInstNumTarget(instance: OfInstNumWidgetInstance): OfInstNumWidgetTarget | null;
|
|
21
|
+
/** 实例数:从 paramsConfig 取批次号/工单号,按绑定模板拉取并写回主值 */
|
|
22
|
+
export declare function createOfInstNumEnricher(doc: Doc, targets: OfInstNumWidgetTarget[]): DataEnricherRegistration;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
export type MaterialConsumeModalRow = {
|
|
3
|
+
materialLabel: string;
|
|
4
|
+
consumeQty: unknown;
|
|
5
|
+
};
|
|
6
|
+
/** 拉取物料消耗分组数据(弹框专用,与页面子表编辑态隔离) */
|
|
7
|
+
export declare function fetchMaterialConsumeGroupProduct(doc: Doc): Promise<MaterialConsumeModalRow[]>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
/** 打开物料平衡表消耗明细弹框(数据来自 get_material_consume_group_product 接口) */
|
|
3
|
+
export declare function openMaterialBalanceConsumeModal(options: {
|
|
4
|
+
doc: Doc;
|
|
5
|
+
}): Promise<void>;
|
|
6
|
+
/** 关闭物料平衡表消耗明细弹框 */
|
|
7
|
+
export declare function closeMaterialBalanceConsumeModal(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Wtbl } from '../../../../core';
|
|
1
|
+
import { MaterialConsumeModalRow } from '../actions/fetch-material-consume-data';
|
|
3
2
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
active: ActivePanelData;
|
|
3
|
+
rows: MaterialConsumeModalRow[];
|
|
6
4
|
};
|
|
7
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>;
|
|
8
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;
|