See999 4 years ago
parent
commit
6e7761f556

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