@lm_fe/components_m 0.1.201 → 0.2.2

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 (621) hide show
  1. package/README.md +0 -0
  2. package/dist/BaseEditPanel/BaseEditPanelFormFC.d.ts +3 -0
  3. package/dist/BaseEditPanel/PanelWithChildFC.d.ts +10 -15
  4. package/dist/BaseList/index.d.ts +2 -2
  5. package/dist/BaseList/methods/index.d.ts +1 -4
  6. package/dist/BaseListOld/methods/index.d.ts +1 -5
  7. package/dist/BaseModalForm/DynamicForm.d.ts +0 -24
  8. package/dist/BaseModalForm/PatientList/index.d.ts +2 -2
  9. package/dist/BaseModalForm/index.d.ts +2 -2
  10. package/dist/BusinessComponents/BloodPressure/index.d.ts +2 -1
  11. package/dist/BusinessComponents/DiagnosisListInduced/index.d.ts +2 -1
  12. package/dist/BusinessComponents/DiagnosisListv2/template/index.d.ts +1 -2
  13. package/dist/BusinessComponents/HighriskGrade/index.d.ts +1 -1
  14. package/dist/BusinessComponents/HighriskSign/index.d.ts +1 -1
  15. package/dist/BusinessComponents/InspectionResultTextarea/utils.d.ts +0 -8
  16. package/dist/BusinessComponents/LaborProcess/index.d.ts +3 -3
  17. package/dist/BusinessComponents/NurseChildren/index.d.ts +5 -5
  18. package/dist/BusinessComponents/NurseChildren2/index.d.ts +1 -2
  19. package/dist/BusinessComponents/NursingFetusv2/index.d.ts +1 -2
  20. package/dist/BusinessComponents/NursingFetusv3/index.d.ts +3 -3
  21. package/dist/BusinessComponents/PregnancyHistory/config/index-table.d.ts +1 -1
  22. package/dist/BusinessComponents/ResultTextarea/index copy.d.ts +13 -0
  23. package/dist/BusinessComponents/ResultTextarea/index.d.ts +1 -1
  24. package/dist/BusinessComponents/ResultTextarea/utils.d.ts +0 -8
  25. package/dist/BusinessComponents/TemplateTexDeathclassification1/index.d.ts +2 -1
  26. package/dist/BusinessComponents/TemplateTextareav2/components/TemplateSelect.d.ts +2 -1
  27. package/dist/BusinessComponents/TreatmentProgram/TreatmentProgramTable/index.d.ts +3 -4
  28. package/dist/BusinessComponents/UltrosoundResultTextarea/utils.d.ts +0 -8
  29. package/dist/ConfigComponents/CheckboxWithInput/index.d.ts +2 -1
  30. package/dist/ConfigComponents/InputWithRange/index.d.ts +2 -1
  31. package/dist/ConfigComponents/NeonatalCareRecordTable/table/default.d.ts +3 -3
  32. package/dist/ConfigComponents/NeonatalCareRecordTable/table/gysy.d.ts +11 -11
  33. package/dist/ConfigComponents/NeonatalCareRecordTable/table/indx.d.ts +14 -14
  34. package/dist/ConfigComponents/NeonatalScaleExamination/table.d.ts +4 -4
  35. package/dist/ConfigComponents/NormalNursingTable/table.d.ts +1 -1
  36. package/dist/ConfigComponents/ObserMagnesiumsulphateTable/table.d.ts +3 -3
  37. package/dist/ConfigComponents/PastDeliveryNursingTable/table.d.ts +6 -6
  38. package/dist/ConfigComponents/PreDeliverNursingTable/table/default.d.ts +4 -4
  39. package/dist/ConfigComponents/SpecialNursingTable/table.d.ts +2 -2
  40. package/dist/FU_components/ArrayInput/index copy.d.ts +4 -0
  41. package/dist/FU_components/ArrayInput/index.d.ts +1 -4
  42. package/dist/FU_components/ArrayInput/types.d.ts +8 -9
  43. package/dist/FU_components/ArrayPanel/Display.d.ts +0 -1
  44. package/dist/FU_components/ArrayPanel/Inner.d.ts +5 -3
  45. package/dist/FU_components/CommonFormTabs/index.d.ts +1 -1
  46. package/dist/FU_components/CommonFormTabs/types.d.ts +4 -2
  47. package/dist/FU_components/CommonFormTabs/utils.d.ts +4 -0
  48. package/dist/FU_components/DateRange/index copy.d.ts +7 -0
  49. package/dist/FU_components/DateRange/index.d.ts +1 -7
  50. package/dist/FU_components/DateTimeInput/Inner.d.ts +2 -0
  51. package/dist/FU_components/DateTimeInput/index.d.ts +3 -1
  52. package/dist/FU_components/FormSection/FormSectionForm.d.ts +4 -0
  53. package/dist/FU_components/FormSection/RenderFormSectionComponent.d.ts +3 -3
  54. package/dist/FU_components/FormSection/form_control.d.ts +9 -0
  55. package/dist/FU_components/FormSection/helper.d.ts +7 -7
  56. package/dist/FU_components/FormSection/types.d.ts +4 -1
  57. package/dist/FU_components/FormSection/use_chrono.d.ts +17 -2
  58. package/dist/FU_components/HbvdnaInput/index.d.ts +2 -1
  59. package/dist/FU_components/HighriskGradeColorSpan/index.d.ts +1 -1
  60. package/dist/FU_components/IdNOButton/index copy.d.ts +1 -1
  61. package/dist/FU_components/MchcDriverStatus/Inner.d.ts +1 -1
  62. package/dist/FU_components/MyAutoComplete/index copy.d.ts +4 -0
  63. package/dist/FU_components/MyAutoComplete/index.d.ts +1 -4
  64. package/dist/FU_components/MyAutoComplete/types.d.ts +1 -1
  65. package/dist/FU_components/MyBaseList/methods/index.d.ts +1 -1
  66. package/dist/FU_components/MyBaseTable/strategies.d.ts +0 -5
  67. package/dist/FU_components/MyButton/{index.d.ts → index copy.d.ts } +1 -1
  68. package/dist/FU_components/MyEditTable/Inner.d.ts +4 -0
  69. package/dist/FU_components/MyEditTable/index.d.ts +2 -19
  70. package/dist/FU_components/MyEditTable/types.d.ts +16 -0
  71. package/dist/FU_components/MyReferralOrganizationSelect/index.d.ts +1 -1
  72. package/dist/FU_components/MySearchSelect/index.d.ts +2 -1
  73. package/dist/FU_components/MySelect/index.d.ts +1 -8
  74. package/dist/FU_components/MySelect/types.d.ts +3 -5
  75. package/dist/FU_components/OkButton/index.d.ts +2 -7
  76. package/dist/FU_components/PressureInput/index.d.ts +4 -0
  77. package/dist/FU_components/ResultTextarea/index.d.ts +19 -0
  78. package/dist/FU_components/index.d.ts +1 -3
  79. package/dist/FU_components/types.d.ts +1 -12
  80. package/dist/GeneralComponents/CaseTemplete/Inner.d.ts +4 -1
  81. package/dist/GeneralComponents/CheckboxGroupObject/index.d.ts +1 -1
  82. package/dist/GeneralComponents/CheckboxWithInput_gold/components.d.ts +200 -45
  83. package/dist/GeneralComponents/CheckboxWithInput_gold/index.d.ts +1 -5
  84. package/dist/GeneralComponents/CheckboxWithInput_gold/types.d.ts +1 -1
  85. package/dist/GeneralComponents/CheckboxWithInput_gold/utils.d.ts +0 -4
  86. package/dist/GeneralComponents/CustomIcon/index.d.ts +0 -1
  87. package/dist/GeneralComponents/DatePicker/Inner.d.ts +1 -1
  88. package/dist/GeneralComponents/DatePicker/index.d.ts +2 -2
  89. package/dist/GeneralComponents/DatePicker/utils.d.ts +35 -0
  90. package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy.d.ts +3 -24
  91. package/dist/GeneralComponents/EditInTable/components.d.ts +1 -1
  92. package/dist/GeneralComponents/EditInTable/index.d.ts +2 -2
  93. package/dist/GeneralComponents/EditInTable/utils.d.ts +6 -1
  94. package/dist/GeneralComponents/ImageUploadPreview/Inner.d.ts +2 -1
  95. package/dist/GeneralComponents/ImageUploadPreview/index.d.ts +2 -1
  96. package/dist/GeneralComponents/InputNumber/index.d.ts +4 -4
  97. package/dist/GeneralComponents/MobileEditor/Inner.d.ts +6 -9
  98. package/dist/GeneralComponents/MobileEditor/index.d.ts +3 -2
  99. package/dist/GeneralComponents/UploadFile/index.d.ts +9 -1
  100. package/dist/GeneralComponents/UploadFileUrlEdit/index.d.ts +2 -1
  101. package/dist/MyForm/components/Base/CheckboxWithExtra.d.ts +3 -2
  102. package/dist/MyForm/components/MyButton/index.d.ts +1 -1
  103. package/dist/MyForm/components/MySelect/DefaultSelect.d.ts +3 -2
  104. package/dist/MyForm/components/MyTable/index.d.ts +1 -1
  105. package/dist/MyForm/components/MyTable/index2.d.ts +1 -1
  106. package/dist/MyForm/components/_MyFormComponent.d.ts +252 -0
  107. package/dist/MyForm/components/business/NormalButton/index.d.ts +1 -1
  108. package/dist/MyForm/components/business/PdProcedure/config/table.d.ts +1 -1
  109. package/dist/MyForm/components/business/PregnancyHistory/MyForm_Business_PregnancyHistory.d.ts +1 -1
  110. package/dist/MyForm/components/business/PregnancyHistory/config.d.ts +37 -9
  111. package/dist/MyForm/components/business/TextareaWithBtn/index.d.ts +4 -7
  112. package/dist/MyForm/form_new.d.ts +20 -1
  113. package/dist/a_chunks/.root.js +73 -130
  114. package/dist/a_chunks/.root10.js +124 -319
  115. package/dist/a_chunks/.root100.js +22 -393
  116. package/dist/a_chunks/.root101.js +83 -987
  117. package/dist/a_chunks/.root102.js +13 -278
  118. package/dist/a_chunks/.root103.js +83 -128
  119. package/dist/a_chunks/.root104.js +64 -277
  120. package/dist/a_chunks/.root105.js +133 -492
  121. package/dist/a_chunks/.root106.js +45 -106
  122. package/dist/a_chunks/.root107.js +43 -210
  123. package/dist/a_chunks/.root108.js +71 -174
  124. package/dist/a_chunks/.root109.js +38 -910
  125. package/dist/a_chunks/.root11.js +55 -89
  126. package/dist/a_chunks/.root110.js +46 -939
  127. package/dist/a_chunks/.root111.js +188 -169
  128. package/dist/a_chunks/.root112.js +16 -414
  129. package/dist/a_chunks/.root113.js +23 -257
  130. package/dist/a_chunks/.root114.js +1994 -163
  131. package/dist/a_chunks/.root115.js +33 -343
  132. package/dist/a_chunks/.root116.js +67 -150
  133. package/dist/a_chunks/.root117.js +35 -124
  134. package/dist/a_chunks/.root118.js +49 -523
  135. package/dist/a_chunks/.root119.js +58 -580
  136. package/dist/a_chunks/.root12.js +133 -117
  137. package/dist/a_chunks/.root120.js +62 -277
  138. package/dist/a_chunks/.root121.js +75 -512
  139. package/dist/a_chunks/.root122.js +75 -633
  140. package/dist/a_chunks/.root123.js +29 -669
  141. package/dist/a_chunks/.root124.js +57 -273
  142. package/dist/a_chunks/.root125.js +107 -200
  143. package/dist/a_chunks/.root126.js +179 -81
  144. package/dist/a_chunks/.root127.js +85 -792
  145. package/dist/a_chunks/.root128.js +108 -260
  146. package/dist/a_chunks/.root129.js +172 -1085
  147. package/dist/a_chunks/.root13.js +284 -119
  148. package/dist/a_chunks/.root130.js +200 -532
  149. package/dist/a_chunks/.root131.js +2 -242
  150. package/dist/a_chunks/.root132.js +185 -131
  151. package/dist/a_chunks/.root133.js +324 -180
  152. package/dist/a_chunks/.root134.js +13 -409
  153. package/dist/a_chunks/.root135.js +160 -1135
  154. package/dist/a_chunks/.root14.js +251 -316
  155. package/dist/a_chunks/.root15.js +58 -266
  156. package/dist/a_chunks/.root16.js +74 -240
  157. package/dist/a_chunks/.root17.js +38 -127
  158. package/dist/a_chunks/.root18.js +87 -148
  159. package/dist/a_chunks/.root19.js +182 -109
  160. package/dist/a_chunks/.root2.js +97 -163
  161. package/dist/a_chunks/.root20.js +237 -157
  162. package/dist/a_chunks/.root21.js +19 -258
  163. package/dist/a_chunks/.root22.js +20 -320
  164. package/dist/a_chunks/.root23.js +197 -20
  165. package/dist/a_chunks/.root24.js +190 -89
  166. package/dist/a_chunks/.root25.js +73 -196
  167. package/dist/a_chunks/.root26.js +102 -257
  168. package/dist/a_chunks/.root27.js +69 -142
  169. package/dist/a_chunks/.root28.js +79 -375
  170. package/dist/a_chunks/.root29.js +34 -542
  171. package/dist/a_chunks/.root3.js +103 -170
  172. package/dist/a_chunks/.root30.js +19 -2226
  173. package/dist/a_chunks/.root31.js +50 -279
  174. package/dist/a_chunks/.root32.js +49 -81
  175. package/dist/a_chunks/.root33.js +49 -84
  176. package/dist/a_chunks/.root34.js +200 -223
  177. package/dist/a_chunks/.root35.js +112 -279
  178. package/dist/a_chunks/.root36.js +136 -158
  179. package/dist/a_chunks/.root37.js +19 -146
  180. package/dist/a_chunks/.root38.js +101 -78
  181. package/dist/a_chunks/.root39.js +581 -34
  182. package/dist/a_chunks/.root4.js +635 -1056
  183. package/dist/a_chunks/.root40.js +25 -268
  184. package/dist/a_chunks/.root41.js +312 -18
  185. package/dist/a_chunks/.root42.js +138 -192
  186. package/dist/a_chunks/.root43.js +62 -128
  187. package/dist/a_chunks/.root44.js +264 -36
  188. package/dist/a_chunks/.root45.js +257 -20
  189. package/dist/a_chunks/.root46.js +2274 -47
  190. package/dist/a_chunks/.root47.js +490 -227
  191. package/dist/a_chunks/.root48.js +190 -160
  192. package/dist/a_chunks/.root49.js +168 -74
  193. package/dist/a_chunks/.root5.js +98 -349
  194. package/dist/a_chunks/.root50.js +146 -190
  195. package/dist/a_chunks/.root51.js +379 -305
  196. package/dist/a_chunks/.root52.js +237 -101
  197. package/dist/a_chunks/.root53.js +29 -296
  198. package/dist/a_chunks/.root54.js +69 -23
  199. package/dist/a_chunks/.root55.js +71 -660
  200. package/dist/a_chunks/.root56.js +356 -3320
  201. package/dist/a_chunks/.root57.js +206 -544
  202. package/dist/a_chunks/.root58.js +275 -185
  203. package/dist/a_chunks/.root59.js +150 -147
  204. package/dist/a_chunks/.root6.js +1003 -188
  205. package/dist/a_chunks/.root60.js +132 -882
  206. package/dist/a_chunks/.root61.js +288 -98
  207. package/dist/a_chunks/.root62.js +293 -213
  208. package/dist/a_chunks/.root63.js +299 -294
  209. package/dist/a_chunks/.root64.js +295 -450
  210. package/dist/a_chunks/.root65.js +924 -458
  211. package/dist/a_chunks/.root66.js +58 -1053
  212. package/dist/a_chunks/.root67.js +813 -255
  213. package/dist/a_chunks/.root68.js +892 -192
  214. package/dist/a_chunks/.root69.js +80 -1070
  215. package/dist/a_chunks/.root7.js +269 -725
  216. package/dist/a_chunks/.root70.js +333 -830
  217. package/dist/a_chunks/.root71.js +155 -376
  218. package/dist/a_chunks/.root72.js +245 -204
  219. package/dist/a_chunks/.root73.js +76 -148
  220. package/dist/a_chunks/.root74.js +54 -344
  221. package/dist/a_chunks/.root75.js +610 -530
  222. package/dist/a_chunks/.root76.js +34 -533
  223. package/dist/a_chunks/.root77.js +140 -328
  224. package/dist/a_chunks/.root78.js +472 -286
  225. package/dist/a_chunks/.root79.js +199 -2292
  226. package/dist/a_chunks/.root8.js +128 -163
  227. package/dist/a_chunks/.root80.js +476 -168
  228. package/dist/a_chunks/.root81.js +530 -535
  229. package/dist/a_chunks/.root82.js +565 -248
  230. package/dist/a_chunks/.root83.js +126 -242
  231. package/dist/a_chunks/.root84.js +14 -241
  232. package/dist/a_chunks/.root85.js +678 -430
  233. package/dist/a_chunks/.root86.js +161 -317
  234. package/dist/a_chunks/.root87.js +455 -88
  235. package/dist/a_chunks/.root88.js +175 -98
  236. package/dist/a_chunks/.root89.js +63 -237
  237. package/dist/a_chunks/.root9.js +93 -675
  238. package/dist/a_chunks/.root90.js +108 -348
  239. package/dist/a_chunks/.root91.js +331 -124
  240. package/dist/a_chunks/.root92.js +438 -139
  241. package/dist/a_chunks/.root93.js +102 -434
  242. package/dist/a_chunks/.root94.js +821 -346
  243. package/dist/a_chunks/.root95.js +39 -214
  244. package/dist/a_chunks/.root96.js +57 -349
  245. package/dist/a_chunks/.root97.js +274 -510
  246. package/dist/a_chunks/.root98.js +22 -366
  247. package/dist/a_chunks/.root99.js +57 -375
  248. package/dist/a_chunks/Inner.js +149 -262
  249. package/dist/a_chunks/TableEditableCell.js +12 -10
  250. package/dist/a_chunks/TemplateModal.js +111 -132
  251. package/dist/a_chunks/deathclassification.js +17 -33
  252. package/dist/a_chunks/index.js +2930 -5417
  253. package/dist/a_chunks/index2.js +2 -4
  254. package/dist/doctor-end/index.d.ts +0 -2
  255. package/dist/index.d.ts +3 -8
  256. package/dist/index.js +8 -77
  257. package/dist/layout/header.d.ts +0 -1
  258. package/dist/modals/index.d.ts +1 -16
  259. package/dist/modals/meta.d.ts +1 -16
  260. package/dist/newly-component/hepatitis-new-baby/components/Form.d.ts +2 -1
  261. package/dist/newly-component/hepatitis-new-baby/index.d.ts +2 -1
  262. package/dist/selects/NormalSelect/index.d.ts +1 -1
  263. package/dist/selects/SelectWithNo/index copy.d.ts +2 -0
  264. package/dist/selects/SelectWithNo/index.d.ts +2 -2
  265. package/dist/utils/InterceptComponent.d.ts +1 -0
  266. package/dist/utils/dictionary.d.ts +2 -13
  267. package/dist/utils/format.d.ts +4 -4
  268. package/dist/utils/index.d.ts +1 -1
  269. package/dist/utils/useMarshal.d.ts +3 -3
  270. package/dist/utils/utils.d.ts +0 -4
  271. package/package.json +32 -19
  272. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/BaseTable.d.ts +0 -5
  273. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/EditInTableNoForm.d.ts +0 -51
  274. package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/index.d.ts +0 -49
  275. package/dist/ConfigComponents/OxytocinNursingTable/index.d.ts +0 -2
  276. package/dist/ConfigComponents/OxytocinNursingTable/table/default.d.ts +0 -255
  277. package/dist/ConfigComponents/OxytocinNursingTable/table/gysy.d.ts +0 -234
  278. package/dist/ConfigComponents/OxytocinNursingTable/table/index.d.ts +0 -3
  279. package/dist/ConfigComponents/RevertEditInTable/index.d.ts +0 -1
  280. package/dist/FU_components/FormSection/utils.d.ts +0 -81
  281. package/dist/FU_components/SimpleForm/components/TabForm/index.d.ts +0 -14
  282. package/dist/FU_components/SimpleForm/components/extra/Custom.d.ts +0 -5
  283. package/dist/FU_components/SimpleForm/components/extra/SimpleSelect.d.ts +0 -6
  284. package/dist/FU_components/SimpleForm/index.d.ts +0 -45
  285. package/dist/FU_components/SimpleForm/types/help.d.ts +0 -3
  286. package/dist/FU_components/SimpleForm/types/lmTypes.d.ts +0 -85
  287. package/dist/FU_components/SimpleForm/types/metaTypes.d.ts +0 -28
  288. package/dist/GeneralComponents/CustomFormField/index.d.ts +0 -12
  289. package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy 2.d.ts +0 -24
  290. package/dist/GeneralComponents/IconSelect/index.d.ts +0 -5
  291. package/dist/GeneralComponents/SelectTable/index.d.ts +0 -44
  292. package/dist/GeneralComponents/SoDiaoEditor/config.d.ts +0 -44
  293. package/dist/GeneralComponents/SoDiaoEditor/index.d.ts +0 -11
  294. package/dist/a_chunks/.root.js.map +0 -1
  295. package/dist/a_chunks/.root10.js.map +0 -1
  296. package/dist/a_chunks/.root100.js.map +0 -1
  297. package/dist/a_chunks/.root101.js.map +0 -1
  298. package/dist/a_chunks/.root102.js.map +0 -1
  299. package/dist/a_chunks/.root103.js.map +0 -1
  300. package/dist/a_chunks/.root104.js.map +0 -1
  301. package/dist/a_chunks/.root105.js.map +0 -1
  302. package/dist/a_chunks/.root106.js.map +0 -1
  303. package/dist/a_chunks/.root107.js.map +0 -1
  304. package/dist/a_chunks/.root108.js.map +0 -1
  305. package/dist/a_chunks/.root109.js.map +0 -1
  306. package/dist/a_chunks/.root11.js.map +0 -1
  307. package/dist/a_chunks/.root110.js.map +0 -1
  308. package/dist/a_chunks/.root111.js.map +0 -1
  309. package/dist/a_chunks/.root112.js.map +0 -1
  310. package/dist/a_chunks/.root113.js.map +0 -1
  311. package/dist/a_chunks/.root114.js.map +0 -1
  312. package/dist/a_chunks/.root115.js.map +0 -1
  313. package/dist/a_chunks/.root116.js.map +0 -1
  314. package/dist/a_chunks/.root117.js.map +0 -1
  315. package/dist/a_chunks/.root118.js.map +0 -1
  316. package/dist/a_chunks/.root119.js.map +0 -1
  317. package/dist/a_chunks/.root12.js.map +0 -1
  318. package/dist/a_chunks/.root120.js.map +0 -1
  319. package/dist/a_chunks/.root121.js.map +0 -1
  320. package/dist/a_chunks/.root122.js.map +0 -1
  321. package/dist/a_chunks/.root123.js.map +0 -1
  322. package/dist/a_chunks/.root124.js.map +0 -1
  323. package/dist/a_chunks/.root125.js.map +0 -1
  324. package/dist/a_chunks/.root126.js.map +0 -1
  325. package/dist/a_chunks/.root127.js.map +0 -1
  326. package/dist/a_chunks/.root128.js.map +0 -1
  327. package/dist/a_chunks/.root129.js.map +0 -1
  328. package/dist/a_chunks/.root13.js.map +0 -1
  329. package/dist/a_chunks/.root130.js.map +0 -1
  330. package/dist/a_chunks/.root131.js.map +0 -1
  331. package/dist/a_chunks/.root132.js.map +0 -1
  332. package/dist/a_chunks/.root133.js.map +0 -1
  333. package/dist/a_chunks/.root134.js.map +0 -1
  334. package/dist/a_chunks/.root135.js.map +0 -1
  335. package/dist/a_chunks/.root136.js +0 -507
  336. package/dist/a_chunks/.root136.js.map +0 -1
  337. package/dist/a_chunks/.root137.js +0 -570
  338. package/dist/a_chunks/.root137.js.map +0 -1
  339. package/dist/a_chunks/.root138.js +0 -197
  340. package/dist/a_chunks/.root138.js.map +0 -1
  341. package/dist/a_chunks/.root139.js +0 -903
  342. package/dist/a_chunks/.root139.js.map +0 -1
  343. package/dist/a_chunks/.root14.js.map +0 -1
  344. package/dist/a_chunks/.root140.js +0 -267
  345. package/dist/a_chunks/.root140.js.map +0 -1
  346. package/dist/a_chunks/.root141.js +0 -179
  347. package/dist/a_chunks/.root141.js.map +0 -1
  348. package/dist/a_chunks/.root142.js +0 -114
  349. package/dist/a_chunks/.root142.js.map +0 -1
  350. package/dist/a_chunks/.root143.js +0 -133
  351. package/dist/a_chunks/.root143.js.map +0 -1
  352. package/dist/a_chunks/.root144.js +0 -351
  353. package/dist/a_chunks/.root144.js.map +0 -1
  354. package/dist/a_chunks/.root145.js +0 -99
  355. package/dist/a_chunks/.root145.js.map +0 -1
  356. package/dist/a_chunks/.root146.js +0 -136
  357. package/dist/a_chunks/.root146.js.map +0 -1
  358. package/dist/a_chunks/.root147.js +0 -445
  359. package/dist/a_chunks/.root147.js.map +0 -1
  360. package/dist/a_chunks/.root148.js +0 -618
  361. package/dist/a_chunks/.root148.js.map +0 -1
  362. package/dist/a_chunks/.root149.js +0 -329
  363. package/dist/a_chunks/.root149.js.map +0 -1
  364. package/dist/a_chunks/.root15.js.map +0 -1
  365. package/dist/a_chunks/.root150.js +0 -381
  366. package/dist/a_chunks/.root150.js.map +0 -1
  367. package/dist/a_chunks/.root151.js +0 -299
  368. package/dist/a_chunks/.root151.js.map +0 -1
  369. package/dist/a_chunks/.root152.js +0 -105
  370. package/dist/a_chunks/.root152.js.map +0 -1
  371. package/dist/a_chunks/.root153.js +0 -117
  372. package/dist/a_chunks/.root153.js.map +0 -1
  373. package/dist/a_chunks/.root154.js +0 -101
  374. package/dist/a_chunks/.root154.js.map +0 -1
  375. package/dist/a_chunks/.root155.js +0 -279
  376. package/dist/a_chunks/.root155.js.map +0 -1
  377. package/dist/a_chunks/.root156.js +0 -91
  378. package/dist/a_chunks/.root156.js.map +0 -1
  379. package/dist/a_chunks/.root157.js +0 -154
  380. package/dist/a_chunks/.root157.js.map +0 -1
  381. package/dist/a_chunks/.root158.js +0 -213
  382. package/dist/a_chunks/.root158.js.map +0 -1
  383. package/dist/a_chunks/.root159.js +0 -122
  384. package/dist/a_chunks/.root159.js.map +0 -1
  385. package/dist/a_chunks/.root16.js.map +0 -1
  386. package/dist/a_chunks/.root160.js +0 -123
  387. package/dist/a_chunks/.root160.js.map +0 -1
  388. package/dist/a_chunks/.root161.js +0 -45
  389. package/dist/a_chunks/.root161.js.map +0 -1
  390. package/dist/a_chunks/.root162.js +0 -46
  391. package/dist/a_chunks/.root162.js.map +0 -1
  392. package/dist/a_chunks/.root163.js +0 -77
  393. package/dist/a_chunks/.root163.js.map +0 -1
  394. package/dist/a_chunks/.root164.js +0 -206
  395. package/dist/a_chunks/.root164.js.map +0 -1
  396. package/dist/a_chunks/.root165.js +0 -108
  397. package/dist/a_chunks/.root165.js.map +0 -1
  398. package/dist/a_chunks/.root166.js +0 -108
  399. package/dist/a_chunks/.root166.js.map +0 -1
  400. package/dist/a_chunks/.root167.js +0 -2074
  401. package/dist/a_chunks/.root167.js.map +0 -1
  402. package/dist/a_chunks/.root168.js +0 -112
  403. package/dist/a_chunks/.root168.js.map +0 -1
  404. package/dist/a_chunks/.root169.js +0 -147
  405. package/dist/a_chunks/.root169.js.map +0 -1
  406. package/dist/a_chunks/.root17.js.map +0 -1
  407. package/dist/a_chunks/.root170.js +0 -114
  408. package/dist/a_chunks/.root170.js.map +0 -1
  409. package/dist/a_chunks/.root171.js +0 -59
  410. package/dist/a_chunks/.root171.js.map +0 -1
  411. package/dist/a_chunks/.root172.js +0 -69
  412. package/dist/a_chunks/.root172.js.map +0 -1
  413. package/dist/a_chunks/.root173.js +0 -146
  414. package/dist/a_chunks/.root173.js.map +0 -1
  415. package/dist/a_chunks/.root174.js +0 -112
  416. package/dist/a_chunks/.root174.js.map +0 -1
  417. package/dist/a_chunks/.root175.js +0 -113
  418. package/dist/a_chunks/.root175.js.map +0 -1
  419. package/dist/a_chunks/.root176.js +0 -109
  420. package/dist/a_chunks/.root176.js.map +0 -1
  421. package/dist/a_chunks/.root177.js +0 -129
  422. package/dist/a_chunks/.root177.js.map +0 -1
  423. package/dist/a_chunks/.root178.js +0 -182
  424. package/dist/a_chunks/.root178.js.map +0 -1
  425. package/dist/a_chunks/.root179.js +0 -253
  426. package/dist/a_chunks/.root179.js.map +0 -1
  427. package/dist/a_chunks/.root18.js.map +0 -1
  428. package/dist/a_chunks/.root180.js +0 -458
  429. package/dist/a_chunks/.root180.js.map +0 -1
  430. package/dist/a_chunks/.root181.js +0 -1511
  431. package/dist/a_chunks/.root181.js.map +0 -1
  432. package/dist/a_chunks/.root182.js +0 -91
  433. package/dist/a_chunks/.root182.js.map +0 -1
  434. package/dist/a_chunks/.root183.js +0 -115
  435. package/dist/a_chunks/.root183.js.map +0 -1
  436. package/dist/a_chunks/.root184.js +0 -1202
  437. package/dist/a_chunks/.root184.js.map +0 -1
  438. package/dist/a_chunks/.root185.js +0 -83
  439. package/dist/a_chunks/.root185.js.map +0 -1
  440. package/dist/a_chunks/.root186.js +0 -267
  441. package/dist/a_chunks/.root186.js.map +0 -1
  442. package/dist/a_chunks/.root187.js +0 -18
  443. package/dist/a_chunks/.root187.js.map +0 -1
  444. package/dist/a_chunks/.root19.js.map +0 -1
  445. package/dist/a_chunks/.root2.js.map +0 -1
  446. package/dist/a_chunks/.root20.js.map +0 -1
  447. package/dist/a_chunks/.root21.js.map +0 -1
  448. package/dist/a_chunks/.root22.js.map +0 -1
  449. package/dist/a_chunks/.root23.js.map +0 -1
  450. package/dist/a_chunks/.root24.js.map +0 -1
  451. package/dist/a_chunks/.root25.js.map +0 -1
  452. package/dist/a_chunks/.root26.js.map +0 -1
  453. package/dist/a_chunks/.root27.js.map +0 -1
  454. package/dist/a_chunks/.root28.js.map +0 -1
  455. package/dist/a_chunks/.root29.js.map +0 -1
  456. package/dist/a_chunks/.root3.js.map +0 -1
  457. package/dist/a_chunks/.root30.js.map +0 -1
  458. package/dist/a_chunks/.root31.js.map +0 -1
  459. package/dist/a_chunks/.root32.js.map +0 -1
  460. package/dist/a_chunks/.root33.js.map +0 -1
  461. package/dist/a_chunks/.root34.js.map +0 -1
  462. package/dist/a_chunks/.root35.js.map +0 -1
  463. package/dist/a_chunks/.root36.js.map +0 -1
  464. package/dist/a_chunks/.root37.js.map +0 -1
  465. package/dist/a_chunks/.root38.js.map +0 -1
  466. package/dist/a_chunks/.root39.js.map +0 -1
  467. package/dist/a_chunks/.root4.js.map +0 -1
  468. package/dist/a_chunks/.root40.js.map +0 -1
  469. package/dist/a_chunks/.root41.js.map +0 -1
  470. package/dist/a_chunks/.root42.js.map +0 -1
  471. package/dist/a_chunks/.root43.js.map +0 -1
  472. package/dist/a_chunks/.root44.js.map +0 -1
  473. package/dist/a_chunks/.root45.js.map +0 -1
  474. package/dist/a_chunks/.root46.js.map +0 -1
  475. package/dist/a_chunks/.root47.js.map +0 -1
  476. package/dist/a_chunks/.root48.js.map +0 -1
  477. package/dist/a_chunks/.root49.js.map +0 -1
  478. package/dist/a_chunks/.root5.js.map +0 -1
  479. package/dist/a_chunks/.root50.js.map +0 -1
  480. package/dist/a_chunks/.root51.js.map +0 -1
  481. package/dist/a_chunks/.root52.js.map +0 -1
  482. package/dist/a_chunks/.root53.js.map +0 -1
  483. package/dist/a_chunks/.root54.js.map +0 -1
  484. package/dist/a_chunks/.root55.js.map +0 -1
  485. package/dist/a_chunks/.root56.js.map +0 -1
  486. package/dist/a_chunks/.root57.js.map +0 -1
  487. package/dist/a_chunks/.root58.js.map +0 -1
  488. package/dist/a_chunks/.root59.js.map +0 -1
  489. package/dist/a_chunks/.root6.js.map +0 -1
  490. package/dist/a_chunks/.root60.js.map +0 -1
  491. package/dist/a_chunks/.root61.js.map +0 -1
  492. package/dist/a_chunks/.root62.js.map +0 -1
  493. package/dist/a_chunks/.root63.js.map +0 -1
  494. package/dist/a_chunks/.root64.js.map +0 -1
  495. package/dist/a_chunks/.root65.js.map +0 -1
  496. package/dist/a_chunks/.root66.js.map +0 -1
  497. package/dist/a_chunks/.root67.js.map +0 -1
  498. package/dist/a_chunks/.root68.js.map +0 -1
  499. package/dist/a_chunks/.root69.js.map +0 -1
  500. package/dist/a_chunks/.root7.js.map +0 -1
  501. package/dist/a_chunks/.root70.js.map +0 -1
  502. package/dist/a_chunks/.root71.js.map +0 -1
  503. package/dist/a_chunks/.root72.js.map +0 -1
  504. package/dist/a_chunks/.root73.js.map +0 -1
  505. package/dist/a_chunks/.root74.js.map +0 -1
  506. package/dist/a_chunks/.root75.js.map +0 -1
  507. package/dist/a_chunks/.root76.js.map +0 -1
  508. package/dist/a_chunks/.root77.js.map +0 -1
  509. package/dist/a_chunks/.root78.js.map +0 -1
  510. package/dist/a_chunks/.root79.js.map +0 -1
  511. package/dist/a_chunks/.root8.js.map +0 -1
  512. package/dist/a_chunks/.root80.js.map +0 -1
  513. package/dist/a_chunks/.root81.js.map +0 -1
  514. package/dist/a_chunks/.root82.js.map +0 -1
  515. package/dist/a_chunks/.root83.js.map +0 -1
  516. package/dist/a_chunks/.root84.js.map +0 -1
  517. package/dist/a_chunks/.root85.js.map +0 -1
  518. package/dist/a_chunks/.root86.js.map +0 -1
  519. package/dist/a_chunks/.root87.js.map +0 -1
  520. package/dist/a_chunks/.root88.js.map +0 -1
  521. package/dist/a_chunks/.root89.js.map +0 -1
  522. package/dist/a_chunks/.root9.js.map +0 -1
  523. package/dist/a_chunks/.root90.js.map +0 -1
  524. package/dist/a_chunks/.root91.js.map +0 -1
  525. package/dist/a_chunks/.root92.js.map +0 -1
  526. package/dist/a_chunks/.root93.js.map +0 -1
  527. package/dist/a_chunks/.root94.js.map +0 -1
  528. package/dist/a_chunks/.root95.js.map +0 -1
  529. package/dist/a_chunks/.root96.js.map +0 -1
  530. package/dist/a_chunks/.root97.js.map +0 -1
  531. package/dist/a_chunks/.root98.js.map +0 -1
  532. package/dist/a_chunks/.root99.js.map +0 -1
  533. package/dist/a_chunks/Inner.js.map +0 -1
  534. package/dist/a_chunks/TableEditableCell.js.map +0 -1
  535. package/dist/a_chunks/TemplateModal.js.map +0 -1
  536. package/dist/a_chunks/_commonjsHelpers.js +0 -22
  537. package/dist/a_chunks/_commonjsHelpers.js.map +0 -1
  538. package/dist/a_chunks/common-table-item.js +0 -771
  539. package/dist/a_chunks/common-table-item.js.map +0 -1
  540. package/dist/a_chunks/data.js +0 -570
  541. package/dist/a_chunks/data.js.map +0 -1
  542. package/dist/a_chunks/deathclassification.js.map +0 -1
  543. package/dist/a_chunks/func.js +0 -277
  544. package/dist/a_chunks/func.js.map +0 -1
  545. package/dist/a_chunks/index.js.map +0 -1
  546. package/dist/a_chunks/index2.js.map +0 -1
  547. package/dist/a_chunks/index3.js +0 -479
  548. package/dist/a_chunks/index3.js.map +0 -1
  549. package/dist/a_chunks/index4.js +0 -119
  550. package/dist/a_chunks/index4.js.map +0 -1
  551. package/dist/a_chunks/requestMethods.js +0 -56
  552. package/dist/a_chunks/requestMethods.js.map +0 -1
  553. package/dist/curve/components/BmiCanvas/index.d.ts +0 -29
  554. package/dist/curve/components/FetusCanvas/config.d.ts +0 -3
  555. package/dist/curve/components/FetusCanvas/index.d.ts +0 -26
  556. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +0 -9
  557. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +0 -3
  558. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +0 -84
  559. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +0 -28
  560. package/dist/curve/components/Pregnogram/index.d.ts +0 -19
  561. package/dist/curve/components/api.d.ts +0 -23
  562. package/dist/curve/components-new/BmiCanvas/index.d.ts +0 -22
  563. package/dist/curve/components-new/FetusCanvas/config.d.ts +0 -3
  564. package/dist/curve/components-new/FetusCanvas/index.d.ts +0 -19
  565. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +0 -9
  566. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +0 -3
  567. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +0 -84
  568. package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +0 -21
  569. package/dist/curve/components-new/Pregnogram/index.d.ts +0 -13
  570. package/dist/curve/data.d.ts +0 -120
  571. package/dist/curve/func.d.ts +0 -9
  572. package/dist/curve/index.d.ts +0 -5
  573. package/dist/curve/intro-steps.d.ts +0 -7
  574. package/dist/doctor-end/DiagReminder_copy/index.d.ts +0 -3
  575. package/dist/doctor-end/ScarredUterus/index.d.ts +0 -15
  576. package/dist/doctor-end/SyphilisManagement/index.d.ts +0 -15
  577. package/dist/doctor-end/Thrombus/index.d.ts +0 -22
  578. package/dist/doctor-end/high-risk-warn/add-diagnoses/add-diagnoses.d.ts +0 -11
  579. package/dist/doctor-end/high-risk-warn/high-risk-warn.d.ts +0 -15
  580. package/dist/doctor-end/high-risk-warn/util.d.ts +0 -12
  581. package/dist/doctor-end/message-multiterm-modal/message-multiterm-modal.d.ts +0 -11
  582. package/dist/index.js.map +0 -1
  583. package/dist/layout/components/MenuSearch/Inner.d.ts +0 -7
  584. package/dist/layout/components/MenuSearch/index.d.ts +0 -1
  585. package/dist/layout/index.d.ts +0 -1
  586. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +0 -2
  587. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +0 -22
  588. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  589. package/dist/modals/entries/modal_form/index.d.ts +0 -27
  590. package/dist/modals/entries/print_modal/index.d.ts +0 -3
  591. package/dist/modals/entries/template_modal3/EditModal.d.ts +0 -1
  592. package/dist/modals/entries/template_modal3/common.d.ts +0 -4
  593. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +0 -1
  594. package/dist/modals/entries/template_modal3/index copy 2.d.ts +0 -19
  595. package/dist/modals/entries/template_modal3/index copy.d.ts +0 -22
  596. package/dist/modals/entries/template_modal3/index.d.ts +0 -18
  597. package/dist/modals/entries/template_modal3/methods/index.d.ts +0 -15
  598. package/dist/modals/entries/template_modal3/types.d.ts +0 -28
  599. package/dist/modals/entries/test/index.d.ts +0 -6
  600. package/dist/modals/entries/text_search/index.d.ts +0 -8
  601. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +0 -7
  602. package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/index.d.ts +0 -9
  603. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +0 -7
  604. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +0 -9
  605. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/components.d.ts +0 -7
  606. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +0 -28
  607. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/utils.d.ts +0 -9
  608. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +0 -7
  609. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +0 -3
  610. package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +0 -5
  611. package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +0 -6
  612. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +0 -8
  613. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
  614. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/index.d.ts +0 -20
  615. package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/util.d.ts +0 -66
  616. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +0 -13
  617. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +0 -9
  618. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
  619. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +0 -13
  620. package/dist/utils/adapter.d.ts +0 -97
  621. /package/dist/FU_components/MyBaseList/{_MyBaseList.d.ts → _MyBaseList copy.d.ts} +0 -0
@@ -1,857 +1,360 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
3
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
+ import _createClass from "@babel/runtime/helpers/createClass";
5
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
+ import _inherits from "@babel/runtime/helpers/inherits";
4
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
6
- var _excluded = ["modal_data", "close"];
7
9
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
- import 'antd/es/modal/style';
11
- import _Modal from 'antd/es/modal';
12
- import { b as styleInject, $ as HighRiskGradeSelectPure, r as MySelect, _ as _extends } from './index.js';
13
- import 'antd/es/tabs/style';
14
- import _Tabs from 'antd/es/tabs';
15
- import 'antd/es/message/style';
16
- import _message from 'antd/es/message';
17
- import _map from 'lodash/map';
18
- import _keyBy from 'lodash/keyBy';
19
- import _get from 'lodash/get';
20
- import { SMchc_Doctor, SMchc_Common } from '@lm_fe/service';
21
- import { getSearchParamsValue, formatDate, ROMAN_NUMERALS, request } from '@lm_fe/utils';
22
- import React, { useRef, useState, useEffect } from 'react';
23
- import 'antd/es/input/style';
24
- import _Input from 'antd/es/input';
25
- import 'antd/es/space/style';
26
- import _Space from 'antd/es/space';
27
- import 'antd/es/button/style';
28
- import _Button from 'antd/es/button';
29
- import 'antd/es/row/style';
30
- import _Row from 'antd/es/row';
31
- import 'antd/es/col/style';
32
- import _Col from 'antd/es/col';
33
- import _split from 'lodash/split';
34
- import _sortBy from 'lodash/sortBy';
35
- import _keys from 'lodash/keys';
36
- import _isEmpty from 'lodash/isEmpty';
37
- import _includes from 'lodash/includes';
38
- import _findIndex from 'lodash/findIndex';
39
- import _cloneDeep from 'lodash/cloneDeep';
40
- import { mchcEnv, mchcConfig } from '@lm_fe/env';
41
- import 'antd/es/input-number/style';
42
- import 'antd/es/input-number';
43
- import 'antd/es/checkbox/style';
44
- import 'antd/es/checkbox';
45
- import 'antd/es/switch/style';
46
- import 'antd/es/switch';
47
- import 'lodash/set';
48
- import 'lodash/isObject';
49
- import 'lodash/isNil';
50
- import 'dayjs';
51
- import { LazyAntd } from '@lm_fe/components';
52
- import 'lodash/isFunction';
53
- import '@ant-design/icons';
54
- import 'antd/es/spin/style';
55
- import 'antd/es/spin';
56
- import 'lodash/size';
57
- import 'lodash/forEach';
58
- import 'lodash/filter';
59
- import 'react-to-print';
60
- import 'antd/es/timeline/style';
61
- import _Timeline from 'antd/es/timeline';
62
- import 'antd/es/empty/style';
63
- import _Empty from 'antd/es/empty';
64
- import _orderBy from 'lodash/orderBy';
65
- import classnames from 'classnames';
66
- import 'lodash/indexOf';
67
- import 'lodash/compact';
68
- import 'lodash/isString';
69
- import 'lodash/isNumber';
70
- import 'lodash/isBoolean';
71
- import 'antd/es/divider/style';
72
- import 'antd/es/divider';
73
- import 'antd/es/form/style';
74
- import 'antd/es/form';
75
- import 'lodash/join';
76
- import 'lodash/isEqual';
77
- import 'lodash/isArray';
78
- import 'lodash/identity';
79
- import 'antd/es/tooltip/style';
80
- import 'antd/es/tooltip';
81
- import 'lodash/has';
82
- import 'lodash/concat';
83
- import 'lodash/reduce';
84
- import 'lodash/debounce';
85
- import 'lodash/pickBy';
86
- import 'antd/es/auto-complete/style';
87
- import 'antd/es/auto-complete';
88
- import 'lodash/nth';
89
- import 'lodash/assign';
90
- import 'antd/es/popover/style';
91
- import 'antd/es/popover';
92
- import 'antd/es/menu/style';
93
- import 'antd/es/menu';
14
+ import { MyIcon } from '@lm_fe/components';
15
+ import { Form, Tabs } from 'antd';
16
+ import { map, get, set } from 'lodash';
17
+ import React$1, { Component } from 'react';
18
+ import { a5 as BaseEditPanelForm, a6 as formItemLayout, a7 as BaseEditPanel, a8 as formDescriptionsWithoutSectionApi } from './index.js';
19
+ import { SMchc_FormDescriptions } from '@lm_fe/service';
20
+ import dayjs from 'dayjs';
21
+ import { formatDateTime, safe_json_parse } from '@lm_fe/utils';
22
+ import '@lm_fe/provoke';
23
+ import 'classnames';
24
+ import '@lm_fe/env';
25
+ import 'reconnecting-websocket';
94
26
  import 'store';
95
- import 'antd/es/popconfirm/style';
96
- import 'antd/es/popconfirm';
97
- import 'antd/es/radio/style';
98
- import 'antd/es/radio';
99
- import 'lodash/last';
100
- import 'lodash/toUpper';
101
- var css_248z = ".index-module_highrisk-pop__EXrdh .ant-modal-title {\n font-size: 18px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-nav {\n margin-left: 20px;\n margin-bottom: 6px;\n}\n.index-module_highrisk-pop__EXrdh .ant-col {\n margin-bottom: 8px;\n}\n.index-module_highrisk-pop__EXrdh .ant-tabs-content-holder {\n padding: 0 20px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign-content__2OIIR {\n height: 400px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-row {\n margin-bottom: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-form-item {\n margin-bottom: 4px;\n margin-right: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-input,\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-tree {\n font-size: 16px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .ant-select-selection-overflow {\n max-width: 99%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-infec__ioC8F {\n width: 100%;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-factor__6Jvpt .ant-select-selector {\n height: 88px;\n overflow-y: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-sign__A2COH .index-module_highrisk-options__wYFIS {\n height: 350px;\n overflow: auto;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm {\n height: 520px;\n overflow-x: hidden;\n overflow-y: auto;\n padding-top: 8px;\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-label {\n width: 120px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-tail {\n left: 132px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-head {\n left: 128px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item-left .ant-timeline-item-content {\n left: 124px;\n width: calc(100% - 120px - 20px);\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .ant-timeline-item {\n padding-bottom: 0;\n margin-bottom: -30px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL {\n position: relative;\n left: -140px;\n top: 0;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-grade__eZRL9 {\n position: relative;\n width: 108px;\n height: 30px;\n line-height: 30px;\n border-radius: 4px;\n text-align: center;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-left__LUFuL .index-module_record-week__ZM4kc {\n width: 108px;\n height: 30px;\n line-height: 30px;\n text-align: center;\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA {\n position: relative;\n top: -60px;\n color: #535881;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_record-item__XQRGF {\n margin: 4px 0;\n padding-right: 6px;\n display: flex;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-label__9G8OI {\n width: 72px;\n text-align: right;\n margin-right: 3px;\n border-radius: 4px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_item-note__iB4rS {\n flex: 1;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-label__9G8OI {\n color: #fff;\n}\n.index-module_highrisk-pop__EXrdh .index-module_highrisk-timeline__LnCQm .index-module_record-right__XQNAA .index-module_infectionNote-item__Am1Go .index-module_item-note__iB4rS {\n color: #150f55;\n}\n.index-module_highrisk-pop__EXrdh .index-module_row-content__-A1zS {\n display: flex;\n justify-content: space-between;\n}\n.index-module_highrisk-pop__EXrdh .index-module_col-content__1Z2c3 {\n height: 340px;\n overflow: auto;\n padding-left: 10px;\n}\n.index-module_highrisk-pop__EXrdh .index-module_tree-title__yGg17 {\n font-size: 14px;\n font-weight: 600;\n line-height: 40px;\n}\n";
102
- var styles = {
103
- "highrisk-pop": "index-module_highrisk-pop__EXrdh",
104
- "highrisk-sign-content": "index-module_highrisk-sign-content__2OIIR",
105
- "highrisk-sign": "index-module_highrisk-sign__A2COH",
106
- "highrisk-infec": "index-module_highrisk-infec__ioC8F",
107
- "highrisk-factor": "index-module_highrisk-factor__6Jvpt",
108
- "highrisk-options": "index-module_highrisk-options__wYFIS",
109
- "highrisk-timeline": "index-module_highrisk-timeline__LnCQm",
110
- "record-left": "index-module_record-left__LUFuL",
111
- "record-grade": "index-module_record-grade__eZRL9",
112
- "record-week": "index-module_record-week__ZM4kc",
113
- "record-right": "index-module_record-right__XQNAA",
114
- "record-item": "index-module_record-item__XQRGF",
115
- "item-label": "index-module_item-label__9G8OI",
116
- "item-note": "index-module_item-note__iB4rS",
117
- "infectionNote-item": "index-module_infectionNote-item__Am1Go",
118
- "row-content": "index-module_row-content__-A1zS",
119
- "col-content": "index-module_col-content__1Z2c3",
120
- "tree-title": "index-module_tree-title__yGg17"
121
- };
122
- styleInject(css_248z);
123
- var Tree = LazyAntd.Tree,
124
- TreeSelect = LazyAntd.TreeSelect,
125
- Select = LazyAntd.Select,
126
- Table = LazyAntd.Table,
127
- Dropdown = LazyAntd.Dropdown,
128
- Pagination = LazyAntd.Pagination;
129
- var boundSymbol$1 = ':';
130
- function HighriskSign_高危因素管理(props) {
131
- var headerInfo = props.headerInfo,
132
- gradeOptions = props.gradeOptions,
133
- contagionOptions = props.contagionOptions,
134
- highriskTreeData = props.highriskTreeData,
135
- initData = props.initData,
136
- set_initData = props.set_initData;
137
- var highRiskTreeDataMapping = useRef({});
138
- var _useState = useState([]),
139
- _useState2 = _slicedToArray(_useState, 2),
140
- currentTreeData = _useState2[0],
141
- set_currentTreeData = _useState2[1];
142
- var _useState3 = useState([]),
143
- _useState4 = _slicedToArray(_useState3, 2),
144
- expandedKeys = _useState4[0],
145
- set_expandedKeys = _useState4[1];
146
- var _useState5 = useState(''),
147
- _useState6 = _slicedToArray(_useState5, 2),
148
- searchValue = _useState6[0],
149
- set_searchValue = _useState6[1];
150
- var _useState7 = useState([]),
151
- _useState8 = _slicedToArray(_useState7, 2),
152
- selectTree = _useState8[0],
153
- set_selectTree = _useState8[1];
154
- var multiple = mchcEnv["in"](['广三', '建瓯', '郫都']) ? true : false;
155
- function getInitData() {
156
- var _h$infectionNote, _h$highriskNote;
157
- var _h = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : headerInfo;
158
- if (!_h) return _h;
159
- var grade = (_h === null || _h === void 0 ? void 0 : _h.highriskLable) || (_h === null || _h === void 0 ? void 0 : _h.highriskGrade) || '';
160
- var _data = _objectSpread(_objectSpread({}, _h), {}, {
161
- infectionNote: (_h$infectionNote = _h === null || _h === void 0 ? void 0 : _h.infectionNote) !== null && _h$infectionNote !== void 0 ? _h$infectionNote : '',
162
- highriskNote: (_h$highriskNote = _h === null || _h === void 0 ? void 0 : _h.highriskNote) !== null && _h$highriskNote !== void 0 ? _h$highriskNote : '',
163
- highriskGrade: grade,
164
- highriskLable: grade
27
+ var toApi = function toApi(data) {
28
+ return map(data, function (item) {
29
+ return _objectSpread(_objectSpread({}, item), {}, {
30
+ deliverytime: formatDateTime(get(item, 'deliverytime'))
165
31
  });
166
- return _data;
167
- }
168
- useEffect(function () {
169
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
170
- var _headerInfo$highriskN, _headerInfo$highriskN2, _headerInfo$highriskN3, highriskNote_, _selectTree;
171
- return _regeneratorRuntime.wrap(function _callee$(_context) {
172
- while (1) switch (_context.prev = _context.next) {
173
- case 0:
174
- // const gradeDic = initDictionaries.filter((item) => item.key === 'highriskGrade' && item.type === highriskVersion);
175
- if (headerInfo) {
176
- highRiskTreeDataMapping.current = _keyBy(highriskTreeData, 'id');
177
- highriskNote_ = (_headerInfo$highriskN = (_headerInfo$highriskN2 = headerInfo.highriskNote) === null || _headerInfo$highriskN2 === void 0 || (_headerInfo$highriskN3 = _headerInfo$highriskN2.split) === null || _headerInfo$highriskN3 === void 0 || (_headerInfo$highriskN3 = _headerInfo$highriskN3.call(_headerInfo$highriskN2, ',')) === null || _headerInfo$highriskN3 === void 0 ? void 0 : _headerInfo$highriskN3.filter(function (_) {
178
- return _;
179
- })) !== null && _headerInfo$highriskN !== void 0 ? _headerInfo$highriskN : [];
180
- _selectTree = [];
181
- highriskNote_.map(function (item) {
182
- _map(highRiskTreeDataMapping.current, function (v, i) {
183
- var addNote = getTargetNote(v);
184
- if (item == addNote) {
185
- _selectTree.push(v);
186
- }
187
- });
188
- });
189
- set_selectTree(_selectTree);
190
- set_expandedKeys(Object.keys(highRiskTreeDataMapping.current));
191
- set_initData(getInitData());
32
+ });
33
+ };
34
+ var fromApi = function fromApi(data, nativeFormDescriptions) {
35
+ var result = _objectSpread({}, data);
36
+ map(nativeFormDescriptions, function (desctiption, key) {
37
+ var tranferRules = desctiption.tranfer_rules;
38
+ var type = 'default';
39
+ var path = key;
40
+ if (safe_json_parse(tranferRules)) {
41
+ var tranferRulesJson = safe_json_parse(tranferRules);
42
+ type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
43
+ path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
44
+ }
45
+ switch (type) {
46
+ case 'key_and_keyNote':
47
+ set(result, "".concat(key, ".key"), get(data, path));
48
+ set(result, "".concat(key, ".keyNote"), get(data, "".concat(path, "Note")));
49
+ break;
50
+ case 'stage':
51
+ set(result, "".concat(key, ".0"), get(data, "".concat(key, "h")));
52
+ set(result, "".concat(key, ".1"), get(data, "".concat(key, "m")));
53
+ break;
54
+ case 'apgar':
55
+ map(data, function (record, index) {
56
+ if (index.indexOf('apgar') > -1) {
57
+ set(result, "".concat(key, ".").concat(index), record);
58
+ }
59
+ });
60
+ break;
61
+ case 'moment':
62
+ set(result, key, get(data, path) ? dayjs(get(data, path)) : undefined);
63
+ break;
64
+ case 'default':
65
+ default:
66
+ set(result, key, get(data, path));
67
+ break;
68
+ }
69
+ if (key === 'placentaLength') {
70
+ //{\"0\":3,\"1\":3,\"2\":4}
71
+ if (get(data, 'placentaLength')) {
72
+ var checkBoxValue = {
73
+ 0: get(data, 'placentaLength'),
74
+ 1: get(data, 'placentaWidth'),
75
+ 2: get(data, 'placentaThickness')
76
+ };
77
+ set(result, key, JSON.stringify(checkBoxValue));
78
+ }
79
+ }
80
+ if (key === 'embryolemmaIntegrity') {
81
+ //{\"checkedValues\":[3],\"withInputValues\":{\"3\":{\"key\":3,\"value\":{\"0\":1,\"1\":2}},\"undefined\":{\"value\":{}}}}
82
+ if (get(data, 'embryolemmaIntegrity')) {
83
+ var _checkBoxValue = {
84
+ checkedValues: [get(data, key)],
85
+ withInputValues: _defineProperty({}, get(data, key), {
86
+ key: get(data, key),
87
+ value: {
88
+ '0': get(data, "embryolemmaColoboma1"),
89
+ '1': get(data, 'embryolemmaColoboma2')
192
90
  }
193
- set_currentTreeData(highriskTreeData);
194
- case 2:
195
- case "end":
196
- return _context.stop();
197
- }
198
- }, _callee);
199
- }))();
200
- return function () {};
201
- }, [highriskTreeData, headerInfo]);
202
- function handleChange(value) {
203
- var _selectTree = [];
204
- _map(value, function (str) {
205
- _map(highRiskTreeDataMapping.current, function (v, i) {
206
- var addNote = getTargetNote(v);
207
- if (str == addNote) {
208
- _selectTree.push(v);
209
- }
210
- });
211
- });
212
- calAndSetData(_selectTree, value);
213
- set_selectTree(_selectTree);
91
+ })
92
+ };
93
+ set(result, key, JSON.stringify(_checkBoxValue));
94
+ }
95
+ }
96
+ });
97
+ return _objectSpread(_objectSpread({}, result), {}, {
98
+ id: get(data, 'id')
99
+ });
100
+ };
101
+ //数据转换
102
+ var valueToApi = function valueToApi(values) {
103
+ map(values, function (data, key) {
104
+ if (key === 'cervixLaceration' && data) {
105
+ var valueJson = safe_json_parse(data);
106
+ set(values, "".concat(key), get(valueJson, 'checkedValues.0'));
107
+ set(values, "cervixSuture", get(valueJson, ['withInputValues', "".concat(get(valueJson, 'checkedValues.0')), 'value', '0']));
108
+ //{"checkedValues":[2],"withInputValues":{"2":{"key":2,"value":{"0":"3"}}}}
109
+ }
110
+ if ((key === 'fetusDeliverytime' || key === 'placentaDeliverytime') && data) {
111
+ set(values, "".concat(key), formatDateTime(data));
112
+ }
113
+ if (key === 'embryolemmaIntegrity' && data) {
114
+ //{\"checkedValues\":[3],\"withInputValues\":{\"3\":{\"key\":3,\"value\":{\"0\":1,\"1\":2}},\"undefined\":{\"value\":{}}}}
115
+ var _valueJson = safe_json_parse(data);
116
+ set(values, "".concat(key), get(_valueJson, 'checkedValues.0'));
117
+ set(values, "embryolemmaColoboma1", get(_valueJson, ['withInputValues', "".concat(get(_valueJson, 'checkedValues.0')), 'value', '0']));
118
+ set(values, "embryolemmaColoboma2", get(_valueJson, ['withInputValues', "".concat(get(_valueJson, 'checkedValues.0')), 'value', '1']));
119
+ }
120
+ if (key === 'placentaLength' && data) {
121
+ //{\"0\":3,\"1\":3,\"2\":4}
122
+ var _valueJson2 = safe_json_parse(data);
123
+ set(values, "".concat(key), get(_valueJson2, '0'));
124
+ set(values, "placentaWidth", get(_valueJson2, '1'));
125
+ set(values, "placentaThickness", get(_valueJson2, '2'));
126
+ }
127
+ });
128
+ return values;
129
+ };
130
+ var AdmissionForm = /*#__PURE__*/function (_BaseEditPanelForm) {
131
+ function AdmissionForm() {
132
+ _classCallCheck(this, AdmissionForm);
133
+ return _callSuper(this, AdmissionForm, arguments);
214
134
  }
215
- function handleSearch(e) {
216
- var searchValue = _get(e, 'target.value');
217
- var _searchTreeData = searchTreeData(searchValue, highriskTreeData),
218
- treeData = _searchTreeData.treeData,
219
- expandedKeys = _searchTreeData.expandedKeys;
220
- set_currentTreeData(!!searchValue ? treeData : highriskTreeData);
221
- set_expandedKeys(!!searchValue ? expandedKeys : []);
222
- set_searchValue(searchValue);
135
+ _inherits(AdmissionForm, _BaseEditPanelForm);
136
+ return _createClass(AdmissionForm, [{
137
+ key: "render",
138
+ value: function render() {
139
+ return /*#__PURE__*/React$1.createElement(Form, _objectSpread({
140
+ autoComplete: "off",
141
+ ref: this.formRef,
142
+ onBlur: this.handleItemBlur,
143
+ onValuesChange: this.props.onValuesChange
144
+ }, formItemLayout), this.renderEditContent());
145
+ }
146
+ }]);
147
+ }(BaseEditPanelForm);
148
+ var AdmissionPanel = /*#__PURE__*/function (_BaseEditPanel) {
149
+ function AdmissionPanel() {
150
+ _classCallCheck(this, AdmissionPanel);
151
+ return _callSuper(this, AdmissionPanel, arguments);
223
152
  }
224
- function searchTreeData(value, __highriskTreeData) {
225
- var expandedKeys = [];
226
- var treeData = [];
227
- var searchValueArr = _split(value, ',') || [];
228
- var _loop = function _loop() {
229
- var searchValue = searchValueArr[0];
230
- if (!searchValue) {
231
- searchValueArr.shift();
232
- return 1; // continue
233
- }
234
- __highriskTreeData.map(function (item) {
235
- var _get2;
236
- var val = item.val || '';
237
- var mnemonic = item.mnemonic || '';
238
- var pid = item.pid;
239
- var id = item.id;
240
- if ((val.indexOf(searchValue) > -1 || mnemonic.indexOf(searchValue) > -1) && pid === 0 && !_includes(expandedKeys, String(item.id))) {
241
- treeData.push(item);
242
- expandedKeys.push(String(item.id));
243
- _map(__highriskTreeData, function (subItem) {
244
- if (subItem.pid === id && !_includes(expandedKeys, String(subItem.id))) {
245
- treeData.push(subItem);
246
- expandedKeys.push(String(subItem.id));
247
- }
248
- });
249
- } else if (searchValue && val.indexOf(searchValue) > -1 && pid !== 0 && !_includes(expandedKeys, String(item.id))) {
250
- treeData.push(item);
251
- expandedKeys.push(String(item.id));
252
- var _loop2 = function _loop2() {
253
- var bool = false;
254
- _map(__highriskTreeData, function (subItem) {
255
- if (subItem.id === pid && !_includes(expandedKeys, String(subItem.id))) {
256
- treeData.push(subItem);
257
- expandedKeys.push(String(subItem.id));
258
- pid = subItem.pid;
259
- bool = true;
260
- }
261
- });
262
- if (!bool) pid = 0;
263
- };
264
- while (pid != 0) {
265
- _loop2();
266
- }
267
- var _id = _get(item, 'id').toString();
268
- searchValueArr.push(_id);
269
- } else if (searchValue === ((_get2 = _get(item, 'pid')) === null || _get2 === void 0 ? void 0 : _get2.toString())) {
270
- if (_findIndex(treeData, function (treeValue) {
271
- return _get(treeValue, 'id') == _get(item, 'id');
272
- }) == -1) {
273
- treeData.push(item);
153
+ _inherits(AdmissionPanel, _BaseEditPanel);
154
+ return _createClass(AdmissionPanel, [{
155
+ key: "componentDidMount",
156
+ value: function () {
157
+ var _componentDidMount = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
158
+ var _this$props, data, moduleName, _this$props$fromApi, fromApi$1, formDescriptions, formDescriptionsWithoutSection, formKey;
159
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
160
+ while (1) switch (_context.prev = _context.next) {
161
+ case 0:
162
+ _this$props = this.props, data = _this$props.data, moduleName = _this$props.moduleName, _this$props$fromApi = _this$props.fromApi, fromApi$1 = _this$props$fromApi === void 0 ? fromApi : _this$props$fromApi;
163
+ _context.next = 3;
164
+ return SMchc_FormDescriptions.getModuleParseCache(moduleName);
165
+ case 3:
166
+ formDescriptions = _context.sent;
167
+ // const formDescriptions = formDescriptionsFromApi(formField);
168
+ formDescriptionsWithoutSection = formDescriptionsWithoutSectionApi(formDescriptions);
169
+ formKey = get(data, 'id') || Math.random();
170
+ this.setState({
171
+ formDescriptions: formDescriptions,
172
+ formDescriptionsWithoutSection: formDescriptionsWithoutSection,
173
+ data: fromApi$1(data, formDescriptionsWithoutSection),
174
+ formKey: formKey
175
+ });
176
+ case 7:
177
+ case "end":
178
+ return _context.stop();
274
179
  }
275
- }
276
- });
277
- searchValueArr.shift();
278
- };
279
- while (searchValueArr.length > 0) {
280
- if (_loop()) continue;
180
+ }, _callee, this);
181
+ }));
182
+ function componentDidMount() {
183
+ return _componentDidMount.apply(this, arguments);
184
+ }
185
+ return componentDidMount;
186
+ }()
187
+ }, {
188
+ key: "render",
189
+ value: function render() {
190
+ var _this = this;
191
+ var _this$props2 = this.props,
192
+ Form = _this$props2.Form,
193
+ _this$props2$printTem = _this$props2.printTemplate,
194
+ printTemplate = _this$props2$printTem === void 0 ? '' : _this$props2$printTem,
195
+ _this$props2$printRes = _this$props2.printResource,
196
+ printResource = _this$props2$printRes === void 0 ? '' : _this$props2$printRes,
197
+ history = _this$props2.history;
198
+ var _this$state = this.state,
199
+ formDescriptions = _this$state.formDescriptions,
200
+ formDescriptionsWithoutSection = _this$state.formDescriptionsWithoutSection,
201
+ data = _this$state.data,
202
+ formKey = _this$state.formKey,
203
+ spinning = _this$state.spinning;
204
+ return React.createElement("div", {
205
+ className: "base-edit-panel"
206
+ }, React.createElement(Form, {
207
+ ref: function ref(_ref) {
208
+ return _this.formRef = _ref;
209
+ },
210
+ key: formKey,
211
+ spinning: spinning,
212
+ printId: get(data, 'id'),
213
+ printResource: printResource,
214
+ printTemplate: printTemplate,
215
+ data: data,
216
+ onFinish: this.handleSubmit,
217
+ formDescriptions: formDescriptions,
218
+ formDescriptionsWithoutSection: formDescriptionsWithoutSection,
219
+ history: history,
220
+ onValuesChange: this.props.onValuesChange
221
+ }));
281
222
  }
282
- var sortTreeData = _sortBy(treeData, function (item) {
283
- return _get(item, 'id');
284
- });
285
- return {
286
- treeData: sortTreeData,
287
- expandedKeys: expandedKeys
288
- };
289
- }
290
- function handleSelectHighrisk(values, e) {
291
- var arr = [];
292
- values.forEach(function (k) {
293
- var _item = highRiskTreeDataMapping.current[k];
294
- SelectOne(_item, arr);
223
+ }]);
224
+ }(BaseEditPanel);
225
+ _defineProperty(AdmissionPanel, "defaultProps", {
226
+ baseUrl: '/api/getInpatientEmrDocument',
227
+ moduleName: 'included-fetus-nursing',
228
+ title: '引产记录',
229
+ Form: AdmissionForm
230
+ });
231
+ var TITLE = '胎儿';
232
+ var NursingFetus = /*#__PURE__*/function (_Component) {
233
+ function NursingFetus() {
234
+ var _this2;
235
+ _classCallCheck(this, NursingFetus);
236
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
237
+ args[_key] = arguments[_key];
238
+ }
239
+ _this2 = _callSuper(this, NursingFetus, [].concat(args));
240
+ _defineProperty(_this2, "state", {
241
+ tabs: [{
242
+ title: "".concat(TITLE, "1"),
243
+ key: 'tab1',
244
+ value: {}
245
+ }],
246
+ activeKey: 'tab1'
295
247
  });
296
- calAndSetData(arr);
297
- set_selectTree([].concat(arr));
298
- }
299
- function SelectOne(_item, selectArr) {
300
- var isIn = selectArr.find(function (_) {
301
- return _.id === (_item === null || _item === void 0 ? void 0 : _item.id);
248
+ _defineProperty(_this2, "formRefs", {});
249
+ _defineProperty(_this2, "onChange", function (activeKey) {
250
+ _this2.setState({
251
+ activeKey: activeKey
252
+ });
302
253
  });
303
- if (isIn) return;
304
- var pid = _item === null || _item === void 0 ? void 0 : _item.pid;
305
- if (!pid) return;
306
- //------
307
- var ind = selectArr.findIndex(function (_) {
308
- return _.pid == (_item === null || _item === void 0 ? void 0 : _item.pid);
254
+ _defineProperty(_this2, "onEdit", function (targetKey, action) {
255
+ _this2[action](targetKey);
309
256
  });
310
- var isBrotherIn = ind != -1;
311
- if (isBrotherIn && !multiple) {
312
- selectArr.splice(ind, 1, _item);
313
- } else {
314
- selectArr.push(_item);
315
- }
316
- }
317
- function calAndSetData(selectArr, nodeArr) {
318
- var _ref2;
319
- var _addNoteArr = [],
320
- __highriskGrade = '';
321
- var selectTree_ = _cloneDeep(selectArr);
322
- selectTree_.map(function (_) {
323
- var code = _.code;
324
- var addNote = getTargetNote(_);
325
- if (!_includes(_addNoteArr, addNote)) {
326
- _addNoteArr.push(addNote);
327
- }
328
- if (__highriskGrade == '' || code > __highriskGrade) {
329
- __highriskGrade = code;
330
- }
257
+ _defineProperty(_this2, "add", function () {
258
+ var tabs = _this2.state.tabs;
259
+ var activeKey = Math.random().toString();
260
+ var newPanes = _toConsumableArray(tabs);
261
+ newPanes.push({
262
+ title: "".concat(TITLE).concat(tabs.length + 1),
263
+ key: activeKey
264
+ });
265
+ _this2.setState({
266
+ tabs: newPanes,
267
+ activeKey: activeKey
268
+ });
331
269
  });
332
- console.log('_addNoteArr', _addNoteArr);
333
- set_initData(Object.assign({}, initData, {
334
- highriskGrade: __highriskGrade,
335
- highriskNote: ((_ref2 = nodeArr !== null && nodeArr !== void 0 ? nodeArr : _addNoteArr) !== null && _ref2 !== void 0 ? _ref2 : []).join(',')
336
- }));
337
- }
338
- function transferHighRiskData(data) {
339
- var pid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
340
- var treeData = [];
341
- data.map(function (item) {
342
- if (item.pid === pid) {
343
- var _item = _objectSpread(_objectSpread({}, item), {}, {
344
- key: String(item.id)
345
- });
346
- _item.title = item.val;
347
- _item.children = transferHighRiskData(data, item.id);
348
- if (_isEmpty(_item.children)) {
349
- _item.isLeaf = true;
270
+ _defineProperty(_this2, "remove", function (targetKey) {
271
+ var _this2$state = _this2.state,
272
+ tabs = _this2$state.tabs,
273
+ activeKey = _this2$state.activeKey;
274
+ var newActiveKey = activeKey;
275
+ var lastIndex;
276
+ tabs.forEach(function (pane, i) {
277
+ if (pane.key === targetKey) {
278
+ lastIndex = i - 1;
279
+ }
280
+ });
281
+ var newPanes = tabs.filter(function (pane) {
282
+ return pane.key !== targetKey;
283
+ });
284
+ if (newPanes.length && newActiveKey === targetKey) {
285
+ if (lastIndex >= 0) {
286
+ newActiveKey = newPanes[lastIndex].key;
350
287
  } else {
351
- _item.isLeaf = false;
288
+ newActiveKey = newPanes[0].key;
352
289
  }
353
- treeData.push(_item);
354
290
  }
291
+ console.log(newPanes, newActiveKey);
292
+ _this2.setState({
293
+ tabs: newPanes,
294
+ activeKey: newActiveKey
295
+ });
355
296
  });
356
- return treeData;
357
- }
358
- function handleExpend(expandedKeys) {
359
- set_expandedKeys(expandedKeys);
360
- }
361
- function handleReset() {
362
- set_initData(Object.assign({}, initData, {
363
- highriskGrade: '',
364
- highriskNote: '',
365
- infectionNote: ''
366
- }));
367
- set_selectTree([]);
368
- }
369
- function getGradeColor(grade) {
370
- grade = grade !== null && grade !== void 0 ? grade : 'I';
371
- var target = gradeOptions.find(function (_) {
372
- return _.label === grade;
373
- });
374
- return target === null || target === void 0 ? void 0 : target.colorText;
375
- }
376
- function renderColorSpan(label) {
377
- return /*#__PURE__*/React.createElement("span", {
378
- style: {
379
- background: getGradeColor(label),
380
- display: 'inline-block',
381
- width: '12px',
382
- height: '12px',
383
- margin: '0 10px'
384
- }
297
+ _defineProperty(_this2, "handleChange", function (changedValues, allValues) {
298
+ var onChange = _this2.props.onChange;
299
+ var values = {};
300
+ map(_this2.formRefs, function (item, index) {
301
+ var form = get(item, 'formRef.form');
302
+ var formData = form.getFieldsValue();
303
+ formData = valueToApi(formData);
304
+ values[index] = formData;
305
+ });
306
+ var data = toApi(values);
307
+ onChange && onChange(data);
385
308
  });
309
+ return _this2;
386
310
  }
387
- function renderTree(_ref3) {
388
- var treeData = _ref3.treeData,
389
- expandedKeys = _ref3.expandedKeys;
390
- return /*#__PURE__*/React.createElement(Tree, {
391
- multiple: true,
392
- showLine: {
393
- showLeafIcon: false
394
- },
395
- treeData: treeData,
396
- onSelect: handleSelectHighrisk,
397
- onExpand: handleExpend,
398
- expandedKeys: expandedKeys,
399
- selectedKeys: selectTree.map(function (_) {
400
- return _.id.toString();
401
- }),
402
- titleRender: function titleRender(treeNode) {
403
- var _treeNode$children;
404
- return /*#__PURE__*/React.createElement("div", null, ((_treeNode$children = treeNode.children) === null || _treeNode$children === void 0 ? void 0 : _treeNode$children.length) == 0 && renderColorSpan(treeNode.code), _get(treeNode, "title"));
311
+ _inherits(NursingFetus, _Component);
312
+ return _createClass(NursingFetus, [{
313
+ key: "componentDidMount",
314
+ value: function componentDidMount() {
315
+ if (this.props.value && this.props.value.length > 0) {
316
+ this.setState({
317
+ tabs: map(this.props.value, function (item, index) {
318
+ return {
319
+ title: "".concat(TITLE).concat(index + 1),
320
+ key: "tab".concat(index + 1),
321
+ value: item
322
+ };
323
+ })
324
+ });
405
325
  }
406
- });
407
- }
408
- function renderhiskTree() {
409
- var treeData__ = transferHighRiskData(currentTreeData);
410
- var highriskVersion = mchcConfig.get('highriskVersion');
411
- if (highriskVersion === 23 || mchcEnv.is('华医') || mchcEnv.is('南医增城')) {
412
- return renderTree({
413
- treeData: treeData__,
414
- expandedKeys: expandedKeys
415
- });
416
- } else {
417
- return /*#__PURE__*/React.createElement(_Row, {
418
- className: styles["row-content"],
419
- key: searchValue ? searchValue : currentTreeData.length
420
- }, /*#__PURE__*/React.createElement(_Col, {
421
- span: 7
422
- }, /*#__PURE__*/React.createElement("div", {
423
- className: styles["tree-title"]
424
- }, _get(treeData__, "[0].title")), /*#__PURE__*/React.createElement("div", {
425
- className: styles["col-content"]
426
- }, renderTree({
427
- treeData: _get(treeData__, "[0].children"),
428
- expandedKeys: expandedKeys
429
- }))), /*#__PURE__*/React.createElement(_Col, {
430
- span: 7
431
- }, /*#__PURE__*/React.createElement("div", {
432
- className: styles["tree-title"]
433
- }, _get(treeData__, "[1].title")), /*#__PURE__*/React.createElement("div", {
434
- className: styles["col-content"]
435
- }, renderTree({
436
- treeData: _get(treeData__, "[1].children"),
437
- expandedKeys: expandedKeys
438
- }))), /*#__PURE__*/React.createElement(_Col, {
439
- span: 7
440
- }, /*#__PURE__*/React.createElement("div", {
441
- className: styles["tree-title"]
442
- }, _get(treeData__, "[2].title")), /*#__PURE__*/React.createElement("div", {
443
- className: styles["col-content"]
444
- }, renderTree({
445
- treeData: _get(treeData__, "[2].children"),
446
- expandedKeys: expandedKeys
447
- }))));
448
326
  }
449
- }
450
- function getTargetNote(v) {
451
- var p = _get(highRiskTreeDataMapping.current, v.pid);
452
- var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol$1).concat(v === null || v === void 0 ? void 0 : v.val);
453
- return addNote;
454
- }
455
- !!(initData !== null && initData !== void 0 && initData.infectionNote) && contagionOptions.every(function (_) {
456
- return _.value !== (initData === null || initData === void 0 ? void 0 : initData.infectionNote);
457
- });
458
- return /*#__PURE__*/React.createElement("div", {
459
- className: styles["highrisk-sign"]
460
- }, /*#__PURE__*/React.createElement("div", {
461
- className: styles["highrisk-sign-header"]
462
- }, /*#__PURE__*/React.createElement(_Row, {
463
- gutter: 8
464
- }, /*#__PURE__*/React.createElement(_Col, {
465
- span: 2
466
- }, "\u9AD8\u5371\u7B49\u7EA7:"), /*#__PURE__*/React.createElement(_Col, {
467
- span: 6
468
- }, /*#__PURE__*/React.createElement(HighRiskGradeSelectPure, {
469
- onChange: function onChange(v) {
470
- set_initData(Object.assign({}, initData, {
471
- highriskGrade: v
327
+ }, {
328
+ key: "render",
329
+ value: function render() {
330
+ var _this3 = this;
331
+ var _this$state2 = this.state,
332
+ tabs = _this$state2.tabs,
333
+ activeKey = _this$state2.activeKey;
334
+ var value = this.props.value;
335
+ return /*#__PURE__*/React$1.createElement(Tabs, {
336
+ type: "editable-card",
337
+ onChange: this.onChange,
338
+ addIcon: /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(MyIcon, {
339
+ value: 'PlusOutlined'
340
+ }), "\u589E\u52A0", TITLE),
341
+ activeKey: activeKey,
342
+ onEdit: this.onEdit
343
+ }, map(tabs, function (tab, index) {
344
+ return /*#__PURE__*/React$1.createElement(Tabs.TabPane, {
345
+ tab: tab.title,
346
+ key: tab.key,
347
+ forceRender: true,
348
+ closable: index === 0 ? false : true
349
+ }, /*#__PURE__*/React$1.createElement(AdmissionPanel, {
350
+ ref: function ref(_ref2) {
351
+ _this3.formRefs[index] = _ref2;
352
+ },
353
+ data: value && (value.length > 0 ? value[index] : tab.value) || tab.value,
354
+ onValuesChange: _this3.handleChange
355
+ }));
472
356
  }));
473
- },
474
- value: _get(initData, 'highriskGrade')
475
- })), /*#__PURE__*/React.createElement(_Col, {
476
- span: 15,
477
- style: {
478
- textAlign: 'right'
479
- }
480
- }, /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
481
- onClick: function onClick() {
482
- set_expandedKeys([]);
483
- }
484
- }, "\u5168\u90E8\u6536\u8D77"), /*#__PURE__*/React.createElement(_Button, {
485
- onClick: function onClick() {
486
- set_expandedKeys(_keys(highRiskTreeDataMapping.current));
487
357
  }
488
- }, "\u5168\u90E8\u5C55\u5F00"), /*#__PURE__*/React.createElement(_Button, {
489
- onClick: handleReset
490
- }, "\u6E05\u7A7A"), /*#__PURE__*/React.createElement(_Button, {
491
- type: "primary",
492
- onClick: function onClick() {
493
- return set_initData(getInitData());
494
- }
495
- }, "\u6062\u590D"))), /*#__PURE__*/React.createElement(_Col, {
496
- span: 2
497
- }, " \u4F20\u67D3\u75C5", /*#__PURE__*/React.createElement("span", {
498
- style: {
499
- color: 'red',
500
- padding: 2,
501
- fontWeight: 'bold',
502
- fontSize: 22
503
- }
504
- }, "*"), ":"), /*#__PURE__*/React.createElement(_Col, {
505
- span: 21
506
- }, /*#__PURE__*/React.createElement(MySelect, {
507
- style: {
508
- width: '100%'
509
- },
510
- options: [{
511
- label: '无',
512
- value: '无',
513
- exclusive: true
514
- }].concat(_toConsumableArray(contagionOptions)),
515
- onChange: function onChange(v) {
516
- set_initData(Object.assign({}, initData, {
517
- infectionNote: v
518
- }));
519
- },
520
- mode: "tags",
521
- marshal: 0,
522
- value: initData === null || initData === void 0 ? void 0 : initData.infectionNote
523
- })), /*#__PURE__*/React.createElement(_Col, {
524
- span: 2
525
- }, "\u9AD8\u5371\u56E0\u7D20:"), /*#__PURE__*/React.createElement(_Col, {
526
- span: 21
527
- }, /*#__PURE__*/React.createElement(Select, {
528
- mode: "tags",
529
- style: {
530
- width: '100%'
531
- },
532
- className: styles["highrisk-factor"],
533
- onChange: handleChange,
534
- value: _get(initData, 'highriskNote', '').split(',').filter(function (_) {
535
- return _;
536
- })
537
- })), /*#__PURE__*/React.createElement(_Col, {
538
- span: 2
539
- }, "\u6A21\u7CCA\u67E5\u627E:"), /*#__PURE__*/React.createElement(_Col, {
540
- span: 21
541
- }, /*#__PURE__*/React.createElement(_Input, {
542
- onChange: handleSearch
543
- })))), /*#__PURE__*/React.createElement("div", {
544
- className: styles["highrisk-sign-content"]
545
- }, renderhiskTree()));
546
- }
547
- // console.dir("mapStateToProps",mapStateToProps);
548
-
549
- function HighriskTimeline_高危因素管理(props) {
550
- var id = props.id,
551
- gradeOptions = props.gradeOptions,
552
- contagionColor = props.contagionColor;
553
- var _useState9 = useState([]),
554
- _useState10 = _slicedToArray(_useState9, 2),
555
- riskRecords = _useState10[0],
556
- set_riskRecords = _useState10[1];
557
- useEffect(function () {
558
- SMchc_Doctor.getRiskRecordsOfOutpatient(id !== null && id !== void 0 ? id : getSearchParamsValue('id')).then(set_riskRecords);
559
- return function () {};
560
- }, []);
561
- function getGradeColor(grade) {
562
- grade = grade !== null && grade !== void 0 ? grade : 'I';
563
- var target = gradeOptions.find(function (_) {
564
- return _.label === grade;
565
- });
566
- return target === null || target === void 0 ? void 0 : target.note;
567
- }
568
- function getGradeColorText(grade) {
569
- grade = grade !== null && grade !== void 0 ? grade : 'I';
570
- var target = gradeOptions.find(function (_) {
571
- return _.label === grade;
572
- });
573
- return target === null || target === void 0 ? void 0 : target.colorText;
574
- }
575
- var newRiskRecords = _cloneDeep(riskRecords);
576
- newRiskRecords = _orderBy(riskRecords, ['eventDate'], ['desc']);
577
- return _isEmpty(newRiskRecords) ? /*#__PURE__*/React.createElement(_Empty, {
578
- description: "\u6682\u65E0\u9AD8\u5371\u8BB0\u5F55"
579
- }) : /*#__PURE__*/React.createElement(_Timeline, {
580
- mode: "left",
581
- className: styles["highrisk-timeline"]
582
- }, _map(newRiskRecords, function (item) {
583
- return /*#__PURE__*/React.createElement(_Timeline.Item, null, /*#__PURE__*/React.createElement("div", {
584
- className: styles["record-left"]
585
- }, /*#__PURE__*/React.createElement("div", {
586
- className: styles["record-grade"],
587
- style: {
588
- background: getGradeColor(item.highriskGrade)
589
- }
590
- }, getGradeColorText(item.highriskGrade)), /*#__PURE__*/React.createElement("div", {
591
- className: styles["record-week"]
592
- }, item.gestationalWeek ? "\u5B55".concat(item.gestationalWeek, "\u5468") : '')), /*#__PURE__*/React.createElement("div", {
593
- className: styles["record-right"]
594
- }, /*#__PURE__*/React.createElement("div", {
595
- className: classnames(styles['record-item'], _defineProperty({}, styles['infectionNote-item'], !!item.infectionNote))
596
- }, /*#__PURE__*/React.createElement("div", {
597
- className: styles["item-label"],
598
- style: {
599
- background: !!item.infectionNote ? contagionColor : ''
600
- }
601
- }, "\u4F20\u67D3\u75C5\uFF1A"), /*#__PURE__*/React.createElement("div", {
602
- className: styles["item-note"]
603
- }, item.infectionNote || '无')), /*#__PURE__*/React.createElement("div", {
604
- className: styles["record-item"]
605
- }, /*#__PURE__*/React.createElement("div", {
606
- className: styles["item-label"]
607
- }, "\u9AD8\u5371\u56E0\u7D20\uFF1A"), /*#__PURE__*/React.createElement("div", {
608
- className: styles["item-note"]
609
- }, item.highriskNote || '无')), /*#__PURE__*/React.createElement("div", {
610
- className: styles["record-item"]
611
- }, /*#__PURE__*/React.createElement("div", {
612
- className: styles["item-label"]
613
- }, "\u8BC4\u5B9A\u65E5\u671F\uFF1A"), /*#__PURE__*/React.createElement("div", {
614
- className: styles["item-note"]
615
- }, formatDate(item.eventDate))), /*#__PURE__*/React.createElement("div", {
616
- className: styles["record-item"]
617
- }, /*#__PURE__*/React.createElement("div", {
618
- className: styles["item-label"]
619
- }, "\u8BC4\u5B9A\u533B\u751F\uFF1A"), /*#__PURE__*/React.createElement("div", {
620
- className: styles["item-note"]
621
- }, item.doctor))));
622
- }));
623
- }
624
- // console.dir("mapStateToProps",mapStateToProps);
625
-
626
- var boundSymbol = ':';
627
- function HighriskFactor(props) {
628
- var modal_data = props.modal_data,
629
- close = props.close,
630
- others = _objectWithoutProperties(props, _excluded);
631
- var data = modal_data.data,
632
- onFinish = modal_data.onFinish,
633
- handleSubmit = modal_data.handleSubmit,
634
- pregnancyId = modal_data.pregnancyId,
635
- hide高危时间轴 = modal_data.hide高危时间轴,
636
- hide高危标记 = modal_data.hide高危标记;
637
- var highRiskTreeDataMapping = useRef({});
638
- var _useState11 = useState([]),
639
- _useState12 = _slicedToArray(_useState11, 2),
640
- highriskTreeData = _useState12[0],
641
- set_highriskTreeData = _useState12[1];
642
- var _useState13 = useState([]),
643
- _useState14 = _slicedToArray(_useState13, 2),
644
- gradeOptions = _useState14[0],
645
- set_gradeOptions = _useState14[1];
646
- var _useState15 = useState([]),
647
- _useState16 = _slicedToArray(_useState15, 2),
648
- contagionOptions = _useState16[0],
649
- set_contagionOptions = _useState16[1];
650
- var _useState17 = useState(hide高危标记 ? hide高危时间轴 ? '' : '2' : '1'),
651
- _useState18 = _slicedToArray(_useState17, 2),
652
- activeTabKey = _useState18[0],
653
- set_activeTabKey = _useState18[1];
654
- var _useState19 = useState(),
655
- _useState20 = _slicedToArray(_useState19, 2),
656
- initData = _useState20[0],
657
- set_initData = _useState20[1];
658
- var _useState21 = useState(),
659
- _useState22 = _slicedToArray(_useState21, 2),
660
- headerInfo = _useState22[0],
661
- setHeaderInfo = _useState22[1];
662
- useEffect(function () {
663
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
664
- var _h$highriskNote$split, _h$highriskNote2, h, treeData, highriskNote_;
665
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
666
- while (1) switch (_context2.prev = _context2.next) {
667
- case 0:
668
- SMchc_Common.getHighriskGradeConfig().then(set_gradeOptions);
669
- if (hide高危标记) {
670
- _context2.next = 19;
671
- break;
672
- }
673
- if (!(data !== null && data !== void 0)) {
674
- _context2.next = 6;
675
- break;
676
- }
677
- _context2.t0 = data;
678
- _context2.next = 9;
679
- break;
680
- case 6:
681
- _context2.next = 8;
682
- return SMchc_Doctor.getOutpatientHeaderInfo(pregnancyId);
683
- case 8:
684
- _context2.t0 = _context2.sent;
685
- case 9:
686
- h = _context2.t0;
687
- setHeaderInfo(h);
688
- SMchc_Common.getHighriskContagionConfig().then(function (r) {
689
- set_contagionOptions(r.options);
690
- });
691
- _context2.next = 14;
692
- return SMchc_Common.getHighriskTree();
693
- case 14:
694
- treeData = _context2.sent;
695
- highRiskTreeDataMapping.current = _keyBy(treeData, 'id');
696
- highriskNote_ = (_h$highriskNote$split = (_h$highriskNote2 = h.highriskNote) === null || _h$highriskNote2 === void 0 ? void 0 : _h$highriskNote2.split(',')) !== null && _h$highriskNote$split !== void 0 ? _h$highriskNote$split : [];
697
- highriskNote_.map(function (item) {
698
- _map(highRiskTreeDataMapping.current, function (v, i) {
699
- getTargetNote(v);
700
- });
701
- });
702
- set_highriskTreeData(treeData);
703
- case 19:
704
- case "end":
705
- return _context2.stop();
706
- }
707
- }, _callee2);
708
- }))();
709
- return function () {};
710
- }, []);
711
- function onOk() {
712
- return _onOk.apply(this, arguments);
713
- }
714
- function _onOk() {
715
- _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
716
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
717
- while (1) switch (_context3.prev = _context3.next) {
718
- case 0:
719
- if (!hide高危标记) {
720
- _context3.next = 3;
721
- break;
722
- }
723
- close === null || close === void 0 || close(true);
724
- return _context3.abrupt("return");
725
- case 3:
726
- if (initData !== null && initData !== void 0 && initData.infectionNote) {
727
- _context3.next = 5;
728
- break;
729
- }
730
- return _context3.abrupt("return", _message.info('请选择传染病!'));
731
- case 5:
732
- if (!(initData.highriskGrade && initData.highriskGrade !== ROMAN_NUMERALS[1])) {
733
- _context3.next = 9;
734
- break;
735
- }
736
- if (initData.highriskNote) {
737
- _context3.next = 9;
738
- break;
739
- }
740
- _message.error('请填写高危因素!');
741
- return _context3.abrupt("return");
742
- case 9:
743
- if (!initData.highriskNote) {
744
- _context3.next = 13;
745
- break;
746
- }
747
- if (initData.highriskGrade) {
748
- _context3.next = 13;
749
- break;
750
- }
751
- _message.error('请填写高危等级!');
752
- return _context3.abrupt("return");
753
- case 13:
754
- if (!onFinish) {
755
- _context3.next = 17;
756
- break;
757
- }
758
- // 新建孕册
759
- if (headerInfo) {
760
- onFinish(_objectSpread(_objectSpread({}, headerInfo), initData));
761
- }
762
- _context3.next = 20;
763
- break;
764
- case 17:
765
- _context3.next = 19;
766
- return updateRiskRecords();
767
- case 19:
768
- handleSubmit === null || handleSubmit === void 0 || handleSubmit();
769
- case 20:
770
- close === null || close === void 0 || close(true);
771
- case 21:
772
- case "end":
773
- return _context3.stop();
774
- }
775
- }, _callee3);
776
- }));
777
- return _onOk.apply(this, arguments);
778
- }
779
- function updateRiskRecords() {
780
- return _updateRiskRecords.apply(this, arguments);
781
- }
782
- function _updateRiskRecords() {
783
- _updateRiskRecords = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
784
- var postData;
785
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
786
- while (1) switch (_context4.prev = _context4.next) {
787
- case 0:
788
- postData = {
789
- outEmrId: _get(headerInfo, 'id'),
790
- infectionNote: initData === null || initData === void 0 ? void 0 : initData.infectionNote,
791
- highriskNote: initData === null || initData === void 0 ? void 0 : initData.highriskNote,
792
- highriskGrade: initData === null || initData === void 0 ? void 0 : initData.highriskGrade,
793
- gestationalWeek: _get(headerInfo, "gesweek")
794
- };
795
- _context4.next = 3;
796
- return request.put('/api/doctor/assessHighRisk', postData);
797
- case 3:
798
- _message.success('信息保存成功!');
799
- // saveHeaderInfo({
800
- // ...props.data,
801
- // ...pick(post, ['infectionNote', 'highriskNote']),
802
- // highriskLable: get(post, `highriskGrade`),
803
- // });
804
- // saveHeaderInfo(ress);
805
- case 4:
806
- case "end":
807
- return _context4.stop();
808
- }
809
- }, _callee4);
810
- }));
811
- return _updateRiskRecords.apply(this, arguments);
812
- }
813
- function handleClose() {
814
- close === null || close === void 0 || close();
815
- }
816
- function handleTabChange(key) {
817
- set_activeTabKey(key);
818
- }
819
- function getTargetNote(v) {
820
- var p = _get(highRiskTreeDataMapping.current, v.pid);
821
- var addNote = "".concat(p === null || p === void 0 ? void 0 : p.val).concat(boundSymbol).concat(v === null || v === void 0 ? void 0 : v.val);
822
- return addNote;
823
- }
824
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
825
- className: styles["highrisk-pop"],
826
- bodyStyle: {
827
- padding: 0,
828
- maxHeight: 700
829
- },
830
- width: 1000,
831
- onCancel: handleClose,
832
- onOk: onOk
833
- }), /*#__PURE__*/React.createElement(_Tabs, {
834
- activeKey: activeTabKey,
835
- onChange: handleTabChange
836
- }, hide高危标记 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
837
- tab: "\u9AD8\u5371\u6807\u8BB0",
838
- key: "1"
839
- }, /*#__PURE__*/React.createElement(HighriskSign_高危因素管理, {
840
- initData: initData,
841
- set_initData: set_initData,
842
- gradeOptions: gradeOptions,
843
- contagionOptions: contagionOptions,
844
- highriskTreeData: highriskTreeData,
845
- headerInfo: headerInfo
846
- })), hide高危时间轴 ? null : /*#__PURE__*/React.createElement(_Tabs.TabPane, {
847
- tab: "\u9AD8\u5371\u65F6\u95F4\u8F74",
848
- key: "2"
849
- }, /*#__PURE__*/React.createElement(HighriskTimeline_高危因素管理, {
850
- id: pregnancyId !== null && pregnancyId !== void 0 ? pregnancyId : headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id,
851
- gradeOptions: gradeOptions
852
- }))));
853
- }
854
- // console.dir("mapStateToProps",mapStateToProps);
855
-
856
- export { HighriskFactor as default };
857
- //# sourceMappingURL=.root70.js.map
358
+ }]);
359
+ }(Component);
360
+ export { NursingFetus as default };