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