浏览代码

批量打印

XMLWAN 4 年前
父节点
当前提交
e5d57a39a3

+ 3 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

44
       <div class="mainRight">
44
       <div class="mainRight">
45
 
45
 
46
         <div class="mainCell" style="margin-bottom:10px;flex-direction: row-reverse;">
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
           <el-button v-loading="loadingone" size="small"
50
           <el-button v-loading="loadingone" size="small"
51
                      @click="open(6)"
51
                      @click="open(6)"
52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"
52
                      v-if="this.hisPatientInfo && this.hisPatientInfo.id == 0"

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

107
         width="200">
107
         width="200">
108
         <template slot-scope="scope">
108
         <template slot-scope="scope">
109
           <span>
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
           </span>
111
           </span>
112
         </template>
112
         </template>
113
       </el-table-column>
113
       </el-table-column>
404
           }
404
           }
405
           this.$refs.child.createCaseHistory()
405
           this.$refs.child.createCaseHistory()
406
         } else if (index == 2) {
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
         } else if (index == 3) {
408
         } else if (index == 3) {
409
           this.$refs.medicalRecord.show()
409
           this.$refs.medicalRecord.show()
410
         } else if (index == 4) {
410
         } else if (index == 4) {

+ 2 - 2
src/xt_pages/outpatientDoctorStation/recordPrint.vue 查看文件

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

+ 22 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

93
 <script>
93
 <script>
94
 
94
 
95
 import { getDataConfig } from "@/utils/data";
95
 import { getDataConfig } from "@/utils/data";
96
-import { getAllDoctorList } from "@/api/project/project"
96
+import { getAllDoctorList,getPatientCaseHistory } from "@/api/project/project"
97
 export default {
97
 export default {
98
     props:{
98
     props:{
99
       patient:Object,
99
       patient:Object,
137
         }
137
         }
138
         return name
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
     created(){
161
     created(){
143
       this.educationOptions = getDataConfig("patient", "education_types");
162
       this.educationOptions = getDataConfig("patient", "education_types");
144
       console.log("22222",this.educationOptions)
163
       console.log("22222",this.educationOptions)
145
       this.getAllDoctorList()
164
       this.getAllDoctorList()
165
+      this.getPatientCaseHistory()
146
     }
166
     }
147
 }
167
 }
148
 </script>
168
 </script>

+ 11 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 查看文件

47
                     <td>{{index+1}}</td>
47
                     <td>{{index+1}}</td>
48
                     <td>{{getProjectName(it.project_id)}}</td>
48
                     <td>{{getProjectName(it.project_id)}}</td>
49
                     <td>{{it.single_dose}}</td>
49
                     <td>{{it.single_dose}}</td>
50
-                    <td>{{it.unit}}</td>
50
+                    <td>{{getUnit(it.unit)}}</td>
51
                     <td>{{it.price}}</td>
51
                     <td>{{it.price}}</td>
52
                     <td></td>
52
                     <td></td>
53
                     <td>{{it.remark}}</td>
53
                     <td>{{it.remark}}</td>
177
         var project_name = ""
177
         var project_name = ""
178
         for(let i=0;i<this.projectList.length;i++){
178
         for(let i=0;i<this.projectList.length;i++){
179
            if(id == this.projectList[i].id){
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
         return project_name
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
    created(){
195
    created(){