Browse Source

龙岗二院需求

XMLWAN 4 years ago
parent
commit
ee89720f3d

+ 4 - 2
src/pages/main/all/coureseManagement.vue View File

@@ -44,7 +44,8 @@ export default {
44 44
       id: 0,
45 45
       active: 0,
46 46
       date: 0,
47
-      patient_name: 0
47
+      patient_name: 0,
48
+      patient_id: 0
48 49
     }
49 50
   },
50 51
   methods: {
@@ -66,7 +67,7 @@ export default {
66 67
     },
67 68
     toReturn () {
68 69
       this.$router.push(
69
-        '/details?patient_id=' + this.patient_id + '&date=' + this.date + '&patient_name=' + this.patient_name + '&active1=' + 0 + '&active2=' + 1
70
+        '/details?patient_id=' + this.patient_id + '&date=' + this.date + '&patient_name=' + this.patient_name + '&active1=' + 0 + '&active2=' + 3
70 71
       )
71 72
     }
72 73
   },
@@ -78,6 +79,7 @@ export default {
78 79
     this.getCouseManagementDetail(id)
79 80
     var patientid = this.$route.query.patientid
80 81
     this.id = patientid
82
+    this.patient_id = this.$route.query.patientid
81 83
     this.date = this.$route.query.date
82 84
     this.patient_name = this.$route.query.patient_name
83 85
   }

+ 135 - 0
src/pages/main/all/rescueRecord.vue View File

@@ -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>

+ 0 - 1
src/pages/main/dialysis/RecordTable.vue View File

@@ -923,7 +923,6 @@ export default {
923 923
       })
924 924
     },
925 925
     toToday(date){
926
-      console.log("date-------------",date)
927 926
       this.$router.push(
928 927
         '/details?patient_id=' + this.patient_id + '&date=' + date + '&patient_name=' + this.patient_name + '&active1=' + 2
929 928
       )

+ 11 - 9
src/pages/main/dialysis/RescueRecord.vue View File

@@ -135,7 +135,9 @@ export default {
135 135
       patient_id: 0,
136 136
       list: [],
137 137
       id: 0,
138
-      index: 0
138
+      index: 0,
139
+      date: 0,
140
+      patient_name: ''
139 141
     }
140 142
   },
141 143
   methods: {
@@ -253,14 +255,13 @@ export default {
253 255
       return uParseTime(time, '{y}-{m}-{d}')
254 256
     },
255 257
     toRescueRecord (id) {
256
-      var patientid = this.$route.query.patientid
258
+      var patientid = this.$route.query.patient_id
257 259
       this.$router.push(
258
-        '/rescuerecord?id=' +
260
+        '/rescuerecordtwo?id=' +
259 261
           id +
260 262
           '&patientid=' +
261 263
           patientid +
262
-          '&active=' +
263
-          this.active
264
+          '&date=' + this.date + '&patient_name=' + this.patient_name
264 265
       )
265 266
     },
266 267
     toDeleteRescueRecord (id, index) {
@@ -270,14 +271,13 @@ export default {
270 271
     },
271 272
     Delete (value) {
272 273
       if (value.name == '查看全部') {
273
-        var patientid = this.$route.query.patientid
274
+        var patientid = this.$route.query.patient_id
274 275
         this.$router.push(
275
-          '/rescuerecord?id=' +
276
+          '/rescuerecordtwo?id=' +
276 277
             this.id +
277 278
             '&patientid=' +
278 279
             patientid +
279
-            '&active=' +
280
-            this.active
280
+            '&date=' + this.date + '&patient_name=' + this.patient_name
281 281
         )
282 282
       }
283 283
       if (value.name == '全部删除') {
@@ -314,6 +314,8 @@ export default {
314 314
     var patientid = this.$route.query.patient_id
315 315
     this.getNewPatientId(patientid)
316 316
     // console.log("病人id能否获取", patientid);
317
+    this.date = this.$route.query.date
318
+    this.patient_name = this.$route.query.patient_name
317 319
   }
318 320
 }
319 321
 </script>

+ 5 - 0
src/router/index.js View File

@@ -485,6 +485,11 @@ export default new Router({
485 485
     path: '/cousemanagement',
486 486
     name: '/cousemanagement',
487 487
     component: () => import('@/pages/main/all/coureseManagement')
488
+  },
489
+  {
490
+    path: '/rescuerecordtwo',
491
+    name: '/rescuerecordtwo',
492
+    component: () => import('@/pages/main/all/rescueRecord')
488 493
   }
489 494
   ]
490 495
 })