Browse Source

批量打印

XMLWAN 4 years ago
parent
commit
e5d57a39a3

+ 3 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -44,9 +44,9 @@
44 44
       <div class="mainRight">
45 45
 
46 46
         <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
47
-          <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
48
-          <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button>
49
-          <el-button size="small" @click="open(3)" type="primary">打印</el-button>
47
+          <!-- <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">打印处置单</el-button>
48
+          <el-button size="small" @click="open(2)" type="primary">打印治疗单</el-button> -->
49
+          <el-button size="small" @click="open(3)" type="primary" style="margin-left:10px;">打印</el-button>
50 50
           <el-button v-loading="loadingone" size="small"
51 51
                      @click="open(6)"
52 52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -107,7 +107,7 @@
107 107
         width="200">
108 108
         <template slot-scope="scope">
109 109
           <span>
110
-           <el-input v-model="scope.row.id"></el-input>
110
+           <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
111 111
           </span>
112 112
         </template>
113 113
       </el-table-column>
@@ -404,7 +404,7 @@
404 404
           }
405 405
           this.$refs.child.createCaseHistory()
406 406
         } else if (index == 2) {
407
-          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
407
+          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
408 408
         } else if (index == 3) {
409 409
           this.$refs.medicalRecord.show()
410 410
         } else if (index == 4) {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

@@ -14,7 +14,7 @@
14 14
     </div>
15 15
     <div class="app-container" style="min-height:0;">
16 16
         <el-container class="newContainer">
17
-            <div style="width:270px;margin-right:20px;">
17
+            <!-- <div style="width:270px;margin-right:20px;">
18 18
                 <div class="cell clearfix" style="margin-bottom:10px;">
19 19
                     <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
20 20
                     <el-button size="small" class="filter-item" type="primary" :model="keyword" @click="searchAction">搜索</el-button>
@@ -31,7 +31,7 @@
31 31
                         </template>
32 32
                     </el-table-column>
33 33
                 </el-table>
34
-            </div>
34
+            </div> -->
35 35
             
36 36
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
37 37
               <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient = "hispatient" :history="history"></printOne>

+ 22 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

@@ -93,7 +93,7 @@
93 93
 <script>
94 94
 
95 95
 import { getDataConfig } from "@/utils/data";
96
-import { getAllDoctorList } from "@/api/project/project"
96
+import { getAllDoctorList,getPatientCaseHistory } from "@/api/project/project"
97 97
 export default {
98 98
     props:{
99 99
       patient:Object,
@@ -137,12 +137,32 @@ export default {
137 137
         }
138 138
         return name
139 139
       },
140
-      
140
+      getPatientCaseHistory(){
141
+
142
+        const params = {
143
+          patient_id:this.$route.query.patient_id
144
+        }
145
+      console.log("病历22222",params)
146
+      getPatientCaseHistory(params).then(response=>{
147
+         if(response.data.state == 1){
148
+           var patient = response.data.data.patient
149
+           console.log("patinet",patient)
150
+           this.patient = patient
151
+           var history = response.data.data.history
152
+           console.log("history",history)
153
+           this.history = history
154
+           var hispatient = response.data.data.hispatient
155
+           console.log("hispatient",hispatient)
156
+           this.hispatient = hispatient
157
+         }
158
+      })
159
+    },
141 160
     },
142 161
     created(){
143 162
       this.educationOptions = getDataConfig("patient", "education_types");
144 163
       console.log("22222",this.educationOptions)
145 164
       this.getAllDoctorList()
165
+      this.getPatientCaseHistory()
146 166
     }
147 167
 }
148 168
 </script>

+ 11 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -47,7 +47,7 @@
47 47
                     <td>{{index+1}}</td>
48 48
                     <td>{{getProjectName(it.project_id)}}</td>
49 49
                     <td>{{it.single_dose}}</td>
50
-                    <td>{{it.unit}}</td>
50
+                    <td>{{getUnit(it.unit)}}</td>
51 51
                     <td>{{it.price}}</td>
52 52
                     <td></td>
53 53
                     <td>{{it.remark}}</td>
@@ -177,10 +177,19 @@ export default {
177 177
         var project_name = ""
178 178
         for(let i=0;i<this.projectList.length;i++){
179 179
            if(id == this.projectList[i].id){
180
-               project_name = this.projectList.project_name
180
+               project_name = this.projectList[i].project_name
181 181
            }
182 182
         }
183 183
         return project_name
184
+     },
185
+     getUnit(id){
186
+        var unit=""
187
+       for(let i=0;i<this.projectList.length;i++){
188
+           if(id == this.projectList[i].id){
189
+               unit = this.projectList[i].unit
190
+           }
191
+        }
192
+        return unit
184 193
      }
185 194
    },
186 195
    created(){