Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 years ago
parent
commit
80830a3fce

+ 11 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -387,6 +387,17 @@
387 387
 
388 388
       },
389 389
       choosePatient(val) {
390
+        let isShowDailog = false
391
+        for (let i = 0; i < this.prescriptions.length; i++){
392
+          if((this.prescriptions[i].id == 0 && this.prescriptions[i].advices.length > 0) || (this.prescriptions[i].id == 0 && this.prescriptions[i].project.length > 0)){
393
+            isShowDailog = true
394
+          }
395
+        }
396
+        if(isShowDailog){
397
+          this.$message.error('需要保存当前处方才能切换')
398
+          return
399
+        }
400
+
390 401
 
391 402
         this.patientid = val.patients.id
392 403
         let params = {

+ 3 - 3
src/xt_pages/outpatientDoctorStation/pastInquiries.vue View File

@@ -35,12 +35,12 @@
35 35
           <template slot-scope="scope">{{scope.row.info?scope.row.info.doctor:''}}</template>
36 36
         </el-table-column>
37 37
         <el-table-column align="center" prop="name" label="诊断">
38
-          <template slot-scope="scope">{{ scope.row.info ? scope.row.info.diagnosis :''}}</template>
38
+          <template slot-scope="scope">{{ scope.row.info?scope.row.info.diagnosis :''}}</template>
39 39
         </el-table-column>
40 40
         <el-table-column align="center" prop="name" label="状态" width="100">
41 41
           <template slot-scope="scope">
42
-            <div v-if=" scope.row.info.id == 0">未就诊</div>
43
-            <div v-if=" scope.row.info.id > 0">已就诊</div>
42
+            <div v-if=" scope.row.info && scope.row.info.id > 0">已就诊</div>
43
+            <div v-else>未就诊</div>
44 44
           </template>
45 45
         </el-table-column>
46 46
         <el-table-column align="center" prop="name" label="操作" width="100">