Bladeren bron

病案首页主治

‘chenzhilei’ 2 maanden geleden
bovenliggende
commit
c8b452ff21
1 gewijzigde bestanden met toevoegingen van 21 en 3 verwijderingen
  1. 21 3
      src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

+ 21 - 3
src/views/hospitalization/case-front-sheet/FillCaseFrontSheet.vue

@@ -947,8 +947,14 @@
               readonly
               style="width: 70px"
               v-model="patient.leaderDoctorName"
-              @click="showSearchData('leaderdoctor')"
+              @click="showSearchData('leaderDoctor')"
             />
+            &nbsp;&nbsp;<el-button
+              type="danger"
+              circle
+              icon="Delete"
+              @click="clearLine('leaderDoctor')"
+            ></el-button>
             主治医师:
             <input
               id="mainDoctorName"
@@ -2546,8 +2552,12 @@ const fetchSheetInfo = row => {
       patient.value.internshipDoctorName = "-"
     }
     if (patient.value.studyDoctorName == null || patient.value.studyDoctorName== "-") {
+      patient.value.studyDoctor = "-"
       patient.value.studyDoctorName = "-"
-      patient.value.studyDoctorNameName = "-"
+    }
+    if (patient.value.leaderDoctorName == null || patient.value.leaderDoctorName == "-") {
+      patient.value.leaderDoctor = "-"
+      patient.value.leaderDoctorName = "-"
     }
     patient.value.blh == null?patientTransformData.value.blh = "-":false;
     patient.value.transDept == null?patientTransformData.value.transDept = "-":false;
@@ -2737,7 +2747,7 @@ const showSearchData = flag => {
     searchUrl.value = "employee";
     searchTargetCode.value = "deptLeader";
     searchTargetName.value = "deptLeaderName";
-  } else if (flag === "leaderdoctor") {
+  } else if (flag === "leaderDoctor") {
     searchUrl.value = "employee";
     searchTargetCode.value = "leaderDoctor";
     searchTargetName.value = "leaderDoctorName";
@@ -3035,6 +3045,10 @@ const clearLine = option => {
         patient.value.internshipDoctor = "-"
         patient.value.internshipDoctorName = "-"
       break;
+      case "leaderDoctor":
+        patient.value.leaderDoctor = "-"
+        patient.value.leaderDoctorName = "-"
+      break;
   }
 };
 
@@ -3343,6 +3357,10 @@ const saveVerifyFillBlank = (data) => {
     data.studyDoctor = '-'
     data.studyDoctorName = '-'
   }
+  if(data.leaderDoctor  == null){
+    data.leaderDoctor = '-'
+    data.leaderDoctorName = '-'
+  }
 
   console.log("data.surgeryList0",patient.value.surgeryList[0].name)
   patient.value.surgeryList[0].name == '-'?patient.value.surgeryList[0].name = null:false;