sun-biz 0.0.4-beta.6 → 0.0.4-beta.60

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 (44) hide show
  1. package/dist/components/biz-select/biz-unit-select/api.d.ts +35 -0
  2. package/dist/components/biz-select/department-select/api.d.ts +52 -0
  3. package/dist/components/biz-select/hospital-charge-select/api.d.ts +53 -0
  4. package/dist/components/biz-select/index.d.ts +7 -0
  5. package/dist/components/biz-select/tag-select/api.d.ts +18 -2
  6. package/dist/components/biz-select/tag-select/utils.d.ts +31 -0
  7. package/dist/components/biz-select/user-select/api.d.ts +110 -0
  8. package/dist/components/biz-select/ward-select/api.d.ts +44 -0
  9. package/dist/components/index.d.ts +2 -0
  10. package/dist/components/index.js +4535 -531
  11. package/dist/components/index.js.LICENSE.txt +11 -0
  12. package/dist/components/keyboard-value/index.d.ts +1 -0
  13. package/dist/components/patient-access/api.d.ts +12 -1
  14. package/dist/components/print/hooks/index.d.ts +1 -0
  15. package/dist/components/pro-avatar/index.d.ts +2 -0
  16. package/dist/components/pro-avatar/utils.d.ts +21 -0
  17. package/dist/components/pro-form/typings/index.d.ts +1 -0
  18. package/dist/components/pro-table/composables/dbgrid-component-setting/typings/index.d.ts +1 -0
  19. package/dist/components/pro-table/constant.d.ts +1 -0
  20. package/dist/components/pro-table/interface/index.d.ts +9 -1
  21. package/dist/components/static/css/index.css +77 -3
  22. package/dist/components/table-select/composable/useDirectionKey.d.ts +10 -0
  23. package/dist/components/table-select/index.d.ts +4 -0
  24. package/dist/components/table-select/types/index.d.ts +131 -0
  25. package/dist/directives/index.d.ts +1 -0
  26. package/dist/directives/shortcut.d.ts +13 -0
  27. package/dist/hooks/index.d.ts +3 -3
  28. package/dist/hooks/index.js +68 -22
  29. package/dist/hooks/use-app-config/index.d.ts +2 -2
  30. package/dist/hooks/use-column&form-config/index.d.ts +5 -5
  31. package/dist/hooks/use-data-change-detector/index.d.ts +2 -1
  32. package/dist/hooks/use-direction-select/index.d.ts +2 -2
  33. package/dist/hooks/use-editable-table/index.d.ts +2 -0
  34. package/dist/hooks/use-fetch-data/index.d.ts +3 -0
  35. package/dist/hooks/{use-fetch-dataset/index.d.ts → use-fetch-data/use-fetch-dataset.d.ts} +1 -1
  36. package/dist/hooks/use-fetch-data/use-fetch-params.d.ts +24 -0
  37. package/dist/hooks/use-fetch-data/use-fetch-time.d.ts +6 -0
  38. package/dist/index.d.ts +28 -24
  39. package/dist/index.js +5576 -641
  40. package/dist/index.js.LICENSE.txt +11 -0
  41. package/dist/static/css/index.css +77 -3
  42. package/dist/types/index.d.ts +28 -0
  43. package/package.json +21 -18
  44. package/dist/hooks/use-fetch-dataset/use-fetch-time.d.ts +0 -4
@@ -0,0 +1,35 @@
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
+ orgLocationId?: string;
10
+ };
11
+ export type BizUnitItem = {
12
+ orgId: string;
13
+ orgNo: string;
14
+ orgNameDisplay: string;
15
+ orgTypeCode: string;
16
+ orgTypeDescDisplay: string;
17
+ orgDescDisplay?: string;
18
+ spellNo?: string;
19
+ wbNo?: string;
20
+ parentOrgId?: string;
21
+ enabledFlag: number;
22
+ deptTypeCode?: string;
23
+ deptTypeDesc?: string;
24
+ };
25
+ export type BizUnitSelection = Partial<BizUnitItem> & {
26
+ label?: string;
27
+ value?: string;
28
+ };
29
+ /**
30
+ * [1-10155-1] 根据条件查询业务单元列表
31
+ * 是否分页 Y
32
+ * @param params
33
+ * @returns
34
+ */
35
+ export declare const queryBizUnitList: (params: BizUnitQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<BizUnitItem[]> | undefined]>;
@@ -0,0 +1,52 @@
1
+ export type DepartmentQueryParams = {
2
+ keyWord?: string;
3
+ enabledFlag?: number;
4
+ hospitalId: string;
5
+ deptTypeCodes?: string[];
6
+ encounterTypeCode?: string;
7
+ orgLocationId?: string;
8
+ };
9
+ export type DepartmentItem = {
10
+ orgId: string;
11
+ orgNo: string;
12
+ orgName: string;
13
+ org2ndName?: string;
14
+ orgExtName?: string;
15
+ orgNameDisplay: string;
16
+ orgTypeCode: string;
17
+ orgTypeDescDisplay: string;
18
+ orgDesc?: string;
19
+ org2ndDesc?: string;
20
+ orgExtDesc?: string;
21
+ orgDescDisplay?: string;
22
+ spellNo?: string;
23
+ wbNo?: string;
24
+ parentOrgId?: string;
25
+ enabledFlag: number;
26
+ deptTypeCode?: string;
27
+ deptTypeDesc?: string;
28
+ deptXEncounterTypeList?: {
29
+ deptXEncounterTypeId: string;
30
+ encounterTypeCode: string;
31
+ encounterTypeDesc: string;
32
+ }[];
33
+ orgLocationList?: {
34
+ orgLocationId: string;
35
+ orgLocationNo: string;
36
+ orgLocationName: string;
37
+ orgLocation2ndName?: string;
38
+ orgLocationExtName?: string;
39
+ orgLocationNameDisplay: string;
40
+ }[];
41
+ };
42
+ export type DepartmentSelection = Partial<DepartmentItem> & {
43
+ label?: string;
44
+ value?: string;
45
+ };
46
+ /**
47
+ * [1-10154-1] 根据条件查询科室列表(平铺)
48
+ * 是否分页 N
49
+ * @param params
50
+ * @returns
51
+ */
52
+ export declare const queryDepartmentList: (params: DepartmentQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<DepartmentItem[]> | undefined]>;
@@ -0,0 +1,53 @@
1
+ export type HospitalChargeQueryParams = {
2
+ keyWord?: string;
3
+ hospitalId: string;
4
+ encounterTypeCode?: string;
5
+ priceAt: string;
6
+ hospitalCommodityIds?: string[];
7
+ };
8
+ export type HospitalChargeItem = {
9
+ hospitalCommodityId: string;
10
+ commodityCategoryId: string;
11
+ commodityCategoryName: string;
12
+ outCommodityCategoryId?: string;
13
+ outCommodityCategoryName?: string;
14
+ inCommodityCategoryId?: string;
15
+ inCommodityCategoryName?: string;
16
+ accCommodityCategoryId?: string;
17
+ accCommodityCategoryName?: string;
18
+ fncCommodityCategoryId?: string;
19
+ fncCommodityCategoryName?: string;
20
+ mrCommodityCategoryId?: string;
21
+ mrCommodityCategoryName?: string;
22
+ commodityId: string;
23
+ commodityNo?: string;
24
+ commodityName: string;
25
+ commodity2ndName?: string;
26
+ commodityExtName?: string;
27
+ commodityNameDisplay: string;
28
+ commoditySpec?: string;
29
+ unitId?: string;
30
+ unitName: string;
31
+ spellNo: string;
32
+ wbNo?: string;
33
+ memo?: string;
34
+ producedByOrgId?: string;
35
+ producedByOrgName?: string;
36
+ chargeItemConnotation?: string;
37
+ enabledFlag: number;
38
+ commodityPriceId: string;
39
+ price: number;
40
+ startAt: string;
41
+ endAt?: string;
42
+ };
43
+ export type HospitalChargeSelection = Partial<HospitalChargeItem> & {
44
+ label?: string;
45
+ value?: string;
46
+ };
47
+ /**
48
+ * [1-10147-1] 根据条件查询医院的收费项目列表(业务态)
49
+ * 是否分页 Y
50
+ * @param params
51
+ * @returns
52
+ */
53
+ export declare const queryHospitalChargeItemListByExample: (params: HospitalChargeQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<HospitalChargeItem[]> | undefined]>;
@@ -2,3 +2,10 @@ 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
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 { default as HospitalChargeSelect } from './hospital-charge-select/index.vue';
10
+ export type { TagGroupInfo } from './tag-select/api.ts';
11
+ export type { HospitalChargeItem, HospitalChargeQueryParams, HospitalChargeSelection } from './hospital-charge-select/api.ts';
@@ -1,10 +1,16 @@
1
1
  /**
2
2
  * 标签详情
3
3
  */
4
- interface TagInfo {
4
+ export interface TagInfo {
5
5
  tagId: string;
6
6
  tagNameDisplay: string;
7
7
  sort: number;
8
+ tagCssList?: {
9
+ tagCssId: string;
10
+ cssTypeCode: string;
11
+ cssTypeDesc: string;
12
+ cssValue: string;
13
+ }[];
8
14
  }
9
15
  /**
10
16
  * 标签分组详情
@@ -25,4 +31,14 @@ export declare const queryTagGroupByExampleV1: (params: {
25
31
  enabledFlag?: number;
26
32
  bizId?: string;
27
33
  }) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<TagGroupInfo[]> | undefined]>;
28
- export {};
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,110 @@
1
+ /**
2
+ * 入参
3
+ */
4
+ export type UserQueryParams = {
5
+ personId?: string;
6
+ enabledFlag?: number;
7
+ keyWord?: string;
8
+ userNo?: string;
9
+ hospitalId?: string;
10
+ orgLocationId?: string;
11
+ userJobCodes?: string[];
12
+ bizUnitId?: string;
13
+ userId?: string;
14
+ userTypeCode?: string;
15
+ appReleaseVersionCode?: string;
16
+ pageNumber: number;
17
+ pageSize: number;
18
+ };
19
+ /**
20
+ * 出参
21
+ */
22
+ export type UserItem = {
23
+ userId: string;
24
+ userNo: string;
25
+ userName: string;
26
+ user2ndName?: string;
27
+ userExtName?: string;
28
+ userNameDisPlay: string;
29
+ loginFlag: number;
30
+ adminFlag: number;
31
+ lockedFlag: number;
32
+ userTypeCode: string;
33
+ userTypeDesc: string;
34
+ enabledFlag: number;
35
+ spellNo?: string;
36
+ wbNo?: string;
37
+ paySumTypeCode: string;
38
+ paySumTypeDesc: string;
39
+ paySumBelongUserId: string;
40
+ paySumBelongUserName: string;
41
+ invoiceAgentUserId: string;
42
+ invoiceAgentUserName: string;
43
+ lastLoginAt?: string;
44
+ loginIp?: string;
45
+ loginMac?: string;
46
+ loginTypeCode?: string;
47
+ loginTypeDesc?: string;
48
+ personId?: string;
49
+ titleCode?: string;
50
+ titleDesc?: string;
51
+ personSimpleDesc?: string;
52
+ person2ndSimpleDesc?: string;
53
+ personExtSimpleDesc?: string;
54
+ simpleDescDisplay?: string;
55
+ userJobCode: string;
56
+ userJobDesc: string;
57
+ genderCode?: string;
58
+ genderDesc?: string;
59
+ appReleaseVersionCode?: string;
60
+ appReleaseVersionDesc?: string;
61
+ perCertificateList: {
62
+ perCertificateId: string;
63
+ certificateTypeCode: string;
64
+ certificateTypeDesc: string;
65
+ certificateNo: string;
66
+ }[];
67
+ perContactList?: {
68
+ perContactId: string;
69
+ contactTypeCode: string;
70
+ contactTypeDesc: string;
71
+ contactNo: string;
72
+ }[];
73
+ loginOrgLocationList?: {
74
+ userXOrgLocationId: string;
75
+ orgLocationId: string;
76
+ orgLocationName: string;
77
+ sort: number;
78
+ orgId: string;
79
+ orgName: string;
80
+ orgTypeCode: string;
81
+ orgTypeDesc: string;
82
+ }[];
83
+ userRoleList?: {
84
+ userRoleId: string;
85
+ hospitalId: string;
86
+ hospitalName: string;
87
+ roleId: string;
88
+ roleName: string;
89
+ tenantId: string;
90
+ tenantName: string;
91
+ }[];
92
+ bizUnitList?: {
93
+ bizUnitId: string;
94
+ bizUnitName: string;
95
+ orgTypeCode: string;
96
+ orgTypeDesc: string;
97
+ hospitalId: string;
98
+ hospitalName: string;
99
+ }[];
100
+ };
101
+ export type UserSelection = Partial<UserItem> & {
102
+ label?: string;
103
+ value?: string;
104
+ };
105
+ /**
106
+ * [1-10661-1] 根据条件查询用户列表
107
+ * @param params
108
+ * @returns
109
+ */
110
+ export declare const queryUserList: (params: UserQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiPageData<UserItem> | undefined]>;
@@ -0,0 +1,44 @@
1
+ export type WardQueryParams = {
2
+ keyWord?: string;
3
+ enabledFlag?: number;
4
+ deptId?: string;
5
+ hospitalId: string;
6
+ orgLocationId?: string;
7
+ };
8
+ export type WardItem = {
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
+ orgLocationList?: {
26
+ orgLocationId: string;
27
+ orgLocationNo: string;
28
+ orgLocationName: string;
29
+ orgLocation2ndName?: string;
30
+ orgLocationExtName?: string;
31
+ orgLocationNameDisplay: string;
32
+ }[];
33
+ };
34
+ export type WardSelection = Partial<WardItem> & {
35
+ label?: string;
36
+ value?: string;
37
+ };
38
+ /**
39
+ * [1-10155-1] 根据条件查询病区列表
40
+ * 是否分页 N
41
+ * @param params
42
+ * @returns
43
+ */
44
+ 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
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';