sun-biz 0.0.4-beta.4 → 0.0.4-beta.40

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 (40) hide show
  1. package/dist/components/biz-select/biz-unit-select/api.d.ts +34 -0
  2. package/dist/components/biz-select/department-select/api.d.ts +51 -0
  3. package/dist/components/biz-select/index.d.ts +6 -0
  4. package/dist/components/biz-select/tag-select/api.d.ts +44 -0
  5. package/dist/components/biz-select/tag-select/utils.d.ts +31 -0
  6. package/dist/components/biz-select/user-select/api.d.ts +109 -0
  7. package/dist/components/biz-select/ward-select/api.d.ts +43 -0
  8. package/dist/components/index.d.ts +3 -1
  9. package/dist/components/index.js +4095 -439
  10. package/dist/components/index.js.LICENSE.txt +11 -0
  11. package/dist/components/keyboard-value/index.d.ts +1 -0
  12. package/dist/components/patient-access/api.d.ts +12 -1
  13. package/dist/components/print/hooks/index.d.ts +1 -0
  14. package/dist/components/pro-avatar/index.d.ts +2 -0
  15. package/dist/components/pro-avatar/utils.d.ts +21 -0
  16. package/dist/components/pro-form/typings/index.d.ts +1 -0
  17. package/dist/components/pro-table/constant.d.ts +1 -0
  18. package/dist/components/pro-table/interface/index.d.ts +7 -1
  19. package/dist/components/static/css/index.css +23 -3
  20. package/dist/components/table-select/composable/useDirectionKey.d.ts +7 -0
  21. package/dist/components/table-select/index.d.ts +4 -0
  22. package/dist/components/table-select/types/index.d.ts +95 -0
  23. package/dist/directives/index.d.ts +1 -0
  24. package/dist/directives/shortcut.d.ts +13 -0
  25. package/dist/hooks/index.d.ts +3 -3
  26. package/dist/hooks/index.js +67 -21
  27. package/dist/hooks/use-app-config/index.d.ts +2 -2
  28. package/dist/hooks/use-column&form-config/index.d.ts +5 -5
  29. package/dist/hooks/use-data-change-detector/index.d.ts +2 -1
  30. package/dist/hooks/use-direction-select/index.d.ts +2 -2
  31. package/dist/hooks/use-editable-table/index.d.ts +2 -0
  32. package/dist/hooks/use-fetch-data/index.d.ts +3 -0
  33. package/dist/hooks/{use-fetch-dataset/index.d.ts → use-fetch-data/use-fetch-dataset.d.ts} +1 -1
  34. package/dist/hooks/use-fetch-data/use-fetch-params.d.ts +24 -0
  35. package/dist/hooks/use-fetch-data/use-fetch-time.d.ts +6 -0
  36. package/dist/index.d.ts +7 -2
  37. package/dist/index.js +4642 -517
  38. package/dist/index.js.LICENSE.txt +11 -0
  39. package/dist/static/css/index.css +23 -3
  40. package/package.json +19 -17
@@ -0,0 +1,34 @@
1
+ export type BizUnitQueryParams = {
2
+ keyWord?: string;
3
+ hospitalId: string;
4
+ orgTypeCodes?: string[];
5
+ enabledFlag?: number;
6
+ orgIds?: string[];
7
+ encounterTypeCode?: string;
8
+ deptId?: string;
9
+ };
10
+ export type BizUnitItem = {
11
+ orgId: string;
12
+ orgNo: string;
13
+ orgNameDisplay: string;
14
+ orgTypeCode: string;
15
+ orgTypeDescDisplay: string;
16
+ orgDescDisplay?: string;
17
+ spellNo?: string;
18
+ wbNo?: string;
19
+ parentOrgId?: string;
20
+ enabledFlag: number;
21
+ deptTypeCode?: string;
22
+ deptTypeDesc?: string;
23
+ };
24
+ export type BizUnitSelection = Partial<BizUnitItem> & {
25
+ label?: string;
26
+ value?: string;
27
+ };
28
+ /**
29
+ * [1-10155-1] 根据条件查询业务单元列表
30
+ * 是否分页 Y
31
+ * @param params
32
+ * @returns
33
+ */
34
+ export declare const queryBizUnitList: (params: BizUnitQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<BizUnitItem[]> | undefined]>;
@@ -0,0 +1,51 @@
1
+ export type DepartmentQueryParams = {
2
+ keyWord?: string;
3
+ enabledFlag?: number;
4
+ hospitalId: string;
5
+ deptTypeCodes?: string[];
6
+ encounterTypeCode?: string;
7
+ };
8
+ export type DepartmentItem = {
9
+ orgId: string;
10
+ orgNo: string;
11
+ orgName: string;
12
+ org2ndName?: string;
13
+ orgExtName?: string;
14
+ orgNameDisplay: string;
15
+ orgTypeCode: string;
16
+ orgTypeDescDisplay: string;
17
+ orgDesc?: string;
18
+ org2ndDesc?: string;
19
+ orgExtDesc?: string;
20
+ orgDescDisplay?: string;
21
+ spellNo?: string;
22
+ wbNo?: string;
23
+ parentOrgId?: string;
24
+ enabledFlag: number;
25
+ deptTypeCode?: string;
26
+ deptTypeDesc?: string;
27
+ deptXEncounterTypeList?: {
28
+ deptXEncounterTypeId: string;
29
+ encounterTypeCode: string;
30
+ encounterTypeDesc: string;
31
+ }[];
32
+ orgLocationList?: {
33
+ orgLocationId: string;
34
+ orgLocationNo: string;
35
+ orgLocationName: string;
36
+ orgLocation2ndName?: string;
37
+ orgLocationExtName?: string;
38
+ orgLocationNameDisplay: string;
39
+ }[];
40
+ };
41
+ export type DepartmentSelection = Partial<DepartmentItem> & {
42
+ label?: string;
43
+ value?: string;
44
+ };
45
+ /**
46
+ * [1-10154-1] 根据条件查询科室列表(平铺)
47
+ * 是否分页 N
48
+ * @param params
49
+ * @returns
50
+ */
51
+ export declare const queryDepartmentList: (params: DepartmentQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<DepartmentItem[]> | undefined]>;
@@ -1,3 +1,9 @@
1
1
  export { default as DictSelect } from './dict-select/index.vue';
2
2
  export { default as FlagSelect } from './flag-select/index.vue';
3
3
  export { default as HospitalSelect } from './hospital-select/index.vue';
4
+ export { default as TagSelect } from './tag-select/index.vue';
5
+ export { default as UserSelect } from './user-select/index.vue';
6
+ export { default as BizUnitSelect } from './biz-unit-select/index.vue';
7
+ export { default as DepartmentSelect } from './department-select/index.vue';
8
+ export { default as WardSelect } from './ward-select/index.vue';
9
+ export type { TagGroupInfo } from './tag-select/api.ts';
@@ -0,0 +1,44 @@
1
+ /**
2
+ * 标签详情
3
+ */
4
+ export interface TagInfo {
5
+ tagId: string;
6
+ tagNameDisplay: string;
7
+ sort: number;
8
+ tagCssList?: {
9
+ tagCssId: string;
10
+ cssTypeCode: string;
11
+ cssTypeDesc: string;
12
+ cssValue: string;
13
+ }[];
14
+ }
15
+ /**
16
+ * 标签分组详情
17
+ */
18
+ export interface TagGroupInfo {
19
+ tagGroupId: string;
20
+ tagGroupNameDisplay: string;
21
+ enabledFlag: number;
22
+ tagList: TagInfo[];
23
+ }
24
+ /**
25
+ * [1-10473-1]根据条件查询标签分组V1(含标签)
26
+ * @param params
27
+ * @returns
28
+ */
29
+ export declare const queryTagGroupByExampleV1: (params: {
30
+ bizIdTypeCode: string;
31
+ enabledFlag?: number;
32
+ bizId?: string;
33
+ }) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<TagGroupInfo[]> | undefined]>;
34
+ /**
35
+ * ]根据条件查询标签列表
36
+ * @param params
37
+ * @returns
38
+ */
39
+ export declare const queryTagListByExample: (params: {
40
+ tagGroupIds?: string[];
41
+ tagIds?: string[];
42
+ enabledFlag?: boolean;
43
+ keyWord?: string;
44
+ }) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<TagInfo[]> | undefined]>;
@@ -0,0 +1,31 @@
1
+ import { TagInfo, TagGroupInfo } from './api.ts';
2
+ export declare const addTagToMap: (map: Map<string, {
3
+ tagNameDisplay: string;
4
+ background: string;
5
+ color: string;
6
+ }>, tag: {
7
+ tagId: string;
8
+ tagNameDisplay: string;
9
+ tagCssList?: Array<{
10
+ cssTypeCode: string;
11
+ cssValue: string;
12
+ }>;
13
+ }) => void;
14
+ export declare const getModelValueArray: (value: string | string[] | undefined) => string[];
15
+ export declare const createTagsMap: (tableData: TagGroupInfo[], extraTagIds: TagInfo[]) => Map<string, {
16
+ tagNameDisplay: string;
17
+ background: string;
18
+ color: string;
19
+ }>;
20
+ export declare const getOptionStyle: (tagId: string, selectList: string[], allTagsMap: Map<string, {
21
+ tagNameDisplay: string;
22
+ background: string;
23
+ color: string;
24
+ }>) => {
25
+ background?: undefined;
26
+ color?: undefined;
27
+ } | {
28
+ background: string | undefined;
29
+ color: string | undefined;
30
+ };
31
+ export declare const isOptionDisabled: (tagId: string, selectList: string[]) => boolean;
@@ -0,0 +1,109 @@
1
+ /**
2
+ * 入参
3
+ */
4
+ export type UserQueryParams = {
5
+ personId?: string;
6
+ enabledFlag?: number;
7
+ keyWord?: string;
8
+ userNo?: string;
9
+ hospitalId?: string;
10
+ userJobCodes?: string[];
11
+ bizUnitId?: string;
12
+ userId?: string;
13
+ userTypeCode?: string;
14
+ appReleaseVersionCode?: string;
15
+ pageNumber: number;
16
+ pageSize: number;
17
+ };
18
+ /**
19
+ * 出参
20
+ */
21
+ export type UserItem = {
22
+ userId: string;
23
+ userNo: string;
24
+ userName: string;
25
+ user2ndName?: string;
26
+ userExtName?: string;
27
+ userNameDisPlay: string;
28
+ loginFlag: number;
29
+ adminFlag: number;
30
+ lockedFlag: number;
31
+ userTypeCode: string;
32
+ userTypeDesc: string;
33
+ enabledFlag: number;
34
+ spellNo?: string;
35
+ wbNo?: string;
36
+ paySumTypeCode: string;
37
+ paySumTypeDesc: string;
38
+ paySumBelongUserId: string;
39
+ paySumBelongUserName: string;
40
+ invoiceAgentUserId: string;
41
+ invoiceAgentUserName: string;
42
+ lastLoginAt?: string;
43
+ loginIp?: string;
44
+ loginMac?: string;
45
+ loginTypeCode?: string;
46
+ loginTypeDesc?: string;
47
+ personId?: string;
48
+ titleCode?: string;
49
+ titleDesc?: string;
50
+ personSimpleDesc?: string;
51
+ person2ndSimpleDesc?: string;
52
+ personExtSimpleDesc?: string;
53
+ simpleDescDisplay?: string;
54
+ userJobCode: string;
55
+ userJobDesc: string;
56
+ genderCode?: string;
57
+ genderDesc?: string;
58
+ appReleaseVersionCode?: string;
59
+ appReleaseVersionDesc?: string;
60
+ perCertificateList: {
61
+ perCertificateId: string;
62
+ certificateTypeCode: string;
63
+ certificateTypeDesc: string;
64
+ certificateNo: string;
65
+ }[];
66
+ perContactList?: {
67
+ perContactId: string;
68
+ contactTypeCode: string;
69
+ contactTypeDesc: string;
70
+ contactNo: string;
71
+ }[];
72
+ loginOrgLocationList?: {
73
+ userXOrgLocationId: string;
74
+ orgLocationId: string;
75
+ orgLocationName: string;
76
+ sort: number;
77
+ orgId: string;
78
+ orgName: string;
79
+ orgTypeCode: string;
80
+ orgTypeDesc: string;
81
+ }[];
82
+ userRoleList?: {
83
+ userRoleId: string;
84
+ hospitalId: string;
85
+ hospitalName: string;
86
+ roleId: string;
87
+ roleName: string;
88
+ tenantId: string;
89
+ tenantName: string;
90
+ }[];
91
+ bizUnitList?: {
92
+ bizUnitId: string;
93
+ bizUnitName: string;
94
+ orgTypeCode: string;
95
+ orgTypeDesc: string;
96
+ hospitalId: string;
97
+ hospitalName: string;
98
+ }[];
99
+ };
100
+ export type UserSelection = Partial<UserItem> & {
101
+ label?: string;
102
+ value?: string;
103
+ };
104
+ /**
105
+ * [1-10013-1]根据条件查询用户列表
106
+ * @param params
107
+ * @returns
108
+ */
109
+ export declare const queryUserList: (params: UserQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiPageData<UserItem> | undefined]>;
@@ -0,0 +1,43 @@
1
+ export type WardQueryParams = {
2
+ keyWord?: string;
3
+ enabledFlag?: number;
4
+ deptId?: string;
5
+ hospitalId: string;
6
+ };
7
+ export type WardItem = {
8
+ orgId: string;
9
+ orgNo: string;
10
+ orgName: string;
11
+ org2ndName?: string;
12
+ orgExtName?: string;
13
+ orgNameDisplay: string;
14
+ orgTypeCode: string;
15
+ orgTypeDescDisplay: string;
16
+ orgDesc?: string;
17
+ org2ndDesc?: string;
18
+ orgExtDesc?: string;
19
+ orgDescDisplay?: string;
20
+ spellNo?: string;
21
+ wbNo?: string;
22
+ parentOrgId?: string;
23
+ enabledFlag: number;
24
+ orgLocationList?: {
25
+ orgLocationId: string;
26
+ orgLocationNo: string;
27
+ orgLocationName: string;
28
+ orgLocation2ndName?: string;
29
+ orgLocationExtName?: string;
30
+ orgLocationNameDisplay: string;
31
+ }[];
32
+ };
33
+ export type WardSelection = Partial<WardItem> & {
34
+ label?: string;
35
+ value?: string;
36
+ };
37
+ /**
38
+ * [1-10155-1] 根据条件查询病区列表
39
+ * 是否分页 N
40
+ * @param params
41
+ * @returns
42
+ */
43
+ export declare const queryWardList: (params: WardQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<WardItem[]> | undefined]>;
@@ -8,6 +8,8 @@ export { Title } from './title/index.ts';
8
8
  export { ProDialog } from './pro-dialog/index.ts';
9
9
  export { AccessInfo } from './access-info/index.ts';
10
10
  export { FormDesignRender } from './form-design-render/index.ts';
11
+ export { KeyboardValue } from './keyboard-value/index.ts';
11
12
  export { CopyTextWithTooltip } from './copy-text-with-tooltip/index.ts';
12
- export { DictSelect, FlagSelect, HospitalSelect } from './biz-select/index.ts';
13
+ export { DictSelect, FlagSelect, HospitalSelect, TagSelect, } from './biz-select/index.ts';
13
14
  export { DmlButton } from './dml-button/index.ts';
15
+ export { ProAvatar } from './pro-avatar/index.ts';