Pārlūkot izejas kodu

龙岗二院需求

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
ed7fada36d

+ 47 - 48
src/pages/main/all/scheduling.vue Parādīt failu

@@ -20,103 +20,102 @@
20 20
   </div>
21 21
 </template>
22 22
 <script>
23
-import { getSchedulingDetail } from "@/api/patient/patient";
24
-import { uParseTime } from "@/utils/tools";
25
-import { setRem, setHeight } from "@/libs/functionRem";
26
-import "../../../styles/resetStyle.scss";
23
+import { getSchedulingDetail } from '@/api/patient/patient'
24
+import { uParseTime } from '@/utils/tools'
25
+import { setRem, setHeight } from '@/libs/functionRem'
26
+import '../../../styles/resetStyle.scss'
27 27
 export default {
28
-  data() {
28
+  data () {
29 29
     return {
30
-      name: "",
30
+      name: '',
31 31
       schedulingDetail: {},
32 32
       patientid: 0,
33 33
       active: 0
34
-    };
34
+    }
35 35
   },
36 36
   methods: {
37
-    getSchedulingDetail(id) {
37
+    getSchedulingDetail (id) {
38 38
       getSchedulingDetail(id).then(response => {
39 39
         if (response.data.state === 1) {
40
-          var schedulingDetail = response.data.data.schedulingDetail;
40
+          var schedulingDetail = response.data.data.schedulingDetail
41 41
           if (schedulingDetail.mode_id == 1) {
42
-            schedulingDetail.mode_id = "HD";
42
+            schedulingDetail.mode_id = 'HD'
43 43
           }
44 44
           if (schedulingDetail.mode_id == 2) {
45
-            schedulingDetail.mode_id = "HDF";
45
+            schedulingDetail.mode_id = 'HDF'
46 46
           }
47 47
           if (schedulingDetail.mode_id == 3) {
48
-            schedulingDetail.mode_id = "HD+HP";
48
+            schedulingDetail.mode_id = 'HD+HP'
49 49
           }
50 50
           if (schedulingDetail.mode_id == 4) {
51
-            schedulingDetail.mode_id = "HP";
51
+            schedulingDetail.mode_id = 'HP'
52 52
           }
53 53
           if (schedulingDetail.mode_id == 5) {
54
-            schedulingDetail.mode_id = "HF";
54
+            schedulingDetail.mode_id = 'HF'
55 55
           }
56 56
           if (schedulingDetail.mode_id == 6) {
57
-            schedulingDetail.mode_id = "SCUF";
57
+            schedulingDetail.mode_id = 'SCUF'
58 58
           }
59 59
           if (schedulingDetail.mode_id == 7) {
60
-            schedulingDetail.mode_id = "IUF";
60
+            schedulingDetail.mode_id = 'IUF'
61 61
           }
62 62
           if (schedulingDetail.mode_id == 8) {
63
-            schedulingDetail.mode_id = "HFHD";
63
+            schedulingDetail.mode_id = 'HFHD'
64 64
           }
65 65
           if (schedulingDetail.mode_id == 9) {
66
-            schedulingDetail.mode_id = "HFHD+HP";
66
+            schedulingDetail.mode_id = 'HFHD+HP'
67 67
           }
68 68
           if (schedulingDetail.mode_id == 10) {
69
-            schedulingDetail.mode_id = "PHF";
69
+            schedulingDetail.mode_id = 'PHF'
70 70
           }
71 71
           if (schedulingDetail.mode_id == 11) {
72
-            schedulingDetail.mode_id = "HFR";
72
+            schedulingDetail.mode_id = 'HFR'
73 73
           }
74 74
           if (schedulingDetail.mode_id == 12) {
75
-            schedulingDetail.mode_id = "HDF+HP";
75
+            schedulingDetail.mode_id = 'HDF+HP'
76 76
           }
77 77
           if (schedulingDetail.mode_id == 13) {
78
-            schedulingDetail.mode_id = "CRRT";
78
+            schedulingDetail.mode_id = 'CRRT'
79 79
           }
80 80
           if (schedulingDetail.mode_id == 14) {
81
-            schedulingDetail.mode_id = "腹水回输";
81
+            schedulingDetail.mode_id = '腹水回输'
82 82
           }
83 83
           if (schedulingDetail.schedule_type == 1) {
84
-            schedulingDetail.schedule_type = "上午";
84
+            schedulingDetail.schedule_type = '上午'
85 85
           }
86 86
           if (schedulingDetail.schedule_type == 2) {
87
-            schedulingDetail.schedule_type = "中午";
87
+            schedulingDetail.schedule_type = '中午'
88 88
           }
89 89
           if (schedulingDetail.schedule_type == 3) {
90
-            schedulingDetail.schedule_type = "下午";
90
+            schedulingDetail.schedule_type = '下午'
91 91
           }
92
-          this.schedulingDetail = schedulingDetail;
93
-          console.log("排班详情", schedulingDetail);
94
-          var patient = response.data.data.patient;
95
-          this.name = patient.name;
96
-          console.log("patient", patient);
92
+          this.schedulingDetail = schedulingDetail
93
+          console.log('排班详情', schedulingDetail)
94
+          var patient = response.data.data.patient
95
+          this.name = patient.name
96
+          console.log('patient', patient)
97 97
         }
98
-      });
98
+      })
99 99
     },
100
-    getTime(time) {
100
+    getTime (time) {
101 101
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
102
-      return uParseTime(time, "{y}-{m}-{d}");
102
+      return uParseTime(time, '{y}-{m}-{d}')
103 103
     },
104
-    toReturn() {
104
+    toReturn () {
105 105
       this.$router.push(
106
-        "/details?patient_id=" + 1064 + "&date=" + 1590508800 + "&patient_name=" + "黄晓" + "&active1=" + 1 + "&active2=" + 2
107
-      );
106
+        '/details?patient_id=' + 1064 + '&date=' + 1590508800 + '&patient_name=' + '黄晓' + '&active1=' + 1 + '&active2=' + 2
107
+      )
108 108
     }
109 109
   },
110
-  created() {
111
-    this.active = parseInt(this.$route.query.active);
112
-    setRem();
113
-    setHeight();
114
-    var id = this.$route.query.id;
115
-    var patientid = this.$route.query.patientid;
116
-    this.patientid = patientid;
117
-    this.getSchedulingDetail(id);
118
-  },
119
-};
110
+  created () {
111
+    setRem()
112
+    setHeight()
113
+    var id = this.$route.query.id
114
+    var patientid = this.$route.query.patientid
115
+    this.patientid = patientid
116
+    this.getSchedulingDetail(id)
117
+  }
118
+}
120 119
 </script>
121 120
 <style lang="scss" scoped>
122 121
 .page_allScheduling {
@@ -145,7 +144,7 @@ export default {
145 144
       border: none;
146 145
     }
147 146
   }
148
-  
147
+
149 148
   .dialysisBoxOne {
150 149
     // box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
151 150
     border-bottom: 1px solid #e5e5e5;

+ 14 - 10
src/pages/main/dialysis/AdviceTable.vue Parādīt failu

@@ -1475,6 +1475,7 @@
1475 1475
 
1476 1476
 <script>
1477 1477
 import {
1478
+ getNewPatientId,
1478 1479
   getDoctorAdvices,
1479 1480
   getPatientDetail,
1480 1481
   DeleteManagement
@@ -1802,13 +1803,21 @@ export default {
1802 1803
           }
1803 1804
         });
1804 1805
       });
1806
+    },
1807
+     getNewPatientId(id){
1808
+      getNewPatientId(id).then(response=>{
1809
+         if(response.data.state == 1){
1810
+          var patient =  response.data.data.patient
1811
+          this.getDoctorAdvices(patient.id);
1812
+          this.getPatientDetail(patient.id);
1813
+          this.patient_id = patient.id;
1814
+         }
1815
+      })
1805 1816
     }
1806 1817
   },
1807 1818
   created() {
1808
-    var patientid = this.$route.query.patientid;
1809
-    this.getDoctorAdvices(patientid);
1810
-    this.getPatientDetail(patientid);
1811
-    this.patient_id = patientid;
1819
+    var patientid = this.$route.query.patient_id
1820
+    this.getNewPatientId(patientid)
1812 1821
     localStorage.setItem("docActive", this.active);
1813 1822
   },
1814 1823
   watch: {
@@ -1938,7 +1947,7 @@ export default {
1938 1947
     transform: translate3d(0, 0, 0);
1939 1948
     top: initial;
1940 1949
   }
1941
-  
1950
+
1942 1951
 }
1943 1952
 ::-webkit-scrollbar {
1944 1953
   width: 0;
@@ -1963,11 +1972,6 @@ export default {
1963 1972
 }
1964 1973
 </style>
1965 1974
 
1966
-
1967
-
1968
-
1969
-
1970
-
1971 1975
 <style style="stylesheet/scss" lang="scss" scoped>
1972 1976
 // .fixedTop {
1973 1977
 //   padding-top: 32px;

+ 106 - 98
src/pages/main/dialysis/CourseManagement.vue Parādīt failu

@@ -116,31 +116,32 @@
116 116
 
117 117
 <script>
118 118
 import {
119
+  getNewPatientId,
119 120
   getCourseManagement,
120 121
   DeleteCouseManage,
121 122
   getPatientDetail
122
-} from "@/api/patient/patient";
123
-import { uParseTime } from "@/utils/tools";
124
-import { clearStyle } from "@/libs/clearStyle";
125
-import Vue from "vue";
126
-import { Dialog } from "vant";
127
-const moment = require("moment");
123
+} from '@/api/patient/patient'
124
+import { uParseTime } from '@/utils/tools'
125
+import { clearStyle } from '@/libs/clearStyle'
126
+import Vue from 'vue'
127
+import { Dialog } from 'vant'
128
+const moment = require('moment')
128 129
 export default {
129 130
   props: {
130 131
     active: Number
131 132
   },
132
-  data() {
133
+  data () {
133 134
     return {
134 135
       newShow: false,
135 136
       startShow: false,
136 137
       endShow: false,
137
-      startTime: "请选择",
138
-      endTime: "请选择",
139
-      endTimes: "",
138
+      startTime: '请选择',
139
+      endTime: '请选择',
140
+      endTimes: '',
140 141
       minDate: new Date(1970, 0, 1),
141 142
       maxDate: new Date(2025, 10, 1),
142 143
       currentDate: new Date(),
143
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
144
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
144 145
       limit: 10,
145 146
       page: 1,
146 147
       total: 0,
@@ -155,68 +156,68 @@ export default {
155 156
       patient_index: 0,
156 157
       showOne: true,
157 158
       showTwo: false
158
-    };
159
+    }
159 160
   },
160 161
   methods: {
161
-    onCancel() {
162
-      this.typeShow = false;
162
+    onCancel () {
163
+      this.typeShow = false
163 164
     },
164
-    onConfirm(value) {
165
-      this.type = value;
166
-      this.typeShow = false;
165
+    onConfirm (value) {
166
+      this.type = value
167
+      this.typeShow = false
167 168
     },
168
-    getstartTime(value) {
169
-      this.page = 1;
170
-      let year = value.getFullYear();
171
-      let month = value.getMonth() + 1;
172
-      let day = value.getDate();
169
+    getstartTime (value) {
170
+      this.page = 1
171
+      let year = value.getFullYear()
172
+      let month = value.getMonth() + 1
173
+      let day = value.getDate()
173 174
       if (month >= 1 && month <= 9) {
174
-        month = `0${month}`;
175
+        month = `0${month}`
175 176
       }
176 177
       if (day >= 1 && day <= 9) {
177
-        day = `0${day}`;
178
+        day = `0${day}`
178 179
       }
179 180
 
180
-      this.startTime = `${year}-${month}-${day}`;
181
-      this.courseManagement = [];
181
+      this.startTime = `${year}-${month}-${day}`
182
+      this.courseManagement = []
182 183
       this.getCourseManagement(
183 184
         this.patientid,
184 185
         this.limit,
185 186
         this.page,
186 187
         this.startTime,
187 188
         this.endTime
188
-      );
189
-      this.startShow = false;
189
+      )
190
+      this.startShow = false
190 191
     },
191
-    getstartTime2(value) {
192
-      this.page = 1;
193
-      let year = value.getFullYear();
194
-      let month = value.getMonth() + 1;
195
-      let day = value.getDate();
192
+    getstartTime2 (value) {
193
+      this.page = 1
194
+      let year = value.getFullYear()
195
+      let month = value.getMonth() + 1
196
+      let day = value.getDate()
196 197
       if (month >= 1 && month <= 9) {
197
-        month = `0${month}`;
198
+        month = `0${month}`
198 199
       }
199 200
       if (day >= 1 && day <= 9) {
200
-        day = `0${day}`;
201
+        day = `0${day}`
201 202
       }
202 203
 
203
-      this.endTime = `${year}-${month}-${day}`;
204
+      this.endTime = `${year}-${month}-${day}`
204 205
 
205
-      this.courseManagement = [];
206
+      this.courseManagement = []
206 207
       this.getCourseManagement(
207 208
         this.patientid,
208 209
         this.limit,
209 210
         this.page,
210 211
         this.startTime,
211 212
         this.endTime
212
-      );
213
-      this.endShow = false;
213
+      )
214
+      this.endShow = false
214 215
     },
215
-    getTime(time) {
216
+    getTime (time) {
216 217
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
217
-      return uParseTime(time, "{y}-{m}-{d}");
218
+      return uParseTime(time, '{y}-{m}-{d}')
218 219
     },
219
-    getCourseManagement(patientid) {
220
+    getCourseManagement (patientid) {
220 221
       getCourseManagement(
221 222
         patientid,
222 223
         this.limit,
@@ -225,99 +226,106 @@ export default {
225 226
         this.endTime
226 227
       ).then(response => {
227 228
         if (response.data.state == 1) {
228
-          var coursemanagement = response.data.data.coursemanagement;
229
-          this.courseManagement = clearStyle(coursemanagement);
230
-          var total = response.data.data.total;
231
-          this.total = total;
232
-          this.loading = false;
229
+          var coursemanagement = response.data.data.coursemanagement
230
+          this.courseManagement = clearStyle(coursemanagement)
231
+          var total = response.data.data.total
232
+          this.total = total
233
+          this.loading = false
233 234
         }
234
-      });
235
+      })
235 236
     },
236
-    onLoad() {
237
+    onLoad () {
237 238
       setTimeout(() => {
238
-        this.page++;
239
+        this.page++
239 240
         // console.log(this.page)
240 241
         if (this.page <= Math.ceil(this.total / 10)) {
241
-          this.getCourseManagement(this.patientid);
242
+          this.getCourseManagement(this.patientid)
242 243
         } else {
243
-          this.loading = false;
244
-          this.finished = true;
244
+          this.loading = false
245
+          this.finished = true
245 246
         }
246
-      }, 1000);
247
+      }, 1000)
247 248
     },
248
-    toDeleteCourseManagement(id, index) {
249
-      this.patient_id = id;
250
-      this.patient_index = index;
251
-      this.newShow = true;
249
+    toDeleteCourseManagement (id, index) {
250
+      this.patient_id = id
251
+      this.patient_index = index
252
+      this.newShow = true
252 253
     },
253
-    onDeleteConfirm(value) {
254
-      if (value.name == "查看全部") {
255
-        var patientid = this.$route.query.patientid;
254
+    onDeleteConfirm (value) {
255
+      if (value.name == '查看全部') {
256
+        var patientid = this.$route.query.patientid
256 257
         this.$router.push(
257
-          "/coursedetail?id=" +
258
+          '/coursedetail?id=' +
258 259
             this.patient_id +
259
-            "&patientid=" +
260
+            '&patientid=' +
260 261
             patientid +
261
-            "&active=" +
262
+            '&active=' +
262 263
             this.active
263
-        );
264
+        )
264 265
       }
265
-      if (value.name == "全部删除") {
266
-        this.DeleteCouseManage(this.patient_id);
266
+      if (value.name == '全部删除') {
267
+        this.DeleteCouseManage(this.patient_id)
267 268
       }
268 269
     },
269
-    DeleteCouseManage(id, index) {
270
+    DeleteCouseManage (id, index) {
270 271
       Dialog.confirm({
271
-        title: "删除提示!",
272
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
272
+        title: '删除提示!',
273
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
273 274
       }).then(() => {
274 275
         DeleteCouseManage(id).then(response => {
275 276
           if (response.data.state === 1) {
276
-            var msg = response.data.data.msg;
277
-            console.log("msg", msg);
278
-            this.courseManagement.splice(index, 1);
279
-            this.newShow = false;
277
+            var msg = response.data.data.msg
278
+            console.log('msg', msg)
279
+            this.courseManagement.splice(index, 1)
280
+            this.newShow = false
280 281
           }
281
-        });
282
-      });
282
+        })
283
+      })
283 284
     },
284
-    toCourseDetail(id) {
285
-      var patientid = this.$route.query.patientid;
285
+    toCourseDetail (id) {
286
+      var patientid = this.$route.query.patientid
286 287
       this.$router.push(
287
-        "/coursedetail?id=" +
288
+        '/coursedetail?id=' +
288 289
           id +
289
-          "&patientid=" +
290
+          '&patientid=' +
290 291
           patientid +
291
-          "&active=" +
292
+          '&active=' +
292 293
           this.active
293
-      );
294
+      )
294 295
     },
295
-    getPatientDetail(patientid) {
296
+    getPatientDetail (patientid) {
296 297
       getPatientDetail(patientid).then(response => {
297 298
         if (response.data.state === 1) {
298
-          var patientDetail = response.data.data.patientDetail;
299
+          var patientDetail = response.data.data.patientDetail
299 300
           if (patientDetail.blood_patients == 0) {
300
-            this.courseManagement = [];
301
-            this.showOne = false;
302
-            this.showTwo = true;
301
+            this.courseManagement = []
302
+            this.showOne = false
303
+            this.showTwo = true
303 304
           }
304 305
           if (patientDetail.blood_patients == 1) {
305
-            this.showOne = true;
306
-            this.showTwo = false;
306
+            this.showOne = true
307
+            this.showTwo = false
307 308
           }
308
-          this.patientName = patientDetail.name;
309
+          this.patientName = patientDetail.name
310
+        }
311
+      })
312
+    },
313
+    getNewPatientId (id) {
314
+      getNewPatientId(id).then(response => {
315
+        if (response.data.state == 1) {
316
+          var patient = response.data.data.patient
317
+          this.getCourseManagement(patient.id)
318
+          this.getPatientDetail(patient.id)
309 319
         }
310
-      });
320
+      })
311 321
     }
312 322
   },
313
-  created() {
314
-    var patientid = this.$route.query.patientid;
315
-    this.patientid = patientid;
323
+  created () {
324
+    var patientid = this.$route.query.patient_id
325
+    this.getNewPatientId(patientid)
316 326
     // console.log("干体重id", patientid);
317
-    this.getCourseManagement(patientid);
318
-    this.getPatientDetail(patientid);
319 327
   }
320
-};
328
+}
321 329
 </script>
322 330
 
323 331
 <style lang="scss" scoped>
@@ -436,7 +444,7 @@ export default {
436 444
     transform: translate3d(0, 0, 0);
437 445
     top: initial;
438 446
   }
439
-  
447
+
440 448
 }
441 449
 ::-webkit-scrollbar {
442 450
   width: 0;

+ 114 - 107
src/pages/main/dialysis/DryWeight.vue Parādīt failu

@@ -97,34 +97,35 @@
97 97
 
98 98
 <script>
99 99
 import {
100
+  getNewPatientId,
100 101
   getDryWeight,
101 102
   DeleteDryWeight,
102 103
   getPatientDetail
103
-} from "@/api/patient/patient";
104
-import { uParseTime } from "@/utils/tools";
105
-import { Dialog } from "vant";
106
-const moment = require("moment");
104
+} from '@/api/patient/patient'
105
+import { uParseTime } from '@/utils/tools'
106
+import { Dialog } from 'vant'
107
+const moment = require('moment')
107 108
 export default {
108 109
   props: {
109 110
     active: Number,
110 111
     dryId: String
111 112
   },
112
-  data() {
113
+  data () {
113 114
     return {
114 115
       newShow: false,
115 116
       startShow: false,
116 117
       endShow: false,
117
-      startTime: "请选择",
118
-      endTime: "请选择",
118
+      startTime: '请选择',
119
+      endTime: '请选择',
119 120
       minDate: new Date(1970, 0, 1),
120 121
       maxDate: new Date(2025, 10, 1),
121
-      endTimes: "",
122
+      endTimes: '',
122 123
       currentDate: new Date(),
123
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
124
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
124 125
       page: 1,
125 126
       limit: 10,
126 127
       dryweight: [],
127
-      patient_id: "",
128
+      patient_id: '',
128 129
       total: 0,
129 130
       list: [],
130 131
       loading: false,
@@ -134,64 +135,64 @@ export default {
134 135
       dry_index: 0,
135 136
       showOne: true,
136 137
       showTwo: false
137
-    };
138
+    }
138 139
   },
139 140
   methods: {
140
-    onCancel() {
141
-      this.typeShow = false;
141
+    onCancel () {
142
+      this.typeShow = false
142 143
     },
143
-    onConfirm(value) {
144
-      this.type = value;
145
-      this.typeShow = false;
144
+    onConfirm (value) {
145
+      this.type = value
146
+      this.typeShow = false
146 147
     },
147
-    getstartTime(value) {
148
-      this.page = 1;
149
-      let year = value.getFullYear();
150
-      let month = value.getMonth() + 1;
151
-      let day = value.getDate();
148
+    getstartTime (value) {
149
+      this.page = 1
150
+      let year = value.getFullYear()
151
+      let month = value.getMonth() + 1
152
+      let day = value.getDate()
152 153
       if (month >= 1 && month <= 9) {
153
-        month = `0${month}`;
154
+        month = `0${month}`
154 155
       }
155 156
       if (day >= 1 && day <= 9) {
156
-        day = `0${day}`;
157
+        day = `0${day}`
157 158
       }
158 159
 
159
-      this.startTime = `${year}-${month}-${day}`;
160
-      this.dryweight = [];
160
+      this.startTime = `${year}-${month}-${day}`
161
+      this.dryweight = []
161 162
       this.getDryWeight(
162 163
         this.patient_id,
163 164
         this.startTime,
164 165
         this.endTime,
165 166
         this.limit,
166 167
         this.page
167
-      );
168
+      )
168 169
 
169
-      this.startShow = false;
170
+      this.startShow = false
170 171
     },
171
-    getstartTime2(value) {
172
-      this.page = 1;
173
-      let year = value.getFullYear();
174
-      let month = value.getMonth() + 1;
175
-      let day = value.getDate();
172
+    getstartTime2 (value) {
173
+      this.page = 1
174
+      let year = value.getFullYear()
175
+      let month = value.getMonth() + 1
176
+      let day = value.getDate()
176 177
       if (month >= 1 && month <= 9) {
177
-        month = `0${month}`;
178
+        month = `0${month}`
178 179
       }
179 180
       if (day >= 1 && day <= 9) {
180
-        day = `0${day}`;
181
+        day = `0${day}`
181 182
       }
182 183
 
183
-      this.endTime = `${year}-${month}-${day}`;
184
-      this.dryweight = [];
184
+      this.endTime = `${year}-${month}-${day}`
185
+      this.dryweight = []
185 186
       this.getDryWeight(
186 187
         this.patient_id,
187 188
         this.startTime,
188 189
         this.endTime,
189 190
         this.limit,
190 191
         this.page
191
-      );
192
-      this.endShow = false;
192
+      )
193
+      this.endShow = false
193 194
     },
194
-    getDryWeight(patientid) {
195
+    getDryWeight (patientid) {
195 196
       getDryWeight(
196 197
         patientid,
197 198
         this.startTime,
@@ -200,17 +201,17 @@ export default {
200 201
         this.page
201 202
       ).then(response => {
202 203
         if (response.data.state === 1) {
203
-          var dryweight = response.data.data.dryweight;
204
-          let arr = this.dryweight;
205
-          arr.push(...dryweight);
206
-          this.dryweight = arr;
207
-          var total = response.data.data.total;
208
-          this.total = total;
209
-          this.loading = false;
204
+          var dryweight = response.data.data.dryweight
205
+          let arr = this.dryweight
206
+          arr.push(...dryweight)
207
+          this.dryweight = arr
208
+          var total = response.data.data.total
209
+          this.total = total
210
+          this.loading = false
210 211
         }
211
-      });
212
+      })
212 213
     },
213
-    getDryWeight1(patientid) {
214
+    getDryWeight1 (patientid) {
214 215
       getDryWeight(
215 216
         patientid,
216 217
         this.startTime,
@@ -219,19 +220,19 @@ export default {
219 220
         this.page
220 221
       ).then(response => {
221 222
         if (response.data.state === 1) {
222
-          var dryweight = response.data.data.dryweight;
223
-          this.dryweight = dryweight;
223
+          var dryweight = response.data.data.dryweight
224
+          this.dryweight = dryweight
224 225
 
225
-          var total = response.data.data.total;
226
+          var total = response.data.data.total
226 227
 
227
-          this.total = total;
228
-          this.loading = false;
228
+          this.total = total
229
+          this.loading = false
229 230
         }
230
-      });
231
+      })
231 232
     },
232
-    onLoad() {
233
+    onLoad () {
233 234
       setTimeout(() => {
234
-        this.page++;
235
+        this.page++
235 236
         if (this.page <= Math.ceil(this.total / 10)) {
236 237
           this.getDryWeight(
237 238
             this.patient_id,
@@ -239,93 +240,99 @@ export default {
239 240
             this.endTimes,
240 241
             this.limit,
241 242
             this.page
242
-          );
243
+          )
243 244
         } else {
244
-          this.loading = false;
245
-          this.finished = true;
245
+          this.loading = false
246
+          this.finished = true
246 247
         }
247
-      }, 1000);
248
+      }, 1000)
248 249
     },
249
-    getTime(time) {
250
+    getTime (time) {
250 251
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
251
-      return uParseTime(time, "{y}-{m}-{d}");
252
+      return uParseTime(time, '{y}-{m}-{d}')
252 253
     },
253
-    DeleteDryWeightOne(id, index) {
254
-      this.newShow = true;
255
-      this.dry_id = id;
256
-      this.dry_index = index;
254
+    DeleteDryWeightOne (id, index) {
255
+      this.newShow = true
256
+      this.dry_id = id
257
+      this.dry_index = index
257 258
     },
258
-    onDeleteConfirm(value) {
259
-      if (value.name == "查看全部") {
260
-        var patientid = this.$route.query.patientid;
259
+    onDeleteConfirm (value) {
260
+      if (value.name == '查看全部') {
261
+        var patientid = this.$route.query.patientid
261 262
         this.$router.push(
262
-          "/dryweight?id=" +
263
+          '/dryweight?id=' +
263 264
             this.dry_id +
264
-            "&patientid=" +
265
+            '&patientid=' +
265 266
             patientid +
266
-            "&active=" +
267
+            '&active=' +
267 268
             this.active
268
-        );
269
+        )
269 270
       }
270
-      if (value.name == "全部删除") {
271
-        this.DeleteDryWeight(this.dry_id, this.dry_index);
271
+      if (value.name == '全部删除') {
272
+        this.DeleteDryWeight(this.dry_id, this.dry_index)
272 273
       }
273 274
     },
274
-    DeleteDryWeight(id, index) {
275
+    DeleteDryWeight (id, index) {
275 276
       Dialog.confirm({
276
-        title: "删除提示!",
277
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
277
+        title: '删除提示!',
278
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
278 279
       }).then(() => {
279 280
         DeleteDryWeight(id).then(response => {
280 281
           if (response.data.state === 1) {
281
-            var msg = response.data.data.msg;
282
+            var msg = response.data.data.msg
282 283
             // console.log("msg", msg);
283
-            this.dryweight.splice(index, 1);
284
-            this.newShow = false;
284
+            this.dryweight.splice(index, 1)
285
+            this.newShow = false
285 286
           }
286
-        });
287
-      });
287
+        })
288
+      })
288 289
     },
289
-    getDryWeightDetail(id) {
290
-      var patientid = this.$route.query.patientid;
290
+    getDryWeightDetail (id) {
291
+      var patientid = this.$route.query.patientid
291 292
       this.$router.push(
292
-        "/dryweight?id=" +
293
+        '/dryweight?id=' +
293 294
           id +
294
-          "&patientid=" +
295
+          '&patientid=' +
295 296
           patientid +
296
-          "&active=" +
297
+          '&active=' +
297 298
           this.active
298
-      );
299
+      )
299 300
     },
300
-    getPatientDetail(patientid) {
301
+    getPatientDetail (patientid) {
301 302
       getPatientDetail(patientid).then(response => {
302 303
         if (response.data.state === 1) {
303
-          var patientDetail = response.data.data.patientDetail;
304
+          var patientDetail = response.data.data.patientDetail
304 305
           if (patientDetail.blood_patients == 0) {
305
-            this.dryweight = [];
306
-            this.showOne = false;
307
-            this.showTwo = true;
306
+            this.dryweight = []
307
+            this.showOne = false
308
+            this.showTwo = true
308 309
           }
309 310
           if (patientDetail.blood_patients == 1) {
310
-            this.showOne = true;
311
-            this.showTwo = false;
311
+            this.showOne = true
312
+            this.showTwo = false
312 313
           }
313 314
           // console.log("病人详情", patientDetail);
314
-          this.patientName = patientDetail.name;
315
+          this.patientName = patientDetail.name
316
+        }
317
+      })
318
+    },
319
+    getNewPatientId (id) {
320
+      getNewPatientId(id).then(response => {
321
+        if (response.data.state == 1) {
322
+          var patient = response.data.data.patient
323
+          this.getDryWeight(patient.id)
324
+          this.patient_id = patient.id
325
+          this.getPatientDetail(patient.id)
315 326
         }
316
-      });
327
+      })
317 328
     }
318 329
   },
319
-  created() {
320
-    // console.log("created");
321
-    // this.loading = true;
322
-    var patientid = this.$route.query.patientid;
330
+  created () {
331
+    var patientid = this.$route.query.patient_id
332
+    this.getNewPatientId(patientid)
323 333
     // console.log("干体重id", patientid);
324
-    this.getDryWeight(patientid);
325
-    this.patient_id = patientid;
326
-    this.getPatientDetail(patientid);
327 334
   }
328
-};
335
+}
329 336
 </script>
330 337
 
331 338
 <style lang="scss" scoped>
@@ -448,7 +455,7 @@ export default {
448 455
     transform: translate3d(0, 0, 0);
449 456
     top: initial;
450 457
   }
451
-  
458
+
452 459
 }
453 460
 ::-webkit-scrollbar {
454 461
   width: 0;

+ 1 - 1
src/pages/main/dialysis/LongTable.vue Parādīt failu

@@ -1243,7 +1243,7 @@ export default {
1243 1243
           "/alllongdialysis?id=" +
1244 1244
             this.id +
1245 1245
             "&patientid=" +
1246
-            newpatientid +
1246
+            this.newpatientid +
1247 1247
             "&active=" +
1248 1248
             this.active
1249 1249
         );

+ 14 - 7
src/pages/main/dialysis/MissionTable.vue Parādīt failu

@@ -306,6 +306,7 @@
306 306
 
307 307
 <script>
308 308
 import {
309
+  getNewPatientId,
309 310
   getPatientDetail,
310 311
   getEducation,
311 312
   DeleteEducationOne
@@ -501,18 +502,26 @@ export default {
501 502
           }
502 503
         });
503 504
       });
505
+    },
506
+    getNewPatientId(id){
507
+      getNewPatientId(id).then(response=>{
508
+         if(response.data.state == 1){
509
+          var patient =  response.data.data.patient
510
+          this.getPatientDetail(patient.id);
511
+          this.getEducation(patient.id);
512
+          this.patient_id = patient.id;
513
+         }
514
+      })
504 515
     }
505 516
   },
506 517
   created() {
507
-    var patientid = this.$route.query.patientid;
508
-    this.getPatientDetail(patientid);
509
-    this.getEducation(patientid);
510
-    this.patient_id = patientid;
518
+    var patientid = this.$route.query.patient_id;
519
+    this.getNewPatientId(patientid)
520
+
511 521
   }
512 522
 };
513 523
 </script>
514 524
 
515
-
516 525
 <style lang="scss" scoped>
517 526
 .newEducation {
518 527
   height: 100%;
@@ -644,8 +653,6 @@ export default {
644 653
 }
645 654
 </style>
646 655
 
647
-
648
-
649 656
 <style style="stylesheet/scss" lang="scss" scoped>
650 657
 // .choice {
651 658
 //   border-bottom: 1px #e5e5e5 solid;

+ 13 - 4
src/pages/main/dialysis/RescueRecord.vue Parādīt failu

@@ -99,6 +99,7 @@
99 99
 
100 100
 <script>
101 101
 import {
102
+  getNewPatientId,
102 103
   getPatientDetail,
103 104
   getRescueRecord,
104 105
   DeleteRescueRecord
@@ -297,14 +298,22 @@ export default {
297 298
           }
298 299
         })
299 300
       })
301
+    },
302
+    getNewPatientId (id) {
303
+      getNewPatientId(id).then(response => {
304
+        if (response.data.state == 1) {
305
+          var patient = response.data.data.patient
306
+          this.patient_id = patient.id
307
+          this.getPatientDetail(patient.id)
308
+          this.getRescueRecord(patient.id)
309
+        }
310
+      })
300 311
     }
301 312
   },
302 313
   created () {
303
-    var patientid = this.$route.query.patientid
314
+    var patientid = this.$route.query.patient_id
315
+    this.getNewPatientId(patientid)
304 316
     // console.log("病人id能否获取", patientid);
305
-    this.patient_id = patientid
306
-    this.getPatientDetail(patientid)
307
-    this.getRescueRecord(patientid)
308 317
   }
309 318
 }
310 319
 </script>

+ 17 - 16
src/pages/main/dialysis/SchedulTable.vue Parādīt failu

@@ -233,9 +233,10 @@
233 233
 
234 234
 <script>
235 235
 import {
236
+  getNewPatientId,
236 237
   getPatientDetail,
237 238
   getScheduling,
238
-  DeleteScheduling
239
+  DeleteScheduling,
239 240
 } from "@/api/patient/patient";
240 241
 import { uParseTime } from "@/utils/tools";
241 242
 import Vue from "vue";
@@ -597,14 +598,11 @@ export default {
597 598
       }, 3000);
598 599
     },
599 600
     toEditSchduling(id) {
600
-      var patientid = this.$route.query.patientid;
601 601
       this.$router.push(
602 602
         "/newScheduling?id=" +
603 603
           id +
604 604
           "&patientid=" +
605
-          patientid +
606
-          "&active=" +
607
-          this.active
605
+          this.patient_id
608 606
       );
609 607
     },
610 608
     toDelete(id, index) {
@@ -616,12 +614,10 @@ export default {
616 614
       if (value.name == "查看全部") {
617 615
         var patientid = this.$route.query.patientid;
618 616
         this.$router.push(
619
-          "/editScheduling?id=" +
617
+          "/newScheduling?id=" +
620 618
             this.id +
621 619
             "&patientid=" +
622
-            patientid +
623
-            "&active=" +
624
-            this.active
620
+            this.patient_id
625 621
         );
626 622
       }
627 623
       if (value.name == "全部删除") {
@@ -642,18 +638,25 @@ export default {
642 638
           }
643 639
         });
644 640
       });
641
+    },
642
+    getNewPatientId(id){
643
+      getNewPatientId(id).then(response=>{
644
+         if(response.data.state == 1){
645
+          var patient =  response.data.data.patient
646
+          this.patient_id = patient.id
647
+          this.getPatientDetail(patient.id);
648
+          this.getScheduling(patient.id);
649
+         }
650
+      })
645 651
     }
646 652
   },
647 653
   created() {
648
-    var patientid = this.$route.query.patientid;
649
-    this.getPatientDetail(patientid);
650
-    this.getScheduling(patientid);
651
-    this.patient_id = patientid;
654
+    var patientid = this.$route.query.patient_id
655
+    this.getNewPatientId(patientid)
652 656
   }
653 657
 };
654 658
 </script>
655 659
 
656
-
657 660
 <style lang="scss" scoped>
658 661
 .newScheduling {
659 662
   height: 100%;
@@ -788,8 +791,6 @@ export default {
788 791
 }
789 792
 </style>
790 793
 
791
-
792
-
793 794
 <style style="stylesheet/scss" lang="scss" scoped>
794 795
 // .schedulTable {
795 796
 //   width: 100%;

+ 23 - 23
src/pages/main/records/CaseHistory.vue Parādīt failu

@@ -24,26 +24,26 @@
24 24
 </template>
25 25
 
26 26
 <script>
27
-import { GetInspection } from "@/api/check";
28
-import RecordsTab from "./RecordsTab";
29
-import AdviceTable from "../dialysis/AdviceTable";
30
-import CheckTab from "../dialysis/CheckTab";
31
-import DryWeight from "../dialysis/DryWeight";
32
-import CourseManagement from "../dialysis/CourseManagement";
33
-import RescueRecord from "../dialysis/RescueRecord";
27
+import { GetInspection } from '@/api/check'
28
+import RecordsTab from './RecordsTab'
29
+import AdviceTable from '../dialysis/AdviceTable'
30
+import CheckTab from '../dialysis/CheckTab'
31
+import DryWeight from '../dialysis/DryWeight'
32
+import CourseManagement from '../dialysis/CourseManagement'
33
+import RescueRecord from '../dialysis/RescueRecord'
34 34
 
35 35
 export default {
36
-  name: "CaseHistory",
37
-  created() {
38
-    this.patient = this.$route.query.patient_id;
39
-    this.GetList();
36
+  name: 'CaseHistory',
37
+  created () {
38
+    this.patient = this.$route.query.patient_id
39
+    this.GetList()
40 40
   },
41
-  data() {
41
+  data () {
42 42
     return {
43 43
       index: 0,
44 44
       inspectionDate: [],
45 45
       patient: 0
46
-    };
46
+    }
47 47
   },
48 48
 
49 49
   components: {
@@ -55,26 +55,26 @@ export default {
55 55
     RescueRecord
56 56
   },
57 57
   methods: {
58
-    ClickTab: function(tabIndex, row) {
59
-      this.index = tabIndex;
58
+    ClickTab: function (tabIndex, row) {
59
+      this.index = tabIndex
60 60
       if (this.index == 1) {
61
-        this.$refs.item.GetList(row.project_id, row);
61
+        this.$refs.item.GetList(row.project_id, row)
62 62
       }
63 63
     },
64
-    GetList: function() {
64
+    GetList: function () {
65 65
       let params = {
66 66
         patient: this.patient
67
-      };
67
+      }
68 68
       GetInspection(params).then(response => {
69
-        this.inspectionDate = [];
69
+        this.inspectionDate = []
70 70
         if (response.data.state == 1) {
71
-          this.inspectionDate = response.data.data.reference;
72
-          this.$refs.item.GetList(1, this.inspectionDate[0]);
71
+          this.inspectionDate = response.data.data.reference
72
+          this.$refs.item.GetList(1, this.inspectionDate[0])
73 73
         }
74
-      });
74
+      })
75 75
     }
76 76
   }
77
-};
77
+}
78 78
 </script>
79 79
 
80 80
 <style style="stylesheet/scss" lang="scss" scoped>