jgy-public-component 0.0.36 → 0.0.38

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.
Files changed (26) hide show
  1. package/dist/components/JDocDetail/labels/inbound.d.ts +2 -0
  2. package/dist/components/JDocDetail/types.d.ts +22 -0
  3. package/dist/components/JDocDetail/utils/deliveryDocDisplayHelpers.d.ts +16 -0
  4. package/dist/components/JDocDetail/utils/planDisplayHelpers.d.ts +17 -0
  5. package/dist/components/JDocDetail/utils/purchaseQty.d.ts +33 -0
  6. package/dist/components/JListSearchHeader/JListSearchHeader.d.ts +2 -2
  7. package/dist/components/JRelatedDocs/index.d.ts +11 -2
  8. package/dist/components/JRelatedDocs/tables/RelatedAbnormalOrderTable.d.ts +35 -0
  9. package/dist/components/JRelatedDocs/tables/RelatedDeclarationTable.d.ts +35 -0
  10. package/dist/components/JRelatedDocs/tables/RelatedDeliveryDocTable.d.ts +35 -0
  11. package/dist/components/JRelatedDocs/tables/RelatedPaymentRequestTable.d.ts +35 -0
  12. package/dist/components/JRelatedDocs/tables/RelatedProcessingOrderTable.d.ts +47 -0
  13. package/dist/components/JRelatedDocs/tables/RelatedPurchaseOrderTable.d.ts +40 -0
  14. package/dist/components/JRelatedDocs/tables/RelatedPurchasePlanTable.d.ts +35 -0
  15. package/dist/components/JRelatedDocs/tables/RelatedReceiptVoucherTable.d.ts +35 -0
  16. package/dist/components/JRelatedDocs/tables/RelatedReturnOrderTable.d.ts +35 -0
  17. package/dist/components/JRelatedDocs/utils/buildRelatedRows.d.ts +25 -0
  18. package/dist/components/JRelatedDocs/utils/display.d.ts +2 -0
  19. package/dist/components/JRelatedDocs/utils/parseList.d.ts +2 -0
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +9339 -6251
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.umd.cjs +2 -2
  24. package/dist/index.umd.cjs.map +1 -1
  25. package/dist/style.css +1 -1
  26. package/package.json +1 -1
@@ -18,3 +18,5 @@ export declare const getInboundGoodLocation: (row?: {
18
18
  export declare const getInboundBadLocation: (row?: {
19
19
  location_list?: InboundLocationItem[];
20
20
  } | null) => string;
21
+ /** 待检量:无良品量且无次品量时用入库量 */
22
+ export declare const getPendingQcQty: (row: Record<string, any>) => any;
@@ -22,6 +22,12 @@ export type DocDetailAdapters = {
22
22
  * 勿与 getDeliveryDetail(WMS 出库单)混淆
23
23
  */
24
24
  getDeliveryDocDetail?: (deliveryNo: string) => Promise<any>;
25
+ /** 送货单物流信息,入参 delivery_no */
26
+ getDeliveryDocLogistics?: (deliveryNo: string) => Promise<any>;
27
+ /** 送货单关联采购明细,入参 delivery_no */
28
+ getDeliveryDocPurchaseDetail?: (deliveryNo: string) => Promise<any>;
29
+ /** 送货单产品标签,入参 delivery_no */
30
+ getDeliveryDocProductTags?: (deliveryNo: string) => Promise<any>;
25
31
  /** 异常单详情 */
26
32
  getAbnormalDetail?: (orderNo: string) => Promise<any>;
27
33
  /**
@@ -44,6 +50,22 @@ export type DocDetailAdapters = {
44
50
  * 供 DocNoLink type="purchase" / PurchaseOrderDetailView 使用
45
51
  */
46
52
  getPurchaseOrderDetail?: (purchaseNo: string) => Promise<any>;
53
+ /**
54
+ * WMS 到货/退换货数量,入参 purchase_no
55
+ * 供 PurchaseOrderDetailView 产品行数量展示
56
+ */
57
+ getQtyByPurchaseNo?: (purchaseNo: string) => Promise<any>;
58
+ /**
59
+ * SCM 送货单待到货数量,入参 purchase_no
60
+ * 供 PurchaseOrderDetailView 产品行待到货量展示
61
+ */
62
+ getDeliveryOrderQtyByPurchaseNo?: (purchaseNo: string) => Promise<any>;
63
+ /** 采购单报关产品(只读),入参 purchase_no */
64
+ getPurchaseOrderCustomsProducts?: (purchaseNo: string) => Promise<any>;
65
+ /** 采购单物流信息/送货单列表,入参 purchase_no */
66
+ getPurchaseOrderLogistics?: (purchaseNo: string) => Promise<any>;
67
+ /** 采购单发票列表,入参 purchase_no */
68
+ getPurchaseOrderInvoices?: (purchaseNo: string) => Promise<any>;
47
69
  /**
48
70
  * 采购计划详情,入参 requirement_no
49
71
  * 供 DocNoLink type="purchasePlan" / PurchasePlanDetailView 使用
@@ -0,0 +1,16 @@
1
+ /** 送货单详情展示辅助(对齐 scm DeliveryDocDetail) */
2
+ export type DeliveryProductRow = Record<string, any> & {
3
+ rowId: string;
4
+ _skuRowSpan: number;
5
+ };
6
+ /** 相同 SKU 合并图片、品名列 */
7
+ export declare const buildDeliveryProductRows: (items: any[]) => DeliveryProductRow[];
8
+ export declare const deliveryProductSpanMethod: ({ row, columnIndex, }: {
9
+ row: DeliveryProductRow;
10
+ rowIndex: number;
11
+ columnIndex: number;
12
+ }) => number[];
13
+ export declare const parseDeliveryFileJson: (raw: unknown) => {
14
+ name: string;
15
+ url: string;
16
+ }[];
@@ -0,0 +1,17 @@
1
+ /** 采购计划:品名 / 店铺账号 展示辅助(对齐 scm planDisplayHelpers) */
2
+ /** 解析品名(兼容 bis_sku、组合品子项、sku_info) */
3
+ export declare const resolvePlanProductName: (data: Record<string, any> | null | undefined) => string;
4
+ export declare const resolvePlanShopAccountCode: (data: Record<string, any> | null | undefined) => string;
5
+ export declare const resolvePlanShopAccountName: (data: Record<string, any> | null | undefined) => string;
6
+ export declare const formatPlanShopAccountDisplay: (data: Record<string, any> | null | undefined) => string;
7
+ /** 补全 product_name / shop_account / shop_account_name / shop_account_display */
8
+ export declare const enrichPlanProductRow: (item: Record<string, any>, fallback?: Record<string, any> | null) => {
9
+ product_name: string;
10
+ shop_account: string;
11
+ shop_account_name: string;
12
+ shop_account_display: string;
13
+ };
14
+ /** 从详情产品行提取图片 URL(兼容根字段、bis_sku、父级详情) */
15
+ export declare const pickDetailProductImage: (item: any, fallback?: any) => string;
16
+ /** 解析详情附件 JSON */
17
+ export declare const parsePlanDetailAttachments: (raw: unknown) => any[];
@@ -0,0 +1,33 @@
1
+ export type PurchaseQtyDetail = {
2
+ sku_code?: string;
3
+ purchase_no?: string;
4
+ not_qc_qty: number;
5
+ qc_in_progress_qty: number;
6
+ putaway_pending_qty: number;
7
+ good_qty: number;
8
+ bad_qty: number;
9
+ return_qty: number;
10
+ exchange_qty: number;
11
+ };
12
+ export type DeliveryQtyDetail = {
13
+ sku_code?: string;
14
+ purchase_no?: string;
15
+ approve_qty: number;
16
+ notified_qty: number;
17
+ unnotified_qty: number;
18
+ };
19
+ export declare const normalizeResponseList: (res: unknown) => unknown[];
20
+ export declare const parseQtyDetailItem: (item: Record<string, unknown> | null | undefined) => PurchaseQtyDetail | null;
21
+ export declare const parseDeliveryQtyDetailItem: (item: Record<string, unknown> | null | undefined) => DeliveryQtyDetail | null;
22
+ export declare const findPurchaseQtyRecord: (res: unknown, purchaseNo: string) => Record<string, unknown> | null;
23
+ export declare const buildSkuQtyMap: (record: Record<string, unknown> | null) => Map<string, PurchaseQtyDetail>;
24
+ export declare const buildSkuDeliveryQtyMap: (record: Record<string, unknown> | null) => Map<string, DeliveryQtyDetail>;
25
+ export declare const calcArrivedQtyTotal: (detail?: PurchaseQtyDetail | null) => number | null;
26
+ export declare const calcPendingDeliveryQtyTotal: (detail?: DeliveryQtyDetail | null) => number | null;
27
+ export declare const formatQtyTotal: (total: number | null | undefined) => string;
28
+ export declare const formatQtyField: (detail: PurchaseQtyDetail | null | undefined, key: keyof PurchaseQtyDetail) => string;
29
+ export declare const formatDeliveryQtyField: (detail: DeliveryQtyDetail | null | undefined, key: "approve_qty" | "notified_qty" | "unnotified_qty") => string;
30
+ export declare const mergeProductQtyDetails: (products: Array<Record<string, unknown>>, purchaseNo: string, wmsRes: unknown, deliveryRes: unknown) => {
31
+ qty_detail: PurchaseQtyDetail | null;
32
+ delivery_qty_detail: DeliveryQtyDetail | null;
33
+ }[];
@@ -66,11 +66,11 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
66
66
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
67
67
  search: () => void;
68
68
  reset: () => void;
69
+ "tab-change": (name: string) => void;
69
70
  download: () => void;
70
71
  "settings-save": () => void;
71
72
  "restore-default": () => void;
72
73
  "more-filter-search": () => void;
73
- "tab-change": (name: string) => void;
74
74
  }, string, PublicProps, Readonly< ExtractPropTypes<{
75
75
  modelValue: PropType<string | number>;
76
76
  showMoreFilter: {
@@ -130,11 +130,11 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
130
130
  }>> & Readonly<{
131
131
  onSearch?: (() => any) | undefined;
132
132
  onReset?: (() => any) | undefined;
133
+ "onTab-change"?: ((name: string) => any) | undefined;
133
134
  onDownload?: (() => any) | undefined;
134
135
  "onSettings-save"?: (() => any) | undefined;
135
136
  "onRestore-default"?: (() => any) | undefined;
136
137
  "onMore-filter-search"?: (() => any) | undefined;
137
- "onTab-change"?: ((name: string) => any) | undefined;
138
138
  }>, {
139
139
  showMoreFilter: boolean;
140
140
  showDownload: boolean;
@@ -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,47 @@
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
+ flat?: boolean;
8
+ }>, {
9
+ list: () => never[];
10
+ loading: boolean;
11
+ showFnsku: boolean;
12
+ flat: boolean;
13
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
+ list?: Record<string, any>[];
15
+ loading?: boolean;
16
+ showFnsku?: boolean;
17
+ /** 采购计划详情等场景:逐条平铺,不展开组合品 */
18
+ flat?: boolean;
19
+ }>, {
20
+ list: () => never[];
21
+ loading: boolean;
22
+ showFnsku: boolean;
23
+ flat: boolean;
24
+ }>>> & Readonly<{}>, {
25
+ flat: boolean;
26
+ loading: boolean;
27
+ list: Record<string, any>[];
28
+ showFnsku: boolean;
29
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
@@ -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,25 @@
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 buildFlatProcessingOrderRows(list: Record<string, any>[]): {
7
+ id: any;
8
+ processing_order_no: any;
9
+ purchase_plan_no: any;
10
+ image: any;
11
+ product_name: any;
12
+ sku: any;
13
+ shop_account: any;
14
+ shop_account_name: any;
15
+ fnsku: any;
16
+ seller_sku: any;
17
+ plan_qty: any;
18
+ processed_qty: any;
19
+ pending_qty: string | number;
20
+ expected_date: any;
21
+ creator_leader_name: any;
22
+ ctime: any;
23
+ }[];
24
+ /** 报关单展开为产品扁平行 */
25
+ export declare function flattenDeclarationRows(list: Record<string, any>[]): Record<string, any>[];
@@ -0,0 +1,2 @@
1
+ export declare const displayDash: (value: unknown) => string;
2
+ export declare const getInfoTagType: (status?: number, success?: number[], warning?: number[]) => "info" | "success" | "warning";
@@ -1,2 +1,4 @@
1
1
  /** 统一解析列表接口返回;单条 detail 也会包成数组 */
2
2
  export declare function parseListResponse(res: any): Record<string, any>[];
3
+ /** 从 list 接口结果取总数,供关联单据 Tab 角标使用 */
4
+ export declare function parseListTotal(res: any, type?: string): number;
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';