jgy-public-component 0.0.33 → 0.0.34
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/JListSearchHeader/JListSearchHeader.d.ts +10 -11
- package/dist/components/JListSearchHeader/types copy.d.ts +34 -0
- package/dist/components/JListSearchHeader/types.d.ts +2 -2
- package/dist/components/JProductSelectDialog/JProductSelectDialog.d.ts +146 -0
- package/dist/components/JProductSelectDialog/index.d.ts +2 -0
- package/dist/components/JProductSelectDialog/types.d.ts +20 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3356 -3099
- 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
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { BtnPermissionChecker, BtnPermissionInput } from '../../utils/btnPermission';
|
|
2
1
|
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
2
|
+
import { BtnPermissionInput, BtnPermissionChecker } from '../..';
|
|
4
3
|
declare function __VLS_template(): {
|
|
5
4
|
tabs?(_: {}): any;
|
|
6
5
|
filter?(_: {}): any;
|
|
@@ -34,10 +33,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
34
33
|
type: PropType<boolean>;
|
|
35
34
|
default: boolean;
|
|
36
35
|
};
|
|
37
|
-
defaultVisible: {
|
|
38
|
-
type: PropType<number>;
|
|
39
|
-
default: number;
|
|
40
|
-
};
|
|
41
36
|
collapsible: {
|
|
42
37
|
type: PropType<boolean>;
|
|
43
38
|
default: boolean;
|
|
@@ -64,6 +59,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
64
59
|
permissionChecker: {
|
|
65
60
|
type: PropType<BtnPermissionChecker>;
|
|
66
61
|
};
|
|
62
|
+
defaultVisibleRows: {
|
|
63
|
+
type: PropType<number>;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
67
66
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
68
67
|
search: () => void;
|
|
69
68
|
reset: () => void;
|
|
@@ -98,10 +97,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
98
97
|
type: PropType<boolean>;
|
|
99
98
|
default: boolean;
|
|
100
99
|
};
|
|
101
|
-
defaultVisible: {
|
|
102
|
-
type: PropType<number>;
|
|
103
|
-
default: number;
|
|
104
|
-
};
|
|
105
100
|
collapsible: {
|
|
106
101
|
type: PropType<boolean>;
|
|
107
102
|
default: boolean;
|
|
@@ -128,6 +123,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
128
123
|
permissionChecker: {
|
|
129
124
|
type: PropType<BtnPermissionChecker>;
|
|
130
125
|
};
|
|
126
|
+
defaultVisibleRows: {
|
|
127
|
+
type: PropType<number>;
|
|
128
|
+
default: number;
|
|
129
|
+
};
|
|
131
130
|
}>> & Readonly<{
|
|
132
131
|
onSearch?: (() => any) | undefined;
|
|
133
132
|
onReset?: (() => any) | undefined;
|
|
@@ -143,9 +142,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
143
142
|
showTabs: boolean;
|
|
144
143
|
showSearch: boolean;
|
|
145
144
|
showReset: boolean;
|
|
146
|
-
defaultVisible: number;
|
|
147
145
|
collapsible: boolean;
|
|
148
146
|
moreFilterActiveCount: number;
|
|
147
|
+
defaultVisibleRows: number;
|
|
149
148
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
150
149
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
151
150
|
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BtnPermissionChecker, BtnPermissionInput } from '../../utils/btnPermission';
|
|
2
|
+
|
|
3
|
+
export interface JListSearchHeaderProps {
|
|
4
|
+
/** 是否展示「更多筛选」 */
|
|
5
|
+
showMoreFilter?: boolean;
|
|
6
|
+
/** 是否展示导出图标 */
|
|
7
|
+
showDownload?: boolean;
|
|
8
|
+
/** 是否展示列设置图标 */
|
|
9
|
+
showSettings?: boolean;
|
|
10
|
+
/** 是否展示顶部状态 Tabs(无 #tabs 插槽时自动隐藏) */
|
|
11
|
+
showTabs?: boolean;
|
|
12
|
+
/** 是否展示查询按钮 */
|
|
13
|
+
showSearch?: boolean;
|
|
14
|
+
/** 是否展示重置按钮 */
|
|
15
|
+
showReset?: boolean;
|
|
16
|
+
/** 默认可见筛选项个数(按 #filter 内 el-form-item 计),超出显示展开/收起 */
|
|
17
|
+
defaultVisible?: number;
|
|
18
|
+
/** 是否启用 #filter 折叠 */
|
|
19
|
+
collapsible?: boolean;
|
|
20
|
+
/** 更多筛选已生效条件数量,>0 时按钮显示「更多筛选 (N)」 */
|
|
21
|
+
moreFilterActiveCount?: number;
|
|
22
|
+
/** 更多筛选按钮权限码 */
|
|
23
|
+
moreFilterPermission?: BtnPermissionInput;
|
|
24
|
+
/** 查询按钮权限码(含更多筛选弹层内查询) */
|
|
25
|
+
searchPermission?: BtnPermissionInput;
|
|
26
|
+
/** 重置按钮权限码 */
|
|
27
|
+
resetPermission?: BtnPermissionInput;
|
|
28
|
+
/** 导出图标权限码 */
|
|
29
|
+
downloadPermission?: BtnPermissionInput;
|
|
30
|
+
/** 列设置权限码(含列设置抽屉内恢复默认/保存) */
|
|
31
|
+
settingsPermission?: BtnPermissionInput;
|
|
32
|
+
/** 单页覆盖全局按钮权限检查函数 */
|
|
33
|
+
permissionChecker?: BtnPermissionChecker;
|
|
34
|
+
}
|
|
@@ -13,8 +13,8 @@ export interface JListSearchHeaderProps {
|
|
|
13
13
|
showSearch?: boolean;
|
|
14
14
|
/** 是否展示重置按钮 */
|
|
15
15
|
showReset?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
|
|
16
|
+
/** 默认可见筛选项行数(按 #filter 内 el-form-item 布局换行计),超出显示展开/收起 */
|
|
17
|
+
defaultVisibleRows?: number;
|
|
18
18
|
/** 是否启用 #filter 折叠 */
|
|
19
19
|
collapsible?: boolean;
|
|
20
20
|
/** 更多筛选已生效条件数量,>0 时按钮显示「更多筛选 (N)」 */
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { JProductSelectFetchApi, JProductSelectListResult } from './types';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
|
|
4
|
+
type Row = Record<string, any>;
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
filters?(_: {
|
|
7
|
+
search: () => void;
|
|
8
|
+
reset: () => Promise<void>;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}): any;
|
|
11
|
+
columns?(_: {}): any;
|
|
12
|
+
"selected-columns"?(_: {
|
|
13
|
+
remove: (row: Row) => void;
|
|
14
|
+
}): any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
17
|
+
modelValue: PropType<boolean>;
|
|
18
|
+
title: {
|
|
19
|
+
type: PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
width: {
|
|
23
|
+
type: PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
teleported: {
|
|
27
|
+
type: PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
zIndex: {
|
|
31
|
+
type: PropType<number>;
|
|
32
|
+
};
|
|
33
|
+
rowKey: {
|
|
34
|
+
type: PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
pageSizes: {
|
|
38
|
+
type: PropType<number[]>;
|
|
39
|
+
default: () => number[];
|
|
40
|
+
};
|
|
41
|
+
fetchApi: {
|
|
42
|
+
type: PropType<JProductSelectFetchApi>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
extraParams: {
|
|
46
|
+
type: PropType<Record<string, any>>;
|
|
47
|
+
};
|
|
48
|
+
tableHeight: {
|
|
49
|
+
type: PropType<string | number>;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
popoverWidth: {
|
|
53
|
+
type: PropType<number>;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
responseAdapter: {
|
|
57
|
+
type: PropType<(res: any) => JProductSelectListResult>;
|
|
58
|
+
};
|
|
59
|
+
loadErrorMessage: {
|
|
60
|
+
type: PropType<string>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
fetchOnOpen: {
|
|
64
|
+
type: PropType<boolean>;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
}>, {
|
|
68
|
+
reload: () => Promise<void>;
|
|
69
|
+
clearSelected: () => void;
|
|
70
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
71
|
+
open: () => void;
|
|
72
|
+
closed: () => void;
|
|
73
|
+
confirm: (rows: Row[]) => void;
|
|
74
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
75
|
+
modelValue: PropType<boolean>;
|
|
76
|
+
title: {
|
|
77
|
+
type: PropType<string>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
width: {
|
|
81
|
+
type: PropType<string>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
teleported: {
|
|
85
|
+
type: PropType<boolean>;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
zIndex: {
|
|
89
|
+
type: PropType<number>;
|
|
90
|
+
};
|
|
91
|
+
rowKey: {
|
|
92
|
+
type: PropType<string>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
pageSizes: {
|
|
96
|
+
type: PropType<number[]>;
|
|
97
|
+
default: () => number[];
|
|
98
|
+
};
|
|
99
|
+
fetchApi: {
|
|
100
|
+
type: PropType<JProductSelectFetchApi>;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
extraParams: {
|
|
104
|
+
type: PropType<Record<string, any>>;
|
|
105
|
+
};
|
|
106
|
+
tableHeight: {
|
|
107
|
+
type: PropType<string | number>;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
popoverWidth: {
|
|
111
|
+
type: PropType<number>;
|
|
112
|
+
default: number;
|
|
113
|
+
};
|
|
114
|
+
responseAdapter: {
|
|
115
|
+
type: PropType<(res: any) => JProductSelectListResult>;
|
|
116
|
+
};
|
|
117
|
+
loadErrorMessage: {
|
|
118
|
+
type: PropType<string>;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
fetchOnOpen: {
|
|
122
|
+
type: PropType<boolean>;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
}>> & Readonly<{
|
|
126
|
+
onOpen?: (() => any) | undefined;
|
|
127
|
+
onClosed?: (() => any) | undefined;
|
|
128
|
+
onConfirm?: ((rows: Row[]) => any) | undefined;
|
|
129
|
+
}>, {
|
|
130
|
+
title: string;
|
|
131
|
+
width: string;
|
|
132
|
+
teleported: boolean;
|
|
133
|
+
rowKey: string;
|
|
134
|
+
pageSizes: number[];
|
|
135
|
+
tableHeight: string | number;
|
|
136
|
+
popoverWidth: number;
|
|
137
|
+
loadErrorMessage: string;
|
|
138
|
+
fetchOnOpen: boolean;
|
|
139
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
140
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
141
|
+
export default _default;
|
|
142
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
143
|
+
new (): {
|
|
144
|
+
$slots: S;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type JProductSelectFetchApi = (params: Record<string, any>) => Promise<any>;
|
|
2
|
+
export type JProductSelectListResult = {
|
|
3
|
+
list: Array<Record<string, any>>;
|
|
4
|
+
total: number;
|
|
5
|
+
};
|
|
6
|
+
export interface JProductSelectDialogProps {
|
|
7
|
+
fetchApi: JProductSelectFetchApi;
|
|
8
|
+
extraParams?: Record<string, any>;
|
|
9
|
+
title?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
rowKey?: string;
|
|
12
|
+
tableHeight?: string | number;
|
|
13
|
+
pageSizes?: number[];
|
|
14
|
+
popoverWidth?: number;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
responseAdapter?: (res: any) => JProductSelectListResult;
|
|
17
|
+
loadErrorMessage?: string;
|
|
18
|
+
fetchOnOpen?: boolean;
|
|
19
|
+
teleported?: boolean;
|
|
20
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { JAdminLayout } from './components/JAdminLayout';
|
|
|
10
10
|
import { JProductDetailDialog, JSkuLink, ProductDetailHost } from './components/JProductDetail';
|
|
11
11
|
import { JSearchInputDialog } from './components/JSearchInputDialog';
|
|
12
12
|
import { JRemoteSelect } from './components/JRemoteSelect';
|
|
13
|
+
import { JProductSelectDialog } from './components/JProductSelectDialog';
|
|
13
14
|
import { DocNoLink, DocDetailHost } from './components/JDocDetail';
|
|
14
15
|
import { JRelatedDocs } from './components/JRelatedDocs';
|
|
15
16
|
|
|
@@ -17,7 +18,7 @@ declare const _default: {
|
|
|
17
18
|
install: (app: App) => void;
|
|
18
19
|
};
|
|
19
20
|
export default _default;
|
|
20
|
-
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
21
|
+
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
21
22
|
export { useProductDetailDialog, useProductDetailStore, provideProductRequest, resolveProductRequest, useInjectedProductRequest, J_PRODUCT_REQUEST_KEY, } from './components/JProductDetail';
|
|
22
23
|
export { createDocDetail, registerDocDetail, getDocDetailAdapters, getDocDetailEntry, getDocDetailRegistry, isDocDetailInitialized, useDocDetailStore, wmsDocDetailComponents, ReceiptOrderDetailView, QcOrderDetailView, InboundOrderDetailView, PutawayOrderDetailView, DeliveryOrderDetailView, TransferOrderDetailView, WorkOrderDetailView, AbnormalOrderDetailView, PaymentRequestDetailView, ReturnOrderDetailView, CostExpenseDetailView, ReceiptVoucherDetailView, PurchaseOrderDetailView, PurchasePlanDetailView, PurchaseContractDetailView, DeliveryDocDetailView, } from './components/JDocDetail';
|
|
23
24
|
export { createRelatedDocs, registerRelatedDocs, getRelatedListAdapter, getRelatedTableComponent, getRelatedDocsTableComponents, isRelatedDocsInitialized, RelatedDocSubTabs, RelatedDocNoCopy, RelatedDocPanel, RelatedReceiptOrderTable, RelatedQcOrderTable, RelatedInboundOrderTable, RelatedPutawayOrderTable, flattenOrderItems, sumOrderItemField, useRelatedCollapseExpand, parseListResponse, } from './components/JRelatedDocs';
|
|
@@ -37,5 +38,6 @@ export type { AdminLayoutMenuItem, JAdminLayoutProps } from './components/JAdmin
|
|
|
37
38
|
export type { JProductDetailDialogProps, JSkuLinkProps, JProductRequestFn, JProductRequestConfig, } from './components/JProductDetail';
|
|
38
39
|
export type { JSearchInputDialogProps, SearchInputOption, SearchInputModel, } from './components/JSearchInputDialog';
|
|
39
40
|
export type { JRemoteSelectProps, RemoteSelectFetchApi, RemoteSelectModelValue, } from './components/JRemoteSelect';
|
|
41
|
+
export type { JProductSelectDialogProps, JProductSelectFetchApi, JProductSelectListResult, } from './components/JProductSelectDialog';
|
|
40
42
|
export type { DocDetailType, DocDetailAdapters, DocDetailRegistryItem, DocDetailComponents, CreateDocDetailOptions, } from './components/JDocDetail';
|
|
41
43
|
export type { RelatedListAdapter, RelatedDocTypeItem, CreateRelatedDocsOptions, RelatedDocsContainerProps, } from './components/JRelatedDocs';
|