@gct-paas/word 0.1.62-beta.3 → 0.1.62-patch.1

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.
Files changed (166) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/svgs/table/index.d.ts +0 -2
  3. package/dist/base/button/src/button.type.d.ts +1 -1
  4. package/dist/base/form-item/src/form-item.vue.d.ts +2 -5
  5. package/dist/base/modal/src/ModalRoot.vue.d.ts +0 -2
  6. package/dist/base/modal/src/modal.type.d.ts +0 -4
  7. package/dist/base/select/src/basic-select.vue.d.ts +0 -5
  8. package/dist/base/utils/image-size-util.d.ts +10 -4
  9. package/dist/core/command/types.d.ts +2 -10
  10. package/dist/core/constants/index.d.ts +7 -10
  11. package/dist/core/data/DataManager.d.ts +0 -2
  12. package/dist/core/data/derived-fields.d.ts +0 -17
  13. package/dist/core/data/enrichers/build-field-enrichers.d.ts +4 -0
  14. package/dist/core/data/pipeline-logger.d.ts +1 -1
  15. package/dist/core/data/post-change-pipeline.d.ts +0 -5
  16. package/dist/core/event/handlers/InteractionHandler.d.ts +0 -1
  17. package/dist/core/index.d.ts +1 -1
  18. package/dist/core/interaction/InteractionController.d.ts +0 -5
  19. package/dist/core/interaction/types.d.ts +1 -10
  20. package/dist/core/interaction/useInteraction.d.ts +0 -7
  21. package/dist/core/model/document/WsecPr.d.ts +1 -14
  22. package/dist/core/model/document/wtcRegionRef.d.ts +2 -2
  23. package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +0 -3
  24. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -14
  25. package/dist/core/utils/unit-converter-util.d.ts +0 -2
  26. package/dist/core/view/Doc.d.ts +1 -5
  27. package/dist/core/view/Section.d.ts +7 -16
  28. package/dist/core/view/runs/ImageWidget.d.ts +4 -0
  29. package/dist/domain/active/active-types.d.ts +2 -12
  30. package/dist/domain/constants/field-state.d.ts +0 -9
  31. package/dist/domain/field/field-props-schema-type.d.ts +2 -2
  32. package/dist/domain/field/field-type.d.ts +1 -29
  33. package/dist/domain/table/business/material/material-balance/index.d.ts +0 -1
  34. package/dist/domain/table/business/material/material-balance/profile/index.d.ts +0 -1
  35. package/dist/domain/table/business/material/material-consume/profile/index.d.ts +0 -1
  36. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +3 -0
  37. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
  38. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +14 -10
  39. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +0 -1
  40. package/dist/domain/table/design/autofill-expander.d.ts +1 -3
  41. package/dist/domain/table/runtime/api/biz-service-api.d.ts +0 -2
  42. package/dist/domain/table/runtime/engines/init-load-engine.d.ts +0 -1
  43. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +2 -0
  44. package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +1 -1
  45. package/dist/domain/table/runtime/runtime-handlers.d.ts +11 -15
  46. package/dist/domain/table/runtime/table-runtime-context.d.ts +4 -4
  47. package/dist/domain/table/runtime/table-runtime-utils.d.ts +0 -8
  48. package/dist/domain/table/runtime/table-runtime.d.ts +1 -11
  49. package/dist/domain/table/types.d.ts +4 -53
  50. package/dist/index.es.js +174879 -141731
  51. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +1 -12
  52. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
  53. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +0 -7
  54. package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +3 -5
  55. package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +18 -18
  56. package/dist/runtime/factories/createValidateFactory.d.ts +0 -2
  57. package/dist/runtime/factories/useFormValidator.d.ts +1 -9
  58. package/dist/runtime/interface/computed.d.ts +2 -14
  59. package/dist/runtime/interface/fetchers.d.ts +6 -28
  60. package/dist/runtime/interface/render.d.ts +24 -0
  61. package/dist/runtime/renderer/dialogs/signature/logic.d.ts +0 -2
  62. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +0 -2
  63. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/rdo-ref.d.ts +0 -17
  64. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -1
  65. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -3
  66. package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +0 -3
  67. package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +2 -2
  68. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +12 -1
  69. package/dist/sdk/engine/index.d.ts +2 -2
  70. package/dist/sdk/types/index.d.ts +1 -16
  71. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +5 -7
  72. package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +1 -3
  73. package/dist/suites/edhr/panel-schema/index.d.ts +0 -8
  74. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/types.d.ts +0 -11
  75. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +0 -2
  76. package/dist/types/material.type.d.ts +0 -10
  77. package/dist/utils/TriggerUtil.d.ts +1 -1
  78. package/dist/utils/composables/usePagesToPdf.d.ts +2 -2
  79. package/dist/utils/func/core.d.ts +0 -4
  80. package/dist/utils/func/form.d.ts +0 -8
  81. package/dist/word.css +5900 -6974
  82. package/package.json +4 -2
  83. package/dist/assets/svgs/toolkit/index.d.ts +0 -10
  84. package/dist/core/command/commands/SetWsecSize.d.ts +0 -10
  85. package/dist/core/data/enrichers/path-templates.d.ts +0 -2
  86. package/dist/core/data/enrichers/subtable-path.d.ts +0 -15
  87. package/dist/core/widget/e-sop-view.d.ts +0 -4
  88. package/dist/domain/field/index.d.ts +0 -1
  89. package/dist/domain/field/of-inst-num/index.d.ts +0 -1
  90. package/dist/domain/field/of-inst-num/of-inst-num-enricher.d.ts +0 -23
  91. package/dist/domain/table/business/material/material-balance/actions/fetch-material-consume-data.d.ts +0 -7
  92. package/dist/domain/table/business/material/material-balance/actions/index.d.ts +0 -3
  93. package/dist/domain/table/business/material/material-balance/actions/open-consume-modal.d.ts +0 -7
  94. package/dist/domain/table/business/material/material-balance/components/material-consume-modal.vue.d.ts +0 -6
  95. package/dist/domain/table/business/material/material-balance/profile/field-keys.d.ts +0 -25
  96. package/dist/domain/table/business/material/material-balance/profile/fields.d.ts +0 -2
  97. package/dist/domain/table/business/material/material-balance/runtime/register-handlers.d.ts +0 -1
  98. package/dist/domain/table/business/material/material-balance/runtime/use-consume-modal-cleanup.d.ts +0 -3
  99. package/dist/domain/table/business/material/material-consume/runtime/register-handlers.d.ts +0 -1
  100. package/dist/domain/table/business/material/material-consume/runtime/row-change-handlers.d.ts +0 -2
  101. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  102. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -2
  103. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +0 -7
  104. package/dist/domain/table/business/preprocess/pretreatment-list/index.d.ts +0 -2
  105. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +0 -45
  106. package/dist/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +0 -2
  107. package/dist/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +0 -3
  108. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +0 -1
  109. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  110. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +0 -25
  111. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  112. package/dist/domain/table/business/shared/scan-action.d.ts +0 -25
  113. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  114. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -2
  115. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +0 -7
  116. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +0 -2
  117. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -28
  118. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +0 -2
  119. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +0 -3
  120. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/register-handlers.d.ts +0 -1
  121. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  122. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +0 -5
  123. package/dist/domain/table/business/warehouse/warehouse-in-out/profile/field-keys.d.ts +0 -8
  124. package/dist/domain/table/runtime/row-change-utils.d.ts +0 -25
  125. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +0 -36
  126. package/dist/runtime/designer/toolkit/svg/toolkit-svg-icon.vue.d.ts +0 -9
  127. package/dist/runtime/interface/context-defaults.d.ts +0 -9
  128. package/dist/runtime/renderer/dialogs/signature/validate-signature-config.d.ts +0 -5
  129. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +0 -22
  130. package/dist/runtime/renderer/dropdowns/components/tables/strategy/merge-select-source.d.ts +0 -10
  131. package/dist/suites/edhr/manifest/field/business/of-inst-num-manifest.d.ts +0 -2
  132. package/dist/suites/edhr/manifest/field/logic/e-sop-manifest.d.ts +0 -2
  133. package/dist/suites/edhr/manifest/field/logic/e-sop-version-manifest.d.ts +0 -2
  134. package/dist/suites/edhr/manifest/field/trace/material-container-manifest.d.ts +0 -2
  135. package/dist/suites/edhr/manifest/field/trace/production-container-manifest.d.ts +0 -2
  136. package/dist/suites/edhr/manifest/field/trace/shopfloor-manifest.d.ts +0 -2
  137. package/dist/suites/edhr/manifest/field/trace/sterilization-container-manifest.d.ts +0 -2
  138. package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/EntrustSterilBatchListTablePanel.vue.d.ts +0 -8
  139. package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/entrust-steril-batch-list-table.basic.d.ts +0 -1
  140. package/dist/suites/edhr/panel-schema/material-balance-table/MaterialBalanceTablePanel.vue.d.ts +0 -8
  141. package/dist/suites/edhr/panel-schema/material-balance-table/material-balance-table.basic.d.ts +0 -1
  142. package/dist/suites/edhr/panel-schema/paper/modules/page-size-config.vue.d.ts +0 -2
  143. package/dist/suites/edhr/panel-schema/paper/modules/signature-config.vue.d.ts +0 -2
  144. package/dist/suites/edhr/panel-schema/paper/modules/table-setting-config.vue.d.ts +0 -2
  145. package/dist/suites/edhr/panel-schema/pretreatment-list-table/PretreatmentListTablePanel.vue.d.ts +0 -8
  146. package/dist/suites/edhr/panel-schema/pretreatment-list-table/pretreatment-list-table.basic.d.ts +0 -1
  147. package/dist/suites/edhr/panel-schema/rule/RulePanel.vue.d.ts +0 -2
  148. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +0 -6
  149. package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +0 -35
  150. package/dist/suites/edhr/panel-schema/rule/components/rule-item-card.vue.d.ts +0 -12
  151. package/dist/suites/edhr/panel-schema/rule/components/rule-section.vue.d.ts +0 -11
  152. package/dist/suites/edhr/panel-schema/rule/constants/builtin-field-maps.d.ts +0 -10
  153. package/dist/suites/edhr/panel-schema/rule/modals/open-rule-modal.d.ts +0 -2
  154. package/dist/suites/edhr/panel-schema/rule/modals/unit-field-map-modal.vue.d.ts +0 -11
  155. package/dist/suites/edhr/panel-schema/rule/rule.basic.d.ts +0 -5
  156. package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -47
  157. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -48
  158. package/dist/suites/edhr/panel-schema/rule/utils/rule-field-map.d.ts +0 -29
  159. package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +0 -26
  160. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +0 -15
  161. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-node.vue.d.ts +0 -19
  162. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +0 -26
  163. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-utils.d.ts +0 -22
  164. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/from-field-tree-utils.d.ts +0 -5
  165. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/to-field-tree-utils.d.ts +0 -19
  166. package/dist/suites/shared/panel/modules/online-form-tmpl-module/online-form-tmpl-utils.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.62-beta.3",
3
+ "version": "0.1.62-patch.1",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",
@@ -35,9 +35,11 @@
35
35
  "build": "vite build",
36
36
  "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx --fix",
37
37
  "publish:beta": "pnpm run version:beta && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public --tag beta",
38
- "publish:prod": "pnpm run version:release && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public",
38
+ "publish:patch": "pnpm run version:patch && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public --tag patch && node ./scripts/git-commit-and-tag.mjs",
39
+ "publish:prod": "pnpm run version:release && pnpm run build && npm publish --registry=https://registry.npmjs.org/ --access public && node ./scripts/git-commit-and-tag.mjs",
39
40
  "test": "vitest run",
40
41
  "version:beta": "npm version prerelease --preid=beta --no-git-tag-version",
42
+ "version:patch": "node ./scripts/bump-customer-patch.mjs",
41
43
  "version:release": "npm version patch --no-git-tag-version"
42
44
  },
43
45
  "dependencies": {
@@ -1,10 +0,0 @@
1
- /** Toolkit 项图标 */
2
- export declare const TOOLKIT_SVG: {
3
- readonly config: string;
4
- readonly script: string;
5
- readonly field: string;
6
- readonly data: string;
7
- readonly component: string;
8
- readonly rule: string;
9
- };
10
- export type ToolkitSvgKey = keyof typeof TOOLKIT_SVG;
@@ -1,10 +0,0 @@
1
- import { Doc } from '../../view/Doc';
2
- import { CommandPayloadMap } from '../types';
3
- import { CommandBase, PostCommandContext } from '../base/CommandBase';
4
- /**
5
- * 设置 Wsec 大小
6
- */
7
- export declare class SetWsecSize extends CommandBase {
8
- constructor(doc: Doc, payload: CommandPayloadMap['setWsecSize']);
9
- protected execute(): Promise<PostCommandContext>;
10
- }
@@ -1,2 +0,0 @@
1
- /** 将设计/初始化路径模板展开为运行时具体路径(含 [n] / [n_y][n_x]) */
2
- export declare function expandInitPathTemplates(templatePath: string, rawData: Record<string, any>): string[];
@@ -1,15 +0,0 @@
1
- import { Doc } from '../../view/Doc';
2
- /** 子表在 rawData 中的行数(含接口 { data: [] } 形态,未转数组时返回 0) */
3
- export declare function countSubTableDataRows(rawData: Record<string, unknown>, subFieldKey: string): number;
4
- /** 子表应展开的行数:已有数据行与版面槽位取较大值(动态表无数据时至少 1 行) */
5
- export declare function resolveSubTableRowCount(doc: Doc | undefined, subFieldKey: string, rawData: Record<string, unknown>): number;
6
- export declare function resolveSubTableRowIndexes(doc: Doc | undefined, subFieldKey: string, rawData: Record<string, unknown>, rowIndexes?: number[]): number[];
7
- export declare function mapTemplateToRowPaths(templatePath: string, rowIndexes: number[]): string[];
8
- export interface ExpandSubTableWidgetPathsOptions {
9
- rowIndexes?: number[];
10
- }
11
- /**
12
- * 子表 widget 路径展开:优先按版面/数据行数展开 [n];
13
- * rawData 尚无行时回退到版面槽位(动态表初始 {} / [])。
14
- */
15
- export declare function expandSubTableWidgetPaths(doc: Doc | undefined, templatePath: string, rawData: Record<string, unknown>, options?: ExpandSubTableWidgetPathsOptions): string[];
@@ -1,4 +0,0 @@
1
- import { Doc } from '../view/Doc';
2
- import { WidgetMeta } from './widget-meta';
3
- export declare function isESopField(widgetMeta?: WidgetMeta | null): boolean;
4
- export declare function openESopViewModal(doc: Doc, widgetMeta: WidgetMeta, runtimeValuePath: string): Promise<void>;
@@ -1 +0,0 @@
1
- export * from './of-inst-num';
@@ -1 +0,0 @@
1
- export { createOfInstNumEnricher, tryCollectOfInstNumTarget, type OfInstNumWidgetTarget, } from './of-inst-num-enricher';
@@ -1,23 +0,0 @@
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 {};
@@ -1,7 +0,0 @@
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[]>;
@@ -1,3 +0,0 @@
1
- export { openMaterialBalanceConsumeModal, closeMaterialBalanceConsumeModal, } from './open-consume-modal';
2
- export { fetchMaterialConsumeGroupProduct } from './fetch-material-consume-data';
3
- export type { MaterialConsumeModalRow } from './fetch-material-consume-data';
@@ -1,7 +0,0 @@
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,6 +0,0 @@
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;
@@ -1,25 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,3 +0,0 @@
1
- import { DocumentFactory } from '../../../../../../sdk/doc-runtime/factories/useDocumentFactory';
2
- /** 表单页面关闭或文档卸载时,关闭物料消耗弹框 */
3
- export declare function useMaterialBalanceConsumeModalCleanup(factory: DocumentFactory): void;
@@ -1,2 +0,0 @@
1
- import { Doc } from '../../../../../../core';
2
- export declare const handleQtyChange: (doc: Doc, subFieldKey: string) => void;
@@ -1,7 +0,0 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 变更预处理表条码解析规则(填报态) */
3
- export declare function changePretreatmentListParseRule(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subModelKey?: string;
7
- }): Promise<void>;
@@ -1,2 +0,0 @@
1
- export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +0,0 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗 */
3
- export declare function openPretreatmentListScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
@@ -1,2 +0,0 @@
1
- export { profile as pretreatmentListProfile } from './profile';
2
- export * from './actions';
@@ -1,45 +0,0 @@
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_"];
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,3 +0,0 @@
1
- import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "pretreatment-list";
3
- export declare const profile: BusinessSubTableProfile;
@@ -1,2 +0,0 @@
1
- import { RemoteSyncApplyContext, RemoteSyncApplyResult } from '../../../../runtime/runtime-handlers';
2
- export declare function resolvePretreatmentListRemoteSync(records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult;
@@ -1,25 +0,0 @@
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;
@@ -1,10 +0,0 @@
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>;
@@ -1,25 +0,0 @@
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>;
@@ -1,7 +0,0 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 变更委托灭菌批次表条码解析规则(填报态) */
3
- export declare function changeEntrustSterilBatchListParseRule(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subModelKey?: string;
7
- }): Promise<void>;
@@ -1,2 +0,0 @@
1
- export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +0,0 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗 */
3
- export declare function openEntrustSterilBatchListScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
@@ -1,2 +0,0 @@
1
- export { profile as entrustSterilBatchListProfile } from './profile';
2
- export * from './actions';
@@ -1,28 +0,0 @@
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_"];
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,3 +0,0 @@
1
- import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "entrust-steril-batch-list";
3
- export declare const profile: BusinessSubTableProfile;
@@ -1,2 +0,0 @@
1
- import { RemoteSyncApplyContext, RemoteSyncApplyResult } from '../../../../runtime/runtime-handlers';
2
- export declare function resolveEntrustSterilBatchListRemoteSync(records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult;
@@ -1,5 +0,0 @@
1
- import { Doc } from '../../../../../../core';
2
- /**
3
- * 生产批次号 清空其他字段
4
- */
5
- export declare function handleProductionContainerChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -1,8 +0,0 @@
1
- /**
2
- * 出入库明细表字段 key 统一定义
3
- */
4
- /** 单字段 key */
5
- export declare const F: {
6
- readonly warehouse: "warehouse_id_";
7
- };
8
- export type InventoryFieldKey = (typeof F)[keyof typeof F];
@@ -1,25 +0,0 @@
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,36 +0,0 @@
1
- import { IMaterialConsumeData } from '../../../../../types/material.type';
2
- interface UomConvertFieldMap {
3
- key: string;
4
- value?: string;
5
- formField?: string;
6
- formModelKey?: string;
7
- formSubModel?: number;
8
- formSubFieldKey?: string;
9
- }
10
- interface UomConvertRuleItem {
11
- id: string;
12
- expressionStr?: string;
13
- productId?: string;
14
- fieldMaps?: UomConvertFieldMap[];
15
- }
16
- interface ApplyUnitConversionOptions {
17
- rules: UomConvertRuleItem[];
18
- row: IMaterialConsumeData;
19
- mainData: Record<string, any>;
20
- /** 当前物料消耗子表字段 key */
21
- subFieldKey: string;
22
- }
23
- /**
24
- * 按配置顺序命中第一条单位转换规则,写回转换结果字段。
25
- * @returns 是否命中并成功写入
26
- */
27
- export declare function applyUnitConversionRules(options: ApplyUnitConversionOptions): Promise<boolean>;
28
- /** 从文档 config 读取单位转换规则列表 */
29
- export declare function getUnitConversionRulesFromDoc(doc: {
30
- model?: {
31
- document?: {
32
- config?: Record<string, any>;
33
- };
34
- };
35
- }): UomConvertRuleItem[];
36
- export {};
@@ -1,9 +0,0 @@
1
- import { ToolkitSvgKey } from '../../../../assets/svgs/toolkit';
2
- type __VLS_Props = {
3
- name: ToolkitSvgKey;
4
- size?: number;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
- size: number;
8
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
- export default _default;
@@ -1,9 +0,0 @@
1
- import { FIELD_TYPE } from '../../domain/field/field-type';
2
- interface BuildContextDefaultsPayload {
3
- paramsConfig?: Record<string, unknown>;
4
- materialNo?: string;
5
- defaultUserId?: string;
6
- defaultOrgId?: string;
7
- }
8
- export declare function buildContextDefaultsByFieldType(payload: BuildContextDefaultsPayload): Partial<Record<FIELD_TYPE, unknown>>;
9
- export {};
@@ -1,5 +0,0 @@
1
- import { WidgetNode } from '../../../canvas/types';
2
- /**
3
- * 签名规则校验
4
- */
5
- export declare const validateSignatureConfig: (widget: WidgetNode, result: any) => Promise<unknown>;
@@ -1,22 +0,0 @@
1
- export declare const sterilizationContainerColumns: ({
2
- field: string;
3
- type: string;
4
- minWidth: number;
5
- width: number;
6
- showOverflow: boolean;
7
- } | {
8
- title: string;
9
- field: string;
10
- minWidth: number;
11
- })[];
12
- export declare const bizMfgOrderColumns: ({
13
- field: string;
14
- type: string;
15
- minWidth: number;
16
- width: number;
17
- showOverflow: boolean;
18
- } | {
19
- title: string;
20
- field: string;
21
- minWidth: number;
22
- })[];
@@ -1,10 +0,0 @@
1
- import { SelectSourceDef } from '../../../../../../domain/table/types';
2
- import { SelectStrategy } from './selectStrategy';
3
- /** merge 后的下拉策略(Profile.selectSource 可覆盖为 biz + api) */
4
- export interface EffectiveSelectDropdownStrategy extends SelectStrategy {
5
- }
6
- /**
7
- * 将 Profile selectSource 覆盖到 fieldType 默认策略。
8
- * 只影响下拉数据源与列;不碰 `_lb_`。
9
- */
10
- export declare function mergeSelectStrategy(base: SelectStrategy, selectSource?: SelectSourceDef | null): EffectiveSelectDropdownStrategy;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,2 +0,0 @@
1
- import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
- export declare const manifest: FieldManifest;
@@ -1,8 +0,0 @@
1
- import { ActivePanelData } from '../../../../domain/active/active-types';
2
- import { Wtbl } from '../../../../core';
3
- type __VLS_Props = {
4
- widget: Wtbl;
5
- active: ActivePanelData;
6
- };
7
- 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
- export default _default;
@@ -1 +0,0 @@
1
- export declare const schema: import('../../../..').PanelSchema;
@@ -1,8 +0,0 @@
1
- import { ActivePanelData } from '../../../../domain/active/active-types';
2
- import { Wtbl } from '../../../../core';
3
- type __VLS_Props = {
4
- widget: Wtbl;
5
- active: ActivePanelData;
6
- };
7
- 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
- export default _default;
@@ -1 +0,0 @@
1
- export declare const schema: import('../../../..').PanelSchema;
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;