jgy-public-component 0.0.42 → 0.0.43
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/JSupplierCycleSelect/JSupplierCycleSelect.d.ts +138 -0
- package/dist/components/JSupplierCycleSelect/index.d.ts +2 -0
- package/dist/components/JSupplierCycleSelect/types.d.ts +77 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5576 -5036
- 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,138 @@
|
|
|
1
|
+
import { JProductRequestFn } from '../JProductDetail/types';
|
|
2
|
+
import { JSupplierCycleItem, JSupplierCycleSelectValue } from './types';
|
|
3
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue?: JSupplierCycleSelectValue;
|
|
7
|
+
params?: Record<string, unknown>;
|
|
8
|
+
/** false=单选(点行即选中并关闭),true=多选(默认,需点确定) */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
immediate?: boolean;
|
|
14
|
+
allowEmpty?: boolean;
|
|
15
|
+
pageSize?: number;
|
|
16
|
+
paginated?: boolean;
|
|
17
|
+
searchable?: boolean;
|
|
18
|
+
initialLabel?: string;
|
|
19
|
+
/** 触发器宽度,如 240px / 100% */
|
|
20
|
+
width?: string;
|
|
21
|
+
/** 触发器尺寸,对齐 el-input */
|
|
22
|
+
size?: "large" | "default" | "small";
|
|
23
|
+
/** 下拉面板宽度 */
|
|
24
|
+
popoverWidth?: number | string;
|
|
25
|
+
teleported?: boolean;
|
|
26
|
+
/** 触发器 hover 时展示完整已选项 */
|
|
27
|
+
showTooltip?: boolean;
|
|
28
|
+
/** 生命周期状态筛选,有值时才传给接口 */
|
|
29
|
+
status?: string | number | (string | number)[];
|
|
30
|
+
/** 生命周期阶段筛选,有值时才传给接口 */
|
|
31
|
+
stage?: string | number | (string | number)[];
|
|
32
|
+
request?: JProductRequestFn;
|
|
33
|
+
}>, {
|
|
34
|
+
params: () => {};
|
|
35
|
+
multiple: boolean;
|
|
36
|
+
clearable: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
immediate: boolean;
|
|
40
|
+
allowEmpty: boolean;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
paginated: boolean;
|
|
43
|
+
searchable: boolean;
|
|
44
|
+
width: string;
|
|
45
|
+
size: string;
|
|
46
|
+
popoverWidth: number;
|
|
47
|
+
teleported: boolean;
|
|
48
|
+
showTooltip: boolean;
|
|
49
|
+
request: undefined;
|
|
50
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
|
+
change: (value: JSupplierCycleSelectValue, options: JSupplierCycleItem[]) => void;
|
|
52
|
+
"update:modelValue": (value: JSupplierCycleSelectValue) => void;
|
|
53
|
+
"filter-only": (item: JSupplierCycleItem) => void;
|
|
54
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
55
|
+
modelValue?: JSupplierCycleSelectValue;
|
|
56
|
+
params?: Record<string, unknown>;
|
|
57
|
+
/** false=单选(点行即选中并关闭),true=多选(默认,需点确定) */
|
|
58
|
+
multiple?: boolean;
|
|
59
|
+
clearable?: boolean;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
immediate?: boolean;
|
|
63
|
+
allowEmpty?: boolean;
|
|
64
|
+
pageSize?: number;
|
|
65
|
+
paginated?: boolean;
|
|
66
|
+
searchable?: boolean;
|
|
67
|
+
initialLabel?: string;
|
|
68
|
+
/** 触发器宽度,如 240px / 100% */
|
|
69
|
+
width?: string;
|
|
70
|
+
/** 触发器尺寸,对齐 el-input */
|
|
71
|
+
size?: "large" | "default" | "small";
|
|
72
|
+
/** 下拉面板宽度 */
|
|
73
|
+
popoverWidth?: number | string;
|
|
74
|
+
teleported?: boolean;
|
|
75
|
+
/** 触发器 hover 时展示完整已选项 */
|
|
76
|
+
showTooltip?: boolean;
|
|
77
|
+
/** 生命周期状态筛选,有值时才传给接口 */
|
|
78
|
+
status?: string | number | (string | number)[];
|
|
79
|
+
/** 生命周期阶段筛选,有值时才传给接口 */
|
|
80
|
+
stage?: string | number | (string | number)[];
|
|
81
|
+
request?: JProductRequestFn;
|
|
82
|
+
}>, {
|
|
83
|
+
params: () => {};
|
|
84
|
+
multiple: boolean;
|
|
85
|
+
clearable: boolean;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
immediate: boolean;
|
|
89
|
+
allowEmpty: boolean;
|
|
90
|
+
pageSize: number;
|
|
91
|
+
paginated: boolean;
|
|
92
|
+
searchable: boolean;
|
|
93
|
+
width: string;
|
|
94
|
+
size: string;
|
|
95
|
+
popoverWidth: number;
|
|
96
|
+
teleported: boolean;
|
|
97
|
+
showTooltip: boolean;
|
|
98
|
+
request: undefined;
|
|
99
|
+
}>>> & Readonly<{
|
|
100
|
+
onChange?: ((value: JSupplierCycleSelectValue, options: JSupplierCycleItem[]) => any) | undefined;
|
|
101
|
+
"onUpdate:modelValue"?: ((value: JSupplierCycleSelectValue) => any) | undefined;
|
|
102
|
+
"onFilter-only"?: ((item: JSupplierCycleItem) => any) | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
immediate: boolean;
|
|
105
|
+
pageSize: number;
|
|
106
|
+
disabled: boolean;
|
|
107
|
+
clearable: boolean;
|
|
108
|
+
placeholder: string;
|
|
109
|
+
size: "large" | "default" | "small";
|
|
110
|
+
width: string;
|
|
111
|
+
teleported: boolean;
|
|
112
|
+
params: Record<string, unknown>;
|
|
113
|
+
request: JProductRequestFn;
|
|
114
|
+
multiple: boolean;
|
|
115
|
+
popoverWidth: number | string;
|
|
116
|
+
searchable: boolean;
|
|
117
|
+
paginated: boolean;
|
|
118
|
+
allowEmpty: boolean;
|
|
119
|
+
showTooltip: boolean;
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
export default _default;
|
|
122
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
123
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
124
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
125
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
126
|
+
} : {
|
|
127
|
+
type: PropType<T[K]>;
|
|
128
|
+
required: true;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
type __VLS_WithDefaults<P, D> = {
|
|
132
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
133
|
+
default: D[K];
|
|
134
|
+
}> : P[K];
|
|
135
|
+
};
|
|
136
|
+
type __VLS_Prettify<T> = {
|
|
137
|
+
[K in keyof T]: T[K];
|
|
138
|
+
} & {};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { JProductRequestFn } from '../JProductDetail/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 绑定值:对外统一为逗号分隔的 supplier_code 字符串,空为 ''。
|
|
5
|
+
* 入参兼容 string | array | 单值,便于回显与迁移。
|
|
6
|
+
*/
|
|
7
|
+
export type JSupplierCycleSelectValue = string | number | null | (string | number)[];
|
|
8
|
+
export interface JSupplierLifeCycle {
|
|
9
|
+
stage?: number;
|
|
10
|
+
stage_name?: string;
|
|
11
|
+
status?: number;
|
|
12
|
+
status_name?: string;
|
|
13
|
+
stage_time?: string | null;
|
|
14
|
+
lifecycle_operator?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface JSupplierRelatedItem {
|
|
17
|
+
supplier_code?: string;
|
|
18
|
+
supplier_name?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface JSupplierTitleHistoryItem {
|
|
21
|
+
supplier_code?: string;
|
|
22
|
+
old_supplier_name?: string;
|
|
23
|
+
old_supplier_name_en?: string;
|
|
24
|
+
new_supplier_name?: string;
|
|
25
|
+
new_supplier_name_en?: string;
|
|
26
|
+
audit_no?: string;
|
|
27
|
+
operator?: string;
|
|
28
|
+
ctime?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface JSupplierCycleItem {
|
|
31
|
+
supplier_code?: string;
|
|
32
|
+
supplier_name?: string;
|
|
33
|
+
/** 关联加工公司编码(与 related_company_name 同时有值才展示内采) */
|
|
34
|
+
related_company_code?: string;
|
|
35
|
+
/** 关联加工公司名称(与 related_company_code 同时有值才展示内采) */
|
|
36
|
+
related_company_name?: string;
|
|
37
|
+
life_cycle?: JSupplierLifeCycle;
|
|
38
|
+
related_suppliers?: JSupplierRelatedItem[];
|
|
39
|
+
title_history?: JSupplierTitleHistoryItem[];
|
|
40
|
+
contacts?: Array<{
|
|
41
|
+
id?: number;
|
|
42
|
+
contact_name?: string;
|
|
43
|
+
contact_phone?: string;
|
|
44
|
+
}>;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface JSupplierCycleSelectProps {
|
|
48
|
+
modelValue?: JSupplierCycleSelectValue;
|
|
49
|
+
/** 额外请求参数,会合并进每次请求(如 sku_code) */
|
|
50
|
+
params?: Record<string, unknown>;
|
|
51
|
+
/** 生命周期 status 筛选,有值时才传给接口 */
|
|
52
|
+
status?: string | number | (string | number)[];
|
|
53
|
+
/** 生命周期 stage 筛选,有值时才传给接口 */
|
|
54
|
+
stage?: string | number | (string | number)[];
|
|
55
|
+
/** false=单选(点行即选中并关闭),true=多选(默认,需点确定) */
|
|
56
|
+
multiple?: boolean;
|
|
57
|
+
clearable?: boolean;
|
|
58
|
+
disabled?: boolean;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
immediate?: boolean;
|
|
61
|
+
allowEmpty?: boolean;
|
|
62
|
+
pageSize?: number;
|
|
63
|
+
paginated?: boolean;
|
|
64
|
+
searchable?: boolean;
|
|
65
|
+
initialLabel?: string;
|
|
66
|
+
/** 触发器宽度,如 240px / 100% */
|
|
67
|
+
width?: string;
|
|
68
|
+
/** 触发器尺寸,对齐 el-input */
|
|
69
|
+
size?: 'large' | 'default' | 'small';
|
|
70
|
+
/** 下拉面板宽度 */
|
|
71
|
+
popoverWidth?: number | string;
|
|
72
|
+
teleported?: boolean;
|
|
73
|
+
/** 触发器 hover 时展示完整已选项 */
|
|
74
|
+
showTooltip?: boolean;
|
|
75
|
+
/** 覆盖全局注入的 request,一般不用传 */
|
|
76
|
+
request?: JProductRequestFn;
|
|
77
|
+
}
|
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 { JSupplierCycleSelect } from './components/JSupplierCycleSelect';
|
|
13
14
|
import { JProductSelectDialog } from './components/JProductSelectDialog';
|
|
14
15
|
import { DocNoLink, DocDetailHost } from './components/JDocDetail';
|
|
15
16
|
import { JRelatedDocs } from './components/JRelatedDocs';
|
|
@@ -18,7 +19,7 @@ declare const _default: {
|
|
|
18
19
|
install: (app: App) => void;
|
|
19
20
|
};
|
|
20
21
|
export default _default;
|
|
21
|
-
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
22
|
+
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JSupplierCycleSelect, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
22
23
|
export { useProductDetailDialog, useProductDetailStore, provideProductRequest, resolveProductRequest, useInjectedProductRequest, J_PRODUCT_REQUEST_KEY, } from './components/JProductDetail';
|
|
23
24
|
export { 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';
|
|
24
25
|
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';
|
|
@@ -38,6 +39,7 @@ export type { AdminLayoutMenuItem, JAdminLayoutProps } from './components/JAdmin
|
|
|
38
39
|
export type { JProductDetailDialogProps, JSkuLinkProps, JProductRequestFn, JProductRequestConfig, } from './components/JProductDetail';
|
|
39
40
|
export type { JSearchInputDialogProps, SearchInputOption, SearchInputModel, } from './components/JSearchInputDialog';
|
|
40
41
|
export type { JRemoteSelectProps, RemoteSelectFetchApi, RemoteSelectModelValue, } from './components/JRemoteSelect';
|
|
42
|
+
export type { JSupplierCycleSelectProps, JSupplierCycleSelectValue, JSupplierCycleItem, JSupplierLifeCycle, JSupplierRelatedItem, JSupplierTitleHistoryItem, } from './components/JSupplierCycleSelect';
|
|
41
43
|
export type { JProductSelectDialogProps, JProductSelectFetchApi, JProductSelectListResult, } from './components/JProductSelectDialog';
|
|
42
44
|
export type { DocDetailType, DocDetailAdapters, DocDetailRegistryItem, DocDetailComponents, CreateDocDetailOptions, DocDetailViewOptions, PurchaseOrderTabName, } from './components/JDocDetail';
|
|
43
45
|
export type { RelatedListAdapter, RelatedDocTypeItem, CreateRelatedDocsOptions, RelatedDocsContainerProps, } from './components/JRelatedDocs';
|