@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,1107 +1,686 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
5
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
4
6
  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; }
5
7
  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; }
6
- import 'antd/es/space/style';
7
- import _Space from 'antd/es/space';
8
- import 'antd/es/button/style';
9
- import _Button from 'antd/es/button';
10
- import 'antd/es/message/style';
11
- import _message from 'antd/es/message';
12
- import _throttle from 'lodash/throttle';
13
- import _size from 'lodash/size';
14
- import _set from 'lodash/set';
15
- import _orderBy from 'lodash/orderBy';
16
- import _map from 'lodash/map';
17
- import _get from 'lodash/get';
18
- import _forEach from 'lodash/forEach';
19
- import _cloneDeep from 'lodash/cloneDeep';
20
- import { DeleteOutlined } from '@ant-design/icons';
21
- import { LazyAntd } from '@lm_fe/components';
22
- import { mchcEnv, mchcEvent } from '@lm_fe/env';
23
- import { SMchc_Doctor } from '@lm_fe/service';
24
- import React, { useState, useRef, useCallback, useEffect } from 'react';
25
- import { b as styleInject, C as CustomIcon } from './index.js';
26
- import { E as EditableCell } from './TableEditableCell.js';
27
- import 'lodash/isFunction';
28
- import 'antd/es/input/style';
29
- import 'antd/es/input';
30
- import 'antd/es/input-number/style';
31
- import 'antd/es/input-number';
32
- import 'lodash/indexOf';
33
- import 'lodash/compact';
34
- import '@lm_fe/utils';
8
+ import { MyIcon, MyLazyComponent, MyCheckbox } from '@lm_fe/components';
9
+ import { mchcEnv, mchcLogger } from '@lm_fe/env';
10
+ import { SMchc_Admission } from '@lm_fe/service';
11
+ import { expect_array, request, getSearchParamsValue, identity, objectify, isArray, uuid, formatDateTimeNoSecond } from '@lm_fe/utils';
12
+ import { Form, Popconfirm, Button, Space, message } from 'antd';
13
+ import { cloneDeep, filter, debounce, keys, map, size, isNil, get, isEmpty } from 'lodash';
14
+ import React, { useState, useEffect, useRef } from 'react';
15
+ import { c as MyFormSectionForm, B as BaseTable, d as componentMap, e as BaseFormComponent } from './index.js';
16
+ import '@lm_fe/provoke';
35
17
  import 'classnames';
36
18
  import 'dayjs';
37
- import 'antd/es/checkbox/style';
38
- import 'antd/es/checkbox';
39
- import 'lodash/isString';
40
- import 'lodash/isNumber';
41
- import 'lodash/isBoolean';
42
- import 'antd/es/divider/style';
43
- import 'antd/es/divider';
44
- import 'lodash/isEmpty';
45
- import 'antd/es/switch/style';
46
- import 'antd/es/switch';
47
- import 'antd/es/form/style';
48
- import 'antd/es/form';
49
- import 'lodash/join';
50
- import 'lodash/isEqual';
51
- import 'lodash/isArray';
52
- import 'lodash/identity';
53
- import 'lodash/isObject';
54
- import 'lodash/keys';
55
- import 'lodash/keyBy';
56
- import 'lodash/isNil';
57
- import 'antd/es/tooltip/style';
58
- import 'antd/es/tooltip';
59
- import 'antd/es/spin/style';
60
- import 'antd/es/spin';
61
- import 'lodash/has';
62
- import 'antd/es/modal/style';
63
- import 'antd/es/modal';
64
- import 'lodash/includes';
65
- import 'lodash/filter';
66
- import 'react-to-print';
67
- import 'antd/es/row/style';
68
- import 'antd/es/row';
69
- import 'antd/es/col/style';
70
- import 'antd/es/col';
71
- import 'lodash/concat';
72
- import 'lodash/reduce';
73
- import 'lodash/debounce';
74
- import 'lodash/pickBy';
75
- import 'antd/es/auto-complete/style';
76
- import 'antd/es/auto-complete';
77
- import 'lodash/nth';
78
- import 'lodash/assign';
79
- import 'antd/es/popover/style';
80
- import 'antd/es/popover';
81
- import 'antd/es/menu/style';
82
- import 'antd/es/menu';
19
+ import 'reconnecting-websocket';
83
20
  import 'store';
84
- import 'antd/es/popconfirm/style';
85
- import 'antd/es/popconfirm';
86
- import 'antd/es/radio/style';
87
- import 'antd/es/radio';
88
- import 'lodash/last';
89
- import 'lodash/toUpper';
90
- import './index2.js';
91
- var 建瓯_config = {
92
- "needNotThisTime": false,
93
- "ignoreKeys": ["children.childGender", "children.childLiving", "children.childDeathTime", "children.childDeathNote", "children.sequelaNote", "children.neonateWeight"],
94
- "tableColumns": [{
95
- "key": "gravidityindex",
96
- "title": "孕次",
97
- "width": 30,
98
- "editor": {
99
- "input_type": "input"
100
- }
101
- }, {
102
- "key": "year",
103
- "title": "年-月",
104
- "width": 50,
105
- "editor": {
106
- "input_type": "filterDateInput"
107
- }
108
- }, {
109
- "key": "term",
110
- "title": "足月产",
111
- "width": 40,
112
- "editor": {
113
- "input_type": "checkbox",
114
- "input_props": {
115
- "type": "default"
116
- }
117
- }
118
- }, {
119
- "key": "preterm",
120
- "title": "早产",
121
- "width": 30,
122
- "editor": {
123
- "input_type": "checkbox",
124
- "input_props": {
125
- "type": "default"
126
- }
127
- }
128
- }, {
129
- "key": "inducedLabor",
130
- "title": "引产",
131
- "width": 30,
132
- "editor": {
133
- "input_type": "checkbox",
134
- "input_props": {
135
- "type": "default"
136
- }
137
- }
138
- }, {
139
- "key": "surgicalAbortion",
140
- "title": "人工",
141
- "width": 30,
142
- "editor": {
143
- "input_type": "checkbox",
144
- "input_props": {
145
- "type": "default"
146
- }
147
- }
148
- }, {
149
- "key": "medicalAbortion",
150
- "title": "药流",
151
- "width": 30,
152
- "editor": {
153
- "input_type": "checkbox",
154
- "input_props": {
155
- "type": "default"
156
- }
157
- }
158
- }, {
159
- "key": "naturalAbortion",
160
- "title": "自然流产",
161
- "width": 30,
162
- "editor": {
163
- "input_type": "checkbox",
164
- "input_props": {
165
- "type": "default"
166
- }
167
- }
168
- }, {
169
- "key": "ectopicPregnancy",
170
- "title": "异位妊娠",
171
- "width": 30,
172
- "editor": {
173
- "input_type": "checkbox",
174
- "input_props": {
175
- "type": "default"
176
- }
177
- }
178
- }, {
179
- "key": "hydatidMole",
180
- "title": "葡萄胎",
181
- "width": 30,
182
- "editor": {
183
- "input_type": "checkbox",
184
- "input_props": {
185
- "type": "default"
186
- }
187
- }
188
- }, {
189
- "key": "fetusdeath",
190
- "title": "死胎",
191
- "width": 30,
192
- "editor": {
193
- "input_type": "checkbox",
194
- "input_props": {
195
- "type": "default"
196
- }
197
- }
198
- }, {
199
- "key": "stillbirth",
200
- "title": "死产",
201
- "width": 30,
202
- "editor": {
203
- "input_type": "checkbox",
204
- "input_props": {
205
- "type": "default"
206
- }
207
- }
208
- }, {
209
- "key": "neonateDeath",
210
- "title": "新生儿死亡",
211
- "width": 30,
212
- "editor": {
213
- "input_type": "checkbox",
214
- "input_props": {
215
- "type": "default"
216
- }
217
- }
218
- }, {
219
- "title": "小孩情况",
220
- "children": [{
221
- "key": "children.childGender",
222
- "title": "性别",
223
- "width": 30,
224
- "editor": {
225
- "input_type": "select",
226
- "input_props": {
227
- "options": [{
228
- "label": "男",
229
- "value": 1
230
- }, {
231
- "label": "女",
232
- "value": 2
233
- }, {
234
- "label": "未知",
235
- "value": 3
236
- }]
237
- }
238
- }
239
- }, {
240
- "key": "children.childLiving",
241
- "title": "生存",
242
- "width": 30,
243
- "editor": {
244
- "input_type": "select",
245
- "input_props": {
246
- "options": [{
247
- "label": "健在",
248
- "value": true
249
- }, {
250
- "label": "死亡",
251
- "value": false
252
- }]
253
- }
254
- }
255
- }, {
256
- "key": "children.childDeformity",
257
- "title": "畸形",
258
- "width": 30,
259
- "editor": {
260
- "input_type": "select",
261
- "input_props": {
262
- "options": [{
263
- "label": "是",
264
- "value": "是"
265
- }, {
266
- "label": "否",
267
- "value": "否"
268
- }]
269
- }
270
- }
271
- }
272
- // {
273
- // "key": "children.childGender", "title": "性别", "width": 30,
274
- // "editor": {
275
- // "input_type": "select", "input_props": {
276
- // "options": [
277
- // { "label": "男", "value": 1 }, { "label": "女", "value": 2 }, { "label": "未知", "value": 3 }]
278
- // }
279
- // }
280
- // },
281
- ]
282
- }, {
283
- "title": "分娩方式",
284
- "children": [{
285
- "key": "vaginalDelivery",
286
- "title": "顺产",
287
- "width": 30,
288
- "editor": {
289
- "input_type": "checkbox",
290
- "input_props": {
291
- "type": "default"
292
- }
293
- }
294
- }, {
295
- "key": "operationType",
296
- "title": "手术产式",
297
- "width": 50,
298
- "editor": {
299
- "input_type": "select",
300
- "input_props": {
301
- "options": [{
302
- "label": " ",
303
- "value": " "
304
- }, {
305
- "label": "剖宫产",
306
- "value": "cesareanSection"
307
- }, {
308
- "label": "吸引产",
309
- "value": "vacuumAssisted"
310
- }, {
311
- "label": "钳产",
312
- "value": "forceps"
313
- }, {
314
- "label": "臀助产",
315
- "value": "breechMidwifery"
316
- }]
317
- }
318
- }
319
- }]
320
- }, {
321
- "key": "hemorrhage",
322
- "title": "产后出血",
323
- "width": 30,
324
- "editor": {
325
- "input_type": "checkbox",
326
- "input_props": {
327
- "type": "default"
328
- }
329
- }
330
- }, {
331
- "key": "exceptionalcase",
332
- "title": "其他",
333
- "width": 200,
334
- "editor": {
335
- "input_type": "input"
336
- }
337
- }]
338
- };
339
- function getConfig() {
340
- if (mchcEnv.is('建瓯')) {
341
- return 建瓯_config;
21
+ function FFF(props) {
22
+ var config = props.config,
23
+ onSelect = props.onSelect,
24
+ hidden = props.hidden,
25
+ arr = props.arr,
26
+ disabled = props.disabled;
27
+ var fds = config.fds,
28
+ processDataAsync = config.processDataAsync,
29
+ _config$btnProps = config.btnProps,
30
+ btnProps = _config$btnProps === void 0 ? {} : _config$btnProps,
31
+ _config$popProps = config.popProps,
32
+ popProps = _config$popProps === void 0 ? {} : _config$popProps,
33
+ process_url = config.process_url,
34
+ _config$process_args = config.process_args,
35
+ process_args = _config$process_args === void 0 ? {} : _config$process_args;
36
+ if (hidden) return null;
37
+ function process(_x, _x2) {
38
+ return _process.apply(this, arguments);
342
39
  }
343
- return {
344
- "pregnancyId": 0,
345
- "needNotThisTime": false,
346
- "ignoreKeys": ["children.childGender", "children.childLiving", "children.childDeathTime", "children.childDeathNote", "children.sequelaNote", "children.neonateWeight"],
347
- "tableColumns": [{
348
- "key": "gravidityindex",
349
- "title": "孕次",
350
- "width": 30,
351
- "editor": {
352
- "input_type": "input"
353
- }
354
- }, {
355
- "key": "year",
356
- "title": "年-月",
357
- "width": 70,
358
- "editor": {
359
- "input_type": "filterDateInput"
360
- }
361
- }, {
362
- "title": "流产",
363
- "children": [{
364
- "key": "naturalAbortion",
365
- "title": "自然",
366
- "width": 30,
367
- "editor": {
368
- "input_type": "checkbox",
369
- "input_props": {
370
- "type": "default"
371
- }
372
- }
373
- }, {
374
- "key": "medicalAbortion",
375
- "title": "药物",
376
- "width": 30,
377
- "editor": {
378
- "input_type": "checkbox",
379
- "input_props": {
380
- "type": "default"
381
- }
382
- }
383
- }, {
384
- "key": "surgicalAbortion",
385
- "title": "人工",
386
- "width": 30,
387
- "editor": {
388
- "input_type": "checkbox",
389
- "input_props": {
390
- "type": "default"
391
- }
392
- }
393
- }, {
394
- "key": "currettage",
395
- "title": mchcEnv["in"](['郫都']) ? "宫外孕" : "清宫",
396
- "width": 30,
397
- "editor": {
398
- "input_type": "checkbox",
399
- "input_props": {
400
- "type": "default"
401
- }
402
- }
403
- }]
404
- }, {
405
- "key": "biochemicalAbortion",
406
- "title": "生化妊娠",
407
- "width": 30,
408
- "editor": {
409
- "input_type": "checkbox",
410
- "input_props": {
411
- "type": "default"
412
- }
413
- }
414
- }, {
415
- "key": "inducedLabor",
416
- "title": "引产",
417
- "width": 30,
418
- "editor": {
419
- "input_type": "checkbox",
420
- "input_props": {
421
- "type": "default"
422
- }
423
- }
424
- }, {
425
- "key": "fetusdeath",
426
- "title": "死胎",
427
- "width": 30,
428
- "editor": {
429
- "input_type": "checkbox",
430
- "input_props": {
431
- "type": "default"
432
- }
433
- }
434
- }, mchcEnv["in"](['郫都']) && {
435
- "key": "stillbirth",
436
- "title": "死产",
437
- "width": 30,
438
- "editor": {
439
- "input_type": "checkbox",
440
- "input_props": {
441
- "type": "default"
442
- }
443
- }
444
- }, mchcEnv["in"](['郫都']) && {
445
- "key": "malformation",
446
- "title": "出生缺陷",
447
- "width": 30,
448
- "editor": {
449
- "input_type": "checkbox",
450
- "input_props": {
451
- "type": "default"
452
- }
453
- }
454
- }, {
455
- "key": "preterm",
456
- "title": "早产",
457
- "width": 30,
458
- "editor": {
459
- "input_type": "checkbox",
460
- "input_props": {
461
- "type": "default"
462
- }
463
- }
464
- }, {
465
- "key": "term",
466
- "title": "足月产",
467
- "width": 40,
468
- "editor": {
469
- "input_type": "checkbox",
470
- "input_props": {
471
- "type": "default"
472
- }
473
- }
474
- }, {
475
- "key": "gestationalWeek",
476
- "title": "孕周",
477
- "width": 40,
478
- "editor": {
479
- "input_type": "input"
480
- }
481
- }, {
482
- "title": "分娩方式",
483
- "children": [{
484
- "key": "vaginalDelivery",
485
- "title": "顺产",
486
- "width": 30,
487
- "editor": {
488
- "input_type": "checkbox",
489
- "input_props": {
490
- "type": "default"
491
- }
492
- }
493
- }, {
494
- "key": "operationType",
495
- "title": "手术产式",
496
- "width": 50,
497
- "editor": {
498
- "input_type": "select",
499
- "input_props": {
500
- "options": [{
501
- "label": " ",
502
- "value": " "
503
- }, {
504
- "label": "剖宫产",
505
- "value": "cesareanSection"
506
- }, {
507
- "label": "吸引产",
508
- "value": "vacuumAssisted"
509
- }, {
510
- "label": "钳产",
511
- "value": "forceps"
512
- }, {
513
- "label": "臀助产",
514
- "value": "breechMidwifery"
515
- }]
516
- }
517
- }
518
- }]
519
- }, {
520
- "title": "产后情况",
521
- "children": [{
522
- "key": "hemorrhage",
523
- "title": "出血",
524
- "width": 30,
525
- "editor": {
526
- "input_type": "checkbox",
527
- "input_props": {
528
- "type": "default"
529
- }
530
- }
531
- }, {
532
- "key": "puerperalFever",
533
- "title": "产褥热",
534
- "width": 40,
535
- "editor": {
536
- "input_type": "checkbox",
537
- "input_props": {
538
- "type": "default"
539
- }
540
- }
541
- }]
542
- }, {
543
- "key": "fetalcount",
544
- "title": "胎数",
545
- "width": 35,
546
- "editor": {
547
- "input_type": "input",
548
- "input_props": {
549
- "type": "number"
550
- },
551
- "controls": false
552
- }
553
- }, {
554
- "title": "小孩情况",
555
- "children": [{
556
- "key": "children.childGender",
557
- "title": "性别",
558
- "width": 30,
559
- "editor": {
560
- "input_type": "select",
561
- "input_props": {
562
- "options": [{
563
- "label": "男",
564
- "value": 1
565
- }, {
566
- "label": "女",
567
- "value": 2
568
- }, {
569
- "label": "未知",
570
- "value": 3
571
- }]
572
- }
573
- }
574
- }, {
575
- "key": "children.neonateWeight",
576
- "title": mchcEnv["in"](['广三']) ? "出生体重(g)" : "出生体重(kg)",
577
- "width": 60,
578
- "editor": {
579
- "input_type": "input",
580
- "input_props": {
581
- "type": "number"
582
- },
583
- "controls": false
584
- }
585
- }, {
586
- "key": "children.childLiving",
587
- "title": "生存",
588
- "width": 30,
589
- "editor": {
590
- "input_type": "select",
591
- "input_props": {
592
- "options": [{
593
- "label": "健在",
594
- "value": true
595
- }, {
596
- "label": "死亡",
597
- "value": false
598
- }]
40
+ function _process() {
41
+ _process = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(values, arr) {
42
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
43
+ while (1) switch (_context2.prev = _context2.next) {
44
+ case 0:
45
+ if (!processDataAsync) {
46
+ _context2.next = 2;
47
+ break;
48
+ }
49
+ return _context2.abrupt("return", processDataAsync(values, arr));
50
+ case 2:
51
+ if (!process_url) {
52
+ _context2.next = 6;
53
+ break;
54
+ }
55
+ _context2.next = 5;
56
+ return request.post(process_url, _objectSpread(_objectSpread({}, values), process_args), {
57
+ successText: '操作成功'
58
+ });
59
+ case 5:
60
+ return _context2.abrupt("return", _context2.sent.data);
61
+ case 6:
62
+ return _context2.abrupt("return", values);
63
+ case 7:
64
+ case "end":
65
+ return _context2.stop();
66
+ }
67
+ }, _callee2);
68
+ }));
69
+ return _process.apply(this, arguments);
70
+ }
71
+ var _Form$useForm = Form.useForm(),
72
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
73
+ form = _Form$useForm2[0];
74
+ return /*#__PURE__*/React.createElement(Popconfirm, _objectSpread(_objectSpread({}, popProps), {}, {
75
+ onConfirm: function () {
76
+ var _onConfirm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
77
+ var values;
78
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
79
+ while (1) switch (_context.prev = _context.next) {
80
+ case 0:
81
+ values = form.getFieldsValue();
82
+ console.log('ssbb 0', {
83
+ values: values
84
+ });
85
+ _context.next = 4;
86
+ return process(values, arr);
87
+ case 4:
88
+ values = _context.sent;
89
+ values = expect_array(values, [values !== null && values !== void 0 ? values : {}]);
90
+ onSelect(values);
91
+ case 7:
92
+ case "end":
93
+ return _context.stop();
599
94
  }
600
- }
601
- }, {
602
- "key": "children.childDeathTime",
603
- "width": 100,
604
- "title": "死亡时间",
605
- "editor": {
606
- "input_type": "filterDateInput"
607
- }
608
- }, {
609
- "key": "children.childDeathNote",
610
- "width": 100,
611
- "title": "死亡原因",
612
- "editor": {
613
- "input_type": "input"
614
- }
615
- }, {
616
- "key": "children.sequelaNote",
617
- "title": "后遗症",
618
- "width": 30,
619
- "editor": {
620
- "input_type": "input"
621
- }
622
- }]
623
- }, {
624
- "key": "hospital",
625
- "title": "分娩医院",
626
- "width": 80,
627
- "editor": {
628
- "input_type": "input"
629
- }
630
- }, {
631
- "key": "exceptionalcase",
632
- "title": "特殊情况",
633
- "width": 200,
634
- "editor": {
635
- "input_type": "input"
636
- }
637
- }]
638
- };
639
- }
640
- var css_248z = ".preg-his-table .btns-wrapper {\n margin-bottom: 8px;\n}\n.preg-his-table .btns-wrapper .ant-btn {\n margin-right: 12px;\n}\n.preg-his-table .ant-table .ant-table-thead th {\n color: #150f55;\n}\n.preg-his-table .ant-table .ant-table-tbody > tr.ant-table-row:hover > td {\n background: #e6f6ff !important;\n}\n.preg-his-table .ant-table .row-select {\n background: #e6f6ff !important;\n}\n.preg-his-table .ant-table .ant-table-cell {\n height: 40px;\n text-align: center;\n word-break: keep-all;\n padding: 4px;\n}\n";
641
- styleInject(css_248z);
642
- var Tree = LazyAntd.Tree,
643
- TreeSelect = LazyAntd.TreeSelect,
644
- Select = LazyAntd.Select,
645
- Table = LazyAntd.Table,
646
- Dropdown = LazyAntd.Dropdown,
647
- Pagination = LazyAntd.Pagination;
648
- // 手术产式
649
- var operationTypes = ['cesareanSection', 'vacuumAssisted', 'forceps', 'breechMidwifery'];
650
- var addData = {
651
- _key: 'benyun',
652
- fetalcount: null
653
- };
654
- function getPropsValue(k, a, b) {
655
- var _ref, _get2, _a$config;
656
- return (_ref = (_get2 = _get(a, k)) !== null && _get2 !== void 0 ? _get2 : _get(a === null || a === void 0 || (_a$config = a.config) === null || _a$config === void 0 ? void 0 : _a$config.input_props, k)) !== null && _ref !== void 0 ? _ref : _get(b, k);
95
+ }, _callee);
96
+ }));
97
+ function onConfirm() {
98
+ return _onConfirm.apply(this, arguments);
99
+ }
100
+ return onConfirm;
101
+ }(),
102
+ title: /*#__PURE__*/React.createElement(MyFormSectionForm, {
103
+ form: form,
104
+ formDescriptions: fds.map(function (_) {
105
+ return _objectSpread(_objectSpread({}, _), {}, {
106
+ inputProps: Object.assign({}, _ === null || _ === void 0 ? void 0 : _.inputProps, {
107
+ popupStyle: {
108
+ zIndex: 9999
109
+ },
110
+ dropdownStyle: {
111
+ zIndex: 9999
112
+ }
113
+ })
114
+ });
115
+ })
116
+ })
117
+ }), /*#__PURE__*/React.createElement(Button, _objectSpread({
118
+ disabled: disabled,
119
+ type: 'dashed',
120
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
121
+ value: "PlusOutlined"
122
+ }),
123
+ size: 'small'
124
+ }, btnProps), btnProps.children));
657
125
  }
658
- function MyForm_Business_PregnancyHistory(props) {
659
- var _getPropsValue, _getPropsValue$filter;
660
- var value = props.value,
661
- onChange = props.onChange,
662
- dispatch = props.dispatch;
663
- var __input_props = getConfig();
664
- var __ignoreKeys = (_getPropsValue = getPropsValue('ignoreKeys', props, __input_props)) !== null && _getPropsValue !== void 0 ? _getPropsValue : [];
665
- var __tableColumns = (_getPropsValue$filter = getPropsValue('tableColumns', props, __input_props).filter(Boolean)) !== null && _getPropsValue$filter !== void 0 ? _getPropsValue$filter : []; // 过滤掉 false 值
666
- var __needNotThisTime = getPropsValue('needNotThisTime', props, __input_props);
667
- var __closeAdd = getPropsValue('closeAdd', props, __input_props);
668
- var __pregnancyId = getPropsValue('pregnancyId', props, __input_props);
669
- var ignoreKeys = __ignoreKeys.map(function (_) {
670
- return _.startsWith('children') ? _.replace('children', '_children') : _;
671
- });
672
- var _useState = useState([]),
126
+ function PopconfirmComponent(_ref) {
127
+ var children = _ref.children,
128
+ C = _ref.C,
129
+ value = _ref.value,
130
+ onChange = _ref.onChange,
131
+ CProps = _ref.CProps,
132
+ onBlur = _ref.onBlur;
133
+ var _useState = useState(),
673
134
  _useState2 = _slicedToArray(_useState, 2),
674
- tableColumns = _useState2[0],
675
- set_tableColumns = _useState2[1];
676
- var _useState3 = useState(0),
135
+ _value = _useState2[0],
136
+ set_value = _useState2[1];
137
+ useEffect(function () {
138
+ set_value(value);
139
+ }, [value]);
140
+ return /*#__PURE__*/React.createElement(Popconfirm, {
141
+ icon: null,
142
+ placement: "right",
143
+ // trigger='hover'
144
+ style: {
145
+ zIndex: 999
146
+ },
147
+ styles: {
148
+ root: {
149
+ zIndex: 999
150
+ }
151
+ },
152
+ cancelButtonProps: {
153
+ hidden: true
154
+ },
155
+ okButtonProps: {
156
+ hidden: true
157
+ },
158
+ title: /*#__PURE__*/React.createElement("div", {
159
+ style: {}
160
+ }, /*#__PURE__*/React.createElement(MyLazyComponent, null, /*#__PURE__*/React.createElement(C
161
+ // onBlur={() => {F
162
+ // // onBlur(e)
163
+ // message.info('blur')
164
+ // onChange(_value)
165
+ // }}
166
+ , _objectSpread(_objectSpread({}, CProps), {}, {
167
+ value: _value,
168
+ onChange: onChange
169
+ }))))
170
+ }, /*#__PURE__*/React.createElement("div", {
171
+ style: {
172
+ minHeight: 40
173
+ }
174
+ }, children));
175
+ }
176
+ var defaultValue = [];
177
+ function GeneralComponents_EditInTable_Inner(innerProps) {
178
+ var _innerProps$tableColu, _innerProps$paginatio;
179
+ // const defaultSign = getSearchParamsValue('empname')
180
+ var defaultSign = getSearchParamsValue('empid');
181
+ var defaultSignData = {
182
+ recorder: defaultSign,
183
+ sign: defaultSign,
184
+ nurseSignature: defaultSign,
185
+ responsibleSign: defaultSign,
186
+ auditorSign: defaultSign
187
+ };
188
+ var sp = innerProps.sp,
189
+ _innerProps$defaultIn = innerProps.defaultInputData,
190
+ defaultInputData = _innerProps$defaultIn === void 0 ? {} : _innerProps$defaultIn,
191
+ _innerProps$type = innerProps.type,
192
+ type = _innerProps$type === void 0 ? 'modal' : _innerProps$type,
193
+ _innerProps$changeImm = innerProps.changeImmediate,
194
+ changeImmediate = _innerProps$changeImm === void 0 ? true : _innerProps$changeImm,
195
+ _innerProps$RenderOth = innerProps.RenderOtherActions,
196
+ RenderOtherActions = _innerProps$RenderOth === void 0 ? DefaultRenderOtherActions : _innerProps$RenderOth,
197
+ disabledAll = innerProps.disabled,
198
+ formInstance = innerProps.formInstance,
199
+ EditInTable_beforeAdd = innerProps.EditInTable_beforeAdd,
200
+ _innerProps$fd_append = innerProps.fd_append_row,
201
+ fd_append_row = _innerProps$fd_append === void 0 ? [] : _innerProps$fd_append;
202
+ var isSetLast = useRef(false);
203
+ var _Form$useForm3 = Form.useForm(),
204
+ _Form$useForm4 = _slicedToArray(_Form$useForm3, 1),
205
+ _formInstance = _Form$useForm4[0];
206
+ useState(false);
207
+ var _useState3 = useState([]),
677
208
  _useState4 = _slicedToArray(_useState3, 2),
678
- tableColumnsLength = _useState4[0],
679
- set_tableColumnsLength = _useState4[1];
209
+ selectedRowKeys = _useState4[0],
210
+ setSelectedRowKeys = _useState4[1];
680
211
  var _useState5 = useState([]),
681
212
  _useState6 = _slicedToArray(_useState5, 2),
682
213
  dataSource = _useState6[0],
683
- set_dataSource = _useState6[1];
684
- var _useState7 = useState([]),
214
+ setDataSource = _useState6[1];
215
+ var _useState7 = useState(10),
685
216
  _useState8 = _slicedToArray(_useState7, 2),
686
- selectedRowKeys = _useState8[0],
687
- set_selectedRowKeys = _useState8[1];
688
- var _useState9 = useState(),
217
+ pageSize = _useState8[0],
218
+ setPageSize = _useState8[1];
219
+ var _useState9 = useState(1),
689
220
  _useState10 = _slicedToArray(_useState9, 2),
690
- g = _useState10[0],
691
- setG = _useState10[1];
692
- var _useState11 = useState(),
221
+ pageIdx = _useState10[0],
222
+ setPageIdx = _useState10[1];
223
+ var _useState11 = useState([]),
693
224
  _useState12 = _slicedToArray(_useState11, 2),
694
- p = _useState12[0],
695
- setP = _useState12[1];
696
- var pregnancyId = useRef();
697
- pregnancyId.current = __pregnancyId;
698
- var fetchPG = useCallback(_throttle(function fetchPG() {
699
- var id = pregnancyId.current;
700
- id && SMchc_Doctor.getOutpatientHeaderInfo(id).then(function (r) {
701
- setG(r.g);
702
- setP(r.p);
703
- });
704
- }, 2000), []);
705
- useEffect(function () {
706
- fetchPG();
707
- var rm = mchcEvent.on_rm('outpatient', function (e) {
708
- if (e.type === '刷新头部') {
709
- fetchPG();
710
- }
225
+ row_filter_data = _useState12[0],
226
+ setRow_filter_data = _useState12[1];
227
+ var _useState13 = useState([]),
228
+ _useState14 = _slicedToArray(_useState13, 2),
229
+ userSignOptions = _useState14[0],
230
+ setUserSignOptions = _useState14[1];
231
+ useRef([]);
232
+ function _defaultInputData() {
233
+ var datetime = formatDateTimeNoSecond();
234
+ return _objectSpread(_objectSpread({
235
+ recordTime: datetime,
236
+ recordDateTime: datetime,
237
+ date: datetime
238
+ }, defaultSignData), defaultInputData);
239
+ }
240
+ var _tableColumns = expect_array((_innerProps$tableColu = innerProps.tableColumns) !== null && _innerProps$tableColu !== void 0 ? _innerProps$tableColu : innerProps.fds).filter(identity);
241
+ var isShowCalcInputOutput = _tableColumns.some(function (_) {
242
+ var _$title;
243
+ return (_$title = _.title) === null || _$title === void 0 ? void 0 : _$title.includes('出量');
244
+ });
245
+ var 出入量_options = function 出入量_options() {
246
+ return dataSource.map(function (_) {
247
+ return {
248
+ label: _.recordTime,
249
+ value: _.key
250
+ };
711
251
  });
712
- return rm;
713
- }, []);
252
+ };
253
+ var __tableColumns = type == 'modal' ? [].concat(_toConsumableArray(_tableColumns), [{
254
+ title: '操作',
255
+ fixed: 'right',
256
+ align: 'center',
257
+ width: 40,
258
+ render: function render(a, b, index) {
259
+ if (row_disabled(b)) return null;
260
+ var v = getItem(dataSource, pagination, index);
261
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
262
+ icon: /*#__PURE__*/React.createElement(MyIcon, {
263
+ value: 'DeleteOutlined'
264
+ }),
265
+ type: b.modifyFlag ? 'dashed' : 'text',
266
+ size: 'small',
267
+ danger: true,
268
+ onClick: function onClick(e) {
269
+ return handleDeleteOne(v);
270
+ }
271
+ }));
272
+ }
273
+ }]) : _tableColumns;
274
+ useRef(0);
275
+ var onChangeRef = useRef(safeOnChange);
276
+ onChangeRef.current = safeOnChange;
277
+ var rawValue = useRef([]);
278
+ var __formInstance = formInstance !== null && formInstance !== void 0 ? formInstance : _formInstance;
279
+ var pagination = (_innerProps$paginatio = innerProps.pagination) !== null && _innerProps$paginatio !== void 0 ? _innerProps$paginatio : {
280
+ pageSizeOptions: ['5', '10', '20', '40'],
281
+ pageSize: pageSize,
282
+ size: 'small',
283
+ onChange: function onChange(page, pageSize) {
284
+ setPageIdx(page);
285
+ setPageSize(pageSize);
286
+ syncData();
287
+ },
288
+ current: pageIdx,
289
+ showSizeChanger: true,
290
+ position: ['bottomCenter']
291
+ };
292
+ function safeOnChange(v) {
293
+ var _innerProps$onChange;
294
+ (_innerProps$onChange = innerProps.onChange) === null || _innerProps$onChange === void 0 || _innerProps$onChange.call(innerProps, v);
295
+ rawValue.current = v;
296
+ setDataSource(v);
297
+ }
714
298
  useEffect(function () {
715
- var safeValue = value !== null && value !== void 0 ? value : [];
716
- var _value = _orderBy(safeValue, ['gravidityindex'], ['asc']);
717
- /*计算本孕一行占据的宽度*/
718
- var length = 0;
719
- _forEach(__tableColumns, function (item) {
720
- if (item.children) {
721
- length += _get(item, 'children.length');
722
- item.children = item.children.map(function (c) {
723
- var _c$key;
724
- return _objectSpread(_objectSpread({}, c), {}, {
725
- key: (_c$key = c.key) !== null && _c$key !== void 0 && _c$key.startsWith('children') ? c.key.replace('children', '_children') : c.key
726
- });
727
- });
728
- } else {
729
- length++;
730
- }
299
+ var _innerProps$value;
300
+ var data = (_innerProps$value = innerProps.value) !== null && _innerProps$value !== void 0 ? _innerProps$value : defaultValue;
301
+ var safeValue = data.filter(function (_) {
302
+ return !_.deleteFlag;
303
+ }).map(function (item) {
304
+ return _objectSpread(_objectSpread({}, item), {}, {
305
+ key: item.id || item.key
306
+ });
731
307
  });
732
- var d = splitData(_value);
733
- set_tableColumns(__tableColumns);
734
- set_tableColumnsLength(length - 1);
735
- set_dataSource(d !== null && d !== void 0 ? d : []);
736
- set_selectedRowKeys([]);
737
- console.log('value', _value, d);
308
+ setDataSource(safeValue);
309
+ if (safeValue.length && !isSetLast.current) {
310
+ var _pageIdx = Math.ceil(safeValue.length / pagination.pageSize);
311
+ pagination.current = _pageIdx;
312
+ setPageIdx(_pageIdx);
313
+ isSetLast.current = true;
314
+ }
315
+ rawValue.current = safeValue;
738
316
  return function () {};
739
- }, [value]);
740
- function _onChange(data) {
741
- console.log('_onChange', data);
742
- onChange(JSON.parse(JSON.stringify(data)));
743
- }
744
- function splitData(data) {
745
- var cloneData = _cloneDeep(data);
746
- var splitArr = [];
747
- if (cloneData) {
748
- var count = 0;
749
- cloneData.forEach(function (item, index) {
750
- var _get3;
751
- var len = (_get3 = _get(item, 'children.length')) !== null && _get3 !== void 0 ? _get3 : 0;
752
- if (len > 0) {
753
- _forEach(item.children, function (subItem) {
754
- var newItem = _cloneDeep(item);
755
- newItem.mergeIndex = index;
756
- newItem._children = subItem;
757
- newItem._key = count;
758
- splitArr.push(newItem);
759
- count++;
760
- });
761
- } else {
762
- item.mergeIndex = index;
763
- item._children = {};
764
- item._key = count;
765
- splitArr.push(item);
766
- count++;
767
- }
317
+ }, [innerProps.value]);
318
+ useEffect(function () {
319
+ var _curIdx = (pageIdx - 1) * pageSize;
320
+ var formData = dataSource.slice(_curIdx, _curIdx + pageSize);
321
+ setFormData(formData);
322
+ // console.log('useEffect form', dataSource, formData, _curIdx)
323
+ mchcEnv.setGlobalCache('doc_arr', dataSource);
324
+ }, [pageIdx, pageSize, dataSource]);
325
+ useEffect(function () {
326
+ if (mchcEnv.is('广三')) {
327
+ request.get('/api/getUserSign').then(function (res) {
328
+ var _res$data;
329
+ var list = (_res$data = res.data) !== null && _res$data !== void 0 ? _res$data : [];
330
+ setUserSignOptions(list);
768
331
  });
769
332
  }
770
- _forEach(splitArr, function (item) {
771
- _forEach(operationTypes, function (type) {
772
- if (_get(item, type) === true) {
773
- _set(item, 'operationType', type);
774
- }
333
+ return function () {};
334
+ }, []);
335
+ var mapFormDataToDatasource = function mapFormDataToDatasource() {
336
+ var formData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : __formInstance.getFieldsValue();
337
+ var changedKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
338
+ var __list = _toConsumableArray(dataSource).map(function (_) {
339
+ var form_item = formData[_.key] || {};
340
+ if (!form_item) return _;
341
+ return _objectSpread(_objectSpread(_objectSpread({}, _), form_item), {}, {
342
+ modifyFlag: true
775
343
  });
776
344
  });
777
- /* 加入本孕信息 */
778
- if (!__needNotThisTime) {
779
- var newAddData = _cloneDeep(addData);
780
- newAddData.gravidityindex = data.length + 1;
781
- splitArr.push(newAddData);
782
- }
783
- return splitArr;
784
- }
785
- // onChange 之前
786
- function mergeData(data) {
787
- /* 删去最后一条本孕信息 */
788
- if (!__needNotThisTime) {
789
- data.splice(data.length - 1, 1);
790
- }
791
- var mergeArr = [];
792
- var sameIndex = -1;
793
- for (var i = 0; i < data.length; i++) {
794
- if (data[i].mergeIndex !== sameIndex) {
795
- var _child$mergeIndex;
796
- var child = _cloneDeep(data[i]);
797
- sameIndex = (_child$mergeIndex = child.mergeIndex) !== null && _child$mergeIndex !== void 0 ? _child$mergeIndex : -1;
798
- var childArr = child._children ? [child._children] : [];
799
- mergeArr.push(child);
800
- mergeArr[mergeArr.length - 1].children = childArr;
801
- } else {
802
- var _mergeArr;
803
- var c = data[i]._children;
804
- c && ((_mergeArr = mergeArr[mergeArr.length - 1]) === null || _mergeArr === void 0 || (_mergeArr = _mergeArr.children) === null || _mergeArr === void 0 ? void 0 : _mergeArr.push(c));
805
- }
806
- }
807
- _map(mergeArr, function (item) {
808
- var _get4, _item$children;
809
- var len = (_get4 = _get(item, 'children.length')) !== null && _get4 !== void 0 ? _get4 : 0;
810
- /* 未分娩胎数为零 */
811
- if (len === 1 && _size((_item$children = item.children) === null || _item$children === void 0 ? void 0 : _item$children[0]) === 0) {
812
- item.children = [];
813
- item.fetalcount = undefined;
814
- }
815
- if (len > 0) {
816
- item.fetalcount = len;
817
- }
345
+ return Object.values(__list);
346
+ };
347
+ function processNewData(row) {
348
+ var _EditInTable_beforeAd;
349
+ var newData = Object.assign({}, row, _defaultInputData(), {
350
+ key: genRandomKey()
818
351
  });
819
- return mergeArr;
352
+ return (_EditInTable_beforeAd = EditInTable_beforeAdd === null || EditInTable_beforeAdd === void 0 ? void 0 : EditInTable_beforeAdd(newData, rawValue.current)) !== null && _EditInTable_beforeAd !== void 0 ? _EditInTable_beforeAd : newData;
820
353
  }
821
- function handleEdit(val, key, index) {
822
- var newValue = _cloneDeep(dataSource);
823
- var fetelData = newValue[index];
824
- /*互斥项提示
825
- 流产
826
- naturalAbortion -自然
827
- medicalAbortion -药物流产
828
- surgicalAbortion - 手术流产
829
- currettage - 清宫
830
- biochemicalAbortion - 生化妊娠
831
- inducedLabor -- 引产
832
- 产出
833
- preterm -- 早产
834
- term -- 足月产
835
- vaginalDelivery -- 顺产
836
- cesareanSection -- 剖宫产
837
- vacuumAssisted -- 吸引产
838
- forceps -- 钳产
839
- breechMidwifery -- 臀助产
840
- */
841
- var threeCount = 0;
842
- var fourCount = 0;
843
- if (fetelData.naturalAbortion === true) threeCount++;
844
- if (fetelData.surgicalAbortion === true) threeCount++;
845
- if (fetelData.inducedLabor === true) threeCount++;
846
- if (fetelData.medicalAbortion === true) threeCount++;
847
- if (fetelData.currettage === true) threeCount++;
848
- if (fetelData.biochemicalAbortion === true) threeCount++;
849
- if (fetelData.preterm === true) fourCount++;
850
- if (fetelData.term === true) fourCount++;
851
- if (fetelData.vaginalDelivery === true) fourCount++;
852
- if (!!fetelData.shouShuChanType) fourCount++;
853
- if (fetelData.cesareanSection === true) fourCount++;
854
- if (fetelData.vacuumAssisted === true) fourCount++;
855
- if (fetelData.forceps === true) fourCount++;
856
- if (fetelData.breechMidwifery === true) fourCount++;
857
- if (key === 'naturalAbortion' && val === true && fourCount > 0 || key === 'surgicalAbortion' && val === true && fourCount > 0 || key === 'inducedLabor' && val === true && fourCount > 0 || key === 'medicalAbortion' && val === true && fourCount > 0 || key === 'currettage' && val === true && fourCount > 0 || key === 'biochemicalAbortion' && val === true && fourCount > 0) {
858
- _message.error('早产、足月产、顺产、手术产式中已有数据!', 4);
859
- }
860
- if (key === 'preterm' && val === true && threeCount > 0 || key === 'term' && val === true && threeCount > 0 || key === 'vaginalDelivery' && val === true && threeCount > 0 || key === 'shouShuChanType' && val && threeCount > 0 || key === 'operationType' && val && threeCount > 0) {
861
- _message.error('自然流产、人工流产、引产中已有数据!', 4);
862
- }
863
- if (key === 'naturalAbortion' && val === true && (fetelData.surgicalAbortion === true || fetelData.inducedLabor === true)) {
864
- _message.error('人工流产、引产中已有数据!', 4);
865
- }
866
- if (key === 'surgicalAbortion' && val === true && (fetelData.naturalAbortion === true || fetelData.inducedLabor === true)) {
867
- _message.error('自然流产、引产中已有数据!', 4);
868
- }
869
- if (key === 'inducedLabor' && val === true && (fetelData.naturalAbortion === true || fetelData.surgicalAbortion === true)) {
870
- _message.error('自然流产、人工流产中已有数据!', 4);
871
- }
872
- if (key === 'preterm' && val === true && fetelData.term === true) {
873
- _message.error('足月产已有数据!', 4);
874
- }
875
- if (key === 'term' && val === true && fetelData.preterm === true) {
876
- _message.error('早产已有数据!', 4);
877
- }
878
- if (key === 'vaginalDelivery' && val === true && fetelData.shouShuChanType) {
879
- _message.error('手术产式已有数据!', 4);
880
- }
881
- if (key === 'shouShuChanType' && val && fetelData.vaginalDelivery === true) {
882
- _message.error('顺产已有数据!', 4);
883
- }
884
- /*手术产式 值转换*/
885
- if (key === 'operationType') {
886
- _forEach(operationTypes, function (type) {
887
- if (type === val) {
888
- _set(fetelData, type, true);
889
- } else {
890
- _set(fetelData, type, false);
891
- }
892
- });
893
- }
894
- /*胎数变化*/
895
- if (key === 'fetalcount') {
896
- var samePreg = newValue.filter(function (item) {
897
- return item.mergeIndex === fetelData.mergeIndex;
898
- });
899
- var sameCount = samePreg.length;
900
- console.log('xx --', val, sameCount, samePreg);
901
- if (!val || val === 0) {
902
- return;
903
- } else if (val < 0 || val > 18) {
904
- _message.warning('胎数范围为0到18!');
905
- } else if (val > sameCount) {
906
- console.log('xx', val, sameCount, samePreg);
907
- for (var i = 0; i < val - sameCount; i++) {
908
- var newFetus = _cloneDeep(samePreg[0]);
909
- newFetus._children = {};
910
- newValue.splice(index + sameCount + i, 0, newFetus);
911
- }
912
- } else if (val < sameCount) {
913
- console.log('xx 11', val, sameCount, samePreg);
914
- newValue.splice(index + val, sameCount - val);
915
- }
916
- } else {
917
- _set(fetelData, key, val);
918
- }
919
- if (dispatch) dispatch('tableEdit', fetelData);
920
- var d = mergeData(newValue);
921
- console.log('handleEdit', arguments, d);
922
- _onChange(d);
354
+ function addOne(row) {
355
+ // if (type === 'modal') {
356
+ // return openModal()
357
+ // }
358
+ var newRow = processNewData(row);
359
+ var newData = [].concat(_toConsumableArray(rawValue.current), [newRow]);
360
+ return newData;
923
361
  }
924
- function handleAdd() {
925
- var newData = {};
926
- _forEach(tableColumns, function (item) {
927
- if (item.children) {
928
- var child = item.children;
929
- _forEach(child, function (subItem) {
930
- if (subItem.key.indexOf('.') === -1) {
931
- newData[subItem.key] = '';
932
- } else {
933
- newData._children = {};
934
- newData.children = [];
935
- }
936
- });
937
- } else {
938
- newData[item.key] = '';
939
- }
362
+ function addMany() {
363
+ var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
364
+ // if (type === 'modal') {
365
+ // return openModal()
366
+ // }
367
+ var newRows = row.map(processNewData);
368
+ var newData = [].concat(_toConsumableArray(rawValue.current), _toConsumableArray(newRows));
369
+ return newData;
370
+ }
371
+ function addOneOrMany() {
372
+ var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
373
+ // if (type === 'modal') {
374
+ // return openModal()
375
+ // }
376
+ mchcLogger.log('handleAdd', {
377
+ row: row
940
378
  });
941
- console.log('newData', newData);
942
- _onChange(mergeData([].concat(_toConsumableArray(dataSource), [newData])));
379
+ if (!row) return;
380
+ var newData = Array.isArray(row) ? addMany(row) : addOne(row);
381
+ var _pageIdx = Math.ceil(newData.length / pagination.pageSize);
382
+ setPageIdx(_pageIdx);
383
+ safeOnChange === null || safeOnChange === void 0 || safeOnChange(newData);
943
384
  }
944
- function handleDelete() {
945
- var newDataSource = _cloneDeep(dataSource);
946
- console.log('handleDelete', selectedRowKeys, dataSource);
947
- _forEach(selectedRowKeys, function (key) {
948
- for (var i = 0; i < newDataSource.length; i++) {
949
- if (key === newDataSource[i]._key) {
950
- newDataSource.splice(i, 1);
951
- break;
952
- }
953
- }
385
+ function setFormData(_rows) {
386
+ var old_form_data = __formInstance.getFieldsValue();
387
+ var old_form_keys = Object.keys(old_form_data);
388
+ var form_data_keys = _rows.filter(function (_) {
389
+ return !_.disabled;
390
+ }).map(function (f) {
391
+ return f.key.toString();
954
392
  });
955
- _forEach(newDataSource, function (item, index) {
956
- newDataSource[index].gravidityindex = index + 1;
393
+ if (form_data_keys.every(function (f) {
394
+ return old_form_keys.includes(f);
395
+ }) && old_form_keys.every(function (f) {
396
+ return form_data_keys.includes(f);
397
+ })) {
398
+ return;
399
+ }
400
+ var x = objectify(_rows, function (_) {
401
+ return _.key;
957
402
  });
958
- _onChange(mergeData(newDataSource));
403
+ __formInstance.setFieldsValue(x);
959
404
  }
960
- // handleRowSelectChange = (selectedRowKeys: Array<number | string>, selectedRows: any[]): void => {
961
- // setState({ selectedRowKeys });
962
- // };
963
- function handleRowClick(row, index) {
964
- var newValue = _cloneDeep(dataSource);
965
- _forEach(newValue, function (item) {
966
- return item.rowClassName = '';
967
- });
968
- _set(newValue[index], 'rowClassName', 'row-select');
969
- set_selectedRowKeys([index]);
970
- set_dataSource(newValue);
405
+ function row_disabled(rowData) {
406
+ return rowData.disabled || disabledAll;
971
407
  }
972
- function _rowClassName(row) {
973
- return row.rowClassName;
408
+ function handleDeleteOne(_x3) {
409
+ return _handleDeleteOne.apply(this, arguments);
974
410
  }
975
- function getRowSpans(arr, key) {
976
- var sameValueLength = 0;
977
- var rowSpans = [];
978
- for (var i = arr.length - 1; i >= 0; i--) {
979
- if (i === 0) {
980
- rowSpans[i] = sameValueLength + 1;
981
- continue;
982
- }
983
- if (arr[i][key] === arr[i - 1][key]) {
984
- rowSpans[i] = 0;
985
- sameValueLength++;
986
- } else {
987
- rowSpans[i] = sameValueLength + 1;
988
- sameValueLength = 0;
989
- }
411
+ function _handleDeleteOne() {
412
+ _handleDeleteOne = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(item) {
413
+ var isOk, cloneData, newDataSource, newIdx;
414
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
415
+ while (1) switch (_context4.prev = _context4.next) {
416
+ case 0:
417
+ isOk = window.confirm('确定删除吗?');
418
+ if (isOk) {
419
+ _context4.next = 3;
420
+ break;
421
+ }
422
+ return _context4.abrupt("return");
423
+ case 3:
424
+ cloneData = cloneDeep(dataSource);
425
+ newDataSource = filter(cloneData, function (data) {
426
+ return data.key !== item.key;
427
+ });
428
+ safeOnChange(newDataSource);
429
+ newIdx = Math.ceil(newDataSource.length / pagination.pageSize);
430
+ if (newIdx < pageIdx) setPageIdx(newIdx);
431
+ case 8:
432
+ case "end":
433
+ return _context4.stop();
434
+ }
435
+ }, _callee4);
436
+ }));
437
+ return _handleDeleteOne.apply(this, arguments);
438
+ }
439
+ var handleFieldsChange = debounce(function handleFieldsChange(changedFields, allFields) {
440
+ var changedKey = keys(changedFields)[0];
441
+ mchcLogger.log('changedFields', {
442
+ allFields: allFields,
443
+ changedFields: changedFields
444
+ });
445
+ if (changeImmediate) {
446
+ syncData(allFields, changedKey);
447
+ }
448
+ }, 500);
449
+ // 添加 getDataSource 方法,重新渲染预览模式下的表格数据,主要是针对非输入项的 mapping 值
450
+ function getDataSource() {
451
+ var arr = map(dataSource, function (rowData) {
452
+ var tempRowData = _objectSpread({}, rowData);
453
+ return tempRowData;
454
+ });
455
+ if (size(row_filter_data) !== 0) {
456
+ return arr.filter(function (_) {
457
+ return row_filter_data.some(function (f) {
458
+ if (!f.value) return true;
459
+ return !isNil(_[f.value]);
460
+ });
461
+ });
990
462
  }
991
- return rowSpans;
463
+ return arr;
464
+ }
465
+ function syncData() {
466
+ var formData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : __formInstance.getFieldsValue();
467
+ var changedKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
468
+ var d = mapFormDataToDatasource(formData, changedKey);
469
+ safeOnChange(d);
992
470
  }
993
- // 对于二级表单的处理
994
- function handleTabColumnsFormat(tableColumns) {
995
- var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
996
- var rowSpans = getRowSpans(dataSource, 'mergeIndex');
997
- var newColums = tableColumns.map(function (col, colIndx) {
998
- if (col.key) {
471
+ function getColumns(_tableColumns) {
472
+ var arr = map(_tableColumns, function (col) {
473
+ var _col$dataIndex, _col$inputProps;
474
+ var dataIndex = Array.isArray(col.dataIndex) ? col.dataIndex.join(',') : (_col$dataIndex = col.dataIndex) !== null && _col$dataIndex !== void 0 ? _col$dataIndex : '';
475
+ var inputType = col.inputType;
476
+ var inputProps = (_col$inputProps = col.inputProps) !== null && _col$inputProps !== void 0 ? _col$inputProps : {};
477
+ var isPop = inputProps === null || inputProps === void 0 ? void 0 : inputProps.isPop;
478
+ var children = get(col, 'children');
479
+ if (children) {
999
480
  return _objectSpread(_objectSpread({}, col), {}, {
1000
- dataIndex: col.key,
1001
- render: function render(text, record, index) {
1002
- if (index === dataSource.length - 1 && !__needNotThisTime) {
1003
- return {
1004
- children: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, colIndx === 1 ? '本孕' : text)),
1005
- props: {
1006
- colSpan: colIndx === 1 && level === 1 ? tableColumnsLength : text ? 1 : 0
1007
- }
1008
- };
1009
- } else {
1010
- return {
1011
- children: /*#__PURE__*/React.createElement(EditableCell, {
1012
- value: _get(record, col.key),
1013
- onChange: function onChange(val) {
1014
- return handleEdit(val, col.key, index);
1015
- },
1016
- editor: col.editor
1017
- }),
1018
- props: {
1019
- rowSpan: ignoreKeys.includes(col.key) ? 1 : rowSpans[index]
1020
- }
1021
- };
1022
- }
481
+ children: getColumns(children)
482
+ });
483
+ } else {
484
+ if (!col.inputType) {
485
+ return col;
486
+ }
487
+ return _objectSpread(_objectSpread({}, col), {}, {
488
+ render: function render(__value, _, rowIndex) {
489
+ var _componentMap$inputTy;
490
+ var rowData = getItem(dataSource, pagination, rowIndex);
491
+ if (!rowData) return '';
492
+ var calc_disabled = row_disabled(rowData);
493
+ // const realValue = get(__formInstance.getFieldValue(rowData.key), dataIndex)
494
+ // const C: any = componentMap[inputType] ?? (() => null)
495
+ var DisplayFC = (_componentMap$inputTy = componentMap[inputType]) === null || _componentMap$inputTy === void 0 ? void 0 : _componentMap$inputTy.DisplayFC;
496
+ // const v = getItem(dataSource,pagination,rowIndex)
497
+ var _displayNode = DisplayFC ? /*#__PURE__*/React.createElement(DisplayFC, _objectSpread({
498
+ record: rowData,
499
+ disabled: rowData.disabled,
500
+ value: __value
501
+ }, inputProps)) : __value;
502
+ if (calc_disabled) return col.render ? col.render(__value, _, rowIndex) : _displayNode;
503
+ var common = _objectSpread(_objectSpread({
504
+ disabled: row_disabled(rowData),
505
+ popupStyle: {
506
+ zIndex: 9999
507
+ },
508
+ dropdownStyle: {
509
+ zIndex: 9999
510
+ },
511
+ style: {
512
+ zIndex: 9999
513
+ }
514
+ }, inputProps), {}, {
515
+ placeholder: '',
516
+ inputType: inputType,
517
+ config: col
518
+ });
519
+ var _node = inputType ? isPop ? /*#__PURE__*/React.createElement(PopconfirmComponent, {
520
+ C: BaseFormComponent,
521
+ CProps: common
522
+ }, _displayNode) : /*#__PURE__*/React.createElement(BaseFormComponent, _objectSpread(_objectSpread({}, common), {}, {
523
+ style: {}
524
+ })) : _displayNode;
525
+ return /*#__PURE__*/React.createElement(Form.Item, {
526
+ name: [rowData.key, dataIndex],
527
+ style: {
528
+ margin: 0
529
+ // display: 'inline-block'
530
+ }
531
+ }, _node);
1023
532
  }
1024
533
  });
1025
534
  }
1026
- if (col.children) {
1027
- return {
1028
- title: col.title,
1029
- children: handleTabColumnsFormat(col.children, 2)
1030
- };
1031
- }
1032
- return {};
1033
535
  });
1034
- return newColums;
536
+ return arr;
1035
537
  }
1036
- var cloneColumns = _cloneDeep(tableColumns);
1037
- if (_size(tableColumns) > 0) cloneColumns = handleTabColumnsFormat(tableColumns);
1038
- // const rowSelection = {
1039
- // selectedRowKeys: state.selectedRowKeys,
1040
- // onChange: handleRowSelectChange,
1041
- // };
1042
- return /*#__PURE__*/React.createElement("div", {
1043
- className: "preg-his-table"
1044
- }, __closeAdd ? '' : /*#__PURE__*/React.createElement("div", {
1045
- style: {
1046
- marginBottom: 8,
1047
- display: 'flex',
1048
- justifyContent: 'space-between',
1049
- alignItems: 'center'
1050
- }
1051
- }, /*#__PURE__*/React.createElement("span", {
1052
- hidden: !g && !p,
538
+ var mergedColumns = getColumns(__tableColumns);
539
+ var mergedDataSource = getDataSource();
540
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isArray(sp) ? /*#__PURE__*/React.createElement("div", {
1053
541
  style: {
1054
- fontSize: 18
1055
- }
1056
- }, /*#__PURE__*/React.createElement("span", {
1057
- style: {
1058
- color: '#999'
1059
- }
1060
- }, "\u5B55\u4EA7\uFF1A"), /*#__PURE__*/React.createElement("span", {
1061
- style: {
1062
- fontWeight: 'bold'
1063
- }
1064
- }, g !== null && g !== void 0 ? g : '--', "/", p !== null && p !== void 0 ? p : '--')), /*#__PURE__*/React.createElement(_Space, null, /*#__PURE__*/React.createElement(_Button, {
1065
- id: "add",
1066
- type: "primary",
1067
- ghost: true,
1068
- onClick: handleAdd,
1069
- icon: /*#__PURE__*/React.createElement(CustomIcon, {
1070
- type: "icon-add"
1071
- })
1072
- }, "\u65B0\u589E"), /*#__PURE__*/React.createElement(_Button, {
1073
- id: "delete",
1074
- danger: true,
1075
- icon: /*#__PURE__*/React.createElement(DeleteOutlined, null),
1076
- onClick: handleDelete
1077
- }, "\u5220\u9664"))), /*#__PURE__*/React.createElement(Table, {
1078
- bordered: true,
542
+ padding: '6px 12px'
543
+ }
544
+ }, /*#__PURE__*/React.createElement("span", null, "\u7B5B\u9009\uFF1A"), /*#__PURE__*/React.createElement(MyCheckbox, {
545
+ type: 'multiple',
546
+ options: sp,
547
+ marshal: 2,
548
+ onChange: setRow_filter_data
549
+ })) : null, /*#__PURE__*/React.createElement(Form, {
550
+ className: "xx_edit_form",
551
+ form: __formInstance,
552
+ component: false,
553
+ onValuesChange: handleFieldsChange
554
+ }, /*#__PURE__*/React.createElement(BaseTable, _objectSpread(_objectSpread({
555
+ size: 'small'
556
+ }, innerProps), {}, {
557
+ columns: mergedColumns,
558
+ dataSource: mergedDataSource,
1079
559
  scroll: {
1080
- x: 1200
1081
- }
1082
- // rowSelection={rowSelection}
1083
- ,
1084
-
1085
- onRow: function onRow(record, index) {
1086
- return {
1087
- onClick: function onClick() {
1088
- return handleRowClick(record, index);
1089
- }
1090
- };
560
+ y: 380
1091
561
  },
1092
- rowClassName: function rowClassName(row) {
1093
- return _rowClassName(row);
562
+ rowSelection: undefined,
563
+ selectedRowKeys: selectedRowKeys,
564
+ onAdd: function onAdd() {
565
+ return addOneOrMany();
1094
566
  },
1095
- columns: cloneColumns || [],
1096
- dataSource: dataSource || [],
1097
- childrenColumnName: "noChildren",
1098
- rowKey: function rowKey(record) {
1099
- return record._key;
567
+ rowKey: "key",
568
+ components: {
569
+ body: {
570
+ // cell: renderEditableCell,
571
+ }
1100
572
  },
1101
- pagination: false
1102
- }));
573
+ pagination: type == 'inner' ? false : pagination,
574
+ OtherActionsNode: /*#__PURE__*/React.createElement(Space, null, isShowCalcInputOutput ? /*#__PURE__*/React.createElement(FFF, {
575
+ disabled: disabledAll,
576
+ config: {
577
+ processDataAsync: function () {
578
+ var _processDataAsync = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(rowData, listData) {
579
+ var k1, k2, startIdx, endidx, res;
580
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
581
+ while (1) switch (_context3.prev = _context3.next) {
582
+ case 0:
583
+ k1 = rowData.k1, k2 = rowData.k2;
584
+ if (!(k1 && k2)) {
585
+ _context3.next = 10;
586
+ break;
587
+ }
588
+ startIdx = listData.findIndex(function (d) {
589
+ return d.key === k1;
590
+ });
591
+ endidx = listData.findIndex(function (d) {
592
+ return d.key === k2;
593
+ });
594
+ _context3.next = 6;
595
+ return SMchc_Admission.calculateTotalInputAndOutput(listData.slice(startIdx, endidx + 1));
596
+ case 6:
597
+ res = _context3.sent;
598
+ return _context3.abrupt("return", res);
599
+ case 10:
600
+ message.warning('请先选定一条记录以计算出入量!');
601
+ return _context3.abrupt("return", null);
602
+ case 12:
603
+ case "end":
604
+ return _context3.stop();
605
+ }
606
+ }, _callee3);
607
+ }));
608
+ function processDataAsync(_x4, _x5) {
609
+ return _processDataAsync.apply(this, arguments);
610
+ }
611
+ return processDataAsync;
612
+ }(),
613
+ btnProps: {
614
+ children: '出入量计算'
615
+ },
616
+ fds: [{
617
+ inputType: 'MS',
618
+ name: 'k1',
619
+ label: '开始时间',
620
+ inputProps: {
621
+ options: 出入量_options,
622
+ marshal: 0
623
+ }
624
+ }, {
625
+ inputType: 'MS',
626
+ name: 'k2',
627
+ label: '结束时间',
628
+ inputProps: {
629
+ options: 出入量_options,
630
+ marshal: 0
631
+ }
632
+ }]
633
+ },
634
+ arr: dataSource,
635
+ onSelect: addOneOrMany
636
+ }) : '.', fd_append_row.map(function (config) {
637
+ return /*#__PURE__*/React.createElement(FFF, {
638
+ disabled: disabledAll,
639
+ config: config,
640
+ arr: dataSource,
641
+ onSelect: addOneOrMany
642
+ });
643
+ }))
644
+ }))));
645
+ }
646
+ function DefaultRenderOtherActions(props) {
647
+ var isEditing = props.isEditing,
648
+ disabled = props.disabled,
649
+ handleCancel = props.handleCancel,
650
+ handleDelete = props.handleDelete,
651
+ handleEdit = props.handleEdit,
652
+ handleSave = props.handleSave,
653
+ selectedRowKeys = props.selectedRowKeys;
654
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isEditing ? (/*#__PURE__*/React.createElement(Button, {
655
+ type: "primary",
656
+ style: {
657
+ margin: '0 16px'
658
+ },
659
+ onClick: handleSave
660
+ }, "\u786E\u5B9A")) : (/*#__PURE__*/React.createElement(Button, {
661
+ disabled: disabled,
662
+ style: {
663
+ margin: '0 16px'
664
+ },
665
+ onClick: handleEdit
666
+ }, "\u7F16\u8F91")), isEditing ? (/*#__PURE__*/React.createElement(Button, {
667
+ onClick: handleCancel
668
+ }, "\u53D6\u6D88")) : (/*#__PURE__*/React.createElement(Button, {
669
+ type: "primary",
670
+ danger: true,
671
+ onClick: handleDelete,
672
+ disabled: disabled || isNil(selectedRowKeys) || isEmpty(selectedRowKeys)
673
+ }, "\u5220\u9664")));
674
+ }
675
+ function genRandomKey() {
676
+ return uuid().split('-').join('');
677
+ }
678
+ function getItem(data, p, idx) {
679
+ var _p$current, _p$pageSize;
680
+ var current = (_p$current = p.current) !== null && _p$current !== void 0 ? _p$current : 1;
681
+ var pageSize = (_p$pageSize = p.pageSize) !== null && _p$pageSize !== void 0 ? _p$pageSize : 1;
682
+ var curIdx = (current - 1) * pageSize;
683
+ var sliceData = data.slice(curIdx, curIdx + pageSize);
684
+ return sliceData[idx];
1103
685
  }
1104
- // export default MyForm_Business_PregnancyHistory
1105
-
1106
- export { MyForm_Business_PregnancyHistory as default };
1107
- //# sourceMappingURL=.root4.js.map
686
+ export { GeneralComponents_EditInTable_Inner as default };