ソースを参照

11月20 结算单

yq1 14 時間 前
コミット
a38f2e2247
共有1 個のファイルを変更した961 個の追加0 個の削除を含む
  1. 961 0
      src/xt_pages/user/courseOfDisease_new.vue

+ 961 - 0
src/xt_pages/user/courseOfDisease_new.vue ファイルの表示

@@ -0,0 +1,961 @@
1
+<template>
2
+  <!-- <div class="main-contain">
3
+      <div class="position">
4
+         <bread-crumb></bread-crumb>
5
+      </div> -->
6
+  <div class="patient-container">
7
+    <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
8
+    <!-- <div class="app-container"> -->
9
+    <div v-loading="loading">
10
+      <div class="patient-app-container advice-container app-container" style="">
11
+        <div style="display: flex;">
12
+          <div style="width: 34%;">
13
+            <div style="display: flex;">
14
+              <div style="flex: 1.1;">
15
+                <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
16
+              </div>
17
+              <div style="flex: 0.9;text-align: right;">
18
+                <el-button type="primary" size="small" @click="add_click">添加</el-button>
19
+              </div>
20
+            </div>
21
+            <div>
22
+              <el-table class="table"
23
+                ref="phy_table"
24
+                :data="tableData"
25
+                :highlight-current-row="true"
26
+                @row-click="rowclick"
27
+                style="width: 100%">
28
+                <el-table-column
29
+                  type="selection"
30
+                  width="55">
31
+                </el-table-column>
32
+                <el-table-column
33
+                  prop="index"
34
+                  label="序号"
35
+                  width="50">
36
+                </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="医生">
45
+                </el-table-column>
46
+              </el-table>
47
+            </div>
48
+          </div>
49
+          <div style="width: 65%;margin-left: 10px;">
50
+            <div style="display: flex;">
51
+              <div style="flex: 1;">
52
+                <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
53
+              </div>
54
+              <div style="flex: 1;text-align: right;">
55
+                <div v-if='add_index == 0'>
56
+                  <el-button type="primary" size="small" @click="showEdit">修改</el-button>
57
+                  <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
58
+                  <el-button type="primary" size="small" @click="prints">打印</el-button>
59
+                </div>
60
+                <div v-if="add_index == 1">
61
+                  <el-button type="primary" size="small" @click="showSave">保存</el-button>
62
+                  <el-button size="small" @click="showCancel">取消</el-button>
63
+                </div>
64
+              </div>
65
+            </div>
66
+            <div style="display: flex;margin: 10px 0;">
67
+              <div style="flex: 1;">
68
+                记录时间:
69
+                <el-date-picker
70
+                  v-model="value1"
71
+                  :disabled="disabled"
72
+                  type="datetime"
73
+                  placeholder="选择日期时间">
74
+                </el-date-picker>
75
+              </div>
76
+              <div style="flex: 1;">
77
+                病程医生:
78
+                <el-select v-model="value" placeholder="请选择" :disabled="disabled">
79
+                  <el-option
80
+                    v-for="item in options"
81
+                    :key="item.value"
82
+                    :label="item.label"
83
+                    :value="item.value">
84
+                  </el-option>
85
+                </el-select>
86
+              </div>
87
+            </div>
88
+            <div>
89
+              <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
90
+                病程内容
91
+              </span>
92
+              <div style="margin: 10px 0;">
93
+                <el-button type="primary" size="small" @click="template_click">
94
+                  {{ add_index ==0 ? '设置模板' : '模板库' }}
95
+                </el-button>
96
+                <el-button type="primary" size="small" @click="auto_click">
97
+                  自动生成
98
+                </el-button>
99
+              </div>
100
+              <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
101
+            </div>
102
+          </div>
103
+        </div>
104
+      </div>
105
+      <el-dialog
106
+        title="设置模板"
107
+        :visible.sync="template_dialog"
108
+        width="20%"
109
+        center>
110
+        <div>
111
+          模板名称:
112
+          <el-input v-model="template_name" placeholder="请输入内容" style="width: 160px;"></el-input>
113
+        </div>
114
+        <span slot="footer" class="dialog-footer">
115
+          <el-button @click="template_dialog = false">取 消</el-button>
116
+          <el-button type="primary" @click="template_save">确 定</el-button>
117
+        </span>
118
+      </el-dialog>
119
+      <el-dialog
120
+        title="模板库"
121
+        :visible.sync="library_dialog"
122
+        width="70%"
123
+        class="lirary"
124
+        >
125
+        <div>
126
+          <div style="display: flex;">
127
+            <div style="width: 27%;">
128
+              <el-table
129
+                :data="tableData"
130
+                :highlight-current-row="true"
131
+                @row-click="rowclick"
132
+                style="width: 100%">
133
+                <el-table-column
134
+                  prop="index"
135
+                  label="序号"
136
+                  width="">
137
+                </el-table-column>
138
+                <el-table-column
139
+                  prop="name"
140
+                  label="模板名称"
141
+                  width="">
142
+                </el-table-column>
143
+              </el-table>
144
+            </div>
145
+            <div style="width: 72%;margin-left: 10px;">
146
+              <div class="Second_title">模板内容</div>
147
+              <div style="">
148
+                <keep-alive>
149
+                  <ueditor ref="ue" :content="new_content" id="editor"></ueditor>
150
+                </keep-alive>
151
+              </div>
152
+            </div>
153
+          </div>
154
+        </div>
155
+        <span slot="footer" class="dialog-footer" style="text-align: center;">
156
+          <el-button type="danger" @click="template_dele">删除模板</el-button>
157
+          <el-button type="primary" @click="template_save">保存模板</el-button>
158
+          <el-button type="primary" @click="template_save">应用</el-button>
159
+          <el-button @click="library_dialog = false">取消</el-button>
160
+        </span>
161
+      </el-dialog>
162
+      <el-dialog
163
+        title="提示"
164
+        :visible.sync="auto_dialog"
165
+        width="70%"
166
+        top="0"
167
+        >
168
+        <div>
169
+          <div style="display:flex">
170
+            <div>
171
+              取值时间:
172
+              <el-select v-model="quzhi_date" placeholder="请选择" style="width: 120px;">
173
+                <el-option
174
+                  v-for="item in quzhi_options"
175
+                  :key="item.value"
176
+                  :label="item.label"
177
+                  :value="item.value">
178
+                </el-option>
179
+              </el-select>
180
+            </div>
181
+            <div style="margin:0 10px">
182
+              <el-date-picker
183
+                v-model="start_date"
184
+                type="date"
185
+                value-format="yyyy-MM-dd"
186
+                placeholder="选择日期"
187
+                style="width: 150px;">
188
+              </el-date-picker>
189
+              <span>-</span>
190
+              <el-date-picker
191
+                v-model="end_date"
192
+                type="date"
193
+                value-format="yyyy-MM-dd"
194
+                placeholder="选择日期"
195
+                style="width: 150px;">
196
+              </el-date-picker>
197
+            </div>
198
+            <div>
199
+              <el-button type="primary" size="small" @click="autotext_click">
200
+                生成
201
+              </el-button>
202
+              <el-button type="primary" size="small" @click="auto_click">
203
+                取消
204
+              </el-button>
205
+            </div>
206
+          </div>
207
+        </div>
208
+        <!-- <span slot="footer" class="dialog-footer">
209
+          <el-button @click="auto_dialog = false">取 消</el-button>
210
+          <el-button type="primary" @click="auto_dialog = false">确 定</el-button>
211
+        </span> -->
212
+      </el-dialog>
213
+
214
+
215
+
216
+
217
+      <!-- </div> -->
218
+      <el-dialog title="新增病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_dialog">
219
+        <div>
220
+          <div class="new_record_form">
221
+            <div class="cell clearfix">
222
+              <label class="title"><span class="name">病程日期</span> : </label>
223
+              <el-date-picker v-model="course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
224
+                              style="width: 250px;"
225
+                              type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
226
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
227
+
228
+              <label class="title"><span class="name">日常病程</span> : </label>
229
+              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didSelectTemplate">
230
+                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
231
+                           :value="option.content"></el-option>
232
+              </el-select>
233
+            </div>
234
+
235
+            <div class="cell clearfix" style="margin-top: 10px">
236
+              <label class="title"><span class="name">病程标题</span> : </label>
237
+              <el-input v-model="title" style="width: 420px"></el-input>
238
+            </div>
239
+
240
+            <div style="margin-top: 10px;">
241
+              <el-button type="primary" size="small" @click="toAuto" v-if="org_id == 3877 || org_id == 10440" >自动生成</el-button>
242
+            </div>
243
+            <div class="textarea_panel">
244
+              <keep-alive>
245
+                <editor ref="editor"
246
+                        id="editors"
247
+                        style="width: 80%"
248
+                        v-bind:r_content="new_content"
249
+                        >
250
+                </editor>
251
+              </keep-alive>
252
+            </div>
253
+
254
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
255
+              <el-button @click="show_dialog = false">取消</el-button>
256
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
257
+                         @click="createAction" :loading="uploading_new_record">保存
258
+              </el-button>
259
+            </div>
260
+          </div>
261
+        </div>
262
+      </el-dialog>
263
+
264
+
265
+      <el-dialog title="修改病程记录" class="eldialog" width="70%" top="5vh" :visible.sync="show_edit_dialog" style="">
266
+        <div>
267
+          <div class="new_record_form">
268
+            <div class="cell clearfix">
269
+              <label class="title"><span class="name">病程日期</span> : </label>
270
+              <el-date-picker v-model="edit_course_of_disease_time" prefix-icon="el-icon-date" :editable="false"
271
+                              style="width: 200px;"
272
+                              type="datetime"
273
+                              placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
274
+                              value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
275
+
276
+              <label class="title"><span class="name">日常病程</span> : </label>
277
+              <el-select v-model="select_template" placeholder="可选择病程模板" @change="didEditSelectTemplate">
278
+                <el-option v-for="(option, index) in templates" :key="index" :label="option.title"
279
+                           :value="option.content"></el-option>
280
+              </el-select>
281
+            </div>
282
+
283
+
284
+            <div class="cell clearfix" style="margin-top: 10px">
285
+              <label class="title"><span class="name">病程标题</span> : </label>
286
+              <el-input v-model="edit_title" style="width: 420px"></el-input>
287
+            </div>
288
+
289
+            <div class="textarea_panel">
290
+              <!--<el-input v-model="edit_new_content" type="textarea" rows="6" resize="none"></el-input>-->
291
+              <keep-alive>
292
+                <editor ref="edit_neditor"
293
+                        id="edit_editor"
294
+                        style="width: 80%"
295
+                        v-bind:r_content="edit_new_content">
296
+                </editor>
297
+              </keep-alive>
298
+            </div>
299
+
300
+            <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
301
+              <el-button @click="show_edit_dialog = false">取消</el-button>
302
+              <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary"
303
+                         @click="modifyAction" :loading="uploading_new_record">保存
304
+              </el-button>
305
+            </div>
306
+          </div>
307
+        </div>
308
+      </el-dialog>
309
+    </div>
310
+  </div>
311
+
312
+  <!-- </div> -->
313
+</template>
314
+
315
+<script>
316
+  import PatientSidebar from './components/PatientSidebar'
317
+  import PatientSidebar_new from './components/PatientSidebar_new'
318
+  import Editor from '@/components/Editor'
319
+  import ueditor from '@/components/Uedtior'
320
+  const moment = require('moment')
321
+  import { getDataConfig } from "@/utils/data";
322
+  import {
323
+    createCourseOfDiseaseRecord,
324
+    deleteCourseOfDiseaseRecords,
325
+    getCourseOfDiseaseRecords,
326
+    modifyCourseOfDiseaseRecord,
327
+    GetCoursePrintData,
328
+    getPatientDialysisInfor
329
+  } from '@/api/patient'
330
+  import { parseTime } from '@/utils'
331
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
332
+  import { uParseTime } from '@/utils/tools'
333
+  export default {
334
+    name: 'CourseOfDisease',
335
+    components: {
336
+      PatientSidebar,
337
+      BreadCrumb,
338
+      Editor,
339
+      PatientSidebar_new,
340
+      ueditor
341
+    },
342
+    data() {
343
+      return {
344
+        loading: false,
345
+        title: '',
346
+        patient_id: 0,
347
+        date: [],
348
+        start_time: '',
349
+        end_time: '',
350
+        course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
351
+        records: [],
352
+        doctors: [],
353
+        current_select_record: null,
354
+        show_dialog: false,
355
+        show_edit_dialog: false,
356
+        uploading_new_record: false,
357
+        templates: this.$store.getters.configlist.course_disease,
358
+        select_template: '',
359
+        new_content: '',
360
+        edit_new_content: '',
361
+        edit_course_of_disease_time: '',
362
+        selectingRows: [],
363
+        table_current_index: -1,
364
+        edit_current_id: 0,
365
+        edit_title: '',
366
+        ids:"",
367
+        idArr:[],
368
+        org_id:0,
369
+
370
+
371
+        add_index:0,
372
+        disabled:true,
373
+        template_dialog:false,
374
+        library_dialog:false,
375
+        auto_dialog:false,
376
+        quzhi_date:1,
377
+        start_date:'',
378
+        end_date:'',
379
+        quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
380
+        tableData:[{index:1,date:'2024-11-12',doctor:'王启年'}],
381
+      }
382
+    },
383
+    created() {
384
+      this.patient_id = parseInt(this.$route.query.id)
385
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
386
+      if (isNaN(this.patient_id) || this.patient_id <= 0) {
387
+        this.$notify.error({
388
+          title: '错误',
389
+          message: '无效的id'
390
+        })
391
+        this.$router.push('/patients/patients')
392
+        return
393
+      }
394
+      // var now = new Date()
395
+      // this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
396
+
397
+      // var nowDate = new Date()
398
+      // var nowYear = nowDate.getFullYear()
399
+      // var nowMonth = nowDate.getMonth() + 1
400
+      // var nowDay = nowDate.getDate()
401
+      // this.end_time =nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
402
+      // nowDate.setMonth(nowDate.getMonth() - 1)
403
+      // nowYear = nowDate.getFullYear() -1
404
+      // nowMonth = nowDate.getMonth() + 1
405
+      // nowDay = nowDate.getDate()
406
+      // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
407
+      this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
408
+      console.log("start_time",this.start_time)
409
+      this.end_time = moment().endOf('month').format('YYYY-MM-DD');
410
+      console.log("end_time",this.end_time)
411
+      this.requestCourseRecords()
412
+
413
+    },
414
+    methods: {
415
+      add_click(){
416
+        this.add_index = 1
417
+        this.disabled = false
418
+      },
419
+      showCancel(){
420
+        this.add_index = 0
421
+        this.disabled = true
422
+      },
423
+      showSave(){
424
+        this.add_index = 0
425
+        this.disabled = true
426
+      },
427
+      template_click(){
428
+        console.log('this.add_index',this.add_index);
429
+
430
+        if(this.add_index ==0){
431
+          this.template_dialog = true
432
+        }else{
433
+          this.library_dialog = true
434
+        }
435
+      },
436
+      auto_click(){
437
+        this.auto_dialog = true
438
+      },
439
+      autotext_click(){
440
+        this.auto_dialog = false
441
+      },
442
+
443
+
444
+
445
+
446
+
447
+
448
+      requestCourseRecords: function() {
449
+        this.loading = true
450
+        getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
451
+          this.loading = false
452
+          var resp = rs.data
453
+          if (resp.state == 1) {
454
+            this.current_select_record = null
455
+            this.records = resp.data.records
456
+            console.log("records232322332323232323223",this.records)
457
+            this.doctors = resp.data.doctors
458
+
459
+          } else {
460
+            this.$message.error(resp.msg)
461
+          }
462
+        }).catch(error => {
463
+          this.loading = false
464
+          this.$message.error(error)
465
+        })
466
+      },
467
+
468
+      didChangeCurrentRecord: function(record) {
469
+        this.current_select_record = record
470
+      },
471
+      recordTime: function(timestamp) {
472
+        var time = new Date(timestamp * 1000)
473
+        return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
474
+      },
475
+      doctorName: function(doctor_id) {
476
+        for (let index = 0; index < this.doctors.length; index++) {
477
+          const doctor = this.doctors[index]
478
+          if (doctor.id == doctor_id) {
479
+            return doctor.name
480
+          }
481
+        }
482
+        return ''
483
+      },
484
+      modifyAction: function() {
485
+
486
+        this.edit_new_content = this.$refs.edit_neditor.content
487
+        if (this.edit_new_content.length == 0) {
488
+          this.$message.error('请填写病程内容')
489
+          return
490
+        }
491
+        this.uploading_new_record = true
492
+        modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
493
+          this.uploading_new_record = false
494
+          var resp = rs.data
495
+          if (resp.state == 1) {
496
+            this.records[this.table_current_index].content = resp.data.record.content
497
+            this.records[this.table_current_index].record_time = resp.data.record.record_time
498
+            this.records[this.table_current_index].recorder = resp.data.record.recorder
499
+            this.records[this.table_current_index].title = resp.data.record.title
500
+
501
+            this.show_edit_dialog = false
502
+            this.edit_new_content = ''
503
+            this.table_current_index = -1
504
+
505
+          } else {
506
+            this.table_current_index = -1
507
+            this.$message.error(resp.msg)
508
+          }
509
+
510
+        }).catch(error => {
511
+          this.table_current_index = -1
512
+          this.uploading_new_record = false
513
+          this.$message.error(error)
514
+        })
515
+
516
+      },
517
+
518
+      createAction: function() {
519
+        this.new_content = this.$refs.editor.content
520
+        console.log("hhhhh2h3h232323232",this.new_content)
521
+        if (this.new_content.length == 0) {
522
+          this.$message.error('请填写病程内容')
523
+          return
524
+        }
525
+        this.uploading_new_record = true
526
+
527
+        createCourseOfDiseaseRecord(this.patient_id, this.new_content, this.course_of_disease_time, this.title).then(rs => {
528
+          this.uploading_new_record = false
529
+          var resp = rs.data
530
+          if (resp.state == 1) {
531
+            this.records.unshift(resp.data.record)
532
+            // this.$refs.record_table.setCurrentRow()
533
+            // this.$refs.record_table.setCurrentRow(this.records[0])
534
+            // this.current_select_record = this.records[0]
535
+            this.show_dialog = false
536
+            this.new_content = ''
537
+            this.title = ''
538
+
539
+          } else {
540
+            this.$message.error(resp.msg)
541
+          }
542
+
543
+        }).catch(error => {
544
+          this.uploading_new_record = false
545
+          this.$message.error(error)
546
+        })
547
+      },
548
+      didSelectTemplate: function(templateContent) {
549
+        this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
550
+
551
+      }, didEditSelectTemplate: function(templateContent) {
552
+        this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
553
+      },
554
+
555
+      didSelectionChange: function(selectRows) {
556
+
557
+        var arr = []
558
+        for(let i=0;i<selectRows.length;i++){
559
+           arr.push(selectRows[i].id)
560
+        }
561
+        var newArr = arr.join(',')
562
+        this.ids = newArr
563
+        console.log("select23322332",this.ids)
564
+        this.selectingRows = selectRows
565
+      },
566
+      deleteAction: function() {
567
+        if (this.selectingRows.length == 0) {
568
+          return
569
+        }
570
+        var ids = []
571
+        for (let index = 0; index < this.selectingRows.length; index++) {
572
+          const row = this.selectingRows[index]
573
+          ids.push(row.id)
574
+        }
575
+        var ids_str = ids.join(',')
576
+        this.loading = true
577
+        deleteCourseOfDiseaseRecords(this.patient_id, ids_str).then(rs => {
578
+          var resp = rs.data
579
+          if (resp.state == 1) {
580
+            for (let id_index = 0; id_index < ids.length; id_index++) {
581
+              for (let record_index = 0; record_index < this.records.length; record_index++) {
582
+                if (ids[id_index] == this.records[record_index].id) {
583
+                  this.records.splice(record_index, 1)
584
+                  break
585
+                }
586
+              }
587
+            }
588
+            this.selectingRows = []
589
+            this.$message.success('已删除')
590
+
591
+          } else {
592
+            this.$message.error(resp.msg)
593
+          }
594
+          this.loading = false
595
+        }).catch(err => {
596
+          this.loading = false
597
+          this.$message.error(err)
598
+        })
599
+      }, startTimeChange(val) {
600
+        this.requestCourseRecords()
601
+      }, endTimeChange(val) {
602
+        this.requestCourseRecords()
603
+      }, showEdit() {
604
+        if (this.table_current_index == -1) {
605
+          this.$message.error('请选择要修改的病程内容')
606
+          return
607
+        }
608
+        this.show_edit_dialog = true
609
+        this.edit_course_of_disease_time = this.recordTime(this.records[this.table_current_index].record_time)
610
+        this.edit_new_content = this.records[this.table_current_index].content
611
+        this.edit_current_id = this.records[this.table_current_index].id
612
+        this.edit_title = this.records[this.table_current_index].title
613
+        this.$refs.record_table.setCurrentRow(null)
614
+
615
+      }, tableRow({ row, rowIndex }) {
616
+        // 把每一行的索引放进row
617
+        row.index = rowIndex
618
+      }, onRowClick(row, event, column) {
619
+        this.table_current_index = row.index
620
+      },
621
+      print(){
622
+        if(this.ids.length == 0){
623
+          this.$message.error('请选择要打印的病程')
624
+          return
625
+        }
626
+        this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
627
+
628
+      },
629
+      toAuto(){
630
+
631
+         var params=  {
632
+           patient_id:parseInt(this.$route.query.id),
633
+           record_date:this.course_of_disease_time.slice(0,10),
634
+         }
635
+         console.log("param2222owoowwow",params)
636
+        getPatientDialysisInfor(params).then(response=>{
637
+          if(response.data.state== 1){
638
+            var patient = response.data.data.patient
639
+            var prescription = response.data.data.prescription
640
+            var predialysis_evaluation =  response.data.data.assessmentBefor
641
+            var dialysis_order =  response.data.data.order
642
+            var monitors = response.data.data.monitor
643
+            var doctor_advices = response.data.data.advice
644
+            var assessment_after_dislysis =  response.data.data.afterDislysis
645
+
646
+           var str_one = ""
647
+          if(dialysis_order!=null){
648
+            if(dialysis_order.puncture_nurse_id >0){
649
+              str_one = "护士穿刺成功!"
650
+            }
651
+          }
652
+
653
+          var total =0
654
+          if(predialysis_evaluation!=null){
655
+            total = (predialysis_evaluation.weight_before - predialysis_evaluation.dry_weight).toFixed(1)
656
+          }
657
+
658
+
659
+        var monitor_one =[]
660
+        var monitor_two = []
661
+        var monitor_three = []
662
+
663
+        if(monitors!=null && monitors.length > 0){
664
+          var monitor_one =  monitors.sort(function (a,b) {
665
+            return b.systolic_bp - a.systolic_bp
666
+          })
667
+          var monitor_two =  monitors.sort(function (a,b) {
668
+            return b.diastolic_bp - a.diastolic_bp
669
+          })
670
+
671
+          var monitor_three = monitors.sort(function (a,b) {
672
+            return b.pulse_frequency - a.pulse_frequency
673
+          })
674
+
675
+        }
676
+
677
+        var doc_str = ""
678
+
679
+        if(doctor_advices!=null && doctor_advices.length > 0){
680
+
681
+
682
+          for(let i=0;i<doctor_advices.length;i++){
683
+            doc_str +=doctor_advices[i].advice_name +" "+doctor_advices[i].prescribing_number+doctor_advices[i].prescribing_number_unit+" "+doctor_advices[i].delivery_way
684
+          }
685
+        }
686
+
687
+        if(predialysis_evaluation.blood_access_part_id == -2){
688
+          predialysis_evaluation.blood_access_part_id = ""
689
+        }
690
+
691
+        var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(prescription.mode_id)+
692
+        ",透前检查:"+predialysis_evaluation.internal_fistula +predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(prescription.anticoagulant) +",总量:"+prescription.anticoagulant_zongliang+"iu"+
693
+        ",透前体重:"+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
694
+        +"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) +
695
+        ",实际治疗时长:"+ assessment_after_dislysis.actual_treatment_hour +"时"+assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
696
+        +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+assessment_after_dislysis.pulse_frequency +"次/分"
697
+
698
+        console.log("str000000000000000000222o2o2",str)
699
+           this.new_content =str
700
+          }
701
+        })
702
+
703
+      },
704
+
705
+      QueryOperaById(val){
706
+        var blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
707
+        var name = ""
708
+        for(let i=0;i<blood_access_part_opera.length;i++){
709
+          if(val == blood_access_part_opera[i].id){
710
+              name = blood_access_part_opera[i].name
711
+          }
712
+        }
713
+        return name
714
+      },
715
+      getModeId(mode_id){
716
+        var mode_name = ""
717
+        if(mode_id == 1){
718
+          mode_name ="HD"
719
+        }
720
+        if(mode_id == 2){
721
+          mode_name ="HDF"
722
+        }
723
+        if(mode_id == 3){
724
+          mode_name ="HD+HP"
725
+        }
726
+        if(mode_id == 4){
727
+          mode_name ="HP"
728
+        }
729
+        if(mode_id == 5){
730
+          mode_name ="HF"
731
+        }
732
+        if(mode_id == 6){
733
+          mode_name ="SCUF"
734
+        }
735
+        if(mode_id == 7){
736
+          mode_name ="IUF"
737
+        }
738
+        if(mode_id == 8){
739
+          mode_name ="HFHD"
740
+        }
741
+        if(mode_id == 9){
742
+          mode_name ="HFHD+HP"
743
+        }
744
+        if(mode_id == 10){
745
+          mode_name ="PHF"
746
+        }
747
+        if(mode_id == 11){
748
+          mode_name ="HFR"
749
+        }
750
+        if(mode_id == 12){
751
+          mode_name ="HDF+HP"
752
+        }
753
+        if(mode_id == 13){
754
+          mode_name ="CRRT"
755
+        }
756
+        if(mode_id == 14){
757
+          mode_name ="腹水回输"
758
+        }
759
+        if(mode_id == 19){
760
+          mode_name ="IUF+HD"
761
+        }
762
+        if(mode_id == 20){
763
+          mode_name ="UF"
764
+        }
765
+        if(mode_id == 21){
766
+          mode_name ="HD+"
767
+        }
768
+        if(mode_id == 22){
769
+          mode_name ="血浆胆红素吸附+HDF"
770
+        }
771
+        if(mode_id == 23){
772
+          mode_name ="血浆胆红素吸附"
773
+        }
774
+        if(mode_id == 24){
775
+          mode_name ="I-HDF"
776
+        }
777
+        if(mode_id == 25){
778
+          mode_name ="HD高通"
779
+        }
780
+        if(mode_id == 26){
781
+          mode_name ="CVVH"
782
+        }
783
+        if(mode_id == 27){
784
+          mode_name ="CVVHD"
785
+        }
786
+        if(mode_id == 28){
787
+          mode_name ="CVVHDF"
788
+        }
789
+        if(mode_id == 29){
790
+          mode_name ="PE"
791
+        }
792
+        if(mode_id == 30){
793
+          mode_name ="血浆胆红素吸附+HP"
794
+        }
795
+        if(mode_id == 31){
796
+          mode_name ="HPD"
797
+        }
798
+        if(mode_id == 32){
799
+          mode_name ="HDP"
800
+        }
801
+        return mode_name
802
+      },
803
+      GetAnticoagulant(id){
804
+        var  anticoagulant_name = ""
805
+        if(id == 1){
806
+        anticoagulant_name = "无肝素"
807
+        }
808
+        if(id == 2){
809
+          anticoagulant_name = "普通肝素"
810
+        }
811
+        if(id == 3){
812
+          anticoagulant_name = "低分子肝素"
813
+        }
814
+        if(id == 4){
815
+          anticoagulant_name = "阿加曲班"
816
+        }
817
+
818
+        if(id == 5){
819
+        anticoagulant_name = "枸橼酸钠"
820
+        }
821
+        if(id == 6){
822
+          anticoagulant_name = "低分子肝素钙"
823
+        }
824
+        if(id == 7){
825
+          anticoagulant_name = "低分子肝素钠"
826
+        }
827
+        if(id == 8){
828
+          anticoagulant_name = "依诺肝素"
829
+        }
830
+
831
+        if(id == 9){
832
+          anticoagulant_name = "达肝素"
833
+        }
834
+        if(id == 10){
835
+          anticoagulant_name = "体外抗凝"
836
+        }
837
+
838
+        if(id == 11){
839
+          anticoagulant_name = "那屈肝素"
840
+        }
841
+        if(id == 12){
842
+          anticoagulant_name = "无抗凝剂"
843
+        }
844
+
845
+        if(id == 13){
846
+          anticoagulant_name = "那屈肝素钙"
847
+        }
848
+        if(id == 14){
849
+          anticoagulant_name = "肝素钙注射液"
850
+        }
851
+        if(id == 15){
852
+          anticoagulant_name = "甲磺酸萘莫司他"
853
+        }
854
+
855
+        return anticoagulant_name
856
+      },
857
+      getTime (time) {
858
+      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
859
+      },
860
+    }
861
+  }
862
+</script>
863
+
864
+<style rel="stylesheet/css" lang="scss" scoped>
865
+  .container {
866
+    margin-left: 180px;
867
+    padding: 20px;
868
+    background: #fff;
869
+    min-height: calc(100vh - 173px);
870
+    margin-bottom: 15px;
871
+
872
+  .record {
873
+    padding-top: 20px;
874
+  }
875
+
876
+  }
877
+  .record_content_panel {
878
+    border-width: 1px;
879
+    border-style: solid;
880
+    border-color: #ebeef5;
881
+    min-height: 200px;
882
+
883
+  .title {
884
+    font-size: 14px;
885
+    font-weight: 500;
886
+    color: #909399;
887
+    line-height: 44px;
888
+    height: 44px;
889
+    text-align: center;
890
+    border-bottom-width: 1px;
891
+    border-bottom-style: solid;
892
+    border-bottom-color: #ebeef5;
893
+  }
894
+
895
+  .content {
896
+    padding: 12px 15px;
897
+    font-size: 15px;
898
+    color: gray;
899
+    line-height: 22px;
900
+  }
901
+
902
+  }
903
+
904
+  .new_record_form {
905
+
906
+  /*/ / padding: 10 px, 25 px;*/
907
+
908
+  .textarea_panel {
909
+    margin-top: 10px;
910
+  }
911
+
912
+  }
913
+  .eldialog{
914
+    .el-dialog{
915
+      .el-dialog__body{
916
+        max-height: calc(100vh - 80px) !important;
917
+        padding: 0px 20px;
918
+      }
919
+    }
920
+
921
+  }
922
+  .Second_title{
923
+    border-left: 5px solid #3891f1f5;
924
+    text-align: left;
925
+    padding-left: 5px;
926
+    // margin-left: 10px;
927
+    margin-bottom: 5px;
928
+    font-size: 16px;
929
+  }
930
+</style>
931
+<style lang="scss">
932
+.el-table td,
933
+.el-table th.is-leaf,
934
+.el-table--border,
935
+.el-table--group {
936
+  border-color: #d0d3da;
937
+}
938
+.el-table--border::after,
939
+.el-table--group::after,
940
+.el-table::before {
941
+  background-color: #d0d3da;
942
+}
943
+
944
+.eldialog{
945
+    .el-dialog{
946
+      .el-dialog__body{
947
+        max-height: calc(100vh - 80px) !important;
948
+        padding: 0px 20px;
949
+      }
950
+    }
951
+
952
+  }
953
+  .lirary{
954
+    .el-dialog__body{
955
+      padding: 0px 20px !important;
956
+    }
957
+    .el-dialog__footer{
958
+      text-align: center;
959
+    }
960
+  }
961
+</style>