XMLWAN 4 gadus atpakaļ
vecāks
revīzija
ceec1e5573

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Parādīt failu

302
     watch:{
302
     watch:{
303
       detalid:function(val){
303
       detalid:function(val){
304
         this.getTemplateDetail(val)
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 Parādīt failu

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

+ 20 - 20
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Parādīt failu

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

+ 8 - 4
src/xt_pages/outpatientRegistration/registrationHistory.vue Parādīt failu

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