jgy-public-component 0.0.40 → 0.0.41

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.
@@ -2,6 +2,29 @@
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
+ /** 采购单关联加工单:对齐 WMS 加工单列表(一行一单,不树形展开) */
6
+ export declare function buildPurchaseRelatedProcessingRows(list: Record<string, any>[]): {
7
+ id: any;
8
+ processing_order_no: any;
9
+ urgent_flag: number;
10
+ image: any;
11
+ product_name: any;
12
+ sku: any;
13
+ product_type: number;
14
+ isCombo: boolean;
15
+ orderItems: any[];
16
+ status: number;
17
+ status_name: any;
18
+ warehouse_name: any;
19
+ plan_qty: any;
20
+ can_process_qty: any;
21
+ pending_process_qty: any;
22
+ processed_qty: any;
23
+ creator_leader_name: any;
24
+ ctime: any;
25
+ expected_date: any;
26
+ processing_memo: any;
27
+ }[];
5
28
  /** 加工单关联行(采购计划详情:逐条平铺,组合品用下拉看 order_item) */
6
29
  export declare function buildFlatProcessingOrderRows(list: Record<string, any>[]): {
7
30
  id: any;
@@ -102,5 +125,21 @@ export declare function flattenPaymentRequestRows(list: Record<string, any>[]):
102
125
  payer: any;
103
126
  pay_remark: any;
104
127
  }[];
128
+ /** 收款单按单据头平铺(对齐采购单关联收款单截图:一条收款单一行) */
129
+ export declare function flattenReceiptVoucherRows(list: Record<string, any>[]): {
130
+ id: any;
131
+ receipt_voucher_no: any;
132
+ is_urgent: boolean;
133
+ receipt_type_name: any;
134
+ status: number;
135
+ status_name: any;
136
+ payer_name: any;
137
+ payee_name: any;
138
+ receipt_amount: string;
139
+ last_receipt_time: string;
140
+ applicant_name: any;
141
+ apply_time: any;
142
+ receipt_remark: any;
143
+ }[];
105
144
  /** 报关单展开为产品明细行(对齐关联单据截图) */
106
145
  export declare function flattenDeclarationRows(list: Record<string, any>[]): Record<string, any>[];
@@ -1,2 +1,4 @@
1
1
  export declare const displayDash: (value: unknown) => string;
2
+ /** 把逗号分隔的码值映射成文案,如 return_type "1,3" → 退货退款、仅退款 */
3
+ export declare const formatMappedCodes: (value: unknown, map: Record<string, string>) => string;
2
4
  export declare const getInfoTagType: (status?: number, success?: number[], warning?: number[]) => "info" | "success" | "warning";