@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.
- package/README.md +0 -0
- package/dist/BaseEditPanel/BaseEditPanelFormFC.d.ts +3 -0
- package/dist/BaseEditPanel/PanelWithChildFC.d.ts +10 -15
- package/dist/BaseList/index.d.ts +2 -2
- package/dist/BaseList/methods/index.d.ts +1 -4
- package/dist/BaseListOld/methods/index.d.ts +1 -5
- package/dist/BaseModalForm/DynamicForm.d.ts +0 -24
- package/dist/BaseModalForm/PatientList/index.d.ts +2 -2
- package/dist/BaseModalForm/index.d.ts +2 -2
- package/dist/BusinessComponents/BloodPressure/index.d.ts +2 -1
- package/dist/BusinessComponents/DiagnosisListInduced/index.d.ts +2 -1
- package/dist/BusinessComponents/DiagnosisListv2/template/index.d.ts +1 -2
- package/dist/BusinessComponents/HighriskGrade/index.d.ts +1 -1
- package/dist/BusinessComponents/HighriskSign/index.d.ts +1 -1
- package/dist/BusinessComponents/InspectionResultTextarea/utils.d.ts +0 -8
- package/dist/BusinessComponents/LaborProcess/index.d.ts +3 -3
- package/dist/BusinessComponents/NurseChildren/index.d.ts +5 -5
- package/dist/BusinessComponents/NurseChildren2/index.d.ts +1 -2
- package/dist/BusinessComponents/NursingFetusv2/index.d.ts +1 -2
- package/dist/BusinessComponents/NursingFetusv3/index.d.ts +3 -3
- package/dist/BusinessComponents/PregnancyHistory/config/index-table.d.ts +1 -1
- package/dist/BusinessComponents/ResultTextarea/index copy.d.ts +13 -0
- package/dist/BusinessComponents/ResultTextarea/index.d.ts +1 -1
- package/dist/BusinessComponents/ResultTextarea/utils.d.ts +0 -8
- package/dist/BusinessComponents/TemplateTexDeathclassification1/index.d.ts +2 -1
- package/dist/BusinessComponents/TemplateTextareav2/components/TemplateSelect.d.ts +2 -1
- package/dist/BusinessComponents/TreatmentProgram/TreatmentProgramTable/index.d.ts +3 -4
- package/dist/BusinessComponents/UltrosoundResultTextarea/utils.d.ts +0 -8
- package/dist/ConfigComponents/CheckboxWithInput/index.d.ts +2 -1
- package/dist/ConfigComponents/InputWithRange/index.d.ts +2 -1
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/default.d.ts +3 -3
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/gysy.d.ts +11 -11
- package/dist/ConfigComponents/NeonatalCareRecordTable/table/indx.d.ts +14 -14
- package/dist/ConfigComponents/NeonatalScaleExamination/table.d.ts +4 -4
- package/dist/ConfigComponents/NormalNursingTable/table.d.ts +1 -1
- package/dist/ConfigComponents/ObserMagnesiumsulphateTable/table.d.ts +3 -3
- package/dist/ConfigComponents/PastDeliveryNursingTable/table.d.ts +6 -6
- package/dist/ConfigComponents/PreDeliverNursingTable/table/default.d.ts +4 -4
- package/dist/ConfigComponents/SpecialNursingTable/table.d.ts +2 -2
- package/dist/FU_components/ArrayInput/index copy.d.ts +4 -0
- package/dist/FU_components/ArrayInput/index.d.ts +1 -4
- package/dist/FU_components/ArrayInput/types.d.ts +8 -9
- package/dist/FU_components/ArrayPanel/Display.d.ts +0 -1
- package/dist/FU_components/ArrayPanel/Inner.d.ts +5 -3
- package/dist/FU_components/CommonFormTabs/index.d.ts +1 -1
- package/dist/FU_components/CommonFormTabs/types.d.ts +4 -2
- package/dist/FU_components/CommonFormTabs/utils.d.ts +4 -0
- package/dist/FU_components/DateRange/index copy.d.ts +7 -0
- package/dist/FU_components/DateRange/index.d.ts +1 -7
- package/dist/FU_components/DateTimeInput/Inner.d.ts +2 -0
- package/dist/FU_components/DateTimeInput/index.d.ts +3 -1
- package/dist/FU_components/FormSection/FormSectionForm.d.ts +4 -0
- package/dist/FU_components/FormSection/RenderFormSectionComponent.d.ts +3 -3
- package/dist/FU_components/FormSection/form_control.d.ts +9 -0
- package/dist/FU_components/FormSection/helper.d.ts +7 -7
- package/dist/FU_components/FormSection/types.d.ts +4 -1
- package/dist/FU_components/FormSection/use_chrono.d.ts +17 -2
- package/dist/FU_components/HbvdnaInput/index.d.ts +2 -1
- package/dist/FU_components/HighriskGradeColorSpan/index.d.ts +1 -1
- package/dist/FU_components/IdNOButton/index copy.d.ts +1 -1
- package/dist/FU_components/MchcDriverStatus/Inner.d.ts +1 -1
- package/dist/FU_components/MyAutoComplete/index copy.d.ts +4 -0
- package/dist/FU_components/MyAutoComplete/index.d.ts +1 -4
- package/dist/FU_components/MyAutoComplete/types.d.ts +1 -1
- package/dist/FU_components/MyBaseList/methods/index.d.ts +1 -1
- package/dist/FU_components/MyBaseTable/strategies.d.ts +0 -5
- package/dist/FU_components/MyButton/{index.d.ts → index copy.d.ts } +1 -1
- package/dist/FU_components/MyEditTable/Inner.d.ts +4 -0
- package/dist/FU_components/MyEditTable/index.d.ts +2 -19
- package/dist/FU_components/MyEditTable/types.d.ts +16 -0
- package/dist/FU_components/MyReferralOrganizationSelect/index.d.ts +1 -1
- package/dist/FU_components/MySearchSelect/index.d.ts +2 -1
- package/dist/FU_components/MySelect/index.d.ts +1 -8
- package/dist/FU_components/MySelect/types.d.ts +3 -5
- package/dist/FU_components/OkButton/index.d.ts +2 -7
- package/dist/FU_components/PressureInput/index.d.ts +4 -0
- package/dist/FU_components/ResultTextarea/index.d.ts +19 -0
- package/dist/FU_components/index.d.ts +1 -3
- package/dist/FU_components/types.d.ts +1 -12
- package/dist/GeneralComponents/CaseTemplete/Inner.d.ts +4 -1
- package/dist/GeneralComponents/CheckboxGroupObject/index.d.ts +1 -1
- package/dist/GeneralComponents/CheckboxWithInput_gold/components.d.ts +200 -45
- package/dist/GeneralComponents/CheckboxWithInput_gold/index.d.ts +1 -5
- package/dist/GeneralComponents/CheckboxWithInput_gold/types.d.ts +1 -1
- package/dist/GeneralComponents/CheckboxWithInput_gold/utils.d.ts +0 -4
- package/dist/GeneralComponents/CustomIcon/index.d.ts +0 -1
- package/dist/GeneralComponents/DatePicker/Inner.d.ts +1 -1
- package/dist/GeneralComponents/DatePicker/index.d.ts +2 -2
- package/dist/GeneralComponents/DatePicker/utils.d.ts +35 -0
- package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy.d.ts +3 -24
- package/dist/GeneralComponents/EditInTable/components.d.ts +1 -1
- package/dist/GeneralComponents/EditInTable/index.d.ts +2 -2
- package/dist/GeneralComponents/EditInTable/utils.d.ts +6 -1
- package/dist/GeneralComponents/ImageUploadPreview/Inner.d.ts +2 -1
- package/dist/GeneralComponents/ImageUploadPreview/index.d.ts +2 -1
- package/dist/GeneralComponents/InputNumber/index.d.ts +4 -4
- package/dist/GeneralComponents/MobileEditor/Inner.d.ts +6 -9
- package/dist/GeneralComponents/MobileEditor/index.d.ts +3 -2
- package/dist/GeneralComponents/UploadFile/index.d.ts +9 -1
- package/dist/GeneralComponents/UploadFileUrlEdit/index.d.ts +2 -1
- package/dist/MyForm/components/Base/CheckboxWithExtra.d.ts +3 -2
- package/dist/MyForm/components/MyButton/index.d.ts +1 -1
- package/dist/MyForm/components/MySelect/DefaultSelect.d.ts +3 -2
- package/dist/MyForm/components/MyTable/index.d.ts +1 -1
- package/dist/MyForm/components/MyTable/index2.d.ts +1 -1
- package/dist/MyForm/components/_MyFormComponent.d.ts +252 -0
- package/dist/MyForm/components/business/NormalButton/index.d.ts +1 -1
- package/dist/MyForm/components/business/PdProcedure/config/table.d.ts +1 -1
- package/dist/MyForm/components/business/PregnancyHistory/MyForm_Business_PregnancyHistory.d.ts +1 -1
- package/dist/MyForm/components/business/PregnancyHistory/config.d.ts +37 -9
- package/dist/MyForm/components/business/TextareaWithBtn/index.d.ts +4 -7
- package/dist/MyForm/form_new.d.ts +20 -1
- package/dist/a_chunks/.root.js +73 -130
- package/dist/a_chunks/.root10.js +124 -319
- package/dist/a_chunks/.root100.js +22 -393
- package/dist/a_chunks/.root101.js +83 -987
- package/dist/a_chunks/.root102.js +13 -278
- package/dist/a_chunks/.root103.js +83 -128
- package/dist/a_chunks/.root104.js +64 -277
- package/dist/a_chunks/.root105.js +133 -492
- package/dist/a_chunks/.root106.js +45 -106
- package/dist/a_chunks/.root107.js +43 -210
- package/dist/a_chunks/.root108.js +71 -174
- package/dist/a_chunks/.root109.js +38 -910
- package/dist/a_chunks/.root11.js +55 -89
- package/dist/a_chunks/.root110.js +46 -939
- package/dist/a_chunks/.root111.js +188 -169
- package/dist/a_chunks/.root112.js +16 -414
- package/dist/a_chunks/.root113.js +23 -257
- package/dist/a_chunks/.root114.js +1994 -163
- package/dist/a_chunks/.root115.js +33 -343
- package/dist/a_chunks/.root116.js +67 -150
- package/dist/a_chunks/.root117.js +35 -124
- package/dist/a_chunks/.root118.js +49 -523
- package/dist/a_chunks/.root119.js +58 -580
- package/dist/a_chunks/.root12.js +133 -117
- package/dist/a_chunks/.root120.js +62 -277
- package/dist/a_chunks/.root121.js +75 -512
- package/dist/a_chunks/.root122.js +75 -633
- package/dist/a_chunks/.root123.js +29 -669
- package/dist/a_chunks/.root124.js +57 -273
- package/dist/a_chunks/.root125.js +107 -200
- package/dist/a_chunks/.root126.js +179 -81
- package/dist/a_chunks/.root127.js +85 -792
- package/dist/a_chunks/.root128.js +108 -260
- package/dist/a_chunks/.root129.js +172 -1085
- package/dist/a_chunks/.root13.js +284 -119
- package/dist/a_chunks/.root130.js +200 -532
- package/dist/a_chunks/.root131.js +2 -242
- package/dist/a_chunks/.root132.js +185 -131
- package/dist/a_chunks/.root133.js +324 -180
- package/dist/a_chunks/.root134.js +13 -409
- package/dist/a_chunks/.root135.js +160 -1135
- package/dist/a_chunks/.root14.js +251 -316
- package/dist/a_chunks/.root15.js +58 -266
- package/dist/a_chunks/.root16.js +74 -240
- package/dist/a_chunks/.root17.js +38 -127
- package/dist/a_chunks/.root18.js +87 -148
- package/dist/a_chunks/.root19.js +182 -109
- package/dist/a_chunks/.root2.js +97 -163
- package/dist/a_chunks/.root20.js +237 -157
- package/dist/a_chunks/.root21.js +19 -258
- package/dist/a_chunks/.root22.js +20 -320
- package/dist/a_chunks/.root23.js +197 -20
- package/dist/a_chunks/.root24.js +190 -89
- package/dist/a_chunks/.root25.js +73 -196
- package/dist/a_chunks/.root26.js +102 -257
- package/dist/a_chunks/.root27.js +69 -142
- package/dist/a_chunks/.root28.js +79 -375
- package/dist/a_chunks/.root29.js +34 -542
- package/dist/a_chunks/.root3.js +103 -170
- package/dist/a_chunks/.root30.js +19 -2226
- package/dist/a_chunks/.root31.js +50 -279
- package/dist/a_chunks/.root32.js +49 -81
- package/dist/a_chunks/.root33.js +49 -84
- package/dist/a_chunks/.root34.js +200 -223
- package/dist/a_chunks/.root35.js +112 -279
- package/dist/a_chunks/.root36.js +136 -158
- package/dist/a_chunks/.root37.js +19 -146
- package/dist/a_chunks/.root38.js +101 -78
- package/dist/a_chunks/.root39.js +581 -34
- package/dist/a_chunks/.root4.js +635 -1056
- package/dist/a_chunks/.root40.js +25 -268
- package/dist/a_chunks/.root41.js +312 -18
- package/dist/a_chunks/.root42.js +138 -192
- package/dist/a_chunks/.root43.js +62 -128
- package/dist/a_chunks/.root44.js +264 -36
- package/dist/a_chunks/.root45.js +257 -20
- package/dist/a_chunks/.root46.js +2274 -47
- package/dist/a_chunks/.root47.js +490 -227
- package/dist/a_chunks/.root48.js +190 -160
- package/dist/a_chunks/.root49.js +168 -74
- package/dist/a_chunks/.root5.js +98 -349
- package/dist/a_chunks/.root50.js +146 -190
- package/dist/a_chunks/.root51.js +379 -305
- package/dist/a_chunks/.root52.js +237 -101
- package/dist/a_chunks/.root53.js +29 -296
- package/dist/a_chunks/.root54.js +69 -23
- package/dist/a_chunks/.root55.js +71 -660
- package/dist/a_chunks/.root56.js +356 -3320
- package/dist/a_chunks/.root57.js +206 -544
- package/dist/a_chunks/.root58.js +275 -185
- package/dist/a_chunks/.root59.js +150 -147
- package/dist/a_chunks/.root6.js +1003 -188
- package/dist/a_chunks/.root60.js +132 -882
- package/dist/a_chunks/.root61.js +288 -98
- package/dist/a_chunks/.root62.js +293 -213
- package/dist/a_chunks/.root63.js +299 -294
- package/dist/a_chunks/.root64.js +295 -450
- package/dist/a_chunks/.root65.js +924 -458
- package/dist/a_chunks/.root66.js +58 -1053
- package/dist/a_chunks/.root67.js +813 -255
- package/dist/a_chunks/.root68.js +892 -192
- package/dist/a_chunks/.root69.js +80 -1070
- package/dist/a_chunks/.root7.js +269 -725
- package/dist/a_chunks/.root70.js +333 -830
- package/dist/a_chunks/.root71.js +155 -376
- package/dist/a_chunks/.root72.js +245 -204
- package/dist/a_chunks/.root73.js +76 -148
- package/dist/a_chunks/.root74.js +54 -344
- package/dist/a_chunks/.root75.js +610 -530
- package/dist/a_chunks/.root76.js +34 -533
- package/dist/a_chunks/.root77.js +140 -328
- package/dist/a_chunks/.root78.js +472 -286
- package/dist/a_chunks/.root79.js +199 -2292
- package/dist/a_chunks/.root8.js +128 -163
- package/dist/a_chunks/.root80.js +476 -168
- package/dist/a_chunks/.root81.js +530 -535
- package/dist/a_chunks/.root82.js +565 -248
- package/dist/a_chunks/.root83.js +126 -242
- package/dist/a_chunks/.root84.js +14 -241
- package/dist/a_chunks/.root85.js +678 -430
- package/dist/a_chunks/.root86.js +161 -317
- package/dist/a_chunks/.root87.js +455 -88
- package/dist/a_chunks/.root88.js +175 -98
- package/dist/a_chunks/.root89.js +63 -237
- package/dist/a_chunks/.root9.js +93 -675
- package/dist/a_chunks/.root90.js +108 -348
- package/dist/a_chunks/.root91.js +331 -124
- package/dist/a_chunks/.root92.js +438 -139
- package/dist/a_chunks/.root93.js +102 -434
- package/dist/a_chunks/.root94.js +821 -346
- package/dist/a_chunks/.root95.js +39 -214
- package/dist/a_chunks/.root96.js +57 -349
- package/dist/a_chunks/.root97.js +274 -510
- package/dist/a_chunks/.root98.js +22 -366
- package/dist/a_chunks/.root99.js +57 -375
- package/dist/a_chunks/Inner.js +149 -262
- package/dist/a_chunks/TableEditableCell.js +12 -10
- package/dist/a_chunks/TemplateModal.js +111 -132
- package/dist/a_chunks/deathclassification.js +17 -33
- package/dist/a_chunks/index.js +2930 -5417
- package/dist/a_chunks/index2.js +2 -4
- package/dist/doctor-end/index.d.ts +0 -2
- package/dist/index.d.ts +3 -8
- package/dist/index.js +8 -77
- package/dist/layout/header.d.ts +0 -1
- package/dist/modals/index.d.ts +1 -16
- package/dist/modals/meta.d.ts +1 -16
- package/dist/newly-component/hepatitis-new-baby/components/Form.d.ts +2 -1
- package/dist/newly-component/hepatitis-new-baby/index.d.ts +2 -1
- package/dist/selects/NormalSelect/index.d.ts +1 -1
- package/dist/selects/SelectWithNo/index copy.d.ts +2 -0
- package/dist/selects/SelectWithNo/index.d.ts +2 -2
- package/dist/utils/InterceptComponent.d.ts +1 -0
- package/dist/utils/dictionary.d.ts +2 -13
- package/dist/utils/format.d.ts +4 -4
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/useMarshal.d.ts +3 -3
- package/dist/utils/utils.d.ts +0 -4
- package/package.json +32 -19
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/BaseTable.d.ts +0 -5
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/EditInTableNoForm.d.ts +0 -51
- package/dist/ConfigComponents/OxytocinNursingTable/EditInTable/index.d.ts +0 -49
- package/dist/ConfigComponents/OxytocinNursingTable/index.d.ts +0 -2
- package/dist/ConfigComponents/OxytocinNursingTable/table/default.d.ts +0 -255
- package/dist/ConfigComponents/OxytocinNursingTable/table/gysy.d.ts +0 -234
- package/dist/ConfigComponents/OxytocinNursingTable/table/index.d.ts +0 -3
- package/dist/ConfigComponents/RevertEditInTable/index.d.ts +0 -1
- package/dist/FU_components/FormSection/utils.d.ts +0 -81
- package/dist/FU_components/SimpleForm/components/TabForm/index.d.ts +0 -14
- package/dist/FU_components/SimpleForm/components/extra/Custom.d.ts +0 -5
- package/dist/FU_components/SimpleForm/components/extra/SimpleSelect.d.ts +0 -6
- package/dist/FU_components/SimpleForm/index.d.ts +0 -45
- package/dist/FU_components/SimpleForm/types/help.d.ts +0 -3
- package/dist/FU_components/SimpleForm/types/lmTypes.d.ts +0 -85
- package/dist/FU_components/SimpleForm/types/metaTypes.d.ts +0 -28
- package/dist/GeneralComponents/CustomFormField/index.d.ts +0 -12
- package/dist/GeneralComponents/EditInTable/EditInTable_Inner copy 2.d.ts +0 -24
- package/dist/GeneralComponents/IconSelect/index.d.ts +0 -5
- package/dist/GeneralComponents/SelectTable/index.d.ts +0 -44
- package/dist/GeneralComponents/SoDiaoEditor/config.d.ts +0 -44
- package/dist/GeneralComponents/SoDiaoEditor/index.d.ts +0 -11
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root100.js.map +0 -1
- package/dist/a_chunks/.root101.js.map +0 -1
- package/dist/a_chunks/.root102.js.map +0 -1
- package/dist/a_chunks/.root103.js.map +0 -1
- package/dist/a_chunks/.root104.js.map +0 -1
- package/dist/a_chunks/.root105.js.map +0 -1
- package/dist/a_chunks/.root106.js.map +0 -1
- package/dist/a_chunks/.root107.js.map +0 -1
- package/dist/a_chunks/.root108.js.map +0 -1
- package/dist/a_chunks/.root109.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root110.js.map +0 -1
- package/dist/a_chunks/.root111.js.map +0 -1
- package/dist/a_chunks/.root112.js.map +0 -1
- package/dist/a_chunks/.root113.js.map +0 -1
- package/dist/a_chunks/.root114.js.map +0 -1
- package/dist/a_chunks/.root115.js.map +0 -1
- package/dist/a_chunks/.root116.js.map +0 -1
- package/dist/a_chunks/.root117.js.map +0 -1
- package/dist/a_chunks/.root118.js.map +0 -1
- package/dist/a_chunks/.root119.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root120.js.map +0 -1
- package/dist/a_chunks/.root121.js.map +0 -1
- package/dist/a_chunks/.root122.js.map +0 -1
- package/dist/a_chunks/.root123.js.map +0 -1
- package/dist/a_chunks/.root124.js.map +0 -1
- package/dist/a_chunks/.root125.js.map +0 -1
- package/dist/a_chunks/.root126.js.map +0 -1
- package/dist/a_chunks/.root127.js.map +0 -1
- package/dist/a_chunks/.root128.js.map +0 -1
- package/dist/a_chunks/.root129.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root130.js.map +0 -1
- package/dist/a_chunks/.root131.js.map +0 -1
- package/dist/a_chunks/.root132.js.map +0 -1
- package/dist/a_chunks/.root133.js.map +0 -1
- package/dist/a_chunks/.root134.js.map +0 -1
- package/dist/a_chunks/.root135.js.map +0 -1
- package/dist/a_chunks/.root136.js +0 -507
- package/dist/a_chunks/.root136.js.map +0 -1
- package/dist/a_chunks/.root137.js +0 -570
- package/dist/a_chunks/.root137.js.map +0 -1
- package/dist/a_chunks/.root138.js +0 -197
- package/dist/a_chunks/.root138.js.map +0 -1
- package/dist/a_chunks/.root139.js +0 -903
- package/dist/a_chunks/.root139.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root140.js +0 -267
- package/dist/a_chunks/.root140.js.map +0 -1
- package/dist/a_chunks/.root141.js +0 -179
- package/dist/a_chunks/.root141.js.map +0 -1
- package/dist/a_chunks/.root142.js +0 -114
- package/dist/a_chunks/.root142.js.map +0 -1
- package/dist/a_chunks/.root143.js +0 -133
- package/dist/a_chunks/.root143.js.map +0 -1
- package/dist/a_chunks/.root144.js +0 -351
- package/dist/a_chunks/.root144.js.map +0 -1
- package/dist/a_chunks/.root145.js +0 -99
- package/dist/a_chunks/.root145.js.map +0 -1
- package/dist/a_chunks/.root146.js +0 -136
- package/dist/a_chunks/.root146.js.map +0 -1
- package/dist/a_chunks/.root147.js +0 -445
- package/dist/a_chunks/.root147.js.map +0 -1
- package/dist/a_chunks/.root148.js +0 -618
- package/dist/a_chunks/.root148.js.map +0 -1
- package/dist/a_chunks/.root149.js +0 -329
- package/dist/a_chunks/.root149.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root150.js +0 -381
- package/dist/a_chunks/.root150.js.map +0 -1
- package/dist/a_chunks/.root151.js +0 -299
- package/dist/a_chunks/.root151.js.map +0 -1
- package/dist/a_chunks/.root152.js +0 -105
- package/dist/a_chunks/.root152.js.map +0 -1
- package/dist/a_chunks/.root153.js +0 -117
- package/dist/a_chunks/.root153.js.map +0 -1
- package/dist/a_chunks/.root154.js +0 -101
- package/dist/a_chunks/.root154.js.map +0 -1
- package/dist/a_chunks/.root155.js +0 -279
- package/dist/a_chunks/.root155.js.map +0 -1
- package/dist/a_chunks/.root156.js +0 -91
- package/dist/a_chunks/.root156.js.map +0 -1
- package/dist/a_chunks/.root157.js +0 -154
- package/dist/a_chunks/.root157.js.map +0 -1
- package/dist/a_chunks/.root158.js +0 -213
- package/dist/a_chunks/.root158.js.map +0 -1
- package/dist/a_chunks/.root159.js +0 -122
- package/dist/a_chunks/.root159.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root160.js +0 -123
- package/dist/a_chunks/.root160.js.map +0 -1
- package/dist/a_chunks/.root161.js +0 -45
- package/dist/a_chunks/.root161.js.map +0 -1
- package/dist/a_chunks/.root162.js +0 -46
- package/dist/a_chunks/.root162.js.map +0 -1
- package/dist/a_chunks/.root163.js +0 -77
- package/dist/a_chunks/.root163.js.map +0 -1
- package/dist/a_chunks/.root164.js +0 -206
- package/dist/a_chunks/.root164.js.map +0 -1
- package/dist/a_chunks/.root165.js +0 -108
- package/dist/a_chunks/.root165.js.map +0 -1
- package/dist/a_chunks/.root166.js +0 -108
- package/dist/a_chunks/.root166.js.map +0 -1
- package/dist/a_chunks/.root167.js +0 -2074
- package/dist/a_chunks/.root167.js.map +0 -1
- package/dist/a_chunks/.root168.js +0 -112
- package/dist/a_chunks/.root168.js.map +0 -1
- package/dist/a_chunks/.root169.js +0 -147
- package/dist/a_chunks/.root169.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root170.js +0 -114
- package/dist/a_chunks/.root170.js.map +0 -1
- package/dist/a_chunks/.root171.js +0 -59
- package/dist/a_chunks/.root171.js.map +0 -1
- package/dist/a_chunks/.root172.js +0 -69
- package/dist/a_chunks/.root172.js.map +0 -1
- package/dist/a_chunks/.root173.js +0 -146
- package/dist/a_chunks/.root173.js.map +0 -1
- package/dist/a_chunks/.root174.js +0 -112
- package/dist/a_chunks/.root174.js.map +0 -1
- package/dist/a_chunks/.root175.js +0 -113
- package/dist/a_chunks/.root175.js.map +0 -1
- package/dist/a_chunks/.root176.js +0 -109
- package/dist/a_chunks/.root176.js.map +0 -1
- package/dist/a_chunks/.root177.js +0 -129
- package/dist/a_chunks/.root177.js.map +0 -1
- package/dist/a_chunks/.root178.js +0 -182
- package/dist/a_chunks/.root178.js.map +0 -1
- package/dist/a_chunks/.root179.js +0 -253
- package/dist/a_chunks/.root179.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root180.js +0 -458
- package/dist/a_chunks/.root180.js.map +0 -1
- package/dist/a_chunks/.root181.js +0 -1511
- package/dist/a_chunks/.root181.js.map +0 -1
- package/dist/a_chunks/.root182.js +0 -91
- package/dist/a_chunks/.root182.js.map +0 -1
- package/dist/a_chunks/.root183.js +0 -115
- package/dist/a_chunks/.root183.js.map +0 -1
- package/dist/a_chunks/.root184.js +0 -1202
- package/dist/a_chunks/.root184.js.map +0 -1
- package/dist/a_chunks/.root185.js +0 -83
- package/dist/a_chunks/.root185.js.map +0 -1
- package/dist/a_chunks/.root186.js +0 -267
- package/dist/a_chunks/.root186.js.map +0 -1
- package/dist/a_chunks/.root187.js +0 -18
- package/dist/a_chunks/.root187.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root26.js.map +0 -1
- package/dist/a_chunks/.root27.js.map +0 -1
- package/dist/a_chunks/.root28.js.map +0 -1
- package/dist/a_chunks/.root29.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root30.js.map +0 -1
- package/dist/a_chunks/.root31.js.map +0 -1
- package/dist/a_chunks/.root32.js.map +0 -1
- package/dist/a_chunks/.root33.js.map +0 -1
- package/dist/a_chunks/.root34.js.map +0 -1
- package/dist/a_chunks/.root35.js.map +0 -1
- package/dist/a_chunks/.root36.js.map +0 -1
- package/dist/a_chunks/.root37.js.map +0 -1
- package/dist/a_chunks/.root38.js.map +0 -1
- package/dist/a_chunks/.root39.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root40.js.map +0 -1
- package/dist/a_chunks/.root41.js.map +0 -1
- package/dist/a_chunks/.root42.js.map +0 -1
- package/dist/a_chunks/.root43.js.map +0 -1
- package/dist/a_chunks/.root44.js.map +0 -1
- package/dist/a_chunks/.root45.js.map +0 -1
- package/dist/a_chunks/.root46.js.map +0 -1
- package/dist/a_chunks/.root47.js.map +0 -1
- package/dist/a_chunks/.root48.js.map +0 -1
- package/dist/a_chunks/.root49.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root50.js.map +0 -1
- package/dist/a_chunks/.root51.js.map +0 -1
- package/dist/a_chunks/.root52.js.map +0 -1
- package/dist/a_chunks/.root53.js.map +0 -1
- package/dist/a_chunks/.root54.js.map +0 -1
- package/dist/a_chunks/.root55.js.map +0 -1
- package/dist/a_chunks/.root56.js.map +0 -1
- package/dist/a_chunks/.root57.js.map +0 -1
- package/dist/a_chunks/.root58.js.map +0 -1
- package/dist/a_chunks/.root59.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root60.js.map +0 -1
- package/dist/a_chunks/.root61.js.map +0 -1
- package/dist/a_chunks/.root62.js.map +0 -1
- package/dist/a_chunks/.root63.js.map +0 -1
- package/dist/a_chunks/.root64.js.map +0 -1
- package/dist/a_chunks/.root65.js.map +0 -1
- package/dist/a_chunks/.root66.js.map +0 -1
- package/dist/a_chunks/.root67.js.map +0 -1
- package/dist/a_chunks/.root68.js.map +0 -1
- package/dist/a_chunks/.root69.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root70.js.map +0 -1
- package/dist/a_chunks/.root71.js.map +0 -1
- package/dist/a_chunks/.root72.js.map +0 -1
- package/dist/a_chunks/.root73.js.map +0 -1
- package/dist/a_chunks/.root74.js.map +0 -1
- package/dist/a_chunks/.root75.js.map +0 -1
- package/dist/a_chunks/.root76.js.map +0 -1
- package/dist/a_chunks/.root77.js.map +0 -1
- package/dist/a_chunks/.root78.js.map +0 -1
- package/dist/a_chunks/.root79.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root80.js.map +0 -1
- package/dist/a_chunks/.root81.js.map +0 -1
- package/dist/a_chunks/.root82.js.map +0 -1
- package/dist/a_chunks/.root83.js.map +0 -1
- package/dist/a_chunks/.root84.js.map +0 -1
- package/dist/a_chunks/.root85.js.map +0 -1
- package/dist/a_chunks/.root86.js.map +0 -1
- package/dist/a_chunks/.root87.js.map +0 -1
- package/dist/a_chunks/.root88.js.map +0 -1
- package/dist/a_chunks/.root89.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/.root90.js.map +0 -1
- package/dist/a_chunks/.root91.js.map +0 -1
- package/dist/a_chunks/.root92.js.map +0 -1
- package/dist/a_chunks/.root93.js.map +0 -1
- package/dist/a_chunks/.root94.js.map +0 -1
- package/dist/a_chunks/.root95.js.map +0 -1
- package/dist/a_chunks/.root96.js.map +0 -1
- package/dist/a_chunks/.root97.js.map +0 -1
- package/dist/a_chunks/.root98.js.map +0 -1
- package/dist/a_chunks/.root99.js.map +0 -1
- package/dist/a_chunks/Inner.js.map +0 -1
- package/dist/a_chunks/TableEditableCell.js.map +0 -1
- package/dist/a_chunks/TemplateModal.js.map +0 -1
- package/dist/a_chunks/_commonjsHelpers.js +0 -22
- package/dist/a_chunks/_commonjsHelpers.js.map +0 -1
- package/dist/a_chunks/common-table-item.js +0 -771
- package/dist/a_chunks/common-table-item.js.map +0 -1
- package/dist/a_chunks/data.js +0 -570
- package/dist/a_chunks/data.js.map +0 -1
- package/dist/a_chunks/deathclassification.js.map +0 -1
- package/dist/a_chunks/func.js +0 -277
- package/dist/a_chunks/func.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/a_chunks/index2.js.map +0 -1
- package/dist/a_chunks/index3.js +0 -479
- package/dist/a_chunks/index3.js.map +0 -1
- package/dist/a_chunks/index4.js +0 -119
- package/dist/a_chunks/index4.js.map +0 -1
- package/dist/a_chunks/requestMethods.js +0 -56
- package/dist/a_chunks/requestMethods.js.map +0 -1
- package/dist/curve/components/BmiCanvas/index.d.ts +0 -29
- package/dist/curve/components/FetusCanvas/config.d.ts +0 -3
- package/dist/curve/components/FetusCanvas/index.d.ts +0 -26
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +0 -9
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +0 -3
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +0 -84
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +0 -28
- package/dist/curve/components/Pregnogram/index.d.ts +0 -19
- package/dist/curve/components/api.d.ts +0 -23
- package/dist/curve/components-new/BmiCanvas/index.d.ts +0 -22
- package/dist/curve/components-new/FetusCanvas/config.d.ts +0 -3
- package/dist/curve/components-new/FetusCanvas/index.d.ts +0 -19
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +0 -9
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +0 -3
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +0 -84
- package/dist/curve/components-new/FetusCanvasNICHD/index.d.ts +0 -21
- package/dist/curve/components-new/Pregnogram/index.d.ts +0 -13
- package/dist/curve/data.d.ts +0 -120
- package/dist/curve/func.d.ts +0 -9
- package/dist/curve/index.d.ts +0 -5
- package/dist/curve/intro-steps.d.ts +0 -7
- package/dist/doctor-end/DiagReminder_copy/index.d.ts +0 -3
- package/dist/doctor-end/ScarredUterus/index.d.ts +0 -15
- package/dist/doctor-end/SyphilisManagement/index.d.ts +0 -15
- package/dist/doctor-end/Thrombus/index.d.ts +0 -22
- package/dist/doctor-end/high-risk-warn/add-diagnoses/add-diagnoses.d.ts +0 -11
- package/dist/doctor-end/high-risk-warn/high-risk-warn.d.ts +0 -15
- package/dist/doctor-end/high-risk-warn/util.d.ts +0 -12
- package/dist/doctor-end/message-multiterm-modal/message-multiterm-modal.d.ts +0 -11
- package/dist/index.js.map +0 -1
- package/dist/layout/components/MenuSearch/Inner.d.ts +0 -7
- package/dist/layout/components/MenuSearch/index.d.ts +0 -1
- package/dist/layout/index.d.ts +0 -1
- package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +0 -2
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +0 -22
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
- package/dist/modals/entries/modal_form/index.d.ts +0 -27
- package/dist/modals/entries/print_modal/index.d.ts +0 -3
- package/dist/modals/entries/template_modal3/EditModal.d.ts +0 -1
- package/dist/modals/entries/template_modal3/common.d.ts +0 -4
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +0 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +0 -19
- package/dist/modals/entries/template_modal3/index copy.d.ts +0 -22
- package/dist/modals/entries/template_modal3/index.d.ts +0 -18
- package/dist/modals/entries/template_modal3/methods/index.d.ts +0 -15
- package/dist/modals/entries/template_modal3/types.d.ts +0 -28
- package/dist/modals/entries/test/index.d.ts +0 -6
- package/dist/modals/entries/text_search/index.d.ts +0 -8
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +0 -7
- 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
- package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +0 -7
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +0 -8
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/utils/adapter.d.ts +0 -97
- /package/dist/FU_components/MyBaseList/{_MyBaseList.d.ts → _MyBaseList copy.d.ts} +0 -0
package/dist/a_chunks/.root75.js
CHANGED
|
@@ -1,578 +1,658 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
|
|
9
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import '
|
|
15
|
-
import
|
|
16
|
-
import '
|
|
17
|
-
import
|
|
18
|
-
import 'antd/es/col/style';
|
|
19
|
-
import _Col from 'antd/es/col';
|
|
20
|
-
import 'antd/es/form/style';
|
|
21
|
-
import _Form from 'antd/es/form';
|
|
22
|
-
import { i as BaseFormComponent, _ as _extends } from './index.js';
|
|
23
|
-
import _set from 'lodash/set';
|
|
24
|
-
import _map from 'lodash/map';
|
|
25
|
-
import _join from 'lodash/join';
|
|
26
|
-
import _isEqual from 'lodash/isEqual';
|
|
27
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
28
|
-
import _isArray from 'lodash/isArray';
|
|
29
|
-
import _indexOf from 'lodash/indexOf';
|
|
30
|
-
import _get from 'lodash/get';
|
|
31
|
-
import _filter from 'lodash/filter';
|
|
32
|
-
import _cloneDeep from 'lodash/cloneDeep';
|
|
33
|
-
import { TimePicker_L, LazyAntd } from '@lm_fe/components';
|
|
34
|
-
import { formatDate } from '@lm_fe/utils';
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
+
import React, { useState, useEffect } from 'react';
|
|
15
|
+
import { Row, Col, Input, InputNumber, Radio, Form, Divider, Button } from 'antd';
|
|
16
|
+
import { map, get, set, isEmpty, compact, split, indexOf, join, isNil, filter, cloneDeep } from 'lodash';
|
|
17
|
+
import { af as MultipleInputWithLabel, a as styleInject, ag as DynamicForm, a8 as formDescriptionsWithoutSectionApi } from './index.js';
|
|
35
18
|
import dayjs from 'dayjs';
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import '@lm_fe/
|
|
40
|
-
import '
|
|
41
|
-
import '@
|
|
42
|
-
import 'antd/es/space/style';
|
|
43
|
-
import 'antd/es/space';
|
|
44
|
-
import 'antd/es/input/style';
|
|
45
|
-
import 'antd/es/input';
|
|
46
|
-
import 'lodash/compact';
|
|
19
|
+
import { LazyAntd, DatePicker_L, MyIcon } from '@lm_fe/components';
|
|
20
|
+
import InputWithLabel from './.root76.js';
|
|
21
|
+
import NormalCheckboxWithInput from './.root77.js';
|
|
22
|
+
import { safe_json_parse } from '@lm_fe/utils';
|
|
23
|
+
import { SMchc_FormDescriptions } from '@lm_fe/service';
|
|
24
|
+
import '@lm_fe/provoke';
|
|
47
25
|
import 'classnames';
|
|
48
|
-
import '
|
|
49
|
-
import '
|
|
50
|
-
import 'lodash/isString';
|
|
51
|
-
import 'lodash/isNumber';
|
|
52
|
-
import 'lodash/isBoolean';
|
|
53
|
-
import 'antd/es/divider/style';
|
|
54
|
-
import 'antd/es/divider';
|
|
55
|
-
import 'antd/es/switch/style';
|
|
56
|
-
import 'antd/es/switch';
|
|
57
|
-
import 'lodash/identity';
|
|
58
|
-
import '@lm_fe/service';
|
|
59
|
-
import 'lodash/isObject';
|
|
60
|
-
import 'lodash/keys';
|
|
61
|
-
import 'lodash/keyBy';
|
|
62
|
-
import 'lodash/isNil';
|
|
63
|
-
import 'antd/es/tooltip/style';
|
|
64
|
-
import 'antd/es/tooltip';
|
|
65
|
-
import 'antd/es/spin/style';
|
|
66
|
-
import 'antd/es/spin';
|
|
67
|
-
import 'antd/es/message/style';
|
|
68
|
-
import 'antd/es/message';
|
|
69
|
-
import 'lodash/has';
|
|
70
|
-
import 'antd/es/modal/style';
|
|
71
|
-
import 'antd/es/modal';
|
|
72
|
-
import 'lodash/size';
|
|
73
|
-
import 'lodash/includes';
|
|
74
|
-
import 'lodash/forEach';
|
|
75
|
-
import 'react-to-print';
|
|
76
|
-
import 'lodash/concat';
|
|
77
|
-
import 'lodash/reduce';
|
|
78
|
-
import 'lodash/debounce';
|
|
79
|
-
import 'lodash/pickBy';
|
|
80
|
-
import 'antd/es/auto-complete/style';
|
|
81
|
-
import 'antd/es/auto-complete';
|
|
82
|
-
import 'lodash/nth';
|
|
83
|
-
import 'lodash/assign';
|
|
84
|
-
import 'antd/es/popover/style';
|
|
85
|
-
import 'antd/es/popover';
|
|
86
|
-
import 'antd/es/menu/style';
|
|
87
|
-
import 'antd/es/menu';
|
|
26
|
+
import '@lm_fe/env';
|
|
27
|
+
import 'reconnecting-websocket';
|
|
88
28
|
import 'store';
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
29
|
+
var fromApi = function fromApi(data, nativeFormDescriptions) {
|
|
30
|
+
var resultArray = map(data, function (item) {
|
|
31
|
+
var result = _objectSpread({}, item);
|
|
32
|
+
map(nativeFormDescriptions, function (desctiption, key) {
|
|
33
|
+
var tranferRules = desctiption.tranfer_rules;
|
|
34
|
+
var type = 'default';
|
|
35
|
+
var path = key;
|
|
36
|
+
if (tranferRules && JSON.parse(tranferRules)) {
|
|
37
|
+
var tranferRulesJson = JSON.parse(tranferRules);
|
|
38
|
+
type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
|
|
39
|
+
path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
|
|
40
|
+
}
|
|
41
|
+
switch (type) {
|
|
42
|
+
case 'key_and_keyNote':
|
|
43
|
+
set(result, "".concat(key, ".key"), get(item, path));
|
|
44
|
+
set(result, "".concat(key, ".keyNote"), get(item, "".concat(path, "Note")));
|
|
45
|
+
break;
|
|
46
|
+
case 'moment':
|
|
47
|
+
set(result, key, dayjs(get(item, path)));
|
|
48
|
+
break;
|
|
49
|
+
case 'default':
|
|
50
|
+
default:
|
|
51
|
+
set(result, key, get(item, path));
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
return result;
|
|
56
|
+
});
|
|
57
|
+
// console.log(resultArray);
|
|
58
|
+
return resultArray;
|
|
59
|
+
};
|
|
60
|
+
var toApi = function toApi(data, nativeFormDescriptions) {
|
|
61
|
+
var resultArray = map(data, function (item) {
|
|
62
|
+
var result = _objectSpread({}, item);
|
|
63
|
+
map(nativeFormDescriptions, function (desctiption, key) {
|
|
64
|
+
var tranferRules = desctiption.tranfer_rules;
|
|
65
|
+
var type = 'default';
|
|
66
|
+
var path = key;
|
|
67
|
+
if (tranferRules && JSON.parse(tranferRules)) {
|
|
68
|
+
var tranferRulesJson = JSON.parse(tranferRules);
|
|
69
|
+
type = get(tranferRulesJson, 'type') ? get(tranferRulesJson, 'type') : 'default';
|
|
70
|
+
path = get(tranferRulesJson, 'path') ? get(tranferRulesJson, 'path') : key;
|
|
71
|
+
}
|
|
72
|
+
switch (type) {
|
|
73
|
+
case 'key_and_keyNote':
|
|
74
|
+
set(result, path, get(item, "".concat(key, ".key")));
|
|
75
|
+
set(result, "".concat(path, "Note"), get(item, "".concat(key, ".keyNote")));
|
|
76
|
+
break;
|
|
77
|
+
case 'default':
|
|
78
|
+
default:
|
|
79
|
+
set(result, path, get(item, key));
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return result;
|
|
84
|
+
});
|
|
85
|
+
// console.log(resultArray);
|
|
86
|
+
return resultArray;
|
|
87
|
+
};
|
|
88
|
+
var Tree$1 = LazyAntd.Tree,
|
|
89
|
+
TreeSelect$1 = LazyAntd.TreeSelect,
|
|
90
|
+
Select$1 = LazyAntd.Select,
|
|
91
|
+
Table$1 = LazyAntd.Table,
|
|
92
|
+
Dropdown$1 = LazyAntd.Dropdown,
|
|
93
|
+
Pagination$1 = LazyAntd.Pagination;
|
|
94
|
+
var SelectWithInput = function SelectWithInput(props) {
|
|
95
|
+
var _props$inputType = props.inputType,
|
|
96
|
+
inputType = _props$inputType === void 0 ? 'string' : _props$inputType,
|
|
97
|
+
selectOptions = props.options,
|
|
98
|
+
value = props.value,
|
|
99
|
+
selectedValueShowInput = props.selectedValueShowInput,
|
|
100
|
+
_props$getPopupContai = props.getPopupContainer,
|
|
101
|
+
getPopupContainer = _props$getPopupContai === void 0 ? function () {
|
|
102
|
+
return document.body;
|
|
103
|
+
} : _props$getPopupContai;
|
|
104
|
+
var _useState = useState({}),
|
|
105
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
106
|
+
data = _useState2[0],
|
|
107
|
+
setData = _useState2[1];
|
|
108
|
+
useEffect(function () {
|
|
109
|
+
!isEmpty(value) && setData(value);
|
|
110
|
+
}, [props.value]);
|
|
111
|
+
var handleChange = function handleChange(type) {
|
|
112
|
+
return function (e) {
|
|
113
|
+
var onChange = props.onChange;
|
|
114
|
+
if (type === 'string') {
|
|
115
|
+
set(data, 'input', get(e, 'target.value'));
|
|
116
|
+
}
|
|
117
|
+
if (type === 'number') {
|
|
118
|
+
set(data, 'input', e);
|
|
119
|
+
}
|
|
120
|
+
if (type === 'select') {
|
|
121
|
+
set(data, 'select', e);
|
|
122
|
+
set(data, 'input', '');
|
|
123
|
+
}
|
|
124
|
+
setData(data);
|
|
125
|
+
onChange && onChange(data);
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Col, {
|
|
129
|
+
span: 11
|
|
130
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
131
|
+
onChange: handleChange('select'),
|
|
132
|
+
placeholder: "\u8BF7\u9009\u62E9...",
|
|
133
|
+
value: get(data, 'select'),
|
|
134
|
+
getPopupContainer: getPopupContainer
|
|
135
|
+
}, map(selectOptions, function (option) {
|
|
136
|
+
return /*#__PURE__*/React.createElement(Select$1.Option, {
|
|
137
|
+
key: option.key || option.value,
|
|
138
|
+
value: option.value
|
|
139
|
+
}, option.label);
|
|
140
|
+
}))), get(data, 'select') === selectedValueShowInput && (/*#__PURE__*/React.createElement(Col, {
|
|
141
|
+
span: 11,
|
|
142
|
+
offset: 1
|
|
143
|
+
}, inputType === 'string' ? (/*#__PURE__*/React.createElement(Input, {
|
|
144
|
+
onChange: handleChange(inputType),
|
|
145
|
+
value: get(data, 'input'),
|
|
146
|
+
placeholder: "\u8BF7\u8F93\u5165..."
|
|
147
|
+
})) : (/*#__PURE__*/React.createElement(InputNumber, {
|
|
148
|
+
onChange: handleChange(inputType),
|
|
149
|
+
placeholder: "\u8BF7\u8F93\u5165...",
|
|
150
|
+
value: get(data, 'input')
|
|
151
|
+
}))))));
|
|
152
|
+
};
|
|
153
|
+
var NormalSelectWithInput = function NormalSelectWithInput(props) {
|
|
154
|
+
var _get;
|
|
155
|
+
var config = get(props, 'config');
|
|
156
|
+
var specialConfig = (_get = get(config, 'specialConfig')) !== null && _get !== void 0 ? _get : safe_json_parse(get(config, 'special_config'));
|
|
157
|
+
var options = get(specialConfig, 'options');
|
|
158
|
+
var inputType = get(specialConfig, 'inputType');
|
|
159
|
+
var selectedValueShowInput = get(specialConfig, 'selectedValueShowInput');
|
|
160
|
+
var _useState3 = useState({}),
|
|
161
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
162
|
+
data = _useState4[0],
|
|
163
|
+
setData = _useState4[1];
|
|
164
|
+
useEffect(function () {
|
|
165
|
+
var value = props.value;
|
|
166
|
+
if (!isEmpty(value)) {
|
|
167
|
+
setData({
|
|
168
|
+
select: get(value, 'key'),
|
|
169
|
+
input: get(value, 'keyNote')
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}, [props.value]);
|
|
173
|
+
var handleChange = function handleChange(callbackData) {
|
|
174
|
+
var onChange = props.onChange;
|
|
175
|
+
var newData = {
|
|
176
|
+
key: get(callbackData, 'select'),
|
|
177
|
+
keyNote: get(callbackData, 'input')
|
|
178
|
+
};
|
|
179
|
+
onChange && onChange(newData);
|
|
180
|
+
};
|
|
181
|
+
return /*#__PURE__*/React.createElement(SelectWithInput, {
|
|
182
|
+
inputType: inputType,
|
|
183
|
+
options: options,
|
|
184
|
+
value: data,
|
|
185
|
+
selectedValueShowInput: selectedValueShowInput,
|
|
186
|
+
onChange: handleChange
|
|
187
|
+
});
|
|
188
|
+
};
|
|
95
189
|
var Tree = LazyAntd.Tree,
|
|
96
190
|
TreeSelect = LazyAntd.TreeSelect,
|
|
97
191
|
Select = LazyAntd.Select,
|
|
98
192
|
Table = LazyAntd.Table,
|
|
99
193
|
Dropdown = LazyAntd.Dropdown,
|
|
100
194
|
Pagination = LazyAntd.Pagination;
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
195
|
+
var SelectWithOptions = function SelectWithOptions(props) {
|
|
196
|
+
var _get2;
|
|
197
|
+
var _useState5 = useState([]),
|
|
198
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
199
|
+
data = _useState6[0],
|
|
200
|
+
setData = _useState6[1];
|
|
201
|
+
var _useState7 = useState(false),
|
|
202
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
203
|
+
showOther = _useState8[0],
|
|
204
|
+
setShowOther = _useState8[1];
|
|
205
|
+
var _useState9 = useState(''),
|
|
206
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
207
|
+
otherNote = _useState10[0],
|
|
208
|
+
setOtherNote = _useState10[1];
|
|
209
|
+
var _useState11 = useState({}),
|
|
210
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
211
|
+
dataResponse = _useState12[0],
|
|
212
|
+
setDataResponse = _useState12[1];
|
|
213
|
+
var config = (_get2 = get(props, 'config.specialConfig')) !== null && _get2 !== void 0 ? _get2 : safe_json_parse(get(props, 'config.special_config'));
|
|
214
|
+
var options = get(config, 'options') || [];
|
|
215
|
+
useEffect(function () {
|
|
216
|
+
var value = props.value;
|
|
217
|
+
// 字符串形式,如丈夫疾病史
|
|
218
|
+
if (get(config, 'type') === 'string') {
|
|
219
|
+
setData(compact(split(value, ',')));
|
|
220
|
+
// 对象形式,如孕妇疾病史
|
|
221
|
+
} else if (get(config, 'type') === 'object') {
|
|
222
|
+
var selectedArray = map(options, function (option) {
|
|
223
|
+
if (get(value, option.value)) {
|
|
224
|
+
return option.value;
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
if (get(config, 'needShowOther') && indexOf(selectedArray, 'other') > -1) {
|
|
228
|
+
setShowOther(true);
|
|
229
|
+
setOtherNote(get(value, 'otherNote'));
|
|
230
|
+
}
|
|
231
|
+
setData(compact(selectedArray));
|
|
232
|
+
// 数组形式,如分娩方式、不良生育史
|
|
233
|
+
} else if (get(config, 'type') === 'array') {
|
|
234
|
+
setData(value);
|
|
235
|
+
}
|
|
236
|
+
}, [props.value]);
|
|
237
|
+
var handleChange = function handleChange(selectedArray) {
|
|
238
|
+
var onChange = props.onChange;
|
|
239
|
+
// eslint-disable-next-line no-shadow
|
|
240
|
+
var dataResponse = null;
|
|
241
|
+
if (get(config, 'type') === 'string') {
|
|
242
|
+
dataResponse = join(selectedArray, ',');
|
|
243
|
+
} else if (get(config, 'type') === 'object') {
|
|
244
|
+
dataResponse = {};
|
|
245
|
+
if (get(config, 'mode') === 'single') {
|
|
246
|
+
set(dataResponse, selectedArray, true);
|
|
247
|
+
} else {
|
|
248
|
+
map(selectedArray, function (selectedDisease) {
|
|
249
|
+
set(dataResponse, selectedDisease, true);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
if (get(config, 'needShowOther') && indexOf(selectedArray, 'other') > -1) {
|
|
253
|
+
setShowOther(true);
|
|
254
|
+
setDataResponse(dataResponse);
|
|
255
|
+
} else {
|
|
256
|
+
setShowOther(false);
|
|
257
|
+
setOtherNote('');
|
|
258
|
+
}
|
|
259
|
+
} else if (get(config, 'type') === 'array') {
|
|
260
|
+
dataResponse = selectedArray;
|
|
261
|
+
}
|
|
262
|
+
setData(selectedArray);
|
|
263
|
+
onChange && onChange(dataResponse);
|
|
264
|
+
};
|
|
265
|
+
var handleInputChange = function handleInputChange(e) {
|
|
266
|
+
var onChange = props.onChange;
|
|
267
|
+
setOtherNote(e.target.value);
|
|
268
|
+
if (get(config, 'type') === 'object') {
|
|
269
|
+
onChange && onChange(_objectSpread(_objectSpread({}, dataResponse), {}, {
|
|
270
|
+
otherNote: otherNote
|
|
271
|
+
}));
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
return /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Select, _objectSpread({
|
|
275
|
+
allowClear: true,
|
|
276
|
+
mode: get(config, 'mode'),
|
|
277
|
+
value: data,
|
|
278
|
+
onChange: handleChange
|
|
279
|
+
}, get(props, 'config.inputProps')), map(options, function (option) {
|
|
280
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
281
|
+
key: get(option, 'value'),
|
|
282
|
+
value: get(option, 'value')
|
|
283
|
+
}, get(option, 'label') || get(option, 'value'));
|
|
284
|
+
})), showOther && /*#__PURE__*/React.createElement(Input, {
|
|
285
|
+
placeholder: "\u5176\u5B83",
|
|
286
|
+
value: otherNote,
|
|
287
|
+
onChange: handleInputChange
|
|
288
|
+
}));
|
|
108
289
|
};
|
|
109
|
-
var
|
|
110
|
-
function
|
|
290
|
+
var FoetalAppendageFormSection = /*#__PURE__*/function (_React$Component) {
|
|
291
|
+
function FoetalAppendageFormSection() {
|
|
111
292
|
var _this;
|
|
112
|
-
_classCallCheck(this,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
render: function render(value, rowData, rowIndex) {
|
|
140
|
-
var renderValue = value;
|
|
141
|
-
if (['single_date_picker'].indexOf(inputType) > -1) {
|
|
142
|
-
renderValue = value ? dayjs(value, 'YYYY-MM-DD') : dayjs();
|
|
143
|
-
}
|
|
144
|
-
return editingTable === tableName && editingCol === dataIndex && editingRow === rowIndex && editable ? /*#__PURE__*/React.createElement(BaseFormComponent, _extends({}, inputProps, {
|
|
145
|
-
inputProps: inputProps,
|
|
146
|
-
key: rowIndex,
|
|
147
|
-
size: "small",
|
|
148
|
-
inputType: inputType,
|
|
149
|
-
defaultValue: renderValue,
|
|
150
|
-
autoFocus: true,
|
|
151
|
-
defaultOpen: true,
|
|
152
|
-
onBlur: _this.handleBlur({
|
|
153
|
-
tableName: tableName,
|
|
154
|
-
dataIndex: dataIndex,
|
|
155
|
-
inputType: inputType,
|
|
156
|
-
rowIndex: rowIndex
|
|
157
|
-
}),
|
|
158
|
-
onChange: _this.handleItemChange({
|
|
159
|
-
tableName: tableName,
|
|
160
|
-
dataIndex: dataIndex,
|
|
161
|
-
inputType: inputType,
|
|
162
|
-
rowIndex: rowIndex
|
|
163
|
-
})
|
|
164
|
-
})) : /*#__PURE__*/React.createElement("span", {
|
|
165
|
-
className: "custom-table-cell",
|
|
166
|
-
onClick: function onClick() {
|
|
167
|
-
_this.setState({
|
|
168
|
-
editingRow: rowIndex,
|
|
169
|
-
editingCol: dataIndex,
|
|
170
|
-
editingValue: value,
|
|
171
|
-
editingTable: tableName
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}, value);
|
|
293
|
+
_classCallCheck(this, FoetalAppendageFormSection);
|
|
294
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
295
|
+
args[_key] = arguments[_key];
|
|
296
|
+
}
|
|
297
|
+
_this = _callSuper(this, FoetalAppendageFormSection, [].concat(args));
|
|
298
|
+
_defineProperty(_this, "renderRowAndCol", function () {
|
|
299
|
+
var formDescriptionArr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
300
|
+
return /*#__PURE__*/React.createElement(Row, null, map(formDescriptionArr, function (formDescription, index) {
|
|
301
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
302
|
+
key: index,
|
|
303
|
+
span: get(formDescription, 'span'),
|
|
304
|
+
offset: get(formDescription, 'offset')
|
|
305
|
+
}, _this.renderItem(formDescription));
|
|
306
|
+
}));
|
|
307
|
+
});
|
|
308
|
+
_defineProperty(_this, "renderItem", function (formDescription) {
|
|
309
|
+
var _this$props = _this.props,
|
|
310
|
+
renderEditItem = _this$props.renderEditItem,
|
|
311
|
+
data = _this$props.data,
|
|
312
|
+
_onChange = _this$props.onChange;
|
|
313
|
+
var formDescriptionKey = get(formDescription, 'key');
|
|
314
|
+
switch (get(formDescription, 'inputType')) {
|
|
315
|
+
case 'input':
|
|
316
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(Input, _objectSpread(_objectSpread({}, get(formDescription, 'inputProps')), {}, {
|
|
317
|
+
value: get(data, formDescriptionKey),
|
|
318
|
+
onChange: function onChange(e) {
|
|
319
|
+
_onChange(formDescriptionKey, get(e, 'target.value'));
|
|
175
320
|
}
|
|
321
|
+
})), {
|
|
322
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
176
323
|
});
|
|
177
|
-
|
|
178
|
-
|
|
324
|
+
case 'select_with_options':
|
|
325
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(SelectWithOptions, {
|
|
326
|
+
config: formDescription,
|
|
327
|
+
value: get(data, formDescriptionKey),
|
|
328
|
+
onChange: function onChange(e) {
|
|
329
|
+
_onChange(formDescriptionKey, e);
|
|
330
|
+
}
|
|
331
|
+
}), {
|
|
332
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
333
|
+
});
|
|
334
|
+
case 'pregnant_radio':
|
|
335
|
+
return renderEditItem(get(formDescription, 'key'), /*#__PURE__*/React.createElement(Radio.Group, {
|
|
336
|
+
value: get(data, formDescriptionKey),
|
|
337
|
+
onChange: function onChange(e) {
|
|
338
|
+
_onChange(formDescriptionKey, get(e, 'target.value'));
|
|
339
|
+
}
|
|
340
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
341
|
+
value: false
|
|
342
|
+
}, "\u5426"), /*#__PURE__*/React.createElement(Radio, {
|
|
343
|
+
value: true
|
|
344
|
+
}, "\u662F")), {
|
|
345
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {},
|
|
346
|
+
styles: get(formDescription, 'styles')
|
|
347
|
+
});
|
|
348
|
+
case 'single_date_picker':
|
|
349
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(DatePicker_L, _objectSpread(_objectSpread({
|
|
350
|
+
value: get(data, formDescriptionKey)
|
|
351
|
+
}, get(formDescription, 'inputProps')), {}, {
|
|
352
|
+
onChange: function onChange(e) {
|
|
353
|
+
_onChange(formDescriptionKey, e);
|
|
354
|
+
}
|
|
355
|
+
})), {
|
|
356
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
357
|
+
});
|
|
358
|
+
case 'select_with_input':
|
|
359
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(NormalSelectWithInput, {
|
|
360
|
+
config: formDescription,
|
|
361
|
+
value: get(data, formDescriptionKey),
|
|
362
|
+
onChange: function onChange(e) {
|
|
363
|
+
_onChange(formDescriptionKey, e);
|
|
364
|
+
}
|
|
365
|
+
}), {
|
|
366
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
367
|
+
});
|
|
368
|
+
case 'input_number':
|
|
369
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(InputNumber, _objectSpread(_objectSpread({
|
|
370
|
+
value: get(data, formDescriptionKey),
|
|
371
|
+
min: 0
|
|
372
|
+
}, get(formDescription, 'inputProps')), {}, {
|
|
373
|
+
onChange: function onChange(e) {
|
|
374
|
+
_onChange(formDescriptionKey, e);
|
|
375
|
+
},
|
|
376
|
+
controls: false
|
|
377
|
+
})), {
|
|
378
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
379
|
+
});
|
|
380
|
+
case 'normal_checkbox_with_input':
|
|
381
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(NormalCheckboxWithInput, {
|
|
382
|
+
value: get(data, formDescriptionKey),
|
|
383
|
+
config: formDescription,
|
|
384
|
+
onChange: function onChange(e) {
|
|
385
|
+
_onChange(formDescriptionKey, e);
|
|
386
|
+
}
|
|
387
|
+
}), {
|
|
388
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {}
|
|
389
|
+
});
|
|
390
|
+
case 'multiple_input_with_label':
|
|
391
|
+
return renderEditItem(get(formDescription, 'key'), /*#__PURE__*/React.createElement(MultipleInputWithLabel, {
|
|
392
|
+
config: formDescription,
|
|
393
|
+
value: get(data, formDescriptionKey),
|
|
394
|
+
onChange: function onChange(e) {
|
|
395
|
+
_onChange(formDescriptionKey, e);
|
|
396
|
+
}
|
|
397
|
+
}), {
|
|
398
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {},
|
|
399
|
+
styles: get(formDescription, 'styles')
|
|
400
|
+
});
|
|
401
|
+
case 'input_with_label':
|
|
402
|
+
return renderEditItem(get(formDescription, 'key'), /*#__PURE__*/React.createElement(InputWithLabel, {
|
|
403
|
+
config: formDescription,
|
|
404
|
+
value: get(data, formDescriptionKey),
|
|
405
|
+
onChange: function onChange(e) {
|
|
406
|
+
_onChange(formDescriptionKey, e);
|
|
407
|
+
}
|
|
408
|
+
}), {
|
|
409
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {},
|
|
410
|
+
styles: get(formDescription, 'styles')
|
|
411
|
+
});
|
|
412
|
+
default:
|
|
413
|
+
return renderEditItem(formDescriptionKey, /*#__PURE__*/React.createElement(Input, _objectSpread(_objectSpread({
|
|
414
|
+
value: get(data, formDescriptionKey)
|
|
415
|
+
}, get(formDescription, 'inputProps')), {}, {
|
|
416
|
+
onChange: function onChange(e) {
|
|
417
|
+
_onChange(formDescriptionKey, get(e, 'target.value'));
|
|
418
|
+
}
|
|
419
|
+
})), {
|
|
420
|
+
customFormItemLayout: get(formDescription, 'formItemLayout') || {},
|
|
421
|
+
styles: get(formDescription, 'styles')
|
|
422
|
+
});
|
|
423
|
+
}
|
|
179
424
|
});
|
|
180
|
-
_defineProperty(_this, "
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
editingTable: undefined
|
|
197
|
-
});
|
|
198
|
-
var path = dataIndex;
|
|
199
|
-
if (_isArray(dataIndex)) {
|
|
200
|
-
path = _join(dataIndex, '.');
|
|
201
|
-
}
|
|
202
|
-
var data = _cloneDeep(_this.value);
|
|
203
|
-
_set(data, "".concat(rowIndex, ".").concat(path), editingValue);
|
|
204
|
-
if (tableName === 'procedure') {
|
|
205
|
-
_set(data, "pdProcedures.".concat(rowIndex, ".").concat(path), editingValue);
|
|
206
|
-
if (dataIndex === 'actualbtvolume' || dataIndex === 'btDuration') {
|
|
207
|
-
var actualbtvolume = Number(_get(data, "pdProcedures.".concat(rowIndex, ".actualbtvolume")) || 0);
|
|
208
|
-
var btDuration = Number(_get(data, "pdProcedures.".concat(rowIndex, ".btDuration")) || 1);
|
|
209
|
-
_set(data, "pdProcedures.".concat(rowIndex, ".btspeed"), (actualbtvolume / btDuration).toFixed(3));
|
|
425
|
+
_defineProperty(_this, "renderContent", function () {
|
|
426
|
+
var _this$props2 = _this.props,
|
|
427
|
+
_this$props2$formDesc = _this$props2.formDescriptions,
|
|
428
|
+
formDescriptions = _this$props2$formDesc === void 0 ? [] : _this$props2$formDesc,
|
|
429
|
+
formData = _this$props2.formData,
|
|
430
|
+
tabIndex = _this$props2.tabIndex;
|
|
431
|
+
var tempArr = [];
|
|
432
|
+
var tempSpan = 0;
|
|
433
|
+
var formArray = [];
|
|
434
|
+
map(formDescriptions, function (formDescription, index) {
|
|
435
|
+
if (!isNil(get(formDescription, 'span')) && !isNil(get(formDescription, 'offset'))) {
|
|
436
|
+
if (get(formDescription, 'isNewRow')) {
|
|
437
|
+
var renderArr = tempArr;
|
|
438
|
+
tempSpan = 0;
|
|
439
|
+
tempArr = [];
|
|
440
|
+
formArray.push(_this.renderRowAndCol(renderArr));
|
|
210
441
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
442
|
+
if (tempSpan < 25 && tempSpan + get(formDescription, 'span') + get(formDescription, 'offset') < 25) {
|
|
443
|
+
tempSpan = tempSpan + get(formDescription, 'span') + get(formDescription, 'offset');
|
|
444
|
+
tempArr.push(formDescription);
|
|
445
|
+
if (Number(index) === formDescriptions.length - 1) {
|
|
446
|
+
formArray.push(_this.renderRowAndCol(tempArr));
|
|
447
|
+
tempArr = [];
|
|
448
|
+
}
|
|
214
449
|
} else {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
} else if (rowIndex % 3 === 1) {
|
|
221
|
-
_set(data, "pdPreHemogramBanks.".concat(Math.floor(rowIndex / 3), ".").concat(path), editingValue);
|
|
222
|
-
} else if (rowIndex % 3 === 2) {
|
|
223
|
-
_set(data, "pdPostHemograms.".concat(Math.floor(rowIndex / 3), ".").concat(path), editingValue);
|
|
450
|
+
var _renderArr = tempArr;
|
|
451
|
+
tempArr = [];
|
|
452
|
+
formArray.push(_this.renderRowAndCol(_renderArr));
|
|
453
|
+
tempSpan = get(formDescription, 'span') + get(formDescription, 'offset');
|
|
454
|
+
tempArr.push(formDescription);
|
|
224
455
|
}
|
|
456
|
+
} else {
|
|
457
|
+
formArray.push(_this.renderItem(formDescription));
|
|
225
458
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
459
|
+
});
|
|
460
|
+
if (!isEmpty(tempArr)) {
|
|
461
|
+
formArray.push(_this.renderRowAndCol(tempArr));
|
|
462
|
+
}
|
|
463
|
+
return formArray;
|
|
229
464
|
});
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
465
|
+
return _this;
|
|
466
|
+
}
|
|
467
|
+
_inherits(FoetalAppendageFormSection, _React$Component);
|
|
468
|
+
return _createClass(FoetalAppendageFormSection, [{
|
|
469
|
+
key: "render",
|
|
470
|
+
value: function render() {
|
|
471
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderContent());
|
|
472
|
+
}
|
|
473
|
+
}]);
|
|
474
|
+
}(React.Component);
|
|
475
|
+
var css_248z = ".foetal-panel {\n display: flex;\n align-items: center;\n}\n.foetal-panel:hover .foetal-panel-delete {\n visibility: visible;\n}\n.foetal-panel-content {\n width: 100%;\n}\n.foetal-panel-delete {\n cursor: pointer;\n visibility: hidden;\n}\n";
|
|
476
|
+
styleInject(css_248z);
|
|
477
|
+
var TAB_TITLE = '新生儿';
|
|
478
|
+
// 新生儿信息
|
|
479
|
+
var NoenateRecord = /*#__PURE__*/function (_DynamicForm) {
|
|
480
|
+
function NoenateRecord(props) {
|
|
481
|
+
var _this2;
|
|
482
|
+
_classCallCheck(this, NoenateRecord);
|
|
483
|
+
_this2 = _callSuper(this, NoenateRecord, [props]);
|
|
484
|
+
_defineProperty(_this2, "index", void 0);
|
|
485
|
+
_defineProperty(_this2, "nativeFormDescriptions", void 0);
|
|
486
|
+
_defineProperty(_this2, "handleAddFetus", function () {
|
|
487
|
+
var data = _this2.state.data;
|
|
488
|
+
_this2.index += 1;
|
|
489
|
+
data.push({
|
|
490
|
+
key: "".concat(_this2.index)
|
|
491
|
+
});
|
|
492
|
+
_this2.setState({
|
|
493
|
+
data: data
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
_defineProperty(_this2, "handleRemoveFetus", function (_ref) {
|
|
497
|
+
var key = _ref.key;
|
|
498
|
+
return function () {
|
|
499
|
+
var data = _this2.state.data;
|
|
500
|
+
var newData = filter(data, function (item) {
|
|
501
|
+
return item.key !== key;
|
|
253
502
|
});
|
|
503
|
+
_this2.setState({
|
|
504
|
+
data: newData
|
|
505
|
+
});
|
|
506
|
+
_this2.throwDataByOnChange(newData);
|
|
254
507
|
};
|
|
255
508
|
});
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
key: Math.random()
|
|
265
|
-
};
|
|
266
|
-
var pdPreBloodFlow = {
|
|
267
|
-
key: Math.random(),
|
|
268
|
-
name: '术前血流',
|
|
269
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
270
|
-
};
|
|
271
|
-
var pdPostBloodFlow = {
|
|
272
|
-
key: Math.random(),
|
|
273
|
-
name: '术后血流',
|
|
274
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
275
|
-
};
|
|
276
|
-
var pdPreHemogram = {
|
|
277
|
-
key: Math.random(),
|
|
278
|
-
name: '术前血象(胎)'
|
|
279
|
-
};
|
|
280
|
-
var pdPreHemogramBank = {
|
|
281
|
-
key: Math.random(),
|
|
282
|
-
name: '术前血象(库血)'
|
|
283
|
-
};
|
|
284
|
-
var pdPostHemogram = {
|
|
285
|
-
key: Math.random(),
|
|
286
|
-
name: '术后血象(胎)'
|
|
287
|
-
};
|
|
288
|
-
_this.setState({
|
|
289
|
-
dataSource: [].concat(_toConsumableArray(dataSource), [newPdProcedure]),
|
|
290
|
-
bloodFlowsDataSource: [].concat(_toConsumableArray(bloodFlowsDataSource), [pdPreBloodFlow, pdPostBloodFlow]),
|
|
291
|
-
hemogramExamDataSource: [].concat(_toConsumableArray(hemogramExamDataSource), [pdPreHemogram, pdPreHemogramBank, pdPostHemogram])
|
|
292
|
-
});
|
|
293
|
-
onChange && onChange({
|
|
294
|
-
pdProcedures: [].concat(_toConsumableArray(_get(value, 'pdProcedures') || []), [newPdProcedure]),
|
|
295
|
-
pdPreBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPreBloodFlows') || []), [pdPreBloodFlow]),
|
|
296
|
-
pdPostBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPostBloodFlows') || []), [pdPostBloodFlow]),
|
|
297
|
-
pdPreHemograms: [].concat(_toConsumableArray(_get(value, 'pdPreHemograms') || []), [pdPreHemogram]),
|
|
298
|
-
pdPreHemogramBanks: [].concat(_toConsumableArray(_get(value, 'pdPreHemogramBanks') || []), [pdPreHemogramBank]),
|
|
299
|
-
pdPostHemograms: [].concat(_toConsumableArray(_get(value, 'pdPostHemograms') || []), [pdPostHemogram])
|
|
509
|
+
// 获取表单数据
|
|
510
|
+
_defineProperty(_this2, "handleFieldsChange", function (formDescriptionKey, callbackData) {
|
|
511
|
+
var data = _this2.state.data;
|
|
512
|
+
var names = split(formDescriptionKey, '_');
|
|
513
|
+
set(data, "".concat(get(names, '1'), ".").concat(formDescriptionKey), callbackData);
|
|
514
|
+
_this2.throwDataByOnChange(data);
|
|
515
|
+
_this2.setState({
|
|
516
|
+
data: data
|
|
300
517
|
});
|
|
301
518
|
});
|
|
302
|
-
_defineProperty(
|
|
303
|
-
|
|
304
|
-
|
|
519
|
+
_defineProperty(_this2, "throwDataByOnChange", function (data) {
|
|
520
|
+
var onChange = _this2.props.onChange;
|
|
521
|
+
var tempData = map(data, function (item) {
|
|
522
|
+
var tempItem = {};
|
|
523
|
+
map(item, function (itemValue, key) {
|
|
524
|
+
var names = split(key, '_');
|
|
525
|
+
set(tempItem, get(names, 0), itemValue);
|
|
526
|
+
});
|
|
527
|
+
return tempItem;
|
|
305
528
|
});
|
|
529
|
+
onChange && onChange(toApi(tempData, _this2.nativeFormDescriptions));
|
|
530
|
+
return data;
|
|
531
|
+
});
|
|
532
|
+
_defineProperty(_this2, "generateRenderEditItem", function (formDescriptions) {
|
|
533
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
534
|
+
var formItemLayout = options.formItemLayout;
|
|
535
|
+
return function (key, ReactNode) {
|
|
536
|
+
var others = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
537
|
+
var config = get(formDescriptions, key) || {};
|
|
538
|
+
var label = config.label,
|
|
539
|
+
rules = config.rules;
|
|
540
|
+
return /*#__PURE__*/React.createElement(Form.Item, _objectSpread(_objectSpread(_objectSpread({}, formItemLayout), get(others, 'customFormItemLayout')), {}, {
|
|
541
|
+
style: _objectSpread({}, get(others, 'styles')),
|
|
542
|
+
key: key,
|
|
543
|
+
label: label,
|
|
544
|
+
rules: rules
|
|
545
|
+
}), ReactNode);
|
|
546
|
+
};
|
|
306
547
|
});
|
|
307
|
-
_defineProperty(
|
|
308
|
-
var
|
|
309
|
-
var
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
var pdProcedures = _filter(dataSource, function (data) {
|
|
315
|
-
return _indexOf(selectedRowKeys, data.key) === -1;
|
|
548
|
+
_defineProperty(_this2, "renderContent", function (item, index) {
|
|
549
|
+
var data = _this2.state.data;
|
|
550
|
+
var newFormDescriptions = {};
|
|
551
|
+
map(cloneDeep(_this2.nativeFormDescriptions), function (formDescription, formDescriptionKey) {
|
|
552
|
+
set(formDescription, 'key', "".concat(formDescriptionKey, "_").concat(item.key));
|
|
553
|
+
set(formDescription, 'native_key', formDescriptionKey);
|
|
554
|
+
set(newFormDescriptions, "".concat(formDescriptionKey, "_").concat(item.key), formDescription);
|
|
316
555
|
});
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
556
|
+
var renderEditItem = _this2.generateRenderEditItem(newFormDescriptions);
|
|
557
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
558
|
+
className: css_248z["foetal-panel"]
|
|
559
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
560
|
+
className: css_248z["foetal-panel-content"]
|
|
561
|
+
}, /*#__PURE__*/React.createElement(Divider, {
|
|
562
|
+
orientation: "left"
|
|
563
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
564
|
+
style: {
|
|
565
|
+
fontSize: 12
|
|
326
566
|
}
|
|
327
|
-
})
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
});
|
|
340
|
-
var pdPreHemogramBanks = _filter(newHemogramExamDataSource, function (data, key) {
|
|
341
|
-
return Number(key) % 3 === 2;
|
|
342
|
-
});
|
|
343
|
-
_this.setState({
|
|
344
|
-
dataSource: pdProcedures,
|
|
345
|
-
bloodFlowsDataSource: newBloodFlowsDataSource,
|
|
346
|
-
hemogramExamDataSource: newHemogramExamDataSource
|
|
347
|
-
});
|
|
348
|
-
onChange && onChange({
|
|
349
|
-
pdProcedures: pdProcedures,
|
|
350
|
-
pdPreBloodFlows: pdPreBloodFlows,
|
|
351
|
-
pdPostBloodFlows: pdPostBloodFlows,
|
|
352
|
-
pdPreHemograms: pdPreHemograms,
|
|
353
|
-
pdPreHemogramBanks: pdPreHemogramBanks,
|
|
354
|
-
pdPostHemograms: pdPostHemograms
|
|
355
|
-
});
|
|
567
|
+
}, TAB_TITLE, index + 1)), /*#__PURE__*/React.createElement(FoetalAppendageFormSection, {
|
|
568
|
+
formDescriptions: newFormDescriptions,
|
|
569
|
+
renderEditItem: renderEditItem,
|
|
570
|
+
onChange: _this2.handleFieldsChange,
|
|
571
|
+
data: get(data, index)
|
|
572
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
573
|
+
className: css_248z["foetal-panel-delete"],
|
|
574
|
+
title: "\u5220\u9664",
|
|
575
|
+
onClick: _this2.handleRemoveFetus(item)
|
|
576
|
+
}, /*#__PURE__*/React.createElement(MyIcon, {
|
|
577
|
+
value: 'MinusCircleOutlined'
|
|
578
|
+
})));
|
|
356
579
|
});
|
|
357
|
-
var
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
selectedRowKeys: [],
|
|
363
|
-
editingCol: undefined,
|
|
364
|
-
editingRow: undefined,
|
|
365
|
-
editingValue: undefined,
|
|
366
|
-
editingTable: undefined
|
|
580
|
+
var _data = [{
|
|
581
|
+
key: '0'
|
|
582
|
+
}];
|
|
583
|
+
_this2.state = {
|
|
584
|
+
data: _data
|
|
367
585
|
};
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
return
|
|
586
|
+
_this2.index = 0;
|
|
587
|
+
_this2.nativeFormDescriptions = {};
|
|
588
|
+
return _this2;
|
|
371
589
|
}
|
|
372
|
-
_inherits(
|
|
373
|
-
return _createClass(
|
|
374
|
-
key: "
|
|
375
|
-
value: function
|
|
376
|
-
var
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
590
|
+
_inherits(NoenateRecord, _DynamicForm);
|
|
591
|
+
return _createClass(NoenateRecord, [{
|
|
592
|
+
key: "componentDidMount",
|
|
593
|
+
value: function () {
|
|
594
|
+
var _componentDidMount = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
595
|
+
var _this3 = this;
|
|
596
|
+
var _this$props3, value, system, data, formField, result;
|
|
597
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
598
|
+
while (1) switch (_context.prev = _context.next) {
|
|
599
|
+
case 0:
|
|
600
|
+
_this$props3 = this.props, value = _this$props3.value, system = _this$props3.system;
|
|
601
|
+
data = [];
|
|
602
|
+
_context.next = 4;
|
|
603
|
+
return SMchc_FormDescriptions.getModuleParseCache('neonate-record-config');
|
|
604
|
+
case 4:
|
|
605
|
+
formField = _context.sent;
|
|
606
|
+
this.nativeFormDescriptions = formDescriptionsWithoutSectionApi(formField);
|
|
607
|
+
result = [{}];
|
|
608
|
+
if (!isEmpty(value)) {
|
|
609
|
+
result = fromApi(value, this.nativeFormDescriptions);
|
|
610
|
+
}
|
|
611
|
+
map(result, function (item, index) {
|
|
612
|
+
_this3.index = index;
|
|
613
|
+
var tempValue = {};
|
|
614
|
+
map(item, function (itemValue, key) {
|
|
615
|
+
key !== 'key' && set(tempValue, "".concat(key, "_").concat(index), itemValue);
|
|
616
|
+
});
|
|
617
|
+
data.push(_objectSpread({
|
|
618
|
+
key: "".concat(index)
|
|
619
|
+
}, tempValue));
|
|
620
|
+
});
|
|
621
|
+
this.setState({
|
|
622
|
+
data: data
|
|
623
|
+
});
|
|
624
|
+
case 10:
|
|
625
|
+
case "end":
|
|
626
|
+
return _context.stop();
|
|
397
627
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
hemogramExamDataSource.push(_objectSpread(_objectSpread({}, _get(value, "pdPreHemogramBanks.".concat(_i))), {}, {
|
|
403
|
-
name: "".concat(_get(value, "pdProcedures.".concat(_i, ".object")) || '', "\u672F\u524D\u8840\u8C61\uFF08\u5E93\u8840\uFF09"),
|
|
404
|
-
key: _get(value, "pdPreHemogramBanks.".concat(_i, ".key")) || 'pdPreHemogramBanks' + _get(value, "pdPreHemogramBanks.".concat(_i, ".id"))
|
|
405
|
-
}));
|
|
406
|
-
hemogramExamDataSource.push(_objectSpread(_objectSpread({}, _get(value, "pdPostHemograms.".concat(_i))), {}, {
|
|
407
|
-
name: "".concat(_get(value, "pdProcedures.".concat(_i, ".object")) || '', "\u672F\u540E\u8840\u8C61\uFF08\u80CE\uFF09"),
|
|
408
|
-
key: _get(value, "pdPostHemograms.".concat(_i, ".key")) || 'pdPostHemograms' + _get(value, "pdPostHemograms.".concat(_i, ".id"))
|
|
409
|
-
}));
|
|
410
|
-
}
|
|
411
|
-
this.setState({
|
|
412
|
-
dataSource: _map(_get(value, 'pdProcedures'), function (item) {
|
|
413
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
414
|
-
key: _get(item, 'key') || _get(item, 'id')
|
|
415
|
-
});
|
|
416
|
-
}),
|
|
417
|
-
bloodFlowsDataSource: bloodFlowsDataSource,
|
|
418
|
-
hemogramExamDataSource: hemogramExamDataSource
|
|
419
|
-
});
|
|
628
|
+
}, _callee, this);
|
|
629
|
+
}));
|
|
630
|
+
function componentDidMount() {
|
|
631
|
+
return _componentDidMount.apply(this, arguments);
|
|
420
632
|
}
|
|
421
|
-
|
|
633
|
+
return componentDidMount;
|
|
634
|
+
}()
|
|
422
635
|
}, {
|
|
423
636
|
key: "render",
|
|
424
637
|
value: function render() {
|
|
425
|
-
var
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
hemogramExamDataSource = _this$state5.hemogramExamDataSource;
|
|
432
|
-
var newProcedureColumns = this.formatColumns('procedure')(this.columns);
|
|
433
|
-
var newBloodFlowsColumns = this.formatColumns('bloodFlows')(bloodFlowsColumns);
|
|
434
|
-
var newHemogramExamColumns = this.formatColumns('hemogramExam')(hemogramExamColumns);
|
|
435
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
436
|
-
className: "pd-procedure"
|
|
638
|
+
var _this4 = this;
|
|
639
|
+
var data = this.state.data;
|
|
640
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
641
|
+
autoComplete: "off",
|
|
642
|
+
ref: this.formRef,
|
|
643
|
+
onFieldsChange: this.handleFieldsChange
|
|
437
644
|
}, /*#__PURE__*/React.createElement("div", {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}, /*#__PURE__*/React.createElement(_Form.Item, _extends({
|
|
442
|
-
label: "\u5F00\u59CB\u65F6\u95F4"
|
|
443
|
-
}, layout), /*#__PURE__*/React.createElement(TimePicker_L, {
|
|
444
|
-
size: "small",
|
|
445
|
-
format: "HH:mm",
|
|
446
|
-
value: _get(dataSource, '0.startTime') ? dayjs(_get(dataSource, '0.startTime'), 'HH:mm') : null,
|
|
447
|
-
onChange: function onChange(value) {
|
|
448
|
-
var startTime = dayjs(value).format('HH:mm').toString();
|
|
449
|
-
var result = _cloneDeep(_this2.value);
|
|
450
|
-
_set(result, 'pdProcedures.0.startTime', startTime);
|
|
451
|
-
var pdPreBloodFlow = {
|
|
452
|
-
key: Math.random(),
|
|
453
|
-
name: '术前血流',
|
|
454
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
455
|
-
};
|
|
456
|
-
var pdPostBloodFlow = {
|
|
457
|
-
key: Math.random(),
|
|
458
|
-
name: '术后血流',
|
|
459
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
460
|
-
};
|
|
461
|
-
var pdPreHemogram = {
|
|
462
|
-
key: Math.random(),
|
|
463
|
-
name: '术前血象(胎)'
|
|
464
|
-
};
|
|
465
|
-
var pdPreHemogramBank = {
|
|
466
|
-
key: Math.random(),
|
|
467
|
-
name: '术前血象(库血)'
|
|
468
|
-
};
|
|
469
|
-
var pdPostHemogram = {
|
|
470
|
-
key: Math.random(),
|
|
471
|
-
name: '术后血象(胎)'
|
|
472
|
-
};
|
|
473
|
-
_onChange && _onChange(_objectSpread(_objectSpread({}, result), {}, {
|
|
474
|
-
pdPreBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPreBloodFlows') || []), [pdPreBloodFlow]),
|
|
475
|
-
pdPostBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPostBloodFlows') || []), [pdPostBloodFlow]),
|
|
476
|
-
pdPreHemograms: [].concat(_toConsumableArray(_get(value, 'pdPreHemograms') || []), [pdPreHemogram]),
|
|
477
|
-
pdPreHemogramBanks: [].concat(_toConsumableArray(_get(value, 'pdPreHemogramBanks') || []), [pdPreHemogramBank]),
|
|
478
|
-
pdPostHemograms: [].concat(_toConsumableArray(_get(value, 'pdPostHemograms') || []), [pdPostHemogram])
|
|
479
|
-
}));
|
|
480
|
-
}
|
|
481
|
-
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
482
|
-
span: 6
|
|
483
|
-
}, /*#__PURE__*/React.createElement(_Form.Item, _extends({
|
|
484
|
-
label: "\u7ED3\u675F\u65F6\u95F4"
|
|
485
|
-
}, layout), /*#__PURE__*/React.createElement(DatePicker_L, {
|
|
486
|
-
size: "small",
|
|
487
|
-
format: "HH:mm",
|
|
488
|
-
value: _get(dataSource, '0.endTime') ? dayjs(_get(dataSource, '0.endTime'), 'HH:mm') : null,
|
|
489
|
-
onChange: function onChange(value) {
|
|
490
|
-
var minutes = dayjs(value, 'HH:mm').diff(dayjs(_get(dataSource, '0.startTime'), 'HH:mm'), 'minutes');
|
|
491
|
-
var endTime = dayjs(value).format('HH:mm').toString();
|
|
492
|
-
var result = _cloneDeep(_this2.value);
|
|
493
|
-
_set(result, 'pdProcedures.0.endTime', endTime);
|
|
494
|
-
_set(result, 'pdProcedures.0.duration', minutes);
|
|
495
|
-
var pdPreBloodFlow = {
|
|
496
|
-
key: Math.random(),
|
|
497
|
-
name: '术前血流',
|
|
498
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
499
|
-
};
|
|
500
|
-
var pdPostBloodFlow = {
|
|
501
|
-
key: Math.random(),
|
|
502
|
-
name: '术后血流',
|
|
503
|
-
checkDate: dayjs().format('YYYY-MM-DD')
|
|
504
|
-
};
|
|
505
|
-
var pdPreHemogram = {
|
|
506
|
-
key: Math.random(),
|
|
507
|
-
name: '术前血象(胎)'
|
|
508
|
-
};
|
|
509
|
-
var pdPreHemogramBank = {
|
|
510
|
-
key: Math.random(),
|
|
511
|
-
name: '术前血象(库血)'
|
|
512
|
-
};
|
|
513
|
-
var pdPostHemogram = {
|
|
514
|
-
key: Math.random(),
|
|
515
|
-
name: '术后血象(胎)'
|
|
516
|
-
};
|
|
517
|
-
_onChange && _onChange(_objectSpread(_objectSpread({}, result), {}, {
|
|
518
|
-
pdPreBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPreBloodFlows') || []), [pdPreBloodFlow]),
|
|
519
|
-
pdPostBloodFlows: [].concat(_toConsumableArray(_get(value, 'pdPostBloodFlows') || []), [pdPostBloodFlow]),
|
|
520
|
-
pdPreHemograms: [].concat(_toConsumableArray(_get(value, 'pdPreHemograms') || []), [pdPreHemogram]),
|
|
521
|
-
pdPreHemogramBanks: [].concat(_toConsumableArray(_get(value, 'pdPreHemogramBanks') || []), [pdPreHemogramBank]),
|
|
522
|
-
pdPostHemograms: [].concat(_toConsumableArray(_get(value, 'pdPostHemograms') || []), [pdPostHemogram])
|
|
523
|
-
}));
|
|
524
|
-
}
|
|
525
|
-
}))), /*#__PURE__*/React.createElement(_Col, {
|
|
526
|
-
span: 6
|
|
527
|
-
}, /*#__PURE__*/React.createElement(_Form.Item, _extends({
|
|
528
|
-
label: "\u6301\u7EED\u65F6\u95F4"
|
|
529
|
-
}, layout), /*#__PURE__*/React.createElement(_InputNumber, {
|
|
530
|
-
size: "small",
|
|
531
|
-
value: _get(dataSource, '0.duration'),
|
|
532
|
-
onChange: function onChange(value) {
|
|
533
|
-
var result = _cloneDeep(_this2.value);
|
|
534
|
-
_set(result, 'pdProcedures.0.duration', value);
|
|
535
|
-
_onChange && _onChange(result);
|
|
645
|
+
style: {
|
|
646
|
+
display: 'flex',
|
|
647
|
+
flexDirection: 'row-reverse'
|
|
536
648
|
}
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
}, "\u65B0\u589E"), /*#__PURE__*/React.createElement(_Button, {
|
|
544
|
-
disabled: _isEmpty(selectedRowKeys),
|
|
545
|
-
onClick: this.handlePatchDelete
|
|
546
|
-
}, "\u5220\u9664")), /*#__PURE__*/React.createElement(Table, {
|
|
547
|
-
rowSelection: {
|
|
548
|
-
selectedRowKeys: selectedRowKeys,
|
|
549
|
-
onChange: this.handleRowSelectChange
|
|
550
|
-
},
|
|
551
|
-
size: "small",
|
|
552
|
-
bordered: true,
|
|
553
|
-
columns: newProcedureColumns,
|
|
554
|
-
dataSource: dataSource,
|
|
555
|
-
pagination: false,
|
|
556
|
-
scroll: {
|
|
557
|
-
x: 3000
|
|
558
|
-
}
|
|
559
|
-
}), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Table, {
|
|
560
|
-
size: "small",
|
|
561
|
-
className: "blood-and-thalassemia",
|
|
562
|
-
bordered: true,
|
|
563
|
-
columns: newBloodFlowsColumns,
|
|
564
|
-
dataSource: bloodFlowsDataSource,
|
|
565
|
-
pagination: false
|
|
566
|
-
}), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Table, {
|
|
567
|
-
size: "small",
|
|
568
|
-
className: "blood-and-thalassemia",
|
|
569
|
-
bordered: true,
|
|
570
|
-
columns: newHemogramExamColumns,
|
|
571
|
-
dataSource: hemogramExamDataSource,
|
|
572
|
-
pagination: false
|
|
573
|
-
})));
|
|
649
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
650
|
+
type: "primary",
|
|
651
|
+
onClick: this.handleAddFetus
|
|
652
|
+
}, "\u6DFB\u52A0", TAB_TITLE)), map(data, function (item, index) {
|
|
653
|
+
return _this4.renderContent(item, index);
|
|
654
|
+
}));
|
|
574
655
|
}
|
|
575
656
|
}]);
|
|
576
|
-
}(
|
|
577
|
-
export {
|
|
578
|
-
//# sourceMappingURL=.root75.js.map
|
|
657
|
+
}(DynamicForm);
|
|
658
|
+
export { NoenateRecord as default };
|