XMLWAN il y a 4 ans
Parent
révision
f9c4003d62

+ 7 - 2
src/api/patient/patient.js Voir le fichier

432
   })
432
   })
433
 }
433
 }
434
 
434
 
435
-export function GetDoctorAdviceDetail(id, params) {
435
+export function GetDoctorAdviceDetail(date, id) {
436
+  const params = {
437
+    date: date,
438
+    id: id
439
+  }
440
+  console.log('params', params)
436
   return request({
441
   return request({
437
-    url: '/m/api/patient/getdoctoradvicedetail?id=' + id,
442
+    url: '/m/api/patient/getdoctoradvicedetail',
438
     method: 'get',
443
     method: 'get',
439
     params: params
444
     params: params
440
   })
445
   })

+ 512 - 0
src/pages/allDoctorAdvice/indexs.vue Voir le fichier

1
+<template>
2
+  <div class="page_allDoctorManagement">
3
+    <van-sticky>
4
+      <div class="allDoctorManagementTitle">
5
+        <i class="iconfont icon-zuojiantou jiantou" @click="toReturn"></i>
6
+        <span class="titleName">{{ patient_name }}的医嘱</span>
7
+      </div>
8
+    </van-sticky>
9
+    <div class="orderBox">
10
+      <div
11
+        class="orderBoxOne"
12
+        v-for="(item, index) in doctorAdvicedetail"
13
+        :key="index"
14
+      >
15
+        <div v-for="(it, i) in item.child" :key="i">
16
+          <div style="display:flex;justify-content:space-between;align-items:center">
17
+            <p class="time" v-if="i<1">
18
+              {{ it.advice_date ? getTime(it.advice_date) : "" }}
19
+            </p>
20
+            <span v-if="i<1"><van-icon class="ellipsis" name="ellipsis" @click="DeleteFive(item.start_time,item.child[0].execution_staff,index)" /></span>
21
+          </div>
22
+          <div class="statOrder">
23
+            <div v-if="it.advice_type == 1 && it.parent_id == 0">
24
+              <div class="statOrderTitle">
25
+                <span v-if="i<1">长期医嘱</span>
26
+                <span style="margin-left:1rem" v-if="i<1">
27
+                  {{ getTimes(it.start_time) }}
28
+                </span>
29
+              </div>
30
+              <div class="orderContent">
31
+                <div style="display:flex;justify-content:space-between">
32
+                  <p v-if="it.parent_id === 0">
33
+                    {{ it.advice_name }} {{ it.advice_desc
34
+                    }}{{ it.drug_spec_unit }} {{ it.prescribing_number
35
+                    }}{{ it.prescribing_number_unit }} {{ it.single_dose
36
+                    }}{{ it.single_dose_unit }} {{ it.delivery_way }}
37
+                    {{ it.execution_frequency }}
38
+                  </p>
39
+                  <span><van-icon
40
+                    class="ellipsis"
41
+                    name="ellipsis"
42
+                    @click="toDelete(it.id,it.execution_state,i)"
43
+                  />
44
+                  </span>
45
+                </div>
46
+
47
+                <div v-for="(i, index) in childList" :key="index" >
48
+                  <div style="display:flex;justify-content:space-between" >
49
+                    <p v-if="i.parent_id == it.id">
50
+                      ▲ {{ i.advice_name }} {{ i.advice_desc
51
+                      }}{{ i.drug_spec_unit }} {{ i.prescribing_number
52
+                      }}{{ i.prescribing_number_unit }} {{ i.single_dose
53
+                      }}{{ i.single_dose_unit }}
54
+                      {{ i.delivery_way }}
55
+                      {{ i.execution_frequency }}
56
+                    </p>
57
+                    <span v-if="i.parent_id == it.id"><van-icon
58
+                      class="ellipsis"
59
+                      name="ellipsis"
60
+                      @click="Delete(i.id,i.execution_state,index)"
61
+                    />
62
+                    </span>
63
+                  </div>
64
+                </div>
65
+
66
+                <div class="doctorBox">
67
+                  <p>开嘱医生:{{ getDoctor(it.advice_doctor)}}</p>
68
+                  <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
69
+                  <p>核对护士:{{ getDoctor(it.checker) }}</p>
70
+                </div>
71
+              </div>
72
+            </div>
73
+
74
+            <div
75
+              class="statOrder"
76
+              v-if="it.advice_type == 3 && it.parent_id == 0"
77
+            >
78
+              <div class="longOrderTitle">
79
+                <span v-if="i<1">临时医嘱</span>
80
+                <span style="margin-left:1rem" v-if="i<1">
81
+                  {{ getTimes(item.child[0].start_time) }}
82
+                </span>
83
+              </div>
84
+              <div class="orderContent">
85
+                <div style="display:flex;justify-content:space-between">
86
+                  <p>
87
+                    {{ it.advice_name }} {{ it.advice_desc
88
+                    }}{{ it.drug_spec_unit }} {{ it.prescribing_number
89
+                    }}{{ it.prescribing_number_unit }} {{ it.single_dose
90
+                    }}{{ it.single_dose_unit }} {{ it.delivery_way }}
91
+                    {{ it.execution_frequency }}
92
+                  </p>
93
+                  <van-icon
94
+                    class="ellipsis"
95
+                    name="ellipsis"
96
+                    @click="DeleteTwo(it.id,it.execution_state,index)"
97
+                  />
98
+                </div>
99
+                <div v-for="(i, index) in childList" :key="index">
100
+                  <div style="display:flex;justify-content:space-between">
101
+                    <p v-if="i.parent_id == it.id">
102
+                      ▲ {{ i.advice_name }} {{ i.advice_desc
103
+                      }}{{ i.drug_spec_unit }} {{ i.prescribing_number
104
+                      }}{{ i.prescribing_number_unit }} {{ i.single_dose
105
+                      }}{{ i.single_dose_unit }}
106
+                      {{ i.delivery_way }}
107
+                      {{ i.execution_frequency }}
108
+                    </p>
109
+                    <van-icon
110
+                      class="ellipsis"
111
+                      name="ellipsis"
112
+                      @click="DeleteThree(i.id,i.execution_state,index)"
113
+                    />
114
+                  </div>
115
+                </div>
116
+              </div>
117
+              <div
118
+                class="doctorBox"
119
+              >
120
+                <p>开嘱医生:{{ getDoctor(it.advice_doctor) }}</p>
121
+                <p>执行护士:{{ getDoctor(it.execution_staff) }}</p>
122
+                <p>核对护士:{{ getDoctor(it.checker) }}</p>
123
+              </div>
124
+            </div>
125
+          </div>
126
+        </div>
127
+
128
+      </div>
129
+
130
+      <van-action-sheet
131
+        v-model="newShow"
132
+        :actions="actions1"
133
+        cancel-text="取消"
134
+        @cancel="onCancel"
135
+        @select="onSelect"
136
+      />
137
+
138
+      <van-action-sheet
139
+        v-model="newShowOne"
140
+        :actions="actions2"
141
+        cancel-text="取消"
142
+        @cancel="onCancelOne"
143
+        @select="onSelectOne"
144
+      />
145
+
146
+      <van-action-sheet
147
+        v-model="newShowTwo"
148
+        :actions="actions3"
149
+        cancel-text="取消"
150
+        @cancel="onCancelTwo"
151
+        @select="onSelectTwo"
152
+      />
153
+      <van-action-sheet
154
+        v-model="newShowThree"
155
+        :actions="actions3"
156
+        cancel-text="取消"
157
+        @cancel="onCancelThree"
158
+        @select="onSelectThree"
159
+      />
160
+
161
+      <van-action-sheet
162
+        v-model="newShowFour"
163
+        :actions="actions4"
164
+        cancel-text="取消"
165
+        @cancel="onCancelFour"
166
+        @select="onSelectFour"
167
+      />
168
+    </div>
169
+  </div>
170
+</template>
171
+<script>
172
+import { setRem, setHeight } from "@/libs/functionRem";
173
+import {
174
+  GetDoctorAdviceDetail,
175
+  getAllDoctor,
176
+  DeleteChild,
177
+  DeletePatient,
178
+  DeleteManagement
179
+} from "@/api/patient/patient";
180
+import { Dialog } from "vant";
181
+import { uParseTime } from "@/utils/tools";
182
+export default {
183
+  data() {
184
+    return {
185
+      id: 0,
186
+      active: 0,
187
+      childList: [],
188
+      doctorAdvicedetail: [],
189
+      patient_name: "",
190
+      patient_date: "",
191
+      parentData: {},
192
+      doctor: [],
193
+      newShow: false,
194
+      actions1: [{ name: "删除" }],
195
+      actions2: [{ name: "删除" }],
196
+      actions3: [{ name: "删除" }],
197
+      actions4: [{ name: "全部删除" }],
198
+      newShow: false,
199
+      newShowOne: false,
200
+      newShowTwo: false,
201
+      newShowThree: false,
202
+      newShowFour: false,
203
+      index: 0,
204
+      state: 0
205
+    };
206
+  },
207
+  methods: {
208
+    toReturn() {
209
+      this.$router.push(
210
+        "/patientdetail?patientid=" + this.id + "&active=" + this.active
211
+      );
212
+    },
213
+    GetDoctorAdviceDetail(date, id) {
214
+      GetDoctorAdviceDetail(date, id).then(response => {
215
+        if (response.data.state === 1) {
216
+          var doctorAdvicedetail = response.data.data.doctorAdvicedetail;
217
+          console.log("doctorAdvicedetail", doctorAdvicedetail);
218
+          this.patient_name = doctorAdvicedetail[0].name;
219
+          let objarr = [];
220
+          for (let i = 0; i < doctorAdvicedetail.length; i++) {
221
+            if (doctorAdvicedetail[i].parent_id != 0) {
222
+              objarr.push(doctorAdvicedetail[i]);
223
+            }
224
+          }
225
+          this.childList = objarr;
226
+          console.log("childList", this.childList);
227
+          let dataInfo = {};
228
+          doctorAdvicedetail.forEach((item, index) => {
229
+            let { start_time } = item;
230
+            if (!dataInfo[start_time]) {
231
+              dataInfo[start_time] = {
232
+                start_time,
233
+                child: []
234
+              };
235
+            }
236
+            dataInfo[start_time].child.push(item);
237
+          });
238
+          let list = Object.values(dataInfo); // list 转换成功的数据
239
+          let arr = [];
240
+
241
+          // list.map(item => {
242
+          //   let arr2 = [];
243
+          //   if (item.child.length > 1) {
244
+          //     item.child.map(it => {
245
+          //       if (arr.indexOf(it.advice_date) == -1) {
246
+          //         arr.push(it.advice_date);
247
+          //       } else {
248
+          //         delete it["advice_date"];
249
+          //       }
250
+          //     });
251
+          //     for (var i = item.child.length - 1; i != -1; i--) {
252
+          //       let obj = {};
253
+          //       obj.checker = item.child[i].checker;
254
+          //       obj.execution_staff = item.child[i].execution_staff;
255
+          //       obj.user_name = item.child[i].advice_doctor;
256
+          //       if (
257
+          //         JSON.stringify(arr2).includes(JSON.stringify(obj)) == false
258
+          //       ) {
259
+          //         arr2.push(obj);
260
+          //       } else {
261
+          //         console.log("删除");
262
+          //         delete item.child[i]["checker"];
263
+          //         delete item.child[i]["execution_staff"];
264
+          //         delete item.child[i]["advice_doctor"];
265
+          //       }
266
+          //     }
267
+          //   }
268
+          // });
269
+
270
+          console.log("list是 ", list);
271
+          this.doctorAdvicedetail = list;
272
+        }
273
+      });
274
+    },
275
+    getTime(time) {
276
+      // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
277
+      return uParseTime(time, "{y}-{m}-{d}");
278
+    },
279
+    getTimes(time) {
280
+      return uParseTime(time, "{h}:{i}");
281
+    },
282
+    getAllDoctor() {
283
+      getAllDoctor().then(response => {
284
+        if (response.data.state === 1) {
285
+          var doctor = response.data.data.doctor;
286
+          console.log("doctor", doctor);
287
+          this.doctor = doctor;
288
+        }
289
+      });
290
+    },
291
+    getDoctor(id) {
292
+      for (let i = 0; i < this.doctor.length; i++) {
293
+        if ((this.doctor[i].admin_user_id = id)) {
294
+          return this.doctor[i].user_name;
295
+        }
296
+      }
297
+    },
298
+    DeleteFive(id, state, index) {
299
+      this.id = id;
300
+      this.state = state;
301
+      this.index = index;
302
+      this.newShowFour = true;
303
+    },
304
+    toDelete(id, state, index) {
305
+      this.id = id;
306
+      this.state = state;
307
+      this.index = index;
308
+      this.newShow = true;
309
+    },
310
+    Delete(id, state, index) {
311
+      this.id = id;
312
+      this.state = state;
313
+      this.index = index;
314
+      this.newShowOne = true;
315
+    },
316
+    DeleteTwo(id, state, index) {
317
+      this.id = id;
318
+      this.state = state;
319
+      this.index = index;
320
+      this.newShowTwo = true;
321
+    },
322
+    DeleteThree(id, state, index) {
323
+      this.id = id;
324
+      this.state = state;
325
+      this.index = index;
326
+      this.newShowThree = true;
327
+    },
328
+    onCancel() {
329
+      this.newShow = false;
330
+    },
331
+    onSelect(val) {
332
+      if (val.name === "删除") {
333
+        this.DeletePatient(this.id, this.state, this.index);
334
+      }
335
+    },
336
+    onCancelOne() {
337
+      this.newShowOne = false;
338
+    },
339
+    onSelectOne(val) {
340
+      if (val.name === "删除") {
341
+        this.DeleteChild(this.id, this.index, this.state);
342
+      }
343
+    },
344
+    onSelectTwo(val) {
345
+      if (val.name === "删除") {
346
+        this.DeletePatient(this.id, this.state, this.index);
347
+      }
348
+      this.newShowTwo = false;
349
+    },
350
+    onCancelTwo() {
351
+      this.newShowTwo = false;
352
+    },
353
+    onCancelThree() {
354
+      this.newShowThree = false;
355
+    },
356
+    onSelectThree() {
357
+      this.DeleteChild(this.id, this.index, this.state);
358
+    },
359
+    onSelectFour(val) {
360
+      if (val.name === "全部删除") {
361
+        this.DeleteManagement(this.id, this.staff, this.index);
362
+      }
363
+    },
364
+    onCancelFour() {
365
+      this.newShowFour = false;
366
+    },
367
+    DeletePatient(id, index, state) {
368
+      if (state == 1) {
369
+        this.$toast("医嘱已执行,无法删除");
370
+        return false;
371
+      }
372
+      Dialog.confirm({
373
+        title: "删除提示!",
374
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
375
+      }).then(() => {
376
+        DeletePatient(id).then(response => {
377
+          if (response.data.state === 1) {
378
+            var msg = response.data.data.msg;
379
+            this.GetDoctorAdviceDetail(this.id);
380
+            this.doctorAdvicedetail.splice(index, 1);
381
+            this.newShow = false;
382
+          }
383
+        });
384
+      });
385
+    },
386
+    DeleteChild(id, index, state) {
387
+      if (state == 1) {
388
+        this.$toast("医嘱已执行,无法删除");
389
+        return false;
390
+      }
391
+      Dialog.confirm({
392
+        title: "删除提示!",
393
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
394
+      }).then(() => {
395
+        DeleteChild(id).then(response => {
396
+          if (response.data.state === 1) {
397
+            var msg = response.data.data.msg;
398
+            this.childList.splice(index, 1);
399
+            this.newShowOne = false;
400
+            this.newShowThree = false;
401
+          }
402
+        });
403
+      });
404
+    },
405
+    DeleteManagement(id, index, staff) {
406
+      if (staff > 0) {
407
+        this.$toast("医嘱已执行,无法删除");
408
+        return false;
409
+      }
410
+      Dialog.confirm({
411
+        title: "删除提示!",
412
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
413
+      }).then(() => {
414
+        DeleteManagement(id).then(response => {
415
+          if (response.data.state === 1) {
416
+            var msg = response.data.data.msg;
417
+            this.doctorAdvicedetail.splice(index, 1);
418
+            this.newShowFour = false;
419
+          }
420
+        });
421
+      });
422
+    }
423
+  },
424
+  created() {
425
+    setRem();
426
+    setHeight();
427
+    var id = this.$route.query.id;
428
+    window.console.log("id是--------", id);
429
+
430
+    var patientid = this.$route.query.patientid;
431
+    this.id = patientid;
432
+    this.GetDoctorAdviceDetail(id, patientid);
433
+    this.active = parseInt(this.$route.query.active);
434
+    this.getAllDoctor();
435
+  }
436
+};
437
+</script>
438
+<style lang="scss" scoped>
439
+.page_allDoctorManagement {
440
+  .allDoctorManagementTitle {
441
+    background: #fff;
442
+    padding: 0 1.125rem;
443
+    height: 3.125rem;
444
+    display: flex;
445
+    align-items: center;
446
+  }
447
+  .jiantou {
448
+    font-size: 1.5rem;
449
+    font-weight: 600;
450
+    margin-right: 6.5rem;
451
+  }
452
+  .titleName {
453
+    font-size: 1.125rem;
454
+    font-weight: 600;
455
+  }
456
+  .orderBox {
457
+    padding: 0 1.125rem;
458
+    margin-bottom: 3.125rem;
459
+  }
460
+  .orderBoxOne {
461
+    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
462
+    padding-bottom: 1.25rem;
463
+    .time {
464
+      font-size: 1.125rem;
465
+      margin-top: 0.625rem;
466
+      font-weight: bold;
467
+    }
468
+  }
469
+  .adviceTitle {
470
+    padding-top: 0.625rem;
471
+    display: flex;
472
+    align-items: center;
473
+    justify-content: space-between;
474
+    p {
475
+      color: #000000;
476
+      font-weight: bold;
477
+      font-size: 0.9375rem;
478
+    }
479
+  }
480
+  .statOrderTitle {
481
+    color: #5b98ff;
482
+    font-size: 0.8125rem;
483
+    font-weight: bold;
484
+    margin: 0.625rem 0;
485
+  }
486
+  .longOrderTitle {
487
+    color: #ff964a;
488
+    font-size: 0.8125rem;
489
+    font-weight: bold;
490
+    margin: 0.625rem 0;
491
+  }
492
+  .orderContent {
493
+    font-size: 0.875rem;
494
+    color: rgba(49, 50, 52, 1);
495
+    p {
496
+      line-height: 1.125rem;
497
+    }
498
+  }
499
+  .doctorBox {
500
+    font-size: 0.75rem;
501
+    color: rgba(152, 152, 152, 1);
502
+    line-height: 1.125rem;
503
+    display: flex;
504
+    align-items: center;
505
+    justify-content: space-between;
506
+    margin-top: 0.625rem;
507
+  }
508
+}
509
+::-webkit-scrollbar {
510
+  width: 0;
511
+}
512
+</style>

+ 1 - 1
src/pages/doctorAdvice/components/CourseManagement.vue Voir le fichier

299
   created() {
299
   created() {
300
     var patientid = this.$route.query.patientid;
300
     var patientid = this.$route.query.patientid;
301
     this.patientid = patientid;
301
     this.patientid = patientid;
302
-    console.log("干体重id", patientid);
302
+    // console.log("干体重id", patientid);
303
     this.getCourseManagement(patientid);
303
     this.getCourseManagement(patientid);
304
     this.getPatientDetail(patientid);
304
     this.getPatientDetail(patientid);
305
   }
305
   }

+ 4 - 3
src/pages/doctorAdvice/components/DialysisRecord.vue Voir le fichier

211
 import { Dialog } from "vant";
211
 import { Dialog } from "vant";
212
 const moment = require("moment");
212
 const moment = require("moment");
213
 export default {
213
 export default {
214
+  props: {
215
+    active: Number
216
+  },
214
   data() {
217
   data() {
215
     return {
218
     return {
216
       newShow: false,
219
       newShow: false,
427
       }
430
       }
428
     },
431
     },
429
     toDialysisRecordDetail(id, date) {
432
     toDialysisRecordDetail(id, date) {
430
-      console.log("id", id);
431
-      console.log("date", date);
432
       this.$router.push(
433
       this.$router.push(
433
         "/details?patient_id=" +
434
         "/details?patient_id=" +
434
           id +
435
           id +
456
         DeleteDialysisRecord(id).then(response => {
457
         DeleteDialysisRecord(id).then(response => {
457
           if (response.data.state === 1) {
458
           if (response.data.state === 1) {
458
             var msg = response.data.data.msg;
459
             var msg = response.data.data.msg;
459
-            console.log("msg", msg);
460
+            // console.log("msg", msg);
460
             this.dialysisRecord.splice(index, 1);
461
             this.dialysisRecord.splice(index, 1);
461
             this.newShow = false;
462
             this.newShow = false;
462
           }
463
           }

+ 8 - 7
src/pages/doctorAdvice/components/DoctorManagement.vue Voir le fichier

36
               <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.start_time, index, item.child[0].execution_staff)" />
36
               <van-icon class="ellipsis" name="ellipsis" @click="Delete(item.start_time, index, item.child[0].execution_staff)" />
37
             </div>
37
             </div>
38
 
38
 
39
-         <div v-for="(it,i) in item.child.slice(0,3)" :key="i">
39
+         <div v-for="(it,i) in item.child" :key="i">
40
             <div class="statOrder"  v-if="it.advice_type == 1 && it.parent_id == 0">
40
             <div class="statOrder"  v-if="it.advice_type == 1 && it.parent_id == 0">
41
               <div class="statOrderTitle">
41
               <div class="statOrderTitle">
42
                 <span v-if="i<1">长期医嘱</span>
42
                 <span v-if="i<1">长期医嘱</span>
43
                 <span v-if="i<1" style="margin-left:1rem">{{getTimes(it.start_time)}}</span>
43
                 <span v-if="i<1" style="margin-left:1rem">{{getTimes(it.start_time)}}</span>
44
               </div>
44
               </div>
45
-              <div class="orderContent" v-if="i<4">
45
+              <div class="orderContent">
46
                 <p> {{ it.advice_name }} {{ it.advice_desc
46
                 <p> {{ it.advice_name }} {{ it.advice_desc
47
                      }}{{ it.drug_spec_unit }} {{ it.prescribing_number
47
                      }}{{ it.drug_spec_unit }} {{ it.prescribing_number
48
                     }}{{ it.prescribing_number_unit }} {{ it.single_dose
48
                     }}{{ it.prescribing_number_unit }} {{ it.single_dose
317
       ).then(response => {
317
       ).then(response => {
318
         if (response.data.state === 1) {
318
         if (response.data.state === 1) {
319
           var advice = response.data.data.advice;
319
           var advice = response.data.data.advice;
320
-          console.log("advice", advice);
320
+          // console.log("advice", advice);
321
           var one = response.data.data.one;
321
           var one = response.data.data.one;
322
-          console.log("one", one);
322
+          // console.log("one", one);
323
           var total = response.data.data.total;
323
           var total = response.data.data.total;
324
           this.total = total;
324
           this.total = total;
325
-          console.log("total", total);
325
+          // console.log("total", total);
326
           let dataInfo = {};
326
           let dataInfo = {};
327
           one.forEach((item, index) => {
327
           one.forEach((item, index) => {
328
             let { start_time } = item;
328
             let { start_time } = item;
334
             }
334
             }
335
           });
335
           });
336
           let list = Object.values(dataInfo);
336
           let list = Object.values(dataInfo);
337
-          console.log("list", list);
337
+          // console.log("list", list);
338
           list.map(item => {
338
           list.map(item => {
339
             for (let i = 0; i < advice.length; i++) {
339
             for (let i = 0; i < advice.length; i++) {
340
               if (item.start_time === advice[i].start_time) {
340
               if (item.start_time === advice[i].start_time) {
342
               }
342
               }
343
             }
343
             }
344
           });
344
           });
345
+
345
           let objarr = [];
346
           let objarr = [];
346
           for (let i = 0; i < advice.length; i++) {
347
           for (let i = 0; i < advice.length; i++) {
347
             if (advice[i].parent_id != 0) {
348
             if (advice[i].parent_id != 0) {
384
     onLoad() {
385
     onLoad() {
385
       setTimeout(() => {
386
       setTimeout(() => {
386
         this.form.page++;
387
         this.form.page++;
387
-        console.log("page", this.form.page);
388
+        // console.log("page", this.form.page);
388
         if (this.form.page <= Math.ceil(this.total / 5)) {
389
         if (this.form.page <= Math.ceil(this.total / 5)) {
389
           this.getDoctorAdvices(
390
           this.getDoctorAdvices(
390
             this.patient_id,
391
             this.patient_id,

+ 13 - 13
src/pages/doctorAdvice/components/DryWeight.vue Voir le fichier

97
 import {
97
 import {
98
   getDryWeight,
98
   getDryWeight,
99
   DeleteDryWeight,
99
   DeleteDryWeight,
100
-  getPatientDetail,
100
+  getPatientDetail
101
 } from "@/api/patient/patient";
101
 } from "@/api/patient/patient";
102
 import { uParseTime } from "@/utils/tools";
102
 import { uParseTime } from "@/utils/tools";
103
 import { Dialog } from "vant";
103
 import { Dialog } from "vant";
105
 export default {
105
 export default {
106
   props: {
106
   props: {
107
     active: Number,
107
     active: Number,
108
-    dryId: String,
108
+    dryId: String
109
   },
109
   },
110
   data() {
110
   data() {
111
     return {
111
     return {
131
       dry_id: 0,
131
       dry_id: 0,
132
       dry_index: 0,
132
       dry_index: 0,
133
       showOne: true,
133
       showOne: true,
134
-      showTwo: false,
134
+      showTwo: false
135
     };
135
     };
136
   },
136
   },
137
   methods: {
137
   methods: {
196
         this.endTime,
196
         this.endTime,
197
         this.limit,
197
         this.limit,
198
         this.page
198
         this.page
199
-      ).then((response) => {
199
+      ).then(response => {
200
         if (response.data.state === 1) {
200
         if (response.data.state === 1) {
201
           var dryweight = response.data.data.dryweight;
201
           var dryweight = response.data.data.dryweight;
202
           let arr = this.dryweight;
202
           let arr = this.dryweight;
215
         this.endTimes,
215
         this.endTimes,
216
         this.limit,
216
         this.limit,
217
         this.page
217
         this.page
218
-      ).then((response) => {
218
+      ).then(response => {
219
         if (response.data.state === 1) {
219
         if (response.data.state === 1) {
220
           var dryweight = response.data.data.dryweight;
220
           var dryweight = response.data.data.dryweight;
221
           this.dryweight = dryweight;
221
           this.dryweight = dryweight;
261
     DeleteDryWeight(id, index) {
261
     DeleteDryWeight(id, index) {
262
       Dialog.confirm({
262
       Dialog.confirm({
263
         title: "删除提示!",
263
         title: "删除提示!",
264
-        message: "确认删除该条信息吗?,删除后将无法恢复!",
264
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
265
       }).then(() => {
265
       }).then(() => {
266
-        DeleteDryWeight(id).then((response) => {
266
+        DeleteDryWeight(id).then(response => {
267
           if (response.data.state === 1) {
267
           if (response.data.state === 1) {
268
             var msg = response.data.data.msg;
268
             var msg = response.data.data.msg;
269
-            console.log("msg", msg);
269
+            // console.log("msg", msg);
270
             this.dryweight.splice(index, 1);
270
             this.dryweight.splice(index, 1);
271
             this.newShow = false;
271
             this.newShow = false;
272
           }
272
           }
285
       );
285
       );
286
     },
286
     },
287
     getPatientDetail(patientid) {
287
     getPatientDetail(patientid) {
288
-      getPatientDetail(patientid).then((response) => {
288
+      getPatientDetail(patientid).then(response => {
289
         if (response.data.state === 1) {
289
         if (response.data.state === 1) {
290
           var patientDetail = response.data.data.patientDetail;
290
           var patientDetail = response.data.data.patientDetail;
291
           if (patientDetail.blood_patients == 0) {
291
           if (patientDetail.blood_patients == 0) {
296
             this.showOne = true;
296
             this.showOne = true;
297
             this.showTwo = false;
297
             this.showTwo = false;
298
           }
298
           }
299
-          console.log("病人详情", patientDetail);
299
+          // console.log("病人详情", patientDetail);
300
           this.patientName = patientDetail.name;
300
           this.patientName = patientDetail.name;
301
         }
301
         }
302
       });
302
       });
303
-    },
303
+    }
304
   },
304
   },
305
   created() {
305
   created() {
306
-    console.log("created");
306
+    // console.log("created");
307
     // this.loading = true;
307
     // this.loading = true;
308
     var patientid = this.$route.query.patientid;
308
     var patientid = this.$route.query.patientid;
309
     // console.log("干体重id", patientid);
309
     // console.log("干体重id", patientid);
310
     this.getDryWeight(patientid);
310
     this.getDryWeight(patientid);
311
     this.patient_id = patientid;
311
     this.patient_id = patientid;
312
     this.getPatientDetail(patientid);
312
     this.getPatientDetail(patientid);
313
-  },
313
+  }
314
 };
314
 };
315
 </script>
315
 </script>
316
 
316
 

+ 2 - 2
src/pages/doctorAdvice/components/Education.vue Voir le fichier

257
       this.newShow = true;
257
       this.newShow = true;
258
     },
258
     },
259
     DeleteEducation(value) {
259
     DeleteEducation(value) {
260
-      console.log("value", value);
260
+      // console.log("value", value);
261
       if (value.name == "删除") {
261
       if (value.name == "删除") {
262
         this.DeleteEducationOne(this.id, this.index);
262
         this.DeleteEducationOne(this.id, this.index);
263
       }
263
       }
270
         DeleteEducationOne(id).then(response => {
270
         DeleteEducationOne(id).then(response => {
271
           if (response.data.state === 1) {
271
           if (response.data.state === 1) {
272
             var msg = response.data.data.msg;
272
             var msg = response.data.data.msg;
273
-            console.log("msg", msg);
273
+            // console.log("msg", msg);
274
             this.Education.splice(index, 1);
274
             this.Education.splice(index, 1);
275
             this.newShow = false;
275
             this.newShow = false;
276
           }
276
           }

+ 10 - 10
src/pages/doctorAdvice/components/Inspection.vue Voir le fichier

175
       this.typeShow = false;
175
       this.typeShow = false;
176
     },
176
     },
177
     onConfirm(value) {
177
     onConfirm(value) {
178
-      console.log("value值", value);
179
-      console.log("columns", this.checkdata);
178
+      // console.log("value值", value);
179
+      // console.log("columns", this.checkdata);
180
       for (let i = 0; i < this.checkdata.length; i++) {
180
       for (let i = 0; i < this.checkdata.length; i++) {
181
         if (value == this.checkdata[i].project_name) {
181
         if (value == this.checkdata[i].project_name) {
182
           this.project_id = this.checkdata[i].project_id;
182
           this.project_id = this.checkdata[i].project_id;
183
         }
183
         }
184
       }
184
       }
185
-      console.log("projectid", this.project_id);
185
+      // console.log("projectid", this.project_id);
186
       this.type = value;
186
       this.type = value;
187
       this.getInspection(
187
       this.getInspection(
188
         this.patientid,
188
         this.patientid,
195
       this.typeShow = false;
195
       this.typeShow = false;
196
     },
196
     },
197
     getstartTime(value) {
197
     getstartTime(value) {
198
-      console.log(value);
198
+      // console.log(value);
199
       let year = value.getFullYear();
199
       let year = value.getFullYear();
200
       let month = value.getMonth() + 1;
200
       let month = value.getMonth() + 1;
201
       let day = value.getDate();
201
       let day = value.getDate();
218
       this.startShow = false;
218
       this.startShow = false;
219
     },
219
     },
220
     getstartTime2(value) {
220
     getstartTime2(value) {
221
-      console.log(value);
221
+      // console.log(value);
222
       let year = value.getFullYear();
222
       let year = value.getFullYear();
223
       let month = value.getMonth() + 1;
223
       let month = value.getMonth() + 1;
224
       let day = value.getDate();
224
       let day = value.getDate();
278
       ).then(response => {
278
       ).then(response => {
279
         if (response.data.state == 1) {
279
         if (response.data.state == 1) {
280
           var inspection = response.data.data.inspection;
280
           var inspection = response.data.data.inspection;
281
-          console.log("为什么", inspection);
281
+          // console.log("为什么", inspection);
282
           var total = response.data.data.total;
282
           var total = response.data.data.total;
283
-          console.log("total", total);
283
+          // console.log("total", total);
284
           let dataInfo = {};
284
           let dataInfo = {};
285
           inspection.forEach((item, index) => {
285
           inspection.forEach((item, index) => {
286
             let { inspect_date } = item;
286
             let { inspect_date } = item;
293
             dataInfo[inspect_date].child.push(item);
293
             dataInfo[inspect_date].child.push(item);
294
           });
294
           });
295
           let list = Object.values(dataInfo); // list 转换成功的数据
295
           let list = Object.values(dataInfo); // list 转换成功的数据
296
-          console.log("按时间分组", list);
296
+          // console.log("按时间分组", list);
297
           let a = [];
297
           let a = [];
298
           list.map((item, index) => {
298
           list.map((item, index) => {
299
             let arr = [];
299
             let arr = [];
304
                 arr.push(it.project_name);
304
                 arr.push(it.project_name);
305
               }
305
               }
306
             });
306
             });
307
-            console.log("arr", arr);
307
+            // console.log("arr", arr);
308
             item.child = arr;
308
             item.child = arr;
309
           });
309
           });
310
           this.Inspection = list.reverse();
310
           this.Inspection = list.reverse();
334
       this.index = index;
334
       this.index = index;
335
     },
335
     },
336
     toDelete(val) {
336
     toDelete(val) {
337
-      console.log("val", val);
337
+      // console.log("val", val);
338
       if (val.name === "全部删除") {
338
       if (val.name === "全部删除") {
339
         this.DeleteInspection(this.date, this.index);
339
         this.DeleteInspection(this.date, this.index);
340
       }
340
       }

+ 2 - 2
src/pages/doctorAdvice/components/LongDialysis.vue Voir le fichier

386
           let arr = this.dialysisrecord;
386
           let arr = this.dialysisrecord;
387
           arr.push(...dialysis);
387
           arr.push(...dialysis);
388
           this.dialysisrecord = arr;
388
           this.dialysisrecord = arr;
389
-          console.log("长期透析处方", dialysis);
389
+          // console.log("长期透析处方", dialysis);
390
           var total = response.data.data.total;
390
           var total = response.data.data.total;
391
-          console.log("total", total);
391
+          // console.log("total", total);
392
           this.loading = false;
392
           this.loading = false;
393
         }
393
         }
394
       });
394
       });

+ 3 - 3
src/pages/doctorAdvice/components/RescueRecord.vue Voir le fichier

201
             this.showOne = true;
201
             this.showOne = true;
202
             this.showTwo = false;
202
             this.showTwo = false;
203
           }
203
           }
204
-          console.log("病人详情", patientDetail);
204
+          // console.log("病人详情", patientDetail);
205
           this.patientName = patientDetail.name;
205
           this.patientName = patientDetail.name;
206
         }
206
         }
207
       });
207
       });
216
       ).then(response => {
216
       ).then(response => {
217
         if (response.data.state === 1) {
217
         if (response.data.state === 1) {
218
           var rescuerecord = response.data.data.rescuerecord;
218
           var rescuerecord = response.data.data.rescuerecord;
219
-          console.log("抢救记录", rescuerecord);
219
+          // console.log("抢救记录", rescuerecord);
220
           let arr = this.rescueRecords;
220
           let arr = this.rescueRecords;
221
           arr.push(...rescuerecord);
221
           arr.push(...rescuerecord);
222
           this.rescueRecords = arr;
222
           this.rescueRecords = arr;
223
           var total = response.data.data.total;
223
           var total = response.data.data.total;
224
-          console.log("总计", total);
224
+          // console.log("总计", total);
225
           this.loading = false;
225
           this.loading = false;
226
         }
226
         }
227
       });
227
       });

+ 228 - 167
src/pages/doctorAdvice/components/Scheduling.vue Voir le fichier

110
 </template>
110
 </template>
111
 
111
 
112
 <script>
112
 <script>
113
-import { getPatientDetail, getScheduling, DeleteScheduling } from '@/api/patient/patient'
114
-import { uParseTime } from '@/utils/tools'
115
-import Vue from 'vue'
116
-import { Dialog } from 'vant'
117
-const moment = require('moment')
113
+import {
114
+  getPatientDetail,
115
+  getScheduling,
116
+  DeleteScheduling
117
+} from "@/api/patient/patient";
118
+import { uParseTime } from "@/utils/tools";
119
+import Vue from "vue";
120
+import { Dialog } from "vant";
121
+const moment = require("moment");
118
 export default {
122
 export default {
119
   props: {
123
   props: {
120
     active: Number,
124
     active: Number,
121
     schedulingId: String
125
     schedulingId: String
122
   },
126
   },
123
-  data () {
127
+  data() {
124
     return {
128
     return {
125
       newShow: false,
129
       newShow: false,
126
       typeShow: false,
130
       typeShow: false,
127
       startShow: false,
131
       startShow: false,
128
       endShow: false,
132
       endShow: false,
129
-      type: '全部',
133
+      type: "全部",
130
       types: 0,
134
       types: 0,
131
-      columns: ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回输'],
132
-      startTime: '请选择',
133
-      endTime: '请选择',
135
+      columns: [
136
+        "HD",
137
+        "HDF",
138
+        "HD+HP",
139
+        "HP",
140
+        "HF",
141
+        "SCUF",
142
+        "IUF",
143
+        "HFHD",
144
+        "HFHD+HP",
145
+        "PHF",
146
+        "HFR",
147
+        "HDF+HP",
148
+        "CRRT",
149
+        "腹水回输"
150
+      ],
151
+      startTime: "请选择",
152
+      endTime: "请选择",
134
       minDate: new Date(1970, 0, 1),
153
       minDate: new Date(1970, 0, 1),
135
       maxDate: new Date(2025, 10, 1),
154
       maxDate: new Date(2025, 10, 1),
136
       currentDate: new Date(),
155
       currentDate: new Date(),
137
-      actions: [{ name: '删除' }],
156
+      actions: [{ name: "删除" }],
138
       showOne: true,
157
       showOne: true,
139
       showTwo: false,
158
       showTwo: false,
140
       limit: 10,
159
       limit: 10,
143
       loading: false,
162
       loading: false,
144
       finished: false,
163
       finished: false,
145
       list: [],
164
       list: [],
146
-      patient_id: '',
165
+      patient_id: "",
147
       scheduLing: [],
166
       scheduLing: [],
148
       list: [],
167
       list: [],
149
       id: 0,
168
       id: 0,
150
       index: 0,
169
       index: 0,
151
       immediateCheck: false,
170
       immediateCheck: false,
152
       flag: true
171
       flag: true
153
-    }
172
+    };
154
   },
173
   },
155
   methods: {
174
   methods: {
156
-    onCancel () {
157
-      this.typeShow = false
175
+    onCancel() {
176
+      this.typeShow = false;
158
     },
177
     },
159
-    onConfirm (value) {
160
-      this.page = 1
161
-      if (value === '全部') {
162
-        this.types = 0
178
+    onConfirm(value) {
179
+      this.page = 1;
180
+      if (value === "全部") {
181
+        this.types = 0;
163
       }
182
       }
164
-      if (value === 'HD') {
165
-        this.types = 1
183
+      if (value === "HD") {
184
+        this.types = 1;
166
       }
185
       }
167
-      if (value === 'HDF') {
168
-        this.types = 2
186
+      if (value === "HDF") {
187
+        this.types = 2;
169
       }
188
       }
170
-      if (value === 'HD+HP') {
171
-        this.types = 3
189
+      if (value === "HD+HP") {
190
+        this.types = 3;
172
       }
191
       }
173
-      if (value === 'HP') {
174
-        this.types = 4
192
+      if (value === "HP") {
193
+        this.types = 4;
175
       }
194
       }
176
-      if (value === 'HF') {
177
-        this.types = 5
195
+      if (value === "HF") {
196
+        this.types = 5;
178
       }
197
       }
179
-      if (value === 'SCUF') {
180
-        this.types = 6
198
+      if (value === "SCUF") {
199
+        this.types = 6;
181
       }
200
       }
182
-      if (value === 'IUF') {
183
-        this.types = 7
201
+      if (value === "IUF") {
202
+        this.types = 7;
184
       }
203
       }
185
-      if (value === 'HFHD') {
186
-        this.types = 8
204
+      if (value === "HFHD") {
205
+        this.types = 8;
187
       }
206
       }
188
-      if (value === 'HFHD+HP') {
189
-        this.types = 9
207
+      if (value === "HFHD+HP") {
208
+        this.types = 9;
190
       }
209
       }
191
-      if (value === 'PHF') {
192
-        this.types = 10
210
+      if (value === "PHF") {
211
+        this.types = 10;
193
       }
212
       }
194
-      if (value === 'HFR') {
195
-        this.types = 11
213
+      if (value === "HFR") {
214
+        this.types = 11;
196
       }
215
       }
197
 
216
 
198
-      if (value === 'HDF+HP') {
199
-        this.types = 12
217
+      if (value === "HDF+HP") {
218
+        this.types = 12;
200
       }
219
       }
201
-      if (value === 'CRRT') {
202
-        this.types = 13
220
+      if (value === "CRRT") {
221
+        this.types = 13;
203
       }
222
       }
204
-      if (value === '腹水回输') {
205
-        this.types = 14
223
+      if (value === "腹水回输") {
224
+        this.types = 14;
206
       }
225
       }
207
-      this.type = value
208
-      this.typeShow = false
209
-      this.scheduLing = []
210
-      this.getScheduling(this.patient_id, this.limit, this.page, this.startTime, this.endTime, this.types)
226
+      this.type = value;
227
+      this.typeShow = false;
228
+      this.scheduLing = [];
229
+      this.getScheduling(
230
+        this.patient_id,
231
+        this.limit,
232
+        this.page,
233
+        this.startTime,
234
+        this.endTime,
235
+        this.types
236
+      );
211
     },
237
     },
212
-    getstartTime (value) {
213
-      this.page = 1
214
-      let year = value.getFullYear()
215
-      let month = value.getMonth() + 1
216
-      let day = value.getDate()
238
+    getstartTime(value) {
239
+      this.page = 1;
240
+      let year = value.getFullYear();
241
+      let month = value.getMonth() + 1;
242
+      let day = value.getDate();
217
       if (month >= 1 && month <= 9) {
243
       if (month >= 1 && month <= 9) {
218
-        month = `0${month}`
244
+        month = `0${month}`;
219
       }
245
       }
220
       if (day >= 1 && day <= 9) {
246
       if (day >= 1 && day <= 9) {
221
-        day = `0${day}`
247
+        day = `0${day}`;
222
       }
248
       }
223
 
249
 
224
-      this.startTime = `${year}-${month}-${day}`
225
-      this.scheduLing = []
226
-      this.getScheduling(this.patient_id, this.limit, this.page, this.startTime, this.endTime, this.types)
227
-      this.startShow = false
250
+      this.startTime = `${year}-${month}-${day}`;
251
+      this.scheduLing = [];
252
+      this.getScheduling(
253
+        this.patient_id,
254
+        this.limit,
255
+        this.page,
256
+        this.startTime,
257
+        this.endTime,
258
+        this.types
259
+      );
260
+      this.startShow = false;
228
     },
261
     },
229
-    getstartTime2 (value) {
230
-      this.page = 1
231
-      let year = value.getFullYear()
232
-      let month = value.getMonth() + 1
233
-      let day = value.getDate()
262
+    getstartTime2(value) {
263
+      this.page = 1;
264
+      let year = value.getFullYear();
265
+      let month = value.getMonth() + 1;
266
+      let day = value.getDate();
234
       if (month >= 1 && month <= 9) {
267
       if (month >= 1 && month <= 9) {
235
-        month = `0${month}`
268
+        month = `0${month}`;
236
       }
269
       }
237
       if (day >= 1 && day <= 9) {
270
       if (day >= 1 && day <= 9) {
238
-        day = `0${day}`
271
+        day = `0${day}`;
239
       }
272
       }
240
 
273
 
241
-      this.endTime = `${year}-${month}-${day}`
242
-      this.scheduLing = []
243
-      this.getScheduling(this.patient_id, this.limit, this.page, this.startTime, this.endTime, this.types)
244
-      this.endShow = false
274
+      this.endTime = `${year}-${month}-${day}`;
275
+      this.scheduLing = [];
276
+      this.getScheduling(
277
+        this.patient_id,
278
+        this.limit,
279
+        this.page,
280
+        this.startTime,
281
+        this.endTime,
282
+        this.types
283
+      );
284
+      this.endShow = false;
245
     },
285
     },
246
-    getPatientDetail (patientid) {
286
+    getPatientDetail(patientid) {
247
       getPatientDetail(patientid).then(response => {
287
       getPatientDetail(patientid).then(response => {
248
         if (response.data.state === 1) {
288
         if (response.data.state === 1) {
249
-          var patientDetail = response.data.data.patientDetail
289
+          var patientDetail = response.data.data.patientDetail;
250
           if (patientDetail.blood_patients == 0) {
290
           if (patientDetail.blood_patients == 0) {
251
-            this.showOne = false
252
-            this.showTwo = true
291
+            this.showOne = false;
292
+            this.showTwo = true;
253
           }
293
           }
254
           if (patientDetail.blood_patients == 1) {
294
           if (patientDetail.blood_patients == 1) {
255
-            this.showOne = true
256
-            this.showTwo = false
295
+            this.showOne = true;
296
+            this.showTwo = false;
257
           }
297
           }
258
           // console.log('病人详情', patientDetail)
298
           // console.log('病人详情', patientDetail)
259
-          this.patientName = patientDetail.name
299
+          this.patientName = patientDetail.name;
260
         }
300
         }
261
-      })
301
+      });
262
     },
302
     },
263
-    getScheduling (id) {
264
-      getScheduling(id, this.limit, this.page, this.startTime, this.endTime, this.types).then(response => {
303
+    getScheduling(id) {
304
+      getScheduling(
305
+        id,
306
+        this.limit,
307
+        this.page,
308
+        this.startTime,
309
+        this.endTime,
310
+        this.types
311
+      ).then(response => {
265
         if (response.data.state === 1) {
312
         if (response.data.state === 1) {
266
-          var scheduling = response.data.data.scheduling
313
+          var scheduling = response.data.data.scheduling;
267
           for (let i = 0; i < scheduling.length; i++) {
314
           for (let i = 0; i < scheduling.length; i++) {
268
             if (scheduling[i].schedule_type === 1) {
315
             if (scheduling[i].schedule_type === 1) {
269
-              scheduling[i].schedule_type = '上午'
316
+              scheduling[i].schedule_type = "上午";
270
             }
317
             }
271
             if (scheduling[i].schedule_type === 2) {
318
             if (scheduling[i].schedule_type === 2) {
272
-              scheduling[i].schedule_type = '中午'
319
+              scheduling[i].schedule_type = "中午";
273
             }
320
             }
274
             if (scheduling[i].schedule_type === 3) {
321
             if (scheduling[i].schedule_type === 3) {
275
-              scheduling[i].schedule_type = '下午'
322
+              scheduling[i].schedule_type = "下午";
276
             }
323
             }
277
 
324
 
278
             if (scheduling[i].mode_id === 1) {
325
             if (scheduling[i].mode_id === 1) {
279
-              scheduling[i].mode_id = 'HD'
326
+              scheduling[i].mode_id = "HD";
280
             }
327
             }
281
             if (scheduling[i].mode_id === 2) {
328
             if (scheduling[i].mode_id === 2) {
282
-              scheduling[i].mode_id = 'HDF'
329
+              scheduling[i].mode_id = "HDF";
283
             }
330
             }
284
             if (scheduling[i].mode_id === 3) {
331
             if (scheduling[i].mode_id === 3) {
285
-              scheduling[i].mode_id = 'HD+HP'
332
+              scheduling[i].mode_id = "HD+HP";
286
             }
333
             }
287
             if (scheduling[i].mode_id === 4) {
334
             if (scheduling[i].mode_id === 4) {
288
-              scheduling[i].mode_id = 'HP'
335
+              scheduling[i].mode_id = "HP";
289
             }
336
             }
290
             if (scheduling[i].mode_id === 5) {
337
             if (scheduling[i].mode_id === 5) {
291
-              scheduling[i].mode_id = 'HF'
338
+              scheduling[i].mode_id = "HF";
292
             }
339
             }
293
             if (scheduling[i].mode_id === 6) {
340
             if (scheduling[i].mode_id === 6) {
294
-              scheduling[i].mode_id = 'SCUF'
341
+              scheduling[i].mode_id = "SCUF";
295
             }
342
             }
296
             if (scheduling[i].mode_id === 7) {
343
             if (scheduling[i].mode_id === 7) {
297
-              scheduling[i].mode_id = 'IUF'
344
+              scheduling[i].mode_id = "IUF";
298
             }
345
             }
299
             if (scheduling[i].mode_id === 8) {
346
             if (scheduling[i].mode_id === 8) {
300
-              scheduling[i].mode_id = 'HFHD'
347
+              scheduling[i].mode_id = "HFHD";
301
             }
348
             }
302
             if (scheduling[i].mode_id === 9) {
349
             if (scheduling[i].mode_id === 9) {
303
-              scheduling[i].mode_id = 'HFHD+HP'
350
+              scheduling[i].mode_id = "HFHD+HP";
304
             }
351
             }
305
             if (scheduling[i].mode_id === 10) {
352
             if (scheduling[i].mode_id === 10) {
306
-              scheduling[i].mode_id = 'PHF'
353
+              scheduling[i].mode_id = "PHF";
307
             }
354
             }
308
             if (scheduling[i].mode_id === 11) {
355
             if (scheduling[i].mode_id === 11) {
309
-              scheduling[i].mode_id = 'HFR'
356
+              scheduling[i].mode_id = "HFR";
310
             }
357
             }
311
             if (scheduling[i].mode_id === 12) {
358
             if (scheduling[i].mode_id === 12) {
312
-              scheduling[i].mode_id = 'HDF+HP'
359
+              scheduling[i].mode_id = "HDF+HP";
313
             }
360
             }
314
             if (scheduling[i].mode_id === 13) {
361
             if (scheduling[i].mode_id === 13) {
315
-              scheduling[i].mode_id = 'CRRT'
362
+              scheduling[i].mode_id = "CRRT";
316
             }
363
             }
317
             if (scheduling[i].mode_id === 14) {
364
             if (scheduling[i].mode_id === 14) {
318
-              scheduling[i].mode_id = '腹水回输'
365
+              scheduling[i].mode_id = "腹水回输";
319
             }
366
             }
320
           }
367
           }
321
-          let arr = this.scheduLing
322
-          arr.push(...scheduling)
368
+          let arr = this.scheduLing;
369
+          arr.push(...scheduling);
323
           // console.log('班次', scheduling)
370
           // console.log('班次', scheduling)
324
-          this.scheduLing = arr
325
-          var total = response.data.data.total
371
+          this.scheduLing = arr;
372
+          var total = response.data.data.total;
326
           // console.log('total', total)
373
           // console.log('total', total)
327
-          this.total = total
328
-          this.loading = false
329
-          console.log('1823792742736487362847623876执行这里')
374
+          this.total = total;
375
+          this.loading = false;
376
+          // console.log('1823792742736487362847623876执行这里')
330
         }
377
         }
331
-      })
378
+      });
332
     },
379
     },
333
-    getScheduling1 (id) {
334
-      getScheduling(id, this.limit, this.page, this.startTime, this.endTime, this.types).then(response => {
380
+    getScheduling1(id) {
381
+      getScheduling(
382
+        id,
383
+        this.limit,
384
+        this.page,
385
+        this.startTime,
386
+        this.endTime,
387
+        this.types
388
+      ).then(response => {
335
         if (response.data.state === 1) {
389
         if (response.data.state === 1) {
336
-          var scheduling = response.data.data.scheduling
390
+          var scheduling = response.data.data.scheduling;
337
           for (let i = 0; i < scheduling.length; i++) {
391
           for (let i = 0; i < scheduling.length; i++) {
338
             if (scheduling[i].schedule_type === 1) {
392
             if (scheduling[i].schedule_type === 1) {
339
-              scheduling[i].schedule_type = '上午'
393
+              scheduling[i].schedule_type = "上午";
340
             }
394
             }
341
             if (scheduling[i].schedule_type === 2) {
395
             if (scheduling[i].schedule_type === 2) {
342
-              scheduling[i].schedule_type = '中午'
396
+              scheduling[i].schedule_type = "中午";
343
             }
397
             }
344
             if (scheduling[i].schedule_type === 3) {
398
             if (scheduling[i].schedule_type === 3) {
345
-              scheduling[i].schedule_type = '下午'
399
+              scheduling[i].schedule_type = "下午";
346
             }
400
             }
347
 
401
 
348
             if (scheduling[i].mode_id === 1) {
402
             if (scheduling[i].mode_id === 1) {
349
-              scheduling[i].mode_id = 'HD'
403
+              scheduling[i].mode_id = "HD";
350
             }
404
             }
351
             if (scheduling[i].mode_id === 2) {
405
             if (scheduling[i].mode_id === 2) {
352
-              scheduling[i].mode_id = 'HDF'
406
+              scheduling[i].mode_id = "HDF";
353
             }
407
             }
354
             if (scheduling[i].mode_id === 3) {
408
             if (scheduling[i].mode_id === 3) {
355
-              scheduling[i].mode_id = 'HD+HP'
409
+              scheduling[i].mode_id = "HD+HP";
356
             }
410
             }
357
             if (scheduling[i].mode_id === 4) {
411
             if (scheduling[i].mode_id === 4) {
358
-              scheduling[i].mode_id = 'HP'
412
+              scheduling[i].mode_id = "HP";
359
             }
413
             }
360
             if (scheduling[i].mode_id === 5) {
414
             if (scheduling[i].mode_id === 5) {
361
-              scheduling[i].mode_id = 'HF'
415
+              scheduling[i].mode_id = "HF";
362
             }
416
             }
363
             if (scheduling[i].mode_id === 6) {
417
             if (scheduling[i].mode_id === 6) {
364
-              scheduling[i].mode_id = 'SCUF'
418
+              scheduling[i].mode_id = "SCUF";
365
             }
419
             }
366
             if (scheduling[i].mode_id === 7) {
420
             if (scheduling[i].mode_id === 7) {
367
-              scheduling[i].mode_id = 'IUF'
421
+              scheduling[i].mode_id = "IUF";
368
             }
422
             }
369
             if (scheduling[i].mode_id === 8) {
423
             if (scheduling[i].mode_id === 8) {
370
-              scheduling[i].mode_id = 'HFHD'
424
+              scheduling[i].mode_id = "HFHD";
371
             }
425
             }
372
             if (scheduling[i].mode_id === 9) {
426
             if (scheduling[i].mode_id === 9) {
373
-              scheduling[i].mode_id = 'HFHD+HP'
427
+              scheduling[i].mode_id = "HFHD+HP";
374
             }
428
             }
375
             if (scheduling[i].mode_id === 10) {
429
             if (scheduling[i].mode_id === 10) {
376
-              scheduling[i].mode_id = 'PHF'
430
+              scheduling[i].mode_id = "PHF";
377
             }
431
             }
378
             if (scheduling[i].mode_id === 11) {
432
             if (scheduling[i].mode_id === 11) {
379
-              scheduling[i].mode_id = 'HFR'
433
+              scheduling[i].mode_id = "HFR";
380
             }
434
             }
381
             if (scheduling[i].mode_id === 12) {
435
             if (scheduling[i].mode_id === 12) {
382
-              scheduling[i].mode_id = 'HDF+HP'
436
+              scheduling[i].mode_id = "HDF+HP";
383
             }
437
             }
384
             if (scheduling[i].mode_id === 13) {
438
             if (scheduling[i].mode_id === 13) {
385
-              scheduling[i].mode_id = 'CRRT'
439
+              scheduling[i].mode_id = "CRRT";
386
             }
440
             }
387
             if (scheduling[i].mode_id === 14) {
441
             if (scheduling[i].mode_id === 14) {
388
-              scheduling[i].mode_id = '腹水回输'
442
+              scheduling[i].mode_id = "腹水回输";
389
             }
443
             }
390
           }
444
           }
391
 
445
 
392
-          this.scheduLing = scheduling
393
-          var total = response.data.data.total
394
-          this.total = total
395
-          this.loading = false
446
+          this.scheduLing = scheduling;
447
+          var total = response.data.data.total;
448
+          this.total = total;
449
+          this.loading = false;
396
         }
450
         }
397
-      })
451
+      });
398
     },
452
     },
399
-    getTime (time) {
453
+    getTime(time) {
400
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
454
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
401
-      return uParseTime(time, '{y}-{m}-{d}')
455
+      return uParseTime(time, "{y}-{m}-{d}");
402
     },
456
     },
403
-    onLoad () {
457
+    onLoad() {
404
       setTimeout(() => {
458
       setTimeout(() => {
405
-        this.page++
459
+        this.page++;
406
         // console.log(this.page)
460
         // console.log(this.page)
407
         if (this.page <= Math.ceil(this.total / 10)) {
461
         if (this.page <= Math.ceil(this.total / 10)) {
408
           this.getScheduling(
462
           this.getScheduling(
412
             this.limit,
466
             this.limit,
413
             this.page,
467
             this.page,
414
             this.types
468
             this.types
415
-          )
469
+          );
416
         } else {
470
         } else {
417
-          this.loading = false
418
-          this.finished = true
471
+          this.loading = false;
472
+          this.finished = true;
419
         }
473
         }
420
-      }, 3000)
474
+      }, 3000);
421
     },
475
     },
422
-    toEditSchduling (id) {
423
-      var patientid = this.$route.query.patientid
424
-      this.$router.push('/editScheduling?id=' + id + '&patientid=' + patientid + '&active=' + this.active)
476
+    toEditSchduling(id) {
477
+      var patientid = this.$route.query.patientid;
478
+      this.$router.push(
479
+        "/editScheduling?id=" +
480
+          id +
481
+          "&patientid=" +
482
+          patientid +
483
+          "&active=" +
484
+          this.active
485
+      );
425
     },
486
     },
426
-    toDelete (id, index) {
427
-      this.id = id
428
-      this.index = index
429
-      this.newShow = true
487
+    toDelete(id, index) {
488
+      this.id = id;
489
+      this.index = index;
490
+      this.newShow = true;
430
     },
491
     },
431
-    onCancelOne (value) {
432
-      if (value.name == '删除') {
433
-        this.DeleteScheduling(this.id, this.index)
492
+    onCancelOne(value) {
493
+      if (value.name == "删除") {
494
+        this.DeleteScheduling(this.id, this.index);
434
       }
495
       }
435
     },
496
     },
436
-    DeleteScheduling (id, index) {
497
+    DeleteScheduling(id, index) {
437
       Dialog.confirm({
498
       Dialog.confirm({
438
-        title: '删除提示!',
439
-        message: '确认删除该条信息吗?,删除后将无法恢复!'
499
+        title: "删除提示!",
500
+        message: "确认删除该条信息吗?,删除后将无法恢复!"
440
       }).then(() => {
501
       }).then(() => {
441
         DeleteScheduling(id).then(response => {
502
         DeleteScheduling(id).then(response => {
442
           if (response.data.state === 1) {
503
           if (response.data.state === 1) {
443
-            var msg = response.data.data.msg
444
-            console.log('msg', msg)
445
-            this.scheduLing.splice(index, 1)
446
-            this.newShow = false
504
+            var msg = response.data.data.msg;
505
+            console.log("msg", msg);
506
+            this.scheduLing.splice(index, 1);
507
+            this.newShow = false;
447
           }
508
           }
448
-        })
449
-      })
509
+        });
510
+      });
450
     }
511
     }
451
   },
512
   },
452
-  created () {
453
-    var patientid = this.$route.query.patientid
454
-    this.getPatientDetail(patientid)
455
-    this.getScheduling(patientid)
456
-    this.patient_id = patientid
513
+  created() {
514
+    var patientid = this.$route.query.patientid;
515
+    this.getPatientDetail(patientid);
516
+    this.getScheduling(patientid);
517
+    this.patient_id = patientid;
457
   }
518
   }
458
-}
519
+};
459
 </script>
520
 </script>
460
 
521
 
461
 <style lang="scss" scoped>
522
 <style lang="scss" scoped>

+ 1 - 1
src/pages/doctorAdvice/components/recoverNotes.vue Voir le fichier

111
       this.typeShow = false;
111
       this.typeShow = false;
112
     },
112
     },
113
     getstartTime(value) {
113
     getstartTime(value) {
114
-      console.log(value);
114
+      // console.log(value);
115
       let year = value.getFullYear();
115
       let year = value.getFullYear();
116
       let month = value.getMonth() + 1;
116
       let month = value.getMonth() + 1;
117
       let day = value.getDate();
117
       let day = value.getDate();

+ 177 - 14
src/pages/patients/addPatient.vue Voir le fichier

485
         this.show14 = false;
485
         this.show14 = false;
486
       }
486
       }
487
       if (value == 4) {
487
       if (value == 4) {
488
-        this.patientForm.patient_type = "肾病综合";
488
+        this.patientForm.patient_type = "肾病综合";
489
         this.show14 = false;
489
         this.show14 = false;
490
       }
490
       }
491
       if (value == 5) {
491
       if (value == 5) {
782
       }
782
       }
783
 
783
 
784
       if (this.patientForm.patient_type === "尿毒症") {
784
       if (this.patientForm.patient_type === "尿毒症") {
785
-        this.patientForm.patient_type = 1;
785
+        this.patientForm.patient_type = 21;
786
       }
786
       }
787
       if (this.patientForm.patient_type === "慢性肾衰竭") {
787
       if (this.patientForm.patient_type === "慢性肾衰竭") {
788
-        this.patientForm.patient_type = 2;
788
+        this.patientForm.patient_type = 22;
789
       }
789
       }
790
       if (this.patientForm.patient_type === "糖尿病肾病") {
790
       if (this.patientForm.patient_type === "糖尿病肾病") {
791
-        this.patientForm.patient_type = 3;
791
+        this.patientForm.patient_type = 23;
792
       }
792
       }
793
 
793
 
794
       if (this.patientForm.patient_type === "高血压肾病") {
794
       if (this.patientForm.patient_type === "高血压肾病") {
795
-        this.patientForm.patient_type = 4;
795
+        this.patientForm.patient_type = 24;
796
       }
796
       }
797
 
797
 
798
-      if (this.patientForm.patient_type === "肾病综合") {
799
-        this.patientForm.patient_type = 5;
798
+      if (this.patientForm.patient_type === "肾病综合") {
799
+        this.patientForm.patient_type = 25;
800
       }
800
       }
801
 
801
 
802
       if (this.patientForm.patient_type === "IGA肾病") {
802
       if (this.patientForm.patient_type === "IGA肾病") {
803
-        this.patientForm.patient_type = 6;
803
+        this.patientForm.patient_type = 26;
804
       }
804
       }
805
 
805
 
806
       if (this.patientForm.patient_type === "慢性肾炎") {
806
       if (this.patientForm.patient_type === "慢性肾炎") {
807
-        this.patientForm.patient_type = 7;
807
+        this.patientForm.patient_type = 27;
808
       }
808
       }
809
 
809
 
810
       if (this.patientForm.patient_type === "紫癜性肾炎") {
810
       if (this.patientForm.patient_type === "紫癜性肾炎") {
811
-        this.patientForm.patient_type = 8;
811
+        this.patientForm.patient_type = 28;
812
       }
812
       }
813
 
813
 
814
       if (this.patientForm.patient_type === "狼疮性肾炎") {
814
       if (this.patientForm.patient_type === "狼疮性肾炎") {
815
-        this.patientForm.patient_type = 9;
815
+        this.patientForm.patient_type = 29;
816
       }
816
       }
817
       if (this.patientForm.patient_type === "小儿肾病") {
817
       if (this.patientForm.patient_type === "小儿肾病") {
818
-        this.patientForm.patient_type = 10;
818
+        this.patientForm.patient_type = 30;
819
       }
819
       }
820
       if (this.patientForm.patient_type === "肾结石") {
820
       if (this.patientForm.patient_type === "肾结石") {
821
-        this.patientForm.patient_type = 11;
821
+        this.patientForm.patient_type = 31;
822
       }
822
       }
823
       if (this.patientForm.patient_type === "其他") {
823
       if (this.patientForm.patient_type === "其他") {
824
-        this.patientForm.patient_type = 12;
824
+        this.patientForm.patient_type = 32;
825
       }
825
       }
826
 
826
 
827
       if (this.patientForm.treatmentMethod === "西医治疗") {
827
       if (this.patientForm.treatmentMethod === "西医治疗") {
950
             if (this.patientForm.lapseto === 2) {
950
             if (this.patientForm.lapseto === 2) {
951
               this.patientForm.lapseto = "转出";
951
               this.patientForm.lapseto = "转出";
952
             }
952
             }
953
+
954
+            if (this.patientForm.patient_type == 21) {
955
+              this.patientForm.patient_type = "尿毒症";
956
+            }
957
+
958
+            if (this.patientForm.patient_type == 22) {
959
+              this.patientForm.patient_type = "慢性肾衰竭";
960
+            }
961
+            if (this.patientForm.patient_type == 23) {
962
+              this.patientForm.patient_type = "糖尿病肾病";
963
+            }
964
+            if (this.patientForm.patient_type == 24) {
965
+              this.patientForm.patient_type = "高血压肾病";
966
+            }
967
+            if (this.patientForm.patient_type == 25) {
968
+              this.patientForm.patient_type = "肾病综合征";
969
+            }
970
+            if (this.patientForm.patient_type == 26) {
971
+              this.patientForm.patient_type = "IGA肾病";
972
+            }
973
+            if (this.patientForm.patient_type == 27) {
974
+              this.patientForm.patient_type = "慢性肾炎";
975
+            }
976
+            if (this.patientForm.patient_type == 28) {
977
+              this.patientForm.patient_type = "紫癜性肾炎";
978
+            }
979
+            if (this.patientForm.patient_type == 29) {
980
+              this.patientForm.patient_type = "狼疮性肾炎";
981
+            }
982
+            if (this.patientForm.patient_type == 30) {
983
+              this.patientForm.patient_type = "小儿肾病";
984
+            }
985
+            if (this.patientForm.patient_type == 31) {
986
+              this.patientForm.patient_type = "肾结石";
987
+            }
988
+            if (this.patientForm.patient_type == 32) {
989
+              this.patientForm.patient_type = "其他";
990
+            }
991
+
992
+            if (this.patientForm.treatmentMethod == 1) {
993
+              this.patientForm.treatmentMethod = "西医治疗";
994
+            }
995
+            if (this.patientForm.treatmentMethod == 2) {
996
+              this.patientForm.treatmentMethod = "中医治疗";
997
+            }
998
+            if (this.patientForm.treatmentMethod == 3) {
999
+              this.patientForm.treatmentMethod = "血液透析";
1000
+            }
1001
+            if (this.patientForm.treatmentMethod == 4) {
1002
+              this.patientForm.treatmentMethod = "腹膜透析";
1003
+            }
1004
+            if (this.patientForm.treatmentMethod == 5) {
1005
+              this.patientForm.treatmentMethod = "肾移植";
1006
+            }
1007
+
953
             return false;
1008
             return false;
954
           }
1009
           }
955
           if (msg === "手机号码已存在") {
1010
           if (msg === "手机号码已存在") {
972
             if (this.patientForm.lapseto === 2) {
1027
             if (this.patientForm.lapseto === 2) {
973
               this.patientForm.lapseto = "转出";
1028
               this.patientForm.lapseto = "转出";
974
             }
1029
             }
1030
+            if (this.patientForm.patient_type == 21) {
1031
+              this.patientForm.patient_type = "尿毒症";
1032
+            }
1033
+
1034
+            if (this.patientForm.patient_type == 22) {
1035
+              this.patientForm.patient_type = "慢性肾衰竭";
1036
+            }
1037
+            if (this.patientForm.patient_type == 23) {
1038
+              this.patientForm.patient_type = "糖尿病肾病";
1039
+            }
1040
+            if (this.patientForm.patient_type == 24) {
1041
+              this.patientForm.patient_type = "高血压肾病";
1042
+            }
1043
+            if (this.patientForm.patient_type == 25) {
1044
+              this.patientForm.patient_type = "肾病综合征";
1045
+            }
1046
+            if (this.patientForm.patient_type == 26) {
1047
+              this.patientForm.patient_type = "IGA肾病";
1048
+            }
1049
+            if (this.patientForm.patient_type == 27) {
1050
+              this.patientForm.patient_type = "慢性肾炎";
1051
+            }
1052
+            if (this.patientForm.patient_type == 28) {
1053
+              this.patientForm.patient_type = "紫癜性肾炎";
1054
+            }
1055
+            if (this.patientForm.patient_type == 29) {
1056
+              this.patientForm.patient_type = "狼疮性肾炎";
1057
+            }
1058
+            if (this.patientForm.patient_type == 30) {
1059
+              this.patientForm.patient_type = "小儿肾病";
1060
+            }
1061
+            if (this.patientForm.patient_type == 31) {
1062
+              this.patientForm.patient_type = "肾结石";
1063
+            }
1064
+            if (this.patientForm.patient_type == 32) {
1065
+              this.patientForm.patient_type = "其他";
1066
+            }
1067
+
1068
+            if (this.patientForm.treatmentMethod == 1) {
1069
+              this.patientForm.treatmentMethod = "西医治疗";
1070
+            }
1071
+            if (this.patientForm.treatmentMethod == 2) {
1072
+              this.patientForm.treatmentMethod = "中医治疗";
1073
+            }
1074
+            if (this.patientForm.treatmentMethod == 3) {
1075
+              this.patientForm.treatmentMethod = "血液透析";
1076
+            }
1077
+            if (this.patientForm.treatmentMethod == 4) {
1078
+              this.patientForm.treatmentMethod = "腹膜透析";
1079
+            }
1080
+            if (this.patientForm.treatmentMethod == 5) {
1081
+              this.patientForm.treatmentMethod = "肾移植";
1082
+            }
1083
+
975
             return false;
1084
             return false;
976
           }
1085
           }
977
           if (msg === "透析号已存在") {
1086
           if (msg === "透析号已存在") {
994
             if (this.patientForm.lapseto === 2) {
1103
             if (this.patientForm.lapseto === 2) {
995
               this.patientForm.lapseto = "转出";
1104
               this.patientForm.lapseto = "转出";
996
             }
1105
             }
1106
+            if (this.patientForm.patient_type == 1) {
1107
+              this.patientForm.patient_type = "尿毒症";
1108
+            }
1109
+
1110
+            if (this.patientForm.patient_type == 2) {
1111
+              this.patientForm.patient_type = "慢性肾衰竭";
1112
+            }
1113
+            if (this.patientForm.patient_type == 3) {
1114
+              this.patientForm.patient_type = "糖尿病肾病";
1115
+            }
1116
+            if (this.patientForm.patient_type == 4) {
1117
+              this.patientForm.patient_type = "高血压肾病";
1118
+            }
1119
+            if (this.patientForm.patient_type == 5) {
1120
+              this.patientForm.patient_type = "肾病综合征";
1121
+            }
1122
+            if (this.patientForm.patient_type == 6) {
1123
+              this.patientForm.patient_type = "IGA肾病";
1124
+            }
1125
+            if (this.patientForm.patient_type == 7) {
1126
+              this.patientForm.patient_type = "慢性肾炎";
1127
+            }
1128
+            if (this.patientForm.patient_type == 8) {
1129
+              this.patientForm.patient_type = "紫癜性肾炎";
1130
+            }
1131
+            if (this.patientForm.patient_type == 9) {
1132
+              this.patientForm.patient_type = "狼疮性肾炎";
1133
+            }
1134
+            if (this.patientForm.patient_type == 10) {
1135
+              this.patientForm.patient_type = "小儿肾病";
1136
+            }
1137
+            if (this.patientForm.patient_type == 11) {
1138
+              this.patientForm.patient_type = "肾结石";
1139
+            }
1140
+            if (this.patientForm.patient_type == 12) {
1141
+              this.patientForm.patient_type = "其他";
1142
+            }
1143
+
1144
+            if (this.patientForm.treatmentMethod == 1) {
1145
+              this.patientForm.treatmentMethod = "西医治疗";
1146
+            }
1147
+            if (this.patientForm.treatmentMethod == 2) {
1148
+              this.patientForm.treatmentMethod = "中医治疗";
1149
+            }
1150
+            if (this.patientForm.treatmentMethod == 3) {
1151
+              this.patientForm.treatmentMethod = "血液透析";
1152
+            }
1153
+            if (this.patientForm.treatmentMethod == 4) {
1154
+              this.patientForm.treatmentMethod = "腹膜透析";
1155
+            }
1156
+            if (this.patientForm.treatmentMethod == 5) {
1157
+              this.patientForm.treatmentMethod = "肾移植";
1158
+            }
1159
+
997
             return false;
1160
             return false;
998
           }
1161
           }
999
           var patient = response.data.data.patient;
1162
           var patient = response.data.data.patient;

+ 22 - 13
src/pages/patients/editPatient.vue Voir le fichier

268
             :columns="patientType"
268
             :columns="patientType"
269
             show-toolbar
269
             show-toolbar
270
             @change="onChangeSix"
270
             @change="onChangeSix"
271
+            @cancel="cancelSeven"
271
           />
272
           />
272
         </van-popup>
273
         </van-popup>
273
         <van-field
274
         <van-field
287
             :columns="treatmentMethod"
288
             :columns="treatmentMethod"
288
             show-toolbar
289
             show-toolbar
289
             @change="onChangeSeven"
290
             @change="onChangeSeven"
291
+            @cancel="cancelEight"
290
           />
292
           />
291
         </van-popup>
293
         </van-popup>
292
       </div>
294
       </div>
465
       this.patientForm.memberFistDate = `${year}-${month}-${day}`;
467
       this.patientForm.memberFistDate = `${year}-${month}-${day}`;
466
       this.show12 = false;
468
       this.show12 = false;
467
     },
469
     },
470
+    cancelSeven() {
471
+      this.show14 = false;
472
+    },
473
+    cancelEight() {
474
+      this.show13 = false;
475
+    },
468
     toReturn() {
476
     toReturn() {
469
       this.$router.push("/patientdetail?patientid=" + this.patient_id);
477
       this.$router.push("/patientdetail?patientid=" + this.patient_id);
470
     },
478
     },
741
       GetIllnessList().then(response => {
749
       GetIllnessList().then(response => {
742
         if (response.data.state === 1) {
750
         if (response.data.state === 1) {
743
           var illnesslist = response.data.data.illnesslist;
751
           var illnesslist = response.data.data.illnesslist;
752
+          console.log("illnesslist", illnesslist);
744
           this.illnesslist = illnesslist;
753
           this.illnesslist = illnesslist;
745
           var arr = [];
754
           var arr = [];
746
           for (let i = 0; i < illnesslist.length; i++) {
755
           for (let i = 0; i < illnesslist.length; i++) {
910
       }
919
       }
911
 
920
 
912
       if (this.patientForm.patient_type === "尿毒症") {
921
       if (this.patientForm.patient_type === "尿毒症") {
913
-        this.patientForm.patient_type = 1;
922
+        this.patientForm.patient_type = 21;
914
       }
923
       }
915
       if (this.patientForm.patient_type === "慢性肾衰竭") {
924
       if (this.patientForm.patient_type === "慢性肾衰竭") {
916
-        this.patientForm.patient_type = 2;
925
+        this.patientForm.patient_type = 22;
917
       }
926
       }
918
       if (this.patientForm.patient_type === "糖尿病肾病") {
927
       if (this.patientForm.patient_type === "糖尿病肾病") {
919
-        this.patientForm.patient_type = 3;
928
+        this.patientForm.patient_type = 23;
920
       }
929
       }
921
 
930
 
922
       if (this.patientForm.patient_type === "高血压肾病") {
931
       if (this.patientForm.patient_type === "高血压肾病") {
923
-        this.patientForm.patient_type = 4;
932
+        this.patientForm.patient_type = 24;
924
       }
933
       }
925
 
934
 
926
-      if (this.patientForm.patient_type === "肾病综合") {
927
-        this.patientForm.patient_type = 5;
935
+      if (this.patientForm.patient_type === "肾病综合") {
936
+        this.patientForm.patient_type = 25;
928
       }
937
       }
929
 
938
 
930
       if (this.patientForm.patient_type === "IGA肾病") {
939
       if (this.patientForm.patient_type === "IGA肾病") {
931
-        this.patientForm.patient_type = 6;
940
+        this.patientForm.patient_type = 26;
932
       }
941
       }
933
 
942
 
934
       if (this.patientForm.patient_type === "慢性肾炎") {
943
       if (this.patientForm.patient_type === "慢性肾炎") {
935
-        this.patientForm.patient_type = 7;
944
+        this.patientForm.patient_type = 27;
936
       }
945
       }
937
 
946
 
938
       if (this.patientForm.patient_type === "紫癜性肾炎") {
947
       if (this.patientForm.patient_type === "紫癜性肾炎") {
939
-        this.patientForm.patient_type = 8;
948
+        this.patientForm.patient_type = 28;
940
       }
949
       }
941
 
950
 
942
       if (this.patientForm.patient_type === "狼疮性肾炎") {
951
       if (this.patientForm.patient_type === "狼疮性肾炎") {
943
-        this.patientForm.patient_type = 9;
952
+        this.patientForm.patient_type = 29;
944
       }
953
       }
945
       if (this.patientForm.patient_type === "小儿肾病") {
954
       if (this.patientForm.patient_type === "小儿肾病") {
946
-        this.patientForm.patient_type = 10;
955
+        this.patientForm.patient_type = 30;
947
       }
956
       }
948
       if (this.patientForm.patient_type === "肾结石") {
957
       if (this.patientForm.patient_type === "肾结石") {
949
-        this.patientForm.patient_type = 11;
958
+        this.patientForm.patient_type = 31;
950
       }
959
       }
951
       if (this.patientForm.patient_type === "其他") {
960
       if (this.patientForm.patient_type === "其他") {
952
-        this.patientForm.patient_type = 12;
961
+        this.patientForm.patient_type = 32;
953
       }
962
       }
954
 
963
 
955
       if (this.patientForm.treatmentMethod === "西医治疗") {
964
       if (this.patientForm.treatmentMethod === "西医治疗") {

+ 212 - 214
src/router/index.js Voir le fichier

1
-import Vue from "vue";
2
-import Router from "vue-router";
1
+import Vue from 'vue'
2
+import Router from 'vue-router'
3
 
3
 
4
-Vue.use(Router);
4
+Vue.use(Router)
5
 
5
 
6
 export default new Router({
6
 export default new Router({
7
-  routes: [
8
-    {
9
-      path: "/",
10
-      name: "Home",
11
-      component: () => import("@/pages/home/verifyToken")
7
+  routes: [{
8
+      path: '/',
9
+      name: 'Home',
10
+      component: () => import('@/pages/home/verifyToken')
12
     },
11
     },
13
     {
12
     {
14
-      path: "/login",
15
-      name: "Home",
16
-      component: () => import("@/pages/home/login")
13
+      path: '/login',
14
+      name: 'Home',
15
+      component: () => import('@/pages/home/login')
17
     },
16
     },
18
     {
17
     {
19
-      path: "/nopassword",
20
-      name: "Home",
21
-      component: () => import("@/pages/home/noPassword")
18
+      path: '/nopassword',
19
+      name: 'Home',
20
+      component: () => import('@/pages/home/noPassword')
22
     },
21
     },
23
     {
22
     {
24
-      path: "/setname",
25
-      name: "Home",
26
-      component: () => import("@/pages/home/register/name")
23
+      path: '/setname',
24
+      name: 'Home',
25
+      component: () => import('@/pages/home/register/name')
27
     },
26
     },
28
     {
27
     {
29
-      path: "/register",
30
-      name: "Home",
31
-      component: () => import("@/pages/home/register/register")
28
+      path: '/register',
29
+      name: 'Home',
30
+      component: () => import('@/pages/home/register/register')
32
     },
31
     },
33
     {
32
     {
34
-      path: "/join",
35
-      name: "Home",
36
-      component: () => import("@/pages/home/noJoinedGroup")
33
+      path: '/join',
34
+      name: 'Home',
35
+      component: () => import('@/pages/home/noJoinedGroup')
37
     },
36
     },
38
     {
37
     {
39
-      path: "/forget",
40
-      name: "Home",
41
-      component: () => import("@/pages/home/forgetPassword")
38
+      path: '/forget',
39
+      name: 'Home',
40
+      component: () => import('@/pages/home/forgetPassword')
42
     },
41
     },
43
     {
42
     {
44
-      path: "/createorg",
45
-      name: "Home",
46
-      component: () => import("@/pages/home/createOrg")
43
+      path: '/createorg',
44
+      name: 'Home',
45
+      component: () => import('@/pages/home/createOrg')
47
     },
46
     },
48
     // 首页
47
     // 首页
49
     {
48
     {
50
-      path: "/myIndex",
51
-      name: "myIndex",
52
-      component: () => import("@/pages/home/index"),
53
-      children: [
54
-        {
55
-          path: "/homeIndex",
56
-          component: () => import("@/pages/homeIndex/index.vue"),
49
+      path: '/myIndex',
50
+      name: 'myIndex',
51
+      component: () => import('@/pages/home/index'),
52
+      children: [{
53
+          path: '/homeIndex',
54
+          component: () => import('@/pages/homeIndex/index.vue'),
57
           meta: {
55
           meta: {
58
             noCache: true // 不会被 <keep-alive> 缓存
56
             noCache: true // 不会被 <keep-alive> 缓存
59
           }
57
           }
60
         },
58
         },
61
         // 我的
59
         // 我的
62
         {
60
         {
63
-          path: "/newMy",
64
-          name: "newMy",
65
-          component: () => import("@/pages/my/index")
61
+          path: '/newMy',
62
+          name: 'newMy',
63
+          component: () => import('@/pages/my/index')
66
         },
64
         },
67
         // 商城
65
         // 商城
68
         {
66
         {
69
-          path: "/shop",
70
-          name: "shop",
71
-          component: () => import("@/pages/shop/index")
67
+          path: '/shop',
68
+          name: 'shop',
69
+          component: () => import('@/pages/shop/index')
72
         }
70
         }
73
       ]
71
       ]
74
     },
72
     },
75
 
73
 
76
     {
74
     {
77
-      path: "/perfectOrg",
78
-      component: () => import("@/pages/org"),
75
+      path: '/perfectOrg',
76
+      component: () => import('@/pages/org'),
79
       meta: {
77
       meta: {
80
         noCache: true // 不会被 <keep-alive> 缓存
78
         noCache: true // 不会被 <keep-alive> 缓存
81
       }
79
       }
82
     },
80
     },
83
     {
81
     {
84
-      path: "/manageconsole",
85
-      name: "console",
86
-      component: () => import("@/pages/console/managementConsole")
82
+      path: '/manageconsole',
83
+      name: 'console',
84
+      component: () => import('@/pages/console/managementConsole')
87
     },
85
     },
88
     {
86
     {
89
-      path: "/manageconsole/staff",
90
-      name: "staff",
87
+      path: '/manageconsole/staff',
88
+      name: 'staff',
91
       component: () =>
89
       component: () =>
92
-        import("@/pages/console/managementConsole/staff_role/staffManagement")
90
+        import('@/pages/console/managementConsole/staff_role/staffManagement')
93
     },
91
     },
94
     {
92
     {
95
-      path: "/staff/editstaff",
96
-      name: "editstaff",
93
+      path: '/staff/editstaff',
94
+      name: 'editstaff',
97
       component: () =>
95
       component: () =>
98
-        import("@/pages/console/managementConsole/staff_role/editStaff")
96
+        import('@/pages/console/managementConsole/staff_role/editStaff')
99
     },
97
     },
100
     {
98
     {
101
-      path: "/staff/addstaff",
102
-      name: "addstaff",
99
+      path: '/staff/addstaff',
100
+      name: 'addstaff',
103
       component: () =>
101
       component: () =>
104
-        import("@/pages/console/managementConsole/staff_role/addStaff")
102
+        import('@/pages/console/managementConsole/staff_role/addStaff')
105
     },
103
     },
106
 
104
 
107
     {
105
     {
108
-      path: "/manageconsole/role",
109
-      name: "role",
106
+      path: '/manageconsole/role',
107
+      name: 'role',
110
       component: () =>
108
       component: () =>
111
         import(
109
         import(
112
-          "@/pages/console/managementConsole/staff_role/privilegeManagement"
110
+          '@/pages/console/managementConsole/staff_role/privilegeManagement'
113
         )
111
         )
114
     },
112
     },
115
 
113
 
116
     {
114
     {
117
-      path: "/role/user",
118
-      name: "user",
115
+      path: '/role/user',
116
+      name: 'user',
119
       component: () =>
117
       component: () =>
120
-        import("@/pages/console/managementConsole/staff_role/newUser")
118
+        import('@/pages/console/managementConsole/staff_role/newUser')
121
     },
119
     },
122
 
120
 
123
     {
121
     {
124
-      path: "/role/addnewuser",
125
-      name: "user",
122
+      path: '/role/addnewuser',
123
+      name: 'user',
126
       component: () =>
124
       component: () =>
127
-        import("@/pages/console/managementConsole/staff_role/newAddStaff")
125
+        import('@/pages/console/managementConsole/staff_role/newAddStaff')
128
     },
126
     },
129
     {
127
     {
130
-      path: "/role/stafflist",
131
-      name: "user",
128
+      path: '/role/stafflist',
129
+      name: 'user',
132
       component: () =>
130
       component: () =>
133
-        import("@/pages/console/managementConsole/staff_role/employeeList")
131
+        import('@/pages/console/managementConsole/staff_role/employeeList')
134
     },
132
     },
135
     {
133
     {
136
-      path: "/role/usermanage",
137
-      name: "user",
134
+      path: '/role/usermanage',
135
+      name: 'user',
138
       component: () =>
136
       component: () =>
139
-        import("@/pages/console/managementConsole/staff_role/userManage")
137
+        import('@/pages/console/managementConsole/staff_role/userManage')
140
     },
138
     },
141
     {
139
     {
142
-      path: "/role/addrole",
143
-      name: "add_role",
140
+      path: '/role/addrole',
141
+      name: 'add_role',
144
       component: () =>
142
       component: () =>
145
-        import("@/pages/console/managementConsole/staff_role/newAddRole")
143
+        import('@/pages/console/managementConsole/staff_role/newAddRole')
146
     },
144
     },
147
 
145
 
148
     //
146
     //
154
     // },
152
     // },
155
 
153
 
156
     {
154
     {
157
-      path: "/role/editrole",
158
-      name: "editrole",
155
+      path: '/role/editrole',
156
+      name: 'editrole',
159
       component: () =>
157
       component: () =>
160
-        import("@/pages/console/managementConsole/staff_role/editRole")
158
+        import('@/pages/console/managementConsole/staff_role/editRole')
161
     },
159
     },
162
     {
160
     {
163
-      path: "/role/subpurview",
164
-      name: "purview",
161
+      path: '/role/subpurview',
162
+      name: 'purview',
165
       component: () =>
163
       component: () =>
166
-        import("@/pages/console/managementConsole/staff_role/subPurview")
164
+        import('@/pages/console/managementConsole/staff_role/subPurview')
167
     },
165
     },
168
     {
166
     {
169
-      path: "/role/otherpurview",
170
-      name: "purview",
167
+      path: '/role/otherpurview',
168
+      name: 'purview',
171
       component: () =>
169
       component: () =>
172
-        import("@/pages/console/managementConsole/staff_role/otherPurview")
170
+        import('@/pages/console/managementConsole/staff_role/otherPurview')
173
     },
171
     },
174
     {
172
     {
175
-      path: "/role/functionpurview",
176
-      name: "purview",
173
+      path: '/role/functionpurview',
174
+      name: 'purview',
177
       component: () =>
175
       component: () =>
178
-        import("@/pages/console/managementConsole/staff_role/functionPurview")
176
+        import('@/pages/console/managementConsole/staff_role/functionPurview')
179
     },
177
     },
180
     // 患者中心
178
     // 患者中心
181
     {
179
     {
182
-      path: "/patients",
183
-      name: "patients",
184
-      component: () => import("@/pages/patientManagement/patientManagement")
180
+      path: '/patients',
181
+      name: 'patients',
182
+      component: () => import('@/pages/patientManagement/patientManagement')
185
     },
183
     },
186
     // 新增病人
184
     // 新增病人
187
     {
185
     {
188
-      path: "/addPatints",
189
-      name: "addpatients",
190
-      component: () => import("@/pages/patients/addPatient")
186
+      path: '/addPatints',
187
+      name: 'addpatients',
188
+      component: () => import('@/pages/patients/addPatient')
191
     },
189
     },
192
     // 全部病程
190
     // 全部病程
193
     {
191
     {
194
-      path: "/coursedetail",
195
-      name: "coursedetail",
196
-      component: () => import("@/pages/allCourseManagement/index")
192
+      path: '/coursedetail',
193
+      name: 'coursedetail',
194
+      component: () => import('@/pages/allCourseManagement/index')
197
     },
195
     },
198
     // 全部干体重
196
     // 全部干体重
199
     {
197
     {
200
-      path: "/dryweight",
201
-      name: "dryweight",
202
-      component: () => import("@/pages/allDryWeight/index")
198
+      path: '/dryweight',
199
+      name: 'dryweight',
200
+      component: () => import('@/pages/allDryWeight/index')
203
     },
201
     },
204
     // 基本信息
202
     // 基本信息
205
     {
203
     {
206
-      path: "/editPatient",
207
-      name: "editPatient",
208
-      component: () => import("@/pages/patients/editPatient")
204
+      path: '/editPatient',
205
+      name: 'editPatient',
206
+      component: () => import('@/pages/patients/editPatient')
209
     },
207
     },
210
     // 全部排班
208
     // 全部排班
211
     {
209
     {
212
-      path: "/editScheduling",
213
-      name: "editscheduling",
214
-      component: () => import("@/pages/allScheduling/index")
210
+      path: '/editScheduling',
211
+      name: 'editscheduling',
212
+      component: () => import('@/pages/allScheduling/index')
215
     },
213
     },
216
     // 全部透后宣教
214
     // 全部透后宣教
217
     {
215
     {
218
-      path: "/editEducation",
219
-      name: "editeducation",
220
-      component: () => import("@/pages/allEducation/index")
216
+      path: '/editEducation',
217
+      name: 'editeducation',
218
+      component: () => import('@/pages/allEducation/index')
221
     },
219
     },
222
     // 全部抢救记录
220
     // 全部抢救记录
223
     {
221
     {
224
-      path: "/rescuerecord",
225
-      name: "rescuerecord",
226
-      component: () => import("@/pages/allRescue/index")
222
+      path: '/rescuerecord',
223
+      name: 'rescuerecord',
224
+      component: () => import('@/pages/allRescue/index')
227
     },
225
     },
228
     //
226
     //
229
     {
227
     {
230
-      path: "/patientdetail",
231
-      name: "patientdetail",
232
-      component: () => import("@/pages/doctorAdvice/index")
228
+      path: '/patientdetail',
229
+      name: 'patientdetail',
230
+      component: () => import('@/pages/doctorAdvice/index')
233
     },
231
     },
234
     // 搜索
232
     // 搜索
235
     {
233
     {
236
-      path: "/search",
237
-      name: "search",
238
-      component: () => import("@/pages/search/index")
234
+      path: '/search',
235
+      name: 'search',
236
+      component: () => import('@/pages/search/index')
239
     },
237
     },
240
     // 我的信息
238
     // 我的信息
241
     {
239
     {
242
-      path: "/myInfo",
243
-      name: "myInfo",
244
-      component: () => import("@/pages/my/myInfo")
240
+      path: '/myInfo',
241
+      name: 'myInfo',
242
+      component: () => import('@/pages/my/myInfo')
245
     },
243
     },
246
     // 意见反馈
244
     // 意见反馈
247
     {
245
     {
248
-      path: "/feedBack",
249
-      name: "feedBack",
250
-      component: () => import("@/pages/my/feedBack")
246
+      path: '/feedBack',
247
+      name: 'feedBack',
248
+      component: () => import('@/pages/my/feedBack')
251
     },
249
     },
252
     // 关于我们
250
     // 关于我们
253
     {
251
     {
254
-      path: "/about",
255
-      name: "about",
256
-      component: () => import("@/pages/my/aboutUs")
252
+      path: '/about',
253
+      name: 'about',
254
+      component: () => import('@/pages/my/aboutUs')
257
     },
255
     },
258
     // 公司介绍
256
     // 公司介绍
259
     {
257
     {
260
-      path: "/introduce",
261
-      name: "introduce",
262
-      component: () => import("@/pages/my/companyIntroduction")
258
+      path: '/introduce',
259
+      name: 'introduce',
260
+      component: () => import('@/pages/my/companyIntroduction')
263
     },
261
     },
264
     // 更改名字
262
     // 更改名字
265
     {
263
     {
266
-      path: "/editname",
267
-      name: "editname",
268
-      component: () => import("@/pages/my/modifyingName")
264
+      path: '/editname',
265
+      name: 'editname',
266
+      component: () => import('@/pages/my/modifyingName')
269
     },
267
     },
270
     // 更改名字
268
     // 更改名字
271
     {
269
     {
272
-      path: "/personalsign",
273
-      name: "personalsign",
274
-      component: () => import("@/pages/my/personalSign")
270
+      path: '/personalsign',
271
+      name: 'personalsign',
272
+      component: () => import('@/pages/my/personalSign')
275
     },
273
     },
276
     // 邀请好友
274
     // 邀请好友
277
     {
275
     {
278
-      path: "/invite",
279
-      name: "invite",
280
-      component: () => import("@/pages/my/invite")
276
+      path: '/invite',
277
+      name: 'invite',
278
+      component: () => import('@/pages/my/invite')
281
     },
279
     },
282
 
280
 
283
     // 全部长期透析记录
281
     // 全部长期透析记录
284
 
282
 
285
     {
283
     {
286
-      path: "/alllongdialysis",
287
-      name: "longdialysis",
288
-      component: () => import("@/pages/allLongDialysis/index")
284
+      path: '/alllongdialysis',
285
+      name: 'longdialysis',
286
+      component: () => import('@/pages/allLongDialysis/index')
289
     },
287
     },
290
-    //, 
288
+    //,
291
     {
289
     {
292
-      path: "/alldoctoradvice",
293
-      name: "/alldoctoradvice",
294
-      component: () => import("@/pages/allDoctorAdvice/index")
290
+      path: '/alldoctoradvice',
291
+      name: '/alldoctoradvice',
292
+      component: () => import('@/pages/allDoctorAdvice/indexs')
295
     },
293
     },
296
     // 配置中心
294
     // 配置中心
297
     {
295
     {
298
-      path: "/configurecenter",
299
-      name: "configurecenter",
300
-      component: () => import("@/pages/configureCenter/index")
296
+      path: '/configurecenter',
297
+      name: 'configurecenter',
298
+      component: () => import('@/pages/configureCenter/index')
301
     },
299
     },
302
     // 新增分区
300
     // 新增分区
303
     {
301
     {
304
-      path: "/addpartition",
305
-      name: "/addpartition",
306
-      component: () => import("@/pages/configureCenter/newPartition")
302
+      path: '/addpartition',
303
+      name: '/addpartition',
304
+      component: () => import('@/pages/configureCenter/newPartition')
307
     },
305
     },
308
     // 编辑分区
306
     // 编辑分区
309
     {
307
     {
320
     },
318
     },
321
     // 新增分组
319
     // 新增分组
322
     {
320
     {
323
-      path: "/addgroup",
324
-      name: "/addgroup",
325
-      component: () => import("@/pages/configureCenter/newGrouping")
321
+      path: '/addgroup',
322
+      name: '/addgroup',
323
+      component: () => import('@/pages/configureCenter/newGrouping')
326
     },
324
     },
327
     // 新增床位号
325
     // 新增床位号
328
     {
326
     {
329
-      path: "/addbed",
330
-      name: "/addbed",
331
-      component: () => import("@/pages/configureCenter/newBed")
327
+      path: '/addbed',
328
+      name: '/addbed',
329
+      component: () => import('@/pages/configureCenter/newBed')
332
     },
330
     },
333
     // 编辑床位号
331
     // 编辑床位号
334
     {
332
     {
345
     },
343
     },
346
     // 我的页面管理
344
     // 我的页面管理
347
     {
345
     {
348
-      path: "/editorg",
349
-      name: "/editorg",
350
-      component: () => import("@/pages/patientCenter/editOrg/index")
346
+      path: '/editorg',
347
+      name: '/editorg',
348
+      component: () => import('@/pages/patientCenter/editOrg/index')
351
     },
349
     },
352
     {
350
     {
353
-      path: "/organizationinfo",
354
-      name: "/organizationinfo",
355
-      component: () => import("@/pages/my/organizationInfo")
351
+      path: '/organizationinfo',
352
+      name: '/organizationinfo',
353
+      component: () => import('@/pages/my/organizationInfo')
356
     },
354
     },
357
     {
355
     {
358
-      path: "/main",
359
-      name: "main",
360
-      component: () => import("@/pages/main/index"),
356
+      path: '/main',
357
+      name: 'main',
358
+      component: () => import('@/pages/main/index'),
361
       meta: {
359
       meta: {
362
         noCache: true // 不会被 <keep-alive> 缓存
360
         noCache: true // 不会被 <keep-alive> 缓存
363
       }
361
       }
364
     },
362
     },
365
     {
363
     {
366
-      path: "/product",
367
-      name: "Product",
368
-      component: () => import("@/pages/product/index")
364
+      path: '/product',
365
+      name: 'Product',
366
+      component: () => import('@/pages/product/index')
369
     },
367
     },
370
     {
368
     {
371
-      path: "/monitoring",
372
-      name: "monitorPage",
373
-      component: () => import("@/pages/monitoring/index")
369
+      path: '/monitoring',
370
+      name: 'monitorPage',
371
+      component: () => import('@/pages/monitoring/index')
374
     },
372
     },
375
     {
373
     {
376
-      path: "/details",
377
-      name: "details",
378
-      component: () => import("@/pages/main/DetailsPage")
374
+      path: '/details',
375
+      name: 'details',
376
+      component: () => import('@/pages/main/DetailsPage')
379
     },
377
     },
380
     {
378
     {
381
-      path: "/monitoring",
382
-      name: "monitorPage",
383
-      component: () => import("@/pages/monitoring/index")
379
+      path: '/monitoring',
380
+      name: 'monitorPage',
381
+      component: () => import('@/pages/monitoring/index')
384
     },
382
     },
385
     {
383
     {
386
-      path: "/my",
387
-      name: "my",
388
-      component: () => import("@/pages/personal/index")
384
+      path: '/my',
385
+      name: 'my',
386
+      component: () => import('@/pages/personal/index')
389
     },
387
     },
390
     {
388
     {
391
-      path: "/advice",
392
-      name: "doctorAdvice",
393
-      component: () => import("@/pages/advice/index")
389
+      path: '/advice',
390
+      name: 'doctorAdvice',
391
+      component: () => import('@/pages/advice/index')
394
     },
392
     },
395
     {
393
     {
396
-      path: "/EditPersonal",
397
-      name: "EditPersonal",
398
-      component: () => import("@/pages/personal/EditPersonal")
394
+      path: '/EditPersonal',
395
+      name: 'EditPersonal',
396
+      component: () => import('@/pages/personal/EditPersonal')
399
     },
397
     },
400
     {
398
     {
401
-      path: "/ElectronicSignature",
402
-      name: "ElectronicSignature",
403
-      component: () => import("@/pages/personal/ElectronicSignature")
399
+      path: '/ElectronicSignature',
400
+      name: 'ElectronicSignature',
401
+      component: () => import('@/pages/personal/ElectronicSignature')
404
     },
402
     },
405
     {
403
     {
406
-      path: "/Print",
407
-      name: "Print",
408
-      component: () => import("@/pages/main/PrintIndex")
404
+      path: '/Print',
405
+      name: 'Print',
406
+      component: () => import('@/pages/main/PrintIndex')
409
     },
407
     },
410
     {
408
     {
411
-      path: "/add_urgent_schedule",
412
-      name: "AddUrgentSchedule",
413
-      component: () => import("@/pages/main/add_urgent_schedule")
409
+      path: '/add_urgent_schedule',
410
+      name: 'AddUrgentSchedule',
411
+      component: () => import('@/pages/main/add_urgent_schedule')
414
     },
412
     },
415
     {
413
     {
416
-      path: "/Prints",
417
-      name: "Prints",
418
-      component: () => import("@/pages/main/Print")
414
+      path: '/Prints',
415
+      name: 'Prints',
416
+      component: () => import('@/pages/main/Print')
419
     },
417
     },
420
     {
418
     {
421
-      path: "/forgetPassword",
422
-      name: "forgetPassword",
423
-      component: () => import("@/pages/personal/ForgetPassword")
419
+      path: '/forgetPassword',
420
+      name: 'forgetPassword',
421
+      component: () => import('@/pages/personal/ForgetPassword')
424
     },
422
     },
425
     {
423
     {
426
-      path: "/changePassword",
427
-      name: "changePassword",
428
-      component: () => import("@/pages/personal/ChangePassword")
424
+      path: '/changePassword',
425
+      name: 'changePassword',
426
+      component: () => import('@/pages/personal/ChangePassword')
429
     },
427
     },
430
     {
428
     {
431
-      path: "/privacy",
432
-      name: "privacy",
433
-      component: () => import("@/pages/privacy/index")
429
+      path: '/privacy',
430
+      name: 'privacy',
431
+      component: () => import('@/pages/privacy/index')
434
     },
432
     },
435
     {
433
     {
436
-      path: "/userAgreement",
437
-      name: "userAgreement",
438
-      component: () => import("@/pages/userAgreement/index")
434
+      path: '/userAgreement',
435
+      name: 'userAgreement',
436
+      component: () => import('@/pages/userAgreement/index')
439
     },
437
     },
440
     {
438
     {
441
-      path: "/modifypsw",
442
-      name: "modifyPassword",
443
-      component: () => import("@/pages/my/modifyPassword")
439
+      path: '/modifypsw',
440
+      name: 'modifyPassword',
441
+      component: () => import('@/pages/my/modifyPassword')
444
     }
442
     }
445
   ]
443
   ]
446
-});
444
+})