Browse Source

批量打印

XMLWAN 4 years ago
parent
commit
ceec1e5573

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

@@ -302,6 +302,12 @@
302 302
     watch:{
303 303
       detalid:function(val){
304 304
         this.getTemplateDetail(val)
305
+      },
306
+      case_history:function(val){
307
+        console.log("val",val)
308
+        if(val.breathing == 0){
309
+           this.case_history.breathing = ''
310
+        }
305 311
       }
306 312
     }
307 313
   }

+ 2 - 1
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue View File

@@ -60,7 +60,8 @@ export default {
60 60
                 name:''
61 61
             },
62 62
             radio:"1",
63
-            options:[]
63
+            options:[],
64
+            value:''
64 65
         }
65 66
     },
66 67
     methods:{

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

@@ -2,76 +2,76 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">门诊病历</div>
4 4
         <div class="infoTitle">
5
-            <div>姓名:{{patient.name}}</div>
5
+            <div>姓名:{{patient.name?patient.name:''}}</div>
6 6
             <div>性别:
7 7
                 <span v-if="patient.gender == 1">男</span>
8 8
                 <span v-if="patient.gender == 2">女</span>
9 9
             </div>
10
-            <div>年龄:{{patient.age}}岁</div>
10
+            <div>年龄:{{patient.age?patient.age:''}}岁</div>
11 11
         </div>
12 12
         <div class="infoTitle">
13 13
             <div>婚姻状况:
14 14
               <span v-if="patient.marital_status == 1">已婚 </span>
15 15
               <span v-if="patient.marital_status == 2">未婚 </span>
16 16
             </div>
17
-            <div>职业:{{getProfession(patient.profession)}}</div>
17
+            <div>职业:{{getProfession(patient.profession)?getProfession(patient.profession):''}}</div>
18 18
         </div>
19 19
         <div class="otherInfo">
20 20
             <div>医保号:</div>
21
-            <div style="flex:1;">{{patient.health_care_no}}</div>
21
+            <div style="flex:1;">{{patient.health_care_no?patient.health_care_no:''}}</div>
22 22
         </div>
23 23
         <div class="otherInfo">
24 24
             <div>联系电话:</div>
25
-            <div style="flex:1;">{{patient.phone}}</div>
25
+            <div style="flex:1;">{{patient.phone?patient.phone:''}}</div>
26 26
         </div>
27 27
         <div class="otherInfo">
28 28
             <div>通讯地址:</div>
29
-            <div style="flex:1;">{{patient.home_address}}</div>
29
+            <div style="flex:1;">{{patient.home_address?patient.home_address:''}}</div>
30 30
         </div>
31 31
         <div class="otherInfo">
32 32
             <div>药物过敏史:</div>
33
-            <div style="flex:1;">{{patient.past_history}}</div>
33
+            <div style="flex:1;">{{patient.past_history?patient.past_history:''}}</div>
34 34
         </div>
35 35
         <div class="otherInfo">
36 36
             <div>病历编号:</div>
37
-            <div style="flex:1;">{{patient.id}}</div>
37
+            <div style="flex:1;">{{patient.id?patient.id:''}}</div>
38 38
         </div>
39 39
         <div style="page-break-after:always;margin-top:50px;"></div>
40 40
 
41 41
 
42 42
         <div class="printTitle">病历内容</div>
43 43
         <div class="recordTitle">
44
-            <div>科别:{{hispatient.departments}}</div>
45
-            <div>姓名:{{hispatient.name}}</div>
44
+            <div>科别:{{hispatient.departments?hispatient.departments:''}}</div>
45
+            <div>姓名:{{hispatient.name?hispatient.name:''}}</div>
46 46
             <div>性别:
47 47
                 <span v-if="hispatient.gender == 1">男</span>
48 48
                 <span v-if="hispatient.gender == 2">女</span>
49 49
             </div>
50
-            <div>年龄:{{hispatient.age}}岁</div>
50
+            <div>年龄:{{hispatient.age?hispatient.age:''}}岁</div>
51 51
         </div>
52 52
         <div class="otherInfo">
53 53
             <div class="otherName">主诉:</div>
54
-            <div style="flex:1;">{{history.chief_conplaint}}</div>
54
+            <div style="flex:1;">{{history.chief_conplaint?history.chief_conplaint:''}}</div>
55 55
         </div>
56 56
         <div class="otherInfo">
57 57
             <div class="otherName">现病史:</div>
58
-            <div style="flex:1;">{{history.history_of_present_illness}}</div>
58
+            <div style="flex:1;">{{history.history_of_present_illness?history.history_of_present_illness:''}}</div>
59 59
         </div>
60 60
         <div class="otherInfo">
61 61
             <div class="otherName">既往史:</div>
62
-            <div style="flex:1;">{{history.past_history}}</div>
62
+            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
63 63
         </div>
64 64
         <div class="otherInfo">
65 65
             <div class="otherName">药物过敏史:</div>
66
-            <div style="flex:1;">{{history.past_history}}</div>
66
+            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
67 67
         </div>
68 68
         <div class="otherInfo">
69 69
             <div class="otherName">个人史:</div>
70
-            <div style="flex:1;">{{history.personal_history}}</div>
70
+            <div style="flex:1;">{{history.personal_history?history.personal_history:''}}</div>
71 71
         </div>
72 72
         <div class="otherInfo">
73 73
             <div class="otherName">家族史:</div>
74
-            <div style="flex:1;">{{history.family_history}}</div>
74
+            <div style="flex:1;">{{history.family_history?history.family_history:''}}</div>
75 75
         </div>
76 76
         <div class="otherInfo">
77 77
             <div class="otherName">体格检查:</div>
@@ -79,14 +79,14 @@
79 79
         </div>
80 80
         <div class="otherInfo">
81 81
             <div class="otherName">门诊诊断:</div>
82
-            <div style="flex:1;">{{history.diagnostic}}</div>
82
+            <div style="flex:1;">{{history.diagnostic?history.diagnostic:''}}</div>
83 83
         </div>
84 84
         <div class="otherInfo">
85 85
             <div class="otherName">门诊医嘱:</div>
86
-            <div style="flex:1;">{{history.doctor_advice}}</div>
86
+            <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
87 87
         </div>
88 88
         <div style="margin-top:20px;text-align:right;">
89
-            医生签名:{{getDoctor(history.doctor)}}
89
+            医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
90 90
         </div>
91 91
     </div>
92 92
 </template>

+ 8 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -83,7 +83,7 @@
83 83
                     <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
84 84
                 </el-table-column>
85 85
                 <el-table-column align="center" prop="name" label="医生" width="80">
86
-                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
86
+                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
87 87
                 </el-table-column>
88 88
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
89 89
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
@@ -95,13 +95,13 @@
95 95
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
96 96
                 </el-table-column>
97 97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
98
-                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
98
+                    <template slot-scope="scope">{{creator}}</template>
99 99
                 </el-table-column>
100 100
                 <el-table-column align="center" prop="name" label="操作" width="80">
101 101
                     <template slot-scope="scope">
102 102
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
103 103
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
104
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</el-button>  
104
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
105 105
                     </template>
106 106
                 </el-table-column>
107 107
             </el-table>
@@ -180,7 +180,8 @@ export default {
180 180
                 name: "生育保险"
181 181
             }],
182 182
             
183
-            tablePatient:[]
183
+            tablePatient:[],
184
+            creator:""
184 185
         }
185 186
     },
186 187
     created(){
@@ -195,6 +196,9 @@ export default {
195 196
         // })
196 197
         // this.tableData = arr
197 198
        //获取所有挂号号的患者
199
+
200
+       this.creator = this.$store.getters.xt_user.user.user_name
201
+    
198 202
        this.getlist()
199 203
     },
200 204
     methods:{