XMLWAN 5 лет назад
Родитель
Сommit
4d5f193170

+ 98 - 98
src/pages/doctorAdvice/components/CourseManagement.vue Просмотреть файл

@@ -49,7 +49,7 @@
49 49
                   <p>记录医生:{{ item.user_name }}</p>
50 50
                 </div>
51 51
               </div>
52
-              <div class="all">全部</div>
52
+              <div class="all"  @click="toCourseDetail(item.id)">全部</div>
53 53
             </div>
54 54
           </div>
55 55
         </van-list>
@@ -119,28 +119,28 @@ import {
119 119
   getCourseManagement,
120 120
   DeleteCouseManage,
121 121
   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");
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')
128 128
 export default {
129 129
   props: {
130 130
     active: Number
131 131
   },
132
-  data() {
132
+  data () {
133 133
     return {
134 134
       newShow: false,
135 135
       startShow: false,
136 136
       endShow: false,
137
-      startTime: "请选择",
138
-      endTime: "请选择",
139
-      endTimes: "",
137
+      startTime: '请选择',
138
+      endTime: '请选择',
139
+      endTimes: '',
140 140
       minDate: new Date(1970, 0, 1),
141 141
       maxDate: new Date(2025, 10, 1),
142 142
       currentDate: new Date(),
143
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
143
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
144 144
       limit: 10,
145 145
       page: 1,
146 146
       total: 0,
@@ -155,68 +155,68 @@ export default {
155 155
       patient_index: 0,
156 156
       showOne: true,
157 157
       showTwo: false
158
-    };
158
+    }
159 159
   },
160 160
   methods: {
161
-    onCancel() {
162
-      this.typeShow = false;
161
+    onCancel () {
162
+      this.typeShow = false
163 163
     },
164
-    onConfirm(value) {
165
-      this.type = value;
166
-      this.typeShow = false;
164
+    onConfirm (value) {
165
+      this.type = value
166
+      this.typeShow = false
167 167
     },
168
-    getstartTime(value) {
169
-      this.page = 1;
170
-      let year = value.getFullYear();
171
-      let month = value.getMonth() + 1;
172
-      let day = value.getDate();
168
+    getstartTime (value) {
169
+      this.page = 1
170
+      let year = value.getFullYear()
171
+      let month = value.getMonth() + 1
172
+      let day = value.getDate()
173 173
       if (month >= 1 && month <= 9) {
174
-        month = `0${month}`;
174
+        month = `0${month}`
175 175
       }
176 176
       if (day >= 1 && day <= 9) {
177
-        day = `0${day}`;
177
+        day = `0${day}`
178 178
       }
179 179
 
180
-      this.startTime = `${year}-${month}-${day}`;
181
-      this.courseManagement = [];
180
+      this.startTime = `${year}-${month}-${day}`
181
+      this.courseManagement = []
182 182
       this.getCourseManagement(
183 183
         this.patientid,
184 184
         this.limit,
185 185
         this.page,
186 186
         this.startTime,
187 187
         this.endTime
188
-      );
189
-      this.startShow = false;
188
+      )
189
+      this.startShow = false
190 190
     },
191
-    getstartTime2(value) {
192
-      this.page = 1;
193
-      let year = value.getFullYear();
194
-      let month = value.getMonth() + 1;
195
-      let day = value.getDate();
191
+    getstartTime2 (value) {
192
+      this.page = 1
193
+      let year = value.getFullYear()
194
+      let month = value.getMonth() + 1
195
+      let day = value.getDate()
196 196
       if (month >= 1 && month <= 9) {
197
-        month = `0${month}`;
197
+        month = `0${month}`
198 198
       }
199 199
       if (day >= 1 && day <= 9) {
200
-        day = `0${day}`;
200
+        day = `0${day}`
201 201
       }
202 202
 
203
-      this.endTime = `${year}-${month}-${day}`;
203
+      this.endTime = `${year}-${month}-${day}`
204 204
 
205
-      this.courseManagement = [];
205
+      this.courseManagement = []
206 206
       this.getCourseManagement(
207 207
         this.patientid,
208 208
         this.limit,
209 209
         this.page,
210 210
         this.startTime,
211 211
         this.endTime
212
-      );
213
-      this.endShow = false;
212
+      )
213
+      this.endShow = false
214 214
     },
215
-    getTime(time) {
215
+    getTime (time) {
216 216
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
217
-      return uParseTime(time, "{y}-{m}-{d}");
217
+      return uParseTime(time, '{y}-{m}-{d}')
218 218
     },
219
-    getCourseManagement(patientid) {
219
+    getCourseManagement (patientid) {
220 220
       getCourseManagement(
221 221
         patientid,
222 222
         this.limit,
@@ -225,99 +225,99 @@ export default {
225 225
         this.endTime
226 226
       ).then(response => {
227 227
         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;
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
233 233
         }
234
-      });
234
+      })
235 235
     },
236
-    onLoad() {
236
+    onLoad () {
237 237
       setTimeout(() => {
238
-        this.page++;
238
+        this.page++
239 239
         // console.log(this.page)
240 240
         if (this.page <= Math.ceil(this.total / 10)) {
241
-          this.getCourseManagement(this.patientid);
241
+          this.getCourseManagement(this.patientid)
242 242
         } else {
243
-          this.loading = false;
244
-          this.finished = true;
243
+          this.loading = false
244
+          this.finished = true
245 245
         }
246
-      }, 1000);
246
+      }, 1000)
247 247
     },
248
-    toDeleteCourseManagement(id, index) {
249
-      this.patient_id = id;
250
-      this.patient_index = index;
251
-      this.newShow = true;
248
+    toDeleteCourseManagement (id, index) {
249
+      this.patient_id = id
250
+      this.patient_index = index
251
+      this.newShow = true
252 252
     },
253
-    onDeleteConfirm(value) {
254
-      if (value.name == "查看全部") {
255
-        var patientid = this.$route.query.patientid;
253
+    onDeleteConfirm (value) {
254
+      if (value.name == '查看全部') {
255
+        var patientid = this.$route.query.patientid
256 256
         this.$router.push(
257
-          "/coursedetail?id=" +
257
+          '/coursedetail?id=' +
258 258
             this.patient_id +
259
-            "&patientid=" +
259
+            '&patientid=' +
260 260
             patientid +
261
-            "&active=" +
261
+            '&active=' +
262 262
             this.active
263
-        );
263
+        )
264 264
       }
265
-      if (value.name == "全部删除") {
266
-        this.DeleteCouseManage(this.patient_id);
265
+      if (value.name == '全部删除') {
266
+        this.DeleteCouseManage(this.patient_id)
267 267
       }
268 268
     },
269
-    DeleteCouseManage(id, index) {
269
+    DeleteCouseManage (id, index) {
270 270
       Dialog.confirm({
271
-        title: "删除提示!",
272
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
271
+        title: '删除提示!',
272
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
273 273
       }).then(() => {
274 274
         DeleteCouseManage(id).then(response => {
275 275
           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;
276
+            var msg = response.data.data.msg
277
+            console.log('msg', msg)
278
+            this.courseManagement.splice(index, 1)
279
+            this.newShow = false
280 280
           }
281
-        });
282
-      });
281
+        })
282
+      })
283 283
     },
284
-    toCourseDetail(id) {
285
-      var patientid = this.$route.query.patientid;
284
+    toCourseDetail (id) {
285
+      var patientid = this.$route.query.patientid
286 286
       this.$router.push(
287
-        "/coursedetail?id=" +
287
+        '/coursedetail?id=' +
288 288
           id +
289
-          "&patientid=" +
289
+          '&patientid=' +
290 290
           patientid +
291
-          "&active=" +
291
+          '&active=' +
292 292
           this.active
293
-      );
293
+      )
294 294
     },
295
-    getPatientDetail(patientid) {
295
+    getPatientDetail (patientid) {
296 296
       getPatientDetail(patientid).then(response => {
297 297
         if (response.data.state === 1) {
298
-          var patientDetail = response.data.data.patientDetail;
298
+          var patientDetail = response.data.data.patientDetail
299 299
           if (patientDetail.blood_patients == 0) {
300
-            this.courseManagement = [];
301
-            this.showOne = false;
302
-            this.showTwo = true;
300
+            this.courseManagement = []
301
+            this.showOne = false
302
+            this.showTwo = true
303 303
           }
304 304
           if (patientDetail.blood_patients == 1) {
305
-            this.showOne = true;
306
-            this.showTwo = false;
305
+            this.showOne = true
306
+            this.showTwo = false
307 307
           }
308
-          this.patientName = patientDetail.name;
308
+          this.patientName = patientDetail.name
309 309
         }
310
-      });
310
+      })
311 311
     }
312 312
   },
313
-  created() {
314
-    var patientid = this.$route.query.patientid;
315
-    this.patientid = patientid;
313
+  created () {
314
+    var patientid = this.$route.query.patientid
315
+    this.patientid = patientid
316 316
     // console.log("干体重id", patientid);
317
-    this.getCourseManagement(patientid);
318
-    this.getPatientDetail(patientid);
317
+    this.getCourseManagement(patientid)
318
+    this.getPatientDetail(patientid)
319 319
   }
320
-};
320
+}
321 321
 </script>
322 322
 
323 323
 <style lang="scss" scoped>

+ 142 - 146
src/pages/doctorAdvice/components/DialysisRecord.vue Просмотреть файл

@@ -38,9 +38,7 @@
38 38
               <div class="adviceTitle">
39 39
                 <p>{{ getTime(item.dialysis_date) }}</p>
40 40
               </div>
41
-              <div class="orderContent"  @click="
42
-                  toDialysisRecordDetail(item.patient_id, item.dialysis_date)
43
-                ">
41
+              <div class="orderContent"  @click="toDialysisRecordDetail(item.patient_id, item.dialysis_date)">
44 42
                 <p>
45 43
                   班次:
46 44
                   <span v-if="item.schedule_type === 1">上午</span>
@@ -136,9 +134,7 @@
136 134
                 <p>治疗医生:{{ getNurse(item.prescription.creater) }}</p>
137 135
               </div>
138 136
 
139
-              <div
140
-                class="all"
141
-              >
137
+              <div class="all" @click="toDialysisRecordDetail(item.patient_id, item.dialysis_date)">
142 138
                 全部
143 139
               </div>
144 140
             </div>
@@ -206,112 +202,112 @@
206 202
 </template>
207 203
 
208 204
 <script>
209
-import { getPatientDetail, getDialysisRecord } from "@/api/patient/patient";
210
-import { uParseTime } from "@/utils/tools";
211
-import Vue from "vue";
212
-import { Dialog } from "vant";
213
-const moment = require("moment");
205
+import { getPatientDetail, getDialysisRecord } from '@/api/patient/patient'
206
+import { uParseTime } from '@/utils/tools'
207
+import Vue from 'vue'
208
+import { Dialog } from 'vant'
209
+const moment = require('moment')
214 210
 export default {
215 211
   props: {
216 212
     active: Number
217 213
   },
218
-  data() {
214
+  data () {
219 215
     return {
220 216
       newShow: false,
221 217
       typeShow: false,
222 218
       startShow: false,
223 219
       endShow: false,
224
-      type: "全部",
220
+      type: '全部',
225 221
       types: 0,
226 222
       loading: false,
227 223
       finished: false,
228 224
       columns: [
229
-        "HD",
230
-        "HDF",
231
-        "HD+HP",
232
-        "HP",
233
-        "HF",
234
-        "SCUF",
235
-        "IUF",
236
-        "HFHD",
237
-        "HFHD+HP",
238
-        "PHF",
239
-        "HFR",
240
-        "HDF+HP",
241
-        "CRRT",
242
-        "腹水回输"
225
+        'HD',
226
+        'HDF',
227
+        'HD+HP',
228
+        'HP',
229
+        'HF',
230
+        'SCUF',
231
+        'IUF',
232
+        'HFHD',
233
+        'HFHD+HP',
234
+        'PHF',
235
+        'HFR',
236
+        'HDF+HP',
237
+        'CRRT',
238
+        '腹水回输'
243 239
       ],
244
-      startTime: "请选择",
245
-      endTime: "请选择",
240
+      startTime: '请选择',
241
+      endTime: '请选择',
246 242
       minDate: new Date(1970, 0, 1),
247 243
       maxDate: new Date(2025, 10, 1),
248 244
       currentDate: new Date(),
249
-      actions: [{ name: "删除" }],
245
+      actions: [{ name: '删除' }],
250 246
       showOne: true,
251 247
       showTwo: false,
252 248
       limit: 10,
253 249
       page: 1,
254 250
       dialysisRecord: [],
255 251
       doctor: [],
256
-      patient_name: "",
252
+      patient_name: '',
257 253
       index: 0,
258 254
       id: 0,
259 255
       patient_id: 0
260
-    };
256
+    }
261 257
   },
262 258
   methods: {
263
-    onCancel() {
264
-      this.typeShow = false;
259
+    onCancel () {
260
+      this.typeShow = false
265 261
     },
266
-    onConfirm(value) {
267
-      if (value === "全部") {
268
-        this.types = 0;
262
+    onConfirm (value) {
263
+      if (value === '全部') {
264
+        this.types = 0
269 265
       }
270
-      if (value === "HD") {
271
-        this.types = 1;
266
+      if (value === 'HD') {
267
+        this.types = 1
272 268
       }
273
-      if (value === "HDF") {
274
-        this.types = 2;
269
+      if (value === 'HDF') {
270
+        this.types = 2
275 271
       }
276
-      if (value === "HD+HP") {
277
-        this.types = 3;
272
+      if (value === 'HD+HP') {
273
+        this.types = 3
278 274
       }
279
-      if (value === "HP") {
280
-        this.types = 4;
275
+      if (value === 'HP') {
276
+        this.types = 4
281 277
       }
282
-      if (value === "HF") {
283
-        this.types = 5;
278
+      if (value === 'HF') {
279
+        this.types = 5
284 280
       }
285
-      if (value === "SCUF") {
286
-        this.types = 6;
281
+      if (value === 'SCUF') {
282
+        this.types = 6
287 283
       }
288
-      if (value === "IUF") {
289
-        this.types = 7;
284
+      if (value === 'IUF') {
285
+        this.types = 7
290 286
       }
291
-      if (value === "HFHD") {
292
-        this.types = 8;
287
+      if (value === 'HFHD') {
288
+        this.types = 8
293 289
       }
294
-      if (value === "HFHD+HP") {
295
-        this.types = 9;
290
+      if (value === 'HFHD+HP') {
291
+        this.types = 9
296 292
       }
297
-      if (value === "PHF") {
298
-        this.types = 10;
293
+      if (value === 'PHF') {
294
+        this.types = 10
299 295
       }
300
-      if (value === "HFR") {
301
-        this.types = 11;
296
+      if (value === 'HFR') {
297
+        this.types = 11
302 298
       }
303 299
 
304
-      if (value === "HDF+HP") {
305
-        this.types = 12;
300
+      if (value === 'HDF+HP') {
301
+        this.types = 12
306 302
       }
307
-      if (value === "CRRT") {
308
-        this.types = 13;
303
+      if (value === 'CRRT') {
304
+        this.types = 13
309 305
       }
310
-      if (value === "腹水回输") {
311
-        this.types = 14;
306
+      if (value === '腹水回输') {
307
+        this.types = 14
312 308
       }
313
-      this.page = 1;
314
-      this.dialysisRecord = [];
309
+      this.page = 1
310
+      this.dialysisRecord = []
315 311
       this.getDialysisRecord(
316 312
         this.patient_id,
317 313
         this.limit,
@@ -319,22 +315,22 @@ export default {
319 315
         this.startTime,
320 316
         this.endTime,
321 317
         this.types
322
-      );
323
-      this.typeShow = false;
318
+      )
319
+      this.typeShow = false
324 320
     },
325
-    getstartTime(value) {
326
-      this.page = 1;
327
-      let year = value.getFullYear();
328
-      let month = value.getMonth() + 1;
329
-      let day = value.getDate();
321
+    getstartTime (value) {
322
+      this.page = 1
323
+      let year = value.getFullYear()
324
+      let month = value.getMonth() + 1
325
+      let day = value.getDate()
330 326
       if (month >= 1 && month <= 9) {
331
-        month = `0${month}`;
327
+        month = `0${month}`
332 328
       }
333 329
       if (day >= 1 && day <= 9) {
334
-        day = `0${day}`;
330
+        day = `0${day}`
335 331
       }
336
-      this.startTime = `${year}-${month}-${day}`;
337
-      this.dialysisRecord = [];
332
+      this.startTime = `${year}-${month}-${day}`
333
+      this.dialysisRecord = []
338 334
       this.getDialysisRecord(
339 335
         this.patient_id,
340 336
         this.limit,
@@ -342,23 +338,23 @@ export default {
342 338
         this.startTime,
343 339
         this.endTime,
344 340
         this.types
345
-      );
346
-      this.startShow = false;
341
+      )
342
+      this.startShow = false
347 343
     },
348
-    getstartTime2(value) {
349
-      this.page = 1;
350
-      let year = value.getFullYear();
351
-      let month = value.getMonth() + 1;
352
-      let day = value.getDate();
344
+    getstartTime2 (value) {
345
+      this.page = 1
346
+      let year = value.getFullYear()
347
+      let month = value.getMonth() + 1
348
+      let day = value.getDate()
353 349
       if (month >= 1 && month <= 9) {
354
-        month = `0${month}`;
350
+        month = `0${month}`
355 351
       }
356 352
       if (day >= 1 && day <= 9) {
357
-        day = `0${day}`;
353
+        day = `0${day}`
358 354
       }
359 355
 
360
-      this.endTime = `${year}-${month}-${day}`;
361
-      this.dialysisRecord = [];
356
+      this.endTime = `${year}-${month}-${day}`
357
+      this.dialysisRecord = []
362 358
       this.getDialysisRecord(
363 359
         this.patient_id,
364 360
         this.limit,
@@ -366,27 +362,27 @@ export default {
366 362
         this.startTime,
367 363
         this.endTime,
368 364
         this.types
369
-      );
370
-      this.endShow = false;
365
+      )
366
+      this.endShow = false
371 367
     },
372
-    getPatientDetail(patientid) {
368
+    getPatientDetail (patientid) {
373 369
       getPatientDetail(patientid).then(response => {
374 370
         if (response.data.state === 1) {
375
-          var patientDetail = response.data.data.patientDetail;
376
-          this.patient_name = patientDetail.name;
371
+          var patientDetail = response.data.data.patientDetail
372
+          this.patient_name = patientDetail.name
377 373
           if (patientDetail.blood_patients == 0) {
378
-            this.showOne = false;
379
-            this.showTwo = true;
374
+            this.showOne = false
375
+            this.showTwo = true
380 376
           }
381 377
           if (patientDetail.blood_patients == 1) {
382
-            this.showOne = true;
383
-            this.showTwo = false;
378
+            this.showOne = true
379
+            this.showTwo = false
384 380
           }
385
-          this.patientName = patientDetail.name;
381
+          this.patientName = patientDetail.name
386 382
         }
387
-      });
383
+      })
388 384
     },
389
-    getDialysisRecord(id) {
385
+    getDialysisRecord (id) {
390 386
       getDialysisRecord(
391 387
         id,
392 388
         this.limit,
@@ -396,83 +392,83 @@ export default {
396 392
         this.types
397 393
       ).then(response => {
398 394
         if (response.data.state === 1) {
399
-          var dialysisrecord = response.data.data.dialysisrecord;
400
-          let arr = this.dialysisRecord;
401
-          arr.push(...dialysisrecord);
402
-          this.dialysisRecord = arr;
403
-          var total = response.data.data.total;
404
-          var doctor = response.data.data.doctor;
405
-          this.doctor = doctor;
406
-          this.loading = false;
395
+          var dialysisrecord = response.data.data.dialysisrecord
396
+          let arr = this.dialysisRecord
397
+          arr.push(...dialysisrecord)
398
+          this.dialysisRecord = arr
399
+          var total = response.data.data.total
400
+          var doctor = response.data.data.doctor
401
+          this.doctor = doctor
402
+          this.loading = false
407 403
         }
408
-      });
404
+      })
409 405
     },
410
-    onLoad() {
406
+    onLoad () {
411 407
       setTimeout(() => {
412
-        this.page++;
408
+        this.page++
413 409
         // console.log(this.page)
414 410
         if (this.page <= Math.ceil(this.total / 10)) {
415
-          this.getDialysisRecord(this.patient_id);
411
+          this.getDialysisRecord(this.patient_id)
416 412
         } else {
417
-          this.loading = false;
418
-          this.finished = true;
413
+          this.loading = false
414
+          this.finished = true
419 415
         }
420
-      }, 3000);
416
+      }, 3000)
421 417
     },
422
-    getTime(time) {
418
+    getTime (time) {
423 419
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
424
-      return uParseTime(time, "{y}-{m}-{d}");
420
+      return uParseTime(time, '{y}-{m}-{d}')
425 421
     },
426
-    getNurse(id) {
422
+    getNurse (id) {
427 423
       for (let i = 0; i < this.doctor.length; i++) {
428 424
         if (this.doctor[i].admin_user_id === id) {
429
-          return this.doctor[i].user_name;
425
+          return this.doctor[i].user_name
430 426
         }
431 427
       }
432 428
     },
433
-    toDialysisRecordDetail(id, date) {
429
+    toDialysisRecordDetail (id, date) {
434 430
       this.$router.push(
435
-        "/details?patient_id=" +
431
+        '/details?patient_id=' +
436 432
           id +
437
-          "&date=" +
433
+          '&date=' +
438 434
           date +
439
-          "&patient_name=" +
435
+          '&patient_name=' +
440 436
           this.patient_name
441
-      );
437
+      )
442 438
     },
443
-    Delete(id, index) {
444
-      this.id = id;
445
-      this.index = index;
446
-      this.newShow = true;
439
+    Delete (id, index) {
440
+      this.id = id
441
+      this.index = index
442
+      this.newShow = true
447 443
     },
448
-    toDelete(value) {
449
-      if ((value.name = "删除")) {
450
-        this.DeleteDialysisRecord(this.id, this.index);
444
+    toDelete (value) {
445
+      if ((value.name = '删除')) {
446
+        this.DeleteDialysisRecord(this.id, this.index)
451 447
       }
452 448
     },
453
-    DeleteDialysisRecord(id, index) {
449
+    DeleteDialysisRecord (id, index) {
454 450
       Dialog.confirm({
455
-        title: "删除提示!",
456
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
451
+        title: '删除提示!',
452
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
457 453
       }).then(() => {
458 454
         DeleteDialysisRecord(id).then(response => {
459 455
           if (response.data.state === 1) {
460
-            var msg = response.data.data.msg;
456
+            var msg = response.data.data.msg
461 457
             // console.log("msg", msg);
462
-            this.dialysisRecord.splice(index, 1);
463
-            this.newShow = false;
458
+            this.dialysisRecord.splice(index, 1)
459
+            this.newShow = false
464 460
           }
465
-        });
466
-      });
461
+        })
462
+      })
467 463
     }
468 464
   },
469
-  created() {
470
-    var patientid = this.$route.query.patientid;
471
-    this.getPatientDetail(patientid);
472
-    this.getDialysisRecord(patientid);
473
-    this.patient_id = patientid;
465
+  created () {
466
+    var patientid = this.$route.query.patientid
467
+    this.getPatientDetail(patientid)
468
+    this.getDialysisRecord(patientid)
469
+    this.patient_id = patientid
474 470
   }
475
-};
471
+}
476 472
 </script>
477 473
 
478 474
 <style lang="scss" scoped>

+ 1 - 1
src/pages/doctorAdvice/components/DoctorManagement.vue Просмотреть файл

@@ -95,7 +95,7 @@
95 95
             </div>
96 96
          </div>
97 97
 
98
-            <div class="all">全部</div>
98
+            <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
99 99
           </div>
100 100
         </van-list>
101 101
       </div>

+ 105 - 105
src/pages/doctorAdvice/components/DryWeight.vue Просмотреть файл

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

+ 98 - 98
src/pages/doctorAdvice/components/Education.vue Просмотреть файл

@@ -41,7 +41,7 @@
41 41
                   <p>{{ item.mission }}</p>
42 42
                 </div>
43 43
               </div>
44
-              <div class="all">全部</div>
44
+              <div class="all" @click="toEducationDetail(item.id)">全部</div>
45 45
             </div>
46 46
           </div>
47 47
         </van-list>
@@ -98,26 +98,26 @@ import {
98 98
   getPatientDetail,
99 99
   getEducation,
100 100
   DeleteEducationOne
101
-} from "@/api/patient/patient";
102
-import { uParseTime } from "@/utils/tools";
103
-import Vue from "vue";
104
-import { Dialog } from "vant";
105
-const moment = require("moment");
101
+} from '@/api/patient/patient'
102
+import { uParseTime } from '@/utils/tools'
103
+import Vue from 'vue'
104
+import { Dialog } from 'vant'
105
+const moment = require('moment')
106 106
 export default {
107 107
   props: {
108 108
     active: Number
109 109
   },
110
-  data() {
110
+  data () {
111 111
     return {
112 112
       newShow: false,
113 113
       startShow: false,
114 114
       endShow: false,
115
-      startTime: "请选择",
116
-      endTime: "请选择",
115
+      startTime: '请选择',
116
+      endTime: '请选择',
117 117
       minDate: new Date(1970, 0, 1),
118 118
       maxDate: new Date(2025, 10, 1),
119 119
       currentDate: new Date(),
120
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
120
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
121 121
       showOne: true,
122 122
       showTwo: false,
123 123
       limit: 10,
@@ -127,66 +127,66 @@ export default {
127 127
       finished: false,
128 128
       list: [],
129 129
       Education: [],
130
-      patient_id: "",
130
+      patient_id: '',
131 131
       id: 0,
132 132
       index: 0
133
-    };
133
+    }
134 134
   },
135 135
   methods: {
136
-    onCancel() {
137
-      this.typeShow = false;
136
+    onCancel () {
137
+      this.typeShow = false
138 138
     },
139
-    onConfirm(value) {
140
-      this.type = value;
141
-      this.typeShow = false;
139
+    onConfirm (value) {
140
+      this.type = value
141
+      this.typeShow = false
142 142
     },
143
-    getstartTime(value) {
144
-      this.page = 1;
145
-      let year = value.getFullYear();
146
-      let month = value.getMonth() + 1;
147
-      let day = value.getDate();
143
+    getstartTime (value) {
144
+      this.page = 1
145
+      let year = value.getFullYear()
146
+      let month = value.getMonth() + 1
147
+      let day = value.getDate()
148 148
       if (month >= 1 && month <= 9) {
149
-        month = `0${month}`;
149
+        month = `0${month}`
150 150
       }
151 151
       if (day >= 1 && day <= 9) {
152
-        day = `0${day}`;
152
+        day = `0${day}`
153 153
       }
154 154
 
155
-      this.startTime = `${year}-${month}-${day}`;
156
-      this.Education = [];
155
+      this.startTime = `${year}-${month}-${day}`
156
+      this.Education = []
157 157
       this.getEducation(
158 158
         this.patient_id,
159 159
         this.limit,
160 160
         this.page,
161 161
         this.startTime,
162 162
         this.endTime
163
-      );
164
-      this.startShow = false;
163
+      )
164
+      this.startShow = false
165 165
     },
166
-    getstartTime2(value) {
167
-      this.page = 1;
168
-      let year = value.getFullYear();
169
-      let month = value.getMonth() + 1;
170
-      let day = value.getDate();
166
+    getstartTime2 (value) {
167
+      this.page = 1
168
+      let year = value.getFullYear()
169
+      let month = value.getMonth() + 1
170
+      let day = value.getDate()
171 171
       if (month >= 1 && month <= 9) {
172
-        month = `0${month}`;
172
+        month = `0${month}`
173 173
       }
174 174
       if (day >= 1 && day <= 9) {
175
-        day = `0${day}`;
175
+        day = `0${day}`
176 176
       }
177 177
 
178
-      this.endTime = `${year}-${month}-${day}`;
179
-      this.Education = [];
178
+      this.endTime = `${year}-${month}-${day}`
179
+      this.Education = []
180 180
       this.getEducation(
181 181
         this.patient_id,
182 182
         this.limit,
183 183
         this.page,
184 184
         this.startTime,
185 185
         this.endTime
186
-      );
187
-      this.endShow = false;
186
+      )
187
+      this.endShow = false
188 188
     },
189
-    getEducation(id) {
189
+    getEducation (id) {
190 190
       getEducation(
191 191
         id,
192 192
         this.limit,
@@ -195,19 +195,19 @@ export default {
195 195
         this.endTime
196 196
       ).then(response => {
197 197
         if (response.data.state === 1) {
198
-          var education = response.data.data.education;
199
-          let arr = this.Education;
200
-          arr.push(...education);
201
-          this.Education = arr;
202
-          var total = response.data.data.total;
203
-          this.total = total;
204
-          this.loading = false;
198
+          var education = response.data.data.education
199
+          let arr = this.Education
200
+          arr.push(...education)
201
+          this.Education = arr
202
+          var total = response.data.data.total
203
+          this.total = total
204
+          this.loading = false
205 205
         }
206
-      });
206
+      })
207 207
     },
208
-    onLoad() {
208
+    onLoad () {
209 209
       setTimeout(() => {
210
-        this.page++;
210
+        this.page++
211 211
         if (this.page <= Math.ceil(this.total / 10)) {
212 212
           this.getEducation(
213 213
             this.patient_id,
@@ -215,90 +215,90 @@ export default {
215 215
             this.page,
216 216
             this.startTime,
217 217
             this.endTime
218
-          );
218
+          )
219 219
         } else {
220
-          this.loading = false;
221
-          this.finished = true;
220
+          this.loading = false
221
+          this.finished = true
222 222
         }
223
-      }, 3000);
223
+      }, 3000)
224 224
     },
225
-    getPatientDetail(patientid) {
225
+    getPatientDetail (patientid) {
226 226
       getPatientDetail(patientid).then(response => {
227 227
         if (response.data.state === 1) {
228
-          var patientDetail = response.data.data.patientDetail;
228
+          var patientDetail = response.data.data.patientDetail
229 229
           if (patientDetail.blood_patients == 0) {
230
-            this.Education = [];
231
-            this.showOne = false;
232
-            this.showTwo = true;
230
+            this.Education = []
231
+            this.showOne = false
232
+            this.showTwo = true
233 233
           }
234 234
           if (patientDetail.blood_patients == 1) {
235
-            this.showOne = true;
236
-            this.showTwo = false;
235
+            this.showOne = true
236
+            this.showTwo = false
237 237
           }
238
-          this.patientName = patientDetail.name;
238
+          this.patientName = patientDetail.name
239 239
         }
240
-      });
240
+      })
241 241
     },
242
-    getTime(time) {
242
+    getTime (time) {
243 243
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
244
-      return uParseTime(time, "{y}-{m}-{d}");
244
+      return uParseTime(time, '{y}-{m}-{d}')
245 245
     },
246
-    toEducationDetail(id) {
247
-      var patientid = this.$route.query.patientid;
246
+    toEducationDetail (id) {
247
+      var patientid = this.$route.query.patientid
248 248
       this.$router.push(
249
-        "/editEducation?id=" +
249
+        '/editEducation?id=' +
250 250
           id +
251
-          "&patientid=" +
251
+          '&patientid=' +
252 252
           patientid +
253
-          "&active=" +
253
+          '&active=' +
254 254
           this.active
255
-      );
255
+      )
256 256
     },
257
-    toDeleteEducation(id, index) {
258
-      this.id = id;
259
-      this.index = index;
260
-      this.newShow = true;
257
+    toDeleteEducation (id, index) {
258
+      this.id = id
259
+      this.index = index
260
+      this.newShow = true
261 261
     },
262
-    DeleteEducation(value) {
262
+    DeleteEducation (value) {
263 263
       // console.log("value", value);
264
-      if (value.name == "查看全部") {
265
-        var patientid = this.$route.query.patientid;
264
+      if (value.name == '查看全部') {
265
+        var patientid = this.$route.query.patientid
266 266
         this.$router.push(
267
-          "/editEducation?id=" +
267
+          '/editEducation?id=' +
268 268
             this.id +
269
-            "&patientid=" +
269
+            '&patientid=' +
270 270
             patientid +
271
-            "&active=" +
271
+            '&active=' +
272 272
             this.active
273
-        );
273
+        )
274 274
       }
275
-      if (value.name == "全部删除") {
276
-        this.DeleteEducationOne(this.id, this.index);
275
+      if (value.name == '全部删除') {
276
+        this.DeleteEducationOne(this.id, this.index)
277 277
       }
278 278
     },
279
-    DeleteEducationOne(id, index) {
279
+    DeleteEducationOne (id, index) {
280 280
       Dialog.confirm({
281
-        title: "删除提示!",
282
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
281
+        title: '删除提示!',
282
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
283 283
       }).then(() => {
284 284
         DeleteEducationOne(id).then(response => {
285 285
           if (response.data.state === 1) {
286
-            var msg = response.data.data.msg;
286
+            var msg = response.data.data.msg
287 287
             // console.log("msg", msg);
288
-            this.Education.splice(index, 1);
289
-            this.newShow = false;
288
+            this.Education.splice(index, 1)
289
+            this.newShow = false
290 290
           }
291
-        });
292
-      });
291
+        })
292
+      })
293 293
     }
294 294
   },
295
-  created() {
296
-    var patientid = this.$route.query.patientid;
297
-    this.getPatientDetail(patientid);
298
-    this.getEducation(patientid);
299
-    this.patient_id = patientid;
295
+  created () {
296
+    var patientid = this.$route.query.patientid
297
+    this.getPatientDetail(patientid)
298
+    this.getEducation(patientid)
299
+    this.patient_id = patientid
300 300
   }
301
-};
301
+}
302 302
 </script>
303 303
 
304 304
 <style lang="scss" scoped>

+ 137 - 137
src/pages/doctorAdvice/components/Inspection.vue Просмотреть файл

@@ -52,7 +52,7 @@
52 52
                   />
53 53
                 </div>
54 54
               </div>
55
-              <div class="all">全部</div>
55
+              <div class="all" @click="toInspection(item.inspect_date)">全部</div>
56 56
             </div>
57 57
           </div>
58 58
         </van-list>
@@ -129,15 +129,15 @@ import {
129 129
   getInspection,
130 130
   DeleteInspection,
131 131
   DeleteChildInspection
132
-} from "@/api/patient/patient";
133
-import { uParseTime } from "@/utils/tools";
134
-import { Dialog } from "vant";
135
-const moment = require("moment");
132
+} from '@/api/patient/patient'
133
+import { uParseTime } from '@/utils/tools'
134
+import { Dialog } from 'vant'
135
+const moment = require('moment')
136 136
 export default {
137 137
   props: {
138 138
     active: Number
139 139
   },
140
-  data() {
140
+  data () {
141 141
     return {
142 142
       loading: false,
143 143
       finished: false,
@@ -146,15 +146,15 @@ export default {
146 146
       typeShow: false,
147 147
       startShow: false,
148 148
       endShow: false,
149
-      type: "全部",
149
+      type: '全部',
150 150
       columns: [],
151
-      startTime: "请选择",
152
-      endTime: "请选择",
151
+      startTime: '请选择',
152
+      endTime: '请选择',
153 153
       minDate: new Date(1970, 0, 1),
154 154
       maxDate: new Date(2025, 10, 1),
155 155
       currentDate: new Date(),
156
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
157
-      actions1: [{ name: "删除" }],
156
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
157
+      actions1: [{ name: '删除' }],
158 158
       showOne: true,
159 159
       showTwo: false,
160 160
       list: [],
@@ -167,24 +167,24 @@ export default {
167 167
       checkdata: [],
168 168
       date: 0,
169 169
       index: 0,
170
-      name: "",
171
-      date: "",
172
-      index: "",
170
+      name: '',
171
+      date: '',
172
+      index: '',
173 173
       restatus: 0
174
-    };
174
+    }
175 175
   },
176 176
   methods: {
177
-    onCancel() {
178
-      this.typeShow = false;
177
+    onCancel () {
178
+      this.typeShow = false
179 179
     },
180
-    onConfirm(value) {
180
+    onConfirm (value) {
181 181
       for (let i = 0; i < this.checkdata.length; i++) {
182 182
         if (value == this.checkdata[i].project_name) {
183
-          this.project_id = this.checkdata[i].project_id;
183
+          this.project_id = this.checkdata[i].project_id
184 184
         }
185 185
       }
186 186
       // console.log("projectid", this.project_id);
187
-      this.type = value;
187
+      this.type = value
188 188
       this.getInspection(
189 189
         this.patientid,
190 190
         this.limit,
@@ -192,22 +192,22 @@ export default {
192 192
         this.startTime,
193 193
         this.endTime,
194 194
         this.project_id
195
-      );
196
-      this.typeShow = false;
195
+      )
196
+      this.typeShow = false
197 197
     },
198
-    getstartTime(value) {
198
+    getstartTime (value) {
199 199
       // console.log(value);
200
-      let year = value.getFullYear();
201
-      let month = value.getMonth() + 1;
202
-      let day = value.getDate();
200
+      let year = value.getFullYear()
201
+      let month = value.getMonth() + 1
202
+      let day = value.getDate()
203 203
       if (month >= 1 && month <= 9) {
204
-        month = `0${month}`;
204
+        month = `0${month}`
205 205
       }
206 206
       if (day >= 1 && day <= 9) {
207
-        day = `0${day}`;
207
+        day = `0${day}`
208 208
       }
209 209
 
210
-      this.startTime = `${year}-${month}-${day}`;
210
+      this.startTime = `${year}-${month}-${day}`
211 211
       this.getInspection(
212 212
         this.patientid,
213 213
         this.limit,
@@ -215,22 +215,22 @@ export default {
215 215
         this.startTime,
216 216
         this.endTime,
217 217
         this.project_id
218
-      );
219
-      this.startShow = false;
218
+      )
219
+      this.startShow = false
220 220
     },
221
-    getstartTime2(value) {
221
+    getstartTime2 (value) {
222 222
       // console.log(value);
223
-      let year = value.getFullYear();
224
-      let month = value.getMonth() + 1;
225
-      let day = value.getDate();
223
+      let year = value.getFullYear()
224
+      let month = value.getMonth() + 1
225
+      let day = value.getDate()
226 226
       if (month >= 1 && month <= 9) {
227
-        month = `0${month}`;
227
+        month = `0${month}`
228 228
       }
229 229
       if (day >= 1 && day <= 9) {
230
-        day = `0${day}`;
230
+        day = `0${day}`
231 231
       }
232 232
 
233
-      this.endTime = `${year}-${month}-${day}`;
233
+      this.endTime = `${year}-${month}-${day}`
234 234
       this.getInspection(
235 235
         this.patientid,
236 236
         this.limit,
@@ -238,40 +238,40 @@ export default {
238 238
         this.startTime,
239 239
         this.endTime,
240 240
         this.project_id
241
-      );
242
-      this.endShow = false;
241
+      )
242
+      this.endShow = false
243 243
     },
244
-    getPatientDetail(patientid) {
244
+    getPatientDetail (patientid) {
245 245
       getPatientDetail(patientid).then(response => {
246 246
         if (response.data.state === 1) {
247
-          var patientDetail = response.data.data.patientDetail;
247
+          var patientDetail = response.data.data.patientDetail
248 248
           // console.log("patientDetail", patientDetail);
249 249
           if (patientDetail.blood_patients == 0) {
250
-            this.Inspection = [];
251
-            this.showOne = false;
252
-            this.showTwo = true;
250
+            this.Inspection = []
251
+            this.showOne = false
252
+            this.showTwo = true
253 253
           }
254 254
           if (patientDetail.blood_patients == 1) {
255
-            this.showOne = true;
256
-            this.showTwo = false;
255
+            this.showOne = true
256
+            this.showTwo = false
257 257
           }
258
-          this.patientName = patientDetail.name;
258
+          this.patientName = patientDetail.name
259 259
         }
260
-      });
260
+      })
261 261
     },
262
-    getAllInspection() {
262
+    getAllInspection () {
263 263
       getAllInspection().then(response => {
264 264
         if (response.data.state === 1) {
265
-          var inspection = response.data.data.inspection;
266
-          console.log("inspection", inspection);
267
-          this.checkdata = inspection;
265
+          var inspection = response.data.data.inspection
266
+          console.log('inspection', inspection)
267
+          this.checkdata = inspection
268 268
           for (let i = 0; i < inspection.length; i++) {
269
-            this.columns.push(inspection[i].project_name);
269
+            this.columns.push(inspection[i].project_name)
270 270
           }
271 271
         }
272
-      });
272
+      })
273 273
     },
274
-    getInspection(patientid) {
274
+    getInspection (patientid) {
275 275
       getInspection(
276 276
         patientid,
277 277
         this.limit,
@@ -281,148 +281,148 @@ export default {
281 281
         this.project_id
282 282
       ).then(response => {
283 283
         if (response.data.state == 1) {
284
-          var inspection = response.data.data.inspection;
285
-          console.log("为什么", inspection);
286
-          var total = response.data.data.total;
284
+          var inspection = response.data.data.inspection
285
+          console.log('为什么', inspection)
286
+          var total = response.data.data.total
287 287
           // console.log("total", total);
288
-          let dataInfo = {};
288
+          let dataInfo = {}
289 289
           inspection.forEach((item, index) => {
290
-            let { inspect_date } = item;
290
+            let { inspect_date } = item
291 291
             if (!dataInfo[inspect_date]) {
292 292
               dataInfo[inspect_date] = {
293 293
                 inspect_date,
294 294
                 child: []
295
-              };
295
+              }
296 296
             }
297
-            dataInfo[inspect_date].child.push(item);
298
-          });
299
-          let list = Object.values(dataInfo); // list 转换成功的数据
297
+            dataInfo[inspect_date].child.push(item)
298
+          })
299
+          let list = Object.values(dataInfo) // list 转换成功的数据
300 300
           // console.log("按时间分组", list);
301
-          let a = [];
301
+          let a = []
302 302
           list.map((item, index) => {
303
-            let arr = [];
304
-            a.push(item.child);
303
+            let arr = []
304
+            a.push(item.child)
305 305
             item.child.map((it, i) => {
306 306
               if (arr.indexOf(it.project_name) != -1) {
307 307
               } else {
308
-                arr.push(it.project_name);
308
+                arr.push(it.project_name)
309 309
               }
310
-            });
310
+            })
311 311
             // console.log("arr", arr);
312
-            item.child = arr;
313
-          });
314
-          this.Inspection = list.reverse();
315
-          console.log("this", this.Inspection);
312
+            item.child = arr
313
+          })
314
+          this.Inspection = list.reverse()
315
+          console.log('this', this.Inspection)
316 316
         }
317
-      });
318
-      this.finished = true;
317
+      })
318
+      this.finished = true
319 319
     },
320
-    getTime(time) {
321
-      console.log("time是------", time);
320
+    getTime (time) {
321
+      console.log('time是------', time)
322 322
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
323
-      return uParseTime(time, "{y}-{m}-{d}");
323
+      return uParseTime(time, '{y}-{m}-{d}')
324 324
     },
325
-    onLoad() {},
326
-    toInspection(date) {
327
-      var patientid = this.$route.query.patientid;
325
+    onLoad () {},
326
+    toInspection (date) {
327
+      var patientid = this.$route.query.patientid
328 328
       if (this.restatus == 1) {
329 329
         this.$router.push(
330
-          "/allinspection?patientid=" +
330
+          '/allinspection?patientid=' +
331 331
             patientid +
332
-            "&date=" +
332
+            '&date=' +
333 333
             date +
334
-            "&active=" +
334
+            '&active=' +
335 335
             this.active +
336
-            "&restatus=" +
336
+            '&restatus=' +
337 337
             this.restatus
338
-        );
338
+        )
339 339
       } else {
340 340
         this.$router.push(
341
-          "/allinspection?patientid=" +
341
+          '/allinspection?patientid=' +
342 342
             patientid +
343
-            "&date=" +
343
+            '&date=' +
344 344
             date +
345
-            "&active=" +
345
+            '&active=' +
346 346
             this.active
347
-        );
347
+        )
348 348
       }
349 349
     },
350
-    Delete(date, index) {
351
-      this.newShow = true;
352
-      this.date = date;
353
-      this.index = index;
350
+    Delete (date, index) {
351
+      this.newShow = true
352
+      this.date = date
353
+      this.index = index
354 354
     },
355
-    toDelete(val) {
355
+    toDelete (val) {
356 356
       // console.log("val", val);
357
-      if (val.name === "查看全部") {
358
-        var patientid = this.$route.query.patientid;
357
+      if (val.name === '查看全部') {
358
+        var patientid = this.$route.query.patientid
359 359
         this.$router.push(
360
-          "/allinspection?patientid=" +
360
+          '/allinspection?patientid=' +
361 361
             patientid +
362
-            "&date=" +
362
+            '&date=' +
363 363
             this.date +
364
-            "&active=" +
364
+            '&active=' +
365 365
             this.active
366
-        );
366
+        )
367 367
       }
368
-      if (val.name === "全部删除") {
369
-        this.DeleteInspection(this.date, this.index);
368
+      if (val.name === '全部删除') {
369
+        this.DeleteInspection(this.date, this.index)
370 370
       }
371 371
     },
372
-    DeleteOne(name, date, index) {
373
-      this.newShowOne = true;
374
-      this.name = name;
375
-      this.date = date;
376
-      this.index = index;
372
+    DeleteOne (name, date, index) {
373
+      this.newShowOne = true
374
+      this.name = name
375
+      this.date = date
376
+      this.index = index
377 377
     },
378
-    DeleteInspectionOne(val) {
379
-      if (val.name == "删除") {
380
-        this.DeleteChildInspection(this.name, this.date, this.index);
378
+    DeleteInspectionOne (val) {
379
+      if (val.name == '删除') {
380
+        this.DeleteChildInspection(this.name, this.date, this.index)
381 381
       }
382 382
     },
383 383
     // 删除检验检测
384
-    DeleteInspection(name, date, index) {
384
+    DeleteInspection (name, date, index) {
385 385
       Dialog.confirm({
386
-        title: "删除提示!",
387
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
386
+        title: '删除提示!',
387
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
388 388
       }).then(() => {
389 389
         DeleteInspection(name, date).then(response => {
390 390
           if (response.data.state === 1) {
391
-            var msg = response.data.data.msg;
392
-            this.Inspection.splice(index, 1);
393
-            this.newShow = false;
391
+            var msg = response.data.data.msg
392
+            this.Inspection.splice(index, 1)
393
+            this.newShow = false
394 394
           }
395
-        });
396
-      });
395
+        })
396
+      })
397 397
     },
398 398
     // 删除子项目
399
-    DeleteChildInspection(name, date, index) {
399
+    DeleteChildInspection (name, date, index) {
400 400
       Dialog.confirm({
401
-        title: "删除提示!",
402
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
401
+        title: '删除提示!',
402
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
403 403
       }).then(() => {
404 404
         DeleteChildInspection(name, date).then(response => {
405 405
           if (response.data.state === 1) {
406
-            var msg = response.data.data.msg;
406
+            var msg = response.data.data.msg
407 407
             // this.Inspection.splice(index, 1);
408
-            this.getInspection(this.patientid);
409
-            this.newShowOne = false;
408
+            this.getInspection(this.patientid)
409
+            this.newShowOne = false
410 410
           }
411
-        });
412
-      });
411
+        })
412
+      })
413 413
     }
414 414
   },
415
-  created() {
416
-    var patientid = this.$route.query.patientid;
417
-    this.patientid = patientid;
418
-    this.getPatientDetail(patientid);
415
+  created () {
416
+    var patientid = this.$route.query.patientid
417
+    this.patientid = patientid
418
+    this.getPatientDetail(patientid)
419 419
     // 获取所有检验检查项目
420
-    this.getAllInspection();
421
-    this.getInspection(patientid);
422
-    var restatus = this.$route.query.restatus;
423
-    this.restatus = restatus;
420
+    this.getAllInspection()
421
+    this.getInspection(patientid)
422
+    var restatus = this.$route.query.restatus
423
+    this.restatus = restatus
424 424
   }
425
-};
425
+}
426 426
 </script>
427 427
 
428 428
 <style lang="scss" scoped>

+ 148 - 148
src/pages/doctorAdvice/components/LongDialysis.vue Просмотреть файл

@@ -111,7 +111,7 @@
111 111
                 <p>实际超滤量(L):{{ item.ultrafiltration }}</p>
112 112
                 <div>备注:{{ item.remark }}</div>
113 113
               </div>
114
-              <div class="all">全部</div>
114
+              <div class="all" @click="toLongDialysisDetail(item.id)">全部</div>
115 115
             </div>
116 116
           </div>
117 117
         </van-list>
@@ -181,41 +181,41 @@ import {
181 181
   GetLongDialysisRecord,
182 182
   getPatientDetail,
183 183
   DeleteLongDialysis
184
-} from "@/api/patient/patient";
185
-import { uParseTime } from "@/utils/tools";
186
-import Vue from "vue";
187
-import { Dialog } from "vant";
188
-const moment = require("moment");
184
+} from '@/api/patient/patient'
185
+import { uParseTime } from '@/utils/tools'
186
+import Vue from 'vue'
187
+import { Dialog } from 'vant'
188
+const moment = require('moment')
189 189
 export default {
190 190
   props: {
191 191
     active: Number
192 192
   },
193
-  data() {
193
+  data () {
194 194
     return {
195 195
       newShow: false,
196 196
       typeShow: false,
197 197
       startShow: false,
198 198
       endShow: false,
199
-      type: "请选择",
199
+      type: '请选择',
200 200
       columns: [
201
-        "杭州",
202
-        "宁波",
203
-        "温州",
204
-        "嘉兴",
205
-        "湖州",
206
-        "杭州",
207
-        "宁波",
208
-        "温州",
209
-        "嘉兴",
210
-        "湖州"
201
+        '杭州',
202
+        '宁波',
203
+        '温州',
204
+        '嘉兴',
205
+        '湖州',
206
+        '杭州',
207
+        '宁波',
208
+        '温州',
209
+        '嘉兴',
210
+        '湖州'
211 211
       ],
212
-      startTime: "请选择",
213
-      endTime: "请选择",
214
-      endTimes: "",
212
+      startTime: '请选择',
213
+      endTime: '请选择',
214
+      endTimes: '',
215 215
       minDate: new Date(1970, 0, 1),
216 216
       maxDate: new Date(2025, 10, 1),
217 217
       currentDate: new Date(),
218
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
218
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
219 219
       loading: false,
220 220
       finished: false,
221 221
       limit: 10,
@@ -233,68 +233,68 @@ export default {
233 233
       blood_access_option: [],
234 234
       dialysisrecord: [],
235 235
       list: [],
236
-      patient_id: "",
236
+      patient_id: '',
237 237
       showOne: true,
238 238
       showTwo: false,
239 239
       id: 0,
240 240
       index: 0
241
-    };
241
+    }
242 242
   },
243 243
   methods: {
244
-    onCancel() {
245
-      this.typeShow = false;
244
+    onCancel () {
245
+      this.typeShow = false
246 246
     },
247
-    onConfirm(value) {
248
-      this.type = value;
249
-      this.typeShow = false;
247
+    onConfirm (value) {
248
+      this.type = value
249
+      this.typeShow = false
250 250
     },
251
-    getstartTime(value) {
252
-      this.page = 1;
253
-      let year = value.getFullYear();
254
-      let month = value.getMonth() + 1;
255
-      let day = value.getDate();
251
+    getstartTime (value) {
252
+      this.page = 1
253
+      let year = value.getFullYear()
254
+      let month = value.getMonth() + 1
255
+      let day = value.getDate()
256 256
       if (month >= 1 && month <= 9) {
257
-        month = `0${month}`;
257
+        month = `0${month}`
258 258
       }
259 259
       if (day >= 1 && day <= 9) {
260
-        day = `0${day}`;
260
+        day = `0${day}`
261 261
       }
262 262
 
263
-      this.startTime = `${year}-${month}-${day}`;
264
-      this.dialysisrecord = [];
263
+      this.startTime = `${year}-${month}-${day}`
264
+      this.dialysisrecord = []
265 265
       this.GetLongDialysisRecord(
266 266
         this.patient_id,
267 267
         this.limit,
268 268
         this.page,
269 269
         this.startTime,
270 270
         this.endTime
271
-      );
272
-      this.startShow = false;
271
+      )
272
+      this.startShow = false
273 273
     },
274
-    getstartTime2(value) {
275
-      this.page = 1;
276
-      let year = value.getFullYear();
277
-      let month = value.getMonth() + 1;
278
-      let day = value.getDate();
274
+    getstartTime2 (value) {
275
+      this.page = 1
276
+      let year = value.getFullYear()
277
+      let month = value.getMonth() + 1
278
+      let day = value.getDate()
279 279
       if (month >= 1 && month <= 9) {
280
-        month = `0${month}`;
280
+        month = `0${month}`
281 281
       }
282 282
       if (day >= 1 && day <= 9) {
283
-        day = `0${day}`;
283
+        day = `0${day}`
284 284
       }
285 285
 
286
-      this.endTime = `${year}-${month}-${day}`;
287
-      this.dialysisrecord = [];
286
+      this.endTime = `${year}-${month}-${day}`
287
+      this.dialysisrecord = []
288 288
       this.GetLongDialysisRecord(
289 289
         this.patient_id,
290 290
         this.limit,
291 291
         this.page,
292 292
         this.startTime,
293 293
         this.endTime
294
-      );
295
-      this.endShow = false;
294
+      )
295
+      this.endShow = false
296 296
     },
297
-    GetLongDialysisRecord(id, limit, page, startime, endtime) {
297
+    GetLongDialysisRecord (id, limit, page, startime, endtime) {
298 298
       GetLongDialysisRecord(
299 299
         id,
300 300
         this.limit,
@@ -303,101 +303,101 @@ export default {
303 303
         this.endTimes
304 304
       ).then(response => {
305 305
         if (response.data.state === 1) {
306
-          var dialysis = response.data.data.dialysisrecord;
306
+          var dialysis = response.data.data.dialysisrecord
307 307
           for (let index = 0; index < dialysis.length; index++) {
308 308
             if (dialysis[index].mode_id === 1) {
309
-              dialysis[index].mode_id = "HD";
309
+              dialysis[index].mode_id = 'HD'
310 310
             }
311 311
             if (dialysis[index].mode_id === 2) {
312
-              dialysis[index].mode_id = "HDF";
312
+              dialysis[index].mode_id = 'HDF'
313 313
             }
314 314
             if (dialysis[index].mode_id === 3) {
315
-              dialysis[index].mode_id = "HD+HP";
315
+              dialysis[index].mode_id = 'HD+HP'
316 316
             }
317 317
             if (dialysis[index].mode_id === 4) {
318
-              dialysis[index].mode_id = "HP";
318
+              dialysis[index].mode_id = 'HP'
319 319
             }
320 320
             if (dialysis[index].mode_id === 5) {
321
-              dialysis[index].mode_id = "HF";
321
+              dialysis[index].mode_id = 'HF'
322 322
             }
323 323
             if (dialysis[index].mode_id === 6) {
324
-              dialysis[index].mode_id = "SCUF";
324
+              dialysis[index].mode_id = 'SCUF'
325 325
             }
326 326
             if (dialysis[index].mode_id === 7) {
327
-              dialysis[index].mode_id = "IUF";
327
+              dialysis[index].mode_id = 'IUF'
328 328
             }
329 329
             if (dialysis[index].mode_id === 8) {
330
-              dialysis[index].mode_id = "HFHD";
330
+              dialysis[index].mode_id = 'HFHD'
331 331
             }
332 332
             if (dialysis[index].mode_id === 9) {
333
-              dialysis[index].mode_id = "HFHD+HP";
333
+              dialysis[index].mode_id = 'HFHD+HP'
334 334
             }
335 335
             if (dialysis[index].mode_id === 10) {
336
-              dialysis[index].mode_id = "PHF";
336
+              dialysis[index].mode_id = 'PHF'
337 337
             }
338 338
             if (dialysis[index].mode_id === 11) {
339
-              dialysis[index].mode_id = "HFR";
339
+              dialysis[index].mode_id = 'HFR'
340 340
             }
341 341
             if (dialysis[index].mode_id === 12) {
342
-              dialysis[index].mode_id = "HDF+HP";
342
+              dialysis[index].mode_id = 'HDF+HP'
343 343
             }
344 344
             if (dialysis[index].mode_id === 13) {
345
-              dialysis[index].mode_id = "CRRT";
345
+              dialysis[index].mode_id = 'CRRT'
346 346
             }
347 347
             if (dialysis[index].mode_id === 14) {
348
-              dialysis[index].mode_id = "腹水回输";
348
+              dialysis[index].mode_id = '腹水回输'
349 349
             }
350 350
             if (dialysis[index].mode_id === 15) {
351
-              dialysis[index].mode_id = "HD前置换";
351
+              dialysis[index].mode_id = 'HD前置换'
352 352
             }
353 353
             if (dialysis[index].mode_id === 16) {
354
-              dialysis[index].mode_id = "HD后置换";
354
+              dialysis[index].mode_id = 'HD后置换'
355 355
             }
356 356
             if (dialysis[index].mode_id === 17) {
357
-              dialysis[index].mode_id = "HDF前置换";
357
+              dialysis[index].mode_id = 'HDF前置换'
358 358
             }
359 359
             if (dialysis[index].mode_id === 18) {
360
-              dialysis[index].mode_id = "HDF后置换";
360
+              dialysis[index].mode_id = 'HDF后置换'
361 361
             }
362 362
 
363 363
             if (dialysis[index].dialysate_formulation === 1) {
364
-              dialysis[index].dialysate_formulation = "常规";
364
+              dialysis[index].dialysate_formulation = '常规'
365 365
             }
366 366
             if (dialysis[index].dialysate_formulation === 2) {
367
-              dialysis[index].dialysate_formulation = "低钙";
367
+              dialysis[index].dialysate_formulation = '低钙'
368 368
             }
369 369
             if (dialysis[index].dialysate_formulation === 1) {
370
-              dialysis[index].dialysate_formulation = "高钙";
370
+              dialysis[index].dialysate_formulation = '高钙'
371 371
             }
372 372
             if (dialysis[index].dialysate_formulation === 1) {
373
-              dialysis[index].dialysate_formulation = "低钠";
373
+              dialysis[index].dialysate_formulation = '低钠'
374 374
             }
375 375
             if (dialysis[index].dialysate_formulation === 1) {
376
-              dialysis[index].dialysate_formulation = "高钠";
376
+              dialysis[index].dialysate_formulation = '高钠'
377 377
             }
378 378
             if (dialysis[index].displace_liqui_part === 0) {
379
-              dialysis[index].displace_liqui_part = "";
379
+              dialysis[index].displace_liqui_part = ''
380 380
             }
381 381
             if (dialysis[index].displace_liqui_part === 1) {
382
-              dialysis[index].displace_liqui_part = "前稀释";
382
+              dialysis[index].displace_liqui_part = '前稀释'
383 383
             }
384 384
             if (dialysis[index].displace_liqui_part === 2) {
385
-              dialysis[index].displace_liqui_part = "后稀释";
385
+              dialysis[index].displace_liqui_part = '后稀释'
386 386
             }
387 387
           }
388
-          let arr = this.dialysisrecord;
389
-          arr.push(...dialysis);
390
-          this.dialysisrecord = arr;
388
+          let arr = this.dialysisrecord
389
+          arr.push(...dialysis)
390
+          this.dialysisrecord = arr
391 391
           // console.log("长期透析处方", dialysis);
392
-          var total = response.data.data.total;
392
+          var total = response.data.data.total
393 393
           // console.log("total", total);
394
-          this.loading = false;
394
+          this.loading = false
395 395
         }
396
-      });
396
+      })
397 397
     },
398
-    onLoad() {
398
+    onLoad () {
399 399
       setTimeout(() => {
400
-        this.page++;
400
+        this.page++
401 401
         if (this.page <= Math.ceil(this.total / 10)) {
402 402
           this.GetLongDialysisRecord(
403 403
             this.patient_id,
@@ -405,113 +405,113 @@ export default {
405 405
             this.page,
406 406
             this.startTime,
407 407
             this.endTimes
408
-          );
408
+          )
409 409
         } else {
410
-          this.loading = false;
411
-          this.finished = true;
410
+          this.loading = false
411
+          this.finished = true
412 412
         }
413
-      }, 1000);
413
+      }, 1000)
414 414
     },
415
-    getTime(time) {
415
+    getTime (time) {
416 416
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
417
-      return uParseTime(time, "{y}-{m}-{d}");
417
+      return uParseTime(time, '{y}-{m}-{d}')
418 418
     },
419
-    getBloodAccessOption(id) {
419
+    getBloodAccessOption (id) {
420 420
       for (let i = 0; i < this.blood_access_option.length; i++) {
421 421
         if ((this.blood_access_option[i].id = id)) {
422
-          return this.blood_access_option[i].name;
422
+          return this.blood_access_option[i].name
423 423
         }
424 424
       }
425 425
     },
426
-    getSpecialMedicine(id) {
426
+    getSpecialMedicine (id) {
427 427
       for (let i = 0; i < this.special_medicine_option.length; i++) {
428 428
         if ((this.special_medicine_option[i].id = id)) {
429
-          return this.special_medicine_option[i].name;
429
+          return this.special_medicine_option[i].name
430 430
         }
431 431
       }
432 432
     },
433
-    getPatientDetail(patientid) {
433
+    getPatientDetail (patientid) {
434 434
       getPatientDetail(patientid).then(response => {
435 435
         if (response.data.state === 1) {
436
-          var patientDetail = response.data.data.patientDetail;
436
+          var patientDetail = response.data.data.patientDetail
437 437
           if (patientDetail.blood_patients == 0) {
438
-            this.dialysisrecord = [];
439
-            this.showOne = false;
440
-            this.showTwo = true;
438
+            this.dialysisrecord = []
439
+            this.showOne = false
440
+            this.showTwo = true
441 441
           }
442 442
           if (patientDetail.blood_patients == 1) {
443
-            this.showOne = true;
444
-            this.showTwo = false;
443
+            this.showOne = true
444
+            this.showTwo = false
445 445
           }
446
-          this.patientName = patientDetail.name;
446
+          this.patientName = patientDetail.name
447 447
         }
448
-      });
448
+      })
449 449
     },
450
-    toLongDialysisDetail(id) {
451
-      var patientid = this.$route.query.patientid;
450
+    toLongDialysisDetail (id) {
451
+      var patientid = this.$route.query.patientid
452 452
       this.$router.push(
453
-        "/alllongdialysis?id=" +
453
+        '/alllongdialysis?id=' +
454 454
           id +
455
-          "&patientid=" +
455
+          '&patientid=' +
456 456
           patientid +
457
-          "&active=" +
457
+          '&active=' +
458 458
           this.active
459
-      );
459
+      )
460 460
     },
461
-    toLongDialysis(id, index) {
462
-      this.id = id;
463
-      this.index = index;
464
-      this.newShow = true;
461
+    toLongDialysis (id, index) {
462
+      this.id = id
463
+      this.index = index
464
+      this.newShow = true
465 465
     },
466
-    toDelete(value) {
467
-      if (value.name == "查看全部") {
468
-        var patientid = this.$route.query.patientid;
466
+    toDelete (value) {
467
+      if (value.name == '查看全部') {
468
+        var patientid = this.$route.query.patientid
469 469
         this.$router.push(
470
-          "/alllongdialysis?id=" +
470
+          '/alllongdialysis?id=' +
471 471
             this.id +
472
-            "&patientid=" +
472
+            '&patientid=' +
473 473
             patientid +
474
-            "&active=" +
474
+            '&active=' +
475 475
             this.active
476
-        );
476
+        )
477 477
       }
478
-      if (value.name == "全部删除") {
479
-        this.DeleteLongDialysis(this.id, this.index);
478
+      if (value.name == '全部删除') {
479
+        this.DeleteLongDialysis(this.id, this.index)
480 480
       }
481 481
     },
482
-    DeleteLongDialysis(id, index) {
482
+    DeleteLongDialysis (id, index) {
483 483
       Dialog.confirm({
484
-        title: "删除提示!",
485
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
484
+        title: '删除提示!',
485
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
486 486
       }).then(() => {
487 487
         DeleteLongDialysis(id).then(response => {
488 488
           if (response.data.state === 1) {
489
-            var msg = response.data.data.msg;
490
-            this.dialysisrecord.splice(index, 1);
491
-            this.newShow = false;
489
+            var msg = response.data.data.msg
490
+            this.dialysisrecord.splice(index, 1)
491
+            this.newShow = false
492 492
           }
493
-        });
494
-      });
493
+        })
494
+      })
495 495
     }
496 496
   },
497
-  created() {
498
-    var patientid = this.$route.query.patientid;
499
-    this.patient_id = patientid;
497
+  created () {
498
+    var patientid = this.$route.query.patientid
499
+    this.patient_id = patientid
500 500
 
501
-    this.GetLongDialysisRecord(patientid);
502
-    this.getPatientDetail(patientid);
503
-    this.blood_access_option = this.$store.getters.blood_access;
501
+    this.GetLongDialysisRecord(patientid)
502
+    this.getPatientDetail(patientid)
503
+    this.blood_access_option = this.$store.getters.blood_access
504 504
 
505
-    this.anticoagulantsSet = this.$store.getters.anticoagulants_set;
506
-    this.replacementWays = this.$store.getters.replacement_ways;
507
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
508
-    this.blood_filters = this.$store.getters.blood_filters;
509
-    this.dialysate_formulation = this.$store.getters.dialysate_formulation;
510
-    this.body_fluid_option = this.$store.getters.body_fluid;
511
-    this.special_medicine_option = this.$store.getters.special_medicine;
512
-    this.displace_liqui_part_option = this.$store.getters.displace_liqui;
505
+    this.anticoagulantsSet = this.$store.getters.anticoagulants_set
506
+    this.replacementWays = this.$store.getters.replacement_ways
507
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
508
+    this.blood_filters = this.$store.getters.blood_filters
509
+    this.dialysate_formulation = this.$store.getters.dialysate_formulation
510
+    this.body_fluid_option = this.$store.getters.body_fluid
511
+    this.special_medicine_option = this.$store.getters.special_medicine
512
+    this.displace_liqui_part_option = this.$store.getters.displace_liqui
513 513
   }
514
-};
514
+}
515 515
 </script>
516 516
 
517 517
 <style lang="scss" scoped>

+ 1 - 1
src/pages/doctorAdvice/components/RescueRecord.vue Просмотреть файл

@@ -46,7 +46,7 @@
46 46
                   <p>记录医生:{{ item.user_name }}</p>
47 47
                 </div>
48 48
               </div>
49
-              <div class="all">全部</div>
49
+              <div class="all" @click="toRescueRecord(item.id)">全部</div>
50 50
             </div>
51 51
           </div>
52 52
         </van-list>

+ 1 - 1
src/pages/doctorAdvice/components/Scheduling.vue Просмотреть файл

@@ -47,7 +47,7 @@
47 47
               <p>机号:{{item.number}}</p>
48 48
               <p>治疗模式:{{item.mode_id}}</p>
49 49
             </div>
50
-            <div class="all">全部</div>
50
+            <div class="all" @click="toEditSchduling(item.id)">全部</div>
51 51
           </div>
52 52
         </div>
53 53
         </van-list>

+ 6 - 4
src/pages/main/all/dryWeight.vue Просмотреть файл

@@ -49,18 +49,20 @@ export default {
49 49
       return uParseTime(time, '{y}-{m}-{d}')
50 50
     },
51 51
     toReturn () {
52
+      var patientid = this.$route.query.patientid
52 53
       this.$router.push(
53
-        '/details?patient_id=' + this.patientid + '&date=' + this.date + '&patient_name=' + this.patient_name + '&active1=' + 0 + '&active2=' + 2
54
+        '/details?patient_id=' + patientid + '&date=' + this.date + '&patient_name=' + this.patient_name + '&active1=' + 0 + '&active2=' + 2
54 55
       )
55 56
     }
56 57
   },
57 58
   created () {
58
-    this.active = parseInt(this.$route.query.active)
59
+  //  this.active = parseInt(this.$route.query.active)
59 60
     setRem()
60 61
     setHeight()
61 62
     var id = this.$route.query.id
62
-    var patientid = this.$route.query.patientid
63
-    this.patientid = patientid
63
+    // var patientid = this.$route.query.patientid
64
+    // console.log('为啥', patientid)
65
+    // this.patientid = patientid
64 66
     this.getDryWeightDetail(id)
65 67
     this.date = this.$route.query.date
66 68
     this.patient_name = this.$route.query.patient_name

+ 1 - 4
src/pages/main/all/education.vue Просмотреть файл

@@ -26,9 +26,6 @@ import { uParseTime } from '@/utils/tools'
26 26
 import { setRem, setHeight } from '@/libs/functionRem'
27 27
 import '../../../styles/resetStyle.scss'
28 28
 export default {
29
-  props: {
30
-    active: Number
31
-  },
32 29
   data () {
33 30
     return {
34 31
       patientid: 0,
@@ -58,7 +55,7 @@ export default {
58 55
     }
59 56
   },
60 57
   created () {
61
-    this.active = parseInt(this.$route.query.active)
58
+    // this.active = parseInt(this.$route.query.active)
62 59
     setRem()
63 60
     setHeight()
64 61
     var id = this.$route.query.id

+ 2 - 6
src/pages/main/dialysis/DryWeight.vue Просмотреть файл

@@ -289,12 +289,8 @@ export default {
289 289
     },
290 290
     getDryWeightDetail (id) {
291 291
       var patientid = this.$route.query.patient_id
292
-      this.$router.push(
293
-        '/dryweightwo?id=' +
294
-          id +
295
-          '&patientid=' +
296
-          patientid + '&date=' + this.date + '&patient_name=' + this.patient_name
297
-      )
292
+      console.log('patientid', patientid)
293
+      this.$router.push('/dryweightwo?id=' + id + '&patientid=' + patientid + '&date=' + this.date + '&patient_name=' + this.patient_name)
298 294
     },
299 295
     getPatientDetail (patientid) {
300 296
       getPatientDetail(patientid).then(response => {