jgy-public-component 0.0.38 → 0.0.39
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/JActionLogPanel/JActionLogPanel.d.ts +43 -0
- package/dist/components/JActionLogPanel/index.d.ts +2 -0
- package/dist/components/JActionLogPanel/types.d.ts +10 -0
- package/dist/components/JButton/JButton.d.ts +2 -2
- package/dist/components/JDocDetail/types.d.ts +14 -1
- package/dist/components/JDocDetail/views/TransferOrderDetailView.d.ts +2 -0
- package/dist/components/JProductDetail/JProductDetailDialog.d.ts +1 -1
- package/dist/components/JProductSelectDialog/JProductSelectDialog.d.ts +9 -9
- package/dist/components/JRemoteSelect/JRemoteSelect.d.ts +4 -4
- package/dist/components/JSearchInputDialog/JSearchInputDialog.d.ts +5 -5
- package/dist/index.js +5521 -5320
- 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,43 @@
|
|
|
1
|
+
import { ActionLogListFetcher } from './types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
module: string;
|
|
6
|
+
traceId?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
fetchList?: ActionLogListFetcher;
|
|
9
|
+
}>, {
|
|
10
|
+
traceId: string;
|
|
11
|
+
active: boolean;
|
|
12
|
+
}>>, {
|
|
13
|
+
refresh: () => Promise<void>;
|
|
14
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
module: string;
|
|
16
|
+
traceId?: string;
|
|
17
|
+
active?: boolean;
|
|
18
|
+
fetchList?: ActionLogListFetcher;
|
|
19
|
+
}>, {
|
|
20
|
+
traceId: string;
|
|
21
|
+
active: boolean;
|
|
22
|
+
}>>> & Readonly<{}>, {
|
|
23
|
+
traceId: string;
|
|
24
|
+
active: boolean;
|
|
25
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type ActionLogListParams = {
|
|
2
|
+
module: string;
|
|
3
|
+
trace_id: string;
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
type?: string;
|
|
7
|
+
start_time?: string;
|
|
8
|
+
end_time?: string;
|
|
9
|
+
};
|
|
10
|
+
export type ActionLogListFetcher = (params: ActionLogListParams) => Promise<any>;
|
|
@@ -31,10 +31,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
31
31
|
}>>> & Readonly<{
|
|
32
32
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
size: ButtonSize;
|
|
35
34
|
type: ButtonType;
|
|
36
|
-
disabled: boolean;
|
|
37
35
|
loading: boolean;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
size: ButtonSize;
|
|
38
38
|
plain: boolean;
|
|
39
39
|
round: boolean;
|
|
40
40
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
+
import { ActionLogListParams } from '../JActionLogPanel/types';
|
|
2
3
|
|
|
3
4
|
/** 单据类型:业务可扩展任意 string */
|
|
4
5
|
export type DocDetailType = string;
|
|
@@ -15,6 +16,18 @@ export type DocDetailAdapters = {
|
|
|
15
16
|
getPutawayDetail?: (orderNo: string) => Promise<any>;
|
|
16
17
|
getDeliveryDetail?: (orderNo: string) => Promise<any>;
|
|
17
18
|
getTransferDetail?: (orderNo: string) => Promise<any>;
|
|
19
|
+
/** 操作日志分页列表(module + trace_id) */
|
|
20
|
+
getActionLogList?: (params: ActionLogListParams) => Promise<any>;
|
|
21
|
+
/** 调拨单:完成拣货 */
|
|
22
|
+
completePickingTransferOrder?: (transferOrderNo: string) => Promise<any>;
|
|
23
|
+
/** 调拨单:确认调拨 */
|
|
24
|
+
confirmTransferOrder?: (transferOrderNo: string) => Promise<any>;
|
|
25
|
+
/** 调拨单:删除 */
|
|
26
|
+
deleteTransferOrder?: (transferOrderNo: string) => Promise<any>;
|
|
27
|
+
/** 调拨单:待收货态打开收货确认(由业务项目实现,如弹 ReceiptConfirm) */
|
|
28
|
+
openTransferReceipt?: (receiptOrderNo: string) => void;
|
|
29
|
+
/** 调拨单详情内操作成功后刷新列表(可选) */
|
|
30
|
+
onTransferDetailRefresh?: () => void;
|
|
18
31
|
getProcessingDetail?: (orderNo: string) => Promise<any>;
|
|
19
32
|
/**
|
|
20
33
|
* SCM 送货单详情,入参 delivery_no
|
|
@@ -78,7 +91,7 @@ export type DocDetailAdapters = {
|
|
|
78
91
|
*/
|
|
79
92
|
getPurchaseContractDetail?: (contractNo: string) => Promise<any>;
|
|
80
93
|
/** 业务方可自行扩展 key */
|
|
81
|
-
[key: string]: ((...args: any[]) =>
|
|
94
|
+
[key: string]: ((...args: any[]) => any) | undefined;
|
|
82
95
|
};
|
|
83
96
|
/** 单个 type 的注册项 */
|
|
84
97
|
export type DocDetailRegistryItem = {
|
|
@@ -4,10 +4,12 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntim
|
|
|
4
4
|
transferOrderNo: string;
|
|
5
5
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
6
6
|
"update:modelValue": (val: boolean) => void;
|
|
7
|
+
refresh: () => void;
|
|
7
8
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
8
9
|
modelValue: boolean;
|
|
9
10
|
transferOrderNo: string;
|
|
10
11
|
}>>> & Readonly<{
|
|
12
|
+
onRefresh?: (() => any) | undefined;
|
|
11
13
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
12
14
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
13
15
|
export default _default;
|
|
@@ -19,8 +19,8 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
19
19
|
"onUpdate:visible"?: ((args_0: boolean) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
21
|
type: "sku" | "spu";
|
|
22
|
-
id: number | string;
|
|
23
22
|
code: string;
|
|
23
|
+
id: number | string;
|
|
24
24
|
visible: boolean;
|
|
25
25
|
request: JProductRequestFn;
|
|
26
26
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -23,6 +23,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
23
23
|
type: PropType<string>;
|
|
24
24
|
default: string;
|
|
25
25
|
};
|
|
26
|
+
pageSizes: {
|
|
27
|
+
type: PropType<number[]>;
|
|
28
|
+
default: () => number[];
|
|
29
|
+
};
|
|
26
30
|
teleported: {
|
|
27
31
|
type: PropType<boolean>;
|
|
28
32
|
default: boolean;
|
|
@@ -34,10 +38,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
34
38
|
type: PropType<string>;
|
|
35
39
|
default: string;
|
|
36
40
|
};
|
|
37
|
-
pageSizes: {
|
|
38
|
-
type: PropType<number[]>;
|
|
39
|
-
default: () => number[];
|
|
40
|
-
};
|
|
41
41
|
fetchApi: {
|
|
42
42
|
type: PropType<JProductSelectFetchApi>;
|
|
43
43
|
required: true;
|
|
@@ -81,6 +81,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
81
81
|
type: PropType<string>;
|
|
82
82
|
default: string;
|
|
83
83
|
};
|
|
84
|
+
pageSizes: {
|
|
85
|
+
type: PropType<number[]>;
|
|
86
|
+
default: () => number[];
|
|
87
|
+
};
|
|
84
88
|
teleported: {
|
|
85
89
|
type: PropType<boolean>;
|
|
86
90
|
default: boolean;
|
|
@@ -92,10 +96,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
92
96
|
type: PropType<string>;
|
|
93
97
|
default: string;
|
|
94
98
|
};
|
|
95
|
-
pageSizes: {
|
|
96
|
-
type: PropType<number[]>;
|
|
97
|
-
default: () => number[];
|
|
98
|
-
};
|
|
99
99
|
fetchApi: {
|
|
100
100
|
type: PropType<JProductSelectFetchApi>;
|
|
101
101
|
required: true;
|
|
@@ -129,9 +129,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
129
129
|
}>, {
|
|
130
130
|
title: string;
|
|
131
131
|
width: string;
|
|
132
|
+
pageSizes: number[];
|
|
132
133
|
teleported: boolean;
|
|
133
134
|
rowKey: string;
|
|
134
|
-
pageSizes: number[];
|
|
135
135
|
tableHeight: string | number;
|
|
136
136
|
popoverWidth: number;
|
|
137
137
|
loadErrorMessage: string;
|
|
@@ -46,8 +46,8 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
46
46
|
collapseTagsTooltip: boolean;
|
|
47
47
|
maxCollapseTags: number;
|
|
48
48
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
|
-
"update:modelValue": (value: RemoteSelectModelValue) => void;
|
|
50
49
|
change: (value: RemoteSelectModelValue, option: Record<string, unknown> | null) => void;
|
|
50
|
+
"update:modelValue": (value: RemoteSelectModelValue) => void;
|
|
51
51
|
paramsChange: (params: Record<string, unknown>) => void;
|
|
52
52
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
53
53
|
modelValue?: RemoteSelectModelValue;
|
|
@@ -94,15 +94,15 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
94
94
|
collapseTagsTooltip: boolean;
|
|
95
95
|
maxCollapseTags: number;
|
|
96
96
|
}>>> & Readonly<{
|
|
97
|
-
"onUpdate:modelValue"?: ((value: RemoteSelectModelValue) => any) | undefined;
|
|
98
97
|
onChange?: ((value: RemoteSelectModelValue, option: Record<string, unknown> | null) => any) | undefined;
|
|
98
|
+
"onUpdate:modelValue"?: ((value: RemoteSelectModelValue) => any) | undefined;
|
|
99
99
|
onParamsChange?: ((params: Record<string, unknown>) => any) | undefined;
|
|
100
100
|
}>, {
|
|
101
|
-
disabled: boolean;
|
|
102
|
-
placeholder: string;
|
|
103
101
|
immediate: boolean;
|
|
104
102
|
pageSize: number;
|
|
103
|
+
disabled: boolean;
|
|
105
104
|
clearable: boolean;
|
|
105
|
+
placeholder: string;
|
|
106
106
|
multiple: boolean;
|
|
107
107
|
labelField: string;
|
|
108
108
|
valueField: string;
|
|
@@ -4,11 +4,11 @@ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, Pub
|
|
|
4
4
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
5
|
type: PropType<string>;
|
|
6
6
|
keyword: PropType<string>;
|
|
7
|
-
|
|
7
|
+
placeholder: {
|
|
8
8
|
type: PropType<string>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
width: {
|
|
12
12
|
type: PropType<string>;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
@@ -54,11 +54,11 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
54
54
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
55
55
|
type: PropType<string>;
|
|
56
56
|
keyword: PropType<string>;
|
|
57
|
-
|
|
57
|
+
placeholder: {
|
|
58
58
|
type: PropType<string>;
|
|
59
59
|
default: string;
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
width: {
|
|
62
62
|
type: PropType<string>;
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
@@ -98,8 +98,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
98
98
|
onSearch?: (() => any) | undefined;
|
|
99
99
|
onConfirm?: ((payload: SearchInputModel) => any) | undefined;
|
|
100
100
|
}>, {
|
|
101
|
-
width: string;
|
|
102
101
|
placeholder: string;
|
|
102
|
+
width: string;
|
|
103
103
|
options: SearchInputOption[];
|
|
104
104
|
selectWidth: string;
|
|
105
105
|
separator: string;
|