Kaynağa Gözat

病程管理

XMLWAN 4 yıl önce
ebeveyn
işleme
f09dec857c

+ 135 - 0
src/pages/allCourseManagement/index.vue Dosyayı Görüntüle

@@ -0,0 +1,135 @@
1
+<template>
2
+  <div class="page_allCourse">
3
+    <van-sticky>
4
+      <div class="allCourseTitle">
5
+        <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
6
+        <span class="titleName">{{ couseDetail.name }}的病程记录</span>
7
+      </div>
8
+    </van-sticky>
9
+    <div class="courseBox">
10
+      <div class="courseOne">
11
+        <div class="statOrder">
12
+          <p class="time">{{ getTime(couseDetail.record_time) }}</p>
13
+          <div class="statOrderTitle">
14
+            <span>{{ couseDetail.title }}</span>
15
+          </div>
16
+          <div class="orderContent">
17
+            <p>
18
+              <span v-html="couseDetail.content"></span>
19
+            </p>
20
+          </div>
21
+          <div class="doctorBox">
22
+            <p>记录医生:{{ couseDetail.user_name }}</p>
23
+          </div>
24
+        </div>
25
+      </div>
26
+    </div>
27
+  </div>
28
+</template>
29
+<script>
30
+import { getCouseManagementDetail } from "@/api/patient/patient";
31
+import { uParseTime } from "@/utils/tools";
32
+export default {
33
+  data() {
34
+    return {
35
+      couseDetail: {
36
+        name: "",
37
+        record_time: "",
38
+        content: "",
39
+        title: "",
40
+        user_name: ""
41
+      },
42
+      id: 0
43
+    };
44
+  },
45
+  methods: {
46
+    getCouseManagementDetail(id) {
47
+      getCouseManagementDetail(id).then(response => {
48
+        if (response.data.state === 1) {
49
+          var couseDetail = response.data.data.couseDetail;
50
+          this.couseDetail.name = couseDetail.name;
51
+          this.couseDetail.record_time = couseDetail.record_time;
52
+          this.couseDetail.content = couseDetail.content;
53
+          this.couseDetail.title = couseDetail.title;
54
+          this.couseDetail.user_name = couseDetail.user_name;
55
+          console.log("详情", couseDetail);
56
+        }
57
+      });
58
+    },
59
+    getTime(time) {
60
+      // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
61
+      return uParseTime(time, "{y}-{m}-{d}");
62
+    },
63
+    toReturn() {
64
+      this.$router.push("/patientdetail?patientid=" + this.id);
65
+    }
66
+  },
67
+  created() {
68
+    var id = this.$route.query.id;
69
+    this.getCouseManagementDetail(id);
70
+    var patientid = this.$route.query.patientid;
71
+    this.id = patientid;
72
+    console.log("病成", this.id);
73
+  }
74
+};
75
+</script>
76
+<style lang="scss" scoped>
77
+.page_allCourse {
78
+  height: 100%;
79
+  overflow-y: auto;
80
+  .allCourseTitle {
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>

+ 117 - 0
src/pages/allDryWeight/index.vue Dosyayı Görüntüle

@@ -0,0 +1,117 @@
1
+<template>
2
+  <div class="page_allDryWeight">
3
+    <van-sticky>
4
+      <div class="allDryWeightTitle">
5
+        <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
6
+        <span class="titleName">{{ drydetail.name }}的干体重</span>
7
+      </div>
8
+    </van-sticky>
9
+    <div class="dryWeightBox">
10
+      <div class="dryWeightOne">
11
+        <div class="time">{{ getTime(drydetail.ctime) }}</div>
12
+        <div class="weightContent">
13
+          <p>干体重:{{ drydetail.dry_weight }}kg</p>
14
+          <p>上调:{{ drydetail.adjusted_value }}kg</p>
15
+        </div>
16
+        <div class="doctorBox">
17
+          <p>记录医生:{{ drydetail.user_name }}</p>
18
+        </div>
19
+      </div>
20
+    </div>
21
+  </div>
22
+</template>
23
+<script>
24
+import { getDryWeightDetail } from "@/api/patient/patient";
25
+import { uParseTime } from "@/utils/tools";
26
+export default {
27
+  data() {
28
+    return {
29
+      drydetail: {},
30
+      patientid: 0
31
+    };
32
+  },
33
+  methods: {
34
+    getDryWeightDetail(id) {
35
+      getDryWeightDetail(id).then(response => {
36
+        if (response.data.state === 1) {
37
+          var drydetail = response.data.data.drydetail;
38
+          this.drydetail = drydetail;
39
+          console.log("干体中详情", drydetail);
40
+        }
41
+      });
42
+    },
43
+    getTime(time) {
44
+      // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
45
+      return uParseTime(time, "{y}-{m}-{d}");
46
+    },
47
+    toReturn() {
48
+      this.$router.push("/patientdetail?patientid=" + this.patientid);
49
+    }
50
+  },
51
+  created() {
52
+    var id = this.$route.query.id;
53
+    console.log("id", id);
54
+    var patientid = this.$route.query.patientid;
55
+    console.log("patientid", patientid);
56
+    this.patientid = patientid;
57
+    this.getDryWeightDetail(id);
58
+  }
59
+};
60
+</script>
61
+<style lang="scss" scoped>
62
+.page_allDryWeight {
63
+  height: 100%;
64
+  overflow-y: auto;
65
+  .allDryWeightTitle {
66
+    background: #fff;
67
+    padding: 0 1.125rem;
68
+    height: 3.125rem;
69
+    display: flex;
70
+    align-items: center;
71
+  }
72
+  .jiantou {
73
+    font-size: 1.5rem;
74
+    font-weight: 600;
75
+    margin-right: 6rem;
76
+  }
77
+  .titleName {
78
+    font-size: 1.125rem;
79
+    font-weight: 600;
80
+  }
81
+  .dryWeightBox {
82
+    padding: 0 1.125rem;
83
+    margin-bottom: 3.125rem;
84
+  }
85
+  .dryWeightOne {
86
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
87
+    padding-bottom: 1.25rem;
88
+    .time {
89
+      font-size: 1.125rem;
90
+      margin-top: 0.625rem;
91
+      font-weight: bold;
92
+    }
93
+  }
94
+  .weightContent {
95
+    font-size: 0.875rem;
96
+    color: rgba(49, 50, 52, 1);
97
+    display: flex;
98
+    p {
99
+      line-height: 1.125rem;
100
+      margin-right: 0.625rem;
101
+      margin-top: 0.375rem;
102
+    }
103
+  }
104
+  .doctorBox {
105
+    font-size: 0.75rem;
106
+    color: rgba(152, 152, 152, 1);
107
+    line-height: 1.125rem;
108
+    display: flex;
109
+    align-items: center;
110
+    justify-content: space-between;
111
+    margin-top: 0.625rem;
112
+  }
113
+}
114
+::-webkit-scrollbar {
115
+  width: 0;
116
+}
117
+</style>

+ 11 - 1
src/pages/doctorAdvice/components/DoctorManagement.vue Dosyayı Görüntüle

@@ -128,7 +128,7 @@
128 128
 </template>
129 129
 
130 130
 <script>
131
-import { getDoctorAdvices } from "@/api/patient/patient";
131
+import { getDoctorAdvices, getPatientDetail } from "@/api/patient/patient";
132 132
 const moment = require("moment");
133 133
 export default {
134 134
   data() {
@@ -226,12 +226,22 @@ export default {
226 226
           console.log("总计", total);
227 227
         }
228 228
       });
229
+    },
230
+    getPatientDetail(patientid) {
231
+      getPatientDetail(patientid).then(response => {
232
+        if (response.data.state === 1) {
233
+          var patientDetail = response.data.data.patientDetail;
234
+          console.log("病人详情", patientDetail);
235
+          this.patientName = patientDetail.name;
236
+        }
237
+      });
229 238
     }
230 239
   },
231 240
   created() {
232 241
     var patientid = this.$route.query.patientid;
233 242
     console.log("病人id能否获取", patientid);
234 243
     this.getDoctorAdvices(patientid);
244
+    this.getPatientDetail(patientid);
235 245
   },
236 246
   watch: {
237 247
     $route(to, from) {

+ 199 - 181
src/pages/doctorAdvice/index.vue Dosyayı Görüntüle

@@ -31,13 +31,25 @@
31 31
       </van-tab>
32 32
     </van-tabs>
33 33
     <van-popup v-model="show" position="top" :style="{ height: '100%' }">
34
-      <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show = false">
34
+      <div
35
+        style="padding:10px;font-size:1.25rem;text-align:right"
36
+        @click="show = false"
37
+      >
35 38
         <van-icon name="cross" />
36 39
       </div>
37
-      <van-search v-model="value" placeholder="请输入病人名字" @cancel="onCancel" @search="onSearch" />
40
+      <van-search
41
+        v-model="value"
42
+        placeholder="请输入病人名字"
43
+        @cancel="onCancel"
44
+        @search="onSearch"
45
+      />
38 46
 
39 47
       <van-index-bar class="indexBar" :sticky="false" highlight-color="#fb6463">
40
-        <van-index-anchor v-for="(item, index) in firstNameTwo" :key="index" :index="index">
48
+        <van-index-anchor
49
+          v-for="(item, index) in firstNameTwo"
50
+          :key="index"
51
+          :index="index"
52
+        >
41 53
           <span class="indexWord">{{ index }}</span>
42 54
           <van-cell
43 55
             @click="chooseCity(citem)"
@@ -50,7 +62,10 @@
50 62
     </van-popup>
51 63
 
52 64
     <van-popup v-model="show1" position="top" :style="{ height: '40%' }">
53
-      <div style="padding:10px;font-size:1.25rem;text-align:right" @click="show1 = false">
65
+      <div
66
+        style="padding:10px;font-size:1.25rem;text-align:right"
67
+        @click="show1 = false"
68
+      >
54 69
         <van-icon name="cross" />
55 70
       </div>
56 71
       <div class="titleBox">
@@ -59,36 +74,38 @@
59 74
           v-for="(item, index) in title"
60 75
           :key="index"
61 76
           @click="changeActive(index)"
62
-        >{{ item }}</div>
77
+        >
78
+          {{ item }}
79
+        </div>
63 80
       </div>
64 81
     </van-popup>
65 82
   </div>
66 83
 </template>
67 84
 
68 85
 <script>
69
-import "../../styles/resetStyle.scss";
70
-import DoctorManagement from "@/pages/doctorAdvice/components/DoctorManagement";
71
-import DryWeight from "@/pages/doctorAdvice/components/DryWeight";
72
-import CourseManagement from "@/pages/doctorAdvice/components/CourseManagement";
73
-import RescueRecord from "@/pages/doctorAdvice/components/RescueRecord";
74
-import Inspection from "@/pages/doctorAdvice/components/Inspection";
75
-import LongDialysis from "@/pages/doctorAdvice/components/LongDialysis";
76
-import DialysisRecord from "@/pages/doctorAdvice/components/DialysisRecord";
77
-import Scheduling from "@/pages/doctorAdvice/components/Scheduling";
78
-import Education from "@/pages/doctorAdvice/components/Education";
79
-import signsRecord from "@/pages/doctorAdvice/components/signsRecord";
80
-import recoverNotes from "@/pages/doctorAdvice/components/recoverNotes";
81
-import medicationPlan from "@/pages/doctorAdvice/components/medicationPlan";
82
-import deviceManagement from "@/pages/doctorAdvice/components/deviceManagement";
83
-import { uParseTime } from "@/utils/tools";
86
+import '../../styles/resetStyle.scss'
87
+import DoctorManagement from '@/pages/doctorAdvice/components/DoctorManagement'
88
+import DryWeight from '@/pages/doctorAdvice/components/DryWeight'
89
+import CourseManagement from '@/pages/doctorAdvice/components/CourseManagement'
90
+import RescueRecord from '@/pages/doctorAdvice/components/RescueRecord'
91
+import Inspection from '@/pages/doctorAdvice/components/Inspection'
92
+import LongDialysis from '@/pages/doctorAdvice/components/LongDialysis'
93
+import DialysisRecord from '@/pages/doctorAdvice/components/DialysisRecord'
94
+import Scheduling from '@/pages/doctorAdvice/components/Scheduling'
95
+import Education from '@/pages/doctorAdvice/components/Education'
96
+import signsRecord from '@/pages/doctorAdvice/components/signsRecord'
97
+import recoverNotes from '@/pages/doctorAdvice/components/recoverNotes'
98
+import medicationPlan from '@/pages/doctorAdvice/components/medicationPlan'
99
+import deviceManagement from '@/pages/doctorAdvice/components/deviceManagement'
100
+import { uParseTime } from '@/utils/tools'
84 101
 import {
85 102
   getPatientDetail,
86 103
   getBloodDialysisPatientTwo,
87 104
   ToSearch
88
-} from "@/api/patient/patient";
89
-const moment = require("moment");
90
-let pinyin = require("js-pinyin");
91
-pinyin.setOptions({ checkPolyphone: false, charCase: 0 });
105
+} from '@/api/patient/patient'
106
+const moment = require('moment')
107
+let pinyin = require('js-pinyin')
108
+pinyin.setOptions({ checkPolyphone: false, charCase: 0 })
92 109
 export default {
93 110
   components: {
94 111
     DoctorManagement,
@@ -105,142 +122,142 @@ export default {
105 122
     medicationPlan,
106 123
     deviceManagement
107 124
   },
108
-  data() {
125
+  data () {
109 126
     return {
110 127
       show: false,
111 128
       show1: false,
112 129
       active: 0,
113 130
       title: [
114
-        "医嘱",
115
-        "长期透析处方",
116
-        "透析记录",
117
-        "干体重",
118
-        "检验检查",
119
-        "病程记录",
120
-        "抢救记录",
121
-        "排班信息",
122
-        "宣教信息",
123
-        "体征记录",
124
-        "康复笔记",
125
-        "用药管理",
126
-        "设备管理"
131
+        '医嘱',
132
+        '长期透析处方',
133
+        '透析记录',
134
+        '干体重',
135
+        '检验检查',
136
+        '病程记录',
137
+        '抢救记录',
138
+        '排班信息',
139
+        '宣教信息',
140
+        '体征记录',
141
+        '康复笔记',
142
+        '用药管理',
143
+        '设备管理'
127 144
       ],
128 145
 
129
-      searchVal: "",
130
-      startTime: moment(new Date()).format("YYYY-MM-DD"),
131
-      endTime: moment(new Date()).format("YYYY-MM-DD"),
146
+      searchVal: '',
147
+      startTime: moment(new Date()).format('YYYY-MM-DD'),
148
+      endTime: moment(new Date()).format('YYYY-MM-DD'),
132 149
       show1: false,
133 150
       show2: false,
134 151
       currentDate1: new Date(),
135 152
       currentDate2: new Date(),
136 153
       show3: false,
137
-      actions: [{ name: "编辑" }, { name: "删除" }],
138
-      time: "2016-10-2",
154
+      actions: [{ name: '编辑' }, { name: '删除' }],
155
+      time: '2016-10-2',
139 156
       patientForm: {
140
-        name: "",
141
-        sex: "",
142
-        age: "",
143
-        dialysis_no: "",
144
-        avatar: ""
157
+        name: '',
158
+        sex: '',
159
+        age: '',
160
+        dialysis_no: '',
161
+        avatar: ''
145 162
       },
146 163
       doctorAdvice: [],
147 164
       yiShow: false,
148 165
       meiShow: false,
149 166
       bingShow: false,
150 167
       aiShow: false,
151
-      doctor_name: "",
152
-      value: "",
153
-      patientName: "",
168
+      doctor_name: '',
169
+      value: '',
170
+      patientName: '',
154 171
       cityNameList: [
155 172
         {
156 173
           id: 101,
157
-          name: "北京市",
174
+          name: '北京市',
158 175
           pid: 1,
159 176
           code: 0
160 177
         },
161 178
         {
162 179
           id: 10101,
163
-          name: "天津市",
180
+          name: '天津市',
164 181
           pid: 10001,
165 182
           code: 0
166 183
         },
167 184
         {
168 185
           id: 20101,
169
-          name: "石家庄市",
186
+          name: '石家庄市',
170 187
           pid: 20001,
171 188
           code: 130100
172 189
         }
173 190
       ],
174 191
       FirstPin: [
175
-        "A",
176
-        "B",
177
-        "C",
178
-        "D",
179
-        "E",
180
-        "F",
181
-        "G",
182
-        "H",
183
-        "J",
184
-        "K",
185
-        "L",
186
-        "M",
187
-        "N",
188
-        "P",
189
-        "Q",
190
-        "R",
191
-        "S",
192
-        "T",
193
-        "W",
194
-        "X",
195
-        "Y",
196
-        "Z"
192
+        'A',
193
+        'B',
194
+        'C',
195
+        'D',
196
+        'E',
197
+        'F',
198
+        'G',
199
+        'H',
200
+        'J',
201
+        'K',
202
+        'L',
203
+        'M',
204
+        'N',
205
+        'P',
206
+        'Q',
207
+        'R',
208
+        'S',
209
+        'T',
210
+        'W',
211
+        'X',
212
+        'Y',
213
+        'Z'
197 214
       ],
198 215
       firstNameTwo: {},
199 216
       limit: 10,
200 217
       page: 1,
201 218
       patient: []
202
-    };
219
+    }
203 220
   },
204 221
   methods: {
205
-    changeActive(index) {
206
-      this.active = index;
207
-      this.show1 = false;
222
+    changeActive (index) {
223
+      this.active = index
224
+      this.show1 = false
208 225
     },
209 226
 
210 227
     // sadas
211
-    showPopup(index) {
228
+    showPopup (index) {
212 229
       if (index === 1) {
213
-        this.show1 = true;
230
+        this.show1 = true
214 231
       } else if (index === 2) {
215
-        this.show2 = true;
232
+        this.show2 = true
216 233
       }
217 234
     },
218
-    chooseStartTime(value) {
219
-      this.startTime = moment(value).format("YYYY-MM-DD");
220
-      var patientid = this.$route.query.patientid;
221
-      var orgid = this.$route.query.orgid;
222
-      this.GetDoctroAdvice(patientid, orgid, this.startTime);
223
-      this.show1 = false;
235
+    chooseStartTime (value) {
236
+      this.startTime = moment(value).format('YYYY-MM-DD')
237
+      var patientid = this.$route.query.patientid
238
+      var orgid = this.$route.query.orgid
239
+      this.GetDoctroAdvice(patientid, orgid, this.startTime)
240
+      this.show1 = false
224 241
     },
225
-    chooseEndTime(value) {
226
-      this.endTime = moment(value).format("YYYY-MM-DD");
227
-      var patientid = this.$route.query.patientid;
228
-      var orgid = this.$route.query.orgid;
229
-      this.GetDoctroAdvice(patientid, orgid, this.endTime);
230
-      this.show2 = false;
242
+    chooseEndTime (value) {
243
+      this.endTime = moment(value).format('YYYY-MM-DD')
244
+      var patientid = this.$route.query.patientid
245
+      var orgid = this.$route.query.orgid
246
+      this.GetDoctroAdvice(patientid, orgid, this.endTime)
247
+      this.show2 = false
231 248
     },
232
-    onClick(index) {
249
+    onClick (index) {
233 250
       if (index === 1) {
234
-        this.show3 = true;
251
+        this.show3 = true
235 252
       } else if (index === 2) {
236
-        this.show3 = true;
253
+        this.show3 = true
237 254
       }
238 255
     },
239
-    RecordTime(time) {
256
+    RecordTime (time) {
240 257
       // return uParseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
241
-      return uParseTime(time, "{y}-{m}-{d}");
258
+      return uParseTime(time, '{y}-{m}-{d}')
242 259
     },
243
-    GetDoctroAdvice(patientid, orgid) {
260
+    GetDoctroAdvice (patientid, orgid) {
244 261
       GetDoctroAdvice(
245 262
         patientid,
246 263
         orgid,
@@ -249,149 +266,150 @@ export default {
249 266
         this.searchVal
250 267
       ).then(response => {
251 268
         if (response.data.state === 1) {
252
-          var doctoradvice = response.data.data.doctoradvice;
253
-          this.doctorAdvice = doctoradvice;
254
-          var patients = response.data.data.patients;
255
-          this.patientForm.name = patients.name;
256
-          this.patientForm.age = patients.age;
257
-          this.patientForm.avatar = patients.avatar;
258
-          var diseases = response.data.data.diseases;
269
+          var doctoradvice = response.data.data.doctoradvice
270
+          this.doctorAdvice = doctoradvice
271
+          var patients = response.data.data.patients
272
+          this.patientForm.name = patients.name
273
+          this.patientForm.age = patients.age
274
+          this.patientForm.avatar = patients.avatar
275
+          var diseases = response.data.data.diseases
259 276
           for (let index = 0; index < diseases.length; index++) {
260 277
             if (diseases[index].disease_id === 2) {
261
-              this.yiShow = true;
278
+              this.yiShow = true
262 279
             }
263 280
             if (diseases[index].disease_id === 3) {
264
-              this.bingShow = true;
281
+              this.bingShow = true
265 282
             }
266 283
             if (diseases[index].disease_id === 4) {
267
-              this.aiShow = true;
284
+              this.aiShow = true
268 285
             }
269 286
 
270 287
             if (diseases[index].disease_id === 6) {
271
-              this.meiShow = true;
288
+              this.meiShow = true
272 289
             }
273 290
           }
274 291
           if (patients.gender === 1) {
275
-            this.patientForm.sex = "男";
292
+            this.patientForm.sex = '男'
276 293
           }
277 294
           if (patients.gender === 2) {
278
-            this.patientForm.sex = "女";
295
+            this.patientForm.sex = '女'
279 296
           }
280
-          this.patientForm.dialysis_no = patients.dialysis_no;
281
-          var role = response.data.data.role;
282
-          this.doctor_name = role.user_name;
297
+          this.patientForm.dialysis_no = patients.dialysis_no
298
+          var role = response.data.data.role
299
+          this.doctor_name = role.user_name
283 300
         }
284
-      });
301
+      })
285 302
     },
286
-    watchNum() {
287
-      var patientid = this.$route.query.patientid;
288
-      var orgid = this.$route.query.orgid;
303
+    watchNum () {
304
+      var patientid = this.$route.query.patientid
305
+      var orgid = this.$route.query.orgid
289 306
       toSeacherDoctorAdvice(patientid, orgid, this.searchVal).then(response => {
290 307
         if (response.data.state === 1) {
291
-          var doctorAdvice = response.data.data.doctoradvice;
292
-          this.doctorAdvice = doctoradvice;
308
+          var doctorAdvice = response.data.data.doctoradvice
309
+          this.doctorAdvice = doctoradvice
293 310
         }
294
-      });
311
+      })
295 312
     },
296
-    deleteDoctorAdvice(id, index) {
313
+    deleteDoctorAdvice (id, index) {
297 314
       deleteDoctorAdvice(id, index).then(response => {
298 315
         if (response.data.state === 1) {
299
-          var msg = response.data.data.msg;
300
-          this.doctorAdvice.splice(index, 1);
316
+          var msg = response.data.data.msg
317
+          this.doctorAdvice.splice(index, 1)
301 318
         }
302
-      });
319
+      })
303 320
     },
304
-    toReturn() {
305
-      this.$router.push("/patients");
321
+    toReturn () {
322
+      this.$router.push('/patients')
306 323
     },
307
-    getPatientDetail(patientid) {
324
+    getPatientDetail (patientid) {
308 325
       getPatientDetail(patientid).then(response => {
309 326
         if (response.data.state === 1) {
310
-          var patientDetail = response.data.data.patientDetail;
311
-          this.patientName = patientDetail.name;
327
+          var patientDetail = response.data.data.patientDetail
328
+          console.log('病人详情', patientDetail)
329
+          this.patientName = patientDetail.name
312 330
         }
313
-      });
331
+      })
314 332
     },
315
-    getBloodDialysisPatientTwo() {
333
+    getBloodDialysisPatientTwo () {
316 334
       getBloodDialysisPatientTwo(this.page, this.limit).then(response => {
317
-        var patient = response.data.data.patient;
318
-        this.patient = patient;
319
-        let cityNameList = [];
335
+        var patient = response.data.data.patient
336
+        this.patient = patient
337
+        let cityNameList = []
320 338
         for (let p in patient) {
321
-          cityNameList.push(patient[p].name);
339
+          cityNameList.push(patient[p].name)
322 340
         }
323
-        let firstName = {};
341
+        let firstName = {}
324 342
         this.FirstPin.forEach(item => {
325
-          firstName[item] = [];
343
+          firstName[item] = []
326 344
           cityNameList.forEach(el => {
327
-            let first = pinyin.getFullChars(el).substring(0, 1);
345
+            let first = pinyin.getFullChars(el).substring(0, 1)
328 346
             if (first == item) {
329
-              firstName[item].push(el);
347
+              firstName[item].push(el)
330 348
             }
331
-          });
332
-          this.firstNameTwo = firstName;
349
+          })
350
+          this.firstNameTwo = firstName
333 351
           // 判断非空
334
-          let newObj = {};
352
+          let newObj = {}
335 353
           Object.keys(this.firstNameTwo).map((item, index) => {
336 354
             if (this.firstNameTwo[item].length != 0) {
337
-              newObj[item] = this.firstNameTwo[item];
355
+              newObj[item] = this.firstNameTwo[item]
338 356
             }
339
-          });
340
-          this.firstNameTwo = newObj;
341
-        });
342
-      });
357
+          })
358
+          this.firstNameTwo = newObj
359
+        })
360
+      })
343 361
     },
344
-    onSearch(val) {
362
+    onSearch (val) {
345 363
       ToSearch(val).then(response => {
346 364
         if (response.data.state === 1) {
347
-          var search = response.data.data.search;
348
-          console.log("search", search);
349
-          let cityNameList = [];
365
+          var search = response.data.data.search
366
+          console.log('search', search)
367
+          let cityNameList = []
350 368
           for (let p in search) {
351
-            cityNameList.push(search[p].name);
369
+            cityNameList.push(search[p].name)
352 370
           }
353
-          let firstName = {};
371
+          let firstName = {}
354 372
           this.FirstPin.forEach(item => {
355
-            firstName[item] = [];
373
+            firstName[item] = []
356 374
             cityNameList.forEach(el => {
357
-              let first = pinyin.getFullChars(el).substring(0, 1);
375
+              let first = pinyin.getFullChars(el).substring(0, 1)
358 376
               if (first == item) {
359
-                firstName[item].push(el);
377
+                firstName[item].push(el)
360 378
               }
361
-            });
362
-            this.firstNameTwo = firstName;
379
+            })
380
+            this.firstNameTwo = firstName
363 381
             // 判断非空
364
-            let newObj = {};
382
+            let newObj = {}
365 383
             Object.keys(this.firstNameTwo).map((item, index) => {
366 384
               if (this.firstNameTwo[item].length != 0) {
367
-                newObj[item] = this.firstNameTwo[item];
385
+                newObj[item] = this.firstNameTwo[item]
368 386
               }
369
-            });
370
-            this.firstNameTwo = newObj;
371
-          });
387
+            })
388
+            this.firstNameTwo = newObj
389
+          })
372 390
         }
373
-      });
391
+      })
374 392
     },
375
-    onCancel() {},
376
-    chooseCity(val) {
377
-      this.value = val;
393
+    onCancel () {},
394
+    chooseCity (val) {
395
+      this.value = val
378 396
       for (let i = 0; i < this.patient.length; i++) {
379 397
         if (this.value === this.patient[i].name) {
380
-          var id = this.patient[i].id;
381
-          this.show = false;
382
-          this.$router.push("/patientdetail?patientid=" + id);
383
-          this.patientName = this.value;
398
+          var id = this.patient[i].id
399
+          this.show = false
400
+          this.$router.push('/patientdetail?patientid=' + id)
401
+          this.patientName = this.value
384 402
         }
385 403
       }
386 404
     }
387 405
   },
388
-  created() {
389
-    var patientid = this.$route.query.patientid;
390
-    console.log("patientid", patientid);
391
-    this.getPatientDetail(patientid);
392
-    this.getBloodDialysisPatientTwo();
406
+  created () {
407
+    var patientid = this.$route.query.patientid
408
+    console.log('patientid', patientid)
409
+    this.getPatientDetail(patientid)
410
+    this.getBloodDialysisPatientTwo()
393 411
   }
394
-};
412
+}
395 413
 </script>
396 414
 
397 415
 <style lang="scss" scoped>