@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
|
@@ -1,965 +1,72 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
3
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
8
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
10
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
13
7
|
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; }
|
|
14
8
|
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; }
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import React, { useState, useEffect, Component } from 'react';
|
|
21
|
-
import classnames from 'classnames';
|
|
22
|
-
import 'antd/es/modal/style';
|
|
23
|
-
import _Modal from 'antd/es/modal';
|
|
24
|
-
import 'antd/es/row/style';
|
|
25
|
-
import _Row from 'antd/es/row';
|
|
26
|
-
import 'antd/es/col/style';
|
|
27
|
-
import _Col from 'antd/es/col';
|
|
28
|
-
import 'antd/es/button/style';
|
|
29
|
-
import _Button from 'antd/es/button';
|
|
30
|
-
import 'antd/es/popconfirm/style';
|
|
31
|
-
import _Popconfirm from 'antd/es/popconfirm';
|
|
32
|
-
import 'antd/es/message/style';
|
|
33
|
-
import _message from 'antd/es/message';
|
|
34
|
-
import 'antd/es/layout/style';
|
|
35
|
-
import _Layout from 'antd/es/layout';
|
|
36
|
-
import _filter from 'lodash/filter';
|
|
37
|
-
import _size from 'lodash/size';
|
|
38
|
-
import _concat from 'lodash/concat';
|
|
39
|
-
import _isNil from 'lodash/isNil';
|
|
40
|
-
import _compact from 'lodash/compact';
|
|
41
|
-
import _keys from 'lodash/keys';
|
|
42
|
-
import _indexOf from 'lodash/indexOf';
|
|
43
|
-
import _keyBy from 'lodash/keyBy';
|
|
44
|
-
import _isEmpty from 'lodash/isEmpty';
|
|
45
|
-
import _set from 'lodash/set';
|
|
46
|
-
import _map from 'lodash/map';
|
|
47
|
-
import '@lm_fe/utils';
|
|
48
|
-
import 'antd/es/form/style';
|
|
49
|
-
import _Form from 'antd/es/form';
|
|
9
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
+
import React, { Component } from 'react';
|
|
12
|
+
import { Input, InputNumber } from 'antd';
|
|
13
|
+
import { get, map } from 'lodash';
|
|
50
14
|
import { LazyAntd } from '@lm_fe/components';
|
|
51
|
-
import { PlusCircleOutlined, EditOutlined, DeleteOutlined } from '@ant-design/icons';
|
|
52
|
-
import '@lm_fe/env';
|
|
53
|
-
import 'lodash/isFunction';
|
|
54
|
-
import 'antd/es/space/style';
|
|
55
|
-
import 'antd/es/space';
|
|
56
|
-
import 'antd/es/input-number/style';
|
|
57
|
-
import 'antd/es/input-number';
|
|
58
|
-
import 'dayjs';
|
|
59
|
-
import 'antd/es/checkbox/style';
|
|
60
|
-
import 'antd/es/checkbox';
|
|
61
|
-
import 'lodash/isString';
|
|
62
|
-
import 'lodash/isNumber';
|
|
63
|
-
import 'lodash/isBoolean';
|
|
64
|
-
import 'antd/es/divider/style';
|
|
65
|
-
import 'antd/es/divider';
|
|
66
|
-
import 'antd/es/switch/style';
|
|
67
|
-
import 'antd/es/switch';
|
|
68
|
-
import 'lodash/join';
|
|
69
|
-
import 'lodash/isArray';
|
|
70
|
-
import 'lodash/identity';
|
|
71
|
-
import 'lodash/cloneDeep';
|
|
72
|
-
import '@lm_fe/service';
|
|
73
|
-
import 'lodash/isObject';
|
|
74
|
-
import 'antd/es/tooltip/style';
|
|
75
|
-
import 'antd/es/tooltip';
|
|
76
|
-
import 'antd/es/spin/style';
|
|
77
|
-
import 'antd/es/spin';
|
|
78
|
-
import 'lodash/has';
|
|
79
|
-
import 'lodash/includes';
|
|
80
|
-
import 'lodash/forEach';
|
|
81
|
-
import 'react-to-print';
|
|
82
|
-
import 'lodash/reduce';
|
|
83
|
-
import 'lodash/debounce';
|
|
84
|
-
import 'lodash/pickBy';
|
|
85
|
-
import 'antd/es/auto-complete/style';
|
|
86
|
-
import 'antd/es/auto-complete';
|
|
87
|
-
import 'lodash/nth';
|
|
88
|
-
import 'lodash/assign';
|
|
89
|
-
import 'antd/es/popover/style';
|
|
90
|
-
import 'antd/es/popover';
|
|
91
|
-
import 'antd/es/menu/style';
|
|
92
|
-
import 'antd/es/menu';
|
|
93
|
-
import 'store';
|
|
94
|
-
import 'antd/es/radio/style';
|
|
95
|
-
import 'antd/es/radio';
|
|
96
|
-
import 'lodash/last';
|
|
97
|
-
import 'lodash/toUpper';
|
|
98
|
-
var css_248z = ".index-module_textarea-with-template__c5XSs {\n position: relative;\n}\n.index-module_textarea-with-template__c5XSs .index-module_template-textarea__q2nFg {\n width: 100%;\n}\n.index-module_textarea-with-template__action__Zv-jV {\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 0;\n height: 0;\n border-width: 20px 20px 20px 20px;\n border-color: transparent #d8dce6 #d8dce6 transparent;\n border-style: solid;\n border-radius: 4px;\n background: transparent;\n cursor: pointer;\n}\n.index-module_textarea-with-template__action__Zv-jV span {\n position: relative;\n bottom: 1px;\n word-break: keep-all;\n color: #000;\n font-size: 12px;\n}\n.index-module_textarea-with-template__action_disabled__OF93k {\n color: rgba(0, 0, 0, 0.25);\n}\n.index-module_textarea-with-template__modal-nav__NWHlq {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.index-module_textarea-with-template__modal-nav__items__TKiZG {\n margin-right: 8px;\n}\n.index-module_textarea-with-template__modal-body__B6Eu5 {\n margin: 10px 0;\n}\n.index-module_textarea-with-template__modal-body__B6Eu5 .index-module_ant-tree-treenode__dw7Li .index-module_template-list-item__actions__xpate {\n display: none;\n}\n.index-module_textarea-with-template__modal-body__B6Eu5 .index-module_ant-tree-treenode__dw7Li:hover .index-module_template-list-item__actions__xpate {\n display: inline-block;\n}\n.index-module_textarea-with-template__modal-body__B6Eu5 .index-module_template-list-item__U7yFX {\n display: flex;\n flex-flow: row;\n align-items: center;\n}\n.index-module_textarea-with-template__modal-body__B6Eu5 .index-module_template-list-item__U7yFX .index-module_template-list-item__actions-icon__6aJmH {\n font-size: 14px;\n opacity: 0.8;\n cursor: pointer;\n margin-left: 10px;\n}\n.index-module_textarea-with-template__modal__LdbYP .index-module_ant-modal-content__Par0i .index-module_ant-modal-header__oehxg,\n.index-module_textarea-with-template__modal__LdbYP .index-module_ant-modal-content__Par0i .index-module_ant-modal-body__sWLPh,\n.index-module_textarea-with-template__modal__LdbYP .index-module_ant-modal-content__Par0i .index-module_ant-modal-footer__8-XNE {\n padding: 10px;\n}\n";
|
|
99
|
-
var styles = {
|
|
100
|
-
"textarea-with-template": "index-module_textarea-with-template__c5XSs",
|
|
101
|
-
"template-textarea": "index-module_template-textarea__q2nFg",
|
|
102
|
-
"textarea-with-template__action": "index-module_textarea-with-template__action__Zv-jV",
|
|
103
|
-
"textarea-with-template__action_disabled": "index-module_textarea-with-template__action_disabled__OF93k",
|
|
104
|
-
"textarea-with-template__modal-nav": "index-module_textarea-with-template__modal-nav__NWHlq",
|
|
105
|
-
"textarea-with-template__modal-nav__items": "index-module_textarea-with-template__modal-nav__items__TKiZG",
|
|
106
|
-
"textarea-with-template__modal-body": "index-module_textarea-with-template__modal-body__B6Eu5",
|
|
107
|
-
"ant-tree-treenode": "index-module_ant-tree-treenode__dw7Li",
|
|
108
|
-
"template-list-item__actions": "index-module_template-list-item__actions__xpate",
|
|
109
|
-
"template-list-item": "index-module_template-list-item__U7yFX",
|
|
110
|
-
"template-list-item__actions-icon": "index-module_template-list-item__actions-icon__6aJmH",
|
|
111
|
-
"textarea-with-template__modal": "index-module_textarea-with-template__modal__LdbYP",
|
|
112
|
-
"ant-modal-content": "index-module_ant-modal-content__Par0i",
|
|
113
|
-
"ant-modal-header": "index-module_ant-modal-header__oehxg",
|
|
114
|
-
"ant-modal-body": "index-module_ant-modal-body__sWLPh",
|
|
115
|
-
"ant-modal-footer": "index-module_ant-modal-footer__8-XNE"
|
|
116
|
-
};
|
|
117
|
-
styleInject(css_248z);
|
|
118
|
-
var rootTemplate = {
|
|
119
|
-
id: 0,
|
|
120
|
-
key: 0,
|
|
121
|
-
value: 0,
|
|
122
|
-
title: '一级模板',
|
|
123
|
-
children: []
|
|
124
|
-
};
|
|
125
|
-
var _transferTemplates = function transferTemplates(templates) {
|
|
126
|
-
var pid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
127
|
-
var temp = [];
|
|
128
|
-
_map(templates, function (item) {
|
|
129
|
-
if (item.pid === pid) {
|
|
130
|
-
item.key = item.id;
|
|
131
|
-
item.value = item.id;
|
|
132
|
-
item.title = item.val;
|
|
133
|
-
item.children = _transferTemplates(templates, item.id);
|
|
134
|
-
if (_isEmpty(item.children)) {
|
|
135
|
-
item.isLeaf = true;
|
|
136
|
-
} else {
|
|
137
|
-
item.isLeaf = false;
|
|
138
|
-
}
|
|
139
|
-
temp.push(item);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
return temp;
|
|
143
|
-
};
|
|
144
|
-
var NurseTypesMapping = {
|
|
145
|
-
dilatationAndCurettage: {
|
|
146
|
-
key: 'dilatationAndCurettage',
|
|
147
|
-
name: '刮宫术',
|
|
148
|
-
icon: ''
|
|
149
|
-
},
|
|
150
|
-
// Puberty: {
|
|
151
|
-
// key: 'Puberty',
|
|
152
|
-
// name: '清宫术',
|
|
153
|
-
// icon: '',
|
|
154
|
-
// api: '/api/labour-records',
|
|
155
|
-
// component: Curettage,
|
|
156
|
-
// },
|
|
157
|
-
putInIntrauterineDevice: {
|
|
158
|
-
key: 'putInIntrauterineDevice',
|
|
159
|
-
name: '宫内避孕器放置术',
|
|
160
|
-
icon: ''
|
|
161
|
-
},
|
|
162
|
-
takeOutIntrauterineDevice: {
|
|
163
|
-
key: 'takeOutIntrauterineDevice',
|
|
164
|
-
name: '宫内节育器取出术',
|
|
165
|
-
icon: ''
|
|
166
|
-
},
|
|
167
|
-
uterineFallopianTubeFluid: {
|
|
168
|
-
key: 'uterineFallopianTubeFluid',
|
|
169
|
-
name: '子宫输卵管通液术',
|
|
170
|
-
icon: ''
|
|
171
|
-
},
|
|
172
|
-
inducedAbortion: {
|
|
173
|
-
key: 'inducedAbortion',
|
|
174
|
-
name: '人工流产',
|
|
175
|
-
icon: ''
|
|
176
|
-
}
|
|
177
|
-
// vaginoscopy: {
|
|
178
|
-
// key: 'vaginoscopy',
|
|
179
|
-
// name: '阴道镜检查',
|
|
180
|
-
// icon: '',
|
|
181
|
-
// component: vaginoscopy,
|
|
182
|
-
// },
|
|
183
|
-
// hysteroscopicSurgery: {
|
|
184
|
-
// key: 'hysteroscopicSurgery',
|
|
185
|
-
// name: '宫腔镜手术',
|
|
186
|
-
// icon: '',
|
|
187
|
-
// component: hysteroscopicSurgery,
|
|
188
|
-
// },
|
|
189
|
-
// vulvarCystStoma: {
|
|
190
|
-
// key: 'vulvarCystStoma',
|
|
191
|
-
// name: '外阴囊肿造口术',
|
|
192
|
-
// icon: '',
|
|
193
|
-
// component: vulvarCystStoma,
|
|
194
|
-
// },
|
|
195
|
-
// uterosalpingography: {
|
|
196
|
-
// key: 'uterosalpingography',
|
|
197
|
-
// name: '子宫输卵管照影术',
|
|
198
|
-
// icon: '',
|
|
199
|
-
// component: uterosalpingography,
|
|
200
|
-
// },
|
|
201
|
-
};
|
|
202
|
-
var DEFAULT_URL = '/api/template-trees';
|
|
203
|
-
var needUserIDTypes = [2];
|
|
204
|
-
var MODAL_NAVS = {
|
|
205
|
-
department: {
|
|
206
|
-
key: 'department',
|
|
207
|
-
label: '科室模板',
|
|
208
|
-
type: 1
|
|
209
|
-
},
|
|
210
|
-
person: {
|
|
211
|
-
key: 'person',
|
|
212
|
-
label: '个人模板',
|
|
213
|
-
type: 2
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
var Tree$2 = LazyAntd.Tree,
|
|
217
|
-
TreeSelect$2 = LazyAntd.TreeSelect,
|
|
218
|
-
Select$2 = LazyAntd.Select,
|
|
219
|
-
Table$2 = LazyAntd.Table,
|
|
220
|
-
Dropdown$2 = LazyAntd.Dropdown,
|
|
221
|
-
Pagination$2 = LazyAntd.Pagination;
|
|
222
|
-
function TemplateSelect(props) {
|
|
223
|
-
var onChange = props.onChange,
|
|
224
|
-
templateType = props.templateType,
|
|
225
|
-
userid = props.userid,
|
|
226
|
-
_props$depid = props.depid,
|
|
227
|
-
depid = _props$depid === void 0 ? 1 : _props$depid;
|
|
228
|
-
var _useState = useState(props.value || 0),
|
|
229
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
230
|
-
value = _useState2[0],
|
|
231
|
-
setValue = _useState2[1];
|
|
232
|
-
var _useState3 = useState([]),
|
|
233
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
234
|
-
options = _useState4[0],
|
|
235
|
-
setOptions = _useState4[1];
|
|
236
|
-
useEffect(function () {
|
|
237
|
-
setValue(props.value);
|
|
238
|
-
}, [props.value]);
|
|
239
|
-
useEffect(function () {
|
|
240
|
-
getResources(DEFAULT_URL, {
|
|
241
|
-
'depid.equals': depid,
|
|
242
|
-
'type.equals': templateType,
|
|
243
|
-
'userid.equals': needUserIDTypes.indexOf(templateType) > -1 && userid ? userid : null,
|
|
244
|
-
size: 99999,
|
|
245
|
-
page: 0
|
|
246
|
-
}).then(function (res) {
|
|
247
|
-
setOptions([_objectSpread(_objectSpread({}, rootTemplate), {}, {
|
|
248
|
-
children: _transferTemplates(res)
|
|
249
|
-
})]);
|
|
250
|
-
});
|
|
251
|
-
}, []);
|
|
252
|
-
var handleChange = function handleChange(data) {
|
|
253
|
-
setValue(data);
|
|
254
|
-
onChange && onChange(data);
|
|
255
|
-
};
|
|
256
|
-
return /*#__PURE__*/React.createElement(TreeSelect$2, {
|
|
257
|
-
treeDefaultExpandAll: true,
|
|
258
|
-
value: value,
|
|
259
|
-
treeData: options,
|
|
260
|
-
onChange: handleChange
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
var Tree$1 = LazyAntd.Tree,
|
|
264
|
-
TreeSelect$1 = LazyAntd.TreeSelect,
|
|
265
|
-
Select$1 = LazyAntd.Select,
|
|
266
|
-
Table$1 = LazyAntd.Table,
|
|
267
|
-
Dropdown$1 = LazyAntd.Dropdown,
|
|
268
|
-
Pagination$1 = LazyAntd.Pagination;
|
|
269
|
-
function EditModal(props) {
|
|
270
|
-
var onCancel = props.onCancel,
|
|
271
|
-
onSubmit = props.onSubmit,
|
|
272
|
-
visible = props.visible,
|
|
273
|
-
templateType = props.templateType,
|
|
274
|
-
userid = props.userid,
|
|
275
|
-
data = props.data,
|
|
276
|
-
depid = props.depid;
|
|
277
|
-
var _Form$useForm = _Form.useForm(),
|
|
278
|
-
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
279
|
-
form = _Form$useForm2[0];
|
|
280
|
-
useEffect(function () {
|
|
281
|
-
form && form.setFieldsValue(_objectSpread(_objectSpread({}, data), {}, {
|
|
282
|
-
pid: _get(data, 'pid') || 0,
|
|
283
|
-
type: templateType
|
|
284
|
-
}));
|
|
285
|
-
}, []);
|
|
286
|
-
var handleSubmit = /*#__PURE__*/function () {
|
|
287
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
288
|
-
var formData;
|
|
289
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
290
|
-
while (1) switch (_context.prev = _context.next) {
|
|
291
|
-
case 0:
|
|
292
|
-
_context.next = 2;
|
|
293
|
-
return form.validateFields();
|
|
294
|
-
case 2:
|
|
295
|
-
formData = form && form.getFieldsValue();
|
|
296
|
-
onSubmit && onSubmit(formData);
|
|
297
|
-
case 4:
|
|
298
|
-
case "end":
|
|
299
|
-
return _context.stop();
|
|
300
|
-
}
|
|
301
|
-
}, _callee);
|
|
302
|
-
}));
|
|
303
|
-
return function handleSubmit() {
|
|
304
|
-
return _ref.apply(this, arguments);
|
|
305
|
-
};
|
|
306
|
-
}();
|
|
307
|
-
return /*#__PURE__*/React.createElement(_Modal, {
|
|
308
|
-
visible: visible,
|
|
309
|
-
className: "textarea-with-template__modal-edit",
|
|
310
|
-
onCancel: onCancel,
|
|
311
|
-
onOk: handleSubmit,
|
|
312
|
-
closable: false,
|
|
313
|
-
width: 500
|
|
314
|
-
}, /*#__PURE__*/React.createElement(_Form, {
|
|
315
|
-
autoComplete: "off",
|
|
316
|
-
form: form,
|
|
317
|
-
labelAlign: "right",
|
|
318
|
-
labelCol: {
|
|
319
|
-
span: 8
|
|
320
|
-
},
|
|
321
|
-
wrapperCol: {
|
|
322
|
-
span: 16
|
|
323
|
-
}
|
|
324
|
-
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
325
|
-
label: "\u6240\u5C5E\u6A21\u5757",
|
|
326
|
-
name: "type"
|
|
327
|
-
}, /*#__PURE__*/React.createElement(Select$1, null, _map(MODAL_NAVS, function (nav, key) {
|
|
328
|
-
return /*#__PURE__*/React.createElement(Select$1.Option, {
|
|
329
|
-
value: nav.type,
|
|
330
|
-
key: key
|
|
331
|
-
}, nav.label);
|
|
332
|
-
}))), /*#__PURE__*/React.createElement(_Form.Item, {
|
|
333
|
-
label: "\u4E0A\u7EA7\u6A21\u677F",
|
|
334
|
-
name: "pid"
|
|
335
|
-
}, /*#__PURE__*/React.createElement(TemplateSelect, {
|
|
336
|
-
templateType: templateType,
|
|
337
|
-
userid: userid,
|
|
338
|
-
depid: depid
|
|
339
|
-
})), /*#__PURE__*/React.createElement(_Form.Item, {
|
|
340
|
-
rules: [{
|
|
341
|
-
required: true,
|
|
342
|
-
message: '模板内容是必填项'
|
|
343
|
-
}],
|
|
344
|
-
label: "\u6A21\u677F\u5185\u5BB9",
|
|
345
|
-
name: "val"
|
|
346
|
-
}, /*#__PURE__*/React.createElement(_Input, null))));
|
|
347
|
-
}
|
|
348
15
|
var Tree = LazyAntd.Tree,
|
|
349
16
|
TreeSelect = LazyAntd.TreeSelect,
|
|
350
17
|
Select = LazyAntd.Select,
|
|
351
18
|
Table = LazyAntd.Table,
|
|
352
19
|
Dropdown = LazyAntd.Dropdown,
|
|
353
20
|
Pagination = LazyAntd.Pagination;
|
|
354
|
-
var
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
function TemplateModal(props) {
|
|
21
|
+
var wordList = ['岁', '月', '天'];
|
|
22
|
+
var AgeSelect = /*#__PURE__*/function (_Component) {
|
|
23
|
+
function AgeSelect() {
|
|
358
24
|
var _this;
|
|
359
|
-
_classCallCheck(this,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
_set(temp, 'isLeaf', false);
|
|
371
|
-
}
|
|
372
|
-
return temp;
|
|
373
|
-
});
|
|
374
|
-
});
|
|
375
|
-
_defineProperty(_this, "transferAllLabexamsList", function (labexams) {
|
|
376
|
-
var allLabexams = [];
|
|
377
|
-
_map(labexams, function (labexam) {
|
|
378
|
-
var tempLabexams = [];
|
|
379
|
-
if (!_isEmpty(_get(labexam, 'children'))) {
|
|
380
|
-
tempLabexams = _this.transferAllLabexamsList(_get(labexam, 'children'));
|
|
381
|
-
allLabexams = _concat(allLabexams, tempLabexams);
|
|
382
|
-
} else {
|
|
383
|
-
allLabexams.push(labexam);
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
return allLabexams;
|
|
387
|
-
});
|
|
388
|
-
_defineProperty(_this, "getTemplateList", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
389
|
-
var templateType, _this$props, user, _this$props$depid, depid, patientId, admissionId, pregnancyId, result, labexams, allLabexams, _result, _labexams, _allLabexams, _result2, _result3, templates, splitTemplates, splitTemplatesMapping;
|
|
390
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
391
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
392
|
-
case 0:
|
|
393
|
-
templateType = _this.state.templateType;
|
|
394
|
-
_this$props = _this.props, user = _this$props.user, _this$props$depid = _this$props.depid, depid = _this$props$depid === void 0 ? 1 : _this$props$depid, patientId = _this$props.patientId, admissionId = _this$props.admissionId, pregnancyId = _this$props.pregnancyId;
|
|
395
|
-
if (!(templateType === 3)) {
|
|
396
|
-
_context2.next = 11;
|
|
397
|
-
break;
|
|
398
|
-
}
|
|
399
|
-
_context2.next = 5;
|
|
400
|
-
return getResources("/api/getLabExamImportTree?pregnancyId=".concat(pregnancyId, "&admissionId=").concat(admissionId));
|
|
401
|
-
case 5:
|
|
402
|
-
result = _context2.sent;
|
|
403
|
-
labexams = _this.transferLabexamsList(result);
|
|
404
|
-
allLabexams = _this.transferAllLabexamsList(labexams);
|
|
405
|
-
_this.setState({
|
|
406
|
-
labexams: labexams,
|
|
407
|
-
allLabexams: allLabexams
|
|
408
|
-
});
|
|
409
|
-
_context2.next = 35;
|
|
410
|
-
break;
|
|
411
|
-
case 11:
|
|
412
|
-
if (!(templateType === 4)) {
|
|
413
|
-
_context2.next = 20;
|
|
414
|
-
break;
|
|
415
|
-
}
|
|
416
|
-
_context2.next = 14;
|
|
417
|
-
return getResources("/api/getImageExamImportTree?pregnancyId=".concat(pregnancyId, "&admissionId=").concat(admissionId));
|
|
418
|
-
case 14:
|
|
419
|
-
_result = _context2.sent;
|
|
420
|
-
_labexams = _this.transferLabexamsList(_result);
|
|
421
|
-
_allLabexams = _this.transferAllLabexamsList(_labexams);
|
|
422
|
-
_this.setState({
|
|
423
|
-
labexams: _labexams,
|
|
424
|
-
allLabexams: _allLabexams
|
|
425
|
-
});
|
|
426
|
-
_context2.next = 35;
|
|
427
|
-
break;
|
|
428
|
-
case 20:
|
|
429
|
-
if (!(templateType === 5)) {
|
|
430
|
-
_context2.next = 27;
|
|
431
|
-
break;
|
|
432
|
-
}
|
|
433
|
-
_context2.next = 23;
|
|
434
|
-
return getResources("/api/findDiagnosisByDateVisitType/".concat(admissionId));
|
|
435
|
-
case 23:
|
|
436
|
-
_result2 = _context2.sent;
|
|
437
|
-
_this.setState({
|
|
438
|
-
diagnosisList: _result2
|
|
439
|
-
});
|
|
440
|
-
_context2.next = 35;
|
|
441
|
-
break;
|
|
442
|
-
case 27:
|
|
443
|
-
_context2.next = 29;
|
|
444
|
-
return getResources(DEFAULT_URL, {
|
|
445
|
-
'depid.equals': depid,
|
|
446
|
-
'type.equals': templateType,
|
|
447
|
-
'userid.equals': needUserIDTypes.indexOf(templateType) > -1 && _get(user, 'basicInfo.id') ? _get(user, 'basicInfo.id') : null,
|
|
448
|
-
size: 99999,
|
|
449
|
-
page: 0
|
|
450
|
-
});
|
|
451
|
-
case 29:
|
|
452
|
-
_result3 = _context2.sent;
|
|
453
|
-
templates = _transferTemplates(_result3); // 拆分为多个树
|
|
454
|
-
splitTemplates = _compact(_map(templates, function (template) {
|
|
455
|
-
if (_get(template, 'pid') === 0) {
|
|
456
|
-
return _objectSpread(_objectSpread({}, template), {}, {
|
|
457
|
-
children: []
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
}));
|
|
461
|
-
splitTemplatesMapping = _keyBy(splitTemplates, 'id');
|
|
462
|
-
_map(_result3, function (template) {
|
|
463
|
-
var templatePid = _get(template, 'pid');
|
|
464
|
-
if (_indexOf(_keys(splitTemplatesMapping), String(templatePid)) > -1) {
|
|
465
|
-
splitTemplatesMapping[templatePid]['children'].push(template);
|
|
466
|
-
}
|
|
467
|
-
});
|
|
468
|
-
_this.setState({
|
|
469
|
-
splitTemplatesMapping: splitTemplatesMapping,
|
|
470
|
-
result: _result3
|
|
471
|
-
});
|
|
472
|
-
case 35:
|
|
473
|
-
case "end":
|
|
474
|
-
return _context2.stop();
|
|
475
|
-
}
|
|
476
|
-
}, _callee2);
|
|
477
|
-
})));
|
|
478
|
-
_defineProperty(_this, "handleAddTemplate", function (e) {
|
|
479
|
-
e.stopPropagation();
|
|
480
|
-
_this.setState({
|
|
481
|
-
editModalVisible: true,
|
|
482
|
-
activeTemplate: {}
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
_defineProperty(_this, "handleHideEditModal", function () {
|
|
486
|
-
_this.setState({
|
|
487
|
-
editModalVisible: false,
|
|
488
|
-
activeTemplate: {}
|
|
489
|
-
});
|
|
490
|
-
});
|
|
491
|
-
_defineProperty(_this, "closeModal", function () {
|
|
492
|
-
var onCancel = _this.props.onCancel;
|
|
493
|
-
onCancel && onCancel();
|
|
494
|
-
_this.setState({
|
|
495
|
-
splitTemplatesMapping: {}
|
|
496
|
-
});
|
|
497
|
-
});
|
|
498
|
-
_defineProperty(_this, "handleSubmitEditModal", /*#__PURE__*/function () {
|
|
499
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data) {
|
|
500
|
-
var _this$state, templateType, activeTemplate, _this$props2, user, _this$props2$depid, depid;
|
|
501
|
-
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
502
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
503
|
-
case 0:
|
|
504
|
-
_this$state = _this.state, templateType = _this$state.templateType, activeTemplate = _this$state.activeTemplate;
|
|
505
|
-
_this$props2 = _this.props, user = _this$props2.user, _this$props2$depid = _this$props2.depid, depid = _this$props2$depid === void 0 ? 1 : _this$props2$depid;
|
|
506
|
-
if (templateType === 2) {
|
|
507
|
-
_set(data, 'userid', _get(user, 'basicInfo.id'));
|
|
508
|
-
}
|
|
509
|
-
if (_isEmpty(activeTemplate)) {
|
|
510
|
-
_context3.next = 8;
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
_context3.next = 6;
|
|
514
|
-
return updateResources(DEFAULT_URL, _objectSpread(_objectSpread(_objectSpread({}, activeTemplate), data), {}, {
|
|
515
|
-
depid: depid
|
|
516
|
-
}));
|
|
517
|
-
case 6:
|
|
518
|
-
_context3.next = 10;
|
|
519
|
-
break;
|
|
520
|
-
case 8:
|
|
521
|
-
_context3.next = 10;
|
|
522
|
-
return createResources(DEFAULT_URL, _objectSpread(_objectSpread({}, data), {}, {
|
|
523
|
-
depid: depid
|
|
524
|
-
}));
|
|
525
|
-
case 10:
|
|
526
|
-
_this.setState({
|
|
527
|
-
editModalVisible: false,
|
|
528
|
-
activeTemplate: {}
|
|
529
|
-
});
|
|
530
|
-
_message.success('提交模板成功');
|
|
531
|
-
_this.getTemplateList();
|
|
532
|
-
case 13:
|
|
533
|
-
case "end":
|
|
534
|
-
return _context3.stop();
|
|
535
|
-
}
|
|
536
|
-
}, _callee3);
|
|
537
|
-
}));
|
|
538
|
-
return function (_x) {
|
|
539
|
-
return _ref3.apply(this, arguments);
|
|
540
|
-
};
|
|
541
|
-
}());
|
|
542
|
-
_defineProperty(_this, "handleEditTemplate", function (template) {
|
|
543
|
-
return /*#__PURE__*/function () {
|
|
544
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
|
|
545
|
-
var activeTemplate;
|
|
546
|
-
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
547
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
548
|
-
case 0:
|
|
549
|
-
e.stopPropagation();
|
|
550
|
-
_context4.next = 3;
|
|
551
|
-
return getResourcesByID(DEFAULT_URL, _get(template, 'id'));
|
|
552
|
-
case 3:
|
|
553
|
-
activeTemplate = _context4.sent;
|
|
554
|
-
_this.setState({
|
|
555
|
-
editModalVisible: true,
|
|
556
|
-
activeTemplate: activeTemplate
|
|
557
|
-
});
|
|
558
|
-
case 5:
|
|
559
|
-
case "end":
|
|
560
|
-
return _context4.stop();
|
|
561
|
-
}
|
|
562
|
-
}, _callee4);
|
|
563
|
-
}));
|
|
564
|
-
return function (_x2) {
|
|
565
|
-
return _ref4.apply(this, arguments);
|
|
566
|
-
};
|
|
567
|
-
}();
|
|
568
|
-
});
|
|
569
|
-
_defineProperty(_this, "handleConfirmDelete", function (template) {
|
|
570
|
-
return /*#__PURE__*/function () {
|
|
571
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(e) {
|
|
572
|
-
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
573
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
574
|
-
case 0:
|
|
575
|
-
e.stopPropagation();
|
|
576
|
-
_context5.next = 3;
|
|
577
|
-
return deleteResourcesByID(DEFAULT_URL, _get(template, 'id'));
|
|
578
|
-
case 3:
|
|
579
|
-
_message.success('删除模板成功');
|
|
580
|
-
_this.getTemplateList();
|
|
581
|
-
case 5:
|
|
582
|
-
case "end":
|
|
583
|
-
return _context5.stop();
|
|
584
|
-
}
|
|
585
|
-
}, _callee5);
|
|
586
|
-
}));
|
|
587
|
-
return function (_x3) {
|
|
588
|
-
return _ref5.apply(this, arguments);
|
|
589
|
-
};
|
|
590
|
-
}();
|
|
591
|
-
});
|
|
592
|
-
_defineProperty(_this, "handleSelectTemplates", function (checked, e) {
|
|
593
|
-
var selectedRowKeys = _this.state.selectedRowKeys;
|
|
594
|
-
_this.setState({
|
|
595
|
-
selectedRowKeys: Array.from(new Set([].concat(_toConsumableArray(selectedRowKeys), _toConsumableArray(checked)))),
|
|
596
|
-
selectedRows: e.checkedNodes
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
_defineProperty(_this, "getproposalTemp", function (data, info) {
|
|
600
|
-
_this.setState({
|
|
601
|
-
surgicalSelected: data
|
|
602
|
-
});
|
|
603
|
-
});
|
|
604
|
-
_defineProperty(_this, "handleOk", function () {
|
|
605
|
-
var onOk = _this.props.onOk;
|
|
606
|
-
var _this$state2 = _this.state,
|
|
607
|
-
selectedRowKeys = _this$state2.selectedRowKeys,
|
|
608
|
-
result = _this$state2.result,
|
|
609
|
-
templateType = _this$state2.templateType,
|
|
610
|
-
allLabexams = _this$state2.allLabexams,
|
|
611
|
-
selectedRows = _this$state2.selectedRows,
|
|
612
|
-
surgicalSelected = _this$state2.surgicalSelected;
|
|
613
|
-
var content = '';
|
|
614
|
-
var addList = [];
|
|
615
|
-
var treeData = result;
|
|
616
|
-
if (templateType === 3 || templateType === 4) {
|
|
617
|
-
treeData = allLabexams;
|
|
618
|
-
}
|
|
619
|
-
var treeDataMapping = _keyBy(treeData, 'id');
|
|
620
|
-
_map(selectedRowKeys, function (selectedKey) {
|
|
621
|
-
var item = _get(treeDataMapping, selectedKey);
|
|
622
|
-
if (!_isEmpty(item) && _get(item, 'isLeaf')) {
|
|
623
|
-
content += "".concat(_get(treeDataMapping, "".concat(selectedKey, ".val")), "\uFF1B");
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
if (templateType === 5) {
|
|
627
|
-
addList = _filter(selectedRows, function (item) {
|
|
628
|
-
return !item.type;
|
|
629
|
-
});
|
|
630
|
-
if (_size(addList) > 0) {
|
|
631
|
-
_map(addList, function (item) {
|
|
632
|
-
delete item.id;
|
|
633
|
-
});
|
|
634
|
-
}
|
|
635
|
-
onOk && onOk(addList);
|
|
636
|
-
return;
|
|
637
|
-
}
|
|
638
|
-
for (var i = 0; i < surgicalSelected.length; i++) {
|
|
639
|
-
content += "".concat(surgicalSelected[i], "\uFF1B");
|
|
640
|
-
}
|
|
641
|
-
onOk && onOk(content);
|
|
642
|
-
});
|
|
643
|
-
_defineProperty(_this, "handleChangeTemplateType", function (nav) {
|
|
644
|
-
return /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
645
|
-
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
646
|
-
while (1) switch (_context6.prev = _context6.next) {
|
|
647
|
-
case 0:
|
|
648
|
-
_this.setState({
|
|
649
|
-
templateType: nav.type
|
|
650
|
-
}, function () {
|
|
651
|
-
_this.getTemplateList();
|
|
652
|
-
});
|
|
653
|
-
case 1:
|
|
654
|
-
case "end":
|
|
655
|
-
return _context6.stop();
|
|
656
|
-
}
|
|
657
|
-
}, _callee6);
|
|
658
|
-
}));
|
|
659
|
-
});
|
|
660
|
-
_defineProperty(_this, "transferTemplateData", function (data) {
|
|
661
|
-
var treeData = [];
|
|
662
|
-
_map(data, function (item, index) {
|
|
663
|
-
if (item.date) {
|
|
664
|
-
item.title = "".concat(item.date, " ").concat(item.type);
|
|
665
|
-
item.key = index;
|
|
666
|
-
var diags = [];
|
|
667
|
-
if (_size(item.pds) > 0) {
|
|
668
|
-
diags = item.pds;
|
|
669
|
-
} else {
|
|
670
|
-
diags = item.ods;
|
|
671
|
-
}
|
|
672
|
-
item.children = _this.transferTemplateData(diags);
|
|
673
|
-
} else {
|
|
674
|
-
item.title = item.diagnosis;
|
|
675
|
-
item.key = String(item.id);
|
|
676
|
-
}
|
|
677
|
-
if (_isEmpty(item.children)) {
|
|
678
|
-
item.isLeaf = true;
|
|
679
|
-
} else {
|
|
680
|
-
item.isLeaf = false;
|
|
681
|
-
}
|
|
682
|
-
treeData.push(item);
|
|
683
|
-
});
|
|
684
|
-
return treeData;
|
|
685
|
-
});
|
|
686
|
-
_defineProperty(_this, "renderDiagnosisHistory", function () {
|
|
687
|
-
var diagnosisList = _this.state.diagnosisList;
|
|
688
|
-
var treeData = _this.transferTemplateData(diagnosisList);
|
|
689
|
-
return _size(treeData) > 0 && /*#__PURE__*/React.createElement(Tree, {
|
|
690
|
-
checkable: true,
|
|
691
|
-
defaultExpandAll: true,
|
|
692
|
-
onCheck: _this.handleSelectTemplates,
|
|
693
|
-
treeData: treeData
|
|
694
|
-
});
|
|
695
|
-
});
|
|
696
|
-
_defineProperty(_this, "renderLabexams", function () {
|
|
697
|
-
var labexams = _this.state.labexams;
|
|
698
|
-
return /*#__PURE__*/React.createElement(Tree, {
|
|
699
|
-
checkable: true,
|
|
700
|
-
defaultExpandAll: true,
|
|
701
|
-
onCheck: _this.handleSelectTemplates
|
|
702
|
-
}, _this.renderTreeNode(labexams));
|
|
703
|
-
});
|
|
704
|
-
_defineProperty(_this, "renderTreeNode", function (templatesTree) {
|
|
705
|
-
var templateType = _this.state.templateType;
|
|
706
|
-
return _map(templatesTree, function (template) {
|
|
707
|
-
if (!_isEmpty(_get(template, 'children')) && !_isNil(_get(template, 'children'))) {
|
|
708
|
-
return /*#__PURE__*/React.createElement(Tree.TreeNode, {
|
|
709
|
-
title: /*#__PURE__*/React.createElement("div", {
|
|
710
|
-
className: styles["template-list-item"]
|
|
711
|
-
}, /*#__PURE__*/React.createElement("div", null, "\xA0", _get(template, 'val'), "\xA0"), (templateType === 1 || templateType === 2) && /*#__PURE__*/React.createElement("div", {
|
|
712
|
-
className: styles["template-list-item__actions"]
|
|
713
|
-
}, /*#__PURE__*/React.createElement(PlusCircleOutlined, {
|
|
714
|
-
className: styles["template-list-item__actions-icon"],
|
|
715
|
-
onClick: _this.handleAddTemplate
|
|
716
|
-
}), /*#__PURE__*/React.createElement(EditOutlined, {
|
|
717
|
-
className: styles["template-list-item__actions-icon"],
|
|
718
|
-
onClick: _this.handleEditTemplate(template)
|
|
719
|
-
}), /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
720
|
-
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6A21\u677F\u5417\uFF1F",
|
|
721
|
-
onConfirm: _this.handleConfirmDelete(template)
|
|
722
|
-
}, /*#__PURE__*/React.createElement(DeleteOutlined, {
|
|
723
|
-
className: styles["template-list-item__actions-icon"]
|
|
724
|
-
})))),
|
|
725
|
-
key: _get(template, 'id')
|
|
726
|
-
}, _this.renderTreeNode(_get(template, 'children')));
|
|
727
|
-
}
|
|
728
|
-
return /*#__PURE__*/React.createElement(Tree.TreeNode, {
|
|
729
|
-
title: /*#__PURE__*/React.createElement("div", {
|
|
730
|
-
className: styles["template-list-item"]
|
|
731
|
-
}, /*#__PURE__*/React.createElement("div", null, _get(template, 'val')), (templateType === 1 || templateType === 2) && /*#__PURE__*/React.createElement("div", {
|
|
732
|
-
className: styles["template-list-item__actions"]
|
|
733
|
-
}, /*#__PURE__*/React.createElement(PlusCircleOutlined, {
|
|
734
|
-
className: styles["template-list-item__actions-icon"],
|
|
735
|
-
onClick: _this.handleAddTemplate
|
|
736
|
-
}), /*#__PURE__*/React.createElement(EditOutlined, {
|
|
737
|
-
className: styles["template-list-item__actions-icon"],
|
|
738
|
-
onClick: _this.handleEditTemplate(template)
|
|
739
|
-
}), /*#__PURE__*/React.createElement(_Popconfirm, {
|
|
740
|
-
title: "\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u6A21\u677F\u5417\uFF1F",
|
|
741
|
-
onConfirm: _this.handleConfirmDelete(template)
|
|
742
|
-
}, /*#__PURE__*/React.createElement(DeleteOutlined, {
|
|
743
|
-
className: styles["template-list-item__actions-icon"]
|
|
744
|
-
})))),
|
|
745
|
-
key: _get(template, 'id')
|
|
746
|
-
});
|
|
747
|
-
});
|
|
748
|
-
});
|
|
749
|
-
_defineProperty(_this, "renderModal", function () {
|
|
750
|
-
var depid = _this.props.depid;
|
|
751
|
-
var _this$state3 = _this.state,
|
|
752
|
-
editModalVisible = _this$state3.editModalVisible,
|
|
753
|
-
templateType = _this$state3.templateType,
|
|
754
|
-
activeTemplate = _this$state3.activeTemplate,
|
|
755
|
-
splitTemplatesMapping = _this$state3.splitTemplatesMapping,
|
|
756
|
-
surgicalTemplate = _this$state3.surgicalTemplate;
|
|
757
|
-
return /*#__PURE__*/React.createElement(_Layout, null, /*#__PURE__*/React.createElement(Content, {
|
|
758
|
-
style: {
|
|
759
|
-
background: '#fff',
|
|
760
|
-
paddingLeft: '10px',
|
|
761
|
-
overflow: 'auto',
|
|
762
|
-
maxHeight: '520px'
|
|
763
|
-
}
|
|
764
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
765
|
-
className: styles["textarea-with-template__modal-nav"]
|
|
766
|
-
}, /*#__PURE__*/React.createElement("div", null, _map(MODAL_NAVS, function (nav, key) {
|
|
767
|
-
return /*#__PURE__*/React.createElement(_Button, {
|
|
768
|
-
className: styles["textarea-with-template__modal-nav__items"],
|
|
769
|
-
type: templateType === nav.type ? 'primary' : 'default',
|
|
770
|
-
key: key,
|
|
771
|
-
onClick: _this.handleChangeTemplateType(nav)
|
|
772
|
-
}, nav.label);
|
|
773
|
-
})), (templateType === 1 || templateType === 2) && /*#__PURE__*/React.createElement(_Button, {
|
|
774
|
-
onClick: _this.handleAddTemplate,
|
|
775
|
-
style: {
|
|
776
|
-
marginRight: 10
|
|
777
|
-
}
|
|
778
|
-
}, "\u6DFB\u52A0\u6A21\u677F")), /*#__PURE__*/React.createElement(_Row, {
|
|
779
|
-
className: styles["textarea-with-template__modal-body"]
|
|
780
|
-
}, (templateType === 1 || templateType === 2) && /*#__PURE__*/React.createElement(React.Fragment, null, _map(splitTemplatesMapping, function (templateTree) {
|
|
781
|
-
return /*#__PURE__*/React.createElement(_Col, {
|
|
782
|
-
span: 12
|
|
783
|
-
}, /*#__PURE__*/React.createElement(Tree, {
|
|
784
|
-
checkable: true,
|
|
785
|
-
defaultExpandAll: true,
|
|
786
|
-
onCheck: _this.handleSelectTemplates
|
|
787
|
-
}, _this.renderTreeNode([templateTree])));
|
|
788
|
-
})), (templateType === 3 || templateType === 4) && _this.renderLabexams(), templateType === 5 && _this.renderDiagnosisHistory()), editModalVisible && /*#__PURE__*/React.createElement(EditModal, {
|
|
789
|
-
templateType: templateType,
|
|
790
|
-
userid: _get(_this.props, 'user.basicInfo.id'),
|
|
791
|
-
visible: editModalVisible,
|
|
792
|
-
data: activeTemplate,
|
|
793
|
-
depid: depid,
|
|
794
|
-
onCancel: _this.handleHideEditModal,
|
|
795
|
-
onSubmit: _this.handleSubmitEditModal
|
|
796
|
-
})));
|
|
25
|
+
_classCallCheck(this, AgeSelect);
|
|
26
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
27
|
+
args[_key] = arguments[_key];
|
|
28
|
+
}
|
|
29
|
+
_this = _callSuper(this, AgeSelect, [].concat(args));
|
|
30
|
+
_defineProperty(_this, "handleInputChange", function (data, type) {
|
|
31
|
+
var _this$props = _this.props,
|
|
32
|
+
onChange = _this$props.onChange,
|
|
33
|
+
value = _this$props.value;
|
|
34
|
+
var newValue = _objectSpread(_objectSpread({}, value), {}, _defineProperty({}, type, data));
|
|
35
|
+
onChange && onChange(newValue);
|
|
797
36
|
});
|
|
798
|
-
_this.state = {
|
|
799
|
-
result: [],
|
|
800
|
-
labexams: [],
|
|
801
|
-
allLabexams: [],
|
|
802
|
-
selectedRowKeys: [],
|
|
803
|
-
selectedRows: [],
|
|
804
|
-
editModalVisible: false,
|
|
805
|
-
templateType: 1,
|
|
806
|
-
activeTemplate: {},
|
|
807
|
-
splitTemplatesMapping: {},
|
|
808
|
-
diagnosisList: [],
|
|
809
|
-
surgicalTemplate: [],
|
|
810
|
-
surgicalSelected: []
|
|
811
|
-
};
|
|
812
37
|
return _this;
|
|
813
38
|
}
|
|
814
|
-
_inherits(
|
|
815
|
-
return _createClass(
|
|
816
|
-
key: "componentDidMount",
|
|
817
|
-
value: function () {
|
|
818
|
-
var _componentDidMount = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
|
|
819
|
-
var surgicalTemplate;
|
|
820
|
-
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
821
|
-
while (1) switch (_context7.prev = _context7.next) {
|
|
822
|
-
case 0:
|
|
823
|
-
surgicalTemplate = [];
|
|
824
|
-
_context7.next = 3;
|
|
825
|
-
return this.getTemplateList();
|
|
826
|
-
case 3:
|
|
827
|
-
//手术模板
|
|
828
|
-
_map(NurseTypesMapping, function (item, index) {
|
|
829
|
-
surgicalTemplate.push({
|
|
830
|
-
title: item.name,
|
|
831
|
-
key: item.name
|
|
832
|
-
});
|
|
833
|
-
});
|
|
834
|
-
this.setState({
|
|
835
|
-
surgicalTemplate: surgicalTemplate
|
|
836
|
-
});
|
|
837
|
-
case 5:
|
|
838
|
-
case "end":
|
|
839
|
-
return _context7.stop();
|
|
840
|
-
}
|
|
841
|
-
}, _callee7, this);
|
|
842
|
-
}));
|
|
843
|
-
function componentDidMount() {
|
|
844
|
-
return _componentDidMount.apply(this, arguments);
|
|
845
|
-
}
|
|
846
|
-
return componentDidMount;
|
|
847
|
-
}()
|
|
848
|
-
}, {
|
|
39
|
+
_inherits(AgeSelect, _Component);
|
|
40
|
+
return _createClass(AgeSelect, [{
|
|
849
41
|
key: "render",
|
|
850
42
|
value: function render() {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}), this.renderModal());
|
|
858
|
-
}
|
|
859
|
-
}]);
|
|
860
|
-
}(React.Component);
|
|
861
|
-
var TemplateModal$1 = TemplateModal;
|
|
862
|
-
var TextareaWithTemplate = /*#__PURE__*/function (_Component) {
|
|
863
|
-
function TextareaWithTemplate(props) {
|
|
864
|
-
var _this2;
|
|
865
|
-
_classCallCheck(this, TextareaWithTemplate);
|
|
866
|
-
_this2 = _callSuper(this, TextareaWithTemplate, [props]);
|
|
867
|
-
_defineProperty(_this2, "handleTextareaChange", function (e) {
|
|
868
|
-
var onChange = _this2.props.onChange;
|
|
869
|
-
_this2.setState({
|
|
870
|
-
value: e.target.value
|
|
871
|
-
});
|
|
872
|
-
onChange && onChange(e.target.value);
|
|
873
|
-
});
|
|
874
|
-
_defineProperty(_this2, "openModal", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
875
|
-
var disabled;
|
|
876
|
-
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
877
|
-
while (1) switch (_context8.prev = _context8.next) {
|
|
878
|
-
case 0:
|
|
879
|
-
disabled = _this2.props.disabled;
|
|
880
|
-
if (!disabled) {
|
|
881
|
-
_context8.next = 3;
|
|
882
|
-
break;
|
|
883
|
-
}
|
|
884
|
-
return _context8.abrupt("return");
|
|
885
|
-
case 3:
|
|
886
|
-
_this2.setState({
|
|
887
|
-
modalVisible: true
|
|
888
|
-
});
|
|
889
|
-
case 4:
|
|
890
|
-
case "end":
|
|
891
|
-
return _context8.stop();
|
|
43
|
+
var _this2 = this;
|
|
44
|
+
var value = this.props.value;
|
|
45
|
+
return /*#__PURE__*/React.createElement(Input.Group, {
|
|
46
|
+
compact: true,
|
|
47
|
+
style: {
|
|
48
|
+
display: 'flex'
|
|
892
49
|
}
|
|
893
|
-
},
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
})
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
var value = _get(_this2.state, 'value') || '';
|
|
903
|
-
var content = "".concat(value).concat(data);
|
|
904
|
-
_this2.setState({
|
|
905
|
-
value: "".concat(value).concat(data),
|
|
906
|
-
modalVisible: false
|
|
907
|
-
});
|
|
908
|
-
onChange && onChange(content);
|
|
909
|
-
});
|
|
910
|
-
_this2.state = {
|
|
911
|
-
modalVisible: false,
|
|
912
|
-
value: props.value
|
|
913
|
-
};
|
|
914
|
-
return _this2;
|
|
915
|
-
}
|
|
916
|
-
_inherits(TextareaWithTemplate, _Component);
|
|
917
|
-
return _createClass(TextareaWithTemplate, [{
|
|
918
|
-
key: "componentWillReceiveProps",
|
|
919
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
920
|
-
if (!_isEqual(nextProps.value, this.props.value)) {
|
|
921
|
-
this.setState({
|
|
922
|
-
value: nextProps.value
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}, {
|
|
927
|
-
key: "render",
|
|
928
|
-
value: function render() {
|
|
929
|
-
var _this$state4 = this.state,
|
|
930
|
-
modalVisible = _this$state4.modalVisible,
|
|
931
|
-
value = _this$state4.value;
|
|
932
|
-
var _this$props3 = this.props,
|
|
933
|
-
disabled = _this$props3.disabled,
|
|
934
|
-
patientId = _this$props3.patientId,
|
|
935
|
-
admissionId = _this$props3.admissionId,
|
|
936
|
-
pregnancyId = _this$props3.pregnancyId;
|
|
937
|
-
var inputProps = _get(this.props, 'config.inputProps') || {};
|
|
938
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
939
|
-
className: styles["textarea-with-template"]
|
|
940
|
-
}, /*#__PURE__*/React.createElement(_Input.TextArea, _extends({
|
|
941
|
-
disabled: disabled,
|
|
942
|
-
title: value,
|
|
943
|
-
value: value,
|
|
944
|
-
autoSize: {
|
|
945
|
-
minRows: 2,
|
|
946
|
-
maxRows: 5
|
|
50
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
51
|
+
value: get(value, 'age'),
|
|
52
|
+
onChange: function onChange(data) {
|
|
53
|
+
return _this2.handleInputChange(data, 'age');
|
|
54
|
+
}
|
|
55
|
+
}), /*#__PURE__*/React.createElement(Select, {
|
|
56
|
+
value: get(value, 'ageType'),
|
|
57
|
+
onChange: function onChange(data) {
|
|
58
|
+
return _this2.handleInputChange(data, 'ageType');
|
|
947
59
|
},
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
patientId: patientId,
|
|
958
|
-
admissionId: admissionId,
|
|
959
|
-
pregnancyId: pregnancyId
|
|
960
|
-
}));
|
|
60
|
+
style: {
|
|
61
|
+
width: 56
|
|
62
|
+
}
|
|
63
|
+
}, map(wordList, function (item) {
|
|
64
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
65
|
+
key: item,
|
|
66
|
+
value: item
|
|
67
|
+
}, item);
|
|
68
|
+
})));
|
|
961
69
|
}
|
|
962
70
|
}]);
|
|
963
71
|
}(Component);
|
|
964
|
-
export {
|
|
965
|
-
//# sourceMappingURL=.root110.js.map
|
|
72
|
+
export { AgeSelect as default };
|