jgy-public-component 0.0.35 → 0.0.37
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/JRelatedDocs/index.d.ts +11 -2
- package/dist/components/JRelatedDocs/tables/RelatedAbnormalOrderTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedDeclarationTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedDeliveryDocTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedPaymentRequestTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedProcessingOrderTable.d.ts +40 -0
- package/dist/components/JRelatedDocs/tables/RelatedPurchaseOrderTable.d.ts +40 -0
- package/dist/components/JRelatedDocs/tables/RelatedPurchasePlanTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedReceiptVoucherTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/tables/RelatedReturnOrderTable.d.ts +35 -0
- package/dist/components/JRelatedDocs/utils/buildRelatedRows.d.ts +6 -0
- package/dist/components/JRelatedDocs/utils/display.d.ts +2 -0
- package/dist/components/JRelatedDocs/utils/parseList.d.ts +2 -0
- package/dist/components/JUploadImg/JUploadImg.d.ts +7 -0
- package/dist/components/JUploadImg/types.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6451 -5142
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* JRelatedDocs — 关联单据
|
|
3
3
|
*
|
|
4
4
|
* 用法:
|
|
5
|
-
* 1. createRelatedDocs({ listAdapters: { receipt, qc, inbound, putaway } })
|
|
5
|
+
* 1. createRelatedDocs({ listAdapters: { receipt, qc, inbound, putaway, ... } })
|
|
6
6
|
* 2. 只读详情 / 业务页:
|
|
7
7
|
* <JRelatedDocs :doc-types="[...]" :doc-no="orderNo" />
|
|
8
8
|
* 3. 也可单独使用纯展示表:RelatedReceiptOrderTable 等(父页自请求)
|
|
@@ -17,6 +17,15 @@ export { default as RelatedReceiptOrderTable } from './tables/RelatedReceiptOrde
|
|
|
17
17
|
export { default as RelatedQcOrderTable } from './tables/RelatedQcOrderTable';
|
|
18
18
|
export { default as RelatedInboundOrderTable } from './tables/RelatedInboundOrderTable';
|
|
19
19
|
export { default as RelatedPutawayOrderTable } from './tables/RelatedPutawayOrderTable';
|
|
20
|
+
export { default as RelatedPurchaseOrderTable } from './tables/RelatedPurchaseOrderTable';
|
|
21
|
+
export { default as RelatedPurchasePlanTable } from './tables/RelatedPurchasePlanTable';
|
|
22
|
+
export { default as RelatedDeliveryDocTable } from './tables/RelatedDeliveryDocTable';
|
|
23
|
+
export { default as RelatedProcessingOrderTable } from './tables/RelatedProcessingOrderTable';
|
|
24
|
+
export { default as RelatedReturnOrderTable } from './tables/RelatedReturnOrderTable';
|
|
25
|
+
export { default as RelatedAbnormalOrderTable } from './tables/RelatedAbnormalOrderTable';
|
|
26
|
+
export { default as RelatedPaymentRequestTable } from './tables/RelatedPaymentRequestTable';
|
|
27
|
+
export { default as RelatedReceiptVoucherTable } from './tables/RelatedReceiptVoucherTable';
|
|
28
|
+
export { default as RelatedDeclarationTable } from './tables/RelatedDeclarationTable';
|
|
20
29
|
export { flattenOrderItems, sumOrderItemField } from './utils/flattenOrderItems';
|
|
21
30
|
export { useRelatedCollapseExpand } from './utils/useRelatedCollapseExpand';
|
|
22
|
-
export { parseListResponse } from './utils/parseList';
|
|
31
|
+
export { parseListResponse, parseListTotal } from './utils/parseList';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
showFnsku?: boolean;
|
|
6
|
+
}>, {
|
|
7
|
+
list: () => never[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
showFnsku: boolean;
|
|
10
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
list?: Record<string, any>[];
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
showFnsku?: boolean;
|
|
14
|
+
}>, {
|
|
15
|
+
list: () => never[];
|
|
16
|
+
loading: boolean;
|
|
17
|
+
showFnsku: boolean;
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
loading: boolean;
|
|
20
|
+
list: Record<string, any>[];
|
|
21
|
+
showFnsku: boolean;
|
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
showFnsku?: boolean;
|
|
6
|
+
}>, {
|
|
7
|
+
list: () => never[];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
showFnsku: boolean;
|
|
10
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
|
+
list?: Record<string, any>[];
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
showFnsku?: boolean;
|
|
14
|
+
}>, {
|
|
15
|
+
list: () => never[];
|
|
16
|
+
loading: boolean;
|
|
17
|
+
showFnsku: boolean;
|
|
18
|
+
}>>> & Readonly<{}>, {
|
|
19
|
+
loading: boolean;
|
|
20
|
+
list: Record<string, any>[];
|
|
21
|
+
showFnsku: boolean;
|
|
22
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
list?: Record<string, any>[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}>, {
|
|
6
|
+
list: () => never[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
list?: Record<string, any>[];
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}>, {
|
|
12
|
+
list: () => never[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
}>>> & Readonly<{}>, {
|
|
15
|
+
loading: boolean;
|
|
16
|
+
list: Record<string, any>[];
|
|
17
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_WithDefaults<P, D> = {
|
|
29
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
30
|
+
default: D[K];
|
|
31
|
+
}> : P[K];
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Prettify<T> = {
|
|
34
|
+
[K in keyof T]: T[K];
|
|
35
|
+
} & {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** 采购计划关联行:组合产品展开子项 */
|
|
2
|
+
export declare function buildPurchasePlanRows(list: Record<string, any>[]): Record<string, any>[];
|
|
3
|
+
/** 加工单关联行:组合产品及采购明细展开 */
|
|
4
|
+
export declare function buildProcessingOrderRows(list: Record<string, any>[]): Record<string, any>[];
|
|
5
|
+
/** 报关单展开为产品扁平行 */
|
|
6
|
+
export declare function flattenDeclarationRows(list: Record<string, any>[]): Record<string, any>[];
|
|
@@ -3,6 +3,8 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
3
3
|
modelValue?: string | string[];
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
multiple?: boolean;
|
|
6
|
+
/** 多图模式下,文件选择器是否允许一次选多张 */
|
|
7
|
+
multipleSelect?: boolean;
|
|
6
8
|
limit?: number;
|
|
7
9
|
maxSize?: number;
|
|
8
10
|
accept?: string;
|
|
@@ -14,6 +16,7 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
14
16
|
modelValue: string;
|
|
15
17
|
disabled: boolean;
|
|
16
18
|
multiple: boolean;
|
|
19
|
+
multipleSelect: boolean;
|
|
17
20
|
limit: number;
|
|
18
21
|
maxSize: number;
|
|
19
22
|
accept: string;
|
|
@@ -28,6 +31,8 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
28
31
|
modelValue?: string | string[];
|
|
29
32
|
disabled?: boolean;
|
|
30
33
|
multiple?: boolean;
|
|
34
|
+
/** 多图模式下,文件选择器是否允许一次选多张 */
|
|
35
|
+
multipleSelect?: boolean;
|
|
31
36
|
limit?: number;
|
|
32
37
|
maxSize?: number;
|
|
33
38
|
accept?: string;
|
|
@@ -39,6 +44,7 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
39
44
|
modelValue: string;
|
|
40
45
|
disabled: boolean;
|
|
41
46
|
multiple: boolean;
|
|
47
|
+
multipleSelect: boolean;
|
|
42
48
|
limit: number;
|
|
43
49
|
maxSize: number;
|
|
44
50
|
accept: string;
|
|
@@ -55,6 +61,7 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
55
61
|
multiple: boolean;
|
|
56
62
|
accept: string;
|
|
57
63
|
limit: number;
|
|
64
|
+
multipleSelect: boolean;
|
|
58
65
|
maxSize: number;
|
|
59
66
|
tip: string;
|
|
60
67
|
showTip: boolean;
|
|
@@ -5,7 +5,10 @@ export interface ImageItem {
|
|
|
5
5
|
export interface JUploadImgProps {
|
|
6
6
|
modelValue?: string | string[];
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
/** 多图模式:展示多张已上传图片 */
|
|
8
9
|
multiple?: boolean;
|
|
10
|
+
/** 多图模式下,文件选择器是否允许一次选多张,默认开启 */
|
|
11
|
+
multipleSelect?: boolean;
|
|
9
12
|
limit?: number;
|
|
10
13
|
maxSize?: number;
|
|
11
14
|
accept?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export default _default;
|
|
|
21
21
|
export { JButton, JUploadImg, JIconRender, JSearchHeader, JListSearchHeader, JImportExcel, JSidebar, JSideMenuItem, JAdminLayout, JProductDetailDialog, JSkuLink, ProductDetailHost, JSearchInputDialog, JRemoteSelect, JProductSelectDialog, DocNoLink, DocDetailHost, JRelatedDocs, };
|
|
22
22
|
export { useProductDetailDialog, useProductDetailStore, provideProductRequest, resolveProductRequest, useInjectedProductRequest, J_PRODUCT_REQUEST_KEY, } from './components/JProductDetail';
|
|
23
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';
|
|
24
|
-
export { createRelatedDocs, registerRelatedDocs, getRelatedListAdapter, getRelatedTableComponent, getRelatedDocsTableComponents, isRelatedDocsInitialized, RelatedDocSubTabs, RelatedDocNoCopy, RelatedDocPanel, RelatedReceiptOrderTable, RelatedQcOrderTable, RelatedInboundOrderTable, RelatedPutawayOrderTable, flattenOrderItems, sumOrderItemField, useRelatedCollapseExpand, parseListResponse, } from './components/JRelatedDocs';
|
|
24
|
+
export { createRelatedDocs, registerRelatedDocs, getRelatedListAdapter, getRelatedTableComponent, getRelatedDocsTableComponents, isRelatedDocsInitialized, RelatedDocSubTabs, RelatedDocNoCopy, RelatedDocPanel, RelatedReceiptOrderTable, RelatedQcOrderTable, RelatedInboundOrderTable, RelatedPutawayOrderTable, RelatedPurchaseOrderTable, RelatedPurchasePlanTable, RelatedDeliveryDocTable, RelatedProcessingOrderTable, RelatedReturnOrderTable, RelatedAbnormalOrderTable, RelatedPaymentRequestTable, RelatedReceiptVoucherTable, RelatedDeclarationTable, flattenOrderItems, sumOrderItemField, useRelatedCollapseExpand, parseListResponse, parseListTotal, } from './components/JRelatedDocs';
|
|
25
25
|
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';
|
|
26
26
|
export { useBtnPermissionGate } from './composables/useBtnPermissionGate';
|
|
27
27
|
export type { BtnPermissionInput, BtnPermissionMode, BtnPermissionChecker, StatusCountItem, StatusCountLookup, StatusTabListItem, StatusTabItem, StyledExportOptions, } from './utils';
|