See999 4 years ago
parent
commit
cd0404f860

+ 23 - 13
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue View File

@@ -31,25 +31,25 @@
31 31
 
32 32
       </el-tab-pane>
33 33
       <el-tab-pane label="病历详情" name="second">
34
-        <div class="detailMain">
35
-          <span style="width:240px;">处方号:{{order.prescription_number}}</span>
36
-          <span style="width:200px;">医生:{{order.doctor}}</span>
37
-          <span style="width:200px;">科室:{{order.departments}}</span>
38
-          <span style="width:200px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
39
-        </div>
34
+        
40 35
         <div class="commonCell">
41
-          <p>基本信息</p>
36
+          <p style="color:#409EFF;">基本信息</p>
42 37
           <div class="detailMain">
43
-            <span style="width:240px;">疾病名称:{{case_history.diagnostic}}</span>
44
-            <span style="width:200px;">症状:{{case_history.diagnostic}}</span>
45
-            <span style="width:200px;">发病日期:{{getTimes(case_history.sick_date,"{y}-{m}-{d}")}}</span>
46
-            <span style="width:200px;" v-if="case_history.is_infect== 1">是否传染:是</span>
47
-          <span style="width:200px;" v-if="case_history.is_infect != 1">是否传染:否</span>
38
+            <span style="width:260px;">处方号:{{order.prescription_number}}</span>
39
+            <span style="width:180px;">姓名:{{order.patient.name}}</span>
40
+            <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
41
+            <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
42
+            <span style="width:260px;">医生:{{order.doctor}}</span>
43
+            <span style="width:180px;">科室:{{order.departments}}</span>
44
+            <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
45
+            <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
46
+            <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
47
+            
48 48
 
49 49
           </div>
50 50
         </div>
51 51
         <div class="commonCell">
52
-          <p>体格信息</p>
52
+          <p style="color:#409EFF;">体格信息</p>
53 53
           <div class="detailMain">
54 54
             <span style="width:140px;">体温:{{case_history.temperature}}℃</span>
55 55
             <span style="width:140px;">呼吸:{{case_history.breathing}} 次/分</span>
@@ -58,6 +58,14 @@
58 58
             <span style="width:200px;">血压:{{case_history.sbp}}~{{case_history.dbp}} mmHg</span>
59 59
           </div>
60 60
         </div>
61
+        <div class="commonCell">
62
+          <p style="color:#409EFF;">病历信息</p>
63
+          <div class="detailMain">
64
+            <span style="width:260px;" v-if="case_history.is_infect== 1">是否传染:是</span>
65
+            <span style="width:260px;" v-if="case_history.is_infect != 1">是否传染:否</span>
66
+            <span style="width:180px;">发病日期:{{getTimes(case_history.sick_date,"{y}-{m}-{d}")}}</span>
67
+          </div>
68
+        </div>
61 69
         <div class="commonCell">
62 70
           <p>主诉</p>
63 71
           <div>{{case_history.chief_conplaint}}</div>
@@ -203,6 +211,7 @@
203 211
             this.hisPatientInfo = response.data.data.order.his_patient
204 212
             this.case_history = response.data.data.order.case_history
205 213
             this.order = response.data.data.order
214
+            console.log('this.order',this.order)
206 215
 
207 216
 
208 217
             this.prescriptions = []
@@ -283,6 +292,7 @@
283 292
   }
284 293
 
285 294
   .detailMain {
295
+    flex: 1;
286 296
   span {
287 297
     display: inline-block;
288 298
   }

+ 23 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -23,7 +23,7 @@
23 23
           </el-button>
24 24
         </div>
25 25
         <div>
26
-          <el-table :data="patientTableData" :height="tableHeight" @row-click='choosePatient' border style="width: 100%;"
26
+          <el-table :data="patientTableData" :height="tableHeight" @row-click='choosePatient' @current-change='currentChange' border style="width: 100%;"
27 27
                     :row-style="{ color: '#303133' }"
28 28
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
29 29
                     highlight-current-row
@@ -231,6 +231,7 @@
231 231
 
232 232
             if(this.patientTableData.length > 0) {
233 233
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
234
+              this.oldCurrentRow = this.patientTableData[0]
234 235
               this.getPatientInfo(this.patientTableData[0])
235 236
             }
236 237
 
@@ -386,6 +387,7 @@
386 387
 
387 388
 
388 389
       },
390
+      
389 391
       choosePatient(val) {
390 392
         let isShowDailog = false
391 393
         for (let i = 0; i < this.prescriptions.length; i++){
@@ -394,6 +396,12 @@
394 396
           }
395 397
         }
396 398
         if(isShowDailog){
399
+          
400
+          this.patientTableData.map((item,index) => {
401
+            if(item.patient_id == this.oldCurrentRow.patient_id){
402
+              this.$refs.tab.setCurrentRow(this.patientTableData[index])
403
+            }
404
+          })
397 405
           this.$message.error('需要保存当前处方才能切换')
398 406
           return
399 407
         }
@@ -531,6 +539,20 @@
531 539
             this.$refs.prescriptions.setData(this.prescriptions,this.info)
532 540
           }
533 541
         })
542
+      },
543
+      currentChange(currentRow, oldCurrentRow){
544
+        let isShowDailog = false
545
+        for (let i = 0; i < this.prescriptions.length; i++){
546
+          if((this.prescriptions[i].id == 0 && this.prescriptions[i].advices.length > 0) || (this.prescriptions[i].id == 0 && this.prescriptions[i].project.length > 0)){
547
+            isShowDailog = true
548
+          }
549
+        }
550
+        if(!isShowDailog){
551
+          this.oldCurrentRow = currentRow
552
+          return
553
+        }
554
+        
555
+        
534 556
       },
535 557
       open(index) {
536 558
         console.log("index0999999",this.prescriptions)