Browse Source

Merge branch 'pad_statistics_branch'

csx 4 years ago
parent
commit
22053c4d36

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2 2
   "version": "1.2.703"
3
-}
3
+}

+ 0 - 2
src/api/patient/patient.js View File

@@ -624,7 +624,6 @@ export function getRoleName (id, orgid) {
624 624
     id: id,
625 625
     orgid: orgid
626 626
   }
627
-  console.log('params', params)
628 627
   return request({
629 628
     url: '/m/api/patient/getrolename',
630 629
     method: 'get',
@@ -931,7 +930,6 @@ export function getRolePosition (params) {
931 930
 }
932 931
 
933 932
 export function getMobile (params) {
934
-  console.log('params', params)
935 933
   return request({
936 934
     url: '/m/api/patient/getmobile',
937 935
     method: 'get',

+ 98 - 98
src/pages/doctorAdvice/components/CourseManagement.vue View File

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

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

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

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

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

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

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

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

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

+ 2 - 0
src/pages/main/DialysisArea.vue View File

@@ -5,6 +5,8 @@
5 5
         <ul>
6 6
           <el-popover
7 7
             v-model="zone_options_visible"
8
+
9
+
8 10
             placement="bottom"
9 11
             trigger="click"
10 12
           >

+ 6 - 4
src/pages/main/all/dryWeight.vue View File

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

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

+ 11 - 0
src/pages/main/dialog/OrdersDialog.vue View File

@@ -1059,7 +1059,18 @@ export default {
1059 1059
             currentAdviceIdArr.push(adviceArr[i].id);
1060 1060
           }
1061 1061
         }
1062
+
1063
+        if (currentAdviceIdArr.length <= 0){
1064
+          Toast.fail("请选择想要核对的医嘱");
1065
+          return false;
1066
+
1067
+        }
1068
+
1062 1069
         this.currentAdviceIdsStr = currentAdviceIdArr.join(",");
1070
+        if (this.currentAdviceIdsStr  == ""){
1071
+          Toast.fail("请选择想要核对的医嘱");
1072
+          return false;
1073
+        }
1063 1074
       } else {
1064 1075
         if (!(this.current_group_index >= 0 && this.current_advice_index < 0)) {
1065 1076
           return;

+ 2 - 2
src/pages/main/dialysis/AdviceTable.vue View File

@@ -375,7 +375,7 @@
375 375
             </div>
376 376
          </div>
377 377
 
378
-            <div class="all">全部</div>
378
+            <div class="all" @click="toDoctorAdviceDetail(item.start_time)">全部</div>
379 379
           </div>
380 380
         </van-list>
381 381
       </div>
@@ -1844,7 +1844,7 @@ export default {
1844 1844
   },
1845 1845
   watch: {
1846 1846
     $route(to, from) {
1847
-      var patientid = this.$route.query.patientid;
1847
+      var patientid = this.$route.query.patient_id;
1848 1848
     }
1849 1849
   }
1850 1850
 };

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

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

+ 3 - 7
src/pages/main/dialysis/DryWeight.vue View File

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

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

@@ -463,7 +463,7 @@
463 463
                 <p>实际超滤量(L):{{ item.ultrafiltration }}</p>
464 464
                 <div>备注:{{ item.remark }}</div>
465 465
               </div>
466
-              <div class="all">全部</div>
466
+              <div class="all" @click="toLongDialysisDetail(item.id)">全部</div>
467 467
             </div>
468 468
           </div>
469 469
         </van-list>

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

@@ -106,7 +106,7 @@
106 106
                   <p>{{ item.mission }}</p>
107 107
                 </div>
108 108
               </div>
109
-              <div class="all">全部</div>
109
+              <div class="all" @click="toEducationDetail(item.id)">全部</div>
110 110
             </div>
111 111
           </div>
112 112
         </van-list>

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

@@ -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/main/dialysis/SchedulTable.vue View File

@@ -84,7 +84,7 @@
84 84
               <p>机号:{{item.number}}</p>
85 85
               <p>治疗模式:{{item.mode_id}}</p>
86 86
             </div>
87
-            <div class="all">全部</div>
87
+            <div class="all" @click="toEditSchduling(item.id)">全部</div>
88 88
           </div>
89 89
         </div>
90 90
         </van-list>

+ 91 - 14
src/pages/main/template/DialysisPrintOrderThirteen.vue View File

@@ -86,13 +86,13 @@
86 86
           (<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-左') > -1 ? true : false" showValue="左"></label-box>
87 87
               <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('中心静脉置管-右') > -1 ? true : false" showValue="右"></label-box>)部位
88 88
           &nbsp;
89
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内') > -1 ? true : false" showValue="颈内"></label-box>
89
+          <label-box :isChecked="predialysis.blood_access_part_id ? (getPartName(predialysis.blood_access_part_id).indexOf('颈内') > -1 ? true : false) : false" showValue="颈内"></label-box>
90 90
           &nbsp;
91
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('锁骨下') > -1 ? true : false" showValue="锁骨下"></label-box>
91
+          <label-box :isChecked="predialysis.blood_access_part_id ? (getPartName(predialysis.blood_access_part_id).indexOf('锁骨下') > -1 ? true : false) : false" showValue="锁骨下"></label-box>
92 92
           &nbsp;
93
-          <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股') > -1 ? true : false" showValue="股"></label-box>
93
+          <label-box :isChecked="predialysis.blood_access_part_id ? (getPartName(predialysis.blood_access_part_id).indexOf('股') > -1 ? true : false) : false" showValue="股"></label-box>
94 94
           &nbsp;
95
-          <label-box :isChecked="['内瘘-左','内瘘-右','中心静脉置管-左','中心静脉置管-右','颈内','锁骨下','股'].indexOf(predialysis.blood_access_part_opera_name) == -1? true : false" showValue="其他"></label-box>
95
+          <label-box :isChecked="predialysis.blood_access_part_id ? (getPartName(predialysis.blood_access_part_id).indexOf('其他') > -1? true : false) :false" showValue="其他"></label-box>
96 96
           &nbsp;
97 97
         </div>
98 98
       </div>
@@ -187,6 +187,31 @@
187 187
               </div>kg
188 188
           </div>
189 189
       </div>
190
+      <div class="row">
191
+        透前评估 
192
+        <div class="inline_block under_line" style="width:93%;text-align: left;">
193
+          <div class="inline_block" style="margin-right:30px;">
194
+            体温
195
+            <div class="inline_block" style="width:50px;text-align:center">
196
+              {{ predialysis.temperature ? predialysis.temperature : "" }}
197
+            </div>℃
198
+          </div>
199
+          <div class="inline_block" style="margin-right:30px;">
200
+            血压
201
+            <div class="inline_block" style="width:100px;text-align:center">
202
+              {{ predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "" }}/
203
+              {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : "" }}
204
+            </div>mmHg
205
+          </div>
206
+          <div class="inline_block" style="margin-right:30px;">
207
+            脉搏
208
+            <div class="inline_block" style="width:50px;text-align:center">
209
+              {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
210
+            </div>次/分
211
+          </div>
212
+ 
213
+        </div>
214
+      </div>
190 215
 
191 216
       <table class="print-table" border="1">
192 217
         <tr>
@@ -238,7 +263,6 @@
238 263
       <table class="print-table" border="1">
239 264
         <tbody>
240 265
             <tr>
241
-              <td width="40"></td>
242 266
               <td width="60">时间</td>
243 267
               <td width="80">BP</td>
244 268
               <td width="40">心率</td>
@@ -253,15 +277,7 @@
253 277
             </tr>
254 278
 
255 279
 
256
-            <tr v-for="(monitor,i) in monitors" :key="monitor.id">
257
-              <td>
258
-                  <span v-if="i == 0">
259
-                      透前
260
-                  </span>
261
-                  <span v-if="i == 1">
262
-                      透后
263
-                  </span>
264
-              </td>
280
+            <tr v-for="monitor in monitors" :key="monitor.id">
265 281
               <td>&nbsp;
266 282
                 {{getTime(monitor.operate_time,'{h}:{i}')}}
267 283
               </td>
@@ -289,6 +305,53 @@
289 305
         </tbody>
290 306
       </table>
291 307
 
308
+      <table class="print-table" border="1">
309
+        <tbody>
310
+          <tr>
311
+            <td width="50" style="padding-left:5px;border:none;border-right:1px solid #000;">
312
+              透后评估
313
+            </td>
314
+
315
+            <td width="30" style="border:none;padding-left:5px;">
316
+              体温:
317
+            </td>
318
+            <td width="50" style="text-align:left;border:none;">
319
+              <div>
320
+                <span class="under_line" style="width:50px;display:inline-block;">
321
+                  {{ afterdialysis.temperature ? afterdialysis.temperature : "" }}
322
+                </span>℃
323
+              </div>
324
+            </td>
325
+            <!-- <td width="10" style="border:none;"></td> -->
326
+
327
+            <td width="30" style="border:none;padding-left:5px;">血压:</td>
328
+            <td width="100" style="text-align:left;border:none;line-height: 30px;">
329
+              <div>
330
+                <span class="under_line" style="width:100px;display:inline-block">
331
+                  {{ afterdialysis.systolic_blood_pressure ? afterdialysis.systolic_blood_pressure : "" }}/
332
+                  {{ afterdialysis.diastolic_blood_pressure ? afterdialysis.diastolic_blood_pressure : "" }}
333
+                </span>mmHg
334
+              </div>
335
+            </td>
336
+            <td width="30" style="border:none;padding-left:5px">脉搏:</td>
337
+            <td width="50" style="text-align:left;border:none;">
338
+              <div>
339
+                <span class="under_line" style="width:50px;display:inline-block">
340
+                  {{ predialysis.pulse_frequency ? predialysis.pulse_frequency : "" }}
341
+                </span>次/分
342
+              </div>
343
+            </td>
344
+            <td width="50" style="border:none;padding-left:5px">透析器凝血:</td>
345
+            <td width="120" style="text-align:left;border:none;">
346
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-0度') > -1 ? true : false" showValue="0"></label-box>
347
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅰ度') > -1 ? true : false" showValue="+"></label-box>
348
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅱ度') > -1" showValue="+ +"></label-box>
349
+              <label-box :isChecked="afterdialysis.cruor.indexOf('透析器-Ⅲ度') > -1 ? true : false" showValue="+ + +"></label-box>
350
+            </td>
351
+          </tr>
352
+        </tbody>
353
+      </table>
354
+
292 355
       <table class="print-table" border="1">
293 356
         <tr style="height:36px;text-align:left;border:none;">
294 357
           <td style="padding-left:5px;border:none">
@@ -980,6 +1043,13 @@ export default {
980 1043
           // checker: 0,
981 1044
         }
982 1045
       );
1046
+    },
1047
+    getPartName(id) {
1048
+      for (let i = 0; i < this.vascularAccess.length; i++) {
1049
+        if (this.vascularAccess[i].id == id) {
1050
+          return this.vascularAccess[i].name;
1051
+        }
1052
+      }
983 1053
     }
984 1054
   },
985 1055
   watch: {
@@ -1028,6 +1098,13 @@ export default {
1028 1098
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
1029 1099
     this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
1030 1100
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1101
+    var vascularAccess = getDataConfig("hemodialysis", "vascular_access");
1102
+    this.vascularAccess = vascularAccess;
1103
+    //console.log("hhe", vascularAccess);
1104
+    console.log(
1105
+      "血管通路部位",
1106
+      getDataConfig("hemodialysis", "vascular_access")
1107
+    );
1031 1108
 
1032 1109
     this.precautions = getDataConfig('hemodialysis', 'precaution')
1033 1110
 

+ 8 - 1
src/pages/main/today/TodayTab.vue View File

@@ -501,7 +501,14 @@ export default {
501 501
     },
502 502
     monitor_records: function () {
503 503
       this.$refs.monitoring.setRecords(this.monitor_records)
504
-    }
504
+    },
505
+    '$route': function (to, from) {
506
+      if(to.query.active1 == "2" && to.active2 == undefined){
507
+        this.date = this.$route.query.date
508
+        this.requestLongAdvice()
509
+        this.requestDialysisRecord()
510
+      }
511
+  }
505 512
 
506 513
     // $route: 'requestDialysisRecord'
507 514
   },

+ 192 - 192
src/pages/main/today/dialysisPrescription.vue View File

@@ -210,16 +210,16 @@
210 210
 </template>
211 211
 
212 212
 <script>
213
-import { getDataConfig } from "@/utils/data";
213
+import { getDataConfig } from '@/utils/data'
214 214
 export default {
215
-  name: "DialysisPrescription",
216
-  data() {
215
+  name: 'DialysisPrescription',
216
+  data () {
217 217
     return {
218
-      title: "透析处方",
218
+      title: '透析处方',
219 219
       perfusion_apparatus_map: {},
220 220
       dialysateFormulationMap: {},
221 221
       dialyzerPerfusionApparatus: []
222
-    };
222
+    }
223 223
   },
224 224
   props: {
225 225
     prescription: {
@@ -233,261 +233,261 @@ export default {
233 233
     }
234 234
   },
235 235
   computed: {
236
-    target_ultrafiltration: function() {
236
+    target_ultrafiltration: function () {
237 237
       var v = this.getValueStr(
238
-        "target_ultrafiltration",
239
-        "target_ultrafiltration"
240
-      );
241
-      v = this.getFloat(v);
242
-      return v.length == 0 ? "0" : v;
243
-    },
244
-    dialysis_mode: function() {
245
-      var mode = this.getValueStr("mode_id", "mode_id");
238
+        'target_ultrafiltration',
239
+        'target_ultrafiltration'
240
+      )
241
+      v = this.getFloat(v)
242
+      return v.length == 0 ? '0' : v
243
+    },
244
+    dialysis_mode: function () {
245
+      var mode = this.getValueStr('mode_id', 'mode_id')
246 246
       if (mode.length == 0) {
247
-        return "";
247
+        return ''
248 248
       }
249 249
       if (this.$store.getters.treatment_mode[mode] != undefined) {
250
-        return this.$store.getters.treatment_mode[mode].name;
250
+        return this.$store.getters.treatment_mode[mode].name
251 251
       }
252
-      return "";
252
+      return ''
253 253
     },
254
-    perfusion_apparatus: function() {
255
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
254
+    perfusion_apparatus: function () {
255
+      var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
256 256
       if (v.length == 0) {
257
-        return "";
257
+        return ''
258 258
       }
259 259
       if (this.perfusion_apparatus_map[v] != undefined) {
260
-        return this.perfusion_apparatus_map[v].name;
260
+        return this.perfusion_apparatus_map[v].name
261 261
       }
262
-      return "";
262
+      return ''
263 263
     },
264
-    displace_liqui: function() {
265
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
266
-      return v.length == 0 ? "0" : v;
264
+    displace_liqui: function () {
265
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
266
+      return v.length == 0 ? '0' : v
267 267
     },
268
-    anticoagulant_shouji: function() {
269
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
270
-      return v.length == 0 ? "0" : v;
268
+    anticoagulant_shouji: function () {
269
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
270
+      return v.length == 0 ? '0' : v
271 271
     },
272
-    kalium: function() {
273
-      var v = this.getValueStr("kalium", "kalium");
274
-      v = this.getFloat(v);
275
-      return v == 0 ? "0" : v;
272
+    kalium: function () {
273
+      var v = this.getValueStr('kalium', 'kalium')
274
+      v = this.getFloat(v)
275
+      return v == 0 ? '0' : v
276 276
     },
277
-    replacement_total: function() {
278
-      var v = this.getValueStr("replacement_total", "replacement_total");
279
-      return v.length == 0 ? "0" : v;
277
+    replacement_total: function () {
278
+      var v = this.getValueStr('replacement_total', 'replacement_total')
279
+      return v.length == 0 ? '0' : v
280 280
     },
281
-    bicarbonate: function() {
282
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
283
-      return v.length == 0 ? "0" : v;
281
+    bicarbonate: function () {
282
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
283
+      return v.length == 0 ? '0' : v
284 284
     },
285
-    dialysate_flow: function() {
286
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
287
-      return v.length == 0 ? "0" : v;
285
+    dialysate_flow: function () {
286
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
287
+      return v.length == 0 ? '0' : v
288 288
     },
289
-    dialysis_duration: function() {
289
+    dialysis_duration: function () {
290 290
       var dialysis_duration_hour = this.getValueStr(
291
-        "dialysis_duration_hour",
292
-        "dialysis_duration_hour"
293
-      );
291
+        'dialysis_duration_hour',
292
+        'dialysis_duration_hour'
293
+      )
294 294
       var dialysis_duration_minute = this.getValueStr(
295
-        "dialysis_duration_minute",
296
-        "dialysis_duration_minute"
297
-      );
295
+        'dialysis_duration_minute',
296
+        'dialysis_duration_minute'
297
+      )
298 298
       if (
299 299
         dialysis_duration_hour.length == 0 &&
300 300
         dialysis_duration_minute.length == 0
301 301
       ) {
302
-        return "0";
302
+        return '0'
303 303
       } else {
304 304
         var time =
305
-          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
306
-        return time.length == 0 ? "0" : time;
305
+          dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
306
+        return time.length == 0 ? '0' : time
307 307
       }
308 308
     },
309
-    blood_flow_volume: function() {
310
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
311
-      return v.length == 0 ? "0" : v;
309
+    blood_flow_volume: function () {
310
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
311
+      return v.length == 0 ? '0' : v
312 312
     },
313
-    replacement_way: function() {
314
-      return this.getValueStr("replacement_way", "replacement_way");
313
+    replacement_way: function () {
314
+      return this.getValueStr('replacement_way', 'replacement_way')
315 315
     },
316
-    anticoagulant_weichi: function() {
317
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
318
-      return v.length == 0 ? "0" : v;
316
+    anticoagulant_weichi: function () {
317
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
318
+      return v.length == 0 ? '0' : v
319 319
     },
320
-    sodium: function() {
321
-      var v = this.getValueStr("sodium", "sodium");
322
-      console.log(v);
323
-      v = this.getFloat(v);
324
-      console.log(v);
325
-      return v == 0 ? "0" : v;
320
+    sodium: function () {
321
+      var v = this.getValueStr('sodium', 'sodium')
322
+      console.log(v)
323
+      v = this.getFloat(v)
324
+      console.log(v)
325
+      return v == 0 ? '0' : v
326 326
     },
327
-    glucose: function() {
328
-      var v = this.getValueStr("glucose", "glucose");
329
-      return v.length == 0 ? "0" : v;
327
+    glucose: function () {
328
+      var v = this.getValueStr('glucose', 'glucose')
329
+      return v.length == 0 ? '0' : v
330 330
     },
331
-    dialysate_temperature: function() {
331
+    dialysate_temperature: function () {
332 332
       var v = this.getValueStr(
333
-        "dialysate_temperature",
334
-        "dialysate_temperature"
335
-      );
336
-      return v.length == 0 ? "0" : v;
333
+        'dialysate_temperature',
334
+        'dialysate_temperature'
335
+      )
336
+      return v.length == 0 ? '0' : v
337 337
     },
338
-    dialyzer: function() {
339
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
338
+    dialyzer: function () {
339
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
340 340
       if (v.length == 0) {
341
-        return "";
341
+        return ''
342 342
       }
343 343
       if (this.device_number_map[v] != undefined) {
344
-        return this.device_number_map[v].name;
344
+        return this.device_number_map[v].name
345 345
       }
346
-      return "";
346
+      return ''
347 347
     },
348
-    dialysate_formulation: function() {
348
+    dialysate_formulation: function () {
349 349
       var v = this.getValueStr(
350
-        "dialysate_formulation",
351
-        "dialysate_formulation"
352
-      );
350
+        'dialysate_formulation',
351
+        'dialysate_formulation'
352
+      )
353 353
       if (v.length == 0) {
354
-        return "";
354
+        return ''
355 355
       }
356 356
       if (v in this.dialysateFormulationMap) {
357
-        return this.dialysateFormulationMap[v].name;
357
+        return this.dialysateFormulationMap[v].name
358 358
       }
359
-      return "";
359
+      return ''
360 360
     },
361
-    prescription_dewatering: function() {
362
-      var v = this.getValueStr("prescription_dewatering", "dewater");
363
-      return v.length == 0 ? "0" : v;
361
+    prescription_dewatering: function () {
362
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
363
+      return v.length == 0 ? '0' : v
364 364
     },
365
-    anticoagulant: function() {
366
-      var v = this.getValueStr("anticoagulant", "anticoagulant");
365
+    anticoagulant: function () {
366
+      var v = this.getValueStr('anticoagulant', 'anticoagulant')
367 367
       if (v.length == 0) {
368
-        return "";
368
+        return ''
369 369
       }
370 370
       if (this.$store.getters.anticoagulants_confit[v] != undefined) {
371
-        return this.$store.getters.anticoagulants_confit[v].name;
371
+        return this.$store.getters.anticoagulants_confit[v].name
372 372
       }
373
-      return "";
373
+      return ''
374 374
     },
375
-    anticoagulant_zongliang: function() {
375
+    anticoagulant_zongliang: function () {
376 376
       var v = this.getValueStr(
377
-        "anticoagulant_zongliang",
378
-        "anticoagulant_zongliang"
379
-      );
380
-      return v.length == 0 ? "0" : v;
377
+        'anticoagulant_zongliang',
378
+        'anticoagulant_zongliang'
379
+      )
380
+      return v.length == 0 ? '0' : v
381 381
     },
382
-    calcium: function() {
383
-      var v = this.getValueStr("calcium", "calcium");
384
-      v = this.getFloat(v);
385
-      return v == 0 ? "0" : v;
382
+    calcium: function () {
383
+      var v = this.getValueStr('calcium', 'calcium')
384
+      v = this.getFloat(v)
385
+      return v == 0 ? '0' : v
386 386
     },
387 387
 
388
-    conductivity: function() {
389
-      var v = this.getValueStr("conductivity", "conductivity");
390
-      return v.length == 0 ? "0" : v;
388
+    conductivity: function () {
389
+      var v = this.getValueStr('conductivity', 'conductivity')
390
+      return v.length == 0 ? '0' : v
391 391
     },
392
-    dialyzer_perfusion_apparatus: function() {
392
+    dialyzer_perfusion_apparatus: function () {
393 393
       return this.getValueStr(
394
-        "dialyzer_perfusion_apparatus",
395
-        "dialyzer_perfusion_apparatus"
396
-      );
394
+        'dialyzer_perfusion_apparatus',
395
+        'dialyzer_perfusion_apparatus'
396
+      )
397 397
     },
398
-    note: function() {
399
-      return this.getValueStr("remark", "remark");
398
+    note: function () {
399
+      return this.getValueStr('remark', 'remark')
400 400
     },
401
-    body_fluid: function() {
402
-      var id = this.getValueStr("body_fluid", "body_fluid");
401
+    body_fluid: function () {
402
+      var id = this.getValueStr('body_fluid', 'body_fluid')
403 403
       if (id == 0) {
404
-        return "";
404
+        return ''
405 405
       }
406
-      var bodyFluidOptions = this.$store.getters.body_fluid;
406
+      var bodyFluidOptions = this.$store.getters.body_fluid
407 407
       for (let i = 0; i < bodyFluidOptions.length; i++) {
408 408
         if (bodyFluidOptions[i].id == id) {
409
-          return bodyFluidOptions[i].name;
409
+          return bodyFluidOptions[i].name
410 410
         }
411 411
       }
412 412
     },
413
-    special_medicine: function() {
414
-      var id = this.getValueStr("special_medicine", "special_medicine");
413
+    special_medicine: function () {
414
+      var id = this.getValueStr('special_medicine', 'special_medicine')
415 415
       if (id == 0) {
416
-        return "";
416
+        return ''
417 417
       }
418
-      var special_medicine = this.$store.getters.special_medicine;
418
+      var special_medicine = this.$store.getters.special_medicine
419 419
       for (let i = 0; i < special_medicine.length; i++) {
420 420
         if (special_medicine[i].id == id) {
421
-          return special_medicine[i].name;
421
+          return special_medicine[i].name
422 422
         }
423 423
       }
424 424
     },
425
-    special_medicine_other: function() {
425
+    special_medicine_other: function () {
426 426
       return this.getValueStr(
427
-        "special_medicine_other",
428
-        "special_medicine_other"
429
-      );
427
+        'special_medicine_other',
428
+        'special_medicine_other'
429
+      )
430 430
     },
431
-    blood_access: function() {
432
-      var id = this.getValueStr("blood_access", "blood_access");
431
+    blood_access: function () {
432
+      var id = this.getValueStr('blood_access', 'blood_access')
433 433
       if (id == 0) {
434
-        return "";
434
+        return ''
435 435
       }
436 436
       // var blood_access = this.$store.getters.blood_access
437
-      var blood_access = getDataConfig("hemodialysis", "vascular_access_desc");
438
-      console.log("blood_access", blood_access);
437
+      var blood_access = getDataConfig('hemodialysis', 'vascular_access_desc')
438
+      console.log('blood_access', blood_access)
439 439
       for (let i = 0; i < blood_access.length; i++) {
440 440
         if (blood_access[i].id == id) {
441
-          return blood_access[i].name;
441
+          return blood_access[i].name
442 442
         }
443 443
       }
444 444
     },
445
-    displace_liqui: function() {
446
-      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
445
+    displace_liqui: function () {
446
+      var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
447 447
       var displace_liqui_value = this.getValueStr(
448
-        "displace_liqui_value",
449
-        "displace_liqui_value"
450
-      );
451
-      var displace_liqui_part = "";
452
-      var displace_liqui = this.$store.getters.displace_liqui;
448
+        'displace_liqui_value',
449
+        'displace_liqui_value'
450
+      )
451
+      var displace_liqui_part = ''
452
+      var displace_liqui = this.$store.getters.displace_liqui
453 453
       for (let i = 0; i < displace_liqui.length; i++) {
454 454
         if (displace_liqui[i].id == id) {
455
-          displace_liqui_part = displace_liqui[i].name;
455
+          displace_liqui_part = displace_liqui[i].name
456 456
         }
457 457
       }
458
-      return displace_liqui_part;
458
+      return displace_liqui_part
459 459
     },
460
-    ultrafiltration: function() {
461
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
462
-      v = this.getFloat(v);
463
-      return v.length == 0 ? "0" : v;
460
+    ultrafiltration: function () {
461
+      var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
462
+      v = this.getFloat(v)
463
+      return v.length == 0 ? '0' : v
464 464
     },
465
-    target_ktv: function() {
466
-      var v = this.getValueStr("target_ktv", "target_ktv");
467
-      return v.length == 0 ? "0" : v;
465
+    target_ktv: function () {
466
+      var v = this.getValueStr('target_ktv', 'target_ktv')
467
+      return v.length == 0 ? '0' : v
468 468
     }
469 469
   },
470
-  created() {
471
-    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
472
-    var map = {};
470
+  created () {
471
+    var perfusion_apparatus = this.$store.getters.perfusion_apparatus
472
+    var map = {}
473 473
     for (let index = 0; index < perfusion_apparatus.length; index++) {
474
-      const p = perfusion_apparatus[index];
475
-      map[p.id] = p;
474
+      const p = perfusion_apparatus[index]
475
+      map[p.id] = p
476 476
     }
477
-    this.perfusion_apparatus_map = map;
477
+    this.perfusion_apparatus_map = map
478 478
 
479 479
     var dialysateFormulationOptions = getDataConfig(
480
-      "hemodialysis",
481
-      "dialysate_formulation"
482
-    );
480
+      'hemodialysis',
481
+      'dialysate_formulation'
482
+    )
483 483
     for (var index in dialysateFormulationOptions) {
484 484
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
485
-        dialysateFormulationOptions[index];
485
+        dialysateFormulationOptions[index]
486 486
     }
487 487
     this.dialyzerPerfusionApparatus = getDataConfig(
488
-      "hemodialysis",
489
-      "dialyzer_perfusion_apparatus"
490
-    );
488
+      'hemodialysis',
489
+      'dialyzer_perfusion_apparatus'
490
+    )
491 491
     for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
492 492
       if (
493 493
         this.prescription.dialyzer_perfusion_apparatus ==
@@ -495,77 +495,77 @@ export default {
495 495
       ) {
496 496
         this.prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
497 497
           i
498
-        ].name;
498
+        ].name
499 499
       }
500 500
     }
501
-    console.log("透析处方----2", this.prescription);
501
+    console.log('透析处方----2', this.prescription)
502 502
   },
503 503
   methods: {
504
-    getDisplaceLiquiValue: function() {
505
-      return this.getValueStr("displace_liqui_value", "displace_liqui_value");
504
+    getDisplaceLiquiValue: function () {
505
+      return this.getValueStr('displace_liqui_value', 'displace_liqui_value')
506 506
     },
507
-    isShow(name) {
508
-      var filedList = this.$store.getters.user.fileds;
507
+    isShow (name) {
508
+      var filedList = this.$store.getters.user.fileds
509 509
       for (let i = 0; i < filedList.length; i++) {
510 510
         if (
511 511
           filedList[i].module == 1 &&
512 512
           filedList[i].filed_name_cn == name &&
513 513
           filedList[i].is_show == 1
514 514
         ) {
515
-          return true;
515
+          return true
516 516
         }
517 517
       }
518
-      return false;
518
+      return false
519 519
     },
520
-    getValueStr(pkey, skey) {
520
+    getValueStr (pkey, skey) {
521 521
       if (
522
-        (this.prescription == null || this.prescription.id == "") &&
523
-        (this.solution == null || this.solution.id == "")
522
+        (this.prescription == null || this.prescription.id == '') &&
523
+        (this.solution == null || this.solution.id == '')
524 524
       ) {
525
-        return "";
526
-      } else if (this.prescription != null && this.prescription.id != "") {
525
+        return ''
526
+      } else if (this.prescription != null && this.prescription.id != '') {
527 527
         if (
528 528
           this.prescription[pkey] == null ||
529 529
           this.prescription[pkey] == undefined
530 530
         ) {
531
-          return "";
531
+          return ''
532 532
         }
533
-        return this.prescription[pkey] + "";
533
+        return this.prescription[pkey] + ''
534 534
       } else {
535 535
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
536
-          return "";
536
+          return ''
537 537
         }
538
-        return this.solution[skey] + "";
538
+        return this.solution[skey] + ''
539 539
       }
540 540
     },
541
-    getFloat: function(x) {
542
-      if (x != ".") {
543
-        var f = Math.round(x * 100) / 100;
544
-        var s = f.toString();
545
-        var rs = s.indexOf(".");
541
+    getFloat: function (x) {
542
+      if (x != '.') {
543
+        var f = Math.round(x * 100) / 100
544
+        var s = f.toString()
545
+        var rs = s.indexOf('.')
546 546
         if (rs <= 0) {
547
-          rs = s.length;
548
-          s += ".";
547
+          rs = s.length
548
+          s += '.'
549 549
         }
550 550
         while (s.length <= rs + 1) {
551
-          s += "0";
551
+          s += '0'
552 552
         }
553
-        return s;
553
+        return s
554 554
       } else {
555
-        return "0.0";
555
+        return '0.0'
556 556
       }
557 557
     },
558
-    getData(val) {
559
-      var obj = "";
558
+    getData (val) {
559
+      var obj = ''
560 560
       for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
561 561
         if (val == this.dialyzerPerfusionApparatus[i].id) {
562
-          obj = this.dialyzerPerfusionApparatus[i].name;
562
+          obj = this.dialyzerPerfusionApparatus[i].name
563 563
         }
564 564
       }
565
-      return obj;
565
+      return obj
566 566
     }
567 567
   }
568
-};
568
+}
569 569
 </script>
570 570
 
571 571
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 79 - 79
src/pages/waitingRoom/components/dialysisPrescription.vue View File

@@ -122,10 +122,10 @@
122 122
 
123 123
 <script>
124 124
 export default {
125
-  name: "DialysisPrescription",
126
-  data() {
125
+  name: 'DialysisPrescription',
126
+  data () {
127 127
     return {
128
-      title: "透析处方"
128
+      title: '透析处方'
129 129
       // note: "",
130 130
       // doctor: "刘小军 医生",
131 131
       // row1: [
@@ -157,7 +157,7 @@ export default {
157 157
       // ],
158 158
       // prescription: null,
159 159
       // solution: null,
160
-    };
160
+    }
161 161
   },
162 162
   props: {
163 163
     prescription: {
@@ -180,95 +180,95 @@ export default {
180 180
   // },
181 181
   computed: {
182 182
     // row1
183
-    dialysis_mode: function() {
184
-      return this.getValueStr("mode_id", "mode_id");
183
+    dialysis_mode: function () {
184
+      return this.getValueStr('mode_id', 'mode_id')
185 185
     },
186
-    perfusion_apparatus: function() {
187
-      return this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
186
+    perfusion_apparatus: function () {
187
+      return this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
188 188
     },
189
-    displace_liqui: function() {
190
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
191
-      return v.length == 0 ? "0" : v;
189
+    displace_liqui: function () {
190
+      var v = this.getValueStr('displace_liqui', 'displace_liqui')
191
+      return v.length == 0 ? '0' : v
192 192
     },
193
-    anticoagulant_shouji: function() {
194
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
195
-      return v.length == 0 ? "0" : v;
193
+    anticoagulant_shouji: function () {
194
+      var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
195
+      return v.length == 0 ? '0' : v
196 196
     },
197
-    kalium: function() {
198
-      var v = this.getValueStr("kalium", "kalium");
199
-      return v.length == 0 ? "0" : v;
197
+    kalium: function () {
198
+      var v = this.getValueStr('kalium', 'kalium')
199
+      return v.length == 0 ? '0' : v
200 200
     },
201
-    bicarbonate: function() {
202
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
203
-      return v.length == 0 ? "0" : v;
201
+    bicarbonate: function () {
202
+      var v = this.getValueStr('bicarbonate', 'bicarbonate')
203
+      return v.length == 0 ? '0' : v
204 204
     },
205
-    dialysate_flow: function() {
206
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
207
-      return v.length == 0 ? "0" : v;
205
+    dialysate_flow: function () {
206
+      var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
207
+      return v.length == 0 ? '0' : v
208 208
     },
209 209
     // row2
210
-    dialysis_duration: function() {
211
-      var v = this.getValueStr("dialysis_duration", "dialysis_duration");
212
-      return v.length == 0 ? "0" : v;
210
+    dialysis_duration: function () {
211
+      var v = this.getValueStr('dialysis_duration', 'dialysis_duration')
212
+      return v.length == 0 ? '0' : v
213 213
     },
214
-    blood_flow_volume: function() {
215
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
216
-      return v.length == 0 ? "0" : v;
214
+    blood_flow_volume: function () {
215
+      var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
216
+      return v.length == 0 ? '0' : v
217 217
     },
218
-    replacement_way: function() {
219
-      return this.getValueStr("replacement_way", "replacement_way");
218
+    replacement_way: function () {
219
+      return this.getValueStr('replacement_way', 'replacement_way')
220 220
     },
221
-    anticoagulant_weichi: function() {
222
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
223
-      return v.length == 0 ? "0" : v;
221
+    anticoagulant_weichi: function () {
222
+      var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
223
+      return v.length == 0 ? '0' : v
224 224
     },
225
-    sodium: function() {
226
-      var v = this.getValueStr("sodium", "sodium");
227
-      return v.length == 0 ? "0" : v;
225
+    sodium: function () {
226
+      var v = this.getValueStr('sodium', 'sodium')
227
+      return v.length == 0 ? '0' : v
228 228
     },
229
-    glucose: function() {
230
-      var v = this.getValueStr("glucose", "glucose");
231
-      return v.length == 0 ? "0" : v;
229
+    glucose: function () {
230
+      var v = this.getValueStr('glucose', 'glucose')
231
+      return v.length == 0 ? '0' : v
232 232
     },
233
-    dialysate_temperature: function() {
233
+    dialysate_temperature: function () {
234 234
       var v = this.getValueStr(
235
-        "dialysate_temperature",
236
-        "dialysate_temperature"
237
-      );
238
-      return v.length == 0 ? "0" : v;
235
+        'dialysate_temperature',
236
+        'dialysate_temperature'
237
+      )
238
+      return v.length == 0 ? '0' : v
239 239
     },
240
-    dialyzer: function() {
241
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
242
-      return v.length == 0 ? "0" : v;
240
+    dialyzer: function () {
241
+      var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
242
+      return v.length == 0 ? '0' : v
243 243
     },
244
-    prescription_dewatering: function() {
245
-      var v = this.getValueStr("prescription_dewatering", "dewater");
246
-      return v.length == 0 ? "0" : v;
244
+    prescription_dewatering: function () {
245
+      var v = this.getValueStr('prescription_dewatering', 'dewater')
246
+      return v.length == 0 ? '0' : v
247 247
     },
248
-    anticoagulant: function() {
249
-      return this.getValueStr("anticoagulant", "anticoagulant");
248
+    anticoagulant: function () {
249
+      return this.getValueStr('anticoagulant', 'anticoagulant')
250 250
     },
251
-    anticoagulant_zongliang: function() {
251
+    anticoagulant_zongliang: function () {
252 252
       var v = this.getValueStr(
253
-        "anticoagulant_zongliang",
254
-        "anticoagulant_zongliang"
255
-      );
256
-      return v.length == 0 ? "0" : v;
253
+        'anticoagulant_zongliang',
254
+        'anticoagulant_zongliang'
255
+      )
256
+      return v.length == 0 ? '0' : v
257 257
     },
258
-    calcium: function() {
259
-      var v = this.getValueStr("calcium", "calcium");
260
-      return v.length == 0 ? "0" : v;
258
+    calcium: function () {
259
+      var v = this.getValueStr('calcium', 'calcium')
260
+      return v.length == 0 ? '0' : v
261 261
     },
262
-    dry_weight: function() {
263
-      var v = this.getValueStr("dry_weight", "dry_weight");
264
-      return v.length == 0 ? "0" : v;
262
+    dry_weight: function () {
263
+      var v = this.getValueStr('dry_weight', 'dry_weight')
264
+      return v.length == 0 ? '0' : v
265 265
     },
266
-    conductivity: function() {
267
-      var v = this.getValueStr("conductivity", "conductivity");
268
-      return v.length == 0 ? "0" : v;
266
+    conductivity: function () {
267
+      var v = this.getValueStr('conductivity', 'conductivity')
268
+      return v.length == 0 ? '0' : v
269 269
     },
270
-    note: function() {
271
-      return this.getValueStr("remark", "remark");
270
+    note: function () {
271
+      return this.getValueStr('remark', 'remark')
272 272
     }
273 273
   },
274 274
   methods: {
@@ -276,26 +276,26 @@ export default {
276 276
     //   this.prescription = prescription
277 277
     //   this.solution = solution
278 278
     // },
279
-    getValueStr(pkey, skey) {
279
+    getValueStr (pkey, skey) {
280 280
       // console.log(this.prescription.id)
281 281
       if (
282
-        (this.prescription == null || this.prescription.id == "") &&
283
-        (this.solution == null || this.solution.id == "")
282
+        (this.prescription == null || this.prescription.id == '') &&
283
+        (this.solution == null || this.solution.id == '')
284 284
       ) {
285
-        return "";
286
-      } else if (this.prescription != null && this.prescription.id != "") {
285
+        return ''
286
+      } else if (this.prescription != null && this.prescription.id != '') {
287 287
         if (
288 288
           this.prescription[pkey] == null ||
289 289
           this.prescription[pkey] == undefined
290 290
         ) {
291
-          return "";
291
+          return ''
292 292
         }
293
-        return this.prescription[pkey] + "";
293
+        return this.prescription[pkey] + ''
294 294
       } else {
295 295
         if (this.solution[skey] == null || this.solution[skey] == undefined) {
296
-          return "";
296
+          return ''
297 297
         }
298
-        return this.solution[skey] + "";
298
+        return this.solution[skey] + ''
299 299
       }
300 300
     }
301 301
     // setPrescription1(prescription, solution) {
@@ -382,7 +382,7 @@ export default {
382 382
     //   }
383 383
     // }
384 384
   }
385
-};
385
+}
386 386
 </script>
387 387
 
388 388
 <style rel="stylesheet/scss" lang="scss" scoped></style>