jgy-public-component 0.0.37 → 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.
- package/dist/components/JDocDetail/labels/inbound.d.ts +2 -0
- package/dist/components/JDocDetail/types.d.ts +22 -0
- package/dist/components/JDocDetail/utils/deliveryDocDisplayHelpers.d.ts +16 -0
- package/dist/components/JDocDetail/utils/planDisplayHelpers.d.ts +17 -0
- package/dist/components/JDocDetail/utils/purchaseQty.d.ts +33 -0
- package/dist/components/JListSearchHeader/JListSearchHeader.d.ts +2 -2
- package/dist/components/JRelatedDocs/tables/RelatedProcessingOrderTable.d.ts +7 -0
- package/dist/components/JRelatedDocs/utils/buildRelatedRows.d.ts +19 -0
- package/dist/index.js +8245 -6456
- 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
|
@@ -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;
|
|
@@ -3,19 +3,26 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
3
3
|
list?: Record<string, any>[];
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
showFnsku?: boolean;
|
|
6
|
+
/** 采购计划详情等场景:逐条平铺,不展开组合品 */
|
|
7
|
+
flat?: boolean;
|
|
6
8
|
}>, {
|
|
7
9
|
list: () => never[];
|
|
8
10
|
loading: boolean;
|
|
9
11
|
showFnsku: boolean;
|
|
12
|
+
flat: boolean;
|
|
10
13
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
14
|
list?: Record<string, any>[];
|
|
12
15
|
loading?: boolean;
|
|
13
16
|
showFnsku?: boolean;
|
|
17
|
+
/** 采购计划详情等场景:逐条平铺,不展开组合品 */
|
|
18
|
+
flat?: boolean;
|
|
14
19
|
}>, {
|
|
15
20
|
list: () => never[];
|
|
16
21
|
loading: boolean;
|
|
17
22
|
showFnsku: boolean;
|
|
23
|
+
flat: boolean;
|
|
18
24
|
}>>> & Readonly<{}>, {
|
|
25
|
+
flat: boolean;
|
|
19
26
|
loading: boolean;
|
|
20
27
|
list: Record<string, any>[];
|
|
21
28
|
showFnsku: boolean;
|
|
@@ -2,5 +2,24 @@
|
|
|
2
2
|
export declare function buildPurchasePlanRows(list: Record<string, any>[]): Record<string, any>[];
|
|
3
3
|
/** 加工单关联行:组合产品及采购明细展开 */
|
|
4
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
|
+
}[];
|
|
5
24
|
/** 报关单展开为产品扁平行 */
|
|
6
25
|
export declare function flattenDeclarationRows(list: Record<string, any>[]): Record<string, any>[];
|