Selaa lähdekoodia

为空的情况

李帅 1 kuukausi sitten
vanhempi
commit
bc3c088cf3
2 muutettua tiedostoa jossa 78 lisäystä ja 87 poistoa
  1. 49 50
      src/views/patientCenter/index.vue
  2. 29 37
      src/views/patientCenter/medical/yaChi.vue

+ 49 - 50
src/views/patientCenter/index.vue

@@ -1012,56 +1012,55 @@ export default {
1012 1012
           this.initList()
1013 1013
           break
1014 1014
         case '2':
1015
-          this.addMedicalDialogFlag = false
1016
-          this.editId = ''
1017
-          this.isLookObj = {}
1018
-          this.teethList = []
1019
-          this.yaAllList = []
1020
-          this.$refs.addMedicalDialogRef.allList = []
1021
-          this.$refs.addMedicalTreeDialogRef.listArr = []
1022
-
1023
-          this.chiefComplaintContent=""
1024
-          this.chiefComplaintStr=[]
1025
-          this.chiefComplaintOptions={}
1026
-          this.chiefComplaintMap= new Map()
1027
-
1028
-          this.presentIllnessContent=""
1029
-          this.presentIllnessStr=[]
1030
-          this.presentIllnessOptions={}
1031
-          this.presentIllnessMap= new Map()
1032
-
1033
-          this.inspectContent=""
1034
-          this.inspectStr=[]
1035
-          this.inspectOptions={}
1036
-          this.inspectMap= new Map()
1037
-
1038
-          this.diagnosisContent=""
1039
-          this.diagnosisStr=[]
1040
-          this.diagnosisOptions={}
1041
-          this.diagnosisMap= new Map()
1042
-
1043
-          this.treatmentPlanningContent=""
1044
-          this.treatmentPlanningStr=[]
1045
-          this.treatmentPlanningOptions={}
1046
-          this.treatmentPlanningMap= new Map()
1047
-
1048
-          this.imageInspectContent=""
1049
-          this.imageInspectStr=[]
1050
-          this.imageInspectOption={}
1051
-          this.imageInspectMap= new Map()
1052
-
1053
-          this.disposeContent=""
1054
-          this.disposeStr=[]
1055
-          this.disposeOptions={}
1056
-          this.disposeMap= new Map()
1057
-
1058
-          this.noteContent=""
1059
-          this.noteStr=[]
1060
-          this.noteOptions={}
1061
-          this.noteMap= new Map()
1062
-          setTimeout(() => {
1063
-            this.$refs.medicalRef.initMedicalRecordList()
1064
-          }, 100)
1015
+        this.addMedicalDialogFlag = false
1016
+      this.MedicalRecordetailsFlag = false
1017
+      this.historyList = []
1018
+      this.yaAllList = []
1019
+      this.addyaFlag = false
1020
+      this.historyFlag = false
1021
+      this.$refs.medicalRef.initMedicalRecordList()
1022
+      this.$refs.addMedicalDialogRef.allList = []
1023
+
1024
+
1025
+      this.chiefComplaintContent=""
1026
+      this.chiefComplaintStr=[]
1027
+      this.chiefComplaintOptions={}
1028
+      this.chiefComplaintMap= new Map()
1029
+
1030
+      this.presentIllnessContent=""
1031
+      this.presentIllnessStr=[]
1032
+      this.presentIllnessOptions={}
1033
+      this.presentIllnessMap= new Map()
1034
+
1035
+      this.inspectContent=""
1036
+      this.inspectStr=[]
1037
+      this.inspectOptions={}
1038
+      this.inspectMap= new Map()
1039
+
1040
+      this.diagnosisContent=""
1041
+      this.diagnosisStr=[]
1042
+      this.diagnosisOptions={}
1043
+      this.diagnosisMap= new Map()
1044
+
1045
+      this.treatmentPlanningContent=""
1046
+      this.treatmentPlanningStr=[]
1047
+      this.treatmentPlanningOptions={}
1048
+      this.treatmentPlanningMap= new Map()
1049
+
1050
+      this.imageInspectContent=""
1051
+      this.imageInspectStr=[]
1052
+      this.imageInspectOption={}
1053
+      this.imageInspectMap= new Map()
1054
+
1055
+      this.disposeContent=""
1056
+      this.disposeStr=[]
1057
+      this.disposeOptions={}
1058
+      this.disposeMap= new Map()
1059
+
1060
+      this.noteContent=""
1061
+      this.noteStr=[]
1062
+      this.noteOptions={}
1063
+      this.noteMap= new Map()
1065 1064
           break
1066 1065
         case '3':
1067 1066
           this.addMedicalTreeDialogFlag = false

+ 29 - 37
src/views/patientCenter/medical/yaChi.vue

@@ -3392,16 +3392,21 @@ export default {
3392 3392
       const ele = this.$refs.imageInspectText
3393 3393
       let text = null
3394 3394
       let newVal = ''
3395
-      Array.from(ele.children).forEach((item) => {
3396
-        const child = item.children[0]
3397
-        if (item.children[0].className === 'string') {
3398
-          newVal = newVal + child.textContent
3399
-        } else if (item.children[0].className === 'select') {
3400
-          newVal = newVal + child.children[0].value
3401
-        }
3402
-      })
3403
-      text = newVal.replace(/\s/g, '')
3404
-      console.log(text);
3395
+      
3396
+      if(ele.innerText){
3397
+        text = ele.innerText
3398
+      }else {
3399
+        Array.from(ele.children).forEach((item) => {
3400
+          const child = item.children[0]
3401
+          if (item.children[0].className === 'string') {
3402
+            console.log(item.children[0],"newVal + child.textContent");
3403
+            newVal = newVal + child.textContent
3404
+          } else if (item.children[0].className === 'select') {
3405
+            newVal = newVal + child.children[0].value
3406
+          }
3407
+        })
3408
+        text = newVal.replace(/\s/g, '')
3409
+      }
3405 3410
       this.$emit('changeImageingInspect', text)
3406 3411
     },
3407 3412
     changeTreatmentPlanning() {
@@ -3438,15 +3443,20 @@ export default {
3438 3443
       const ele = this.$refs.noteText
3439 3444
       let text = null
3440 3445
       let newVal = ''
3441
-      Array.from(ele.children).forEach((item) => {
3442
-        const child = item.children[0]
3443
-        if (item.children[0].className === 'string') {
3444
-          newVal = newVal + child.textContent
3445
-        } else if (item.children[0].className === 'select') {
3446
-          newVal = newVal + child.children[0].value
3447
-        }
3448
-      })
3449
-      text = newVal.replace(/\s/g, '')
3446
+      if(ele.innerText){
3447
+        text = ele.innerText
3448
+      }else {
3449
+        Array.from(ele.children).forEach((item) => {
3450
+          const child = item.children[0]
3451
+          if (item.children[0].className === 'string') {
3452
+            console.log(item.children[0],"newVal + child.textContent");
3453
+            newVal = newVal + child.textContent
3454
+          } else if (item.children[0].className === 'select') {
3455
+            newVal = newVal + child.children[0].value
3456
+          }
3457
+        })
3458
+        text = newVal.replace(/\s/g, '')
3459
+      }
3450 3460
       this.$emit('changeNote', text)
3451 3461
     },
3452 3462
     cancelNote() {
@@ -3629,24 +3639,6 @@ export default {
3629 3639
             this.allList = []
3630 3640
             this.$message.success(`${status==1?'保存':'提交'}成功!`)
3631 3641
           } else {
3632
-            // let arr = []
3633
-            // this.allList.forEach((item) => {
3634
-            //   arr.push({
3635
-            //     toothStatus:
3636
-            //       this.tagList.findIndex(
3637
-            //         (i) => i.toothStatus == item.toothStatus
3638
-            //       ) != -1
3639
-            //         ? this.tagList[
3640
-            //             this.tagList.findIndex(
3641
-            //               (i) => i.toothStatus == item.toothStatus
3642
-            //             )
3643
-            //           ].toothStatus
3644
-            //         : null,
3645
-            //     toothPosition: item.toothPosition,
3646
-            //     diagnosisManageId: item.mainDiagnosisId,
3647
-            //     diagnosisTypeTemplateId: item.id
3648
-            //   })
3649
-            // })
3650 3642
             this.tagList.forEach((item) => {
3651 3643
                item.toothPosition = item.toothPosition
3652 3644
                item.diagnosisManageId = item.mainDiagnosisId