jgy-public-component 0.0.45 → 0.0.46
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/components/JApprovalFlow/JApprovalFlow.d.ts +46 -0
- package/dist/components/JApprovalFlow/apiPaths.d.ts +4 -0
- package/dist/components/JApprovalFlow/index.d.ts +2 -0
- package/dist/components/JDocDetail/index.d.ts +1 -1
- package/dist/components/JDocDetail/registry.d.ts +2 -0
- package/dist/components/JDocDetail/types.d.ts +5 -0
- package/dist/components/JImportData/JImportData.d.ts +120 -0
- package/dist/components/JImportData/index.d.ts +2 -0
- package/dist/components/JImportData/types.d.ts +65 -0
- package/dist/components/JImportData/utils.d.ts +49 -0
- package/dist/components/JImportExcel/JImportExcel.d.ts +8 -8
- package/dist/components/JSearchInputDialog/JSearchInputDialog.d.ts +9 -9
- package/dist/directives/clickLock.d.ts +5 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +12283 -11188
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
process_code: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
business_key: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
request: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
}>, {
|
|
16
|
+
logs: Ref<any[], any[]>;
|
|
17
|
+
raw: Ref<any, any>;
|
|
18
|
+
loading: Ref<boolean, boolean>;
|
|
19
|
+
fetchLogs: () => Promise<void>;
|
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
|
+
success: (...args: any[]) => void;
|
|
22
|
+
loaded: (...args: any[]) => void;
|
|
23
|
+
error: (...args: any[]) => void;
|
|
24
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
|
+
process_code: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
business_key: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
request: {
|
|
34
|
+
type: FunctionConstructor;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{
|
|
38
|
+
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
process_code: string;
|
|
43
|
+
business_key: string;
|
|
44
|
+
request: Function;
|
|
45
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* WMS 可直接用 wmsDocDetailComponents 作为 components。
|
|
11
11
|
*/
|
|
12
12
|
export type { DocDetailType, DocDetailAdapters, DocDetailRegistryItem, DocDetailComponents, CreateDocDetailOptions, DocDetailViewOptions, PurchaseOrderTabName, } from './types';
|
|
13
|
-
export { createDocDetail, registerDocDetail, getDocDetailRegistry, getDocDetailAdapters, getDocDetailViewOptions, getDocDetailEntry, isDocDetailInitialized, } from './registry';
|
|
13
|
+
export { createDocDetail, registerDocDetail, getDocDetailRegistry, getDocDetailAdapters, getDocDetailViewOptions, getApprovalProcessCode, hasApprovalFlow, getDocDetailEntry, isDocDetailInitialized, } from './registry';
|
|
14
14
|
export { useDocDetailStore } from './store';
|
|
15
15
|
export { provideDocRequest, setDocRequest, getDocRequest } from './request';
|
|
16
16
|
export type { JDocRequestFn } from './request';
|
|
@@ -19,6 +19,8 @@ export declare function registerDocDetail(options: Partial<CreateDocDetailOption
|
|
|
19
19
|
export declare function getDocDetailRegistry(): NormalizedRegistry;
|
|
20
20
|
export declare function getDocDetailAdapters(): DocDetailAdapters;
|
|
21
21
|
export declare function getDocDetailViewOptions(): DocDetailViewOptions;
|
|
22
|
+
export declare function getApprovalProcessCode(type: string): string;
|
|
23
|
+
export declare function hasApprovalFlow(type: string): boolean;
|
|
22
24
|
export declare function isDocDetailInitialized(): boolean;
|
|
23
25
|
export declare function getDocDetailEntry(type: string): {
|
|
24
26
|
component: Component;
|
|
@@ -123,6 +123,11 @@ export type DocDetailViewOptions = {
|
|
|
123
123
|
purchase?: {
|
|
124
124
|
tabOrder?: PurchaseOrderTabName[];
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* 单据 type → 审批流程编码。有非空编码才展示右侧审批列,否则单列铺满。
|
|
128
|
+
* 会与库内默认值合并;传空字符串可关掉某类单据的审批列。
|
|
129
|
+
*/
|
|
130
|
+
approvalProcessCodes?: Record<string, string>;
|
|
126
131
|
};
|
|
127
132
|
export type CreateDocDetailOptions = {
|
|
128
133
|
/** type → 详情组件 */
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { JImportDone, JImportHeader, JImportMode, JImportResult } from './types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
|
+
modelValue: PropType<boolean>;
|
|
6
|
+
title: {
|
|
7
|
+
type: PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
headers: {
|
|
11
|
+
type: PropType<JImportHeader[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
moduleName: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
getHeadersApi: {
|
|
19
|
+
type: PropType<() => Promise<unknown>>;
|
|
20
|
+
};
|
|
21
|
+
downloadTemplateApi: {
|
|
22
|
+
type: PropType<() => Promise<unknown>>;
|
|
23
|
+
};
|
|
24
|
+
importApi: {
|
|
25
|
+
type: PropType<(data: FormData) => Promise<unknown>>;
|
|
26
|
+
};
|
|
27
|
+
modes: {
|
|
28
|
+
type: PropType<JImportMode[]>;
|
|
29
|
+
default: () => string[];
|
|
30
|
+
};
|
|
31
|
+
maxSizeMb: {
|
|
32
|
+
type: PropType<number>;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
maxRows: {
|
|
36
|
+
type: PropType<number>;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
maxCols: {
|
|
40
|
+
type: PropType<number>;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
templateFileName: {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
}>, {
|
|
48
|
+
setResult: JImportDone;
|
|
49
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
|
+
close: () => void;
|
|
51
|
+
success: (result: JImportResult) => void;
|
|
52
|
+
import: (payload: {
|
|
53
|
+
mode: JImportMode;
|
|
54
|
+
file: File;
|
|
55
|
+
fileName: string;
|
|
56
|
+
rows: Record<string, unknown>[];
|
|
57
|
+
}, done: JImportDone) => void;
|
|
58
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
59
|
+
modelValue: PropType<boolean>;
|
|
60
|
+
title: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
headers: {
|
|
65
|
+
type: PropType<JImportHeader[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
moduleName: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
getHeadersApi: {
|
|
73
|
+
type: PropType<() => Promise<unknown>>;
|
|
74
|
+
};
|
|
75
|
+
downloadTemplateApi: {
|
|
76
|
+
type: PropType<() => Promise<unknown>>;
|
|
77
|
+
};
|
|
78
|
+
importApi: {
|
|
79
|
+
type: PropType<(data: FormData) => Promise<unknown>>;
|
|
80
|
+
};
|
|
81
|
+
modes: {
|
|
82
|
+
type: PropType<JImportMode[]>;
|
|
83
|
+
default: () => string[];
|
|
84
|
+
};
|
|
85
|
+
maxSizeMb: {
|
|
86
|
+
type: PropType<number>;
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
maxRows: {
|
|
90
|
+
type: PropType<number>;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
maxCols: {
|
|
94
|
+
type: PropType<number>;
|
|
95
|
+
default: number;
|
|
96
|
+
};
|
|
97
|
+
templateFileName: {
|
|
98
|
+
type: PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
}>> & Readonly<{
|
|
102
|
+
onClose?: (() => any) | undefined;
|
|
103
|
+
onSuccess?: ((result: JImportResult) => any) | undefined;
|
|
104
|
+
onImport?: ((payload: {
|
|
105
|
+
mode: JImportMode;
|
|
106
|
+
file: File;
|
|
107
|
+
fileName: string;
|
|
108
|
+
rows: Record<string, unknown>[];
|
|
109
|
+
}, done: JImportDone) => any) | undefined;
|
|
110
|
+
}>, {
|
|
111
|
+
title: string;
|
|
112
|
+
headers: JImportHeader[];
|
|
113
|
+
moduleName: string;
|
|
114
|
+
modes: JImportMode[];
|
|
115
|
+
maxSizeMb: number;
|
|
116
|
+
maxRows: number;
|
|
117
|
+
maxCols: number;
|
|
118
|
+
templateFileName: string;
|
|
119
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
120
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** 导入模式:仅新增 / 仅更新 / 新增和更新 */
|
|
2
|
+
export type JImportMode = 'insert' | 'update' | 'upsert';
|
|
3
|
+
/** 标准模板列:label 为 Excel 表头,prop 为解析后对象字段 */
|
|
4
|
+
export interface JImportHeader {
|
|
5
|
+
label: string;
|
|
6
|
+
prop: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface JImportPayload {
|
|
10
|
+
mode: JImportMode;
|
|
11
|
+
/** 原始上传文件,业务侧可直接 FormData 提交 */
|
|
12
|
+
file: File;
|
|
13
|
+
fileName: string;
|
|
14
|
+
/** 仅在传入 headers / getHeadersApi 时前端解析;否则为空数组 */
|
|
15
|
+
rows: Record<string, unknown>[];
|
|
16
|
+
}
|
|
17
|
+
export interface JImportResult {
|
|
18
|
+
successCount: number;
|
|
19
|
+
failCount: number;
|
|
20
|
+
skipCount: number;
|
|
21
|
+
failUrl?: string;
|
|
22
|
+
skipUrl?: string;
|
|
23
|
+
successUrl?: string;
|
|
24
|
+
/** code === 1 时展示全成功页,否则有 data 时展示失败/未处理页 */
|
|
25
|
+
fullSuccess?: boolean;
|
|
26
|
+
failRows?: Record<string, unknown>[];
|
|
27
|
+
skipRows?: Record<string, unknown>[];
|
|
28
|
+
/** 有值时停留在填写态并提示,不切结果页 */
|
|
29
|
+
errorMessage?: string;
|
|
30
|
+
}
|
|
31
|
+
export type JImportDone = (result: JImportResult) => void;
|
|
32
|
+
export type JImportGetHeadersApi = () => Promise<unknown>;
|
|
33
|
+
/** 下载标准模板:返回 Blob,或 { data: Blob }(如 responseType: 'blob' 的 axios 响应) */
|
|
34
|
+
export type JImportDownloadTemplateApi = () => Promise<unknown>;
|
|
35
|
+
/** 点击导入:传入 FormData(file + import_mode),与业务页 importXxx(formData) 一致 */
|
|
36
|
+
export type JImportApi = (data: FormData) => Promise<unknown>;
|
|
37
|
+
export interface JImportDataProps {
|
|
38
|
+
/** 弹窗标题 */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** 用于模板 / 失败 / 未处理文件名 */
|
|
41
|
+
moduleName?: string;
|
|
42
|
+
/** 可选。传入后会在前端按表头解析 rows;不传则只保留文件 */
|
|
43
|
+
headers?: JImportHeader[];
|
|
44
|
+
/** 可选。打开弹窗时拉取表头(headers 为空才请求) */
|
|
45
|
+
getHeadersApi?: JImportGetHeadersApi;
|
|
46
|
+
/** 从后端下载标准模板,不传则「标准模板」不可点 */
|
|
47
|
+
downloadTemplateApi?: JImportDownloadTemplateApi;
|
|
48
|
+
/** 点击导入时请求的接口,不传则走 @import 事件 */
|
|
49
|
+
importApi?: JImportApi;
|
|
50
|
+
/** 可选导入模式,默认三种都有 */
|
|
51
|
+
modes?: JImportMode[];
|
|
52
|
+
/** 文件大小上限 MB */
|
|
53
|
+
maxSizeMb?: number;
|
|
54
|
+
/** 数据行上限(不含表头) */
|
|
55
|
+
maxRows?: number;
|
|
56
|
+
/** 列数上限 */
|
|
57
|
+
maxCols?: number;
|
|
58
|
+
/** 标准模板保存的文件名,默认 `${moduleName}导入模板.xlsx` */
|
|
59
|
+
templateFileName?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface JImportDataEmits {
|
|
62
|
+
import: [payload: JImportPayload, done: JImportDone];
|
|
63
|
+
success: [result: JImportResult];
|
|
64
|
+
close: [];
|
|
65
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { JImportHeader, JImportResult } from './types';
|
|
2
|
+
|
|
3
|
+
export declare function unwrapHeaders(res: unknown): JImportHeader[];
|
|
4
|
+
export declare function formatStamp(date?: Date): string;
|
|
5
|
+
export interface JImportPreviewColumn {
|
|
6
|
+
key: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
export interface JImportPreviewSheet {
|
|
10
|
+
name: string;
|
|
11
|
+
columns: JImportPreviewColumn[];
|
|
12
|
+
rows: Record<string, string>[];
|
|
13
|
+
}
|
|
14
|
+
/** 点击文件名时在弹窗内预览,避免浏览器把 xlsx 当下载 */
|
|
15
|
+
export declare function previewImportFile(file: File, maxPreviewRows?: number): Promise<{
|
|
16
|
+
sheets: JImportPreviewSheet[];
|
|
17
|
+
error?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function parseImportFile(file: File, headers: JImportHeader[], limits: {
|
|
20
|
+
maxRows: number;
|
|
21
|
+
maxCols: number;
|
|
22
|
+
}): Promise<{
|
|
23
|
+
rows: Record<string, unknown>[];
|
|
24
|
+
error?: string;
|
|
25
|
+
}>;
|
|
26
|
+
/** 取出接口返回的 Blob:兼容直接返回 Blob 或 { data: Blob } */
|
|
27
|
+
export declare function unwrapBlob(res: unknown): Blob | null;
|
|
28
|
+
/** responseType 为 blob 时,后端报错会以 JSON Blob 返回,读出其中的 msg */
|
|
29
|
+
export declare function readBlobError(blob: Blob): Promise<string | null>;
|
|
30
|
+
export declare function saveBlob(blob: Blob, fileName: string): void;
|
|
31
|
+
export declare function downloadResultExcel(options: {
|
|
32
|
+
headers: JImportHeader[];
|
|
33
|
+
rows: Record<string, unknown>[];
|
|
34
|
+
reasonKeys: string[];
|
|
35
|
+
reasonLabel: string;
|
|
36
|
+
fileName: string;
|
|
37
|
+
}): void;
|
|
38
|
+
export declare function emptyResult(): JImportResult;
|
|
39
|
+
/** 点击结果页链接,直接打开接口返回的 Excel 地址 */
|
|
40
|
+
export declare function openExcelUrl(url: string): void;
|
|
41
|
+
/**
|
|
42
|
+
* 解析导入接口:
|
|
43
|
+
* code === 1 → 全成功
|
|
44
|
+
* code !== 1 且有 data → 失败/未处理结果页
|
|
45
|
+
* data: { success: { count, url }, fail: { count, url }, unprocessed: { count, url } }
|
|
46
|
+
*/
|
|
47
|
+
export declare function parseImportApiResponse(res: unknown): JImportResult;
|
|
48
|
+
/** 拦截器 reject 时若挂了 raw,从中解析导入结果 */
|
|
49
|
+
export declare function parseImportApiError(error: unknown): JImportResult;
|
|
@@ -6,14 +6,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
6
6
|
type: PropType<string>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
|
-
getFieldListApi: {
|
|
10
|
-
type: PropType<ApiFn>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
9
|
importApi: {
|
|
14
10
|
type: PropType<(data: Record<string, any>[]) => Promise<any>>;
|
|
15
11
|
required: true;
|
|
16
12
|
};
|
|
13
|
+
getFieldListApi: {
|
|
14
|
+
type: PropType<ApiFn>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
17
|
excludeFields: {
|
|
18
18
|
type: PropType<string[]>;
|
|
19
19
|
default: () => string[];
|
|
@@ -26,14 +26,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
26
26
|
type: PropType<string>;
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
|
-
getFieldListApi: {
|
|
30
|
-
type: PropType<ApiFn>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
29
|
importApi: {
|
|
34
30
|
type: PropType<(data: Record<string, any>[]) => Promise<any>>;
|
|
35
31
|
required: true;
|
|
36
32
|
};
|
|
33
|
+
getFieldListApi: {
|
|
34
|
+
type: PropType<ApiFn>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
37
|
excludeFields: {
|
|
38
38
|
type: PropType<string[]>;
|
|
39
39
|
default: () => string[];
|
|
@@ -12,6 +12,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
12
12
|
type: PropType<string>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
|
+
rows: {
|
|
16
|
+
type: PropType<number>;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
15
19
|
options: {
|
|
16
20
|
type: PropType<SearchInputOption[]>;
|
|
17
21
|
default: () => never[];
|
|
@@ -32,10 +36,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
32
36
|
type: PropType<string | number>;
|
|
33
37
|
default: string;
|
|
34
38
|
};
|
|
35
|
-
rows: {
|
|
36
|
-
type: PropType<number>;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
39
|
textareaPlaceholder: {
|
|
40
40
|
type: PropType<string>;
|
|
41
41
|
default: string;
|
|
@@ -62,6 +62,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
62
62
|
type: PropType<string>;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
|
+
rows: {
|
|
66
|
+
type: PropType<number>;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
65
69
|
options: {
|
|
66
70
|
type: PropType<SearchInputOption[]>;
|
|
67
71
|
default: () => never[];
|
|
@@ -82,10 +86,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
82
86
|
type: PropType<string | number>;
|
|
83
87
|
default: string;
|
|
84
88
|
};
|
|
85
|
-
rows: {
|
|
86
|
-
type: PropType<number>;
|
|
87
|
-
default: number;
|
|
88
|
-
};
|
|
89
89
|
textareaPlaceholder: {
|
|
90
90
|
type: PropType<string>;
|
|
91
91
|
default: string;
|
|
@@ -100,12 +100,12 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
100
100
|
}>, {
|
|
101
101
|
placeholder: string;
|
|
102
102
|
width: string;
|
|
103
|
+
rows: number;
|
|
103
104
|
options: SearchInputOption[];
|
|
104
105
|
selectWidth: string;
|
|
105
106
|
separator: string;
|
|
106
107
|
dialogTitle: string;
|
|
107
108
|
dialogWidth: string | number;
|
|
108
|
-
rows: number;
|
|
109
109
|
textareaPlaceholder: string;
|
|
110
110
|
clearOnTypeChange: boolean;
|
|
111
111
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { JIconRender } from './components/JIconRender';
|
|
|
5
5
|
import { JSearchHeader } from './components/JSearchHeader';
|
|
6
6
|
import { JListSearchHeader } from './components/JListSearchHeader';
|
|
7
7
|
import { JImportExcel } from './components/JImportExcel';
|
|
8
|
+
import { JImportData } from './components/JImportData';
|
|
8
9
|
import { JSidebar, JSideMenuItem } from './components/JSidebar';
|
|
9
10
|
import { JAdminLayout } from './components/JAdminLayout';
|
|
10
11
|
import { JProductDetailDialog, JSkuLink, ProductDetailHost } from './components/JProductDetail';
|
|
@@ -14,19 +15,22 @@ import { JSupplierCycleSelect, JSupplierCycleDisplay } from './components/JSuppl
|
|
|
14
15
|
import { JProductSelectDialog } from './components/JProductSelectDialog';
|
|
15
16
|
import { DocNoLink, DocDetailHost } from './components/JDocDetail';
|
|
16
17
|
import { JRelatedDocs } from './components/JRelatedDocs';
|
|
18
|
+
import { JApprovalFlow } from './components/JApprovalFlow';
|
|
17
19
|
|
|
18
20
|
declare const _default: {
|
|
19
21
|
install: (app: App) => void;
|
|
20
22
|
};
|
|
21
23
|
export default _default;
|
|
22
|
-
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JSupplierCycleSelect, JSupplierCycleDisplay, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
24
|
+
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JImportData, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JSupplierCycleSelect, JSupplierCycleDisplay, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, JApprovalFlow, };
|
|
23
25
|
export { provideRequest, getRequest, setRequest, useInjectedRequest, J_REQUEST_KEY, } from './request';
|
|
24
26
|
export type { JRequestFn } from './request';
|
|
25
27
|
export { useProductDetailDialog, useProductDetailStore, provideProductRequest, resolveProductRequest, useInjectedProductRequest, J_PRODUCT_REQUEST_KEY, } from './components/JProductDetail';
|
|
26
|
-
export { provideDocRequest, setDocRequest, getDocRequest, createDocDetail, registerDocDetail, getDocDetailAdapters, getDocDetailViewOptions, getDocDetailEntry, getDocDetailRegistry, isDocDetailInitialized, useDocDetailStore, wmsDocDetailComponents, ReceiptOrderDetailView, QcOrderDetailView, InboundOrderDetailView, PutawayOrderDetailView, DeliveryOrderDetailView, TransferOrderDetailView, WorkOrderDetailView, AbnormalOrderDetailView, PaymentRequestDetailView, ReturnOrderDetailView, CostExpenseDetailView, ReceiptVoucherDetailView, PurchaseOrderDetailView, PurchasePlanDetailView, PurchaseContractDetailView, DeliveryDocDetailView, StockTakeOrderDetailView, PackingTaskDetailView, TransportOrderDetailView, } from './components/JDocDetail';
|
|
28
|
+
export { provideDocRequest, setDocRequest, getDocRequest, createDocDetail, registerDocDetail, getDocDetailAdapters, getDocDetailViewOptions, getApprovalProcessCode, hasApprovalFlow, getDocDetailEntry, getDocDetailRegistry, isDocDetailInitialized, useDocDetailStore, wmsDocDetailComponents, ReceiptOrderDetailView, QcOrderDetailView, InboundOrderDetailView, PutawayOrderDetailView, DeliveryOrderDetailView, TransferOrderDetailView, WorkOrderDetailView, AbnormalOrderDetailView, PaymentRequestDetailView, ReturnOrderDetailView, CostExpenseDetailView, ReceiptVoucherDetailView, PurchaseOrderDetailView, PurchasePlanDetailView, PurchaseContractDetailView, DeliveryDocDetailView, StockTakeOrderDetailView, PackingTaskDetailView, TransportOrderDetailView, } from './components/JDocDetail';
|
|
27
29
|
export { createRelatedDocs, registerRelatedDocs, getRelatedListAdapter, getRelatedTableComponent, getRelatedDocsTableComponents, isRelatedDocsInitialized, RelatedDocSubTabs, RelatedDocNoCopy, RelatedDocPanel, RelatedReceiptOrderTable, RelatedQcOrderTable, RelatedInboundOrderTable, RelatedPutawayOrderTable, RelatedPurchaseOrderTable, RelatedPurchasePlanTable, RelatedDeliveryDocTable, RelatedProcessingOrderTable, RelatedReturnOrderTable, RelatedAbnormalOrderTable, RelatedPaymentRequestTable, RelatedReceiptVoucherTable, RelatedDeclarationTable, RelatedShipmentOrderTable, flattenOrderItems, sumOrderItemField, useRelatedCollapseExpand, parseListResponse, parseListTotal, } from './components/JRelatedDocs';
|
|
28
30
|
export { toSnakeCase, toCamelCase, pick, omit, deepClone, filterEmpty, flatten, unflatten, toTableColumns, checkBtnPermission, provideBtnPermission, useInjectedBtnPermission, useInjectedBtnPermissions, J_BTN_PERMISSION_KEY, J_BTN_PERMISSIONS_KEY, isAllStatusTab, resolveListStatusParam, toTabName, getAllTabName, syncActiveTabIfAll, buildStatusCountLookup, buildFallbackStatusTabs, unwrapStatusCountList, mapStatusCountToTabs, exportStyledExcel, } from './utils';
|
|
29
31
|
export { useBtnPermissionGate } from './composables/useBtnPermissionGate';
|
|
32
|
+
export { vClickLock } from './directives';
|
|
33
|
+
export type { ClickLockValue } from './directives';
|
|
30
34
|
export type { BtnPermissionInput, BtnPermissionMode, BtnPermissionChecker, StatusCountItem, StatusCountLookup, StatusTabListItem, StatusTabItem, StyledExportOptions, } from './utils';
|
|
31
35
|
export { createRouterGuard, buildRouteTree, transformBackendRoutes, findFirstAllowedRoute, getComponentImport } from './router';
|
|
32
36
|
export type { BackendRoute, RouteStoreAdapter, PermissionStoreAdapter, UserStoreAdapter, RouterGuardOptions } from './router';
|
|
@@ -36,6 +40,7 @@ export type { JIconRenderProps } from './components/JIconRender';
|
|
|
36
40
|
export type { JSearchHeaderProps } from './components/JSearchHeader';
|
|
37
41
|
export type { JListSearchHeaderProps } from './components/JListSearchHeader';
|
|
38
42
|
export type { JImportExcelProps, ApiFn } from './components/JImportExcel';
|
|
43
|
+
export type { JImportDataProps, JImportDataEmits, JImportHeader, JImportMode, JImportPayload, JImportResult, JImportDone, JImportGetHeadersApi, JImportDownloadTemplateApi, JImportApi, } from './components/JImportData';
|
|
39
44
|
export type { SidebarMenuItem, JSidebarProps, JSideMenuItemProps } from './components/JSidebar';
|
|
40
45
|
export type { AdminLayoutMenuItem, JAdminLayoutProps } from './components/JAdminLayout';
|
|
41
46
|
export type { JProductDetailDialogProps, JSkuLinkProps, JProductRequestFn, JProductRequestConfig, } from './components/JProductDetail';
|
|
@@ -45,3 +50,4 @@ export type { JSupplierCycleSelectProps, JSupplierCycleSelectValue, JSupplierCyc
|
|
|
45
50
|
export type { JProductSelectDialogProps, JProductSelectFetchApi, JProductSelectListResult, } from './components/JProductSelectDialog';
|
|
46
51
|
export type { DocDetailType, DocDetailAdapters, DocDetailRegistryItem, DocDetailComponents, CreateDocDetailOptions, DocDetailViewOptions, PurchaseOrderTabName, JDocRequestFn, } from './components/JDocDetail';
|
|
47
52
|
export type { RelatedListAdapter, RelatedDocTypeItem, CreateRelatedDocsOptions, RelatedDocsContainerProps, } from './components/JRelatedDocs';
|
|
53
|
+
export { APPROVAL_FLOW_LOGS_URL, APPROVAL_AUDIT_URL } from './components/JApprovalFlow';
|