@lm_fe/env 0.1.201

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 (65) hide show
  1. package/README.md +31 -0
  2. package/dist/HK-MO-TW-a8290c42.js +35 -0
  3. package/dist/HK-MO-TW-a8290c42.js.map +1 -0
  4. package/dist/MAINLAND-dbab9013.js +408 -0
  5. package/dist/MAINLAND-dbab9013.js.map +1 -0
  6. package/dist/OVERSEA-aee11a7a.js +5 -0
  7. package/dist/OVERSEA-aee11a7a.js.map +1 -0
  8. package/dist/STREETS-a799058d.js +210 -0
  9. package/dist/STREETS-a799058d.js.map +1 -0
  10. package/dist/constant/APP_CONFIG.d.ts +30 -0
  11. package/dist/constant/index.d.ts +18 -0
  12. package/dist/constant/modal_template_types.d.ts +11 -0
  13. package/dist/env/MchcEnv.d.ts +60 -0
  14. package/dist/env/index.d.ts +8 -0
  15. package/dist/env/type copy.d.ts +12 -0
  16. package/dist/env/type.d.ts +8 -0
  17. package/dist/event/MchcDriver.d.ts +17 -0
  18. package/dist/event/index.d.ts +26 -0
  19. package/dist/event/types/common.d.ts +5 -0
  20. package/dist/event/types/components/BaseList.d.ts +7 -0
  21. package/dist/event/types/mchc_driver.d.ts +38 -0
  22. package/dist/event/types/my_form.d.ts +46 -0
  23. package/dist/event/types/outpatient.d.ts +17 -0
  24. package/dist/event/types/service_info.d.ts +11 -0
  25. package/dist/event/types/ws.d.ts +82 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +3573 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/logger/index.d.ts +2 -0
  30. package/dist/macro/index.d.ts +25 -0
  31. package/dist/select_options/address/HK-MO-TW.d.ts +34 -0
  32. package/dist/select_options/address/MAINLAND.d.ts +6 -0
  33. package/dist/select_options/address/OVERSEA.d.ts +4 -0
  34. package/dist/select_options/address/STREETS.d.ts +209 -0
  35. package/dist/select_options/address/index.d.ts +247 -0
  36. package/dist/select_options/checkbox_options.d.ts +6 -0
  37. package/dist/select_options/country.d.ts +1 -0
  38. package/dist/select_options/funcs.d.ts +19 -0
  39. package/dist/select_options/index.d.ts +4 -0
  40. package/dist/select_options/other_options.d.ts +172 -0
  41. package/dist/select_options/preset_options.d.ts +127 -0
  42. package/dist/select_options/types.d.ts +15 -0
  43. package/dist/state/actionType.d.ts +52 -0
  44. package/dist/state/actions/dictionaries.d.ts +2 -0
  45. package/dist/state/actions/health-mission.d.ts +10 -0
  46. package/dist/state/actions/prenatal-diagnosis.d.ts +5 -0
  47. package/dist/state/actions/prenatal-visit.d.ts +40 -0
  48. package/dist/state/actions/system.d.ts +8 -0
  49. package/dist/state/actions/tabs.d.ts +6 -0
  50. package/dist/state/actions/temp-ids.d.ts +2 -0
  51. package/dist/state/index.d.ts +43 -0
  52. package/dist/state/types.d.ts +148 -0
  53. package/dist/storage/index.d.ts +18 -0
  54. package/dist/utils/MchcRouterContainer.d.ts +14 -0
  55. package/dist/utils/checkIdNO.d.ts +40 -0
  56. package/dist/utils/dictionary.d.ts +40 -0
  57. package/dist/utils/dynamicScriptCtx.d.ts +3 -0
  58. package/dist/utils/func.d.ts +14 -0
  59. package/dist/utils/history.d.ts +8 -0
  60. package/dist/utils/index.d.ts +68 -0
  61. package/dist/utils/medical_examination.d.ts +21 -0
  62. package/dist/utils/runtime_ctx.d.ts +34 -0
  63. package/dist/utils/state.d.ts +10 -0
  64. package/dist/utils/user_data.d.ts +23 -0
  65. package/package.json +33 -0
@@ -0,0 +1,172 @@
1
+ import { ICommonOption } from "./preset_options";
2
+ export declare const otherOptions: {
3
+ highriskLabel: {
4
+ Ⅰ: string;
5
+ Ⅱ: string;
6
+ Ⅲ: string;
7
+ Ⅳ: string;
8
+ Ⅴ: string;
9
+ };
10
+ idTypeOptions: {
11
+ label: string;
12
+ value: number;
13
+ }[];
14
+ maritalStatusOptions: ICommonOption[];
15
+ appointmentTypeOptions: ({
16
+ label: string;
17
+ value: string;
18
+ } | {
19
+ label: string;
20
+ value: number;
21
+ })[];
22
+ appointmentCycleOptions: () => {
23
+ label: string;
24
+ value: number;
25
+ }[];
26
+ appointmentPeriodOptions: {
27
+ label: string;
28
+ value: number;
29
+ }[];
30
+ fetalOptions: ICommonOption[];
31
+ fetalMovementOptions: ICommonOption[];
32
+ presentationOptions: ICommonOption[];
33
+ fetalPositonOptions: ICommonOption[];
34
+ positonOptions: ICommonOption[];
35
+ fetalHeartOptions: ICommonOption[];
36
+ edemaOptions: ICommonOption[];
37
+ operationOptions: {
38
+ label: string;
39
+ value: string;
40
+ }[];
41
+ livingOptions: {
42
+ label: string;
43
+ value: boolean;
44
+ }[];
45
+ genderOptions: ICommonOption[];
46
+ aboOptions: ICommonOption[];
47
+ rhOptions: {
48
+ label: string;
49
+ value: number;
50
+ }[];
51
+ menstrualVolumeOptions: ICommonOption[];
52
+ dpOptions: ICommonOption[];
53
+ yywOptions: ICommonOption[];
54
+ urokinaseOptions: {
55
+ label: string;
56
+ value: number;
57
+ }[];
58
+ ogttOptions: ICommonOption[];
59
+ nhOptions: ICommonOption[];
60
+ nhiOptions: {
61
+ label: string;
62
+ value: number;
63
+ }[];
64
+ nyOptions: ICommonOption[];
65
+ zqOptions: {
66
+ label: string;
67
+ value: number;
68
+ }[];
69
+ rhythmOptions: {
70
+ label: string;
71
+ value: number;
72
+ }[];
73
+ liverOptions: {
74
+ label: string;
75
+ value: number;
76
+ }[];
77
+ downsScreenOptions: {
78
+ label: string;
79
+ value: number;
80
+ }[];
81
+ prenatalDiagnosisOptions: {
82
+ label: string;
83
+ value: number;
84
+ }[];
85
+ conceiveModeOptions: {
86
+ label: string;
87
+ value: number;
88
+ }[];
89
+ engagementOptions: {
90
+ label: string;
91
+ value: string;
92
+ }[];
93
+ hbOptions: {
94
+ label: string;
95
+ value: string;
96
+ }[];
97
+ wjycOptions: {
98
+ label: string;
99
+ value: string;
100
+ }[];
101
+ insOptions: {
102
+ label: string;
103
+ value: string;
104
+ }[];
105
+ pvPihOptions: {
106
+ label: string;
107
+ value: string;
108
+ }[];
109
+ jiuOptions: {
110
+ label: string;
111
+ value: string;
112
+ }[];
113
+ occupationOptions: {
114
+ label: string;
115
+ value: string;
116
+ }[];
117
+ diseaseOptions: {
118
+ label: string;
119
+ value: string;
120
+ }[];
121
+ nativeplaceOptions: {
122
+ label: any;
123
+ value: any;
124
+ }[];
125
+ ethnicOptions: ICommonOption[];
126
+ resultOptions: {
127
+ label: string;
128
+ value: string;
129
+ }[];
130
+ mentalstateOptions: {
131
+ label: string;
132
+ value: string;
133
+ }[];
134
+ jkzkOptions: {
135
+ label: string;
136
+ value: string;
137
+ }[];
138
+ xsewyOptions: {
139
+ label: string;
140
+ value: string;
141
+ }[];
142
+ breastOptions: {
143
+ label: string;
144
+ value: string;
145
+ }[];
146
+ lochiaOptions: {
147
+ label: string;
148
+ value: string;
149
+ }[];
150
+ vulvaOptions: {
151
+ label: string;
152
+ value: string;
153
+ }[];
154
+ pdjOptions: {
155
+ label: string;
156
+ value: string;
157
+ }[];
158
+ pelvicfloorOptions: {
159
+ label: string;
160
+ value: string;
161
+ }[];
162
+ highriskOptions: {
163
+ label: string;
164
+ value: string;
165
+ }[];
166
+ diagnosisOptions: {
167
+ label: string;
168
+ value: string;
169
+ }[];
170
+ WEBSOCKETMAPS: {};
171
+ };
172
+ export declare function getOtherOptions(key: keyof typeof otherOptions): ICommonOption[];
@@ -0,0 +1,127 @@
1
+ import { getDualModeOptions } from './funcs';
2
+ import { ICommonOption } from './types';
3
+ export { getSimpleOptions, getDualModeOptions, optionKey不详, optionKey其他, optionKey否, getSameOptions } from './funcs';
4
+ export declare const AddresstypeMapping: () => {
5
+ value: number;
6
+ label: string;
7
+ }[];
8
+ export declare const pre_option_map: {
9
+ abo血型: () => ICommonOption[];
10
+ rh血型: () => ICommonOption[];
11
+ 乳房情况s: () => ICommonOption[];
12
+ 先露: () => ICommonOption[];
13
+ 先露s: () => ICommonOption[];
14
+ 先露高低s: () => ICommonOption[];
15
+ 出量s: () => ICommonOption[];
16
+ 入量s: () => ICommonOption[];
17
+ 颜色s: () => ICommonOption[];
18
+ 膝反射s: () => ICommonOption[];
19
+ 腹部s: () => ICommonOption[];
20
+ 生殖器s: () => ICommonOption[];
21
+ 四肢s: () => ICommonOption[];
22
+ 面色s: () => ICommonOption[];
23
+ 反应s: () => ICommonOption[];
24
+ 哭声s: () => ICommonOption[];
25
+ 吸吮力s: () => ICommonOption[];
26
+ 脐带s: () => ICommonOption[];
27
+ 臀部s: () => ICommonOption[];
28
+ 大便s: () => ICommonOption[];
29
+ 小便s: () => ICommonOption[];
30
+ 喂养s: () => ICommonOption[];
31
+ 头颈s: () => ICommonOption[];
32
+ 意识s: () => ICommonOption[];
33
+ 泌乳情况: () => ICommonOption[];
34
+ 泌乳情况s: () => ICommonOption[];
35
+ 腹部伤口s: () => ICommonOption[];
36
+ 腹部伤口: () => ICommonOption[];
37
+ 会阴伤口s: () => ICommonOption[];
38
+ 会阴伤口: () => ICommonOption[];
39
+ 宫缩s: () => ICommonOption[];
40
+ 宫底高度s: () => ICommonOption[];
41
+ 宫底高度: () => ICommonOption[];
42
+ 破膜方式: () => ICommonOption[];
43
+ 破膜方式s: () => ICommonOption[];
44
+ 性别2: () => ICommonOption[];
45
+ 性别2s: () => ICommonOption[];
46
+ 性别3: () => ICommonOption[];
47
+ 性别3s: () => ICommonOption[];
48
+ 性别4: () => ICommonOption[];
49
+ 性别4s: () => ICommonOption[];
50
+ 胎方位12: () => ICommonOption[];
51
+ 胎方位22: () => ICommonOption[];
52
+ 胎方位22s: () => ICommonOption[];
53
+ 分娩方式: () => ICommonOption[];
54
+ 分娩方式s: () => ICommonOption[];
55
+ 语言表达: () => ICommonOption[];
56
+ 语言表达s: () => ICommonOption[];
57
+ 民族: () => ICommonOption[];
58
+ 民族s: () => ICommonOption[];
59
+ 民族10: () => ICommonOption[];
60
+ 民族10s: () => ICommonOption[];
61
+ 职业: () => ICommonOption[];
62
+ 职业s: () => ICommonOption[];
63
+ 阴阳3: () => ICommonOption[];
64
+ 阴阳3s: () => ICommonOption[];
65
+ 否是: () => ICommonOption[];
66
+ 否是s: () => ICommonOption[];
67
+ 婚姻: () => ICommonOption[];
68
+ 婚姻s: () => ICommonOption[];
69
+ 地址类型: () => ICommonOption[];
70
+ 地址类型s: () => ICommonOption[];
71
+ 人流手术: () => ICommonOption[];
72
+ 人流手术s: () => ICommonOption[];
73
+ 人流并发症: () => ICommonOption[];
74
+ 人流并发症s: () => ICommonOption[];
75
+ 人流原因: () => ICommonOption[];
76
+ 人流原因s: () => ICommonOption[];
77
+ 宫腔镜并发症: () => ICommonOption[];
78
+ 宫腔镜并发症s: () => ICommonOption[];
79
+ 文化程度: () => ICommonOption[];
80
+ 文化程度s: () => ICommonOption[];
81
+ 教育程度: () => ICommonOption[];
82
+ 教育程度s: () => ICommonOption[];
83
+ 无有: () => ICommonOption[];
84
+ 无有s: () => ICommonOption[];
85
+ 证件类型: () => ICommonOption[];
86
+ 证件类型s: () => ICommonOption[];
87
+ 产后出血高危因素: () => ICommonOption[];
88
+ 产后出血高危因素s: () => ICommonOption[];
89
+ 孕期状态: () => ICommonOption[];
90
+ 孕期状态s: () => ICommonOption[];
91
+ 阴阳: () => ICommonOption[];
92
+ 阴阳s: () => ICommonOption[];
93
+ 档案状态: () => {
94
+ label: string;
95
+ value: string;
96
+ }[];
97
+ 过敏药物: () => ICommonOption[];
98
+ 过敏药物s: () => ICommonOption[];
99
+ 省份s: () => {
100
+ code: string;
101
+ label: string;
102
+ value: string;
103
+ }[];
104
+ 国家s: () => ICommonOption[];
105
+ 国家: () => ICommonOption[];
106
+ 上报状态: () => ICommonOption[];
107
+ 上报状态s: () => ICommonOption[];
108
+ 推送状态: () => ICommonOption[];
109
+ 推送状态s: () => ICommonOption[];
110
+ 随访状态: () => ICommonOption[];
111
+ 随访状态s: () => ICommonOption[];
112
+ yesOrNoMapping: () => {
113
+ value: boolean;
114
+ label: string;
115
+ }[];
116
+ 否是i: () => ICommonOption[];
117
+ 无有i: () => ICommonOption[];
118
+ 无异常i: () => ICommonOption[];
119
+ };
120
+ export declare const selectOptionMap: {
121
+ [x: string]: () => ICommonOption[];
122
+ };
123
+ export declare function merge_preset_options_inner(ops: Partial<typeof pre_option_map>): void;
124
+ export declare function getPresetOptions(key: keyof typeof pre_option_map, pure?: boolean): ICommonOption[];
125
+ export declare function getOptionLabel(k: keyof typeof pre_option_map, value: any, defaultLabel?: string): string;
126
+ export declare function getOptionValue(k: keyof typeof pre_option_map, label: any): any;
127
+ export { ICommonOption, getDualModeOptions as getAllOptions };
@@ -0,0 +1,15 @@
1
+ export interface ICommonOption {
2
+ value?: any;
3
+ label?: string;
4
+ prefix?: string;
5
+ sufix?: string;
6
+ suffix?: string;
7
+ props?: any;
8
+ warning?: boolean;
9
+ parentheses?: boolean;
10
+ exclusive?: boolean;
11
+ inputType?: string;
12
+ id?: any;
13
+ text?: any;
14
+ code?: any;
15
+ }
@@ -0,0 +1,52 @@
1
+ export declare const ACTION_TYPE: {
2
+ USER_LOGIN: string;
3
+ USER_LOGOUT: string;
4
+ INIT_USER: string;
5
+ INIT_DICTIONARY: string;
6
+ ADD_TAB: string;
7
+ DELETE_TAB: string;
8
+ DELETE_ALL_TAB: string;
9
+ DELETE_OTHERS_TAB: string;
10
+ DELETE_RIGHT_TAB: string;
11
+ CHANGE_WOMEN_EXAM_RECORD_EDITING_ID: string;
12
+ INIT_HIGH_RISK_WS: string;
13
+ PRENATAL_VISIT_HEADERINFO: string;
14
+ PRENATAL_VISIT_MAIN_PREGNANCY: string;
15
+ PRENATAL_VISIT_MAIN_DIAGNOSESWORD: string;
16
+ PRENATAL_VISIT_MAIN_DIAGNOSES: string;
17
+ PRENATAL_VISIT_MAIN_DIAGNOSESTEMPLATE: string;
18
+ PRENATAL_VISIT_MAIN_HIGHRISKDIAGNOSES: string;
19
+ PRENATAL_VISIT_MAIN_HIGHRISKSIGN: string;
20
+ PRENATAL_VISIT_MAIN_HIGHRISK: string;
21
+ PRENATAL_VISIT_MAIN_TOLAC: string;
22
+ PRENATAL_VISIT_MAIN_SCREENING: string;
23
+ PRENATAL_VISIT_MAIN_PREECLAMPSIA: string;
24
+ PRENATAL_VISIT_MAIN_PREVENTPREECLAMPSIA: string;
25
+ PRENATAL_VISIT_MAIN_SYPHILIS: string;
26
+ PRENATAL_VISIT_WEBSOCKET_INSTANCE: string;
27
+ PRENATAL_VISIT_WEBSOCKET: string;
28
+ PRENATAL_VISIT_WEBSOCKET_SUM_CHANGE: string;
29
+ PRENATAL_VISIT_WEBSOCKET_DEL: string;
30
+ PRENATAL_VISIT_WEBSOCKET_LEVEL: string;
31
+ PRENATAL_VISIT_WEBSOCKET_LEVEL_NEW: string;
32
+ PRENATAL_VISIT_WEBSOCKET_CANCLEFORM: string;
33
+ PRENATAL_VISIT_WEBSOCKET_CHANGE_VISIBLE: string;
34
+ PRENATAL_VISIT_WEBSOCKET_CLOSE: string;
35
+ PRENATAL_VISIT_WEBSOCKET_CLEAR: string;
36
+ PRENATAL_VISIT_WEBSOCKET_SHOW: string;
37
+ PRENATAL_VISIT_WEBSOCKET_MULTITERM: string;
38
+ PRENATAL_DIAGNOSIS_CHANGE_PATIENT: string;
39
+ PRENATAL_DIAGNOSIS_OPEN_SPIN: string;
40
+ PRENATAL_DIAGNOSIS_CLOSE_SPIN: string;
41
+ UPDATE_COLLAPSED: string;
42
+ FORMDESCRIPTIONS_INIT: string;
43
+ GET_SYSTEM_CONFIG: string;
44
+ UPDATE_SYSTEM_CONFIG: string;
45
+ UPDATE_SYSTEM_THEME: string;
46
+ UPDATE_SOCKET_STATE: string;
47
+ UPDATE_ACTIVE_KEY: string;
48
+ UPDATE_ARTICLE_TYPE: string;
49
+ UPDATE_VIDEO_TYPE: string;
50
+ UPDATE_ARTICLE_LIST: string;
51
+ UPDATE_VIDEO_LIST: string;
52
+ };
@@ -0,0 +1,2 @@
1
+ import { Dispatch } from 'redux';
2
+ export declare const initDictionary: () => (dispatch: Dispatch) => Promise<void>;
@@ -0,0 +1,10 @@
1
+ import { Dispatch } from 'redux';
2
+ export declare const updateTab: (key: string) => (dispatch: Dispatch) => void;
3
+ export declare const updateArticleType: (key: string) => (dispatch: Dispatch) => void;
4
+ export declare const updateArticleListByPageNumber: (pageSize: number, pageNumber: number) => (dispatch: Dispatch) => Promise<void>;
5
+ export declare const updateArticleListByLabelId: (labelId: number, pageSize: number, pageNumber: number) => (dispatch: Dispatch) => Promise<void>;
6
+ export declare const updateArticleListBySearch: (searchValue: string) => (dispatch: Dispatch) => Promise<void>;
7
+ export declare const updateVideoType: (key: string) => (dispatch: Dispatch) => void;
8
+ export declare const updateVideoListByPageNumber: (pageSize: number, pageNumber: number) => (dispatch: Dispatch) => Promise<void>;
9
+ export declare const updateVideoListByLabelId: (labelId: number) => (dispatch: Dispatch) => Promise<void>;
10
+ export declare const updateVideoListBySearch: (searchValue: string) => (dispatch: Dispatch) => Promise<void>;
@@ -0,0 +1,5 @@
1
+ import { Dispatch } from 'redux';
2
+ export declare const openSpin: () => (dispatch: Dispatch) => void;
3
+ export declare const closeSpin: () => (dispatch: Dispatch) => void;
4
+ export declare const getPatient: (id: string) => (dispatch: Dispatch) => Promise<any>;
5
+ export declare const getPrenatalDiagnosis: (prenatalPatientId: number | string, id: number | string) => (dispatch: Dispatch) => Promise<any>;
@@ -0,0 +1,40 @@
1
+ import { Dispatch } from 'redux';
2
+ /**初始化高位标记ws实例 */
3
+ export declare const initRiskWs: (ws: any) => (dispatch: Dispatch) => void;
4
+ /** 获取孕册数据*/
5
+ export declare const getPregnancyData: (pregnancyId: string) => (dispatch: Dispatch) => Promise<any>;
6
+ /**保存头部信息 */
7
+ export declare const saveHeaderInfo: (data: any) => (dispatch: Dispatch) => void;
8
+ /** 诊断搜索词*/
9
+ export declare const setDiagnosesWord: (data: string) => (dispatch: Dispatch) => Promise<void>;
10
+ export declare const changeDiagnosesTemplate: (data: boolean) => (dispatch: Dispatch) => Promise<void>;
11
+ /** 获取诊断数据*/
12
+ export declare const getDiagnosesList: (pregnancyId: string) => (dispatch: Dispatch) => Promise<void>;
13
+ /** 获取高危诊断*/
14
+ export declare const getHighriskDiagnosis: (pregnancyId: string) => (dispatch: Dispatch) => Promise<void>;
15
+ /** 修改诊断数据*/
16
+ export declare const setDiagnosesList: (data: any) => (dispatch: Dispatch) => Promise<void>;
17
+ /** 获取高危因素标记数据*/
18
+ export declare const getHighriskSign: (pregnancyId: string) => (dispatch: Dispatch) => Promise<void>;
19
+ /** 修改高危因素标记数据*/
20
+ export declare const setHighriskSign: (data: any) => (dispatch: Dispatch) => Promise<void>;
21
+ export declare const changeTolac: (isShowTolac: boolean) => (dispatch: Dispatch) => void;
22
+ export declare const changeScreening: (isShowScreening: boolean) => (dispatch: Dispatch) => void;
23
+ export declare const changePreeclampsia: (isShowPreeclampsia: boolean) => (dispatch: Dispatch) => void;
24
+ export declare const changePreventPreeclampsia: (isShowPreventPreeclampsia: boolean) => (dispatch: Dispatch) => void;
25
+ export declare const changeSyphilis: (isShowSyphilis: boolean) => (dispatch: Dispatch) => void;
26
+ /**存储websocktet实例 */
27
+ export declare const initWebsocketInstance: (instance: any) => (dispatch: Dispatch, getState: any) => void;
28
+ export declare const changeWebsocket: (data: any) => (dispatch: Dispatch, getState: any) => void;
29
+ export declare const changewWebsocketSum: () => (dispatch: Dispatch, getState: any) => void;
30
+ export declare const delWebsocketMultierm: () => (dispatch: Dispatch) => void;
31
+ export declare const changeWebsocketLevel: (data: any) => (dispatch: Dispatch) => void;
32
+ export declare const changeWebsocketLevelNew: (data: any) => (dispatch: Dispatch) => void;
33
+ export declare const changeWebsocketCaseFormCalcle: (type: string) => (dispatch: Dispatch) => void;
34
+ export declare const changeVisibleIsWebsocket: () => (dispatch: Dispatch) => void;
35
+ export declare const websocketClose: () => (dispatch: Dispatch) => void;
36
+ export declare const clearWebsocket: () => (dispatch: Dispatch) => void;
37
+ export declare const changeWsShow: (bool: boolean) => (dispatch: Dispatch) => void;
38
+ /**更新头部信息 */
39
+ export declare const updateHeaderInfo: (id: string) => (dispatch: Dispatch) => Promise<void>;
40
+ export declare const changeWebsocketDataMultiterm: (data: any) => (dispatch: Dispatch) => void;
@@ -0,0 +1,8 @@
1
+ import { Dispatch } from 'redux';
2
+ import { ISystemConfig } from '../types';
3
+ export declare const initFormDescriptions: () => (dispatch: Dispatch) => Promise<void>;
4
+ export declare const _getSystemConfig: () => (dispatch: Dispatch) => Promise<ISystemConfig>;
5
+ export declare const _updateSystemConfig: (data: any) => (dispatch: Dispatch) => Promise<void>;
6
+ export declare const updateCollapsed: (collapsed: boolean) => (dispatch: Dispatch) => void;
7
+ export declare const updateSocketState: (state: number) => (dispatch: Dispatch) => Promise<number>;
8
+ export declare const updateTheme: (theme: string, showTip: boolean) => (dispatch: Dispatch) => Promise<void>;
@@ -0,0 +1,6 @@
1
+ import { Dispatch } from 'redux';
2
+ export declare const updateTabs: (tab: any) => (dispatch: Dispatch) => void;
3
+ export declare const deleteTab: (key: string) => (dispatch: Dispatch) => void;
4
+ export declare const deleteAllTabs: () => (dispatch: Dispatch) => void;
5
+ export declare const deleteRightTabsByKey: (key: string) => (dispatch: Dispatch) => void;
6
+ export declare const deleteOtherTabsByKey: (key: string) => (dispatch: Dispatch) => void;
@@ -0,0 +1,2 @@
1
+ import { Dispatch } from 'redux';
2
+ export declare const updateWomenExamRecordsEditingId: (womenExamRecordsEditingId: any) => (dispatch: Dispatch) => void;
@@ -0,0 +1,43 @@
1
+ import { Store } from 'redux';
2
+ import { IState, ISystemConfig } from './types';
3
+ import { MyLog } from '@lm_fe/utils';
4
+ export * from './types';
5
+ declare class MchcStore {
6
+ logger: MyLog;
7
+ private _store;
8
+ get store(): Store;
9
+ set store(value: Store);
10
+ __getState: () => IState;
11
+ __getDispatch: () => Store['dispatch'];
12
+ get state(): IState;
13
+ get dispatch(): import("redux").Dispatch<import("redux").AnyAction>;
14
+ initDictionary(): Promise<void>;
15
+ deleteAllTabs(): void;
16
+ deleteCurrentTab(): void;
17
+ getSystemConfig(): Promise<ISystemConfig>;
18
+ updateSystemConfig(data: any): Promise<void>;
19
+ getPregnancyData(data: any): Promise<any>;
20
+ get highrisk_version_options(): {
21
+ label: string;
22
+ id: number;
23
+ note: string;
24
+ value: number;
25
+ }[];
26
+ get highriskContagionConfig(): {
27
+ color: string;
28
+ options: import("src/select_options").ICommonOption[];
29
+ };
30
+ get highriskGradeConfig(): {
31
+ colorText: string;
32
+ id: number;
33
+ label: string;
34
+ note: string;
35
+ value: number;
36
+ }[];
37
+ }
38
+ declare class MchcConfig {
39
+ get<T extends keyof ISystemConfig>(key: T): ISystemConfig[T];
40
+ getAll(): ISystemConfig;
41
+ }
42
+ export declare const mchcStore: MchcStore;
43
+ export declare const mchcConfig: MchcConfig;
@@ -0,0 +1,148 @@
1
+ import { ICommonOption } from "../select_options";
2
+ export interface ISystemConfig {
3
+ id: number;
4
+ systemName: string;
5
+ systemMode: "devlopment" | "test" | "production";
6
+ systemTheme: string;
7
+ expireTime: number;
8
+ openWebsocket: boolean;
9
+ websocketAddress: "ws://127.0.0.1:8087/Laputa";
10
+ auditRestriction: boolean;
11
+ openIntro: boolean;
12
+ fetalMonitor: string;
13
+ openHighriskSign: boolean;
14
+ highriskVersion: number;
15
+ curveVersion: "nichd";
16
+ prenatalDiagnosis: boolean;
17
+ CaseReport: boolean;
18
+ FetalMonitor: boolean;
19
+ InformedConsent: boolean;
20
+ nurseDeskVoucher: boolean;
21
+ pregnancyInitial: 'tab' | 'vertical';
22
+ isOpenDiabetes: boolean;
23
+ diagnosisStyle: "tab";
24
+ diagnosisFollowUpRecord: boolean;
25
+ diagnosisLaboratoryReport: boolean;
26
+ diagnosisPrenatalVisit: boolean;
27
+ tablePrintBtn: boolean;
28
+ homeStatistics: boolean;
29
+ highriskStatistics: boolean;
30
+ customerService: true;
31
+ highriskType: string;
32
+ 禁止编辑高危等级: boolean;
33
+ 系统环境: any;
34
+ 护士端_禁止编辑高危因素_传染病: boolean;
35
+ 医生端_模块隐藏: ICommonOption[];
36
+ doctorOpenWebsocket: boolean;
37
+ VTE预防用药筛查表: string;
38
+ nurseHide: ICommonOption[];
39
+ medicalHide: ICommonOption[];
40
+ PDF预览组件版本?: string;
41
+ 老人模式?: boolean;
42
+ 列表一页显示条数?: number;
43
+ 医生端_检验检查时间轴隐藏?: boolean;
44
+ 医生端_复诊按钮浮动?: boolean;
45
+ 医生端_复诊左侧隐藏?: boolean;
46
+ 医生端_复诊编辑控制?: boolean;
47
+ 顶部工具栏隐藏?: boolean;
48
+ }
49
+ interface ITab {
50
+ closable: boolean;
51
+ key: string;
52
+ lastSearch: string;
53
+ path: string;
54
+ search: string;
55
+ title: string;
56
+ }
57
+ export interface IMchc_Permission {
58
+ active: boolean;
59
+ icon: string;
60
+ id: number;
61
+ key: string;
62
+ name: string;
63
+ parentid: number;
64
+ sort: number;
65
+ type: "menu" | "route";
66
+ }
67
+ export interface IMchc_Group {
68
+ authorities: {
69
+ name: string;
70
+ }[];
71
+ groupdesc: string;
72
+ id: number;
73
+ name: string;
74
+ nickname: string;
75
+ permissions: IMchc_Permission[];
76
+ groupRanks?: {
77
+ "id": 2;
78
+ "name": "组员";
79
+ "administrator": 1;
80
+ "rankSort": 1;
81
+ "groupId": 1;
82
+ }[];
83
+ }
84
+ export interface IMchc_User {
85
+ activated: true;
86
+ authorities: null;
87
+ config: null;
88
+ createdBy: string;
89
+ createdDate: string;
90
+ email: string;
91
+ firstName: string;
92
+ groups: IMchc_Group[];
93
+ id: number;
94
+ imageUrl: null;
95
+ langKey: string;
96
+ lastModifiedBy: string;
97
+ lastModifiedDate: string;
98
+ lastName: null;
99
+ login: string;
100
+ overdueDate: string;
101
+ password: null;
102
+ userType: null;
103
+ wards: null;
104
+ }
105
+ export interface IState {
106
+ system: {
107
+ config: ISystemConfig;
108
+ collapsed: boolean;
109
+ socketState: boolean;
110
+ };
111
+ tabs: {
112
+ activeKey: string;
113
+ tabs: ITab[];
114
+ tabsMapping: {
115
+ [x: string]: ITab;
116
+ };
117
+ };
118
+ user: {
119
+ userData: IMchc_User;
120
+ basicInfo: any;
121
+ allMenuTree: any[];
122
+ menuTree: any[];
123
+ permissionsMapping: {
124
+ x: string;
125
+ };
126
+ };
127
+ dictionaries: {
128
+ [x: string]: IDictionaries;
129
+ } & {
130
+ initDictionaries: IDictionaries[];
131
+ };
132
+ }
133
+ export interface IDictionaries {
134
+ id: number;
135
+ module: string;
136
+ type: number;
137
+ key: string;
138
+ name: string;
139
+ note: string;
140
+ enumerations: IDictionaries_Enumeration[];
141
+ }
142
+ export interface IDictionaries_Enumeration {
143
+ id: number;
144
+ label: string;
145
+ note: string;
146
+ value: number;
147
+ }
148
+ export {};
@@ -0,0 +1,18 @@
1
+ declare class MchcStorage implements StoreJsAPI {
2
+ version: string;
3
+ enabled: boolean;
4
+ each(callback: (val: any, namespacedKey: string) => void): void;
5
+ hasNamespace(namespace: string): boolean;
6
+ createStore(plugins?: Function[], namespace?: string): StoreJsAPI;
7
+ addPlugin(plugin: Function): void;
8
+ namespace(namespace: string): StoreJsAPI;
9
+ [name: string]: any;
10
+ length: number;
11
+ is_sess(): any;
12
+ clearAll(): void;
13
+ get(key: string): string | null;
14
+ remove(key: string): void;
15
+ set(key: string, value: any): void;
16
+ }
17
+ export declare const mchcStorage: MchcStorage;
18
+ export {};
@@ -0,0 +1,14 @@
1
+ import { AnyObject } from "@lm_fe/utils";
2
+ type TData = AnyObject;
3
+ declare class MchcRouterContainer {
4
+ init(base: TData, ...addon: TData[]): void;
5
+ base: TData;
6
+ addon: TData;
7
+ routesData: TData;
8
+ mix(base: TData, addon: TData[]): void;
9
+ get_real_path(pathname: string): string;
10
+ getTargetComponent(pathname: string): any;
11
+ get_addon_component(pathname: string): any;
12
+ }
13
+ export declare const mchcRouterContainer__: MchcRouterContainer;
14
+ export { MchcRouterContainer };