Просмотр исходного кода

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

csx 4 лет назад
Родитель
Сommit
80830a3fce

+ 11 - 0
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Просмотреть файл

387
 
387
 
388
       },
388
       },
389
       choosePatient(val) {
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
         this.patientid = val.patients.id
402
         this.patientid = val.patients.id
392
         let params = {
403
         let params = {

+ 3 - 3
src/xt_pages/outpatientDoctorStation/pastInquiries.vue Просмотреть файл

35
           <template slot-scope="scope">{{scope.row.info?scope.row.info.doctor:''}}</template>
35
           <template slot-scope="scope">{{scope.row.info?scope.row.info.doctor:''}}</template>
36
         </el-table-column>
36
         </el-table-column>
37
         <el-table-column align="center" prop="name" label="诊断">
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
         </el-table-column>
39
         </el-table-column>
40
         <el-table-column align="center" prop="name" label="状态" width="100">
40
         <el-table-column align="center" prop="name" label="状态" width="100">
41
           <template slot-scope="scope">
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
           </template>
44
           </template>
45
         </el-table-column>
45
         </el-table-column>
46
         <el-table-column align="center" prop="name" label="操作" width="100">
46
         <el-table-column align="center" prop="name" label="操作" width="100">