@gct-paas/word 0.2.18-beta.0 → 0.2.19-beta.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.
- package/dist/core/data/DataManager.d.ts +31 -5
- package/dist/core/data/initialization.d.ts +26 -0
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +11 -0
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +6 -2
- package/dist/domain/field/seal/seal-display.d.ts +2 -0
- package/dist/domain/table/business/check/check-table/runtime/map-check-table-item-infos.d.ts +3 -2
- package/dist/domain/table/business/check/check-table/runtime/prepare-check-table-init.d.ts +1 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +2 -1
- package/dist/domain/table/runtime/engines/init-load-engine.d.ts +2 -1
- package/dist/domain/table/runtime/engines/row-runtime-engine.d.ts +2 -2
- package/dist/domain/table/runtime/table-runtime.d.ts +3 -1
- package/dist/domain/table/types.d.ts +2 -2
- package/dist/index.es.js +1937 -1845
- package/dist/runtime/interface/render.d.ts +3 -1
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +0 -2
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +3 -10
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +2 -2
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +4 -1
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +3 -7
- package/dist/word.css +201 -210
- package/package.json +1 -1
- package/dist/runtime/renderer/dialogs/seal/seal-auth-dialog.vue.d.ts +0 -60
|
@@ -20,7 +20,9 @@ instanceId: string,
|
|
|
20
20
|
/** 组件实例列表(用于查找 widget 的 fieldMeta/props,供 label 派生) */
|
|
21
21
|
instances: any[],
|
|
22
22
|
/** 设计套件上下文(用于 getFieldManifest 和 loadFieldByKey) */
|
|
23
|
-
ctx: DesignSuiteContext
|
|
23
|
+
ctx: DesignSuiteContext,
|
|
24
|
+
/** 保存过的实例只准备参数映射的行模板,不再查询首次初始化的数据源。 */
|
|
25
|
+
initializeDataSources?: boolean) => Promise<{
|
|
24
26
|
paramMap: {};
|
|
25
27
|
dsRawData: {};
|
|
26
28
|
dsMap?: undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { SignInfo } from '../signature/logic';
|
|
2
1
|
import { ConfirmResult, SealStepContext } from './types';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
context: SealStepContext;
|
|
5
|
-
info: SignInfo;
|
|
6
4
|
onResult(result: ConfirmResult): void;
|
|
7
5
|
};
|
|
8
6
|
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>;
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { SignInfo } from '../signature/logic';
|
|
2
1
|
import { SealStamp } from '../../../../domain/field/seal/seal-value';
|
|
2
|
+
export type SealUser = Pick<SealStamp, 'sealUserId' | 'sealUserName'>;
|
|
3
3
|
export interface SealFlowContext {
|
|
4
4
|
sealId: string;
|
|
5
|
-
|
|
6
|
-
enableSignPassword?: number;
|
|
5
|
+
getCurrentUser(): SealUser;
|
|
7
6
|
signal?: AbortSignal;
|
|
8
7
|
isActive(): boolean;
|
|
9
8
|
}
|
|
10
9
|
export interface SealStepContext extends SealFlowContext {
|
|
11
10
|
registerInvalidate(invalidate: () => void): void;
|
|
12
11
|
}
|
|
13
|
-
export type AuthResult = {
|
|
14
|
-
action: 'next';
|
|
15
|
-
info: SignInfo;
|
|
16
|
-
} | {
|
|
17
|
-
action: 'cancel';
|
|
18
|
-
};
|
|
19
12
|
export type ConfirmResult = {
|
|
20
13
|
action: 'done';
|
|
21
14
|
stamp: SealStamp;
|
|
22
15
|
} | {
|
|
23
|
-
action: '
|
|
16
|
+
action: 'cancel';
|
|
24
17
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SignInfo } from '../signature/logic';
|
|
2
1
|
import { SealStamp } from '../../../../domain/field/seal/seal-value';
|
|
3
2
|
import { SealDetail } from './seal-api';
|
|
3
|
+
import { SealUser } from './types';
|
|
4
4
|
export interface SealConfirmDependencies {
|
|
5
5
|
sealId: string;
|
|
6
|
-
|
|
6
|
+
getCurrentUser(): SealUser;
|
|
7
7
|
isActive(): boolean;
|
|
8
8
|
fetchDetail(id: string): Promise<SealDetail>;
|
|
9
9
|
verifyPassword(request: {
|
|
@@ -29,6 +29,7 @@ export declare function prepareDocumentFieldContext(options: PrepareFieldContext
|
|
|
29
29
|
export interface PrepareRenderDataOptions {
|
|
30
30
|
fillModeType: DocModeType;
|
|
31
31
|
requestInfo: Execute['requestInfo'];
|
|
32
|
+
initializeValues?: boolean;
|
|
32
33
|
payload: IDocPayload;
|
|
33
34
|
materialNo: string;
|
|
34
35
|
query: Record<string, any>;
|
|
@@ -47,11 +48,13 @@ interface LoadDocumentInitMappingsOptions {
|
|
|
47
48
|
instances: any[];
|
|
48
49
|
payload: IDocPayload;
|
|
49
50
|
subTableInfoList: any[];
|
|
51
|
+
requestInfo: Execute['requestInfo'];
|
|
52
|
+
initializeValues?: boolean;
|
|
50
53
|
}
|
|
51
54
|
/** 加载参数映射与自定义数据源 */
|
|
52
55
|
export declare function loadDocumentInitMappings(options: LoadDocumentInitMappingsOptions): Promise<Record<string, unknown>>;
|
|
53
56
|
/**
|
|
54
|
-
*
|
|
57
|
+
* 首次填报仅填 undefined(source: hydrate);保存过的实例仅保留新增行的参数映射模板。
|
|
55
58
|
*/
|
|
56
59
|
export declare function applyDocumentInitMappings(doc: Doc, initMap: Record<string, unknown>): {
|
|
57
60
|
pathCount: number;
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { FormInstBomResponse } from '@gct-paas/api/apaas';
|
|
2
2
|
import { IBomEntry } from '../../../../../domain/table/business/material/types';
|
|
3
|
+
import { FieldMeta } from '../../../../../capabilities/model-field-runtime';
|
|
3
4
|
/** 物料消耗对象字段信息 */
|
|
4
5
|
export interface IMaterialConsumeObjectInfo {
|
|
5
6
|
/** 对象字段key */
|
|
6
7
|
objectField: string;
|
|
7
8
|
/** 对象字段名称(仅用于展示) */
|
|
8
9
|
objectFieldName?: string;
|
|
9
|
-
/** 子表字段key */
|
|
10
|
-
subFields?: Record<string, {
|
|
11
|
-
used: boolean;
|
|
12
|
-
key: string;
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}>;
|
|
15
10
|
}
|
|
16
11
|
/** 物料消耗对象中参与提交数量校验的上料数量字段。 */
|
|
17
|
-
export declare function getObjectBomQtyFieldKeys(objectFieldList
|
|
12
|
+
export declare function getObjectBomQtyFieldKeys(objectFieldList: readonly IMaterialConsumeObjectInfo[], modelFields: readonly FieldMeta[]): string[];
|
|
18
13
|
export declare function resolveObjectBomEntry(opts: {
|
|
19
14
|
formInstBom: FormInstBomResponse;
|
|
20
15
|
belongingObject: string;
|
|
@@ -66,6 +61,7 @@ export declare function getObjectBomDropdownQuery(fieldType: string | undefined,
|
|
|
66
61
|
export declare function validateObjectBomQtyOnSubmit(opts: {
|
|
67
62
|
formState: Record<string, any>;
|
|
68
63
|
objectFieldList?: IMaterialConsumeObjectInfo[];
|
|
64
|
+
modelFields: readonly FieldMeta[];
|
|
69
65
|
formInstBom?: FormInstBomResponse | null;
|
|
70
66
|
}): Promise<{
|
|
71
67
|
field: string;
|