sun-biz 0.0.4-beta.60 → 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/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 +1 -0
- package/dist/components/index.js +1053 -156
- package/dist/index.d.ts +2 -1
- package/dist/index.js +820 -406
- package/package.json +1 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { hospitalChargeResItem, ChargeItemListReqParams, DatasetItem } from './types.ts';
|
|
2
|
+
import type { UserItem, UserQueryParams } from './types.ts';
|
|
3
|
+
export interface ChargeReqFeeDtItem {
|
|
4
|
+
chargeReqFeeDtId: string;
|
|
5
|
+
commodityTypeCode: string;
|
|
6
|
+
commodityTypeDesc: string;
|
|
7
|
+
hospitalCommodityId: string;
|
|
8
|
+
commodityId: string;
|
|
9
|
+
commodityNameDisplay: string;
|
|
10
|
+
commoditySpec: string;
|
|
11
|
+
commodityPriceId: string;
|
|
12
|
+
originalPrice: string;
|
|
13
|
+
chargePrice: number;
|
|
14
|
+
chargeUnitId: string;
|
|
15
|
+
chargeUnitName: string;
|
|
16
|
+
chargeReqQty: number;
|
|
17
|
+
chargeQty: number;
|
|
18
|
+
confirmQty: string;
|
|
19
|
+
allowChargeQty: number;
|
|
20
|
+
confirmUserId: string;
|
|
21
|
+
confirmUserName: string;
|
|
22
|
+
confirmAt: string;
|
|
23
|
+
originalAmt: string;
|
|
24
|
+
discountAmt: string;
|
|
25
|
+
payAmt: number;
|
|
26
|
+
needUploadFlag: string;
|
|
27
|
+
needMedApproveFlag: number;
|
|
28
|
+
medApproveStatusCode: string;
|
|
29
|
+
medApproveStatusDesc: string;
|
|
30
|
+
herbPerQty: number;
|
|
31
|
+
chargeUnitFactor: string;
|
|
32
|
+
chargeReqItemFactor: number;
|
|
33
|
+
commodityCategoryId: string;
|
|
34
|
+
commodityCategoryName: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ChargeReqItemDtItem {
|
|
37
|
+
chargeReqItemDtId: string;
|
|
38
|
+
reqItemTypeCode: string;
|
|
39
|
+
reqItemTypeDesc: string;
|
|
40
|
+
medicineFlag: number;
|
|
41
|
+
reqItemId: string;
|
|
42
|
+
reqItemName: string;
|
|
43
|
+
reqItemNameDisplay: string;
|
|
44
|
+
presQty: number;
|
|
45
|
+
presUnitId: string;
|
|
46
|
+
presUnitName: string;
|
|
47
|
+
chargeReqQty: number;
|
|
48
|
+
chargeUnitId: string;
|
|
49
|
+
chargeUnitName: string;
|
|
50
|
+
originalPrice: string;
|
|
51
|
+
chargePrice: number;
|
|
52
|
+
chargeQty: number;
|
|
53
|
+
originalAmt: string;
|
|
54
|
+
discountAmt: string;
|
|
55
|
+
payAmt: number;
|
|
56
|
+
chargeReqFeeDtList: ChargeReqFeeDtItem[];
|
|
57
|
+
}
|
|
58
|
+
export interface CreateChargeReqFeeDtItem {
|
|
59
|
+
commodityTypeCode: string;
|
|
60
|
+
commodityId: string;
|
|
61
|
+
commodityPriceId: string;
|
|
62
|
+
chargePrice: number;
|
|
63
|
+
chargeUnitId: string;
|
|
64
|
+
chargeReqQty: number;
|
|
65
|
+
needUploadFlag: number;
|
|
66
|
+
needMedApproveFlag: number;
|
|
67
|
+
medApproveStatusCode: string;
|
|
68
|
+
herbPerQty: number;
|
|
69
|
+
chargeUnitFactor: number;
|
|
70
|
+
chargeReqItemFactor: number;
|
|
71
|
+
chargeReqFeeDtExtId?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface CreateChargeReqItemDtItem {
|
|
74
|
+
reqItemTypeCode: string;
|
|
75
|
+
medicineFlag: number;
|
|
76
|
+
reqItemId: string;
|
|
77
|
+
presQty: number;
|
|
78
|
+
presUnitId: string;
|
|
79
|
+
chargeReqQty: number;
|
|
80
|
+
chargeUnitId: string;
|
|
81
|
+
chargeReqItemDtExtId?: string;
|
|
82
|
+
chargeReqFeeDtList: CreateChargeReqFeeDtItem[];
|
|
83
|
+
}
|
|
84
|
+
export interface CreateChargeReqItem {
|
|
85
|
+
orderFormTypeId: string;
|
|
86
|
+
presBizUnitCategCode: string;
|
|
87
|
+
presBizUnitId: string;
|
|
88
|
+
presUserId: string;
|
|
89
|
+
presAt: string;
|
|
90
|
+
execBizUnitCategCode?: string;
|
|
91
|
+
execBizUnitId?: string;
|
|
92
|
+
expiredAt: string;
|
|
93
|
+
chargeReqExtId?: string;
|
|
94
|
+
herbNum?: number;
|
|
95
|
+
chargeReqItemDtList: CreateChargeReqItemDtItem[];
|
|
96
|
+
}
|
|
97
|
+
export interface CreateChargeReqParams {
|
|
98
|
+
chargeReqTypeCode: string;
|
|
99
|
+
patientId: string;
|
|
100
|
+
regId?: string;
|
|
101
|
+
hospitalId: string;
|
|
102
|
+
chargeReqList: CreateChargeReqItem[];
|
|
103
|
+
}
|
|
104
|
+
/** 2-10022-1 新增门诊收费申请 */
|
|
105
|
+
export declare const createChargeRequisition: (params: CreateChargeReqParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<unknown> | undefined]>;
|
|
106
|
+
/** 1-10013-1 根据条件查询用户列表 */
|
|
107
|
+
export declare const queryUserListByExample: (params: UserQueryParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiPageData<UserItem> | undefined]>;
|
|
108
|
+
/** 1-10147-1 根据条件查询医院的收费项目列表(业务态) */
|
|
109
|
+
export declare const queryChargeItemList: (params: ChargeItemListReqParams) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<hospitalChargeResItem[]> | undefined]>;
|
|
110
|
+
/**
|
|
111
|
+
* [1-10012-1]获取值域列表
|
|
112
|
+
* @param data
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
export declare const queryDataSetByCodeSystemCodes: <T extends readonly string[]>(params: {
|
|
116
|
+
codeSystemCodes: readonly string[];
|
|
117
|
+
}) => Promise<[import("@sun-toolkit/request").SunApiResultData<null> | undefined, import("@sun-toolkit/request").SunApiResultData<{ [P in T[number]]: DatasetItem[]; }> | undefined]>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ORG_TYPE_CODE, FLAG, ENCOUNTER_TYPE_CODE } from '@sun-toolkit/enums';
|
|
2
|
+
export { ORG_TYPE_CODE, FLAG, ENCOUNTER_TYPE_CODE };
|
|
3
|
+
/** 未挂号 */
|
|
4
|
+
export declare const NO_REGISTER = "NO_REGISTER";
|
|
5
|
+
/** 医嘱单据类型标识 */
|
|
6
|
+
export declare const CLI_ORDER_TYPE_ID = "1707651943885021184";
|
|
7
|
+
/** 申请项类型代码 */
|
|
8
|
+
export declare enum REQ_ITEM_TYPE_CODE {
|
|
9
|
+
/** 商品 */
|
|
10
|
+
COMMODITY = "2"
|
|
11
|
+
}
|
|
12
|
+
/** 医保审批状态代码 */
|
|
13
|
+
export declare enum MED_APPROVE_STATUS_CODE {
|
|
14
|
+
/** 未审批 */
|
|
15
|
+
NOT_APPROVE = "1"
|
|
16
|
+
}
|
|
17
|
+
/** 商品类型代码 */
|
|
18
|
+
export declare enum COMMODITY_TYPE_CODE {
|
|
19
|
+
/** 收费项目 */
|
|
20
|
+
CHARGE_ITEM = "1",
|
|
21
|
+
/** 药品 */
|
|
22
|
+
MEDICINE = "2"
|
|
23
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { ChargeItemListReqParams, hospitalChargeResItem, UserItem, UserQueryParams } from './types.ts';
|
|
2
|
+
/** 获取收费项目 */
|
|
3
|
+
export declare function useFetchChargeItemList(): {
|
|
4
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
5
|
+
chargeItemList: import("vue").Ref<hospitalChargeResItem[] | undefined, hospitalChargeResItem[] | undefined>;
|
|
6
|
+
getChargeItemList: (params: ChargeItemListReqParams) => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
export declare function useFetchUserList(): {
|
|
9
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
10
|
+
userList: import("vue").Ref<{
|
|
11
|
+
userId: string;
|
|
12
|
+
userNo: string;
|
|
13
|
+
userName: string;
|
|
14
|
+
user2ndName?: string | undefined;
|
|
15
|
+
userExtName?: string | undefined;
|
|
16
|
+
userNameDisplay: string;
|
|
17
|
+
loginFlag: number;
|
|
18
|
+
adminFlag: number;
|
|
19
|
+
lockedFlag: number;
|
|
20
|
+
userTypeCode: string;
|
|
21
|
+
userTypeDesc: string;
|
|
22
|
+
enabledFlag: number;
|
|
23
|
+
spellNo?: string | undefined;
|
|
24
|
+
wbNo?: string | undefined;
|
|
25
|
+
paySumTypeCode: string;
|
|
26
|
+
paySumTypeDesc: string;
|
|
27
|
+
paySumBelongUserId: string;
|
|
28
|
+
paySumBelongUserName: string;
|
|
29
|
+
invoiceAgentUserId: string;
|
|
30
|
+
invoiceAgentUserName: string;
|
|
31
|
+
lastLoginAt?: string | undefined;
|
|
32
|
+
loginIp?: string | undefined;
|
|
33
|
+
loginMac?: string | undefined;
|
|
34
|
+
loginTypeCode?: string | undefined;
|
|
35
|
+
loginTypeDesc?: string | undefined;
|
|
36
|
+
personId?: string | undefined;
|
|
37
|
+
titleCode?: string | undefined;
|
|
38
|
+
titleDesc?: string | undefined;
|
|
39
|
+
personSimpleDesc?: string | undefined;
|
|
40
|
+
person2ndSimpleDesc?: string | undefined;
|
|
41
|
+
personExtSimpleDesc?: string | undefined;
|
|
42
|
+
simpleDescDisplay?: string | undefined;
|
|
43
|
+
userJobCode: string;
|
|
44
|
+
userJobDesc: string;
|
|
45
|
+
perCertificateList: {
|
|
46
|
+
perCertificateId: string;
|
|
47
|
+
certificateTypeCode: string;
|
|
48
|
+
certificateTypeDesc: string;
|
|
49
|
+
certificateNo: string;
|
|
50
|
+
}[];
|
|
51
|
+
loginOrgLocationList?: {
|
|
52
|
+
userXOrgLocationId: string;
|
|
53
|
+
orgLocationId: string;
|
|
54
|
+
orgLocationName: string;
|
|
55
|
+
sort: number;
|
|
56
|
+
orgId: string;
|
|
57
|
+
orgName: string;
|
|
58
|
+
orgTypeCode: string;
|
|
59
|
+
orgTypeDesc: string;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
userRoleList?: {
|
|
62
|
+
userRoleId: string;
|
|
63
|
+
hospitalId: string;
|
|
64
|
+
hospitalName: string;
|
|
65
|
+
roleId: string;
|
|
66
|
+
roleName: string;
|
|
67
|
+
tenantId: string;
|
|
68
|
+
tenantName: string;
|
|
69
|
+
}[] | undefined;
|
|
70
|
+
}[], UserItem[] | {
|
|
71
|
+
userId: string;
|
|
72
|
+
userNo: string;
|
|
73
|
+
userName: string;
|
|
74
|
+
user2ndName?: string | undefined;
|
|
75
|
+
userExtName?: string | undefined;
|
|
76
|
+
userNameDisplay: string;
|
|
77
|
+
loginFlag: number;
|
|
78
|
+
adminFlag: number;
|
|
79
|
+
lockedFlag: number;
|
|
80
|
+
userTypeCode: string;
|
|
81
|
+
userTypeDesc: string;
|
|
82
|
+
enabledFlag: number;
|
|
83
|
+
spellNo?: string | undefined;
|
|
84
|
+
wbNo?: string | undefined;
|
|
85
|
+
paySumTypeCode: string;
|
|
86
|
+
paySumTypeDesc: string;
|
|
87
|
+
paySumBelongUserId: string;
|
|
88
|
+
paySumBelongUserName: string;
|
|
89
|
+
invoiceAgentUserId: string;
|
|
90
|
+
invoiceAgentUserName: string;
|
|
91
|
+
lastLoginAt?: string | undefined;
|
|
92
|
+
loginIp?: string | undefined;
|
|
93
|
+
loginMac?: string | undefined;
|
|
94
|
+
loginTypeCode?: string | undefined;
|
|
95
|
+
loginTypeDesc?: string | undefined;
|
|
96
|
+
personId?: string | undefined;
|
|
97
|
+
titleCode?: string | undefined;
|
|
98
|
+
titleDesc?: string | undefined;
|
|
99
|
+
personSimpleDesc?: string | undefined;
|
|
100
|
+
person2ndSimpleDesc?: string | undefined;
|
|
101
|
+
personExtSimpleDesc?: string | undefined;
|
|
102
|
+
simpleDescDisplay?: string | undefined;
|
|
103
|
+
userJobCode: string;
|
|
104
|
+
userJobDesc: string;
|
|
105
|
+
perCertificateList: {
|
|
106
|
+
perCertificateId: string;
|
|
107
|
+
certificateTypeCode: string;
|
|
108
|
+
certificateTypeDesc: string;
|
|
109
|
+
certificateNo: string;
|
|
110
|
+
}[];
|
|
111
|
+
loginOrgLocationList?: {
|
|
112
|
+
userXOrgLocationId: string;
|
|
113
|
+
orgLocationId: string;
|
|
114
|
+
orgLocationName: string;
|
|
115
|
+
sort: number;
|
|
116
|
+
orgId: string;
|
|
117
|
+
orgName: string;
|
|
118
|
+
orgTypeCode: string;
|
|
119
|
+
orgTypeDesc: string;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
userRoleList?: {
|
|
122
|
+
userRoleId: string;
|
|
123
|
+
hospitalId: string;
|
|
124
|
+
hospitalName: string;
|
|
125
|
+
roleId: string;
|
|
126
|
+
roleName: string;
|
|
127
|
+
tenantId: string;
|
|
128
|
+
tenantName: string;
|
|
129
|
+
}[] | undefined;
|
|
130
|
+
}[]>;
|
|
131
|
+
getUserList: (params: Partial<UserQueryParams>) => Promise<void>;
|
|
132
|
+
};
|
|
@@ -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 {};
|
|
@@ -13,3 +13,4 @@ export { CopyTextWithTooltip } from './copy-text-with-tooltip/index.ts';
|
|
|
13
13
|
export { DictSelect, FlagSelect, HospitalSelect, TagSelect, } from './biz-select/index.ts';
|
|
14
14
|
export { DmlButton } from './dml-button/index.ts';
|
|
15
15
|
export { ProAvatar } from './pro-avatar/index.ts';
|
|
16
|
+
export { ChargeOrderDialog } from './charge-order-dialog/index.ts';
|