浏览代码

HIS 系统提交

XMLWAN 4 年前
父节点
当前提交
06925fa297

+ 2 - 1
src/api/his/his.js 查看文件

@@ -21,9 +21,10 @@ export function getPatientInfo(params) {
21 21
 
22 22
 
23 23
 export function createCaseHistory(params) {
24
+  console.log("params",params)
24 25
   return request({
25 26
     url: "/api/doctorworkstation/casehistory/create",
26
-    method: "post",
27
+    method: "get",
27 28
     params:params
28 29
   });
29 30
 }

+ 48 - 1
src/api/project/project.js 查看文件

@@ -1,4 +1,5 @@
1 1
 import request from "@/utils/request";
2
+import url from "postcss-url";
2 3
 
3 4
 export function saveProject(params){
4 5
 
@@ -270,4 +271,50 @@ export function changePatient(id,params){
270 271
       method:"get",
271 272
       params:params
272 273
     })
273
-  }
274
+  }
275
+
276
+
277
+  export function getPatientCaseHistory(params){
278
+     
279
+    return request({
280
+        url:"/api/patient/getpatientcasehistory",
281
+        method:"get",
282
+        params:params
283
+    })
284
+  }
285
+
286
+  export function SaveHisPatientCaseHistoryTemplate(params){
287
+      
288
+    return request({
289
+       url:"/api/doctorworkstation/casehistorytemplate/create",
290
+       method:"get",
291
+       params:params
292
+    })
293
+  }
294
+
295
+  export function getHistoryTemplate(params){
296
+   
297
+    return request({
298
+      url:"/api/doctorworkstation/casehistorytemplate/get",
299
+      method:"get",
300
+      params:params
301
+    })
302
+  }
303
+
304
+  export function getTemplateDetail(id,params){
305
+     
306
+     return request({
307
+        url:"/api/doctorworkstation/gettemplatedetail?id="+id,
308
+        method:"get",
309
+        params:params
310
+     })
311
+  }
312
+
313
+  export function updateRecordTemplate(params){
314
+    
315
+    return request({
316
+        url:"/api/doctorworkstation/updaterecordtemplate",
317
+        method:"get",
318
+        params:params  
319
+    })
320
+  } 

+ 9 - 4
src/xt_pages/data/components/project.vue 查看文件

@@ -14,7 +14,7 @@
14 14
                     </el-option>
15 15
                 </el-select>
16 16
                 <label class="title"><span class="name">是否收费</span> : </label>
17
-                <el-select v-model="is_charge" style="width:140px;margin-right:10px;" placeholder="请选择">
17
+                <el-select v-model="is_charge" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeOption">
18 18
                     <el-option
19 19
                     v-for="item in optionOne"
20 20
                     :key="item.value"
@@ -116,8 +116,8 @@ export default {
116 116
         }
117 117
     },
118 118
     methods:{
119
-        changeStart(id){
120
-          console.log("id",id)
119
+        changeStart(){
120
+         this.getlist()
121 121
         },
122 122
         handleSizeChange(val) {
123 123
             this.limit = val
@@ -127,7 +127,9 @@ export default {
127 127
             this.page = val
128 128
             this.getlist()
129 129
         },
130
-        searchAction(){},
130
+        searchAction(){
131
+           this.getlist()   
132
+        },
131 133
         clickSelfPayment(){
132 134
             this.$refs.selfPayment.show();
133 135
         },
@@ -194,6 +196,9 @@ export default {
194 196
              });
195 197
             })
196 198
             .catch(() => {});
199
+        },
200
+        changeOption(){
201
+          this.getlist()
197 202
         }
198 203
         
199 204
     },

+ 1 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -222,15 +222,13 @@
222 222
     createHisPrescription,
223 223
     delHisPrescription,
224 224
     getInitData,
225
-    getPatientInfo,
226
-    getSchedulePatientList
227 225
   } from '@/api/his/his'
228 226
   import { getDictionaryDataConfig } from '@/utils/data'
229 227
   import prescriptionTable from './prescriptionTable'
230 228
   import selectTemplate from './selectTemplate'
231 229
   import saveTemplate from './saveTemplate'
232 230
   import additionalCharges from './additionalCharges'
233
-  import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
231
+  import { getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
234 232
 
235 233
   export default {
236 234
     props: {

+ 88 - 28
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue 查看文件

@@ -10,7 +10,7 @@
10 10
     </div>
11 11
     <div class="backColor"></div>
12 12
     <div class="mainTitle">基本信息:</div>
13
-    <el-form class="basicForm" :model="patientInfo" :rules="rules" ref="form" label-width="120px">
13
+    <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
14 14
       <el-form-item label="姓名:" prop="name">
15 15
         <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
16 16
       </el-form-item>
@@ -37,14 +37,14 @@
37 37
         <el-input v-model="patientInfo.phone" placeholder="" readonly></el-input>
38 38
       </el-form-item>
39 39
       <el-form-item label="医保类型: " prop="name">
40
-        <!-- <el-select v-model="scope.row.delivery_way" placeholder="请选择">
41
-          <el-option
42
-            v-for="(item,index) in arr"
43
-            :key="index"
44
-            :label="item.name"
45
-            :value="item.name">
46
-          </el-option>
47
-        </el-select> -->
40
+        <el-select v-model="delivery_way" placeholder="请选择">
41
+         <el-option
42
+            v-for="item in wayOptions"
43
+           :key="item.id"
44
+           :label="item.name"
45
+           :value="item.id"
46
+          />
47
+        </el-select>
48 48
       </el-form-item>
49 49
       <el-form-item label="医保证号: " prop="name">
50 50
         <el-input v-model="patientInfo.home_address" placeholder="" readonly></el-input>
@@ -54,7 +54,7 @@
54 54
       </el-form-item>
55 55
     </el-form>
56 56
     <div class="mainTitle">体格信息:</div>
57
-    <el-form class="physiqueForm" :model="case_history" :rules="rules" ref="form" label-width="80px">
57
+    <el-form class="physiqueForm" :model="case_history" ref="form" label-width="80px">
58 58
       <el-form-item label="体温:" prop="name">
59 59
         <el-input v-model="case_history.temperature" placeholder=""></el-input>
60 60
         <span>℃</span>
@@ -64,7 +64,7 @@
64 64
         (次/分)
65 65
       </el-form-item>
66 66
       <el-form-item label="呼吸: " prop="name">
67
-        <el-input v-model="case_history.pulse" placeholder=""></el-input>
67
+        <el-input v-model="case_history.breathing" placeholder=""></el-input>
68 68
         (次/分)
69 69
       </el-form-item>
70 70
       <el-form-item label="血压:" prop="name">
@@ -75,11 +75,11 @@
75 75
       </el-form-item>
76 76
     </el-form>
77 77
     <div class="mainTitle">病历信息:</div>
78
-    <el-form class="recordForm" :model="case_history" :rules="rules" ref="form" label-width="80px">
78
+    <el-form class="recordForm" :model="case_history" ref="form" label-width="80px">
79 79
       <el-form-item label="发病日期: " prop="name">
80 80
         <el-date-picker
81 81
           style="width:100%;"
82
-          v-model="case_history.sick_date"
82
+          v-model="start_time"
83 83
           type="date"
84 84
           placeholder="选择日期">
85 85
         </el-date-picker>
@@ -135,19 +135,36 @@
135 135
           v-model="case_history.diagnostic">
136 136
         </el-input>
137 137
       </el-form-item>
138
+       <el-form-item label="医嘱:" prop="doctor_advice" style="width:100%;">
139
+        <el-input
140
+          type="textarea"
141
+          :rows="2"
142
+          placeholder="请输入内容"
143
+          v-model="doctor_advice">
144
+        </el-input>
145
+      </el-form-item>
146
+       <el-form-item label="备注:" prop="name" style="width:100%;">
147
+        <el-input
148
+          type="textarea"
149
+          :rows="2"
150
+          placeholder="请输入内容"
151
+          v-model="remark">
152
+        </el-input>
153
+      </el-form-item>
138 154
     </el-form>
139
-    <medicalRecord ref='medicalRecord'></medicalRecord>
155
+    <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
140 156
     <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
141 157
   </div>
142 158
 </template>
143 159
 
144 160
 <script>
161
+  const moment = require('moment')
145 162
   import medicalRecord from './medicalRecord'
146 163
   import saveRecordTemplate from './saveRecordTemplate'
147 164
   import { getDictionaryDataConfig } from "@/utils/data";
148 165
   import {  createCaseHistory } from '@/api/his/his'
149
-
150
-
166
+  import { getDataConfig } from "@/utils/data";
167
+  import { getTemplateDetail } from "@/api/project/project"
151 168
   export default {
152 169
     props: {
153 170
       case_history: Object,
@@ -161,6 +178,8 @@
161 178
     },
162 179
     data() {
163 180
       return {
181
+        id:0,
182
+        delivery_way:"",
164 183
         case_history:{
165 184
           sick_type:'',
166 185
           symptom:"",
@@ -185,7 +204,11 @@
185 204
         },
186 205
         form: {
187 206
           name: ''
188
-        }
207
+        },
208
+        wayOptions:[],
209
+        start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
210
+        doctor_advice:"",
211
+        remark:""
189 212
       }
190 213
     },
191 214
     methods: {
@@ -193,20 +216,28 @@
193 216
         return getDictionaryDataConfig(module, filed_name)
194 217
 
195 218
       },
196
-      setData(case_history,patientInfo,hisPatientInfo){
197
-        this.form.name = patientInfo.name
219
+      // setData(case_history,patientInfo,hisPatientInfo){
220
+      //   this.form.name = patientInfo.name
198 221
 
199 222
 
200 223
 
201
-      },
224
+      // },
202 225
       open(index) {
226
+        console.log("index",index)
203 227
         if (index == 1) {
204 228
           if(this.patientInfo.id == undefined){
205 229
             this.$message.error("请先选择病人")
206 230
             return
207 231
           }
208
-
232
+          if(this.case_history.is_infect == true){
233
+            this.case_history.is_infect = 1
234
+          }
235
+          if(this.case_history.is_infect == false){
236
+             this.case_history.is_infect = 2
237
+          }
209 238
           let params = {
239
+            "his_patient_id":this.hisPatientInfo.id,
240
+            "delivery_way":this.delivery_way?"":0,
210 241
             "patient_id":this.patientInfo.id,
211 242
             "temperature":this.case_history.temperature,
212 243
             "blood_sugar":this.case_history.blood_sugar,
@@ -217,7 +248,7 @@
217 248
             "height":this.case_history.height,
218 249
             "sick_type":this.case_history.sick_type,
219 250
             "symptom":this.case_history.symptom,
220
-            "sick_date":this.case_history.sick_date,
251
+            "sick_date":this.start_time,
221 252
             "is_infect":this.case_history.is_infect,
222 253
             "chief_conplaint":this.case_history.chief_conplaint,
223 254
             "history_of_present_illness":this.case_history.history_of_present_illness,
@@ -225,26 +256,55 @@
225 256
             "personal_history":this.case_history.personal_history,
226 257
             "family_history":this.case_history.family_history,
227 258
             "record_date":this.record_date,
228
-
229
-
259
+            "diagnostic":this.case_history.diagnostic,
260
+            "breathing":this.case_history.breathing,
261
+            "doctor_advice":this.doctor_advice,
262
+            "remark":this.remark
230 263
           }
264
+        
231 265
           createCaseHistory(params).then(response => {
232 266
             if (response.data.state == 0) {
233
-              this.$message.error(response.data.msg)
267
+              this.$message.error("患者病历已存在")
234 268
               return false
235 269
             } else {
236 270
               this.$message.success("保存成功")
237 271
             }
238 272
           })
239 273
         } else if (index == 2) {
240
-          this.$router.push('/outpatientDoctorStation/recordPrint')
274
+          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
241 275
         } else if (index == 3) {
242 276
           this.$refs.medicalRecord.show()
243 277
         } else if (index == 4) {
244
-          this.$refs.saveRecordTemplate.show()
278
+          this.$refs.saveRecordTemplate.show(this.case_history)
245 279
         }
246 280
 
247
-      }
281
+      },
282
+      getMsgFormSon(data){
283
+       this.getTemplateDetail(data)
284
+     },
285
+
286
+      getTemplateDetail(id){
287
+          getTemplateDetail(id).then(response=>{
288
+              if(response.data.state == 1){  
289
+                var templatedetail =  response.data.data.templateDetail
290
+                console.log("templatedetail",templatedetail)
291
+            
292
+                this.case_history.chief_conplaint =  templatedetail.chief_conplaint 
293
+                this.case_history.history_of_present_illness =  templatedetail.history_of_present_illness 
294
+                this.case_history.past_history =  templatedetail.past_history 
295
+                this.case_history.personal_history =    templatedetail.personal_history 
296
+                this.case_history.family_history = templatedetail.family_history 
297
+                this.case_history.diagnostic = templatedetail.diagnostic 
298
+               
299
+              }
300
+          })
301
+        },
302
+    },
303
+    created(){
304
+       this.wayOptions = getDataConfig("patient", "reimbursement_ways");
305
+
306
+       console.log("2222",this.wayOptions)
307
+     
248 308
     }
249 309
   }
250 310
 </script>

+ 66 - 40
src/xt_pages/outpatientDoctorStation/components/medicalRecord.vue 查看文件

@@ -7,10 +7,10 @@
7 7
         class="recordDialog"
8 8
     >
9 9
         <div>
10
-            <el-tabs v-model="activeName" @tab-click="handleClick">
11
-                <el-tab-pane label="历史病历" name="first">
10
+            <el-tabs v-model="activeName">
11
+                <!-- <el-tab-pane label="历史病历" name="first">
12 12
                     <div style="display:flex;align-items: center;margin-bottom:10px;">
13
-                        <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item" style="width:140px;"/>
13
+                        <el-input size="small" v-model.trim="search_input" class="filter-item" style="width:140px;"/>
14 14
                         <el-button size="small" style="margin:0 10px;" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
15 15
                         <span>日期:</span>
16 16
                         <el-date-picker
@@ -31,7 +31,7 @@
31 31
                     <el-table :data="tableData" border height="300" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
32 32
                         <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
33 33
                         <el-table-column align="center" prop="name" label="病历编号">
34
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
34
+                            <template slot-scope="scope">{{ scope.row.id }}</template>
35 35
                         </el-table-column>
36 36
                         <el-table-column align="center" prop="name" label="名称">
37 37
                             <template slot-scope="scope">{{ scope.row.date }}</template>
@@ -52,48 +52,50 @@
52 52
                             </template>
53 53
                         </el-table-column>
54 54
                     </el-table> 
55
-                </el-tab-pane>
56
-                <el-tab-pane label="病历模板" name="second">
55
+                </el-tab-pane> -->
56
+                <el-tab-pane label="病历模板" name="first">
57 57
                     <div style="display:flex;align-items: center;margin-bottom:10px;">
58
-                        <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item" style="width:140px;"/>
59
-                        <el-button size="small" style="margin:0 10px;" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
58
+                        <el-input size="small"  v-model.trim="search_input" class="filter-item" style="width:140px;"/>
59
+                        <el-button size="small" style="margin:0 10px;" class="filter-item" type="primary"  @click="searchAction">搜索</el-button>
60 60
                         <span>日期:</span>
61 61
                         <el-date-picker
62 62
                         size="small"
63 63
                         style="width:140px;margin:0 10px;"
64
-                        v-model="value1"
64
+                        v-model="start_time"
65 65
                         type="date"
66
-                        placeholder="选择日期">
66
+                        placeholder="选择日期"
67
+                        @change="changeStarTime">
67 68
                         </el-date-picker>
68 69
                         <el-date-picker
69 70
                         style="width:140px;"
70 71
                         size="small"
71
-                        v-model="value1"
72
+                        v-model="end_time"
72 73
                         type="date"
73
-                        placeholder="选择日期">
74
+                        placeholder="选择日期"
75
+                        @change="changeEndTime">
74 76
                         </el-date-picker>
75 77
                     </div>
76
-                    <el-table :data="tableData" border height="300" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
78
+                    <el-table :data="tempalateData" border height="300" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
77 79
                         <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
78 80
                         <el-table-column align="center" prop="name" label="病历编号">
79
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
81
+                            <template slot-scope="scope">{{ scope.row.id }}</template>
80 82
                         </el-table-column>
81 83
                         <el-table-column align="center" prop="name" label="名称">
82
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
84
+                            <template slot-scope="scope">{{ scope.row.template_name }}</template>
83 85
                         </el-table-column>
84 86
                         <el-table-column align="center" prop="name" label="创建人">
85
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
87
+                            <template slot-scope="scope">{{ scope.row.user_name }}</template>
86 88
                         </el-table-column>
87 89
                         <el-table-column align="center" prop="name" label="创建日期">
88
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
90
+                            <template slot-scope="scope">{{ scope.row.record_date }}</template>
89 91
                         </el-table-column>
90 92
                         <el-table-column align="center" prop="name" label="模板说明">
91
-                            <template slot-scope="scope">{{ scope.row.date }}</template>
93
+                            <template slot-scope="scope">{{ scope.row.template_remark }}</template>
92 94
                         </el-table-column>
93 95
                         <el-table-column align="center" prop="name" label="操作" width='200'>
94 96
                             <template slot-scope="scope">
95
-                                <el-button type="primary" size="mini">调用</el-button>
96
-                                <el-button type="primary" size="mini" @click="totemplateDetail">详情</el-button>
97
+                                <el-button type="primary" size="mini" @click="totemplateDetailTwo(scope.row.id)">调用</el-button>
98
+                                <el-button type="primary" size="mini" @click="totemplateDetail(scope.row.id)">详情</el-button>
97 99
                             </template>
98 100
                         </el-table-column>
99 101
                     </el-table>
@@ -104,7 +106,7 @@
104 106
         <record-template-detail ref="recordTemplateDetail"></record-template-detail>
105 107
         <div slot="footer" class="dialog-footer">
106 108
             <el-button @click="hide">取 消</el-button>
107
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
109
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
108 110
         </div>
109 111
     </el-dialog>         
110 112
 </template>
@@ -112,6 +114,7 @@
112 114
 <script>
113 115
 import recordHistoryDetail from './recordHistoryDetail'
114 116
 import recordTemplateDetail from './recordTemplateDetail'
117
+import { getHistoryTemplate } from "@/api/project/project"
115 118
 export default {
116 119
     components:{
117 120
         recordHistoryDetail,
@@ -124,23 +127,12 @@ export default {
124 127
             form:{
125 128
                 name:''
126 129
             },
127
-            tableData: [{
128
-            date: '2016-05-02',
129
-            name: '王小虎',
130
-            address: '上海市普陀区金沙江路 1518 弄'
131
-            }, {
132
-            date: '2016-05-04',
133
-            name: '王小虎',
134
-            address: '上海市普陀区金沙江路 1517 弄'
135
-            }, {
136
-            date: '2016-05-01',
137
-            name: '王小虎',
138
-            address: '上海市普陀区金沙江路 1519 弄'
139
-            }, {
140
-            date: '2016-05-03',
141
-            name: '王小虎',
142
-            address: '上海市普陀区金沙江路 1516 弄'
143
-            }],
130
+            tableData: [],
131
+            tempalateData:[],
132
+            value1:"",
133
+            search_input:"",
134
+            start_time:"",
135
+            end_time:"",
144 136
         }
145 137
     },
146 138
     methods:{
@@ -164,9 +156,43 @@ export default {
164 156
         toHistoryDetail(){
165 157
             this.$refs.recordHistoryDetail.show()
166 158
         },
167
-        totemplateDetail(){
168
-            this.$refs.recordTemplateDetail.show()
159
+        totemplateDetail(id){
160
+            this.$refs.recordTemplateDetail.show(id)
161
+        },
162
+        totemplateDetailTwo(id){
163
+         this.$emit('func',id)
164
+         this.visible = false
165
+        },
166
+        //获取历史数据历史模板
167
+        getlist(){
168
+            const params = {
169
+               keyword:this.search_input,
170
+               start_time:this.start_time,
171
+               end_time:this.end_time  
172
+            }
173
+          getHistoryTemplate(params).then(response=>{
174
+            if(response.data.state == 1){
175
+              var template =  response.data.data.template
176
+              console.log("templagte",template)
177
+              this.tempalateData = template
178
+              var history =  response.data.data.history
179
+              console.log("history",history)
180
+              this.tableData = history
181
+            }
182
+          })
183
+        },
184
+        searchAction(){
185
+          this.getlist()
186
+        },
187
+        changeStarTime(){
188
+           this.getlist()
189
+        },
190
+        changeEndTime(){
191
+          this.getlist()
169 192
         }
193
+    },
194
+    created(){
195
+       this.getlist()
170 196
     }
171 197
 }
172 198
 </script>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/recordHistoryDetail.vue 查看文件

@@ -52,7 +52,7 @@
52 52
         </div>
53 53
         <div slot="footer" class="dialog-footer">
54 54
             <el-button @click="hide">取 消</el-button>
55
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
55
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
56 56
         </div>
57 57
     </el-dialog>         
58 58
 </template>

+ 65 - 14
src/xt_pages/outpatientDoctorStation/components/recordTemplateDetail.vue 查看文件

@@ -7,19 +7,19 @@
7 7
         class="recordDialog"
8 8
         append-to-body
9 9
     >
10
-        <el-form class="recordForm" :model="form" :rules="rules" ref="form" label-width="80px">
10
+        <el-form class="recordForm" :model="form" ref="form" label-width="80px">
11 11
             <el-form-item label="模板名称: " prop="name" style="width:100%;">
12
-                <el-input v-model="form.name" placeholder=""></el-input>
12
+                <el-input v-model="form.template_name" placeholder=""></el-input>
13 13
             </el-form-item>
14 14
             <el-form-item label="模板说明: " prop="name" style="width:100%;">
15
-                <el-input v-model="form.name" placeholder=""></el-input>
15
+                <el-input v-model="form.template_remark" placeholder=""></el-input>
16 16
             </el-form-item>
17 17
             <el-form-item label="主诉:" prop="name" style="width:100%;">
18 18
                 <el-input
19 19
                 type="textarea"
20 20
                 :rows="2"
21 21
                 placeholder="请输入内容"
22
-                v-model="textarea">
22
+                v-model="form.chief_conplaint">
23 23
                 </el-input>
24 24
             </el-form-item>
25 25
             <el-form-item label="现病史:" prop="name" style="width:100%;">
@@ -27,7 +27,7 @@
27 27
                 type="textarea"
28 28
                 :rows="2"
29 29
                 placeholder="请输入内容"
30
-                v-model="textarea">
30
+                v-model="form.history_of_present_illness">
31 31
                 </el-input>
32 32
             </el-form-item>
33 33
             <el-form-item label="既往史:" prop="name" style="width:100%;">
@@ -35,7 +35,7 @@
35 35
                 type="textarea"
36 36
                 :rows="2"
37 37
                 placeholder="请输入内容"
38
-                v-model="textarea">
38
+                v-model="form.past_history">
39 39
                 </el-input>
40 40
             </el-form-item>
41 41
             <el-form-item label="个人史:" prop="name" style="width:100%;">
@@ -43,7 +43,7 @@
43 43
                 type="textarea"
44 44
                 :rows="2"
45 45
                 placeholder="请输入内容"
46
-                v-model="textarea">
46
+                v-model="form.personal_history">
47 47
                 </el-input>
48 48
             </el-form-item>
49 49
             <el-form-item label="家族史:" prop="name" style="width:100%;">
@@ -51,7 +51,7 @@
51 51
                 type="textarea"
52 52
                 :rows="2"
53 53
                 placeholder="请输入内容"
54
-                v-model="textarea">
54
+                v-model="form.family_history">
55 55
                 </el-input>
56 56
             </el-form-item>
57 57
             <el-form-item label="诊断信息:" prop="name" style="width:100%;">
@@ -59,25 +59,36 @@
59 59
                 type="textarea"
60 60
                 :rows="2"
61 61
                 placeholder="请输入内容"
62
-                v-model="textarea">
62
+                v-model="form.diagnostic">
63 63
                 </el-input>
64 64
             </el-form-item>
65 65
         </el-form>
66 66
         <div slot="footer" class="dialog-footer">
67 67
             <el-button @click="hide">取 消</el-button>
68
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
68
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
69 69
         </div>
70 70
     </el-dialog>         
71 71
 </template>
72 72
 
73 73
 <script>
74
+import { getTemplateDetail,updateRecordTemplate } from "@/api/project/project"
74 75
 export default {
75 76
     data(){
76 77
         return{
77 78
             visible:false,
78 79
             form:{
79
-                name:''
80
+              id:0,
81
+              template_name:'',
82
+              template_remark:"",
83
+              chief_conplaint:"",
84
+              history_of_present_illness:"",
85
+              past_history:"",
86
+              personal_history:"",
87
+              family_history:"",
88
+              diagnostic:""
80 89
             },
90
+            textarea:"",
91
+            templatedetail:{}
81 92
         }
82 93
     },
83 94
     methods:{
@@ -90,14 +101,54 @@ export default {
90 101
             this.form.name = "";
91 102
             this.form.intro = "";
92 103
         },
93
-        show() {
94
-            // this.clear()
95
-            this.visible = true
104
+        show(id) {
105
+          this.getTemplateDetail(id)
106
+          this.visible = true
107
+          
96 108
         },
97 109
         hide() {
98 110
             // this.clear()
99 111
             this.visible = false
100 112
         },
113
+        getTemplateDetail(id){
114
+          getTemplateDetail(id).then(response=>{
115
+              if(response.data.state == 1){  
116
+                var templatedetail =  response.data.data.templateDetail
117
+                console.log("templatedetail",templatedetail)
118
+                this.form.id = templatedetail.id
119
+                this.form.template_name =   templatedetail.template_name 
120
+                this.form.template_remark = templatedetail.template_remark 
121
+                this.form.chief_conplaint =  templatedetail.chief_conplaint 
122
+                this.form.history_of_present_illness =  templatedetail.history_of_present_illness 
123
+                this.form.past_history =  templatedetail.past_history 
124
+                this.form.personal_history =    templatedetail.personal_history 
125
+                this.form.family_history = templatedetail.family_history 
126
+                this.form.diagnostic = templatedetail.diagnostic 
127
+               
128
+              }
129
+          })
130
+        },
131
+        submitAction(){
132
+          var params = {
133
+            id:this.form.id,
134
+            template_name:this.form.template_name,
135
+            template_remark:this.form.template_remark,
136
+            chief_conplaint:this.form.chief_conplaint,
137
+            history_of_present_illness:this.form.history_of_present_illness,
138
+            past_history:this.form.past_history,
139
+            personal_history:this.form.personal_history,
140
+            family_history:this.form.family_history,
141
+            diagnostic:this.form.diagnostic
142
+          }  
143
+          updateRecordTemplate(params).then(response=>{
144
+             if(response.data.state == 1){
145
+                var template =  response.data.data.templateDetail
146
+                this.$message.success("保存成功")
147
+                this.visible = false
148
+                this.$parents.getlist()
149
+             }
150
+          }) 
151
+        }
101 152
     }
102 153
 }
103 154
 </script>

+ 62 - 12
src/xt_pages/outpatientDoctorStation/components/saveRecordTemplate.vue 查看文件

@@ -6,35 +6,39 @@
6 6
         :before-close="_close"
7 7
         class="recordDialog"
8 8
     >
9
-        <el-form class="recordForm" :model="form" :rules="rules" ref="form" label-width="80px">
10
-            <el-form-item label="模板类别:" prop="name" style="width:100%;">
11
-                <el-radio v-model="radio" label="1">私人模板</el-radio>
12
-                <el-radio v-model="radio" label="2">公共模板</el-radio>
13
-            </el-form-item>
9
+        <el-form class="recordForm" :model="form"  ref="form" label-width="80px">
10
+            <!-- <el-form-item label="模板类别:" prop="name" style="width:100%;">
11
+                <el-radio v-model="mode_type" label="1">私人模板</el-radio>
12
+                <el-radio v-model="mode_type" label="2">公共模板</el-radio>
13
+            </el-form-item> -->
14 14
             <el-form-item label="模板名称: " prop="name" style="width:100%;">
15
-                <el-input v-model="form.name" placeholder=""></el-input>
15
+                <el-input v-model="form.template_name" placeholder=""></el-input>
16 16
             </el-form-item>
17 17
             <el-form-item label="模板说明:" prop="name" style="width:100%;">
18 18
                 <el-input
19 19
                 type="textarea"
20 20
                 :rows="2"
21 21
                 placeholder="请输入内容"
22
-                v-model="textarea">
22
+                v-model="template_remark">
23 23
                 </el-input>
24 24
             </el-form-item>
25 25
             <el-form-item label="创建人:" prop="name" style="width:49%;">
26
+                <span>{{user_name}}</span>
26 27
             </el-form-item>
27 28
             <el-form-item label="创建时间:" prop="name" style="width:49%;">
29
+                {{start_time}}
28 30
             </el-form-item>
29 31
         </el-form>
30 32
         <div slot="footer" class="dialog-footer">
31 33
             <el-button @click="hide">取 消</el-button>
32
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
34
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
33 35
         </div>
34 36
     </el-dialog>         
35 37
 </template>
36 38
 
37 39
 <script>
40
+const moment = require('moment')
41
+import { SaveHisPatientCaseHistoryTemplate } from "@/api/project/project"
38 42
 export default {
39 43
     data(){
40 44
         return{
@@ -42,8 +46,22 @@ export default {
42 46
             form:{
43 47
                 name:''
44 48
             },
49
+            mode_type:"1",
50
+            textarea:"",
51
+            chief_conplain:"",
52
+            past_history:"",
53
+            history_of_present_illness:"",
54
+            personal_history:"",
55
+            family_history:"",
56
+            diagnostic:"",
57
+            mode_type:"",
58
+            start_time:"",
59
+            user_name:"",
60
+            template_name:"",
61
+            template_remark:""
45 62
         }
46
-    },
63
+     },
64
+    
47 65
     methods:{
48 66
         _close: function(done) {
49 67
             // this.clear()
@@ -54,14 +72,46 @@ export default {
54 72
             this.form.name = "";
55 73
             this.form.intro = "";
56 74
         },
57
-        show() {
58
-            // this.clear()
59
-            this.visible = true
75
+        show(obj) {
76
+         console.log("obj",obj)
77
+         this.chief_conplain= obj.chief_conplain
78
+         this.past_history = obj.past_history
79
+         this.history_of_present_illness = obj.history_of_present_illness
80
+         this.personal_history = obj.personal_history
81
+         this.family_history = obj.family_history
82
+         this.diagnostic = obj.diagnostic
83
+         this.visible = true
60 84
         },
61 85
         hide() {
62 86
             // this.clear()
63 87
             this.visible = false
64 88
         },
89
+
90
+        submitAction(){
91
+          var params = {
92
+             template_name:this.template_name,
93
+             template_remark:this.template_remark,
94
+             user_name:this.user_name,
95
+             record_date:this.start_time,
96
+             chief_conplain:this.chief_conplain,
97
+             past_history:this.past_history,
98
+             history_of_present_illness:this.history_of_present_illness,
99
+             personal_history:this.personal_history,
100
+             family_history:this.family_history,
101
+             diagnostic:this.diagnostic,
102
+            }
103
+            console.log("params",params)
104
+          SaveHisPatientCaseHistoryTemplate(params).then(response=>{
105
+              if(response.data.state == 1){
106
+                 this.$message.success("保存成功")
107
+                 this.visible = false
108
+              }
109
+          })   
110
+        }
111
+    },
112
+    created(){
113
+      this.start_time = moment().format("YYYY-MM-DD HH:mm:ss")
114
+      this.user_name = this.$store.getters.xt_user.user.user_name
65 115
     }
66 116
 }
67 117
 </script>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/saveTemplate.vue 查看文件

@@ -46,7 +46,7 @@
46 46
         </div>
47 47
         <div slot="footer" class="dialog-footer">
48 48
             <el-button @click="hide">取 消</el-button>
49
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
49
+            <el-button type="primary" @click="submitAction()">保 存</el-button>
50 50
         </div>
51 51
     </el-dialog>         
52 52
 </template>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/selectTemplate.vue 查看文件

@@ -43,7 +43,7 @@
43 43
         </div>
44 44
         <div slot="footer" class="dialog-footer">
45 45
             <el-button @click="hide">取 消</el-button>
46
-            <el-button type="primary" :loading="submitLoading" @click="submitAction()">保 存</el-button>
46
+            <el-button type="primary"  @click="submitAction()">保 存</el-button>
47 47
         </div>
48 48
     </el-dialog>         
49 49
 </template>

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

@@ -155,7 +155,6 @@
155 155
           'record_date': this.record_date,
156 156
           'patient_id': val.patients.id
157 157
         }
158
-        console.log("-------")
159 158
         getPatientInfo(params).then(response => {
160 159
           if (response.data.state == 0) {
161 160
             this.$message.error(response.data.msg)
@@ -164,7 +163,7 @@
164 163
             console.log("999888811111")
165 164
 
166 165
             this.prescriptions = []
167
-            this.$refs.prescriptions.clearData()
166
+            // this.$refs.prescriptions.clearData()
168 167
             this.patientInfo = response.data.data.xt_info
169 168
             this.hisPatientInfo = response.data.data.his_info
170 169
             this.case_history = response.data.data.case_history

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

@@ -4,7 +4,6 @@
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
        <template>
6 6
         <el-button
7
-          :loading="loading"
8 7
           size="small"
9 8
           icon="el-icon-printer"
10 9
           @click="printThisPage"
@@ -17,25 +16,25 @@
17 16
         <el-container class="newContainer">
18 17
             <div style="width:270px;margin-right:20px;">
19 18
                 <div class="cell clearfix" style="margin-bottom:10px;">
20
-                    <el-input size="small" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
21
-                    <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
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>
22 21
                 </div>
23
-                <el-table ref="tab" @row-click="changePatient" highlight-current-row :data="tableData" height="480" border style="width: 100%">
22
+                <el-table ref="tab" @row-click="changePatient" highlight-current-row :data="patientTableData" height="480" border style="width: 100%">
24 23
                     <el-table-column prop="date"  label="患者">
25 24
                         <template slot-scope="scope">
26
-                            {{ scope.row.patient.name }}
25
+                            {{scope.row.patients.name?scope.row.patients.name:''}}
27 26
                         </template>
28 27
                     </el-table-column>
29
-                    <el-table-column prop="name" label="透析号">
28
+                    <el-table-column prop="name" label="就诊号">
30 29
                         <template slot-scope="scope">
31
-                            {{ scope.row.patient.dialysis_no }}
30
+                           {{ scope.row.his_patient.number ?scope.row.his_patient.number:''}}
32 31
                         </template>
33 32
                     </el-table-column>
34 33
                 </el-table>
35 34
             </div>
36 35
             
37 36
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
38
-              <printOne v-bind:childResponse="childResponse"></printOne>
37
+              <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient = "hispatient" :history="history"></printOne>
39 38
             </div>
40 39
         </el-container>
41 40
     </div>
@@ -44,17 +43,13 @@
44 43
 
45 44
 <script>
46 45
 
47
-import {
48
-  getDialysisRecordInitData,
49
-  getDialysisSchedules
50
-} from "@/api/dialysis_record";
51 46
 import { parseTime } from "@/utils";
52
-import { getDialysisRecord } from "@/api/dialysis";
53 47
 import { getDataConfig } from "@/utils/data";
54 48
 import { jsGetAge, uParseTime } from "@/utils/tools";
55
-// import LabelBox from "./printItem/LabelBox";
56 49
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
57 50
 import print from "print-js";
51
+import { getSchedulePatientList } from '@/api/his/his'
52
+import { getPatientCaseHistory } from "@/api/project/project"
58 53
 import printOne from "./recordTemplate/printOne"
59 54
 export default {
60 55
   name: "dialysisPrintOrder",
@@ -69,6 +64,13 @@ export default {
69 64
         { path: false, name: "打印单" }
70 65
       ],
71 66
       childResponse: {},
67
+      patientTableData: [],
68
+      search_input:"",
69
+      patient:{},
70
+      hispatient:{},
71
+      educationOptions:[],
72
+      history:{},
73
+      keyword:""
72 74
     };
73 75
   },
74 76
   methods: {
@@ -106,46 +108,88 @@ export default {
106 108
         style: style,
107 109
         scanStyles: false
108 110
       });
111
+    },
112
+
113
+     //患者列表
114
+      getPatientList(){
115
+        
116
+         let params = {
117
+           'record_date':this.$route.query.record,
118
+        }
119
+     
120
+      getSchedulePatientList(params).then(response => {
121
+         if (response.data.state == 0) {
122
+            this.$message.error(response.data.msg)
123
+            return false
124
+         } else {
125
+            this.patientTableData = []
126
+            console.log("list0000000",response.data.data.list)
127
+            // for (let i = 0; i < response.data.data.list.length; i++) {
128
+            //   if (response.data.data.list[i].prescription != null && response.data.data.list[i].prescription.length > 0) {
129
+            //      this.patientTableData.push(response.data.data.list[i])
130
+            //     }
131
+            //   }
132
+              this.patientTableData = response.data.data.list
133
+             }  
134
+          })
135
+      },
136
+
137
+    changePatient(val){
109 138
 
110
-      // if (this.org_template_info.template_id == 1) {
111
-      //   printJS({
112
-      //     printable: "dialysis-print-box",
113
-      //     type: "html",
114
-      //     style: style,
115
-      //     scanStyles: false
116
-      //   });
117
-      // }
139
+        const params = {
140
+          patient_id:val.patient_id
141
+        }
142
+        console.log("params",params)
143
+      getPatientCaseHistory(params).then(response=>{
144
+         if(response.data.state == 1){
145
+           var patient = response.data.data.patient
146
+           console.log("patinet",patient)
147
+           this.patient = patient
148
+           var history = response.data.data.history
149
+           console.log("history",history)
150
+           this.history = history
151
+           var hispatient = response.data.data.hispatient
152
+           console.log("hispatient",hispatient)
153
+           this.hispatient = hispatient
154
+         }
155
+      })
156
+    },
157
+    searchAction(){
158
+      this.getPatientList()
118 159
     },
160
+    
119 161
   },
120 162
   created() {
163
+    this.getPatientList() 
164
+   
121 165
   },
122
-  computed:{
123
-    filtedSchedules: function() {
124
-      var search_keyword = this.search_keyword
125
-      if (search_keyword.length > 0) {
126
-        var schedules = []
127
-        for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
128
-        const scheduleInfo = this.zone_schedules[o_i]
129
-        var originSchedules = scheduleInfo.schedules
130
-        if (originSchedules.length == 0) {
131
-            continue
132
-        }
133
-        var filtedSchedules = []
134
-        for (let s_i = 0; s_i < originSchedules.length; s_i++) {
135
-            const schedule = originSchedules[s_i]
136
-            if (schedule.patient.name.indexOf(search_keyword) != -1) {
137
-            filtedSchedules.push(schedule)
138
-            // break
139
-            }
140
-        }
141
-        if (filtedSchedules.length > 0) {
142
-            schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
143
-        }
144
-        }
145
-        return schedules
146
-      }
147
-    }
148
-  },
166
+  // computed:{
167
+  //   filtedSchedules: function() {
168
+  //     var search_keyword = this.search_keyword
169
+  //     if (search_keyword.length > 0) {
170
+  //       var schedules = []
171
+  //       for (let o_i = 0; o_i < this.zone_schedules.length; o_i++) {
172
+  //       const scheduleInfo = this.zone_schedules[o_i]
173
+  //       var originSchedules = scheduleInfo.schedules
174
+  //       if (originSchedules.length == 0) {
175
+  //           continue
176
+  //       }
177
+  //       var filtedSchedules = []
178
+  //       for (let s_i = 0; s_i < originSchedules.length; s_i++) {
179
+  //           const schedule = originSchedules[s_i]
180
+  //           if (schedule.patient.name.indexOf(search_keyword) != -1) {
181
+  //           filtedSchedules.push(schedule)
182
+  //           // break
183
+  //           }
184
+  //       }
185
+  //       if (filtedSchedules.length > 0) {
186
+  //           schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })
187
+  //       }
188
+  //       }
189
+  //       return schedules
190
+  //     }
191
+  //   }
192
+  // },
149 193
 };
150 194
 </script>
151 195
 

+ 86 - 24
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

@@ -2,86 +2,148 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">门诊病历</div>
4 4
         <div class="infoTitle">
5
-            <p>姓名:阿萨德</p>
6
-            <p>性别:男</p>
7
-            <p>年龄:12岁</p>
5
+            <p>姓名:{{patient.name}}</p>
6
+            <p>性别:
7
+                <span v-if="patient.gender == 1">男</span>
8
+                <span v-if="patient.gender == 2">女</span>
9
+            </p>
10
+            <p>年龄:{{patient.age}}岁</p>
8 11
         </div>
9 12
         <div class="infoTitle">
10
-            <p>婚姻状况:婚姻状况保密</p>
11
-            <p>职业:未分类</p>
13
+            <p>婚姻状况:
14
+              <span v-if="patient.marital_status == 1">已婚 </span>
15
+              <span v-if="patient.marital_status == 2">未婚 </span>
16
+            </p>
17
+            <p>职业:{{getProfession(patient.profession)}}</p>
12 18
         </div>
13 19
         <div class="otherInfo">
14 20
             <p>医保号:</p>
15
-            <p style="flex:1;">7938749234</p>
21
+            <p style="flex:1;">{{patient.health_care_no}}</p>
16 22
         </div>
17 23
         <div class="otherInfo">
18 24
             <p>联系电话:</p>
19
-            <p style="flex:1;">23234343234</p>
25
+            <p style="flex:1;">{{patient.phone}}</p>
20 26
         </div>
21 27
         <div class="otherInfo">
22 28
             <p>通讯地址:</p>
23
-            <p style="flex:1;">奥数都我阿苏do一按实际的福克斯</p>
29
+            <p style="flex:1;">{{patient.home_address}}</p>
24 30
         </div>
25 31
         <div class="otherInfo">
26 32
             <p>药物过敏史:</p>
27
-            <p style="flex:1;">奥数都我阿苏do一按实际的福克斯</p>
33
+            <p style="flex:1;">{{patient.past_history}}</p>
28 34
         </div>
29 35
         <div class="otherInfo">
30 36
             <p>病历编号:</p>
31
-            <p style="flex:1;">2020110300002525</p>
37
+            <p style="flex:1;">{{patient.id}}</p>
32 38
         </div>
33 39
         <div style="page-break-after:always;margin-top:50px;"></div>
34 40
 
35 41
 
36 42
         <div class="printTitle">病历内容</div>
37 43
         <div class="recordTitle">
38
-            <p>科别:全科</p>
39
-            <p>姓名:阿萨德</p>
40
-            <p>性别:男</p>
41
-            <p>年龄:12岁</p>
44
+            <p>科别:{{hispatient.departments}}</p>
45
+            <p>姓名:{{hispatient.name}}</p>
46
+            <p>性别:
47
+                <span v-if="hispatient.gender == 1">男</span>
48
+                <span v-if="hispatient.gender == 2">女</span>
49
+            </p>
50
+            <p>年龄:{{hispatient.age}}岁</p>
42 51
         </div>
43 52
         <div class="otherInfo">
44 53
             <p class="otherName">主诉:</p>
45
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
54
+            <p style="flex:1;">{{history.chief_conplaint}}</p>
46 55
         </div>
47 56
         <div class="otherInfo">
48 57
             <p class="otherName">现病史:</p>
49
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
58
+            <p style="flex:1;">{{history.history_of_present_illness}}</p>
50 59
         </div>
51 60
         <div class="otherInfo">
52 61
             <p class="otherName">既往史:</p>
53
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
62
+            <p style="flex:1;">{{history.past_history}}</p>
54 63
         </div>
55 64
         <div class="otherInfo">
56 65
             <p class="otherName">药物过敏史:</p>
57
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
66
+            <p style="flex:1;">{{history.past_history}}</p>
58 67
         </div>
59 68
         <div class="otherInfo">
60 69
             <p class="otherName">个人史:</p>
61
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
70
+            <p style="flex:1;">{{history.personal_history}}</p>
62 71
         </div>
63 72
         <div class="otherInfo">
64 73
             <p class="otherName">家族史:</p>
65
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
74
+            <p style="flex:1;">{{history.family_history}}</p>
66 75
         </div>
67 76
         <div class="otherInfo">
68 77
             <p class="otherName">体格检查:</p>
69
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
78
+            <p style="flex:1;"></p>
70 79
         </div>
71 80
         <div class="otherInfo">
72 81
             <p class="otherName">门诊诊断:</p>
73
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
82
+            <p style="flex:1;">{{history.diagnostic}}</p>
74 83
         </div>
75 84
         <div class="otherInfo">
76 85
             <p class="otherName">门诊医嘱:</p>
77
-            <p style="flex:1;">爱神的箭了卡萨建档立卡加上来得及阿斯利康的</p>
86
+            <p style="flex:1;"></p>
78 87
         </div>
79 88
         <div style="margin-top:20px;text-align:right;">
80
-            医生签名:阿斯加德
89
+            医生签名:{{getDoctor(history.doctor)}}
81 90
         </div>
82 91
     </div>
83 92
 </template>
93
+<script>
94
+import { getDataConfig } from "@/utils/data";
95
+import { getAllDoctorList } from "@/api/project/project"
96
+export default {
97
+    props:{
98
+      patient:Object,
99
+      hispatient:Object,
100
+      history:Object,
101
+    },
102
+    return:{
103
+      educationOptions:[]
104
+    },
105
+    data(){
84 106
 
107
+    },
108
+    methods:{
109
+      getProfession(id){
110
+        var name = ""
111
+        for(let i=0;i<this.educationOptions.length;i++){
112
+           if(id == this.educationOptions[i].id){
113
+              name = this.educationOptions[i].name
114
+           }
115
+        }
116
+        return name
117
+      },
118
+      getAllDoctorList(){
119
+           getAllDoctorList().then(response=>{
120
+             if(response.data.state == 1){
121
+               var doctor =  response.data.data.doctor
122
+
123
+               this.doctorList = doctor
124
+            //    var department = response.data.data.department
125
+            //    console.log("department",department)
126
+            //    this.departmentList = department
127
+             }
128
+           })   
129
+       },
130
+      getDoctor(id){
131
+        var name = ""
132
+        for(let i=0;i<this.doctorList.length;i++){
133
+          if(id == this.doctorList[i].admin_user_id){
134
+              name = this.doctorList[i].user_name
135
+          }
136
+        }
137
+        return name
138
+      }
139
+    },
140
+    created(){
141
+      this.educationOptions = getDataConfig("patient", "education_types");
142
+      console.log("22222",this.educationOptions)
143
+      this.getAllDoctorList()
144
+    }
145
+}
146
+</script>
85 147
 
86 148
 
87 149
 <style lang="scss" scoped>