|
@@ -0,0 +1,834 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="patient-container">
|
|
3
|
+ <patient-sidebar :id="patient_id" defaultActive="1-11"></patient-sidebar>
|
|
4
|
+ <div v-loading="loading">
|
|
5
|
+ <div class="patient-app-container advice-container app-container">
|
|
6
|
+
|
|
7
|
+ <div>
|
|
8
|
+ <span style="margin-left: 10px;float:right;">
|
|
9
|
+ <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
|
|
10
|
+ @click="addAction">新增</el-button>
|
|
11
|
+
|
|
12
|
+ <el-button type="primary" icon="el-icon-edit-outline" size="small"
|
|
13
|
+ @click="toEdit">修改</el-button>
|
|
14
|
+ <el-button type="primary" icon="el-icon-printer" size="small"
|
|
15
|
+ @click="print">打印</el-button>
|
|
16
|
+ <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
|
|
17
|
+ </span>
|
|
18
|
+ </div>
|
|
19
|
+
|
|
20
|
+ <div class="cell clearfix">
|
|
21
|
+ <label class="title"><span class="name">日期查询</span> : </label>
|
|
22
|
+ <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
|
23
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
24
|
+ value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
|
|
25
|
+ <span class="">-</span>
|
|
26
|
+ <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
|
27
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
28
|
+ value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
|
|
29
|
+ </div>
|
|
30
|
+ <div class="record">
|
|
31
|
+ <el-row :gutter="15">
|
|
32
|
+ <el-col :span="10">
|
|
33
|
+ <el-table :header-cell-style="{
|
|
34
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
35
|
+ color: '#606266'
|
|
36
|
+ }"
|
|
37
|
+ :row-style="{ color: '#303133' }" ref="monthlyPlanTable" :data="tableData"
|
|
38
|
+ border highlight-current-row @current-change="changeCurrentRecordTwo"
|
|
39
|
+ @selection-change="selectSummary"
|
|
40
|
+ :row-class-name="tableRow"
|
|
41
|
+ >
|
|
42
|
+ <el-table-column type="selection" width="60" align="center"></el-table-column>
|
|
43
|
+ <el-table-column label="标题" align="center">
|
|
44
|
+ <template slot-scope="scope">
|
|
45
|
+ {{scope.row.title}}
|
|
46
|
+ </template>
|
|
47
|
+ </el-table-column>
|
|
48
|
+ <el-table-column label="记录日期" align="center">
|
|
49
|
+ <template slot-scope="scope">
|
|
50
|
+ {{getTime(scope.row.record_date)}}
|
|
51
|
+ </template>
|
|
52
|
+ </el-table-column>
|
|
53
|
+ <el-table-column label="记录医师" align="center">
|
|
54
|
+ <template slot-scope="scope">
|
|
55
|
+ {{getDoctor(scope.row.doctor)}}
|
|
56
|
+ </template>
|
|
57
|
+ </el-table-column>
|
|
58
|
+ </el-table>
|
|
59
|
+ </el-col>
|
|
60
|
+ <el-col :span="14">
|
|
61
|
+ <div class="record_content_panel">
|
|
62
|
+ <div style="background-color:rgb(245, 247, 250)" class="title">出院小结内容</div>
|
|
63
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;">标题:
|
|
64
|
+ {{hosDetail.title}}
|
|
65
|
+ </div>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">记录医师:
|
|
69
|
+ {{getDoctor(hosDetail.doctor)}}
|
|
70
|
+ </div>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">主诉内容:
|
|
75
|
+ <span v-html="hosDetail.main_content"></span>
|
|
76
|
+ </div>
|
|
77
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病例特点:
|
|
78
|
+ <span v-html="hosDetail.patient_case"></span>
|
|
79
|
+ </div>
|
|
80
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">初步诊断:
|
|
81
|
+ <span v-html="hosDetail.tentative_diagnosis"></span>
|
|
82
|
+ </div>
|
|
83
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊断依据:
|
|
84
|
+ <span v-html="hosDetail.diagnostic_basis"></span>
|
|
85
|
+ </div>
|
|
86
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">鉴别诊断:
|
|
87
|
+ <span v-html="hosDetail.differential_diagnosis"></span>
|
|
88
|
+ </div>
|
|
89
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">诊疗计划:
|
|
90
|
+ <span v-html="hosDetail.treatment_plan"></span>
|
|
91
|
+ </div>
|
|
92
|
+
|
|
93
|
+ </div>
|
|
94
|
+ </el-col>
|
|
95
|
+ </el-row>
|
|
96
|
+ </div>
|
|
97
|
+ </div>
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+ <el-dialog title="新增首次病程记录" width="60%" top="5vh" :visible.sync="show_dialog">
|
|
102
|
+ <div>
|
|
103
|
+ <div class="new_record_form">
|
|
104
|
+ <div class="cell clearfix">
|
|
105
|
+ <label class="title"><span class="name">标题</span> : </label>
|
|
106
|
+ <el-input v-model="form.title" style="width:200px"></el-input>
|
|
107
|
+
|
|
108
|
+ <label class="title"><span class="name">记录医师</span>:</label>
|
|
109
|
+ <el-select v-model="form.doctor" placeholder="请选择">
|
|
110
|
+ <el-option
|
|
111
|
+ v-for="item in doctorList"
|
|
112
|
+ :key="item.admin_user_id"
|
|
113
|
+ :label="item.user_name"
|
|
114
|
+ :value="item.admin_user_id">
|
|
115
|
+ </el-option>
|
|
116
|
+ </el-select>
|
|
117
|
+
|
|
118
|
+ <label class="title"><span class="name">记录日期</span> : </label>
|
|
119
|
+ <el-date-picker v-model="form.record_date"
|
|
120
|
+ prefix-icon="el-icon-date"
|
|
121
|
+ style="width: 200px;"
|
|
122
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
123
|
+ value-format="yyyy-MM-dd">
|
|
124
|
+ </el-date-picker>
|
|
125
|
+ </div>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+ <div class="cell clearfix" style="margin-top:10px">
|
|
130
|
+ <label class="title"><span class="name">主诉内容</span> : </label>
|
|
131
|
+ <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
|
|
132
|
+ <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
|
|
133
|
+ :value="option.content"></el-option>
|
|
134
|
+ </el-select>
|
|
135
|
+
|
|
136
|
+ <div class="textarea_panel">
|
|
137
|
+ <keep-alive>
|
|
138
|
+ <editor ref="editor"
|
|
139
|
+ id="editor"
|
|
140
|
+ style="width: 800px"
|
|
141
|
+ v-bind:r_content="form.main_content">
|
|
142
|
+ </editor>
|
|
143
|
+ </keep-alive>
|
|
144
|
+ </div>
|
|
145
|
+
|
|
146
|
+ <label class="title"><span class="name">病例特点</span> : </label>
|
|
147
|
+ <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
|
|
148
|
+ <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
|
|
149
|
+ :value="option.content"></el-option>
|
|
150
|
+ </el-select>
|
|
151
|
+
|
|
152
|
+ <div class="textarea_panel">
|
|
153
|
+ <keep-alive>
|
|
154
|
+ <editor ref="editorOne"
|
|
155
|
+ id="editorOne"
|
|
156
|
+ style="width: 800px"
|
|
157
|
+ v-bind:r_content="form.patient_case">
|
|
158
|
+ </editor>
|
|
159
|
+ </keep-alive>
|
|
160
|
+ </div>
|
|
161
|
+
|
|
162
|
+ <label class="title"><span class="name">初步诊断</span> : </label>
|
|
163
|
+ <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
|
|
164
|
+ <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
|
|
165
|
+ :value="option.content"></el-option>
|
|
166
|
+ </el-select>
|
|
167
|
+
|
|
168
|
+ <div class="textarea_panel">
|
|
169
|
+ <keep-alive>
|
|
170
|
+ <editor ref="editorTwo"
|
|
171
|
+ id="editorTwo"
|
|
172
|
+ style="width: 800px"
|
|
173
|
+ v-bind:r_content="form.tentative_diagnosis">
|
|
174
|
+ </editor>
|
|
175
|
+ </keep-alive>
|
|
176
|
+ </div>
|
|
177
|
+
|
|
178
|
+ <label class="title"><span class="name">诊断依据</span> : </label>
|
|
179
|
+ <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
|
|
180
|
+ <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
|
|
181
|
+ :value="option.content"></el-option>
|
|
182
|
+ </el-select>
|
|
183
|
+
|
|
184
|
+ <div class="textarea_panel">
|
|
185
|
+ <keep-alive>
|
|
186
|
+ <editor ref="editorThree"
|
|
187
|
+ id="editorThree"
|
|
188
|
+ style="width: 800px"
|
|
189
|
+ v-bind:r_content="form.diagnostic_basis">
|
|
190
|
+ </editor>
|
|
191
|
+ </keep-alive>
|
|
192
|
+ </div>
|
|
193
|
+
|
|
194
|
+ <label class="title"><span class="name">鉴别诊断</span> : </label>
|
|
195
|
+ <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
|
|
196
|
+ <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
|
|
197
|
+ :value="option.content"></el-option>
|
|
198
|
+ </el-select>
|
|
199
|
+
|
|
200
|
+ <div class="textarea_panel">
|
|
201
|
+ <keep-alive>
|
|
202
|
+ <editor ref="editorFour"
|
|
203
|
+ id="editorFour"
|
|
204
|
+ style="width: 800px"
|
|
205
|
+ v-bind:r_content="form.differential_diagnosis">
|
|
206
|
+ </editor>
|
|
207
|
+ </keep-alive>
|
|
208
|
+ </div>
|
|
209
|
+
|
|
210
|
+ <label class="title"><span class="name">诊疗计划</span> : </label>
|
|
211
|
+ <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
|
|
212
|
+ <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
|
|
213
|
+ :value="option.content"></el-option>
|
|
214
|
+ </el-select>
|
|
215
|
+
|
|
216
|
+ <div class="textarea_panel">
|
|
217
|
+ <keep-alive>
|
|
218
|
+ <editor ref="editorFive"
|
|
219
|
+ id="editorFive"
|
|
220
|
+ style="width: 800px"
|
|
221
|
+ v-bind:r_content="form.treatment_plan">
|
|
222
|
+ </editor>
|
|
223
|
+ </keep-alive>
|
|
224
|
+ </div>
|
|
225
|
+ </div>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+ <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
|
|
229
|
+ <el-button @click="show_dialog = false">取消</el-button>
|
|
230
|
+ <el-button type="primary"
|
|
231
|
+ @click="createAction" :loading="uploading_new_record">保存
|
|
232
|
+ </el-button>
|
|
233
|
+ </div>
|
|
234
|
+ </div>
|
|
235
|
+ </div>
|
|
236
|
+ </el-dialog>
|
|
237
|
+
|
|
238
|
+ <el-dialog title="编辑首次病程记录" width="60%" top="5vh" :visible.sync="edit_show_dialog">
|
|
239
|
+ <div>
|
|
240
|
+ <div class="new_record_form">
|
|
241
|
+ <div class="cell clearfix">
|
|
242
|
+ <label class="title"><span class="name">标题</span> : </label>
|
|
243
|
+ <el-input v-model="form.title" style="width:200px"></el-input>
|
|
244
|
+
|
|
245
|
+ <label class="title"><span class="name">记录医师</span>:</label>
|
|
246
|
+ <el-select v-model="form.doctor" placeholder="请选择">
|
|
247
|
+ <el-option
|
|
248
|
+ v-for="item in doctorList"
|
|
249
|
+ :key="item.admin_user_id"
|
|
250
|
+ :label="item.user_name"
|
|
251
|
+ :value="item.admin_user_id">
|
|
252
|
+ </el-option>
|
|
253
|
+ </el-select>
|
|
254
|
+
|
|
255
|
+ <label class="title"><span class="name">记录日期</span> : </label>
|
|
256
|
+ <el-date-picker v-model="form.record_date"
|
|
257
|
+ prefix-icon="el-icon-date"
|
|
258
|
+ style="width: 200px;"
|
|
259
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
260
|
+ value-format="yyyy-MM-dd">
|
|
261
|
+ </el-date-picker>
|
|
262
|
+ </div>
|
|
263
|
+
|
|
264
|
+ <div class="cell clearfix" style="margin-top:10px">
|
|
265
|
+ <label class="title"><span class="name">主诉内容</span> : </label>
|
|
266
|
+ <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
|
|
267
|
+ <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
|
|
268
|
+ :value="option.content"></el-option>
|
|
269
|
+ </el-select>
|
|
270
|
+
|
|
271
|
+ <div class="textarea_panel">
|
|
272
|
+ <keep-alive>
|
|
273
|
+ <editor ref="editor"
|
|
274
|
+ id="editor"
|
|
275
|
+ style="width: 800px"
|
|
276
|
+ v-bind:r_content="form.main_content">
|
|
277
|
+ </editor>
|
|
278
|
+ </keep-alive>
|
|
279
|
+ </div>
|
|
280
|
+
|
|
281
|
+ <label class="title"><span class="name">病例特点</span> : </label>
|
|
282
|
+ <el-select v-model="form.patient_case_id" placeholder="可选择病程模板" @change="changePatientCase">
|
|
283
|
+ <el-option v-for="(option, index) in patientCaseList" :key="index" :label="option.title"
|
|
284
|
+ :value="option.content"></el-option>
|
|
285
|
+ </el-select>
|
|
286
|
+
|
|
287
|
+ <div class="textarea_panel">
|
|
288
|
+ <keep-alive>
|
|
289
|
+ <editor ref="editorOne"
|
|
290
|
+ id="editorOne"
|
|
291
|
+ style="width: 800px"
|
|
292
|
+ v-bind:r_content="form.patient_case">
|
|
293
|
+ </editor>
|
|
294
|
+ </keep-alive>
|
|
295
|
+ </div>
|
|
296
|
+
|
|
297
|
+ <label class="title"><span class="name">初步诊断</span> : </label>
|
|
298
|
+ <el-select v-model="form.tentative_diagnosis_id" placeholder="可选择病程模板" @change="changeTentativeDiagnosis">
|
|
299
|
+ <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
|
|
300
|
+ :value="option.content"></el-option>
|
|
301
|
+ </el-select>
|
|
302
|
+
|
|
303
|
+ <div class="textarea_panel">
|
|
304
|
+ <keep-alive>
|
|
305
|
+ <editor ref="editorTwo"
|
|
306
|
+ id="editorTwo"
|
|
307
|
+ style="width: 800px"
|
|
308
|
+ v-bind:r_content="form.tentative_diagnosis">
|
|
309
|
+ </editor>
|
|
310
|
+ </keep-alive>
|
|
311
|
+ </div>
|
|
312
|
+
|
|
313
|
+ <label class="title"><span class="name">诊断依据</span> : </label>
|
|
314
|
+ <el-select v-model="form.diagnostic_basis_id" placeholder="可选择病程模板" @change="changeDiagnosticBasis">
|
|
315
|
+ <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
|
|
316
|
+ :value="option.content"></el-option>
|
|
317
|
+ </el-select>
|
|
318
|
+
|
|
319
|
+ <div class="textarea_panel">
|
|
320
|
+ <keep-alive>
|
|
321
|
+ <editor ref="editorThree"
|
|
322
|
+ id="editorThree"
|
|
323
|
+ style="width: 800px"
|
|
324
|
+ v-bind:r_content="form.diagnostic_basis">
|
|
325
|
+ </editor>
|
|
326
|
+ </keep-alive>
|
|
327
|
+ </div>
|
|
328
|
+
|
|
329
|
+ <label class="title"><span class="name">鉴别诊断</span> : </label>
|
|
330
|
+ <el-select v-model="form.differential_diagnosis_id" placeholder="可选择病程模板" @change="changeDifferentialDiagnosis">
|
|
331
|
+ <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
|
|
332
|
+ :value="option.content"></el-option>
|
|
333
|
+ </el-select>
|
|
334
|
+
|
|
335
|
+ <div class="textarea_panel">
|
|
336
|
+ <keep-alive>
|
|
337
|
+ <editor ref="editorFour"
|
|
338
|
+ id="editorFour"
|
|
339
|
+ style="width: 800px"
|
|
340
|
+ v-bind:r_content="form.differential_diagnosis">
|
|
341
|
+ </editor>
|
|
342
|
+ </keep-alive>
|
|
343
|
+ </div>
|
|
344
|
+
|
|
345
|
+ <label class="title"><span class="name">诊疗计划</span> : </label>
|
|
346
|
+ <el-select v-model="form.treatment_plan_id" placeholder="可选择病程模板" @change="changeTreateMentContent">
|
|
347
|
+ <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
|
|
348
|
+ :value="option.content"></el-option>
|
|
349
|
+ </el-select>
|
|
350
|
+
|
|
351
|
+ <div class="textarea_panel">
|
|
352
|
+ <keep-alive>
|
|
353
|
+ <editor ref="editorFive"
|
|
354
|
+ id="editorFive"
|
|
355
|
+ style="width: 800px"
|
|
356
|
+ v-bind:r_content="form.treatment_plan">
|
|
357
|
+ </editor>
|
|
358
|
+ </keep-alive>
|
|
359
|
+ </div>
|
|
360
|
+ </div>
|
|
361
|
+
|
|
362
|
+ <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
|
|
363
|
+ <el-button @click="show_dialog = false">取消</el-button>
|
|
364
|
+ <el-button type="primary"
|
|
365
|
+ @click="updateAction" :loading="uploading_new_record">保存
|
|
366
|
+ </el-button>
|
|
367
|
+ </div>
|
|
368
|
+ </div>
|
|
369
|
+ </div>
|
|
370
|
+ </el-dialog>
|
|
371
|
+ </div>
|
|
372
|
+ </div>
|
|
373
|
+</template>
|
|
374
|
+
|
|
375
|
+<script>
|
|
376
|
+ import PatientSidebar from './components/PatientSidebar'
|
|
377
|
+ import Editor from '@/components/Editor'
|
|
378
|
+
|
|
379
|
+ import { createFirstDisease,getFirstDiseaseList,getFirstDetail,updateFirstDisease,deleteFirstDisease} from '@/api/patient'
|
|
380
|
+ import { parseTime } from '@/utils'
|
|
381
|
+ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
382
|
+ import { uParseTime } from '@/utils/tools'
|
|
383
|
+ import { getDataConfig } from '@/utils/data'
|
|
384
|
+ import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
|
|
385
|
+ import MsgTip from '../dialysis/details/dialog/MsgTip'
|
|
386
|
+ import { getAllDoctorList } from "@/api/device"
|
|
387
|
+ const moment = require('moment')
|
|
388
|
+ export default {
|
|
389
|
+ name: 'hospitalSummary',
|
|
390
|
+ components: {
|
|
391
|
+ PatientSidebar,
|
|
392
|
+ BreadCrumb,
|
|
393
|
+ Editor,
|
|
394
|
+ MsgTip,
|
|
395
|
+ multiSelectBox,
|
|
396
|
+ },
|
|
397
|
+ data() {
|
|
398
|
+ return {
|
|
399
|
+ InnerDialogProps: {
|
|
400
|
+ values: [],
|
|
401
|
+ visibility: false,
|
|
402
|
+ isShowTextArea: true,
|
|
403
|
+ customContent: '',
|
|
404
|
+ titles: '',
|
|
405
|
+ type: '' // 不同弹框类型,用来匹配数据
|
|
406
|
+ },
|
|
407
|
+ loading: false,
|
|
408
|
+ title: '',
|
|
409
|
+ patient_id: 0,
|
|
410
|
+ date: [],
|
|
411
|
+ start_time: '',
|
|
412
|
+ end_time: '',
|
|
413
|
+ course_of_disease_time: '',
|
|
414
|
+ records: [],
|
|
415
|
+ doctors: [],
|
|
416
|
+ current_select_record: null,
|
|
417
|
+ show_dialog: false,
|
|
418
|
+ show_edit_dialog: false,
|
|
419
|
+ uploading_new_record: false,
|
|
420
|
+ edit_show_dialog:false,
|
|
421
|
+ mainContentList: this.$store.getters.configlist.main_content,
|
|
422
|
+ patientCaseList:this.$store.getters.configlist.patient_case,
|
|
423
|
+ tentativeDiagnosisList:this.$store.getters.configlist.tentative_diagnosis,
|
|
424
|
+ diagnosticBasisList:this.$store.getters.configlist.diagnostic_basis,
|
|
425
|
+ differentialDiagnosisList:this.$store.getters.configlist.differential_diagnosis,
|
|
426
|
+ treateMentList:this.$store.getters.configlist.treatment_plan,
|
|
427
|
+ select_template: '',
|
|
428
|
+ new_content: '',
|
|
429
|
+ edit_new_content: '',
|
|
430
|
+ edit_course_of_disease_time: '',
|
|
431
|
+ selectingRows: [],
|
|
432
|
+ table_current_index: -1,
|
|
433
|
+ edit_current_id: 0,
|
|
434
|
+ edit_title: '',
|
|
435
|
+ value:'',
|
|
436
|
+ form:{
|
|
437
|
+ id:0,
|
|
438
|
+ title:"",
|
|
439
|
+ doctor:"",
|
|
440
|
+ record_date:this.getTime(new Date()),
|
|
441
|
+ pathology:"",
|
|
442
|
+ record_time:"",
|
|
443
|
+ main_content_id:"",
|
|
444
|
+ main_content:"",
|
|
445
|
+ patient_case_id:"",
|
|
446
|
+ patient_case:"",
|
|
447
|
+ tentative_diagnosis_id:"",
|
|
448
|
+ tentative_diagnosis:"",
|
|
449
|
+ diagnostic_basis_id:"",
|
|
450
|
+ diagnostic_basis:"",
|
|
451
|
+ differential_diagnosis_id:"",
|
|
452
|
+ differential_diagnosis:"",
|
|
453
|
+ treatment_plan_id:"",
|
|
454
|
+ treatment_plan:""
|
|
455
|
+ },
|
|
456
|
+ tableData:[],
|
|
457
|
+ docList:[],
|
|
458
|
+ doctorList:[],
|
|
459
|
+ hosDetail:{},
|
|
460
|
+ ids:"",
|
|
461
|
+ patient:{},
|
|
462
|
+ }
|
|
463
|
+ },
|
|
464
|
+ created() {
|
|
465
|
+
|
|
466
|
+ this.patient_id = this.$route.params && this.$route.params.id
|
|
467
|
+
|
|
468
|
+ var now = new Date()
|
|
469
|
+ this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
|
|
470
|
+
|
|
471
|
+ var nowDate = new Date()
|
|
472
|
+ var nowYear = nowDate.getFullYear()
|
|
473
|
+ var nowMonth = nowDate.getMonth() + 1
|
|
474
|
+
|
|
475
|
+ var nowDay = nowDate.getDate()
|
|
476
|
+ this.end_time =
|
|
477
|
+ nowYear +
|
|
478
|
+ '-' +
|
|
479
|
+ (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
|
|
480
|
+ '-' +
|
|
481
|
+ (nowDay < 10 ? '0' + nowDay : nowDay)
|
|
482
|
+ nowDate.setMonth(nowDate.getMonth() - 1)
|
|
483
|
+ nowYear = nowDate.getFullYear()
|
|
484
|
+ nowMonth = nowDate.getMonth() + 1
|
|
485
|
+ nowDay = nowDate.getDate()
|
|
486
|
+ this.start_time =
|
|
487
|
+ nowYear +
|
|
488
|
+ '-' +
|
|
489
|
+ (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
|
|
490
|
+ '-' +
|
|
491
|
+ (nowDay < 10 ? '0' + nowDay : nowDay)
|
|
492
|
+ this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
|
|
493
|
+
|
|
494
|
+ this.getAllDoctorList()
|
|
495
|
+ this.getlist()
|
|
496
|
+
|
|
497
|
+ },
|
|
498
|
+ methods: {
|
|
499
|
+ getTime(val) {
|
|
500
|
+ if(val == "" || val == undefined){
|
|
501
|
+ return ""
|
|
502
|
+ }else {
|
|
503
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
504
|
+ }
|
|
505
|
+ },
|
|
506
|
+
|
|
507
|
+ startTimeChange(val){
|
|
508
|
+
|
|
509
|
+ this.start_time = val
|
|
510
|
+ this.getlist()
|
|
511
|
+ },
|
|
512
|
+ endTimeChange(val){
|
|
513
|
+ this.end_time = val
|
|
514
|
+ this.getlist()
|
|
515
|
+ },
|
|
516
|
+ print(){
|
|
517
|
+ this.$router.push({path:"/patient/patient/hospitalSummary/print?id="+this.form.id+"&patient_id="+this.patient_id})
|
|
518
|
+ },
|
|
519
|
+ tableRow(){
|
|
520
|
+
|
|
521
|
+ },
|
|
522
|
+ changeCurrentRecordTwo(row){
|
|
523
|
+
|
|
524
|
+ this.form.id = 0
|
|
525
|
+ if(row!=null){
|
|
526
|
+ this.form.id = row.id
|
|
527
|
+ this.getFirstDetail(row.id)
|
|
528
|
+ }
|
|
529
|
+ },
|
|
530
|
+ selectSummary(row){
|
|
531
|
+ var arr = []
|
|
532
|
+ for(let i=0;i<row.length;i++){
|
|
533
|
+ arr.push(row[i].id)
|
|
534
|
+ }
|
|
535
|
+ var ids = arr.join(",")
|
|
536
|
+ this.ids = ids
|
|
537
|
+ },
|
|
538
|
+
|
|
539
|
+ changeMainContent(content){
|
|
540
|
+ this.form.main_content = content
|
|
541
|
+ },
|
|
542
|
+ changePatientCase(content){
|
|
543
|
+ this.form.patient_case = content
|
|
544
|
+ },
|
|
545
|
+ changeTentativeDiagnosis(content){
|
|
546
|
+ this.form.tentative_diagnosis = content
|
|
547
|
+ },
|
|
548
|
+ changeDiagnosticBasis(content){
|
|
549
|
+ this.form.diagnostic_basis =content
|
|
550
|
+ },
|
|
551
|
+ changeDifferentialDiagnosis(content){
|
|
552
|
+ this.form.differential_diagnosis = content
|
|
553
|
+ },
|
|
554
|
+ changeTreateMentContent(content){
|
|
555
|
+ this.form.treatment_plan = content
|
|
556
|
+ },
|
|
557
|
+
|
|
558
|
+ createAction(){
|
|
559
|
+
|
|
560
|
+ if(this.form.doctor == ""){
|
|
561
|
+ this.form.doctor = 0
|
|
562
|
+ }
|
|
563
|
+ var params = {
|
|
564
|
+ patient_id:parseInt(this.patient_id),
|
|
565
|
+ title:this.form.title,
|
|
566
|
+ main_content:this.$refs.editor.content,
|
|
567
|
+ patient_case:this.$refs.editorOne.content,
|
|
568
|
+ tentative_diagnosis:this.$refs.editorTwo.content,
|
|
569
|
+ diagnostic_basis:this.$refs.editorThree.content,
|
|
570
|
+ differential_diagnosis:this.$refs.editorFour.content,
|
|
571
|
+ treatment_plan:this.$refs.editorFive.content,
|
|
572
|
+ record_date:this.form.record_date,
|
|
573
|
+ doctor:this.form.doctor,
|
|
574
|
+ }
|
|
575
|
+ console.log("params",params)
|
|
576
|
+
|
|
577
|
+ createFirstDisease(params).then(response=>{
|
|
578
|
+ if(response.data.state == 1){
|
|
579
|
+ var list = response.data.data.firstDisease
|
|
580
|
+
|
|
581
|
+ this.$message.success("保存成功!")
|
|
582
|
+ this.show_dialog = false
|
|
583
|
+ this.getlist()
|
|
584
|
+ }
|
|
585
|
+ })
|
|
586
|
+ },
|
|
587
|
+ getAllDoctorList(){
|
|
588
|
+ getAllDoctorList().then(response=>{
|
|
589
|
+ if(response.data.state == 1){
|
|
590
|
+ var list = response.data.data.list
|
|
591
|
+
|
|
592
|
+ this.doctorList = list
|
|
593
|
+ }
|
|
594
|
+ })
|
|
595
|
+ },
|
|
596
|
+ getTime(val) {
|
|
597
|
+ if(val == ""){
|
|
598
|
+ return ""
|
|
599
|
+ }else {
|
|
600
|
+ return uParseTime(val, '{y}-{m}-{d}')
|
|
601
|
+ }
|
|
602
|
+ },
|
|
603
|
+
|
|
604
|
+ getlist(){
|
|
605
|
+ var params = {
|
|
606
|
+ start_time:this.start_time,
|
|
607
|
+ end_time:this.end_time,
|
|
608
|
+ patient_id:parseInt(this.patient_id),
|
|
609
|
+ }
|
|
610
|
+ getFirstDiseaseList(params).then(response=>{
|
|
611
|
+ if(response.data.state ==1){
|
|
612
|
+ var list = response.data.data.list
|
|
613
|
+ this.tableData = list
|
|
614
|
+ }
|
|
615
|
+ })
|
|
616
|
+ },
|
|
617
|
+ getDoctor(id){
|
|
618
|
+ var name = ""
|
|
619
|
+ for(let i=0;i<this.doctorList.length;i++){
|
|
620
|
+ if(id == this.doctorList[i].admin_user_id){
|
|
621
|
+ name = this.doctorList[i].user_name
|
|
622
|
+ }
|
|
623
|
+ }
|
|
624
|
+ return name
|
|
625
|
+ },
|
|
626
|
+ getFirstDetail(id){
|
|
627
|
+ getFirstDetail(id).then(response=>{
|
|
628
|
+ if(response.data.state == 1){
|
|
629
|
+ var detail = response.data.data.detail
|
|
630
|
+
|
|
631
|
+ this.hosDetail = detail
|
|
632
|
+ }
|
|
633
|
+ })
|
|
634
|
+ },
|
|
635
|
+ getHospitalSummaryDetailOne(id){
|
|
636
|
+ getFirstDetail(id).then(response=>{
|
|
637
|
+ if(response.data.state == 1){
|
|
638
|
+ var detail = response.data.data.detail
|
|
639
|
+ console.log("detial------",detail)
|
|
640
|
+ if(detail.doctor == 0){
|
|
641
|
+ this.form.doctor = ""
|
|
642
|
+ }
|
|
643
|
+ this.form.id = detail.id
|
|
644
|
+ this.form.title = detail.title
|
|
645
|
+ this.form.record_date = this.getTime(detail.record_date)
|
|
646
|
+ this.form.doctor = detail.doctor
|
|
647
|
+ this.form.main_content = detail.main_content
|
|
648
|
+ this.form.patient_case = detail.patient_case
|
|
649
|
+ this.form.tentative_diagnosis = detail.tentative_diagnosis
|
|
650
|
+ this.form.diagnostic_basis = detail.diagnostic_basis
|
|
651
|
+ this.form.differential_diagnosis = detail.differential_diagnosis
|
|
652
|
+ this.form.treatment_plan =detail.treatment_plan
|
|
653
|
+ this.edit_show_dialog = true
|
|
654
|
+ }
|
|
655
|
+ })
|
|
656
|
+ },
|
|
657
|
+ toEdit(){
|
|
658
|
+ this.getHospitalSummaryDetailOne(this.form.id)
|
|
659
|
+ },
|
|
660
|
+ updateAction(){
|
|
661
|
+
|
|
662
|
+ if(this.form.doctor == ""){
|
|
663
|
+ this.form.doctor = 0
|
|
664
|
+ }
|
|
665
|
+ if(this.form.dean == ""){
|
|
666
|
+ this.form.dean = 0
|
|
667
|
+ }
|
|
668
|
+
|
|
669
|
+ var params = {
|
|
670
|
+ id:this.form.id,
|
|
671
|
+ patient_id:parseInt(this.patient_id),
|
|
672
|
+ title:this.form.title,
|
|
673
|
+ doctor:this.form.doctor,
|
|
674
|
+ record_date:this.form.record_date,
|
|
675
|
+ main_content:this.$refs.editor.content,
|
|
676
|
+ patient_case:this.$refs.editorOne.content,
|
|
677
|
+ tentative_diagnosis:this.$refs.editorTwo.content,
|
|
678
|
+ diagnostic_basis:this.$refs.editorThree.content,
|
|
679
|
+ differential_diagnosis:this.$refs.editorFour.content,
|
|
680
|
+ treatment_plan:this.$refs.editorFive.content,
|
|
681
|
+ }
|
|
682
|
+ console.log("poarams2323322323",params)
|
|
683
|
+ updateFirstDisease(params).then(response=>{
|
|
684
|
+ if(response.data.state == 1){
|
|
685
|
+ var detail = response.data.data.detail
|
|
686
|
+ this.edit_show_dialog = false
|
|
687
|
+ // this.$refs.monthlyPlanTable.setCurrentRow(detail)
|
|
688
|
+ this.getlist()
|
|
689
|
+ }
|
|
690
|
+ })
|
|
691
|
+ },
|
|
692
|
+ deleteAction(){
|
|
693
|
+ if(this.ids.length == 0){
|
|
694
|
+ this.$message.error("请勾选需要删除的数据")
|
|
695
|
+ return false
|
|
696
|
+ }
|
|
697
|
+ this.$confirm('确认删除吗?', '删除', {
|
|
698
|
+ confirmButtonText: '确 定',
|
|
699
|
+ cancelButtonText: '取 消',
|
|
700
|
+ type: 'warning'
|
|
701
|
+ }).then(() => {
|
|
702
|
+ var params = {
|
|
703
|
+ ids:this.ids,
|
|
704
|
+ }
|
|
705
|
+ deleteFirstDisease(params).then(response => {
|
|
706
|
+ if (response.data.state == 1) {
|
|
707
|
+ var msg = response.data.data.msg
|
|
708
|
+ this.getlist()
|
|
709
|
+ this.$message.success("删除成功")
|
|
710
|
+ } else {
|
|
711
|
+ this.$message.error("删除失败")
|
|
712
|
+ }
|
|
713
|
+ })
|
|
714
|
+ }).catch(() => {
|
|
715
|
+ })
|
|
716
|
+ },
|
|
717
|
+ addAction(){
|
|
718
|
+ this.form.title = ""
|
|
719
|
+ this.form.sick_personnel = ""
|
|
720
|
+ this.form.xray = ""
|
|
721
|
+ this.form.admitting_diagnosis = ""
|
|
722
|
+ this.form.discharge_diagnosis = ""
|
|
723
|
+ this.form.diagnosis_admission = ""
|
|
724
|
+ this.form.illness_discharge = ""
|
|
725
|
+ this.form.discharge_advice = ""
|
|
726
|
+ this.form.treatment = ""
|
|
727
|
+ this.form.connecticut = ""
|
|
728
|
+ this.form.nuclear_magnetic_resonance = ""
|
|
729
|
+ this.form.ultrasound = ""
|
|
730
|
+ this.form.pathology = ""
|
|
731
|
+ this.form.admitting_diagnosis_id = ""
|
|
732
|
+ this.form.discharge_diagnosis_id = ""
|
|
733
|
+ this.form.illness_discharge_id = ""
|
|
734
|
+ this.form.discharge_advice_id =""
|
|
735
|
+ this.form.treatment_id = ""
|
|
736
|
+ this.form.dean = ""
|
|
737
|
+ this.form.doctor = ""
|
|
738
|
+ this.form.admission_time = this.getTime(new Date())
|
|
739
|
+ this.form.admission_time = this.getTime(new Date()),
|
|
740
|
+ this.form.discharge_time = this.getTime(new Date()),
|
|
741
|
+ this.form.sick_personnel = this.patient.dialysis_no
|
|
742
|
+ this.show_dialog = true
|
|
743
|
+ },
|
|
744
|
+
|
|
745
|
+ },
|
|
746
|
+ watch: {
|
|
747
|
+ tableData: function() {
|
|
748
|
+ this.$nextTick(function() {
|
|
749
|
+ this.$refs.monthlyPlanTable.setCurrentRow(this.tableData[0])
|
|
750
|
+ })
|
|
751
|
+ }
|
|
752
|
+ },
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+ }
|
|
756
|
+</script>
|
|
757
|
+
|
|
758
|
+<style rel="stylesheet/css" lang="scss" scoped>
|
|
759
|
+ .borderBox{
|
|
760
|
+ border: 1px solid #DCDFE6;
|
|
761
|
+ padding: 10px;
|
|
762
|
+ margin-top: 10px;
|
|
763
|
+ border-radius: 4px;
|
|
764
|
+ p{
|
|
765
|
+ font-weight: bold;
|
|
766
|
+ font-size: 20px;
|
|
767
|
+ margin: 10px 0;
|
|
768
|
+ }
|
|
769
|
+ }
|
|
770
|
+ .container {
|
|
771
|
+ margin-left: 180px;
|
|
772
|
+ padding: 20px;
|
|
773
|
+ background: #fff;
|
|
774
|
+ min-height: calc(100vh - 173px);
|
|
775
|
+ margin-bottom: 15px;
|
|
776
|
+
|
|
777
|
+ .record {
|
|
778
|
+ padding-top: 20px;
|
|
779
|
+ }
|
|
780
|
+
|
|
781
|
+ }
|
|
782
|
+ .record_content_panel {
|
|
783
|
+ border-width: 1px;
|
|
784
|
+ border-style: solid;
|
|
785
|
+ border-color: #ebeef5;
|
|
786
|
+ min-height: 200px;
|
|
787
|
+
|
|
788
|
+ .title {
|
|
789
|
+ font-size: 14px;
|
|
790
|
+ font-weight: 500;
|
|
791
|
+ color: #909399;
|
|
792
|
+ line-height: 44px;
|
|
793
|
+ height: 44px;
|
|
794
|
+ text-align: center;
|
|
795
|
+ border-bottom-width: 1px;
|
|
796
|
+ border-bottom-style: solid;
|
|
797
|
+ border-bottom-color: #ebeef5;
|
|
798
|
+ }
|
|
799
|
+
|
|
800
|
+ .content {
|
|
801
|
+ padding: 12px 15px;
|
|
802
|
+ font-size: 15px;
|
|
803
|
+ color: gray;
|
|
804
|
+ line-height: 22px;
|
|
805
|
+ }
|
|
806
|
+
|
|
807
|
+ }
|
|
808
|
+
|
|
809
|
+ .new_record_form {
|
|
810
|
+
|
|
811
|
+ /*/ / padding: 10 px, 25 px;*/
|
|
812
|
+
|
|
813
|
+ .textarea_panel {
|
|
814
|
+ margin-top: 10px;
|
|
815
|
+ }
|
|
816
|
+
|
|
817
|
+ }
|
|
818
|
+</style>
|
|
819
|
+<style>
|
|
820
|
+.el-table td,
|
|
821
|
+.el-table th.is-leaf,
|
|
822
|
+.el-table--border,
|
|
823
|
+.el-table--group {
|
|
824
|
+ border-color: #d0d3da;
|
|
825
|
+}
|
|
826
|
+.el-table--border::after,
|
|
827
|
+.el-table--group::after,
|
|
828
|
+.el-table::before {
|
|
829
|
+ background-color: #d0d3da;
|
|
830
|
+}
|
|
831
|
+.el-select-dropdown {
|
|
832
|
+ max-width: 1000px !important;
|
|
833
|
+}
|
|
834
|
+</style>
|