sun-biz 0.0.4-beta.6 → 0.0.4-beta.61
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/dist/components/biz-select/biz-unit-select/api.d.ts +35 -0
- package/dist/components/biz-select/department-select/api.d.ts +52 -0
- package/dist/components/biz-select/hospital-charge-select/api.d.ts +53 -0
- package/dist/components/biz-select/index.d.ts +7 -0
- package/dist/components/biz-select/tag-select/api.d.ts +18 -2
- package/dist/components/biz-select/tag-select/utils.d.ts +31 -0
- package/dist/components/biz-select/user-select/api.d.ts +110 -0
- package/dist/components/biz-select/ward-select/api.d.ts +44 -0
- package/dist/components/charge-order-dialog/api.d.ts +117 -0
- package/dist/components/charge-order-dialog/constants.d.ts +23 -0
- package/dist/components/charge-order-dialog/hooks.d.ts +132 -0
- package/dist/components/charge-order-dialog/index.d.ts +3 -0
- package/dist/components/charge-order-dialog/types.d.ts +155 -0
- package/dist/components/charge-order-dialog/useConfigData.d.ts +13 -0
- package/dist/components/charge-order-dialog/useGetDataSetList.d.ts +2 -0
- package/dist/components/charge-order-dialog/utils.d.ts +92 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +5950 -1049
- package/dist/components/index.js.LICENSE.txt +11 -0
- package/dist/components/keyboard-value/index.d.ts +1 -0
- package/dist/components/patient-access/api.d.ts +12 -1
- package/dist/components/print/hooks/index.d.ts +1 -0
- package/dist/components/pro-avatar/index.d.ts +2 -0
- package/dist/components/pro-avatar/utils.d.ts +21 -0
- package/dist/components/pro-form/typings/index.d.ts +1 -0
- package/dist/components/pro-table/composables/dbgrid-component-setting/typings/index.d.ts +1 -0
- package/dist/components/pro-table/constant.d.ts +1 -0
- package/dist/components/pro-table/interface/index.d.ts +9 -1
- package/dist/components/static/css/index.css +77 -3
- package/dist/components/table-select/composable/useDirectionKey.d.ts +10 -0
- package/dist/components/table-select/index.d.ts +4 -0
- package/dist/components/table-select/types/index.d.ts +131 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/shortcut.d.ts +13 -0
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +68 -22
- package/dist/hooks/use-app-config/index.d.ts +2 -2
- package/dist/hooks/use-column&form-config/index.d.ts +5 -5
- package/dist/hooks/use-data-change-detector/index.d.ts +2 -1
- package/dist/hooks/use-direction-select/index.d.ts +2 -2
- package/dist/hooks/use-editable-table/index.d.ts +2 -0
- package/dist/hooks/use-fetch-data/index.d.ts +3 -0
- package/dist/hooks/{use-fetch-dataset/index.d.ts → use-fetch-data/use-fetch-dataset.d.ts} +1 -1
- package/dist/hooks/use-fetch-data/use-fetch-params.d.ts +24 -0
- package/dist/hooks/use-fetch-data/use-fetch-time.d.ts +6 -0
- package/dist/index.d.ts +29 -24
- package/dist/index.js +6585 -1236
- package/dist/index.js.LICENSE.txt +11 -0
- package/dist/static/css/index.css +77 -3
- package/dist/types/index.d.ts +28 -0
- package/package.json +21 -18
- package/dist/hooks/use-fetch-dataset/use-fetch-time.d.ts +0 -4
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
export type ChargeOrderDtItem = {
|
|
2
|
+
editable: boolean;
|
|
3
|
+
key: string;
|
|
4
|
+
unitName: string;
|
|
5
|
+
unitId?: string;
|
|
6
|
+
commodityPriceId?: string;
|
|
7
|
+
price: number;
|
|
8
|
+
presQty: number;
|
|
9
|
+
commoditySpec: string;
|
|
10
|
+
commodityNameDisplay: string;
|
|
11
|
+
commodityNo: string;
|
|
12
|
+
commodityId?: string;
|
|
13
|
+
selectLabel?: string;
|
|
14
|
+
tabSelectRef?: any;
|
|
15
|
+
};
|
|
16
|
+
export interface UserQueryParams {
|
|
17
|
+
personId?: string;
|
|
18
|
+
keyWord?: string;
|
|
19
|
+
enabledFlag?: number;
|
|
20
|
+
hospitalId?: string;
|
|
21
|
+
userNo?: string;
|
|
22
|
+
pageNumber: number;
|
|
23
|
+
pageSize: number;
|
|
24
|
+
}
|
|
25
|
+
export interface UserItem {
|
|
26
|
+
userId: string;
|
|
27
|
+
userNo: string;
|
|
28
|
+
userName: string;
|
|
29
|
+
user2ndName?: string;
|
|
30
|
+
userExtName?: string;
|
|
31
|
+
userNameDisplay: string;
|
|
32
|
+
loginFlag: number;
|
|
33
|
+
adminFlag: number;
|
|
34
|
+
lockedFlag: number;
|
|
35
|
+
userTypeCode: string;
|
|
36
|
+
userTypeDesc: string;
|
|
37
|
+
enabledFlag: number;
|
|
38
|
+
spellNo?: string;
|
|
39
|
+
wbNo?: string;
|
|
40
|
+
paySumTypeCode: string;
|
|
41
|
+
paySumTypeDesc: string;
|
|
42
|
+
paySumBelongUserId: string;
|
|
43
|
+
paySumBelongUserName: string;
|
|
44
|
+
invoiceAgentUserId: string;
|
|
45
|
+
invoiceAgentUserName: string;
|
|
46
|
+
lastLoginAt?: string;
|
|
47
|
+
loginIp?: string;
|
|
48
|
+
loginMac?: string;
|
|
49
|
+
loginTypeCode?: string;
|
|
50
|
+
loginTypeDesc?: string;
|
|
51
|
+
personId?: string;
|
|
52
|
+
titleCode?: string;
|
|
53
|
+
titleDesc?: string;
|
|
54
|
+
personSimpleDesc?: string;
|
|
55
|
+
person2ndSimpleDesc?: string;
|
|
56
|
+
personExtSimpleDesc?: string;
|
|
57
|
+
simpleDescDisplay?: string;
|
|
58
|
+
userJobCode: string;
|
|
59
|
+
userJobDesc: string;
|
|
60
|
+
perCertificateList: {
|
|
61
|
+
perCertificateId: string;
|
|
62
|
+
certificateTypeCode: string;
|
|
63
|
+
certificateTypeDesc: string;
|
|
64
|
+
certificateNo: string;
|
|
65
|
+
}[];
|
|
66
|
+
loginOrgLocationList?: {
|
|
67
|
+
userXOrgLocationId: string;
|
|
68
|
+
orgLocationId: string;
|
|
69
|
+
orgLocationName: string;
|
|
70
|
+
sort: number;
|
|
71
|
+
orgId: string;
|
|
72
|
+
orgName: string;
|
|
73
|
+
orgTypeCode: string;
|
|
74
|
+
orgTypeDesc: string;
|
|
75
|
+
}[];
|
|
76
|
+
userRoleList?: {
|
|
77
|
+
userRoleId: string;
|
|
78
|
+
hospitalId: string;
|
|
79
|
+
hospitalName: string;
|
|
80
|
+
roleId: string;
|
|
81
|
+
roleName: string;
|
|
82
|
+
tenantId: string;
|
|
83
|
+
tenantName: string;
|
|
84
|
+
}[];
|
|
85
|
+
}
|
|
86
|
+
export type ChargeItemListReqParams = {
|
|
87
|
+
pageSize?: number;
|
|
88
|
+
pageNumber?: number;
|
|
89
|
+
hospitalId: string;
|
|
90
|
+
keyWord?: string;
|
|
91
|
+
encounterTypeCode?: string;
|
|
92
|
+
priceAt: string;
|
|
93
|
+
};
|
|
94
|
+
/** 收费项目 */
|
|
95
|
+
export interface hospitalChargeResItem {
|
|
96
|
+
hospitalCommodityId: string;
|
|
97
|
+
commodityCategoryId: string;
|
|
98
|
+
commodityCategoryName: string;
|
|
99
|
+
outCommodityCategoryId: string;
|
|
100
|
+
outCommodityCategoryName: string;
|
|
101
|
+
inCommodityCategoryId: string;
|
|
102
|
+
inCommodityCategoryName: string;
|
|
103
|
+
accCommodityCategoryId: string;
|
|
104
|
+
accCommodityCategoryName: string;
|
|
105
|
+
fncCommodityCategoryId: string;
|
|
106
|
+
fncCommodityCategoryName: string;
|
|
107
|
+
mrCommodityCategoryId: string;
|
|
108
|
+
mrCommodityCategoryName: string;
|
|
109
|
+
commodityId: string;
|
|
110
|
+
commodityNo: string;
|
|
111
|
+
commodityName: string;
|
|
112
|
+
commodityNameDisplay: string;
|
|
113
|
+
commoditySpec: string;
|
|
114
|
+
unitId: string;
|
|
115
|
+
unitName: string;
|
|
116
|
+
spellNo: string;
|
|
117
|
+
wbNo: string;
|
|
118
|
+
memo: string;
|
|
119
|
+
producedByOrgId: string;
|
|
120
|
+
producedByOrgName: string;
|
|
121
|
+
chargeItemConnotation: string;
|
|
122
|
+
enabledFlag: string;
|
|
123
|
+
commodityPriceId: string;
|
|
124
|
+
price: number;
|
|
125
|
+
startAt: string;
|
|
126
|
+
endAt: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* 值域接口返回数据类型
|
|
130
|
+
*/
|
|
131
|
+
export interface DatasetItem {
|
|
132
|
+
createdOrgLocationId: string;
|
|
133
|
+
createdOrgLocationName: string | null;
|
|
134
|
+
createdUserId: string;
|
|
135
|
+
createdUserName: string | null;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
modifiedOrgLocationId: string;
|
|
138
|
+
modifiedOrgLocationName: string | null;
|
|
139
|
+
modifiedUserId: string;
|
|
140
|
+
modifiedUserName: string | null;
|
|
141
|
+
modifiedAt: string;
|
|
142
|
+
dataValueId: string;
|
|
143
|
+
dataValueNo: string;
|
|
144
|
+
dataValueCnName: string;
|
|
145
|
+
dataValue2ndName: string;
|
|
146
|
+
dataValueExtName: string | null;
|
|
147
|
+
dataValueNameDisplay: string | null;
|
|
148
|
+
dataValueDescription: string | null;
|
|
149
|
+
spellNo: string | null;
|
|
150
|
+
wbNo: string | null;
|
|
151
|
+
conceptId: string | null;
|
|
152
|
+
conceptDescription: string | null;
|
|
153
|
+
enabledFlag: number;
|
|
154
|
+
sort: number;
|
|
155
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
import { DatasetItem } from './types.ts';
|
|
4
|
+
import { FormDescItem1 } from './utils.ts';
|
|
5
|
+
export interface ConfigOptions<T extends readonly string[] | undefined, U, R = undefined> {
|
|
6
|
+
getData: (t: TFunction, data: Ref<(T extends readonly string[] ? {
|
|
7
|
+
[P in T[number]]: DatasetItem[];
|
|
8
|
+
} : undefined) | undefined> | undefined) => R extends readonly string[] ? {
|
|
9
|
+
[P in R[number]]: U[];
|
|
10
|
+
} : U[] | [];
|
|
11
|
+
dataSetCodes?: T;
|
|
12
|
+
}
|
|
13
|
+
export declare function useFormConfig<T extends readonly string[] | undefined, R = undefined>(options: ConfigOptions<T, FormDescItem1, R>): import("vue").ComputedRef<R extends readonly string[] ? { [P in R[number]]: FormDescItem1[]; } : [] | FormDescItem1[]>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DatasetItem } from './types.ts';
|
|
2
|
+
export declare function useGetDataSetList<T extends readonly string[] | undefined>(codeSystemCodes?: T): import("vue").Ref<(T extends readonly string[] ? { [P in T[number]]: DatasetItem[]; } : undefined) | undefined, (T extends readonly string[] ? { [P in T[number]]: DatasetItem[]; } : undefined) | undefined>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
type RuleItem = {
|
|
3
|
+
required?: boolean;
|
|
4
|
+
message?: string;
|
|
5
|
+
trigger: string | string[];
|
|
6
|
+
validator?: (rule: RuleItem, value: string, callback: (error?: Error) => void) => void;
|
|
7
|
+
};
|
|
8
|
+
type ModelItemValue = unknown;
|
|
9
|
+
export interface ModelItem {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface FormDescItem1 {
|
|
13
|
+
supportCopyAndTips?: boolean;
|
|
14
|
+
type?: string;
|
|
15
|
+
name: string;
|
|
16
|
+
label?: string | (() => VNode | string);
|
|
17
|
+
span?: number;
|
|
18
|
+
width?: number | string;
|
|
19
|
+
labelWidth?: number | string;
|
|
20
|
+
component?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
isHidden?: boolean;
|
|
24
|
+
options?: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
}[];
|
|
27
|
+
rules?: RuleItem[];
|
|
28
|
+
defaultValue?: ModelItemValue;
|
|
29
|
+
isFullWidth?: boolean;
|
|
30
|
+
optionLabel?: string;
|
|
31
|
+
optionValue?: string;
|
|
32
|
+
filterable?: boolean;
|
|
33
|
+
triggerModelChange?: boolean;
|
|
34
|
+
extraProps?: {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
props?: {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
render?: () => VNode | string;
|
|
42
|
+
onModelChange?: <T = ModelItem>(value: ModelItemValue, formModel: T) => void;
|
|
43
|
+
formItemProps?: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export declare function getFormData1(formData: FormDescItem1[]): {
|
|
48
|
+
models: {};
|
|
49
|
+
rules: {};
|
|
50
|
+
};
|
|
51
|
+
type ValueType = unknown;
|
|
52
|
+
export type FormConfigMap<T extends FormDescItem1[], U = ValueType> = {
|
|
53
|
+
[key in T[number]['name']]: U;
|
|
54
|
+
};
|
|
55
|
+
export declare function formatConfigData(formConfigData: FormDescItem1[]): {
|
|
56
|
+
supportCopyAndTips?: boolean;
|
|
57
|
+
type?: string;
|
|
58
|
+
name: string;
|
|
59
|
+
label?: string | (() => VNode | string);
|
|
60
|
+
span?: number;
|
|
61
|
+
width?: number | string;
|
|
62
|
+
labelWidth?: number | string;
|
|
63
|
+
component?: string;
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
className?: string;
|
|
66
|
+
isHidden?: boolean;
|
|
67
|
+
options?: {
|
|
68
|
+
[key: string]: string;
|
|
69
|
+
}[];
|
|
70
|
+
rules?: RuleItem[];
|
|
71
|
+
defaultValue?: ModelItemValue;
|
|
72
|
+
isFullWidth?: boolean;
|
|
73
|
+
optionLabel?: string;
|
|
74
|
+
optionValue?: string;
|
|
75
|
+
filterable?: boolean;
|
|
76
|
+
triggerModelChange?: boolean;
|
|
77
|
+
extraProps?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
props?: {
|
|
81
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
render?: () => VNode | string;
|
|
85
|
+
onModelChange?: <T = ModelItem>(value: ModelItemValue, formModel: T) => void;
|
|
86
|
+
formItemProps?: {
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
};
|
|
89
|
+
}[];
|
|
90
|
+
export declare function getFormModel(formConfigData: FormDescItem1[]): FormConfigMap<FormDescItem1[], unknown>;
|
|
91
|
+
export declare function getFormRules(formConfigData: FormDescItem1[]): FormConfigMap<FormDescItem1[], RuleItem[]>;
|
|
92
|
+
export {};
|
|
@@ -8,6 +8,9 @@ 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';
|
|
16
|
+
export { ChargeOrderDialog } from './charge-order-dialog/index.ts';
|