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
         </el-input>
150
         </el-input>
151
       </el-form-item>
151
       </el-form-item>
152
     </el-form>
152
     </el-form>
153
-   
153
+
154
   </div>
154
   </div>
155
 </template>
155
 </template>
156
 
156
 
257
             "doctor_advice":this.doctor_advice,
257
             "doctor_advice":this.doctor_advice,
258
             "remark":this.remark
258
             "remark":this.remark
259
           }
259
           }
260
-        
260
+
261
           createCaseHistory(params).then(response => {
261
           createCaseHistory(params).then(response => {
262
             if (response.data.state == 0) {
262
             if (response.data.state == 0) {
263
               this.$message.error("患者病历已存在")
263
               this.$message.error("患者病历已存在")
270
               this.remark = ""
270
               this.remark = ""
271
             }
271
             }
272
           })
272
           })
273
-       
273
+
274
 
274
 
275
       },
275
       },
276
-    
276
+
277
 
277
 
278
       getTemplateDetail(id){
278
       getTemplateDetail(id){
279
           console.log("22222")
279
           console.log("22222")
280
           getTemplateDetail(id).then(response=>{
280
           getTemplateDetail(id).then(response=>{
281
-              if(response.data.state == 1){  
281
+              if(response.data.state == 1){
282
                 var templatedetail =  response.data.data.templateDetail
282
                 var templatedetail =  response.data.data.templateDetail
283
                 console.log("templatedetail",templatedetail)
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
        }else if(this.patientInfo.gender = 2){
301
        }else if(this.patientInfo.gender = 2){
302
           this.patientInfo.gender = '女'
302
           this.patientInfo.gender = '女'
303
         }
303
         }
304
-       
304
+
305
     },
305
     },
306
     watch:{
306
     watch:{
307
       detalid:function(val){
307
       detalid:function(val){
318
         },
318
         },
319
         immediate: true,
319
         immediate: true,
320
         deep: true
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
                 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 View File

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>

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

7
             <div class="cell clearfix">
7
             <div class="cell clearfix">
8
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
8
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
9
                 <el-autocomplete
9
                 <el-autocomplete
10
+                  style="margin:16px 5px"
10
                   popper-class="my-autocomplete"
11
                   popper-class="my-autocomplete"
11
                   v-model.trim="search_input"
12
                   v-model.trim="search_input"
12
                   :fetch-suggestions="querySearchAsync"
13
                   :fetch-suggestions="querySearchAsync"
70
                         <span v-if="scope.row.register_type == 5">专家</span>
71
                         <span v-if="scope.row.register_type == 5">专家</span>
71
                     </template>
72
                     </template>
72
                 </el-table-column>
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
                     <template slot-scope="scope">
75
                     <template slot-scope="scope">
75
                         {{scope.row.number}}
76
                         {{scope.row.number}}
76
                     </template>
77
                     </template>
82
                     <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
83
                     <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
83
                 </el-table-column>
84
                 </el-table-column>
84
                 <el-table-column align="center" prop="name" label="医生" width="80">
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
                 </el-table-column>
87
                 </el-table-column>
87
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
88
                 <el-table-column align="center" prop="name" label="挂号费" width="70">
88
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
89
                     <template slot-scope="scope">{{ scope.row.register_cost }}</template>
94
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
95
                     <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
95
                 </el-table-column>
96
                 </el-table-column>
96
                 <el-table-column align="center" prop="name" label="操作人" width="70">
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
                 </el-table-column>
99
                 </el-table-column>
99
                 <el-table-column align="center" prop="name" label="操作" width="80">
100
                 <el-table-column align="center" prop="name" label="操作" width="80">
100
                     <template slot-scope="scope">
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
                     </template>
105
                     </template>
105
                 </el-table-column>
106
                 </el-table-column>
106
             </el-table>
107
             </el-table>
179
                 name: "生育保险"
180
                 name: "生育保险"
180
             }],
181
             }],
181
             
182
             
182
-            tablePatient:[]
183
+            tablePatient:[],
184
+            creator:""
183
         }
185
         }
184
     },
186
     },
185
     created(){
187
     created(){
194
         // })
196
         // })
195
         // this.tableData = arr
197
         // this.tableData = arr
196
        //获取所有挂号号的患者
198
        //获取所有挂号号的患者
199
+
200
+       this.creator = this.$store.getters.xt_user.user.user_name
201
+    
197
        this.getlist()
202
        this.getlist()
198
     },
203
     },
199
     methods:{
204
     methods:{