jgy-public-component 0.0.46 → 0.0.47
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/README.md +4 -1
- package/dist/components/JApprovalFlow/JApprovalAddSignDialog.d.ts +28 -0
- package/dist/components/JApprovalFlow/JApprovalAuditDialog.d.ts +26 -0
- package/dist/components/JApprovalFlow/JApprovalFlow.d.ts +11 -0
- package/dist/components/JApprovalFlow/JApprovalReturnDialog.d.ts +28 -0
- package/dist/components/JApprovalFlow/JApprovalTransferDialog.d.ts +28 -0
- package/dist/components/JApprovalFlow/apiPaths.d.ts +20 -2
- package/dist/components/JApprovalFlow/index.d.ts +1 -1
- package/dist/components/JApprovalFlow/useApprovalHttp.d.ts +7 -0
- package/dist/components/JDocDetail/store.d.ts +1 -1
- package/dist/components/JProductDetail/JProductDetailDialog.d.ts +1 -1
- package/dist/components/JProductSelectDialog/JProductSelectDialog.d.ts +2 -2
- package/dist/index.js +8142 -7228
- 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
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 | 审批进度(时间线 + 审核/转审/回退/加签/取消,需注入 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,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
|
+
};
|
|
@@ -12,11 +12,17 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
12
12
|
type: FunctionConstructor;
|
|
13
13
|
default: null;
|
|
14
14
|
};
|
|
15
|
+
hideHeader: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
15
19
|
}>, {
|
|
16
20
|
logs: Ref<any[], any[]>;
|
|
17
21
|
raw: Ref<any, any>;
|
|
18
22
|
loading: Ref<boolean, boolean>;
|
|
23
|
+
instance: Ref<any, any>;
|
|
19
24
|
fetchLogs: () => Promise<void>;
|
|
25
|
+
fetchInstance: () => Promise<void>;
|
|
20
26
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
27
|
success: (...args: any[]) => void;
|
|
22
28
|
loaded: (...args: any[]) => void;
|
|
@@ -34,6 +40,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
34
40
|
type: FunctionConstructor;
|
|
35
41
|
default: null;
|
|
36
42
|
};
|
|
43
|
+
hideHeader: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
37
47
|
}>> & Readonly<{
|
|
38
48
|
onSuccess?: ((...args: any[]) => any) | undefined;
|
|
39
49
|
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
@@ -42,5 +52,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
42
52
|
process_code: string;
|
|
43
53
|
business_key: string;
|
|
44
54
|
request: Function;
|
|
55
|
+
hideHeader: boolean;
|
|
45
56
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
46
57
|
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
|
-
/**
|
|
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,2 @@
|
|
|
1
1
|
export { default as JApprovalFlow } from './JApprovalFlow';
|
|
2
|
-
export { APPROVAL_FLOW_LOGS_URL, APPROVAL_AUDIT_URL } from './apiPaths';
|
|
2
|
+
export { APPROVAL_FLOW_LOGS_URL, APPROVAL_AUDIT_URL, APPROVAL_INSTANCE_LIST_URL, } from './apiPaths';
|
|
@@ -14,7 +14,7 @@ export declare const useDocDetailStore: StoreDefinition<"jgyDocDetail", Pick<{
|
|
|
14
14
|
open: (docType: DocDetailType, no: string) => Promise<void>;
|
|
15
15
|
close: () => void;
|
|
16
16
|
reset: () => void;
|
|
17
|
-
}, "type" | "
|
|
17
|
+
}, "type" | "visible" | "orderNo">, Pick<{
|
|
18
18
|
visible: Ref<boolean, boolean>;
|
|
19
19
|
type: Ref<string, string>;
|
|
20
20
|
orderNo: Ref<string, string>;
|
|
@@ -21,8 +21,8 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
21
21
|
type: "sku" | "spu";
|
|
22
22
|
code: string;
|
|
23
23
|
id: number | string;
|
|
24
|
-
request: JProductRequestFn;
|
|
25
24
|
visible: boolean;
|
|
25
|
+
request: JProductRequestFn;
|
|
26
26
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
27
27
|
export default _default;
|
|
28
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -69,8 +69,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
69
69
|
clearSelected: () => void;
|
|
70
70
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
71
71
|
open: () => void;
|
|
72
|
-
closed: () => void;
|
|
73
72
|
confirm: (rows: Row[]) => void;
|
|
73
|
+
closed: () => void;
|
|
74
74
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
75
75
|
modelValue: PropType<boolean>;
|
|
76
76
|
title: {
|
|
@@ -124,8 +124,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
124
124
|
};
|
|
125
125
|
}>> & Readonly<{
|
|
126
126
|
onOpen?: (() => any) | undefined;
|
|
127
|
-
onClosed?: (() => any) | undefined;
|
|
128
127
|
onConfirm?: ((rows: Row[]) => any) | undefined;
|
|
128
|
+
onClosed?: (() => any) | undefined;
|
|
129
129
|
}>, {
|
|
130
130
|
title: string;
|
|
131
131
|
width: string;
|