|
@@ -1,11 +1,8 @@
|
1
|
1
|
<template>
|
2
|
|
- <!-- <div class="main-contain">
|
3
|
|
- <div class="position">
|
4
|
|
- <bread-crumb></bread-crumb>
|
5
|
|
- </div> -->
|
|
2
|
+
|
6
|
3
|
<div class="patient-container">
|
7
|
4
|
<PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
|
8
|
|
- <!-- <div class="app-container"> -->
|
|
5
|
+
|
9
|
6
|
<div v-loading="loading">
|
10
|
7
|
<div class="patient-app-container advice-container app-container" style="">
|
11
|
8
|
<div style="display: flex;">
|
|
@@ -25,23 +22,21 @@
|
25
|
22
|
:highlight-current-row="true"
|
26
|
23
|
@row-click="rowclick"
|
27
|
24
|
style="width: 100%">
|
28
|
|
- <el-table-column
|
29
|
|
- type="selection"
|
30
|
|
- width="55">
|
|
25
|
+
|
|
26
|
+ <el-table-column prop="index" label="序号" width="50">
|
|
27
|
+ <template slot-scope="scope">
|
|
28
|
+ {{ scope.$index + 1 }}
|
|
29
|
+ </template>
|
31
|
30
|
</el-table-column>
|
32
|
|
- <el-table-column
|
33
|
|
- prop="index"
|
34
|
|
- label="序号"
|
35
|
|
- width="50">
|
|
31
|
+ <el-table-column prop="date" label="时间" width="">
|
|
32
|
+ <template slot-scope="scope">
|
|
33
|
+ {{ getTime(scope.row.record_time) }}
|
|
34
|
+ </template>
|
36
|
35
|
</el-table-column>
|
37
|
|
- <el-table-column
|
38
|
|
- prop="date"
|
39
|
|
- label="时间"
|
40
|
|
- width="">
|
41
|
|
- </el-table-column>
|
42
|
|
- <el-table-column
|
43
|
|
- prop="doctor"
|
44
|
|
- label="医生">
|
|
36
|
+ <el-table-column prop="doctor" label="医生">
|
|
37
|
+ <template slot-scope="scope">
|
|
38
|
+ {{ getDocName(scope.row.doctor_id) }}
|
|
39
|
+ </template>
|
45
|
40
|
</el-table-column>
|
46
|
41
|
</el-table>
|
47
|
42
|
</div>
|
|
@@ -58,7 +53,7 @@
|
58
|
53
|
<el-button type="primary" size="small" @click="prints">打印</el-button>
|
59
|
54
|
</div>
|
60
|
55
|
<div v-if="add_index == 1">
|
61
|
|
- <el-button type="primary" size="small" @click="showSave">保存</el-button>
|
|
56
|
+ <el-button type="primary" size="small" @click="showSave">保存2</el-button>
|
62
|
57
|
<el-button size="small" @click="showCancel">取消</el-button>
|
63
|
58
|
</div>
|
64
|
59
|
</div>
|
|
@@ -66,15 +61,10 @@
|
66
|
61
|
<div style="display: flex;margin: 10px 0;">
|
67
|
62
|
<div style="flex: 1;">
|
68
|
63
|
记录时间:
|
69
|
|
- <el-date-picker
|
70
|
|
- v-model="record_date"
|
71
|
|
- type="date"
|
72
|
|
- format="yyyy-MM-dd"
|
73
|
|
- :disabled="disabled"
|
74
|
|
- style="width: 150px;"
|
75
|
|
- value-format="yyyy-MM-dd"
|
76
|
|
- placeholder="选择日期">
|
77
|
|
- </el-date-picker>
|
|
64
|
+ <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
|
|
65
|
+ style="width: 250px;"
|
|
66
|
+ type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
|
|
67
|
+ value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
78
|
68
|
</div>
|
79
|
69
|
<div style="flex: 1;">
|
80
|
70
|
病程医生:
|
|
@@ -100,7 +90,8 @@
|
100
|
90
|
自动生成
|
101
|
91
|
</el-button>
|
102
|
92
|
</div>
|
103
|
|
- <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
|
|
93
|
+
|
|
94
|
+ <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
|
104
|
95
|
</div>
|
105
|
96
|
</div>
|
106
|
97
|
</div>
|
|
@@ -210,111 +201,18 @@
|
210
|
201
|
</div>
|
211
|
202
|
</div>
|
212
|
203
|
</div>
|
213
|
|
- <!-- <span slot="footer" class="dialog-footer">
|
214
|
|
- <el-button @click="auto_dialog = false">取 消</el-button>
|
215
|
|
- <el-button type="primary" @click="auto_dialog = false">确 定</el-button>
|
216
|
|
- </span> -->
|
217
|
|
- </el-dialog>
|
218
|
|
-
|
219
|
|
-
|
220
|
|
-
|
221
|
|
-
|
222
|
|
- <!-- </div> -->
|
223
|
|
- <el-dialog title="新增病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_dialog">
|
224
|
|
- <div>
|
225
|
|
- <div class="new_record_form">
|
226
|
|
- <div class="cell clearfix">
|
227
|
|
- <label class="title"><span class="name">病程日期</span> : </label>
|
228
|
|
- <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
|
229
|
|
- style="width: 250px;"
|
230
|
|
- type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
|
231
|
|
- value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
232
|
|
-
|
233
|
|
- <label class="title"><span class="name">日常病程</span> : </label>
|
234
|
|
- <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
|
235
|
|
- <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
|
236
|
|
- :value="option.content"></el-option>
|
237
|
|
- </el-select>
|
238
|
|
- </div>
|
239
|
|
-
|
240
|
|
- <div class="cell clearfix" style="margin-top: 10px">
|
241
|
|
- <label class="title"><span class="name">病程标题</span> : </label>
|
242
|
|
- <el-input v-model="title" style="width: 420px"></el-input>
|
243
|
|
- </div>
|
244
|
|
-
|
245
|
|
- <div style="margin-top: 10px;">
|
246
|
|
- <el-button type="primary" size="small" @click="toAuto" v-if="org_id == 3877 || org_id == 10440" >自动生成</el-button>
|
247
|
|
- </div>
|
248
|
|
- <div class="textarea_panel">
|
249
|
|
- <keep-alive>
|
250
|
|
- <editor ref="editor"
|
251
|
|
- id="editors"
|
252
|
|
- style="width: 80%"
|
253
|
|
- :content="new_content"
|
254
|
|
- >
|
255
|
|
- </editor>
|
256
|
|
- </keep-alive>
|
257
|
|
- </div>
|
258
|
|
-
|
259
|
|
- <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
|
260
|
|
- <el-button @click="show_dialog = false">取消</el-button>
|
261
|
|
- <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
|
262
|
|
- @click="createAction" :loading="uploading_new_record">保存
|
263
|
|
- </el-button>
|
264
|
|
- </div>
|
265
|
|
- </div>
|
266
|
|
- </div>
|
|
204
|
+
|
267
|
205
|
</el-dialog>
|
268
|
206
|
|
269
|
207
|
|
270
|
|
- <el-dialog title="修改病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_edit_dialog" style="">
|
271
|
|
- <div>
|
272
|
|
- <div class="new_record_form">
|
273
|
|
- <div class="cell clearfix">
|
274
|
|
- <label class="title"><span class="name">病程日期</span> : </label>
|
275
|
|
- <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
|
276
|
|
- style="width: 200px;"
|
277
|
|
- type="datetime"
|
278
|
|
- placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
|
279
|
|
- value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
|
280
|
|
-
|
281
|
|
- <label class="title"><span class="name">日常病程</span> : </label>
|
282
|
|
- <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
|
283
|
|
- <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
|
284
|
|
- :value="option.content"></el-option>
|
285
|
|
- </el-select>
|
286
|
|
- </div>
|
287
|
208
|
|
288
|
209
|
|
289
|
|
- <div class="cell clearfix" style="margin-top: 10px">
|
290
|
|
- <label class="title"><span class="name">病程标题</span> : </label>
|
291
|
|
- <el-input v-model="edit_title" style="width: 420px"></el-input>
|
292
|
|
- </div>
|
293
|
|
-
|
294
|
|
- <div class="textarea_panel">
|
295
|
|
- <!--<el-input v-model="edit_new_content" type="textarea" rows="6" resize="none"></el-input>-->
|
296
|
|
- <keep-alive>
|
297
|
|
- <editor ref="edit_neditor"
|
298
|
|
- id="edit_editor"
|
299
|
|
- style="width: 80%"
|
300
|
|
- v-bind:r_content="edit_new_content">
|
301
|
|
- </editor>
|
302
|
|
- </keep-alive>
|
303
|
|
- </div>
|
304
|
|
-
|
305
|
|
- <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
|
306
|
|
- <el-button @click="show_edit_dialog = false">取消</el-button>
|
307
|
|
- <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
|
308
|
|
- @click="modifyAction" :loading="uploading_new_record">保存
|
309
|
|
- </el-button>
|
310
|
|
- </div>
|
311
|
|
- </div>
|
312
|
|
- </div>
|
313
|
|
- </el-dialog>
|
|
210
|
+
|
|
211
|
+
|
314
|
212
|
</div>
|
315
|
213
|
</div>
|
316
|
214
|
|
317
|
|
- <!-- </div> -->
|
|
215
|
+
|
318
|
216
|
</template>
|
319
|
217
|
|
320
|
218
|
<script>
|
|
@@ -326,10 +224,9 @@
|
326
|
224
|
import { getDataConfig } from "@/utils/data";
|
327
|
225
|
import {
|
328
|
226
|
createNewCourseOfDiseaseRecord,
|
329
|
|
- deleteCourseOfDiseaseRecords,
|
330
|
|
- getCourseOfDiseaseRecords,
|
|
227
|
+ deleteNewCouseOfDisease,
|
331
|
228
|
modifyCourseOfDiseaseRecord,
|
332
|
|
- getPatientDialysisInfor
|
|
229
|
+ getPatientCourseOfDiseaseList
|
333
|
230
|
} from '@/api/patient'
|
334
|
231
|
import { fetchAllDoctorAndNurse } from "@/api/doctor";
|
335
|
232
|
import { parseTime } from '@/utils'
|
|
@@ -380,31 +277,16 @@
|
380
|
277
|
start_date:'',
|
381
|
278
|
end_date:'',
|
382
|
279
|
quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
|
383
|
|
- tableData:[{index:1,date:'2024-11-12',doctor:'王启年'}],
|
|
280
|
+ tableData:[],
|
384
|
281
|
admin_user_id:0,
|
385
|
|
- record_date:""
|
|
282
|
+ record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
|
|
283
|
+ template_name:"",
|
|
284
|
+ id:0
|
386
|
285
|
}
|
387
|
286
|
},
|
388
|
287
|
created() {
|
389
|
288
|
this.admin_user_id = this.$store.getters.xt_user.user.id
|
390
|
|
- var now = new Date()
|
391
|
|
- this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
|
392
|
|
-
|
393
|
|
- var nowDate = new Date()
|
394
|
|
- var nowYear = nowDate.getFullYear()
|
395
|
|
- var nowMonth = nowDate.getMonth() + 1
|
396
|
|
- var nowDay = nowDate.getDate()
|
397
|
|
- this.end_time =
|
398
|
|
- nowYear +
|
399
|
|
- '-' +
|
400
|
|
- (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
|
401
|
|
- '-' +
|
402
|
|
- (nowDay < 10 ? '0' + nowDay : nowDay)
|
403
|
|
- nowDate.setMonth(nowDate.getMonth() - 1)
|
404
|
|
- nowYear = nowDate.getFullYear()
|
405
|
|
- nowMonth = nowDate.getMonth() + 1
|
406
|
|
- nowDay = nowDate.getDate()
|
407
|
|
- this.record_date = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
|
|
289
|
+
|
408
|
290
|
this.patient_id = parseInt(this.$route.query.id)
|
409
|
291
|
this.org_id = this.$store.getters.xt_user.template_info.org_id;
|
410
|
292
|
if (isNaN(this.patient_id) || this.patient_id <= 0) {
|
|
@@ -415,17 +297,47 @@
|
415
|
297
|
this.$router.push('/patients/patients')
|
416
|
298
|
return
|
417
|
299
|
}
|
418
|
|
-
|
419
|
|
- // this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
|
420
|
|
- // console.log("start_time",this.start_time)
|
421
|
|
- // this.end_time = moment().endOf('month').format('YYYY-MM-DD');
|
422
|
|
- // console.log("end_time",this.end_time)
|
|
300
|
+
|
423
|
301
|
this.fetchAllDoctorAndNurse()
|
424
|
|
- this.requestCourseRecords()
|
|
302
|
+ this.getlist()
|
425
|
303
|
|
426
|
304
|
|
427
|
305
|
},
|
428
|
306
|
methods: {
|
|
307
|
+ template_dele(){
|
|
308
|
+
|
|
309
|
+ },
|
|
310
|
+ rowclick(){
|
|
311
|
+
|
|
312
|
+ },
|
|
313
|
+ prints(){
|
|
314
|
+
|
|
315
|
+ },
|
|
316
|
+ template_save(){
|
|
317
|
+
|
|
318
|
+ },
|
|
319
|
+ getDocName(admin_user_id){
|
|
320
|
+ var user_name = ""
|
|
321
|
+ for(let i=0;i<this.doctorOptions.length;i++){
|
|
322
|
+ if(admin_user_id == this.doctorOptions[i].id){
|
|
323
|
+ user_name = this.doctorOptions[i].name
|
|
324
|
+ }
|
|
325
|
+ }
|
|
326
|
+ return user_name
|
|
327
|
+ },
|
|
328
|
+ getlist(){
|
|
329
|
+ var params = {
|
|
330
|
+ patient_id:this.patient_id
|
|
331
|
+ }
|
|
332
|
+ getPatientCourseOfDiseaseList(params).then(response=>{
|
|
333
|
+ if(response.data.state == 1){
|
|
334
|
+ var list = response.data.data.list
|
|
335
|
+ this.tableData = []
|
|
336
|
+ this.tableData = list
|
|
337
|
+
|
|
338
|
+ }
|
|
339
|
+ })
|
|
340
|
+ },
|
429
|
341
|
fetchAllDoctorAndNurse() {
|
430
|
342
|
fetchAllDoctorAndNurse().then(response => {
|
431
|
343
|
if (response.data.state == 1) {
|
|
@@ -445,8 +357,29 @@
|
445
|
357
|
showSave(){
|
446
|
358
|
this.add_index = 0
|
447
|
359
|
this.disabled = true
|
448
|
|
- saveNewCousreOfDisease().then(response=>{
|
|
360
|
+ console.log("haaaaaaaaaaaaaaa",this.$refs)
|
|
361
|
+ this.new_content = this.$refs.editor.contents
|
|
362
|
+ if (this.new_content.length == 0) {
|
|
363
|
+ this.$message.error('请填写病程内容')
|
|
364
|
+ return
|
|
365
|
+ }
|
|
366
|
+ var params = {
|
|
367
|
+ id:this.id,
|
|
368
|
+ patient_id:this.patient_id,
|
|
369
|
+ record_date:this.record_date,
|
|
370
|
+ content:this.new_content,
|
|
371
|
+ admin_user_id:this.admin_user_id,
|
|
372
|
+ }
|
|
373
|
+ console.log("params",params)
|
|
374
|
+ createNewCourseOfDiseaseRecord(params).then(response => {
|
|
375
|
+ if(response.data.state == 1){
|
|
376
|
+ var msg = response.data.data.msg
|
|
377
|
+ this.$message.success("保存成功!")
|
|
378
|
+ this.getlist()
|
|
379
|
+ }
|
449
|
380
|
|
|
381
|
+ }).catch(error => {
|
|
382
|
+
|
450
|
383
|
})
|
451
|
384
|
},
|
452
|
385
|
template_click(){
|
|
@@ -464,12 +397,6 @@
|
464
|
397
|
autotext_click(){
|
465
|
398
|
this.auto_dialog = false
|
466
|
399
|
},
|
467
|
|
-
|
468
|
|
-
|
469
|
|
-
|
470
|
|
-
|
471
|
|
-
|
472
|
|
-
|
473
|
400
|
requestCourseRecords: function() {
|
474
|
401
|
this.loading = true
|
475
|
402
|
getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
|
|
@@ -540,22 +467,26 @@
|
540
|
467
|
|
541
|
468
|
},
|
542
|
469
|
|
543
|
|
- createAction: function() {
|
|
470
|
+ createAction() {
|
|
471
|
+ console.log("haaaaaaaaaaaaaaa",this.$refs)
|
544
|
472
|
this.new_content = this.$refs.editor.contents
|
545
|
|
- console.log("hhhhh2h3h232323232",this.new_content)
|
|
473
|
+
|
546
|
474
|
if (this.new_content.length == 0) {
|
547
|
475
|
this.$message.error('请填写病程内容')
|
548
|
476
|
return
|
549
|
477
|
}
|
550
|
478
|
var params = {
|
|
479
|
+ id:this.id,
|
551
|
480
|
patient_id:this.patient_id,
|
552
|
481
|
record_date:this.record_date,
|
553
|
482
|
content:this.new_content,
|
554
|
483
|
admin_user_id:this.admin_user_id,
|
555
|
484
|
}
|
|
485
|
+ console.log("params",params)
|
556
|
486
|
createNewCourseOfDiseaseRecord(params).then(response => {
|
557
|
487
|
if(response.data.state == 1){
|
558
|
|
-
|
|
488
|
+ var msg = response.data.data.msg
|
|
489
|
+ this.$message.success("保存成功!")
|
559
|
490
|
}
|
560
|
491
|
|
561
|
492
|
}).catch(error => {
|
|
@@ -580,44 +511,30 @@
|
580
|
511
|
console.log("select23322332",this.ids)
|
581
|
512
|
this.selectingRows = selectRows
|
582
|
513
|
},
|
583
|
|
- deleteAction: function() {
|
584
|
|
- if (this.selectingRows.length == 0) {
|
585
|
|
- return
|
586
|
|
- }
|
587
|
|
- var ids = []
|
588
|
|
- for (let index = 0; index < this.selectingRows.length; index++) {
|
589
|
|
- const row = this.selectingRows[index]
|
590
|
|
- ids.push(row.id)
|
591
|
|
- }
|
592
|
|
- var ids_str = ids.join(',')
|
593
|
|
- this.loading = true
|
594
|
|
- deleteCourseOfDiseaseRecords(this.patient_id, ids_str).then(rs => {
|
595
|
|
- var resp = rs.data
|
596
|
|
- if (resp.state == 1) {
|
597
|
|
- for (let id_index = 0; id_index < ids.length; id_index++) {
|
598
|
|
- for (let record_index = 0; record_index < this.records.length; record_index++) {
|
599
|
|
- if (ids[id_index] == this.records[record_index].id) {
|
600
|
|
- this.records.splice(record_index, 1)
|
601
|
|
- break
|
602
|
|
- }
|
603
|
|
- }
|
|
514
|
+ deleteAction(){
|
|
515
|
+ if(this.id == 0){
|
|
516
|
+ this.$message.error("请选择要删除的信息!")
|
|
517
|
+ return false
|
|
518
|
+ }
|
|
519
|
+ this.$confirm('确定要取消吗?', '提示', {
|
|
520
|
+ confirmButtonText: '确定',
|
|
521
|
+ cancelButtonText: '取消',
|
|
522
|
+ type: 'warning'
|
|
523
|
+ }).then(() => {
|
|
524
|
+ deleteNewCouseOfDisease(this.id).then(response=>{
|
|
525
|
+ if (response.data.state==1) {
|
|
526
|
+ var msg = response.data.data.msg
|
|
527
|
+ this.$message.success("保存成功!")
|
|
528
|
+ this.getlist()
|
604
|
529
|
}
|
605
|
|
- this.selectingRows = []
|
606
|
|
- this.$message.success('已删除')
|
|
530
|
+ });
|
|
531
|
+ }).catch(() => {
|
607
|
532
|
|
608
|
|
- } else {
|
609
|
|
- this.$message.error(resp.msg)
|
610
|
|
- }
|
611
|
|
- this.loading = false
|
612
|
|
- }).catch(err => {
|
613
|
|
- this.loading = false
|
614
|
|
- this.$message.error(err)
|
615
|
|
- })
|
616
|
|
- }, startTimeChange(val) {
|
617
|
|
- this.requestCourseRecords()
|
618
|
|
- }, endTimeChange(val) {
|
619
|
|
- this.requestCourseRecords()
|
620
|
|
- }, showEdit() {
|
|
533
|
+ });
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+ },
|
|
537
|
+ showEdit() {
|
621
|
538
|
if (this.table_current_index == -1) {
|
622
|
539
|
this.$message.error('请选择要修改的病程内容')
|
623
|
540
|
return
|
|
@@ -643,92 +560,6 @@
|
643
|
560
|
this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
|
644
|
561
|
|
645
|
562
|
},
|
646
|
|
- toAuto(){
|
647
|
|
-
|
648
|
|
- var params= {
|
649
|
|
- patient_id:parseInt(this.$route.query.id),
|
650
|
|
- record_date:this.course_of_disease_time.slice(0,10),
|
651
|
|
- }
|
652
|
|
- console.log("param2222owoowwow",params)
|
653
|
|
- getPatientDialysisInfor(params).then(response=>{
|
654
|
|
- if(response.data.state== 1){
|
655
|
|
- var patient = response.data.data.patient
|
656
|
|
- var prescription = response.data.data.prescription
|
657
|
|
- var predialysis_evaluation = response.data.data.assessmentBefor
|
658
|
|
- var dialysis_order = response.data.data.order
|
659
|
|
- var monitors = response.data.data.monitor
|
660
|
|
- var doctor_advices = response.data.data.advice
|
661
|
|
- var assessment_after_dislysis = response.data.data.afterDislysis
|
662
|
|
-
|
663
|
|
- var str_one = ""
|
664
|
|
- if(dialysis_order!=null){
|
665
|
|
- if(dialysis_order.puncture_nurse_id >0){
|
666
|
|
- str_one = "护士穿刺成功!"
|
667
|
|
- }
|
668
|
|
- }
|
669
|
|
-
|
670
|
|
- var total =0
|
671
|
|
- if(predialysis_evaluation!=null){
|
672
|
|
- total = (predialysis_evaluation.weight_before - predialysis_evaluation.dry_weight).toFixed(1)
|
673
|
|
- }
|
674
|
|
-
|
675
|
|
-
|
676
|
|
- var monitor_one =[]
|
677
|
|
- var monitor_two = []
|
678
|
|
- var monitor_three = []
|
679
|
|
-
|
680
|
|
- if(monitors!=null && monitors.length > 0){
|
681
|
|
- var monitor_one = monitors.sort(function (a,b) {
|
682
|
|
- return b.systolic_bp - a.systolic_bp
|
683
|
|
- })
|
684
|
|
- var monitor_two = monitors.sort(function (a,b) {
|
685
|
|
- return b.diastolic_bp - a.diastolic_bp
|
686
|
|
- })
|
687
|
|
-
|
688
|
|
- var monitor_three = monitors.sort(function (a,b) {
|
689
|
|
- return b.pulse_frequency - a.pulse_frequency
|
690
|
|
- })
|
691
|
|
-
|
692
|
|
- }
|
693
|
|
-
|
694
|
|
- var doc_str = ""
|
695
|
|
-
|
696
|
|
- if(doctor_advices!=null && doctor_advices.length > 0){
|
697
|
|
-
|
698
|
|
-
|
699
|
|
- for(let i=0;i<doctor_advices.length;i++){
|
700
|
|
- doc_str +=doctor_advices[i].advice_name +" "+doctor_advices[i].prescribing_number+doctor_advices[i].prescribing_number_unit+" "+doctor_advices[i].delivery_way
|
701
|
|
- }
|
702
|
|
- }
|
703
|
|
-
|
704
|
|
- if(predialysis_evaluation.blood_access_part_id == -2){
|
705
|
|
- predialysis_evaluation.blood_access_part_id = ""
|
706
|
|
- }
|
707
|
|
-
|
708
|
|
- var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(prescription.mode_id)+
|
709
|
|
- ",透前检查:"+predialysis_evaluation.internal_fistula +predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(prescription.anticoagulant) +",总量:"+prescription.anticoagulant_zongliang+"iu"+
|
710
|
|
- ",透前体重:"+predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+prescription.target_ultrafiltration +"ml" +",血流量:"+prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(dialysis_order.start_time) +",透析过程中血压波动,"+"最大收缩压:"+monitor_one[0].systolic_blood_pressure+"mmHg"+",最小收缩压:"+monitor_one[monitor_one.length-1].systolic_blood_pressure
|
711
|
|
- +"mmHg" +",最小舒张压:" +monitor_two[0].diastolic_blood_pressure+"mmHg" + ",最大舒张压:" + monitor_two[monitor_two.length-1].diastolic_blood_pressure +"mmHg" + ",最大脉搏:"+monitor_three[0].pulse_frequency+"次/分"+",最小脉搏:"+monitor_three[monitor_three.length-1].pulse_frequency+"次/分"+",透析结束时间:"+this.getTime(dialysis_order.end_time) +
|
712
|
|
- ",实际治疗时长:"+ assessment_after_dislysis.actual_treatment_hour +"时"+assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
|
713
|
|
- +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+assessment_after_dislysis.pulse_frequency +"次/分"
|
714
|
|
-
|
715
|
|
- console.log("str000000000000000000222o2o2",str)
|
716
|
|
- this.new_content =str
|
717
|
|
- }
|
718
|
|
- })
|
719
|
|
-
|
720
|
|
- },
|
721
|
|
-
|
722
|
|
- QueryOperaById(val){
|
723
|
|
- var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
|
724
|
|
- var name = ""
|
725
|
|
- for(let i=0;i<blood_access_part_opera.length;i++){
|
726
|
|
- if(val == blood_access_part_opera[i].id){
|
727
|
|
- name = blood_access_part_opera[i].name
|
728
|
|
- }
|
729
|
|
- }
|
730
|
|
- return name
|
731
|
|
- },
|
732
|
563
|
getModeId(mode_id){
|
733
|
564
|
var mode_name = ""
|
734
|
565
|
if(mode_id == 1){
|
|
@@ -874,6 +705,9 @@
|
874
|
705
|
getTime (time) {
|
875
|
706
|
return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
|
876
|
707
|
},
|
|
708
|
+ getTimeOne (time) {
|
|
709
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
|
710
|
+ },
|
877
|
711
|
}
|
878
|
712
|
}
|
879
|
713
|
</script>
|