@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,485 +1,951 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["modal_data", "close"];
2
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
7
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ 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
+ 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; }
5
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
- import 'antd/es/modal/style';
7
- import _Modal from 'antd/es/modal';
8
- import { b as styleInject, _ as _extends, L as MyForm, c as getFormData } from './index.js';
9
- import _without from 'lodash/without';
10
- import _size from 'lodash/size';
11
- import _set from 'lodash/set';
12
- import _orderBy from 'lodash/orderBy';
13
- import _get from 'lodash/get';
14
- import _forEach from 'lodash/forEach';
15
- import _cloneDeep from 'lodash/cloneDeep';
16
- import { useState, useEffect } from 'react';
17
- import { getSearchParamsValue, getGesWeek } from '@lm_fe/utils';
18
- import '@lm_fe/components';
19
- import { otherOptions } from '@lm_fe/env';
20
- import 'antd/es/divider/style';
21
- import 'antd/es/divider';
22
- import 'antd/es/button/style';
23
- import 'antd/es/button';
24
- import 'lodash/isBoolean';
25
- import '@ant-design/icons';
26
- import { SMchc_SyphilisManage } from '@lm_fe/service';
27
- import 'lodash/isFunction';
28
- import 'antd/es/space/style';
29
- import 'antd/es/space';
30
- import 'antd/es/input/style';
31
- import 'antd/es/input';
32
- import 'antd/es/input-number/style';
33
- import 'antd/es/input-number';
34
- import 'lodash/map';
35
- import 'lodash/indexOf';
36
- import 'lodash/compact';
11
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
+ import { MyIcon, LazyAntd } from '@lm_fe/components';
14
+ import { Tooltip, Modal, Input, Button, Row, Col, message, Tabs, Popconfirm } from 'antd';
15
+ import dayjs from 'dayjs';
16
+ import { forEach, isUndefined, includes, concat, map, isEmpty, isString, size, set, get, omit, cloneDeep } from 'lodash';
17
+ import React, { Component } from 'react';
18
+ import { a as styleInject, C as CustomIcon } from './index.js';
19
+ import { SMchc_TemplateTrees } from '@lm_fe/service';
20
+ import { request } from '@lm_fe/utils';
21
+ import '@lm_fe/provoke';
37
22
  import 'classnames';
38
- import 'dayjs';
39
- import 'antd/es/checkbox/style';
40
- import 'antd/es/checkbox';
41
- import 'lodash/isString';
42
- import 'lodash/isNumber';
43
- import 'lodash/isEmpty';
44
- import 'antd/es/switch/style';
45
- import 'antd/es/switch';
46
- import 'antd/es/form/style';
47
- import 'antd/es/form';
48
- import 'lodash/join';
49
- import 'lodash/isEqual';
50
- import 'lodash/isArray';
51
- import 'lodash/identity';
52
- import 'lodash/isObject';
53
- import 'lodash/keys';
54
- import 'lodash/keyBy';
55
- import 'lodash/isNil';
56
- import 'antd/es/tooltip/style';
57
- import 'antd/es/tooltip';
58
- import 'antd/es/spin/style';
59
- import 'antd/es/spin';
60
- import 'antd/es/message/style';
61
- import 'antd/es/message';
62
- import 'lodash/has';
63
- import 'lodash/includes';
64
- import 'lodash/filter';
65
- import 'react-to-print';
66
- import 'antd/es/row/style';
67
- import 'antd/es/row';
68
- import 'antd/es/col/style';
69
- import 'antd/es/col';
70
- import 'lodash/concat';
71
- import 'lodash/reduce';
72
- import 'lodash/debounce';
73
- import 'lodash/pickBy';
74
- import 'antd/es/auto-complete/style';
75
- import 'antd/es/auto-complete';
76
- import 'lodash/nth';
77
- import 'lodash/assign';
78
- import 'antd/es/popover/style';
79
- import 'antd/es/popover';
80
- import 'antd/es/menu/style';
81
- import 'antd/es/menu';
23
+ import '@lm_fe/env';
24
+ import 'reconnecting-websocket';
82
25
  import 'store';
83
- import 'antd/es/popconfirm/style';
84
- import 'antd/es/popconfirm';
85
- import 'antd/es/radio/style';
86
- import 'antd/es/radio';
87
- import 'lodash/last';
88
- import 'lodash/toUpper';
89
- var css_248z = ".index-module_syphilis-modal__tfvEm .ant-modal-body {\n max-height: 600px;\n overflow: auto;\n}\n";
90
- var styles = {
91
- "syphilis-modal": "index-module_syphilis-modal__tfvEm"
26
+ var css_248z$2 = ".index-module_diagWrapper__gu-G2 {\n padding: 8px;\n max-height: 620px;\n overflow-y: auto;\n /*border: 1px solid #d7dce7;*/\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagIpt__rTEBn {\n padding-bottom: 5px;\n}\n.index-module_diagWrapper__gu-G2 .index-module_firstDiag__2T4Gu {\n display: flex;\n align-items: center;\n margin: 7px 0 7px 5px;\n font-weight: 600;\n color: #150f55;\n}\n.index-module_diagWrapper__gu-G2 .index-module_singleDiag__urINn {\n display: flex;\n align-items: center;\n margin: 7px 0 7px 5px;\n font-weight: 600;\n color: #150f55;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagGP__kJFGa {\n display: inline-block;\n width: 12px;\n height: 21px;\n line-height: 21px;\n border-bottom: 1px #fe708b solid;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagWeek__m0nuP {\n width: 34px;\n padding: 0 2px;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagWeek2__81AGR {\n width: 54px;\n padding: 0 2px;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagWord__8Ix-y {\n display: flex;\n align-items: center;\n color: #150f55;\n cursor: pointer;\n background-color: #fce6ea;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagHighrisk__-nelK {\n background-color: #fcb9c5;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagNote__MK8J- {\n min-width: 60px;\n height: 28px;\n flex: 1;\n border: 0 none;\n outline: none;\n box-shadow: none;\n background-color: transparent;\n border-bottom: 1px #fe708b solid;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagNote__MK8J-::-ms-input-placeholder {\n text-align: center;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diagNote__MK8J-::-webkit-input-placeholder {\n text-align: center;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diag-popover__Tziw4 {\n display: flex;\n align-items: center;\n}\n.index-module_diagWrapper__gu-G2 .index-module_diag-words__LFwLQ {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box !important;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n}\n.index-module_diagWrapper__gu-G2 .index-module_delBtn__PhMPK {\n color: #8a8a8a;\n font-size: 24px;\n}\n.index-module_diagHandle__0PiRp {\n cursor: pointer;\n}\n";
27
+ var styles$1 = {
28
+ "diagWrapper": "index-module_diagWrapper__gu-G2",
29
+ "diagIpt": "index-module_diagIpt__rTEBn",
30
+ "firstDiag": "index-module_firstDiag__2T4Gu",
31
+ "singleDiag": "index-module_singleDiag__urINn",
32
+ "diagGP": "index-module_diagGP__kJFGa",
33
+ "diagWeek": "index-module_diagWeek__m0nuP",
34
+ "diagWeek2": "index-module_diagWeek2__81AGR",
35
+ "diagWord": "index-module_diagWord__8Ix-y",
36
+ "diagHighrisk": "index-module_diagHighrisk__-nelK",
37
+ "diagNote": "index-module_diagNote__MK8J-",
38
+ "diag-popover": "index-module_diag-popover__Tziw4",
39
+ "diag-words": "index-module_diag-words__LFwLQ",
40
+ "delBtn": "index-module_delBtn__PhMPK",
41
+ "diagHandle": "index-module_diagHandle__0PiRp"
92
42
  };
93
- styleInject(css_248z);
94
- function SyphilisManagement(props) {
95
- var _headerInfo$id;
96
- var modal_data = props.modal_data,
97
- close = props.close,
98
- others = _objectWithoutProperties(props, _excluded);
99
- var headerInfo = modal_data.headerInfo;
100
- var _useState = useState({}),
101
- _useState2 = _slicedToArray(_useState, 2),
102
- formHandler = _useState2[0],
103
- setFormHandler = _useState2[1];
104
- var _useState3 = useState({}),
105
- _useState4 = _slicedToArray(_useState3, 2),
106
- syphilisData = _useState4[0],
107
- setSyphilisData = _useState4[1];
108
- var id = (_headerInfo$id = headerInfo === null || headerInfo === void 0 ? void 0 : headerInfo.id) !== null && _headerInfo$id !== void 0 ? _headerInfo$id : getSearchParamsValue('id');
109
- useEffect(function () {
110
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
111
- var syphilisList, syphilisData, syphilisTreatments, newData;
43
+ styleInject(css_248z$2);
44
+ var css_248z$1 = ".template-tree-wrapper .add-btn {\n text-align: right;\n}\n.template-tree-wrapper .ant-tree .ant-tree-list .ant-tree-title {\n display: inline-block;\n max-width: 320px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.template-tree-wrapper .handle-icon {\n cursor: pointer;\n margin-left: 10px;\n}\n";
45
+ styleInject(css_248z$1);
46
+ var Tree = LazyAntd.Tree,
47
+ TreeSelect = LazyAntd.TreeSelect,
48
+ Select = LazyAntd.Select,
49
+ Table = LazyAntd.Table,
50
+ Dropdown = LazyAntd.Dropdown,
51
+ Pagination = LazyAntd.Pagination;
52
+ var operationMapping = {
53
+ "new": '新增模板',
54
+ add: '新增子模板',
55
+ edit: '编辑模板',
56
+ "delete": '请注意!'
57
+ };
58
+ var Index$2 = /*#__PURE__*/function (_Component) {
59
+ function Index$2(props) {
60
+ var _this;
61
+ _classCallCheck(this, Index$2);
62
+ _this = _callSuper(this, Index$2, [props]);
63
+ _defineProperty(_this, "getTemplateData", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
64
+ var _this$props, type, depid, userid, paramsArr, paramsStr, res;
112
65
  return _regeneratorRuntime.wrap(function _callee$(_context) {
113
66
  while (1) switch (_context.prev = _context.next) {
114
67
  case 0:
115
- _context.next = 2;
116
- return SMchc_SyphilisManage.getList({
117
- params: {
118
- 'pregnancyId.equals': id
68
+ _this$props = _this.props, type = _this$props.type, depid = _this$props.depid, userid = _this$props.userid;
69
+ paramsArr = {
70
+ type: type,
71
+ depid: depid,
72
+ userid: userid
73
+ };
74
+ paramsStr = '';
75
+ forEach(paramsArr, function (value, key) {
76
+ if (!isUndefined(value)) {
77
+ paramsStr += "".concat(key, ".equals=").concat(value, "&");
119
78
  }
120
79
  });
121
- case 2:
122
- syphilisList = _context.sent;
123
- // getSyphilisManagers(pregnancyId: TIdTypeCompatible) { return request.get(`/api/syphilis-managers?pregnancyId.equals=${pregnancyId}`) }
124
- syphilisData = syphilisList[0] || {}; //数据转化处理
125
- syphilisTreatments = _get(syphilisData, 'syphilisTreatments');
126
- if (_size(syphilisTreatments) > 0) {
127
- newData = [];
128
- _forEach(syphilisTreatments, function (item) {
129
- var syphilisInjections = _orderBy(_get(item, 'syphilisInjections'), 'injectionDate', ['asc']);
130
- var obj = {};
131
- _set(obj, 'id', _get(item, 'id'));
132
- _set(obj, 'firstId', _get(syphilisInjections, '0.id'));
133
- _set(obj, 'firstUserId', _get(syphilisInjections, '0.user.id'));
134
- _set(obj, 'firstInjectionDate', _get(syphilisInjections, '0.injectionDate'));
135
- _set(obj, 'firstInjectionGesweek', _get(syphilisInjections, '0.gesweek'));
136
- _set(obj, 'firstInjectionResult', _get(syphilisInjections, '0.injectionResult'));
137
- _set(obj, 'secondId', _get(syphilisInjections, '1.id'));
138
- _set(obj, 'secondUserId', _get(syphilisInjections, '1.user.id'));
139
- _set(obj, 'secondInjectionDate', _get(syphilisInjections, '1.injectionDate'));
140
- _set(obj, 'secondInjectionGesweek', _get(syphilisInjections, '1.gesweek'));
141
- _set(obj, 'secondInjectionResult', _get(syphilisInjections, '1.injectionResult'));
142
- _set(obj, 'thirdId', _get(syphilisInjections, '2.id'));
143
- _set(obj, 'thirdUserId', _get(syphilisInjections, '2.user.id'));
144
- _set(obj, 'thirdInjectionDate', _get(syphilisInjections, '2.injectionDate'));
145
- _set(obj, 'thirdInjectionGesweek', _get(syphilisInjections, '2.gesweek'));
146
- _set(obj, 'thirdInjectionResult', _get(syphilisInjections, '2.injectionResult'));
147
- newData.push(obj);
148
- });
149
- _set(syphilisData, 'syphilisTreatments', newData);
150
- }
151
- setSyphilisData(syphilisData);
152
- case 7:
80
+ _context.next = 6;
81
+ return request.get("/api/template-trees?".concat(paramsStr, "page=0&size=500"));
82
+ case 6:
83
+ res = _context.sent;
84
+ res = res || [];
85
+ _this.setState({
86
+ templateData: res
87
+ });
88
+ _this.setState({
89
+ nodeTreeItem: null,
90
+ operation: null,
91
+ newTitle: null,
92
+ addTitle: null
93
+ });
94
+ case 10:
153
95
  case "end":
154
96
  return _context.stop();
155
97
  }
156
98
  }, _callee);
157
- }))();
158
- return function () {};
159
- }, []);
160
- useEffect(function () {
161
- if (formHandler.subscribe) {
162
- formHandler.subscribe('syphilisTreatments', 'change', function (val) {
163
- // const sureEdd = get(pregnancyData, 'sureEdd');
164
- var sureEdd = _get(headerInfo, "edd");
165
- var newVal = _cloneDeep(val);
166
- newVal.forEach(function (item) {
167
- if (item.firstInjectionDate && sureEdd) {
168
- item.firstInjectionGesweek = getGesWeek(sureEdd, item.firstInjectionDate);
169
- }
170
- if (item.secondInjectionDate && sureEdd) {
171
- item.secondInjectionGesweek = getGesWeek(sureEdd, item.secondInjectionDate);
172
- }
173
- if (item.thirdInjectionDate && sureEdd) {
174
- item.thirdInjectionGesweek = getGesWeek(sureEdd, item.thirdInjectionDate);
99
+ })));
100
+ _defineProperty(_this, "handleTreeItem", function (operate) {
101
+ _this.setState({
102
+ modalVisible: true,
103
+ operation: operate
104
+ });
105
+ });
106
+ _defineProperty(_this, "handleTreeSort", /*#__PURE__*/function () {
107
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(sort) {
108
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
109
+ while (1) switch (_context2.prev = _context2.next) {
110
+ case 0:
111
+ console.log('移动');
112
+ case 1:
113
+ case "end":
114
+ return _context2.stop();
175
115
  }
176
- });
177
- formHandler.syphilisTreatments.actions.setValue(newVal);
116
+ }, _callee2);
117
+ }));
118
+ return function (_x) {
119
+ return _ref2.apply(this, arguments);
120
+ };
121
+ }());
122
+ _defineProperty(_this, "handleIptChange", function (e, operation) {
123
+ var nodeTreeItem = _this.state.nodeTreeItem;
124
+ if (operation === 'new') _this.setState({
125
+ newTitle: e.target.value
178
126
  });
179
- }
180
- }, [formHandler, headerInfo]);
181
- function handleCancel() {
182
- close === null || close === void 0 || close(false);
183
- }
184
- function handleOk() {
185
- return _handleOk.apply(this, arguments);
186
- }
187
- function _handleOk() {
188
- _handleOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
189
- var _yield$formHandler$su, res, formData, syphilisTreatments, newData;
190
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
191
- while (1) switch (_context2.prev = _context2.next) {
127
+ if (operation === 'add') _this.setState({
128
+ addTitle: e.target.value
129
+ });
130
+ if (operation === 'edit') {
131
+ var data = {
132
+ title: e.target.value
133
+ };
134
+ _this.setState({
135
+ nodeTreeItem: _objectSpread(_objectSpread({}, nodeTreeItem), data)
136
+ });
137
+ }
138
+ });
139
+ _defineProperty(_this, "handleOk", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
140
+ var _this$props2, type, depid, userid, _this$state, nodeTreeItem, addTitle, operation, newTitle, newItem, addItem, editItem;
141
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
142
+ while (1) switch (_context3.prev = _context3.next) {
192
143
  case 0:
193
- _context2.next = 2;
194
- return formHandler.submit();
195
- case 2:
196
- _yield$formHandler$su = _context2.sent;
197
- res = _yield$formHandler$su.res;
198
- formData = getFormData(res); //数据转化处理
199
- syphilisTreatments = _get(formData, 'syphilisTreatments');
200
- if (_size(syphilisTreatments) > 0) {
201
- newData = [];
202
- _forEach(syphilisTreatments, function (item) {
203
- var obj = {};
204
- _set(obj, 'id', _get(item, 'id'));
205
- if (_get(item, 'firstInjectionDate') || _get(item, 'firstInjectionResult')) {
206
- if (_get(item, 'firstId')) _set(obj, 'syphilisInjections.0.id', _get(item, 'firstId'));
207
- _set(obj, 'syphilisInjections.0.injectionDate', _get(item, 'firstInjectionDate'));
208
- _set(obj, 'syphilisInjections.0.gesweek', _get(item, 'firstInjectionGesweek'));
209
- _set(obj, 'syphilisInjections.0.injectionResult', _get(item, 'firstInjectionResult'));
210
- if (_get(item, 'firstUserId')) _set(obj, 'syphilisInjections.0.user.id', _get(item, 'firstUserId'));
211
- }
212
- if (_get(item, 'secondInjectionDate') || _get(item, 'secondInjectionResult')) {
213
- if (_get(item, 'secondId')) _set(obj, 'syphilisInjections.1.id', _get(item, 'secondId'));
214
- _set(obj, 'syphilisInjections.1.injectionDate', _get(item, 'secondInjectionDate'));
215
- _set(obj, 'syphilisInjections.1.gesweek', _get(item, 'secondInjectionGesweek'));
216
- _set(obj, 'syphilisInjections.1.injectionResult', _get(item, 'secondInjectionResult'));
217
- if (_get(item, 'secondUserId')) _set(obj, 'syphilisInjections.1.user.id', _get(item, 'secondUserId'));
218
- }
219
- if (_get(item, 'thirdInjectionDate') || _get(item, 'thirdInjectionResult')) {
220
- if (_get(item, 'thirdId')) _set(obj, 'syphilisInjections.2.id', _get(item, 'thirdId'));
221
- _set(obj, 'syphilisInjections.2.injectionDate', _get(item, 'thirdInjectionDate'));
222
- _set(obj, 'syphilisInjections.2.gesweek', _get(item, 'thirdInjectionGesweek'));
223
- _set(obj, 'syphilisInjections.2.injectionResult', _get(item, 'thirdInjectionResult'));
224
- if (_get(item, 'thirdUserId')) _set(obj, 'syphilisInjections.2.user.id', _get(item, 'thirdUserId'));
225
- }
226
- _set(obj, 'syphilisInjections', _without(_get(obj, 'syphilisInjections'), undefined));
227
- newData.push(obj);
228
- });
229
- _set(formData, 'syphilisTreatments', newData);
144
+ _this$props2 = _this.props, type = _this$props2.type, depid = _this$props2.depid, userid = _this$props2.userid;
145
+ _this$state = _this.state, nodeTreeItem = _this$state.nodeTreeItem, addTitle = _this$state.addTitle, operation = _this$state.operation, newTitle = _this$state.newTitle;
146
+ if (!(operation === 'new')) {
147
+ _context3.next = 7;
148
+ break;
230
149
  }
231
- if (!_get(syphilisData, 'id')) {
232
- _context2.next = 14;
150
+ newItem = {
151
+ pid: 0,
152
+ val: newTitle,
153
+ type: type,
154
+ depid: depid,
155
+ userid: userid
156
+ };
157
+ _context3.next = 6;
158
+ return request.post("/api/template-trees", newItem);
159
+ case 6:
160
+ _this.getTemplateData();
161
+ case 7:
162
+ if (!(operation === 'add')) {
163
+ _context3.next = 12;
233
164
  break;
234
165
  }
235
- _set(formData, 'id', _get(syphilisData, 'id'));
236
- _set(formData, 'pregnancy.id', id);
237
- _context2.next = 12;
238
- return SMchc_SyphilisManage.put(formData);
166
+ addItem = {
167
+ pid: Number(nodeTreeItem.id),
168
+ val: addTitle,
169
+ type: type,
170
+ depid: depid,
171
+ userid: userid
172
+ };
173
+ _context3.next = 11;
174
+ return request.post("/api/template-trees", addItem);
175
+ case 11:
176
+ _this.getTemplateData();
239
177
  case 12:
240
- _context2.next = 17;
241
- break;
242
- case 14:
243
- _set(formData, 'pregnancy.id', id);
244
- _context2.next = 17;
245
- return SMchc_SyphilisManage.post(formData);
178
+ if (!(operation === 'edit')) {
179
+ _context3.next = 17;
180
+ break;
181
+ }
182
+ editItem = {
183
+ pid: Number(nodeTreeItem.pid),
184
+ val: nodeTreeItem.title,
185
+ type: type,
186
+ depid: depid,
187
+ userid: userid,
188
+ id: nodeTreeItem.id
189
+ };
190
+ _context3.next = 16;
191
+ return request.put("/api/template-trees", editItem);
192
+ case 16:
193
+ _this.getTemplateData();
246
194
  case 17:
247
- close === null || close === void 0 || close(true);
248
- case 18:
195
+ if (!(operation === 'delete')) {
196
+ _context3.next = 21;
197
+ break;
198
+ }
199
+ _context3.next = 20;
200
+ return request["delete"]("/api/template-trees/".concat(nodeTreeItem.id));
201
+ case 20:
202
+ _this.getTemplateData();
203
+ case 21:
204
+ _this.setState({
205
+ modalVisible: false,
206
+ nodeTreeItem: null,
207
+ operation: null
208
+ });
209
+ case 22:
249
210
  case "end":
250
- return _context2.stop();
211
+ return _context3.stop();
251
212
  }
252
- }, _callee2);
253
- }));
254
- return _handleOk.apply(this, arguments);
213
+ }, _callee3);
214
+ })));
215
+ _defineProperty(_this, "handleCancel", function () {
216
+ _this.setState({
217
+ modalVisible: false,
218
+ nodeTreeItem: null,
219
+ operation: null
220
+ });
221
+ });
222
+ _defineProperty(_this, "handleAddBtnClick", function () {
223
+ _this.setState({
224
+ operation: 'new',
225
+ modalVisible: true
226
+ });
227
+ });
228
+ _defineProperty(_this, "onMouseEnter", function (_ref4, area) {
229
+ var event = _ref4.event,
230
+ node = _ref4.node;
231
+ var x = event.currentTarget.offsetLeft + event.currentTarget.clientWidth;
232
+ var y = event.currentTarget.offsetTop;
233
+ _this.setState({
234
+ nodeTreeItem: {
235
+ pageX: x,
236
+ pageY: y,
237
+ pid: node.props.pid,
238
+ id: Number(node.props.eventKey),
239
+ title: node.props.title,
240
+ sort: node.props.sort
241
+ },
242
+ currentArea: area
243
+ });
244
+ });
245
+ _defineProperty(_this, "handleCheck", function (keys) {
246
+ var onChecked = _this.props.onChecked;
247
+ var _this$state2 = _this.state,
248
+ templateData = _this$state2.templateData,
249
+ checkedKeys = _this$state2.checkedKeys;
250
+ _this.setState({
251
+ checkedKeys: keys
252
+ });
253
+ forEach(templateData, function (item) {
254
+ if (includes(checkedKeys, "".concat(item.id))) {
255
+ item.checked = true;
256
+ } else {
257
+ item.checked = false;
258
+ }
259
+ });
260
+ onChecked && onChecked(templateData);
261
+ });
262
+ _defineProperty(_this, "handleCheckLeft", function (keys) {
263
+ var onChecked = _this.props.onChecked;
264
+ var _this$state3 = _this.state,
265
+ templateData = _this$state3.templateData,
266
+ checkedKeysRight = _this$state3.checkedKeysRight;
267
+ var allCheckedKays = concat(keys, checkedKeysRight);
268
+ _this.setState({
269
+ checkedKeysLeft: keys
270
+ });
271
+ forEach(templateData, function (item) {
272
+ if (includes(allCheckedKays, "".concat(item.id))) {
273
+ item.checked = true;
274
+ } else {
275
+ item.checked = false;
276
+ }
277
+ });
278
+ onChecked && onChecked(templateData);
279
+ });
280
+ _defineProperty(_this, "handleCheckRight", function (keys) {
281
+ var onChecked = _this.props.onChecked;
282
+ var _this$state4 = _this.state,
283
+ templateData = _this$state4.templateData,
284
+ checkedKeysLeft = _this$state4.checkedKeysLeft;
285
+ var allCheckedKays = concat(keys, checkedKeysLeft);
286
+ _this.setState({
287
+ checkedKeysRight: keys
288
+ });
289
+ forEach(templateData, function (item) {
290
+ if (includes(allCheckedKays, "".concat(item.id))) {
291
+ item.checked = true;
292
+ } else {
293
+ item.checked = false;
294
+ }
295
+ });
296
+ onChecked && onChecked(templateData);
297
+ });
298
+ _defineProperty(_this, "transferTemplateData", function (data) {
299
+ var pid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
300
+ var showIcd = _this.props.showIcd;
301
+ var treeData = [];
302
+ map(data, function (item) {
303
+ if (item.pid === pid) {
304
+ item.title = showIcd && item.code ? "\uFF08icd\uFF09".concat(item.val) : item.val;
305
+ item.key = String(item.id);
306
+ item.children = _this.transferTemplateData(data, item.id);
307
+ if (isEmpty(item.children)) {
308
+ item.isLeaf = true;
309
+ } else {
310
+ item.isLeaf = false;
311
+ }
312
+ treeData.push(item);
313
+ }
314
+ });
315
+ return treeData;
316
+ });
317
+ _defineProperty(_this, "handleSelect", function (selectedKeys, _ref5) {
318
+ var node = _ref5.node;
319
+ var onSelected = _this.props.onSelected;
320
+ onSelected && onSelected(node);
321
+ });
322
+ _this.state = {
323
+ templateData: null,
324
+ checkedKeys: [],
325
+ checkedKeysLeft: [],
326
+ checkedKeysRight: [],
327
+ currentArea: null,
328
+ operation: null,
329
+ nodeTreeItem: null,
330
+ modalVisible: false,
331
+ newTitle: null,
332
+ // 新增主模板名称
333
+ addTitle: null // 新增子模板名称
334
+ };
335
+ return _this;
255
336
  }
256
- function config() {
257
- var config = [{
258
- name: 'referral',
259
- key: 'referral',
260
- label: '转诊',
261
- input_type: 'checkbox',
262
- input_props: {
263
- type: 'group',
264
- options: otherOptions.nyOptions
265
- },
266
- span: 12
267
- }, {
268
- name: 'consent',
269
- key: 'consent',
270
- label: '同意治疗',
271
- input_type: 'checkbox',
272
- input_props: {
273
- type: 'group',
274
- options: otherOptions.nyOptions
275
- },
276
- span: 12
277
- }, {
278
- name: 'tppa',
279
- key: 'tppa',
280
- label: 'TPPA滴度',
281
- input_type: 'input',
282
- span: 6
283
- }, {
284
- name: 'trust',
285
- key: 'trust',
286
- label: 'TRUST滴度',
287
- input_type: 'input',
288
- span: 6
289
- }, {
290
- name: '',
291
- key: '',
292
- label: '疗程',
293
- header_label: true,
294
- just_header: true,
295
- input_type: ''
296
- }, {
297
- name: 'syphilisTreatments',
298
- key: 'syphilisTreatments',
299
- label: '',
300
- input_type: 'array-custom',
301
- is_new_row: true,
302
- input_props: {
303
- array_title: '疗程',
304
- config: [{
305
- name: 'id',
306
- key: 'id',
307
- label: 'id',
308
- input_type: 'input',
309
- hidden: true,
310
- span: 5
311
- }, {
312
- name: 'firstId',
313
- key: 'firstId',
314
- label: '',
315
- input_type: 'input',
316
- hidden: true,
317
- span: 5
318
- }, {
319
- name: 'secondId',
320
- key: 'secondId',
321
- label: '',
322
- input_type: 'input',
323
- hidden: true,
324
- span: 5
325
- }, {
326
- name: 'thirdId',
327
- key: 'thirdId',
328
- label: '',
329
- input_type: 'input',
330
- hidden: true,
331
- span: 5
332
- }, {
333
- name: 'firstUserId',
334
- key: 'firstUserId',
335
- label: '',
336
- input_type: 'input',
337
- hidden: true,
338
- span: 5
339
- }, {
340
- name: 'secondUserId',
341
- key: 'secondUserId',
342
- label: '',
343
- input_type: 'input',
344
- hidden: true,
345
- span: 5
346
- }, {
347
- name: 'thirdUserId',
348
- key: 'thirdUserId',
349
- label: '',
350
- input_type: 'input',
351
- hidden: true,
352
- span: 5
353
- }, {
354
- name: 'firstInjectionDate',
355
- key: 'firstInjectionDate',
356
- label: '第一针',
357
- input_type: 'date',
358
- span: 6
359
- }, {
360
- name: 'firstInjectionGesweek',
361
- key: 'firstInjectionGesweek',
362
- label: '孕周',
363
- input_type: 'input',
364
- inputProps: {
365
- disabled: true
366
- },
367
- span: 6
368
- }, {
369
- name: 'firstInjectionResult',
370
- key: 'firstInjectionResult',
371
- label: '执行情况',
372
- input_type: 'select',
373
- input_props: {
374
- options: otherOptions.resultOptions,
375
- warningOption: '未执行'
376
- },
377
- span: 6
378
- }, {
379
- name: 'secondInjectionDate',
380
- key: 'secondInjectionDate',
381
- label: '第二针',
382
- input_type: 'date',
383
- is_new_row: true,
384
- span: 6
385
- }, {
386
- name: 'secondInjectionGesweek',
387
- key: 'secondInjectionGesweek',
388
- label: '孕周',
389
- input_type: 'input',
390
- inputProps: {
391
- disabled: true
392
- },
393
- span: 6
394
- }, {
395
- name: 'secondInjectionResult',
396
- key: 'secondInjectionResult',
397
- label: '执行情况',
398
- input_type: 'select',
399
- input_props: {
400
- options: otherOptions.resultOptions,
401
- warningOption: '未执行'
402
- },
403
- span: 6
404
- }, {
405
- name: 'thirdInjectionDate',
406
- key: 'thirdInjectionDate',
407
- label: '第三针',
408
- input_type: 'date',
409
- is_new_row: true,
410
- span: 6
411
- }, {
412
- name: 'thirdInjectionGesweek',
413
- key: 'thirdInjectionGesweek',
414
- label: '孕周',
415
- input_type: 'input',
416
- inputProps: {
417
- disabled: true
418
- },
419
- span: 6
420
- }, {
421
- name: 'thirdInjectionResult',
422
- key: 'thirdInjectionResult',
423
- label: '执行情况',
424
- input_type: 'select',
425
- input_props: {
426
- options: otherOptions.resultOptions,
427
- warningOption: '未执行'
428
- },
429
- span: 6
430
- }]
431
- }
432
- }, {
433
- name: '',
434
- key: '',
435
- label: 'TRUST随访结果',
436
- header_label: true,
437
- just_header: true,
438
- input_type: ''
439
- }, {
440
- name: 'syphilisFollowUps',
441
- key: 'syphilisFollowUps',
442
- label: '',
443
- input_type: 'array-custom',
444
- is_new_row: true,
445
- input_props: {
446
- array_title: '结果',
447
- config: [{
448
- name: 'id',
449
- key: 'id',
450
- label: 'id',
451
- input_type: 'input',
452
- hidden: true,
453
- span: 5
454
- }, {
455
- name: 'reportDate',
456
- key: 'reportDate',
457
- label: '报告时间',
458
- input_type: 'date',
459
- span: 6
460
- }, {
461
- name: 'trust',
462
- key: 'trust',
463
- label: 'TRUST滴度',
464
- input_type: 'input',
465
- span: 6
466
- }]
337
+ _inherits(Index$2, _Component);
338
+ return _createClass(Index$2, [{
339
+ key: "componentDidMount",
340
+ value: function componentDidMount() {
341
+ this.getTemplateData();
342
+ }
343
+ }, {
344
+ key: "renderNodeTreeMenu",
345
+ value: function renderNodeTreeMenu() {
346
+ var _this2 = this;
347
+ var editable = this.props.editable;
348
+ var nodeTreeItem = this.state.nodeTreeItem;
349
+ var _nodeTreeItem = _objectSpread({}, nodeTreeItem),
350
+ pageX = _nodeTreeItem.pageX,
351
+ pageY = _nodeTreeItem.pageY,
352
+ pid = _nodeTreeItem.pid;
353
+ var menuStyle = {
354
+ position: 'absolute',
355
+ maxHeight: 40,
356
+ textAlign: 'center',
357
+ left: "".concat(pageX + 10, "px"),
358
+ top: "".concat(pageY, "px"),
359
+ display: 'flex',
360
+ flexDirection: 'row'
361
+ };
362
+ return nodeTreeItem && editable ? (/*#__PURE__*/React.createElement("div", {
363
+ style: menuStyle
364
+ }, pid === 0 ? (/*#__PURE__*/React.createElement("div", {
365
+ className: css_248z$1["handle-icon"],
366
+ onClick: function onClick() {
367
+ return _this2.handleTreeItem('add');
368
+ }
369
+ }, /*#__PURE__*/React.createElement(Tooltip, {
370
+ placement: "bottom",
371
+ title: "\u6DFB\u52A0\u5B50\u6A21\u677F"
372
+ }, /*#__PURE__*/React.createElement(MyIcon, {
373
+ value: 'PlusCircleOutlined'
374
+ })))) : null, /*#__PURE__*/React.createElement("div", {
375
+ className: css_248z$1["handle-icon"],
376
+ onClick: function onClick() {
377
+ return _this2.handleTreeItem('edit');
378
+ }
379
+ }, /*#__PURE__*/React.createElement(Tooltip, {
380
+ placement: "bottom",
381
+ title: "\u4FEE\u6539"
382
+ }, /*#__PURE__*/React.createElement(MyIcon, {
383
+ value: 'EditOutlined'
384
+ }))), /*#__PURE__*/React.createElement("div", {
385
+ className: css_248z$1["handle-icon"],
386
+ onClick: function onClick() {
387
+ return _this2.handleTreeItem('delete');
388
+ }
389
+ }, /*#__PURE__*/React.createElement(Tooltip, {
390
+ placement: "bottom",
391
+ title: "\u5220\u9664"
392
+ }, /*#__PURE__*/React.createElement(MyIcon, {
393
+ value: 'DeleteOutlined'
394
+ }))), /*#__PURE__*/React.createElement("div", {
395
+ className: css_248z$1["handle-icon"],
396
+ onClick: function onClick() {
397
+ return _this2.handleTreeSort('DOWN');
398
+ }
399
+ }, /*#__PURE__*/React.createElement(Tooltip, {
400
+ placement: "bottom",
401
+ title: "\u4E0A\u79FB"
402
+ }, /*#__PURE__*/React.createElement(MyIcon, {
403
+ value: 'ArrowUpOutlined'
404
+ }))), /*#__PURE__*/React.createElement("div", {
405
+ className: css_248z$1["handle-icon"],
406
+ onClick: function onClick() {
407
+ return _this2.handleTreeSort('UP');
408
+ }
409
+ }, /*#__PURE__*/React.createElement(Tooltip, {
410
+ placement: "bottom",
411
+ title: "\u4E0B\u79FB"
412
+ }, /*#__PURE__*/React.createElement(MyIcon, {
413
+ value: 'ArrowDownOutlined'
414
+ }))))) : null;
415
+ }
416
+ }, {
417
+ key: "renderHandleModal",
418
+ value: function renderHandleModal() {
419
+ var _this3 = this;
420
+ var _this$state5 = this.state,
421
+ modalVisible = _this$state5.modalVisible,
422
+ nodeTreeItem = _this$state5.nodeTreeItem,
423
+ addTitle = _this$state5.addTitle,
424
+ operation = _this$state5.operation,
425
+ newTitle = _this$state5.newTitle;
426
+ var title = operationMapping[operation];
427
+ return /*#__PURE__*/React.createElement(Modal, {
428
+ title: title,
429
+ closable: true,
430
+ visible: modalVisible,
431
+ onCancel: this.handleCancel,
432
+ onOk: this.handleOk
433
+ }, operation === 'new' && (/*#__PURE__*/React.createElement("div", null, "\u65B0\u589E\u6A21\u677F\u540D\u79F0\uFF1A", /*#__PURE__*/React.createElement(Input, {
434
+ value: newTitle,
435
+ onChange: function onChange(e) {
436
+ return _this3.handleIptChange(e, 'new');
437
+ },
438
+ style: {
439
+ width: '50%'
440
+ }
441
+ }))), operation === 'add' && (/*#__PURE__*/React.createElement("div", null, "\u65B0\u589E\u5B50\u6A21\u677F\uFF1A", /*#__PURE__*/React.createElement(Input, {
442
+ value: addTitle,
443
+ onChange: function onChange(e) {
444
+ return _this3.handleIptChange(e, 'add');
445
+ },
446
+ style: {
447
+ width: '50%'
448
+ }
449
+ }))), operation === 'edit' && (/*#__PURE__*/React.createElement("div", null, "\u7F16\u8F91\u6A21\u677F\u540D\u79F0\uFF1A", /*#__PURE__*/React.createElement(Input, {
450
+ value: nodeTreeItem.title,
451
+ onChange: function onChange(e) {
452
+ return _this3.handleIptChange(e, 'edit');
453
+ },
454
+ style: {
455
+ width: '50%'
456
+ }
457
+ }))), operation === 'delete' && /*#__PURE__*/React.createElement("div", null, "\u662F\u5426\u5220\u9664\u6A21\u677F\uFF1A", nodeTreeItem.title));
458
+ }
459
+ }, {
460
+ key: "renderTreatment",
461
+ value: function renderTreatment() {
462
+ var _this4 = this;
463
+ var _this$props3 = this.props,
464
+ checkable = _this$props3.checkable,
465
+ divide = _this$props3.divide,
466
+ editable = _this$props3.editable;
467
+ var _this$state6 = this.state,
468
+ templateData = _this$state6.templateData,
469
+ checkedKeys = _this$state6.checkedKeys,
470
+ checkedKeysLeft = _this$state6.checkedKeysLeft,
471
+ checkedKeysRight = _this$state6.checkedKeysRight,
472
+ currentArea = _this$state6.currentArea,
473
+ nodeTreeItem = _this$state6.nodeTreeItem;
474
+ var treeData = this.transferTemplateData(templateData);
475
+ return /*#__PURE__*/React.createElement("div", null, editable ? (/*#__PURE__*/React.createElement("div", {
476
+ className: css_248z$1["add-btn"]
477
+ }, /*#__PURE__*/React.createElement(Button, {
478
+ size: "small",
479
+ onClick: this.handleAddBtnClick
480
+ }, "\u6DFB\u52A0\u6A21\u677F"))) : null, divide ? (/*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
481
+ span: 12
482
+ }, /*#__PURE__*/React.createElement(Tree, {
483
+ style: {
484
+ maxHeight: '90%'
485
+ },
486
+ checkable: checkable,
487
+ defaultExpandAll: true,
488
+ checkedKeys: checkedKeysLeft.length === 0 ? [] : checkedKeysLeft,
489
+ onCheck: this.handleCheckLeft,
490
+ onSelect: this.handleSelect,
491
+ onMouseEnter: function onMouseEnter(e) {
492
+ return _this4.onMouseEnter(e, 'treeLeft');
493
+ },
494
+ treeData: treeData.slice(0, Math.ceil(treeData.length / 2))
495
+ }), nodeTreeItem && currentArea === 'treeLeft' ? this.renderNodeTreeMenu() : null), /*#__PURE__*/React.createElement(Col, {
496
+ span: 12
497
+ }, /*#__PURE__*/React.createElement(Tree, {
498
+ style: {
499
+ maxHeight: '90%'
500
+ },
501
+ checkable: checkable,
502
+ defaultExpandAll: true,
503
+ checkedKeys: checkedKeysRight.length === 0 ? [] : checkedKeysRight,
504
+ onCheck: this.handleCheckRight,
505
+ onSelect: this.handleSelect,
506
+ onMouseEnter: function onMouseEnter(e) {
507
+ return _this4.onMouseEnter(e, 'treeright');
508
+ },
509
+ treeData: treeData.slice(Math.ceil(treeData.length / 2))
510
+ }), nodeTreeItem && currentArea === 'treeright' ? this.renderNodeTreeMenu() : null))) : (/*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
511
+ span: 24
512
+ }, /*#__PURE__*/React.createElement(Tree, {
513
+ style: {
514
+ maxHeight: '90%'
515
+ },
516
+ checkable: checkable,
517
+ defaultExpandAll: true,
518
+ checkedKeys: checkedKeys,
519
+ onCheck: this.handleCheck,
520
+ onSelect: this.handleSelect,
521
+ onMouseEnter: function onMouseEnter(e) {
522
+ return _this4.onMouseEnter(e, '');
523
+ },
524
+ treeData: treeData
525
+ }), nodeTreeItem ? this.renderNodeTreeMenu() : null))));
526
+ }
527
+ }, {
528
+ key: "render",
529
+ value: function render() {
530
+ var templateData = this.state.templateData;
531
+ return /*#__PURE__*/React.createElement("div", {
532
+ className: css_248z$1["template-tree-wrapper"]
533
+ }, templateData && this.renderTreatment(), this.renderHandleModal());
534
+ }
535
+ }]);
536
+ }(Component);
537
+ var css_248z = ".index-module_diag-template__-t0pr {\n width: 700px !important;\n height: 600px;\n}\n.index-module_diag-template__-t0pr .index-module_diag-ipt__iyREK {\n width: 80%;\n}\n.index-module_diag-template__-t0pr .index-module_search-info__NznZQ {\n color: #242741;\n font-size: 12px;\n margin: 8px 0 0 5px;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-content__zh7BS {\n height: 450px;\n overflow-y: auto;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-top__3tcuh > .index-module_ant-tabs-nav__Hi3SH::before {\n border: none;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-bar__WDSRD {\n border-bottom: none;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-tab-active__MWxhL .index-module_list-btn__YUeFA {\n color: #3d8bf7;\n border: 1px solid #007aff;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-ink-bar__aAF-9 {\n display: none !important;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-nav__Hi3SH {\n margin-bottom: 0;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-nav__Hi3SH .index-module_ant-tabs-tab-inner__rceG6 {\n padding: 0;\n padding-bottom: 3px;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tabs-nav__Hi3SH .index-module_ant-tabs-tab__a9aFi {\n margin-right: 12px;\n}\n.index-module_diag-template__-t0pr .index-module_diag-item__xiMSD {\n padding-left: 3px;\n color: #383f4a;\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 6px;\n cursor: pointer;\n}\n.index-module_diag-template__-t0pr .index-module_diag-item__xiMSD .index-module_diag-icon__sCGp4 {\n margin-left: 8px;\n display: none;\n}\n.index-module_diag-template__-t0pr .index-module_diag-item__xiMSD:hover {\n font-size: 18px;\n color: #007aff;\n border-radius: 6px;\n background-color: #f2f2fa;\n}\n.index-module_diag-template__-t0pr .index-module_diag-item__xiMSD:hover .index-module_diag-icon__sCGp4 {\n display: inline-block;\n}\n.index-module_diag-template__-t0pr .index-module_diag-item__xiMSD .index-module_diag-code__OH4Z3 {\n display: inline-block;\n border: 1px #007aff solid;\n margin-right: 6px;\n font-size: 12px;\n border-radius: 4px;\n padding: 0 3px;\n height: 16px;\n line-height: 16px;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tree__p0JlJ {\n padding: 0;\n font-weight: 600;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tree__p0JlJ .index-module_ant-tree-title__n3AP9 {\n padding-left: 3px;\n color: #383f4a;\n font-weight: 600;\n margin-bottom: 0;\n cursor: pointer;\n}\n.index-module_diag-template__-t0pr .index-module_ant-tree__p0JlJ .index-module_ant-tree-title__n3AP9:hover {\n font-size: 18px;\n color: #007aff;\n border-radius: 6px;\n background-color: #f2f2fa;\n}\n.index-module_diag-template__-t0pr .index-module_list-btn__YUeFA {\n height: 32px;\n color: #535881;\n font-weight: 600;\n padding: 0 15px;\n background-color: #fff;\n border: 1px solid #d8dce6;\n}\n";
538
+ var styles = {
539
+ "diag-template": "index-module_diag-template__-t0pr",
540
+ "diag-ipt": "index-module_diag-ipt__iyREK",
541
+ "search-info": "index-module_search-info__NznZQ",
542
+ "ant-tabs-content": "index-module_ant-tabs-content__zh7BS",
543
+ "ant-tabs-top": "index-module_ant-tabs-top__3tcuh",
544
+ "ant-tabs-nav": "index-module_ant-tabs-nav__Hi3SH",
545
+ "ant-tabs-bar": "index-module_ant-tabs-bar__WDSRD",
546
+ "ant-tabs-tab-active": "index-module_ant-tabs-tab-active__MWxhL",
547
+ "list-btn": "index-module_list-btn__YUeFA",
548
+ "ant-tabs-ink-bar": "index-module_ant-tabs-ink-bar__aAF-9",
549
+ "ant-tabs-tab-inner": "index-module_ant-tabs-tab-inner__rceG6",
550
+ "ant-tabs-tab": "index-module_ant-tabs-tab__a9aFi",
551
+ "diag-item": "index-module_diag-item__xiMSD",
552
+ "diag-icon": "index-module_diag-icon__sCGp4",
553
+ "diag-code": "index-module_diag-code__OH4Z3",
554
+ "ant-tree": "index-module_ant-tree__p0JlJ",
555
+ "ant-tree-title": "index-module_ant-tree-title__n3AP9"
556
+ };
557
+ styleInject(css_248z);
558
+ var Index$1 = /*#__PURE__*/function (_Component2) {
559
+ function Index$1() {
560
+ var _this5;
561
+ _classCallCheck(this, Index$1);
562
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
563
+ args[_key] = arguments[_key];
564
+ }
565
+ _this5 = _callSuper(this, Index$1, [].concat(args));
566
+ _defineProperty(_this5, "state", {
567
+ activeKey: '1',
568
+ allDiagnosesTemplate: []
569
+ });
570
+ _defineProperty(_this5, "getDiagnosesTemplate", /*#__PURE__*/function () {
571
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
572
+ var res;
573
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
574
+ while (1) switch (_context4.prev = _context4.next) {
575
+ case 0:
576
+ _context4.next = 2;
577
+ return SMchc_TemplateTrees.getDiagnosesTemplate(value);
578
+ case 2:
579
+ res = _context4.sent;
580
+ _this5.setState({
581
+ allDiagnosesTemplate: res
582
+ });
583
+ case 4:
584
+ case "end":
585
+ return _context4.stop();
586
+ }
587
+ }, _callee4);
588
+ }));
589
+ return function (_x2) {
590
+ return _ref6.apply(this, arguments);
591
+ };
592
+ }());
593
+ _defineProperty(_this5, "handleChangeTab", function (activeKey) {
594
+ _this5.setState({
595
+ activeKey: activeKey
596
+ });
597
+ });
598
+ _defineProperty(_this5, "handleChange", /*#__PURE__*/function () {
599
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(value) {
600
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
601
+ while (1) switch (_context5.prev = _context5.next) {
602
+ case 0:
603
+ if (_this5.timer) clearTimeout(_this5.timer);
604
+ _this5.timer = setTimeout(function () {
605
+ _this5.getDiagnosesTemplate(value);
606
+ }, 500);
607
+ case 2:
608
+ case "end":
609
+ return _context5.stop();
610
+ }
611
+ }, _callee5);
612
+ }));
613
+ return function (_x3) {
614
+ return _ref7.apply(this, arguments);
615
+ };
616
+ }());
617
+ _defineProperty(_this5, "handleSearch", function (item) {
618
+ var _this5$props = _this5.props,
619
+ closeTemplate = _this5$props.closeTemplate,
620
+ addDiag = _this5$props.addDiag;
621
+ if (item) {
622
+ if (!isString(item) && size(item.children) > 0) return;
623
+ if (isString(item)) {
624
+ addDiag({
625
+ diagnosis: item
626
+ });
627
+ } else {
628
+ set(item, 'diagnosis', get(item, 'val'));
629
+ addDiag(omit(item, ['id']));
630
+ }
631
+ closeTemplate();
467
632
  }
468
- }];
469
- return config;
633
+ });
634
+ _defineProperty(_this5, "handleCancel", function () {
635
+ var closeTemplate = _this5.props.closeTemplate;
636
+ closeTemplate();
637
+ });
638
+ _defineProperty(_this5, "handleAddIcon", /*#__PURE__*/function () {
639
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(item, type) {
640
+ var basicInfo;
641
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
642
+ while (1) switch (_context6.prev = _context6.next) {
643
+ case 0:
644
+ basicInfo = _this5.props.basicInfo;
645
+ delete item.id;
646
+ set(item, 'pid', 0);
647
+ set(item, 'type', type);
648
+ if (type === 2) {
649
+ set(item, 'depid', type);
650
+ } else {
651
+ set(item, 'userid', get(basicInfo, 'id'));
652
+ }
653
+ _context6.next = 7;
654
+ return SMchc_TemplateTrees.addTemplateTree(item);
655
+ case 7:
656
+ message.info('同步成功!');
657
+ case 8:
658
+ case "end":
659
+ return _context6.stop();
660
+ }
661
+ }, _callee6);
662
+ }));
663
+ return function (_x4, _x5) {
664
+ return _ref8.apply(this, arguments);
665
+ };
666
+ }());
667
+ return _this5;
470
668
  }
471
- return /*#__PURE__*/React.createElement(_Modal, _extends({}, others, {
472
- title: "\u6885\u6BD2\u4E13\u6848\u7BA1\u7406",
473
- className: styles["syphilis-modal"],
474
- width: 1000,
475
- onCancel: handleCancel,
476
- onOk: handleOk
477
- }), /*#__PURE__*/React.createElement(MyForm, {
478
- config: config(),
479
- value: syphilisData,
480
- getFormHandler: setFormHandler,
481
- submitChange: false
482
- }));
483
- }
484
- export { SyphilisManagement as default };
485
- //# sourceMappingURL=.root65.js.map
669
+ _inherits(Index$1, _Component2);
670
+ return _createClass(Index$1, [{
671
+ key: "componentDidMount",
672
+ value: function componentDidMount() {
673
+ this.getDiagnosesTemplate('');
674
+ }
675
+ }, {
676
+ key: "render",
677
+ value: function render() {
678
+ var _this6 = this;
679
+ var _this$props4 = this.props,
680
+ isShowDiagnosesTemplate = _this$props4.isShowDiagnosesTemplate,
681
+ basicInfo = _this$props4.basicInfo;
682
+ var _this$state7 = this.state,
683
+ allDiagnosesTemplate = _this$state7.allDiagnosesTemplate,
684
+ activeKey = _this$state7.activeKey;
685
+ return /*#__PURE__*/React.createElement(Modal, {
686
+ centered: true,
687
+ title: "\u6DFB\u52A0\u8BCA\u65AD",
688
+ className: styles["diag-template"],
689
+ footer: null,
690
+ visible: isShowDiagnosesTemplate,
691
+ onCancel: this.handleCancel
692
+ }, /*#__PURE__*/React.createElement(Input.Search, {
693
+ className: styles["diag-ipt"],
694
+ placeholder: "\u8BF7\u8F93\u5165\u8BCA\u65AD\u4FE1\u606F",
695
+ enterButton: "\u6DFB\u52A0\u8BCA\u65AD",
696
+ defaultValue: '',
697
+ onChange: function onChange(e) {
698
+ return _this6.handleChange(e.target.value);
699
+ },
700
+ onSearch: this.handleSearch
701
+ }), /*#__PURE__*/React.createElement(Tabs, {
702
+ activeKey: activeKey,
703
+ onChange: this.handleChangeTab
704
+ }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
705
+ tab: /*#__PURE__*/React.createElement(Button, {
706
+ className: styles["list-btn"]
707
+ }, "\u5168\u90E8"),
708
+ key: "1"
709
+ }, map(allDiagnosesTemplate, function (item) {
710
+ return /*#__PURE__*/React.createElement("p", {
711
+ className: styles["diag-item"]
712
+ }, /*#__PURE__*/React.createElement("span", {
713
+ onClick: function onClick() {
714
+ return _this6.handleSearch(item);
715
+ }
716
+ }, get(item, 'code') ? '(icd)' : null, get(item, 'val')), /*#__PURE__*/React.createElement(MyIcon, {
717
+ value: 'UsergroupAddOutlined',
718
+ className: styles["diag-icon"],
719
+ title: "\u540C\u6B65\u5230\u79D1\u5BA4\u8BCA\u65AD",
720
+ onClick: function onClick() {
721
+ return _this6.handleAddIcon(item, 2);
722
+ }
723
+ }), /*#__PURE__*/React.createElement(MyIcon, {
724
+ value: 'UserAddOutlined',
725
+ className: styles["diag-icon"],
726
+ title: "\u540C\u6B65\u5230\u4E2A\u4EBA\u8BCA\u65AD",
727
+ onClick: function onClick() {
728
+ return _this6.handleAddIcon(item, 3);
729
+ }
730
+ }));
731
+ })), "(", /*#__PURE__*/React.createElement(Tabs.TabPane, {
732
+ tab: /*#__PURE__*/React.createElement(Button, {
733
+ className: styles["list-btn"]
734
+ }, "\u79D1\u5BA4"),
735
+ key: "2"
736
+ }, activeKey === '2' && (/*#__PURE__*/React.createElement(Index$2, {
737
+ type: 2,
738
+ depid: 2,
739
+ checkable: false,
740
+ onSelected: this.handleSearch,
741
+ editable: true,
742
+ showIcd: true
743
+ }))), ") (", /*#__PURE__*/React.createElement(Tabs.TabPane, {
744
+ tab: /*#__PURE__*/React.createElement(Button, {
745
+ className: styles["list-btn"]
746
+ }, "\u4E2A\u4EBA"),
747
+ key: "3"
748
+ }, activeKey === '3' && (/*#__PURE__*/React.createElement(Index$2, {
749
+ type: 3,
750
+ userid: get(basicInfo, 'id'),
751
+ checkable: false,
752
+ onSelected: this.handleSearch,
753
+ editable: true,
754
+ showIcd: true
755
+ }))), ")"));
756
+ }
757
+ }]);
758
+ }(Component);
759
+ var Index = /*#__PURE__*/function (_React$Component) {
760
+ function Index() {
761
+ var _this7;
762
+ _classCallCheck(this, Index);
763
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
764
+ args[_key2] = arguments[_key2];
765
+ }
766
+ _this7 = _callSuper(this, Index, [].concat(args));
767
+ _defineProperty(_this7, "state", {
768
+ isShowDiagnosesTemplate: false
769
+ });
770
+ _defineProperty(_this7, "getTitle", function (item) {
771
+ var createdDate = item.createDate ? "\u8BCA\u65AD\u65F6\u95F4: ".concat(item.createDate, "\n") : '';
772
+ var diagnosis = item.diagnosis ? "\u8BCA\u65AD\u5168\u79F0: ".concat(item.diagnosis, "\n") : '';
773
+ var note = item.note ? "\u8BCA\u65AD\u5907\u6CE8: ".concat(item.note, "\n") : '';
774
+ return "".concat(createdDate).concat(diagnosis).concat(note);
775
+ });
776
+ _defineProperty(_this7, "handleDelete", /*#__PURE__*/function () {
777
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(item, i) {
778
+ var _this7$props, value, onChange, newList;
779
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
780
+ while (1) switch (_context7.prev = _context7.next) {
781
+ case 0:
782
+ _this7$props = _this7.props, value = _this7$props.value, onChange = _this7$props.onChange;
783
+ newList = cloneDeep(get(value, 'list'));
784
+ newList.splice(i, 1);
785
+ onChange(_objectSpread(_objectSpread({}, value), {}, {
786
+ list: newList
787
+ }));
788
+ case 4:
789
+ case "end":
790
+ return _context7.stop();
791
+ }
792
+ }, _callee7);
793
+ }));
794
+ return function (_x6, _x7) {
795
+ return _ref9.apply(this, arguments);
796
+ };
797
+ }());
798
+ _defineProperty(_this7, "changeNote", function (v, i) {
799
+ var _this7$props2 = _this7.props,
800
+ value = _this7$props2.value,
801
+ onChange = _this7$props2.onChange;
802
+ var newList = cloneDeep(get(value, 'list'));
803
+ var item = newList[i];
804
+ item.note = v;
805
+ onChange(_objectSpread(_objectSpread({}, value), {}, {
806
+ list: newList
807
+ }));
808
+ });
809
+ _defineProperty(_this7, "handleBtnClick", function () {
810
+ _this7.setState({
811
+ isShowDiagnosesTemplate: true
812
+ });
813
+ });
814
+ _defineProperty(_this7, "addDiag", /*#__PURE__*/function () {
815
+ var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(diagnosisObj) {
816
+ var _this7$props3, value, onChange, list, diag, newList, specialList, specialIndex;
817
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
818
+ while (1) switch (_context8.prev = _context8.next) {
819
+ case 0:
820
+ _this7$props3 = _this7.props, value = _this7$props3.value, onChange = _this7$props3.onChange;
821
+ list = get(value, 'list') || [];
822
+ diag = get(diagnosisObj, 'diagnosis');
823
+ if (list.filter(function (item) {
824
+ return item.diagnosis === diag;
825
+ }).length === 0) {
826
+ newList = cloneDeep(list);
827
+ set(diagnosisObj, 'createDate', dayjs().format('YYYY-MM-DD'));
828
+ set(diagnosisObj, 'diagnosisCode', get(diagnosisObj, 'code'));
829
+ // 诊断互斥项
830
+ specialList = ['妊娠', '早孕', '中孕', '晚孕'];
831
+ specialIndex = -1;
832
+ newList.forEach(function (item, index) {
833
+ if (specialList.includes(item.diagnosis)) specialIndex = index;
834
+ });
835
+ if (specialIndex !== -1 && specialList.includes(diag)) {
836
+ newList.splice(specialIndex, 1);
837
+ newList.unshift(diagnosisObj);
838
+ } else if (specialIndex === -1 && specialList.includes(diag)) {
839
+ newList.unshift(diagnosisObj);
840
+ } else {
841
+ newList.push(diagnosisObj);
842
+ }
843
+ // 对诊断进行排序,sort赋值
844
+ newList.forEach(function (subItem, subIndex) {
845
+ subItem.sort = subIndex + 1;
846
+ });
847
+ onChange(_objectSpread(_objectSpread({}, value), {}, {
848
+ list: newList
849
+ }));
850
+ } else {
851
+ message.warning('添加诊断重复!');
852
+ }
853
+ case 4:
854
+ case "end":
855
+ return _context8.stop();
856
+ }
857
+ }, _callee8);
858
+ }));
859
+ return function (_x8) {
860
+ return _ref10.apply(this, arguments);
861
+ };
862
+ }());
863
+ _defineProperty(_this7, "closeTemplate", function () {
864
+ _this7.setState({
865
+ isShowDiagnosesTemplate: false
866
+ });
867
+ });
868
+ _defineProperty(_this7, "renderDiagnoses", function () {
869
+ var _this7$props4 = _this7.props,
870
+ isAllPregnancies = _this7$props4.isAllPregnancies,
871
+ value = _this7$props4.value,
872
+ id = _this7$props4.id,
873
+ isShow = _this7$props4.isShow;
874
+ return /*#__PURE__*/React.createElement("div", {
875
+ className: styles$1["diagWrapper"]
876
+ }, !isAllPregnancies && (/*#__PURE__*/React.createElement(Button, {
877
+ className: styles$1["diag-btn"],
878
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
879
+ value: 'PlusCircleOutlined'
880
+ }),
881
+ onClick: _this7.handleBtnClick
882
+ }, "\u6DFB\u52A0\u8BCA\u65AD")), !isShow && (/*#__PURE__*/React.createElement("div", {
883
+ className: styles$1["firstDiag"]
884
+ }, /*#__PURE__*/React.createElement("span", {
885
+ className: styles$1["diagNum"]
886
+ }, "1\u3001"), "G", /*#__PURE__*/React.createElement("span", {
887
+ className: styles$1["diagGP"]
888
+ }, get(value, 'gravidity')), "P", /*#__PURE__*/React.createElement("span", {
889
+ className: styles$1["diagGP"]
890
+ }, get(value, 'parity')), "\u598A\u5A20", /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
891
+ className: styles$1["diagGP diagWeek"]
892
+ }, get(value, 'gestationalWeek')), "\u5468"), id === 'inductionLabourDiagnosisDocument' && (/*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", {
893
+ className: styles$1["diagGP diagWeek2"]
894
+ }, get(value, 'fetalPostion') ? get(value, 'fetalPostion') : (/*#__PURE__*/React.createElement("span", {
895
+ style: {
896
+ color: '#ccc'
897
+ }
898
+ }, "\u80CE\u65B9\u4F4D"))), ' ', ",\u5F15\u4EA7")))), get(value, 'list') && get(value, 'list').map(function (item, i) {
899
+ return /*#__PURE__*/React.createElement(Row, {
900
+ className: styles$1["singleDiag"],
901
+ title: _this7.getTitle(item),
902
+ key: i
903
+ }, /*#__PURE__*/React.createElement(Col, {
904
+ span: 18,
905
+ className: styles$1["diagWord"]
906
+ }, /*#__PURE__*/React.createElement("span", {
907
+ className: styles$1["diagNum"]
908
+ }, !isShow ? i + 2 : i + 1, "\u3001"), /*#__PURE__*/React.createElement("span", {
909
+ className: styles$1["diag-words"]
910
+ }, item.diagnosis), /*#__PURE__*/React.createElement(Input, {
911
+ className: styles$1["diagNote"],
912
+ placeholder: "\u5907\u6CE8",
913
+ disabled: isAllPregnancies ? true : false,
914
+ value: item.note,
915
+ onChange: function onChange(e) {
916
+ return _this7.changeNote(e.target.value, i);
917
+ }
918
+ })), /*#__PURE__*/React.createElement(Col, {
919
+ span: 4
920
+ }, item.createDate), !isAllPregnancies && (/*#__PURE__*/React.createElement(Col, {
921
+ span: 1
922
+ }, /*#__PURE__*/React.createElement(Popconfirm, {
923
+ placement: "topRight",
924
+ title: '你确定要删除这个诊断吗?',
925
+ onConfirm: function onConfirm() {
926
+ return _this7.handleDelete(item, i);
927
+ },
928
+ okText: "\u786E\u5B9A",
929
+ cancelText: "\u53D6\u6D88"
930
+ }, /*#__PURE__*/React.createElement(CustomIcon, {
931
+ className: styles$1["delBtn"],
932
+ type: "icon-cacncel"
933
+ })))));
934
+ }));
935
+ });
936
+ return _this7;
937
+ }
938
+ _inherits(Index, _React$Component);
939
+ return _createClass(Index, [{
940
+ key: "render",
941
+ value: function render() {
942
+ var isShowDiagnosesTemplate = this.state.isShowDiagnosesTemplate;
943
+ return /*#__PURE__*/React.createElement("div", null, this.renderDiagnoses(), isShowDiagnosesTemplate && (/*#__PURE__*/React.createElement(Index$1, _objectSpread({
944
+ isShowDiagnosesTemplate: isShowDiagnosesTemplate,
945
+ closeTemplate: this.closeTemplate,
946
+ addDiag: this.addDiag
947
+ }, this.props))));
948
+ }
949
+ }]);
950
+ }(React.Component);
951
+ export { Index as default };