See999 4 年之前
父節點
當前提交
cd0404f860

+ 23 - 13
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue 查看文件

31
 
31
 
32
       </el-tab-pane>
32
       </el-tab-pane>
33
       <el-tab-pane label="病历详情" name="second">
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
         <div class="commonCell">
35
         <div class="commonCell">
41
-          <p>基本信息</p>
36
+          <p style="color:#409EFF;">基本信息</p>
42
           <div class="detailMain">
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
           </div>
49
           </div>
50
         </div>
50
         </div>
51
         <div class="commonCell">
51
         <div class="commonCell">
52
-          <p>体格信息</p>
52
+          <p style="color:#409EFF;">体格信息</p>
53
           <div class="detailMain">
53
           <div class="detailMain">
54
             <span style="width:140px;">体温:{{case_history.temperature}}℃</span>
54
             <span style="width:140px;">体温:{{case_history.temperature}}℃</span>
55
             <span style="width:140px;">呼吸:{{case_history.breathing}} 次/分</span>
55
             <span style="width:140px;">呼吸:{{case_history.breathing}} 次/分</span>
58
             <span style="width:200px;">血压:{{case_history.sbp}}~{{case_history.dbp}} mmHg</span>
58
             <span style="width:200px;">血压:{{case_history.sbp}}~{{case_history.dbp}} mmHg</span>
59
           </div>
59
           </div>
60
         </div>
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
         <div class="commonCell">
69
         <div class="commonCell">
62
           <p>主诉</p>
70
           <p>主诉</p>
63
           <div>{{case_history.chief_conplaint}}</div>
71
           <div>{{case_history.chief_conplaint}}</div>
203
             this.hisPatientInfo = response.data.data.order.his_patient
211
             this.hisPatientInfo = response.data.data.order.his_patient
204
             this.case_history = response.data.data.order.case_history
212
             this.case_history = response.data.data.order.case_history
205
             this.order = response.data.data.order
213
             this.order = response.data.data.order
214
+            console.log('this.order',this.order)
206
 
215
 
207
 
216
 
208
             this.prescriptions = []
217
             this.prescriptions = []
283
   }
292
   }
284
 
293
 
285
   .detailMain {
294
   .detailMain {
295
+    flex: 1;
286
   span {
296
   span {
287
     display: inline-block;
297
     display: inline-block;
288
   }
298
   }

+ 23 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

23
           </el-button>
23
           </el-button>
24
         </div>
24
         </div>
25
         <div>
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
                     :row-style="{ color: '#303133' }"
27
                     :row-style="{ color: '#303133' }"
28
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
28
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
29
                     highlight-current-row
29
                     highlight-current-row
231
 
231
 
232
             if(this.patientTableData.length > 0) {
232
             if(this.patientTableData.length > 0) {
233
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
233
               this.$refs.tab.setCurrentRow(this.patientTableData[0])
234
+              this.oldCurrentRow = this.patientTableData[0]
234
               this.getPatientInfo(this.patientTableData[0])
235
               this.getPatientInfo(this.patientTableData[0])
235
             }
236
             }
236
 
237
 
386
 
387
 
387
 
388
 
388
       },
389
       },
390
+      
389
       choosePatient(val) {
391
       choosePatient(val) {
390
         let isShowDailog = false
392
         let isShowDailog = false
391
         for (let i = 0; i < this.prescriptions.length; i++){
393
         for (let i = 0; i < this.prescriptions.length; i++){
394
           }
396
           }
395
         }
397
         }
396
         if(isShowDailog){
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
           this.$message.error('需要保存当前处方才能切换')
405
           this.$message.error('需要保存当前处方才能切换')
398
           return
406
           return
399
         }
407
         }
531
             this.$refs.prescriptions.setData(this.prescriptions,this.info)
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
       open(index) {
557
       open(index) {
536
         console.log("index0999999",this.prescriptions)
558
         console.log("index0999999",this.prescriptions)