Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 years ago
parent
commit
5a1698c0a7

+ 20 - 14
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -150,7 +150,7 @@
150 150
         </el-input>
151 151
       </el-form-item>
152 152
     </el-form>
153
-   
153
+
154 154
   </div>
155 155
 </template>
156 156
 
@@ -257,7 +257,7 @@
257 257
             "doctor_advice":this.doctor_advice,
258 258
             "remark":this.remark
259 259
           }
260
-        
260
+
261 261
           createCaseHistory(params).then(response => {
262 262
             if (response.data.state == 0) {
263 263
               this.$message.error("患者病历已存在")
@@ -270,25 +270,25 @@
270 270
               this.remark = ""
271 271
             }
272 272
           })
273
-       
273
+
274 274
 
275 275
       },
276
-    
276
+
277 277
 
278 278
       getTemplateDetail(id){
279 279
           console.log("22222")
280 280
           getTemplateDetail(id).then(response=>{
281
-              if(response.data.state == 1){  
281
+              if(response.data.state == 1){
282 282
                 var templatedetail =  response.data.data.templateDetail
283 283
                 console.log("templatedetail",templatedetail)
284
-            
285
-                this.case_history.chief_conplaint =  templatedetail.chief_conplaint 
286
-                this.case_history.history_of_present_illness =  templatedetail.history_of_present_illness 
287
-                this.case_history.past_history =  templatedetail.past_history 
288
-                this.case_history.personal_history =    templatedetail.personal_history 
289
-                this.case_history.family_history = templatedetail.family_history 
290
-                this.case_history.diagnostic = templatedetail.diagnostic 
291
-               
284
+
285
+                this.case_history.chief_conplaint =  templatedetail.chief_conplaint
286
+                this.case_history.history_of_present_illness =  templatedetail.history_of_present_illness
287
+                this.case_history.past_history =  templatedetail.past_history
288
+                this.case_history.personal_history =    templatedetail.personal_history
289
+                this.case_history.family_history = templatedetail.family_history
290
+                this.case_history.diagnostic = templatedetail.diagnostic
291
+
292 292
               }
293 293
           })
294 294
         },
@@ -301,7 +301,7 @@
301 301
        }else if(this.patientInfo.gender = 2){
302 302
           this.patientInfo.gender = '女'
303 303
         }
304
-       
304
+
305 305
     },
306 306
     watch:{
307 307
       detalid:function(val){
@@ -318,6 +318,12 @@
318 318
         },
319 319
         immediate: true,
320 320
         deep: true
321
+      },
322
+      case_history:function(val){
323
+        console.log("val",val)
324
+        if(val.breathing == 0){
325
+           this.case_history.breathing = ''
326
+        }
321 327
       }
322 328
     }
323 329
   }

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

+ 12 - 7
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

@@ -7,6 +7,7 @@
7 7
             <div class="cell clearfix">
8 8
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
9 9
                 <el-autocomplete
10
+                  style="margin:16px 5px"
10 11
                   popper-class="my-autocomplete"
11 12
                   v-model.trim="search_input"
12 13
                   :fetch-suggestions="querySearchAsync"
@@ -70,7 +71,7 @@
70 71
                         <span v-if="scope.row.register_type == 5">专家</span>
71 72
                     </template>
72 73
                 </el-table-column>
73
-                <el-table-column align="center" prop="name" label="就诊号" width="140">
74
+                <el-table-column align="center" prop="name" label="就诊号" width="80">
74 75
                     <template slot-scope="scope">
75 76
                         {{scope.row.number}}
76 77
                     </template>
@@ -82,7 +83,7 @@
82 83
                     <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
83 84
                 </el-table-column>
84 85
                 <el-table-column align="center" prop="name" label="医生" width="80">
85
-                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
86
+                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
86 87
                 </el-table-column>
87 88
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
88 89
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
@@ -94,13 +95,13 @@
94 95
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
95 96
                 </el-table-column>
96 97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
97
-                    <template slot-scope="scope">{{getDoctor(scope.row.admin_user_id) }}</template>
98
+                    <template slot-scope="scope">{{creator}}</template>
98 99
                 </el-table-column>
99 100
                 <el-table-column align="center" prop="name" label="操作" width="80">
100 101
                     <template slot-scope="scope">
101
-                        <el-button size="mini" type="info" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
102
-                        <el-button size="mini" type="info" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
103
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</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>
104
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
104 105
                     </template>
105 106
                 </el-table-column>
106 107
             </el-table>
@@ -179,7 +180,8 @@ export default {
179 180
                 name: "生育保险"
180 181
             }],
181 182
             
182
-            tablePatient:[]
183
+            tablePatient:[],
184
+            creator:""
183 185
         }
184 186
     },
185 187
     created(){
@@ -194,6 +196,9 @@ export default {
194 196
         // })
195 197
         // this.tableData = arr
196 198
        //获取所有挂号号的患者
199
+
200
+       this.creator = this.$store.getters.xt_user.user.user_name
201
+    
197 202
        this.getlist()
198 203
     },
199 204
     methods:{