Browse Source

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

XMLWAN 4 years ago
parent
commit
ebb84bb054

+ 15 - 2
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue View File

@@ -6,7 +6,12 @@
6 6
     :before-close="_close"
7 7
     class="detailDialog"
8 8
   >
9
+    <div style="position: absolute;right:20px;">
10
+      <el-button v-if="activeName == 'first'" @click="open(1)" type="primary">打印</el-button>
11
+      <el-button v-if="activeName == 'second'" @click="open(2)" type="primary">打印</el-button>
12
+    </div>
9 13
     <el-tabs v-model="activeName">
14
+      
10 15
       <el-tab-pane label="处方详情" name="first">
11 16
         <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
12 17
           <el-tab-pane
@@ -111,7 +116,7 @@
111 116
         curPrescriptions: {},
112 117
         prescriptions: [],
113 118
         record_date: '',
114
-        editableTabsValue: '1',
119
+        editableTabsValue: '处方1',
115 120
         loadingone: false,
116 121
         editableTabs: [{
117 122
           title: '处方1',
@@ -136,6 +141,13 @@
136 141
       }
137 142
     },
138 143
     methods: {
144
+      open(index){
145
+        if(index == 1){
146
+
147
+        }else if(index == 2){
148
+
149
+        }
150
+      },
139 151
       getTimes(time,temp) {
140 152
         return uParseTime(time, temp);
141 153
       },
@@ -257,7 +269,7 @@
257 269
       hide() {
258 270
         // this.clear()
259 271
         this.visible = false
260
-      }
272
+      },
261 273
     }
262 274
   }
263 275
 </script>
@@ -267,6 +279,7 @@
267 279
 
268 280
   .el-dialog__body {
269 281
     padding: 0 20px 30px;
282
+    position: relative;
270 283
   }
271 284
 
272 285
   .detailMain {

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue View File

@@ -3,6 +3,7 @@
3 3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 100%;"
4 4
               :row-style="{ color: '#303133' }"
5 5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6 7
       <el-table-column align="center" prop="name" label="名称">
7 8
         <template slot-scope="scope">{{ scope.row.drug_name }}</template>
8 9
       </el-table-column>
@@ -27,6 +28,11 @@
27 28
 
28 29
         </template>
29 30
       </el-table-column>
31
+      <el-table-column align="center" prop="day" width="50" label="天数">
32
+        <template slot-scope="scope">
33
+          <div>{{ scope.row.day }}</div>
34
+        </template>
35
+      </el-table-column>
30 36
 
31 37
       <el-table-column align="center" prop="name" width="100" label="总量">
32 38
         <template slot-scope="scope">

+ 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">