jgy-public-component 0.0.46 → 0.0.48

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 (43) hide show
  1. package/README.md +4 -1
  2. package/dist/components/JApprovalFlow/JApprovalActions.d.ts +3 -0
  3. package/dist/components/JApprovalFlow/JApprovalAddSignDialog.d.ts +28 -0
  4. package/dist/components/JApprovalFlow/JApprovalAuditDialog.d.ts +26 -0
  5. package/dist/components/JApprovalFlow/JApprovalFlow.d.ts +27 -6
  6. package/dist/components/JApprovalFlow/JApprovalReturnDialog.d.ts +28 -0
  7. package/dist/components/JApprovalFlow/JApprovalTransferDialog.d.ts +28 -0
  8. package/dist/components/JApprovalFlow/apiPaths.d.ts +20 -2
  9. package/dist/components/JApprovalFlow/index.d.ts +4 -1
  10. package/dist/components/JApprovalFlow/useApprovalFlow.d.ts +43 -0
  11. package/dist/components/JApprovalFlow/useApprovalHttp.d.ts +7 -0
  12. package/dist/components/JDocDetail/apiPaths.d.ts +60 -0
  13. package/dist/components/JDocDetail/fetch.d.ts +13 -0
  14. package/dist/components/JDocDetail/index.d.ts +2 -2
  15. package/dist/components/JDocDetail/registry.d.ts +1 -0
  16. package/dist/components/JDocDetail/store.d.ts +19 -5
  17. package/dist/components/JDocDetail/types.d.ts +33 -1
  18. package/dist/components/JDocDetail/useDocDetailApproval.d.ts +13 -0
  19. package/dist/components/JDocDetail/utils/paymentRequestDisplay.d.ts +6 -0
  20. package/dist/components/JDocDetail/utils/receiptVoucherDisplay.d.ts +11 -0
  21. package/dist/components/JDocDetail/views/AppointmentOrderDetailView.d.ts +22 -0
  22. package/dist/components/JDocDetail/views/AuditDiffPanel.d.ts +32 -0
  23. package/dist/components/JDocDetail/views/FbaShipPlanDetailView.d.ts +22 -0
  24. package/dist/components/JDocDetail/views/FrameContractDetailView.d.ts +22 -0
  25. package/dist/components/JDocDetail/views/InventoryAdjustDetailView.d.ts +22 -0
  26. package/dist/components/JDocDetail/views/LogisticsProviderDetailView.d.ts +22 -0
  27. package/dist/components/JDocDetail/views/PurchaseBudgetDetailView.d.ts +22 -0
  28. package/dist/components/JDocDetail/views/ReplenishmentPlanDetailView.d.ts +22 -0
  29. package/dist/components/JDocDetail/views/SupplierDetailView.d.ts +22 -0
  30. package/dist/components/JDocDetail/views/SupplierProductProfileAuditView.d.ts +22 -0
  31. package/dist/components/JDocDetail/views/SupplierProductQuoteAuditView.d.ts +22 -0
  32. package/dist/components/JDocDetail/views/SupplierProfileChangeAuditView.d.ts +22 -0
  33. package/dist/components/JDocDetail/views/TmsPaymentRequestDetailView.d.ts +22 -0
  34. package/dist/components/JDocDetail/wmsViews.d.ts +13 -1
  35. package/dist/components/JProductDetail/JProductDetailDialog.d.ts +1 -1
  36. package/dist/components/JProductSelectDialog/JProductSelectDialog.d.ts +2 -2
  37. package/dist/index.d.ts +4 -4
  38. package/dist/index.js +18351 -12255
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.umd.cjs +2 -2
  41. package/dist/index.umd.cjs.map +1 -1
  42. package/dist/style.css +1 -1
  43. package/package.json +1 -1
package/README.md CHANGED
@@ -56,10 +56,13 @@ import 'jgy-public-component/dist/style.css'
56
56
  | JProductDetailDialog / JSkuLink | 产品详情 / SKU 链接(需注入 request) |
57
57
  | DocNoLink / DocDetailHost | 单号链接 + 全局单据详情(需 createDocDetail 注册) |
58
58
  | JRelatedDocs | 关联单据子 Tab 容器(需 createRelatedDocs 注入接口) |
59
+ | JApprovalFlow / JApprovalActions | 审批进度 + 底部操作(审核/转审/回退/加签,需注入 request) |
59
60
 
60
61
  工具方法:数据转换、按钮权限、状态条数 / Tabs、`exportStyledExcel` 前端导出 Excel、路由守卫。
61
62
 
62
- > 完整 Props / 事件 / 插槽、业务组件接入步骤与排错,见 [`docs/index.html`](docs/index.html)(可离线打开)。
63
+ > 完整 Props / 事件 / 插槽、业务组件接入步骤与排错,见 [`docs/index.html`](docs/index.html)(可离线打开)。
64
+ > 列表筛选四件套(`JListSearchHeader` / `JRemoteSelect` / `JSupplierCycleSelect` / `JSupplierCycleDisplay`)见 [`docs/JListSearchHeader-JRemoteSelect-JSupplierCycle-使用文档.md`](docs/JListSearchHeader-JRemoteSelect-JSupplierCycle-使用文档.md)。
65
+ > 审批进度 `JApprovalFlow` 见 [`docs/JApprovalFlow-使用文档.md`](docs/JApprovalFlow-使用文档.md)。
63
66
 
64
67
  ### JListSearchHeader 快速示例
65
68
 
@@ -0,0 +1,3 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ visible: boolean;
4
+ processCode: string;
5
+ businessKey: string;
6
+ addSignPrepare?: Record<string, any> | null;
7
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ success: () => void;
9
+ "update:visible": (value: boolean) => void;
10
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ visible: boolean;
12
+ processCode: string;
13
+ businessKey: string;
14
+ addSignPrepare?: Record<string, any> | null;
15
+ }>>> & Readonly<{
16
+ onSuccess?: (() => any) | undefined;
17
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -0,0 +1,26 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ visible: boolean;
4
+ processCode: string;
5
+ businessKey: string;
6
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ success: () => void;
8
+ "update:visible": (value: boolean) => void;
9
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ visible: boolean;
11
+ processCode: string;
12
+ businessKey: string;
13
+ }>>> & Readonly<{
14
+ onSuccess?: (() => any) | undefined;
15
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
@@ -1,4 +1,5 @@
1
- import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+
2
3
  declare const _default: DefineComponent<ExtractPropTypes<{
3
4
  process_code: {
4
5
  type: StringConstructor;
@@ -9,18 +10,28 @@ declare const _default: DefineComponent<ExtractPropTypes<{
9
10
  default: string;
10
11
  };
11
12
  request: {
12
- type: FunctionConstructor;
13
+ type: PropType<(config: any) => Promise<any>>;
13
14
  default: null;
14
15
  };
16
+ hideHeader: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ hideActions: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
15
24
  }>, {
16
25
  logs: Ref<any[], any[]>;
17
26
  raw: Ref<any, any>;
18
27
  loading: Ref<boolean, boolean>;
28
+ instance: Ref<any, any>;
19
29
  fetchLogs: () => Promise<void>;
30
+ fetchInstance: () => Promise<void>;
20
31
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
32
  success: (...args: any[]) => void;
22
- loaded: (...args: any[]) => void;
23
33
  error: (...args: any[]) => void;
34
+ loaded: (...args: any[]) => void;
24
35
  }, string, PublicProps, Readonly< ExtractPropTypes<{
25
36
  process_code: {
26
37
  type: StringConstructor;
@@ -31,16 +42,26 @@ declare const _default: DefineComponent<ExtractPropTypes<{
31
42
  default: string;
32
43
  };
33
44
  request: {
34
- type: FunctionConstructor;
45
+ type: PropType<(config: any) => Promise<any>>;
35
46
  default: null;
36
47
  };
48
+ hideHeader: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ hideActions: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
37
56
  }>> & Readonly<{
38
57
  onSuccess?: ((...args: any[]) => any) | undefined;
39
- onLoaded?: ((...args: any[]) => any) | undefined;
40
58
  onError?: ((...args: any[]) => any) | undefined;
59
+ onLoaded?: ((...args: any[]) => any) | undefined;
41
60
  }>, {
42
61
  process_code: string;
43
62
  business_key: string;
44
- request: Function;
63
+ request: (config: any) => Promise<any>;
64
+ hideHeader: boolean;
65
+ hideActions: boolean;
45
66
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
46
67
  export default _default;
@@ -0,0 +1,28 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ visible: boolean;
4
+ processCode: string;
5
+ businessKey: string;
6
+ returnPrepare?: Record<string, any> | null;
7
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ success: () => void;
9
+ "update:visible": (value: boolean) => void;
10
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ visible: boolean;
12
+ processCode: string;
13
+ businessKey: string;
14
+ returnPrepare?: Record<string, any> | null;
15
+ }>>> & Readonly<{
16
+ onSuccess?: (() => any) | undefined;
17
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -0,0 +1,28 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ visible: boolean;
4
+ processCode: string;
5
+ businessKey: string;
6
+ transferPrepare?: Record<string, any> | null;
7
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ success: () => void;
9
+ "update:visible": (value: boolean) => void;
10
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
11
+ visible: boolean;
12
+ processCode: string;
13
+ businessKey: string;
14
+ transferPrepare?: Record<string, any> | null;
15
+ }>>> & Readonly<{
16
+ onSuccess?: (() => any) | undefined;
17
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -1,4 +1,22 @@
1
- /** 审批流程日志(process_code + business_key) */
1
+ /** 审批流程日志(入参 process_code + business_key,按节点返回 users) */
2
2
  export declare const APPROVAL_FLOW_LOGS_URL = "/workhome-app/index/approvalInstance/flowLogs";
3
- /** 审核通过 / 驳回(先内置,时间线操作后续再用) */
3
+ /** 审批实例列表(取 status / transfer_prepare / return_prepare / add_sign_prepare / can_cancel,决定底部按钮显隐) */
4
+ export declare const APPROVAL_INSTANCE_LIST_URL = "/workhome-app/index/approvalInstance/list";
5
+ /** 审核:通过 approved / 驳回 rejected(意见必填) */
4
6
  export declare const APPROVAL_AUDIT_URL = "/workhome-app/index/approvalInstance/audit";
7
+ /** 转审前置校验(can_transfer、mode=self|proxy、pending_handlers) */
8
+ export declare const APPROVAL_TRANSFER_PREPARE_URL = "/workhome-app/index/approvalInstance/transferPrepare";
9
+ /** 转审提交(transfer_user,管理员代转需带 task_id) */
10
+ export declare const APPROVAL_TRANSFER_URL = "/workhome-app/index/approvalInstance/transfer";
11
+ /** 回退前置校验(can_return、上一节点 prev_node_name、pending_handlers) */
12
+ export declare const APPROVAL_RETURN_PREPARE_URL = "/workhome-app/index/approvalInstance/returnPrepare";
13
+ /** 回退至上一审批节点(本人回退 comment 必填,代退需 task_id) */
14
+ export declare const APPROVAL_RETURN_URL = "/workhome-app/index/approvalInstance/returnPrevious";
15
+ /** 加签前置校验(can_add_sign、current_node_name、exclude_users) */
16
+ export declare const APPROVAL_ADD_SIGN_PREPARE_URL = "/workhome-app/index/approvalInstance/addSignPrepare";
17
+ /** 当前节点加签(add_sign_user,代加签需 task_id) */
18
+ export declare const APPROVAL_ADD_SIGN_URL = "/workhome-app/index/approvalInstance/addSign";
19
+ /** 取消审批(发起人或有权限时终止流程) */
20
+ export declare const APPROVAL_CANCEL_URL = "/workhome-app/index/approvalInstance/cancel";
21
+ /** 转审/加签选人(用户列表 username + name) */
22
+ export declare const APPROVAL_USER_LIST_URL = "/rms-app/comm/user/list";
@@ -1,2 +1,5 @@
1
1
  export { default as JApprovalFlow } from './JApprovalFlow';
2
- export { APPROVAL_FLOW_LOGS_URL, APPROVAL_AUDIT_URL } from './apiPaths';
2
+ export { default as JApprovalActions } from './JApprovalActions';
3
+ export { createApprovalFlow, useApprovalFlow, J_APPROVAL_FLOW_KEY, J_DOC_APPROVAL_BUSINESS_KEY, J_DOC_APPROVAL_PROCESS_CODE, J_DOC_APPROVAL_SHOW_ACTIONS, } from './useApprovalFlow';
4
+ export type { ApprovalFlowApi } from './useApprovalFlow';
5
+ export { APPROVAL_FLOW_LOGS_URL, APPROVAL_AUDIT_URL, APPROVAL_INSTANCE_LIST_URL, } from './apiPaths';
@@ -0,0 +1,43 @@
1
+ import { ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from 'vue';
2
+
3
+ export type ApprovalFlowApi = {
4
+ process_code: ComputedRef<string>;
5
+ business_key: ComputedRef<string>;
6
+ loading: Ref<boolean>;
7
+ logs: Ref<any[]>;
8
+ raw: Ref<any>;
9
+ instance: Ref<any>;
10
+ auditVisible: Ref<boolean>;
11
+ transferVisible: Ref<boolean>;
12
+ returnVisible: Ref<boolean>;
13
+ addSignVisible: Ref<boolean>;
14
+ canShowAudit: ComputedRef<boolean>;
15
+ canShowTransfer: ComputedRef<boolean>;
16
+ canShowReturn: ComputedRef<boolean>;
17
+ canShowAddSign: ComputedRef<boolean>;
18
+ canShowCancel: ComputedRef<boolean>;
19
+ hasActions: ComputedRef<boolean>;
20
+ handleCancel: () => Promise<void>;
21
+ handleActionSuccess: () => void;
22
+ loadFlow: () => void;
23
+ fetchLogs: () => Promise<void>;
24
+ fetchInstance: () => Promise<void>;
25
+ };
26
+ export declare const J_APPROVAL_FLOW_KEY: InjectionKey<ApprovalFlowApi>;
27
+ /** DocDetailHost 注入:审批 flow logs 用 business_key,与单据详情单号分开 */
28
+ export declare const J_DOC_APPROVAL_BUSINESS_KEY: InjectionKey<ComputedRef<string>>;
29
+ /** DocDetailHost 注入:AIOP 行上的 process_code(同一详情可对应多个流程) */
30
+ export declare const J_DOC_APPROVAL_PROCESS_CODE: InjectionKey<ComputedRef<string>>;
31
+ /** DocDetailHost 注入:是否展示底部审批按钮(查看 false / 审批 true) */
32
+ export declare const J_DOC_APPROVAL_SHOW_ACTIONS: InjectionKey<ComputedRef<boolean>>;
33
+ export declare function createApprovalFlow(options: {
34
+ process_code: MaybeRefOrGetter<string>;
35
+ business_key: MaybeRefOrGetter<string>;
36
+ /** 为 false 时不打 flowLogs / instance。单据详情未接入审批或未传入 process_code 时应关掉 */
37
+ enabled?: MaybeRefOrGetter<boolean>;
38
+ request?: ((config: any) => Promise<any>) | null;
39
+ onSuccess?: () => void;
40
+ onLoaded?: (logs: any[], raw: any) => void;
41
+ onError?: (msg: string) => void;
42
+ }): ApprovalFlowApi;
43
+ export declare function useApprovalFlow(): ApprovalFlowApi;
@@ -0,0 +1,7 @@
1
+ export declare const isOkFlag: (value: unknown) => value is true | 1 | "1" | "true";
2
+ export declare function useApprovalHttp(): (config: {
3
+ url: string;
4
+ method?: string;
5
+ data?: any;
6
+ params?: any;
7
+ }) => Promise<any>;
@@ -52,6 +52,30 @@ export declare const DOC_DETAIL_API: {
52
52
  url: string;
53
53
  param: string;
54
54
  };
55
+ appointment: {
56
+ url: string;
57
+ param: string;
58
+ };
59
+ supplier: {
60
+ url: string;
61
+ param: string;
62
+ };
63
+ supplierProductProfile: {
64
+ url: string;
65
+ param: string;
66
+ };
67
+ supplierProductQuote: {
68
+ url: string;
69
+ param: string;
70
+ };
71
+ supplierProfileChange: {
72
+ url: string;
73
+ param: string;
74
+ };
75
+ logisticsProvider: {
76
+ url: string;
77
+ param: string;
78
+ };
55
79
  purchase: {
56
80
  url: string;
57
81
  param: string;
@@ -80,9 +104,37 @@ export declare const DOC_DETAIL_API: {
80
104
  url: string;
81
105
  param: string;
82
106
  };
107
+ frameContract: {
108
+ url: string;
109
+ param: string;
110
+ };
111
+ purchaseBudget: {
112
+ url: string;
113
+ param: string;
114
+ };
115
+ fbaShipPlan: {
116
+ url: string;
117
+ param: string;
118
+ };
119
+ tmsPayment: {
120
+ url: string;
121
+ param: string;
122
+ };
123
+ inventoryAdjust: {
124
+ url: string;
125
+ param: string;
126
+ };
127
+ replenishmentPlan: {
128
+ url: string;
129
+ param: string;
130
+ };
83
131
  };
84
132
  /** 合同详情第二步(用列表拿到的 id) */
85
133
  export declare const PURCHASE_CONTRACT_DETAIL_URL = "/scm-app/comm/PurchaseContract/queryContract";
134
+ /** 采购预算列表兜底(queryBudget 无数据时按 id 取一条) */
135
+ export declare const PURCHASE_BUDGET_LIST_URL = "/scm-app/comm/PurchaseBudget/budgetList";
136
+ /** FBA 发货计划列表兜底(getDetail 无数据时按 plan_no 取一条再查详情) */
137
+ export declare const FBA_SHIP_PLAN_LIST_URL = "/inbound-app/admin/shippingPlan/list";
86
138
  /** 打开详情后,按 Tab / 附属数据再打的接口 */
87
139
  export declare const DOC_EXTRA_API: {
88
140
  skuDetail: {
@@ -136,6 +188,14 @@ export declare const DOC_EXTRA_API: {
136
188
  url: string;
137
189
  param: string;
138
190
  };
191
+ inventoryAdjustLogs: {
192
+ url: string;
193
+ param: string;
194
+ };
195
+ replenishmentPlanLogs: {
196
+ url: string;
197
+ param: string;
198
+ };
139
199
  };
140
200
  /** 关联单据列表。入参字段由各详情里的 relatedDocTypes.paramKey 决定,这里只收 URL */
141
201
  export declare const RELATED_DOC_API: {
@@ -1,6 +1,11 @@
1
1
  export declare function postDoc(url: string, data?: any): Promise<any>;
2
2
  /** 按单据 type 打详情。合同 / 送货单现网是先列表再取一条。 */
3
3
  export declare function fetchDocByType(type: string, orderNo: string): Promise<any>;
4
+ export declare function fetchInventoryAdjustLogs(orderId: string | number): Promise<{
5
+ code: any;
6
+ data: any[];
7
+ msg: any;
8
+ }>;
4
9
  export declare function fetchSkuDetail(skuCode: string): Promise<any>;
5
10
  export declare function fetchActionLogList(params: any): Promise<any>;
6
11
  export declare function fetchPurchaseItemList(purchaseNo: string): Promise<any>;
@@ -26,6 +31,14 @@ export declare function fetchDeliveryDocPurchaseItems(deliveryNo: string): Promi
26
31
  data: any[];
27
32
  msg: any;
28
33
  }>;
34
+ export declare function fetchReceiptVoucherLogs(params: {
35
+ id?: string | number;
36
+ receipt_voucher_no: string;
37
+ }): Promise<{
38
+ code: any;
39
+ data: any[];
40
+ msg: any;
41
+ }>;
29
42
  export declare function fetchDeliveryDocProductTags(deliveryNo: string): Promise<{
30
43
  code: any;
31
44
  data: any[];
@@ -10,11 +10,11 @@
10
10
  * WMS 可直接用 wmsDocDetailComponents 作为 components。
11
11
  */
12
12
  export type { DocDetailType, DocDetailAdapters, DocDetailRegistryItem, DocDetailComponents, CreateDocDetailOptions, DocDetailViewOptions, PurchaseOrderTabName, } from './types';
13
- export { createDocDetail, registerDocDetail, getDocDetailRegistry, getDocDetailAdapters, getDocDetailViewOptions, getApprovalProcessCode, hasApprovalFlow, getDocDetailEntry, isDocDetailInitialized, } from './registry';
13
+ export { createDocDetail, registerDocDetail, getDocDetailRegistry, getDocDetailAdapters, getDocDetailViewOptions, getApprovalProcessCode, hasApprovalFlow, getDocTypeByProcessCode, getDocDetailEntry, isDocDetailInitialized, } from './registry';
14
14
  export { useDocDetailStore } from './store';
15
15
  export { provideDocRequest, setDocRequest, getDocRequest } from './request';
16
16
  export type { JDocRequestFn } from './request';
17
17
  export { DOC_DETAIL_API, DOC_EXTRA_API, RELATED_DOC_API, PURCHASE_CONTRACT_DETAIL_URL, } from './apiPaths';
18
18
  export { default as DocNoLink } from './DocNoLink';
19
19
  export { default as DocDetailHost } from './DocDetailHost';
20
- export { wmsDocDetailComponents, ReceiptOrderDetailView, QcOrderDetailView, InboundOrderDetailView, PutawayOrderDetailView, DeliveryOrderDetailView, TransferOrderDetailView, WorkOrderDetailView, AbnormalOrderDetailView, PaymentRequestDetailView, ReturnOrderDetailView, CostExpenseDetailView, ReceiptVoucherDetailView, PurchaseOrderDetailView, PurchasePlanDetailView, PurchaseContractDetailView, DeliveryDocDetailView, StockTakeOrderDetailView, PackingTaskDetailView, TransportOrderDetailView, } from './wmsViews';
20
+ export { wmsDocDetailComponents, ReceiptOrderDetailView, QcOrderDetailView, InboundOrderDetailView, PutawayOrderDetailView, DeliveryOrderDetailView, TransferOrderDetailView, WorkOrderDetailView, AbnormalOrderDetailView, PaymentRequestDetailView, ReturnOrderDetailView, CostExpenseDetailView, ReceiptVoucherDetailView, PurchaseOrderDetailView, PurchasePlanDetailView, PurchaseContractDetailView, FrameContractDetailView, PurchaseBudgetDetailView, DeliveryDocDetailView, StockTakeOrderDetailView, PackingTaskDetailView, TransportOrderDetailView, AppointmentOrderDetailView, SupplierDetailView, SupplierProductProfileAuditView, SupplierProductQuoteAuditView, SupplierProfileChangeAuditView, LogisticsProviderDetailView, FbaShipPlanDetailView, TmsPaymentRequestDetailView, InventoryAdjustDetailView, ReplenishmentPlanDetailView, } from './wmsViews';
@@ -21,6 +21,7 @@ export declare function getDocDetailAdapters(): DocDetailAdapters;
21
21
  export declare function getDocDetailViewOptions(): DocDetailViewOptions;
22
22
  export declare function getApprovalProcessCode(type: string): string;
23
23
  export declare function hasApprovalFlow(type: string): boolean;
24
+ export declare function getDocTypeByProcessCode(processCode: string): string;
24
25
  export declare function isDocDetailInitialized(): boolean;
25
26
  export declare function getDocDetailEntry(type: string): {
26
27
  component: Component;
@@ -4,28 +4,42 @@ import { Ref } from 'vue';
4
4
 
5
5
  /**
6
6
  * 全局单据详情状态
7
- * 业务页:DocNoLink / store.open(type, orderNo)
7
+ * 业务页:DocNoLink / store.open(type, orderNo, businessKey?, processCode?, showApprovalActions?)
8
8
  * 宿主:DocDetailHost 按 registry 渲染
9
+ *
10
+ * orderNo:业务单号(AIOP 的 business_no),打单据详情接口
11
+ * businessKey:审批实例键(AIOP 的 business_key),只给 JApprovalFlow / flow logs
12
+ * processCode:明确传入才拉审批进度(DocNoLink 不传则只有单据)
13
+ * showApprovalActions:true 时底部才出审核/转审/回退/加签(AIOP「审批」入口)
9
14
  */
10
15
  export declare const useDocDetailStore: StoreDefinition<"jgyDocDetail", Pick<{
11
16
  visible: Ref<boolean, boolean>;
12
17
  type: Ref<string, string>;
13
18
  orderNo: Ref<string, string>;
14
- open: (docType: DocDetailType, no: string) => Promise<void>;
19
+ businessKey: Ref<string, string>;
20
+ processCode: Ref<string, string>;
21
+ showApprovalActions: Ref<boolean, boolean>;
22
+ open: (docType: DocDetailType, no: string, approvalKey?: string, approvalProcessCode?: string, withApprovalActions?: boolean) => Promise<void>;
15
23
  close: () => void;
16
24
  reset: () => void;
17
- }, "type" | "orderNo" | "visible">, Pick<{
25
+ }, "type" | "visible" | "processCode" | "businessKey" | "orderNo" | "showApprovalActions">, Pick<{
18
26
  visible: Ref<boolean, boolean>;
19
27
  type: Ref<string, string>;
20
28
  orderNo: Ref<string, string>;
21
- open: (docType: DocDetailType, no: string) => Promise<void>;
29
+ businessKey: Ref<string, string>;
30
+ processCode: Ref<string, string>;
31
+ showApprovalActions: Ref<boolean, boolean>;
32
+ open: (docType: DocDetailType, no: string, approvalKey?: string, approvalProcessCode?: string, withApprovalActions?: boolean) => Promise<void>;
22
33
  close: () => void;
23
34
  reset: () => void;
24
35
  }, never>, Pick<{
25
36
  visible: Ref<boolean, boolean>;
26
37
  type: Ref<string, string>;
27
38
  orderNo: Ref<string, string>;
28
- open: (docType: DocDetailType, no: string) => Promise<void>;
39
+ businessKey: Ref<string, string>;
40
+ processCode: Ref<string, string>;
41
+ showApprovalActions: Ref<boolean, boolean>;
42
+ open: (docType: DocDetailType, no: string, approvalKey?: string, approvalProcessCode?: string, withApprovalActions?: boolean) => Promise<void>;
29
43
  close: () => void;
30
44
  reset: () => void;
31
45
  }, "close" | "open" | "reset">>;
@@ -103,6 +103,38 @@ export type DocDetailAdapters = {
103
103
  * 返回:{ code, data, msg };data 为单条合同(含 purchase_order_detail_list)
104
104
  */
105
105
  getPurchaseContractDetail?: (contractNo: string) => Promise<any>;
106
+ /**
107
+ * 框架合同详情,入参 contract_no
108
+ * 接口 PurchaseFrameContract/contractList,从 list 取一条
109
+ */
110
+ getFrameContractDetail?: (contractNo: string) => Promise<any>;
111
+ /**
112
+ * 采购预算详情,入参为预算 id(审批 business_key)
113
+ * 接口 queryBudget / budgetList
114
+ */
115
+ getPurchaseBudgetDetail?: (budgetId: string) => Promise<any>;
116
+ /** 预约单详情,入参 appointment_order_no */
117
+ getAppointmentDetail?: (appointmentOrderNo: string) => Promise<any>;
118
+ /** 供应商详情,入参 supplier_code */
119
+ getSupplierDetail?: (supplierCode: string) => Promise<any>;
120
+ /** 供应商产品资料审核,入参 audit_no */
121
+ getSupplierProductProfileAudit?: (auditNo: string) => Promise<any>;
122
+ /** 供应商产品报价审核,入参 audit_no */
123
+ getSupplierProductQuoteAudit?: (auditNo: string) => Promise<any>;
124
+ /** 供应商资料变更审核,入参 audit_no */
125
+ getSupplierProfileChangeAudit?: (auditNo: string) => Promise<any>;
126
+ /** 物流商详情,入参 provider_code */
127
+ getLogisticsProviderDetail?: (providerCode: string) => Promise<any>;
128
+ /** FBA发货计划详情,入参 plan_no(或数字 id) */
129
+ getFbaShipPlanDetail?: (planNo: string) => Promise<any>;
130
+ /** 物流请款单详情,入参 id;勿与 SCM 采购请款 getPaymentRequestDetail 混淆 */
131
+ getTmsPaymentDetail?: (id: string) => Promise<any>;
132
+ /** 库存调整单详情,入参 doc_no */
133
+ getInventoryAdjustDetail?: (docNo: string) => Promise<any>;
134
+ /** 库存调整单操作日志,入参 order_id */
135
+ getInventoryAdjustLogs?: (orderId: string | number) => Promise<any>;
136
+ /** 补货计划详情,入参 replenishment_plan_no;接口列表取一条 */
137
+ getReplenishmentPlanDetail?: (replenishmentPlanNo: string) => Promise<any>;
106
138
  /** 业务方可自行扩展 key */
107
139
  [key: string]: ((...args: any[]) => any) | undefined;
108
140
  };
@@ -127,7 +159,7 @@ export type DocDetailViewOptions = {
127
159
  * 单据 type → 审批流程编码。有非空编码才展示右侧审批列,否则单列铺满。
128
160
  * 会与库内默认值合并;传空字符串可关掉某类单据的审批列。
129
161
  */
130
- approvalProcessCodes?: Record<string, string>;
162
+ approvalProcessCodes?: Record<string, string | string[]>;
131
163
  };
132
164
  export type CreateDocDetailOptions = {
133
165
  /** type → 详情组件 */
@@ -0,0 +1,13 @@
1
+ import { MaybeRefOrGetter, ComputedRef } from 'vue';
2
+
3
+ /**
4
+ * 单据详情里的审批:必须同时满足
5
+ * 1. 该 type 接入了审批组件(DEFAULT_APPROVAL_PROCESS_CODES 有编码)
6
+ * 2. 打开时明确传入了 process_code(AIOP store.open 第 4 参,如 scm0004)
7
+ *
8
+ * DocNoLink 只传 type + 单号,不传 process_code,不出右栏、不打 flowLogs。
9
+ */
10
+ export declare function useDocDetailApproval(type: string, businessKey: MaybeRefOrGetter<string>, onSuccess?: () => void): {
11
+ showApproval: ComputedRef<boolean>;
12
+ approvalProcessCode: ComputedRef<string>;
13
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 付款单详情展示映射,对齐 scm mapPaymentRequestDetail。
3
+ * 已映射过的数据(含 details)原样使用;后端原字段(purchase_orders 等)在这里转成弹窗字段。
4
+ */
5
+ /** 把 queryPaymentRequest 原数据转成 PaymentRequestDetailView 展示态 */
6
+ export declare function normalizePaymentRequestDetail(input: any): any;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 收款单详情展示映射,对齐 scm mapReceiptVoucherDetail。
3
+ */
4
+ export declare function getReturnExchangeNoList(row: any): string[];
5
+ export declare function mapReceiptVoucherLogRow(row: any): {
6
+ ctime: any;
7
+ operator: any;
8
+ operat_type: any;
9
+ operat_msg: any;
10
+ };
11
+ export declare function normalizeReceiptVoucherDetail(input: any): any;
@@ -0,0 +1,22 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ modelValue: boolean;
4
+ appointmentOrderNo: string;
5
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
+ "update:modelValue": (val: boolean) => void;
7
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ modelValue: boolean;
9
+ appointmentOrderNo: string;
10
+ }>>> & Readonly<{
11
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,32 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ profileDiff?: {
4
+ fields?: Array<Record<string, unknown>>;
5
+ sections?: Array<Record<string, unknown>>;
6
+ stats?: {
7
+ total: number;
8
+ changed: number;
9
+ unchanged: number;
10
+ };
11
+ };
12
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ profileDiff?: {
14
+ fields?: Array<Record<string, unknown>>;
15
+ sections?: Array<Record<string, unknown>>;
16
+ stats?: {
17
+ total: number;
18
+ changed: number;
19
+ unchanged: number;
20
+ };
21
+ };
22
+ }>>> & Readonly<{}>, {}, {}, {}, {}, 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
+ };
@@ -0,0 +1,22 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ modelValue: boolean;
4
+ fbaPlanNo: string;
5
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
+ "update:modelValue": (val: boolean) => void;
7
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
+ modelValue: boolean;
9
+ fbaPlanNo: string;
10
+ }>>> & Readonly<{
11
+ "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };