|
@@ -0,0 +1,135 @@
|
|
1
|
+<template>
|
|
2
|
+ <div class="page_allRescue">
|
|
3
|
+ <van-sticky>
|
|
4
|
+ <div class="allRescueTitle">
|
|
5
|
+ <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
|
|
6
|
+ <span class="titleName">{{ recorddetail.name }}的抢救记录</span>
|
|
7
|
+ </div>
|
|
8
|
+ </van-sticky>
|
|
9
|
+ <div class="courseBox">
|
|
10
|
+ <div class="courseOne">
|
|
11
|
+ <div class="statOrder">
|
|
12
|
+ <p class="time">{{ getTime(recorddetail.record_time) }}</p>
|
|
13
|
+ <div class="orderContent">
|
|
14
|
+ <p>
|
|
15
|
+ {{ recorddetail.content }}
|
|
16
|
+ </p>
|
|
17
|
+ </div>
|
|
18
|
+ <div class="doctorBox">
|
|
19
|
+ <p>记录医生:{{ recorddetail.user_name }}</p>
|
|
20
|
+ </div>
|
|
21
|
+ </div>
|
|
22
|
+ </div>
|
|
23
|
+ </div>
|
|
24
|
+ </div>
|
|
25
|
+</template>
|
|
26
|
+<script>
|
|
27
|
+import { getRescueRecordDetail } from '@/api/patient/patient'
|
|
28
|
+import { uParseTime } from '@/utils/tools'
|
|
29
|
+import { setRem, setHeight } from '@/libs/functionRem'
|
|
30
|
+import '../../../styles/resetStyle.scss'
|
|
31
|
+export default {
|
|
32
|
+ props: {
|
|
33
|
+ active: Number
|
|
34
|
+ },
|
|
35
|
+ data () {
|
|
36
|
+ return {
|
|
37
|
+ patientid: 0,
|
|
38
|
+ active: 0,
|
|
39
|
+ recorddetail: {},
|
|
40
|
+ date: 0,
|
|
41
|
+ patient_name: ''
|
|
42
|
+ }
|
|
43
|
+ },
|
|
44
|
+ methods: {
|
|
45
|
+ getRescueRecordDetail (id) {
|
|
46
|
+ getRescueRecordDetail(id).then(response => {
|
|
47
|
+ if (response.data.state === 1) {
|
|
48
|
+ var recorddetail = response.data.data.recordDetail
|
|
49
|
+ this.recorddetail = recorddetail
|
|
50
|
+ }
|
|
51
|
+ })
|
|
52
|
+ },
|
|
53
|
+ toReturn () {
|
|
54
|
+ this.$router.push(
|
|
55
|
+ '/details?patient_id=' + this.patientid + '&date=' + this.date + '&patient_name=' + this.patient_name + '&active1=' + 0 + '&active2=' + 4
|
|
56
|
+ )
|
|
57
|
+ },
|
|
58
|
+ getTime (time) {
|
|
59
|
+ // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
|
|
60
|
+ return uParseTime(time, '{y}-{m}-{d}')
|
|
61
|
+ }
|
|
62
|
+ },
|
|
63
|
+ created () {
|
|
64
|
+ this.active = parseInt(this.$route.query.active)
|
|
65
|
+ setRem()
|
|
66
|
+ setHeight()
|
|
67
|
+ var id = this.$route.query.id
|
|
68
|
+ var patientid = this.$route.query.patientid
|
|
69
|
+ this.patientid = patientid
|
|
70
|
+ this.getRescueRecordDetail(id)
|
|
71
|
+ this.date = this.$route.query.date
|
|
72
|
+ this.patient_name = this.$route.query.patient_name
|
|
73
|
+ }
|
|
74
|
+}
|
|
75
|
+</script>
|
|
76
|
+<style lang="scss" scoped>
|
|
77
|
+.page_allRescue {
|
|
78
|
+ height: 100%;
|
|
79
|
+ overflow-y: auto;
|
|
80
|
+ .allRescueTitle {
|
|
81
|
+ background: #fff;
|
|
82
|
+ padding: 0 1.125rem;
|
|
83
|
+ height: 3.125rem;
|
|
84
|
+ display: flex;
|
|
85
|
+ align-items: center;
|
|
86
|
+ }
|
|
87
|
+ .jiantou {
|
|
88
|
+ font-size: 1.5rem;
|
|
89
|
+ font-weight: 600;
|
|
90
|
+ margin-right: 5.5rem;
|
|
91
|
+ }
|
|
92
|
+ .titleName {
|
|
93
|
+ font-size: 1.125rem;
|
|
94
|
+ font-weight: 600;
|
|
95
|
+ }
|
|
96
|
+ .courseBox {
|
|
97
|
+ padding: 0 1.125rem;
|
|
98
|
+ margin-bottom: 3.125rem;
|
|
99
|
+ }
|
|
100
|
+ .courseOne {
|
|
101
|
+ box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
|
|
102
|
+ padding-bottom: 1.25rem;
|
|
103
|
+ .time {
|
|
104
|
+ font-size: 1.125rem;
|
|
105
|
+ margin-top: 0.625rem;
|
|
106
|
+ font-weight: bold;
|
|
107
|
+ }
|
|
108
|
+ }
|
|
109
|
+ .statOrderTitle {
|
|
110
|
+ color: #5b98ff;
|
|
111
|
+ font-size: 0.8125rem;
|
|
112
|
+ font-weight: bold;
|
|
113
|
+ margin: 0.625rem 0;
|
|
114
|
+ }
|
|
115
|
+ .orderContent {
|
|
116
|
+ font-size: 0.875rem;
|
|
117
|
+ color: rgba(49, 50, 52, 1);
|
|
118
|
+ p {
|
|
119
|
+ line-height: 1.125rem;
|
|
120
|
+ }
|
|
121
|
+ }
|
|
122
|
+ .doctorBox {
|
|
123
|
+ font-size: 0.75rem;
|
|
124
|
+ color: rgba(152, 152, 152, 1);
|
|
125
|
+ line-height: 1.125rem;
|
|
126
|
+ display: flex;
|
|
127
|
+ align-items: center;
|
|
128
|
+ justify-content: space-between;
|
|
129
|
+ margin-top: 0.625rem;
|
|
130
|
+ }
|
|
131
|
+}
|
|
132
|
+::-webkit-scrollbar {
|
|
133
|
+ width: 0;
|
|
134
|
+}
|
|
135
|
+</style>
|