Browse Source

龙岗二院打印单问题

XMLWAN 4 years ago
parent
commit
dedaf84c01

+ 1 - 1
build/cdn.json View File

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

+ 61 - 61
src/pages/allLongDialysis/index.vue View File

@@ -97,16 +97,16 @@
97 97
   </div>
98 98
 </template>
99 99
 <script>
100
-import { getLongDialysisDetail } from "@/api/patient/patient";
101
-import { uParseTime } from "@/utils/tools";
102
-import { setRem, setHeight } from "@/libs/functionRem";
103
-import "../../styles/resetStyle.scss";
100
+import { getLongDialysisDetail } from '@/api/patient/patient'
101
+import { uParseTime } from '@/utils/tools'
102
+import { setRem, setHeight } from '@/libs/functionRem'
103
+import '../../styles/resetStyle.scss'
104 104
 export default {
105
-  data() {
105
+  data () {
106 106
     return {
107 107
       patientid: 0,
108 108
       active: 0,
109
-      patient_name: "",
109
+      patient_name: '',
110 110
       patient: {},
111 111
       longDialysisDetail: {},
112 112
       anticoagulantsSet: {
@@ -120,129 +120,129 @@ export default {
120 120
       displace_liqui_part_option: [],
121 121
       blood_access_option: [],
122 122
       dialysisrecord: []
123
-    };
123
+    }
124 124
   },
125 125
   methods: {
126
-    getLongDialysisDetail(id) {
126
+    getLongDialysisDetail (id) {
127 127
       getLongDialysisDetail(id).then(response => {
128 128
         if (response.data.state === 1) {
129
-          var longDialysisDetail = response.data.data.longDialysisDetail;
129
+          var longDialysisDetail = response.data.data.longDialysisDetail
130 130
           if (longDialysisDetail.mode_id == 1) {
131
-            longDialysisDetail.mode_id = "HD";
131
+            longDialysisDetail.mode_id = 'HD'
132 132
           }
133 133
           if (longDialysisDetail.mode_id == 2) {
134
-            longDialysisDetail.mode_id = "HDF";
134
+            longDialysisDetail.mode_id = 'HDF'
135 135
           }
136 136
           if (longDialysisDetail.mode_id == 3) {
137
-            longDialysisDetail.mode_id = "HD+HP";
137
+            longDialysisDetail.mode_id = 'HD+HP'
138 138
           }
139 139
           if (longDialysisDetail.mode_id == 4) {
140
-            longDialysisDetail.mode_id = "HP";
140
+            longDialysisDetail.mode_id = 'HP'
141 141
           }
142 142
           if (longDialysisDetail.mode_id == 5) {
143
-            longDialysisDetail.mode_id = "HF";
143
+            longDialysisDetail.mode_id = 'HF'
144 144
           }
145 145
           if (longDialysisDetail.mode_id == 6) {
146
-            longDialysisDetail.mode_id = "SCUF";
146
+            longDialysisDetail.mode_id = 'SCUF'
147 147
           }
148 148
           if (longDialysisDetail.mode_id == 7) {
149
-            longDialysisDetail.mode_id = "IUF";
149
+            longDialysisDetail.mode_id = 'IUF'
150 150
           }
151 151
           if (longDialysisDetail.mode_id == 8) {
152
-            longDialysisDetail.mode_id = "HFHD";
152
+            longDialysisDetail.mode_id = 'HFHD'
153 153
           }
154 154
           if (longDialysisDetail.mode_id == 9) {
155
-            longDialysisDetail.mode_id = "HFHD+HP";
155
+            longDialysisDetail.mode_id = 'HFHD+HP'
156 156
           }
157 157
           if (longDialysisDetail.mode_id == 10) {
158
-            longDialysisDetail.mode_id = "PHF";
158
+            longDialysisDetail.mode_id = 'PHF'
159 159
           }
160 160
           if (longDialysisDetail.mode_id == 11) {
161
-            longDialysisDetail.mode_id = "HFR";
161
+            longDialysisDetail.mode_id = 'HFR'
162 162
           }
163 163
           if (longDialysisDetail.mode_id == 12) {
164
-            longDialysisDetail.mode_id = "HDF+HP";
164
+            longDialysisDetail.mode_id = 'HDF+HP'
165 165
           }
166 166
           if (longDialysisDetail.mode_id == 13) {
167
-            longDialysisDetail.mode_id = "CRRT";
167
+            longDialysisDetail.mode_id = 'CRRT'
168 168
           }
169 169
           if (longDialysisDetail.mode_id == 14) {
170
-            longDialysisDetail.mode_id = "腹水回输";
170
+            longDialysisDetail.mode_id = '腹水回输'
171 171
           }
172 172
           if (longDialysisDetail.mode_id == 15) {
173
-            longDialysisDetail.mode_id = "HD前置换";
173
+            longDialysisDetail.mode_id = 'HD前置换'
174 174
           }
175 175
           if (longDialysisDetail.mode_id == 16) {
176
-            longDialysisDetail.mode_id = "HD后置换";
176
+            longDialysisDetail.mode_id = 'HD后置换'
177 177
           }
178 178
           if (longDialysisDetail.mode_id == 17) {
179
-            longDialysisDetail.mode_id = "HDF前置换";
179
+            longDialysisDetail.mode_id = 'HDF前置换'
180 180
           }
181 181
           if (longDialysisDetail.mode_id == 18) {
182
-            longDialysisDetail.mode_id = "HDF后置换";
182
+            longDialysisDetail.mode_id = 'HDF后置换'
183 183
           }
184 184
           if (longDialysisDetail.displace_liqui_part == 0) {
185
-            longDialysisDetail.displace_liqui_part = "";
185
+            longDialysisDetail.displace_liqui_part = ''
186 186
           }
187 187
           if (longDialysisDetail.displace_liqui_part == 1) {
188
-            longDialysisDetail.displace_liqui_part = "前稀释";
188
+            longDialysisDetail.displace_liqui_part = '前稀释'
189 189
           }
190 190
           if (longDialysisDetail.displace_liqui_part == 2) {
191
-            longDialysisDetail.displace_liqui_part = "后稀释";
191
+            longDialysisDetail.displace_liqui_part = '后稀释'
192 192
           }
193
-          this.longDialysisDetail = longDialysisDetail;
193
+          this.longDialysisDetail = longDialysisDetail
194 194
 
195
-          var patient = response.data.data.patient;
195
+          var patient = response.data.data.patient
196 196
 
197
-          this.patient_name = patient.name;
197
+          this.patient_name = patient.name
198 198
         }
199
-      });
199
+      })
200 200
     },
201
-    toReturn() {
201
+    toReturn () {
202 202
       this.$router.push(
203
-        "/patientdetail?patientid=" + this.patientid + "&active=" + this.active
204
-      );
203
+        '/patientdetail?patientid=' + this.patientid + '&active=' + this.active
204
+      )
205 205
     },
206
-    getTime(time) {
206
+    getTime (time) {
207 207
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
208
-      return uParseTime(time, "{y}-{m}-{d}");
208
+      return uParseTime(time, '{y}-{m}-{d}')
209 209
     },
210
-    getBloodAccessOption(id) {
210
+    getBloodAccessOption (id) {
211 211
       for (let i = 0; i < this.blood_access_option.length; i++) {
212 212
         if ((this.blood_access_option[i].id = id)) {
213
-          return this.blood_access_option[i].name;
213
+          return this.blood_access_option[i].name
214 214
         }
215 215
       }
216 216
     },
217
-    getSpecialMedicine(id) {
217
+    getSpecialMedicine (id) {
218 218
       for (let i = 0; i < this.special_medicine_option.length; i++) {
219 219
         if ((this.special_medicine_option[i].id = id)) {
220
-          return this.special_medicine_option[i].name;
220
+          return this.special_medicine_option[i].name
221 221
         }
222 222
       }
223 223
     }
224 224
   },
225
-  created() {
226
-    this.active = parseInt(this.$route.query.active);
227
-    setRem();
228
-    setHeight();
229
-    var id = this.$route.query.id;
225
+  created () {
226
+    this.active = parseInt(this.$route.query.active)
227
+    setRem()
228
+    setHeight()
229
+    var id = this.$route.query.id
230 230
 
231
-    var patientid = this.$route.query.patientid;
232
-    this.patientid = patientid;
231
+    var patientid = this.$route.query.patientid
232
+    this.patientid = patientid
233 233
 
234
-    this.getLongDialysisDetail(id);
235
-    this.anticoagulantsSet = this.$store.getters.anticoagulants_set;
236
-    this.replacementWays = this.$store.getters.replacement_ways;
237
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
238
-    this.blood_filters = this.$store.getters.blood_filters;
239
-    this.dialysate_formulation = this.$store.getters.dialysate_formulation;
240
-    this.body_fluid_option = this.$store.getters.body_fluid;
241
-    this.special_medicine_option = this.$store.getters.special_medicine;
242
-    this.displace_liqui_part_option = this.$store.getters.displace_liqui;
243
-    this.blood_access_option = this.$store.getters.blood_access;
234
+    this.getLongDialysisDetail(id)
235
+    this.anticoagulantsSet = this.$store.getters.anticoagulants_set
236
+    this.replacementWays = this.$store.getters.replacement_ways
237
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
238
+    this.blood_filters = this.$store.getters.blood_filters
239
+    this.dialysate_formulation = this.$store.getters.dialysate_formulation
240
+    this.body_fluid_option = this.$store.getters.body_fluid
241
+    this.special_medicine_option = this.$store.getters.special_medicine
242
+    this.displace_liqui_part_option = this.$store.getters.displace_liqui
243
+    this.blood_access_option = this.$store.getters.blood_access
244 244
   }
245
-};
245
+}
246 246
 </script>
247 247
 <style lang="scss" scoped>
248 248
 .page_allLongDialysis {

+ 170 - 159
src/pages/doctorAdvice/components/DoctorManagement.vue View File

@@ -178,16 +178,17 @@
178 178
 import {
179 179
   getDoctorAdvices,
180 180
   getPatientDetail,
181
-  DeleteManagement
182
-} from "@/api/patient/patient";
183
-import { uParseTime } from "@/utils/tools";
184
-import { Dialog } from "vant";
185
-const moment = require("moment");
181
+  DeleteManagement,
182
+  getAllDoctor
183
+} from '@/api/patient/patient'
184
+import { uParseTime } from '@/utils/tools'
185
+import { Dialog } from 'vant'
186
+const moment = require('moment')
186 187
 export default {
187 188
   props: {
188 189
     active: Number
189 190
   },
190
-  data() {
191
+  data () {
191 192
     return {
192 193
       docShow: false,
193 194
       loading: false,
@@ -197,27 +198,27 @@ export default {
197 198
       typeShow: false,
198 199
       startShow: false,
199 200
       endShow: false,
200
-      type: "全部",
201
-      columns: ["全部", "长期医嘱", "临时医嘱"],
202
-      startTime: "请选择",
203
-      endTime: "请选择",
201
+      type: '全部',
202
+      columns: ['全部', '长期医嘱', '临时医嘱'],
203
+      startTime: '请选择',
204
+      endTime: '请选择',
204 205
       minDate: new Date(1970, 0, 1),
205 206
       maxDate: new Date(2025, 10, 1),
206 207
       currentDate: new Date(),
207
-      actions: [{ name: "查看全部" }, { name: "全部删除" }],
208
-      actions1: [{ name: "删除" }],
209
-      actions2: [{ name: "删除" }],
208
+      actions: [{ name: '查看全部' }, { name: '全部删除' }],
209
+      actions1: [{ name: '删除' }],
210
+      actions2: [{ name: '删除' }],
210 211
       form: {
211 212
         type: 0,
212 213
         limit: 5,
213 214
         page: 1
214 215
       },
215
-      total: "",
216
+      total: '',
216 217
       showOne: true,
217 218
       showTwo: false,
218 219
       doctorAdvice: [],
219 220
       childList: [],
220
-      patient_id: "",
221
+      patient_id: '',
221 222
       doctor: [],
222 223
       id: 0,
223 224
       index: 0,
@@ -225,17 +226,17 @@ export default {
225 226
       childId: 0,
226 227
       state: 0,
227 228
       list: []
228
-    };
229
+    }
229 230
   },
230 231
   methods: {
231
-    onCancel() {
232
-      this.typeShow = false;
232
+    onCancel () {
233
+      this.typeShow = false
233 234
     },
234
-    onConfirm(value) {
235
-      this.form.page = 1;
236
-      this.type = value;
237
-      this.typeShow = false;
238
-      this.doctorAdvice = [];
235
+    onConfirm (value) {
236
+      this.form.page = 1
237
+      this.type = value
238
+      this.typeShow = false
239
+      this.doctorAdvice = []
239 240
       this.getDoctorAdvices(
240 241
         this.patient_id,
241 242
         this.type,
@@ -243,23 +244,23 @@ export default {
243 244
         this.endTime,
244 245
         this.form.limit,
245 246
         this.form.page
246
-      );
247
-      this.onLoad();
247
+      )
248
+      this.onLoad()
248 249
     },
249
-    getstartTime(value) {
250
-      this.form.page = 1;
251
-      let year = value.getFullYear();
252
-      let month = value.getMonth() + 1;
253
-      let day = value.getDate();
250
+    getstartTime (value) {
251
+      this.form.page = 1
252
+      let year = value.getFullYear()
253
+      let month = value.getMonth() + 1
254
+      let day = value.getDate()
254 255
       if (month >= 1 && month <= 9) {
255
-        month = `0${month}`;
256
+        month = `0${month}`
256 257
       }
257 258
       if (day >= 1 && day <= 9) {
258
-        day = `0${day}`;
259
+        day = `0${day}`
259 260
       }
260 261
 
261
-      this.startTime = `${year}-${month}-${day}`;
262
-      this.doctorAdvice = [];
262
+      this.startTime = `${year}-${month}-${day}`
263
+      this.doctorAdvice = []
263 264
       this.getDoctorAdvices(
264 265
         this.patient_id,
265 266
         this.type,
@@ -267,25 +268,25 @@ export default {
267 268
         this.endTime,
268 269
         this.form.limit,
269 270
         this.form.page
270
-      );
271
-      this.startShow = false;
272
-      this.onLoad();
271
+      )
272
+      this.startShow = false
273
+      this.onLoad()
273 274
     },
274
-    getstartTime2(value) {
275
-      this.form.page = 1;
276
-      let year = value.getFullYear();
277
-      let month = value.getMonth() + 1;
278
-      let day = value.getDate();
275
+    getstartTime2 (value) {
276
+      this.form.page = 1
277
+      let year = value.getFullYear()
278
+      let month = value.getMonth() + 1
279
+      let day = value.getDate()
279 280
       if (month >= 1 && month <= 9) {
280
-        month = `0${month}`;
281
+        month = `0${month}`
281 282
       }
282 283
       if (day >= 1 && day <= 9) {
283
-        day = `0${day}`;
284
+        day = `0${day}`
284 285
       }
285 286
 
286
-      this.endTime = `${year}-${month}-${day}`;
287
+      this.endTime = `${year}-${month}-${day}`
287 288
 
288
-      this.doctorAdvice = [];
289
+      this.doctorAdvice = []
289 290
       this.getDoctorAdvices(
290 291
         this.patient_id,
291 292
         this.type,
@@ -293,19 +294,19 @@ export default {
293 294
         this.endTime,
294 295
         this.form.limit,
295 296
         this.form.page
296
-      );
297
-      this.endShow = false;
298
-      this.onLoad();
297
+      )
298
+      this.endShow = false
299
+      this.onLoad()
299 300
     },
300
-    getDoctorAdvices(patientid) {
301
-      if (this.type === "全部") {
302
-        this.form.type = 0;
301
+    getDoctorAdvices (patientid) {
302
+      if (this.type === '全部') {
303
+        this.form.type = 0
303 304
       }
304
-      if (this.type === "长期医嘱") {
305
-        this.form.type = 1;
305
+      if (this.type === '长期医嘱') {
306
+        this.form.type = 1
306 307
       }
307
-      if (this.type === "临时医嘱") {
308
-        this.form.type = 3;
308
+      if (this.type === '临时医嘱') {
309
+        this.form.type = 3
309 310
       }
310 311
       getDoctorAdvices(
311 312
         patientid,
@@ -316,24 +317,24 @@ export default {
316 317
         this.form.page
317 318
       ).then(response => {
318 319
         if (response.data.state === 1) {
319
-          var advice = response.data.data.advice;
320
+          var advice = response.data.data.advice
320 321
           // console.log("advice", advice);
321
-          var one = response.data.data.one;
322
+          var one = response.data.data.one
322 323
           // console.log("one", one);
323
-          var total = response.data.data.total;
324
-          this.total = total;
324
+          var total = response.data.data.total
325
+          this.total = total
325 326
           // console.log("total", total);
326
-          let dataInfo = {};
327
+          let dataInfo = {}
327 328
           one.forEach((item, index) => {
328
-            let { start_time } = item;
329
+            let { start_time } = item
329 330
             if (!dataInfo[start_time]) {
330 331
               dataInfo[start_time] = {
331 332
                 start_time,
332 333
                 child: []
333
-              };
334
+              }
334 335
             }
335
-          });
336
-          let list = Object.values(dataInfo);
336
+          })
337
+          let list = Object.values(dataInfo)
337 338
           // console.log("list", list);
338 339
           list.map(item => {
339 340
             for (let i = 0; i < advice.length; i++) {
@@ -341,55 +342,64 @@ export default {
341 342
                 item.start_time === advice[i].start_time &&
342 343
                 advice[i].parent_id === 0
343 344
               ) {
344
-                item.child.push(advice[i]);
345
+                item.child.push(advice[i])
345 346
               }
346 347
             }
347
-          });
348
+          })
348 349
 
349
-          let objarr = [];
350
+          let objarr = []
350 351
           for (let i = 0; i < advice.length; i++) {
351 352
             if (advice[i].parent_id != 0) {
352
-              objarr.push(advice[i]);
353
+              objarr.push(advice[i])
353 354
             }
354 355
           }
355
-          this.childList = objarr;
356
-          let arr = this.doctorAdvice;
357
-          arr.push(...list.reverse());
358
-          console.log("arr", arr);
359
-          this.doctorAdvice = arr;
356
+          this.childList = objarr
357
+          let arr = this.doctorAdvice
358
+          arr.push(...list.reverse())
359
+          console.log('arr', arr)
360
+          this.doctorAdvice = arr
360 361
 
361
-          this.loading = false;
362
+          this.loading = false
362 363
         }
363
-      });
364
+      })
364 365
     },
365
-    getPatientDetail(patientid) {
366
+    getPatientDetail (patientid) {
366 367
       getPatientDetail(patientid).then(response => {
367 368
         if (response.data.state === 1) {
368
-          var patientDetail = response.data.data.patientDetail;
369
-          console.log("patientDetail", patientDetail);
369
+          var patientDetail = response.data.data.patientDetail
370
+          console.log('patientDetail', patientDetail)
370 371
           if (patientDetail.blood_patients == 0) {
371
-            this.doctorAdvice = [];
372
-            this.showOne = false;
373
-            this.showTwo = true;
372
+            this.doctorAdvice = []
373
+            this.showOne = false
374
+            this.showTwo = true
374 375
           }
375 376
           if (patientDetail.blood_patients == 1) {
376
-            this.showOne = true;
377
-            this.showTwo = false;
377
+            this.showOne = true
378
+            this.showTwo = false
378 379
           }
379
-          this.patientName = patientDetail.name;
380
+          this.patientName = patientDetail.name
380 381
         }
381
-      });
382
+      })
382 383
     },
383
-    getTime(time) {
384
+    getTime (time) {
384 385
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
385
-      return uParseTime(time, "{y}-{m}-{d}");
386
+      return uParseTime(time, '{y}-{m}-{d}')
387
+    },
388
+    getTimes (time) {
389
+      return uParseTime(time, '{h}:{i}')
386 390
     },
387
-    getTimes(time) {
388
-      return uParseTime(time, "{h}:{i}");
391
+    getAllDoctor () {
392
+      getAllDoctor().then(response => {
393
+        if (response.data.state === 1) {
394
+          var doctor = response.data.data.doctor
395
+          console.log('doctor是', doctor)
396
+          this.doctor = doctor
397
+        }
398
+      })
389 399
     },
390
-    onLoad() {
400
+    onLoad () {
391 401
       setTimeout(() => {
392
-        this.form.page++;
402
+        this.form.page++
393 403
         // console.log("page", this.form.page);
394 404
         if (this.form.page <= Math.ceil(this.total / 5)) {
395 405
           this.getDoctorAdvices(
@@ -399,125 +409,126 @@ export default {
399 409
             this.endTime,
400 410
             this.form.limit,
401 411
             this.form.page
402
-          );
412
+          )
403 413
         } else {
404
-          this.loading = false;
405
-          this.finished = true;
414
+          this.loading = false
415
+          this.finished = true
406 416
         }
407
-      }, 5000);
417
+      }, 5000)
408 418
     },
409 419
 
410
-    toDoctorAdviceDetail(id) {
411
-      var patientid = this.$route.query.patientid;
420
+    toDoctorAdviceDetail (id) {
421
+      var patientid = this.$route.query.patientid
412 422
       this.$router.push(
413
-        "/alldoctoradvice?id=" +
423
+        '/alldoctoradvice?id=' +
414 424
           id +
415
-          "&patientid=" +
425
+          '&patientid=' +
416 426
           patientid +
417
-          "&active=" +
427
+          '&active=' +
418 428
           this.active
419
-      );
429
+      )
420 430
     },
421
-    getDoctor(id) {
431
+    getDoctor (id) {
422 432
       for (let i = 0; i < this.doctor.length; i++) {
423 433
         if ((this.doctor[i].admin_user_id = id)) {
424
-          return this.doctor[i].name;
434
+          return this.doctor[i].user_name
425 435
         }
426 436
       }
427 437
     },
428
-    Delete(id, index, staff) {
429
-      this.id = id;
430
-      this.index = index;
431
-      this.staff = staff;
432
-      this.newShow = true;
438
+    Delete (id, index, staff) {
439
+      this.id = id
440
+      this.index = index
441
+      this.staff = staff
442
+      this.newShow = true
433 443
     },
434 444
     // 长期
435
-    DeleteOne(id) {
436
-      alert(id);
445
+    DeleteOne (id) {
446
+      alert(id)
437 447
     },
438
-    DeleteChild(id, index, state) {
439
-      this.id = id;
440
-      this.index = index;
441
-      this.state = state;
442
-      this.newChildShow = true;
448
+    DeleteChild (id, index, state) {
449
+      this.id = id
450
+      this.index = index
451
+      this.state = state
452
+      this.newChildShow = true
443 453
     },
444 454
     // 临时
445
-    DeleteTemporary(id) {
446
-      alert(id);
455
+    DeleteTemporary (id) {
456
+      alert(id)
447 457
     },
448
-    toDelete(val) {
449
-      if (val.name == "查看全部") {
450
-        var patientid = this.$route.query.patientid;
458
+    toDelete (val) {
459
+      if (val.name == '查看全部') {
460
+        var patientid = this.$route.query.patientid
451 461
         this.$router.push(
452
-          "/alldoctoradvice?id=" +
462
+          '/alldoctoradvice?id=' +
453 463
             this.id +
454
-            "&patientid=" +
464
+            '&patientid=' +
455 465
             patientid +
456
-            "&active=" +
466
+            '&active=' +
457 467
             this.active
458
-        );
468
+        )
459 469
       }
460
-      if (val.name == "全部删除") {
461
-        this.DeleteManagement(this.id, this.index, this.staff);
470
+      if (val.name == '全部删除') {
471
+        this.DeleteManagement(this.id, this.index, this.staff)
462 472
       }
463 473
     },
464
-    toChildDelete(val) {
465
-      if (val.name == "删除") {
466
-        this.DeleteChild(this.id, this.index, this.state);
474
+    toChildDelete (val) {
475
+      if (val.name == '删除') {
476
+        this.DeleteChild(this.id, this.index, this.state)
467 477
       }
468 478
     },
469 479
     // 删除整组医嘱
470
-    DeleteManagement(id, index, staff) {
480
+    DeleteManagement (id, index, staff) {
471 481
       if (staff > 0) {
472
-        this.$toast("医嘱已执行,无法删除");
473
-        return false;
482
+        this.$toast('医嘱已执行,无法删除')
483
+        return false
474 484
       }
475 485
       Dialog.confirm({
476
-        title: "删除提示!",
477
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
486
+        title: '删除提示!',
487
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
478 488
       }).then(() => {
479 489
         DeleteManagement(id).then(response => {
480 490
           if (response.data.state === 1) {
481
-            var msg = response.data.data.msg;
482
-            this.doctorAdvice.splice(index, 1);
483
-            this.newShow = false;
491
+            var msg = response.data.data.msg
492
+            this.doctorAdvice.splice(index, 1)
493
+            this.newShow = false
484 494
           }
485
-        });
486
-      });
495
+        })
496
+      })
487 497
     },
488
-    DeleteChild(id, index, state) {
498
+    DeleteChild (id, index, state) {
489 499
       if (state == 1) {
490
-        this.$toast("医嘱已执行,无法删除");
491
-        return false;
500
+        this.$toast('医嘱已执行,无法删除')
501
+        return false
492 502
       }
493 503
       Dialog.confirm({
494
-        title: "删除提示!",
495
-        message: "确认删除该条信息吗?,删除后将无法恢复!"
504
+        title: '删除提示!',
505
+        message: '确认删除该条信息吗?,删除后将无法恢复!'
496 506
       }).then(() => {
497 507
         DeleteChild(id).then(response => {
498 508
           if (response.data.state === 1) {
499
-            var msg = response.data.data.msg;
509
+            var msg = response.data.data.msg
500 510
 
501
-            this.childList.splice(index, 1);
502
-            this.newShow = false;
511
+            this.childList.splice(index, 1)
512
+            this.newShow = false
503 513
           }
504
-        });
505
-      });
514
+        })
515
+      })
506 516
     }
507 517
   },
508
-  created() {
509
-    var patientid = this.$route.query.patientid;
510
-    this.getDoctorAdvices(patientid);
511
-    this.getPatientDetail(patientid);
512
-    this.patient_id = patientid;
513
-    localStorage.setItem("docActive", this.active);
518
+  created () {
519
+    var patientid = this.$route.query.patientid
520
+    this.getDoctorAdvices(patientid)
521
+    this.getPatientDetail(patientid)
522
+    this.patient_id = patientid
523
+    localStorage.setItem('docActive', this.active)
524
+    this.getAllDoctor()
514 525
   },
515 526
   watch: {
516
-    $route(to, from) {
517
-      var patientid = this.$route.query.patientid;
527
+    $route (to, from) {
528
+      var patientid = this.$route.query.patientid
518 529
     }
519 530
   }
520
-};
531
+}
521 532
 </script>
522 533
 
523 534
 <style lang="scss" scoped>

File diff suppressed because it is too large
+ 1182 - 1246
src/pages/main/dialog/PrescriptionDialog.vue


+ 59 - 59
src/pages/main/dialog/subMenu/LongAdviceSubMenu.vue View File

@@ -56,17 +56,17 @@
56 56
 </template>
57 57
 
58 58
 <script>
59
-import { parseTime } from "@/utils";
59
+import { parseTime } from '@/utils'
60 60
 
61 61
 export default {
62
-  name: "LongAdviceSubMenu",
63
-  created() {},
64
-  data() {
62
+  name: 'LongAdviceSubMenu',
63
+  created () {},
64
+  data () {
65 65
     return {
66 66
       result: [],
67 67
       id: 0,
68
-      selectName: ""
69
-    };
68
+      selectName: ''
69
+    }
70 70
   },
71 71
   props: {
72 72
     propsForm: {
@@ -78,129 +78,129 @@ export default {
78 78
     }
79 79
   },
80 80
   methods: {
81
-    getDoctorName(doctor_id) {
81
+    getDoctorName (doctor_id) {
82 82
       for (let i = 0; i < this.propsForm.operators.length; i++) {
83 83
         if (this.propsForm.operators[i].id == doctor_id) {
84
-          return this.propsForm.operators[i].name;
84
+          return this.propsForm.operators[i].name
85 85
         }
86 86
       }
87 87
     },
88
-    getTime(val) {
89
-      return parseTime(val, "{y}-{m}-{d} {h}:{i}");
88
+    getTime (val) {
89
+      return parseTime(val, '{y}-{m}-{d} {h}:{i}')
90 90
     },
91
-    getContent(val) {
92
-      let prescribing_number = "";
93
-      let single_dose = "";
94
-      let advice_desc = "";
91
+    getContent (val) {
92
+      let prescribing_number = ''
93
+      let single_dose = ''
94
+      let advice_desc = ''
95 95
 
96 96
       if (val.prescribing_number > 0) {
97 97
         prescribing_number =
98
-          val.prescribing_number + val.prescribing_number_unit;
98
+          val.prescribing_number + val.prescribing_number_unit
99 99
       }
100 100
       if (val.single_dose > 0) {
101
-        single_dose = " 单次用量 " + val.single_dose + val.single_dose_unit;
101
+        single_dose = ' 单次用量 ' + val.single_dose + val.single_dose_unit
102 102
       }
103 103
 
104 104
       if (val.advice_desc > 0) {
105
-        advice_desc = val.advice_desc + val.drug_spec_unit;
105
+        advice_desc = val.advice_desc + val.drug_spec_unit
106 106
       }
107 107
 
108
-      let name = "";
108
+      let name = ''
109 109
       if (val.child.length > 0) {
110 110
         for (let i = 0; i < val.child.length; i++) {
111 111
           if (val.child[i].prescribing_number > 0) {
112
-            val.child[i]["presc"] =
112
+            val.child[i]['presc'] =
113 113
               val.child[i].prescribing_number +
114
-              val.child[i].prescribing_number_unit;
114
+              val.child[i].prescribing_number_unit
115 115
           } else {
116
-            val.child[i]["presc"] = "";
116
+            val.child[i]['presc'] = ''
117 117
           }
118 118
 
119 119
           if (val.child[i].single_dose > 0) {
120
-            val.child[i]["single"] =
121
-              " " +
122
-              " 单次用量 " +
123
-              " " +
120
+            val.child[i]['single'] =
121
+              ' ' +
122
+              ' 单次用量 ' +
123
+              ' ' +
124 124
               val.child[i].single_dose +
125
-              val.child[i].single_dose_unit;
125
+              val.child[i].single_dose_unit
126 126
           } else {
127
-            val.child[i]["single"] = "";
127
+            val.child[i]['single'] = ''
128 128
           }
129 129
           name =
130 130
             name +
131
-            "▲" +
131
+            '▲' +
132 132
             val.child[i].advice_name +
133
-            "" +
133
+            '' +
134 134
             val.child[i].advice_desc +
135 135
             val.child[i].drug_spec_unit +
136 136
             val.child[i].presc +
137
-            val.child[i].single;
137
+            val.child[i].single
138 138
         }
139 139
         return (
140 140
           val.advice_name +
141
-          "  " +
141
+          '  ' +
142 142
           advice_desc +
143
-          " " +
143
+          ' ' +
144 144
           val.drug_spec_unit +
145 145
           prescribing_number +
146
-          " " +
146
+          ' ' +
147 147
           single_dose +
148
-          " " +
149
-          " " +
148
+          ' ' +
149
+          ' ' +
150 150
           val.delivery_way +
151
-          " " +
151
+          ' ' +
152 152
           val.execution_frequency +
153 153
           val.remark +
154 154
           name
155
-        );
155
+        )
156 156
       } else {
157 157
         return (
158 158
           val.advice_name +
159
-          "  " +
159
+          '  ' +
160 160
           advice_desc +
161 161
           prescribing_number +
162
-          " " +
162
+          ' ' +
163 163
           single_dose +
164
-          " " +
165
-          " " +
164
+          ' ' +
165
+          ' ' +
166 166
           val.delivery_way +
167
-          " " +
167
+          ' ' +
168 168
           val.execution_frequency +
169 169
           val.remark
170
-        );
170
+        )
171 171
       }
172 172
     },
173 173
 
174
-    cancle: function() {
175
-      this.$emit("menu-cancle-three");
174
+    cancle: function () {
175
+      this.$emit('menu-cancle-three')
176 176
     },
177
-    comfirm: function() {
178
-      this.$emit("menu-comfirm-three", this.getValue());
177
+    comfirm: function () {
178
+      this.$emit('menu-comfirm-three', this.getValue())
179 179
     },
180
-    getValue: function() {
181
-      let form = {};
182
-      let results = [];
180
+    getValue: function () {
181
+      let form = {}
182
+      let results = []
183 183
       for (let i = 0; i < this.propsForm.list.length; i++) {
184 184
         for (let a = 0; a < this.propsForm.result.length; a++) {
185 185
           if (this.propsForm.list[i].id == this.propsForm.result[a]) {
186
-            results.push(this.propsForm.list[i]);
186
+            results.push(this.propsForm.list[i])
187 187
           }
188 188
         }
189 189
       }
190
-      var obj5 = {};
190
+      var obj5 = {}
191 191
       results = results.reduce((cur, next) => {
192
-        obj5[next.id] ? "" : (obj5[next.id] = true && cur.push(next));
193
-        return cur;
194
-      }, []);
195
-      return results;
192
+        obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
193
+        return cur
194
+      }, [])
195
+      return results
196 196
     }
197 197
   },
198 198
   watch: {
199
-    visibility(val) {
200
-      //初始化数据操作
199
+    visibility (val) {
200
+      // 初始化数据操作
201 201
     }
202 202
   }
203
-};
203
+}
204 204
 </script>
205 205
 
206 206
 <style style="stylesheet/scss" lang="scss" scoped>

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

@@ -394,18 +394,18 @@
394 394
 import {
395 395
   GetPatientDialysisSolutionList,
396 396
   EditDialysisSolution
397
-} from "@/api/patient";
398
-import { parseTime } from "@/utils";
399
-import { fetchAllAdminUsers } from "@/api/doctor";
400
-import { getDataConfig } from "@/utils/data";
401
-import CheckBoxSubMenu from "../dialog/subMenu/checkBoxSubMenu";
402
-import { Toast } from "vant";
397
+} from '@/api/patient'
398
+import { parseTime } from '@/utils'
399
+import { fetchAllAdminUsers } from '@/api/doctor'
400
+import { getDataConfig } from '@/utils/data'
401
+import CheckBoxSubMenu from '../dialog/subMenu/checkBoxSubMenu'
402
+import { Toast } from 'vant'
403 403
 
404
-let allno = 1;
404
+let allno = 1
405 405
 
406 406
 export default {
407
-  name: "LongTable",
408
-  data() {
407
+  name: 'LongTable',
408
+  data () {
409 409
     return {
410 410
       visibility: false,
411 411
       loading: false,
@@ -426,389 +426,389 @@ export default {
426 426
       },
427 427
       dialysisSolution: {
428 428
         id: 0,
429
-        mode: "",
430
-        mode_id: "",
431
-        mode_name: "",
432
-        dialysis_duration: "",
433
-        dialysis_duration_hour: "",
434
-        dialysis_duration_minute: "",
435
-        hemodialysis_machine: "",
436
-        perfusion_apparatus: "",
437
-        perfusion_apparatus_name: "",
438
-        blood_flow_volume: "",
439
-        dewater: "",
429
+        mode: '',
430
+        mode_id: '',
431
+        mode_name: '',
432
+        dialysis_duration: '',
433
+        dialysis_duration_hour: '',
434
+        dialysis_duration_minute: '',
435
+        hemodialysis_machine: '',
436
+        perfusion_apparatus: '',
437
+        perfusion_apparatus_name: '',
438
+        blood_flow_volume: '',
439
+        dewater: '',
440 440
         displace_liqui: 0,
441
-        replacement_way: "",
442
-        replacement_way_name: "",
443
-        anticoagulant: "",
444
-        anticoagulant_name: "",
445
-        anticoagulant_shouji: "",
446
-        anticoagulant_weichi: "",
447
-        anticoagulant_zongliang: "",
448
-        anticoagulant_gaimingcheng: "",
449
-        anticoagulant_gaijiliang: "",
450
-        target_ultrafiltration: "",
451
-        dialysate_formulation: "",
452
-        replacement_total: "",
453
-        kalium: "",
454
-        sodium: "",
455
-        calcium: "",
456
-        bicarbonate: "",
457
-        glucose: "",
458
-        dry_weight: "",
459
-        dialysate_flow: "",
460
-        dialysate_temperature: "",
461
-        conductivity: "",
462
-        doctor: "",
463
-        remark: ""
441
+        replacement_way: '',
442
+        replacement_way_name: '',
443
+        anticoagulant: '',
444
+        anticoagulant_name: '',
445
+        anticoagulant_shouji: '',
446
+        anticoagulant_weichi: '',
447
+        anticoagulant_zongliang: '',
448
+        anticoagulant_gaimingcheng: '',
449
+        anticoagulant_gaijiliang: '',
450
+        target_ultrafiltration: '',
451
+        dialysate_formulation: '',
452
+        replacement_total: '',
453
+        kalium: '',
454
+        sodium: '',
455
+        calcium: '',
456
+        bicarbonate: '',
457
+        glucose: '',
458
+        dry_weight: '',
459
+        dialysate_flow: '',
460
+        dialysate_temperature: '',
461
+        conductivity: '',
462
+        doctor: '',
463
+        remark: ''
464 464
       },
465 465
       anticoagulant: {
466 466
         id: 0,
467
-        name: "",
467
+        name: '',
468 468
         type: 1,
469 469
         shouji: 1,
470 470
         weichi: 1,
471 471
         zongliang: 1,
472 472
         gaimingcheng: -1,
473 473
         gaijiliang: -1,
474
-        shouji_unit: "mg",
475
-        weichi_unit: "mg/h",
476
-        zongliang_unit: "mg",
477
-        gaimingcheng_unit: "",
478
-        gaijiliang_unit: ""
474
+        shouji_unit: 'mg',
475
+        weichi_unit: 'mg/h',
476
+        zongliang_unit: 'mg',
477
+        gaimingcheng_unit: '',
478
+        gaijiliang_unit: ''
479 479
       },
480 480
       propForm: {
481
-        title: "",
481
+        title: '',
482 482
         list: [],
483 483
         optionList: [],
484 484
         isMultiple: 2,
485
-        result: [], //选中的值
486
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
485
+        result: [], // 选中的值
486
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
487 487
         selectId: 0
488 488
       },
489 489
       modeOption: [],
490 490
       dialysateFormulationOptions: [],
491 491
       anticoagulantsConfit: {},
492
-      timeValue: "",
493
-      time: "03:00",
494
-      record_date: ""
495
-    };
492
+      timeValue: '',
493
+      time: '03:00',
494
+      record_date: ''
495
+    }
496 496
   },
497 497
   methods: {
498
-    commitInfo: function() {
499
-      Toast.loading({ forbidClick: true, duration: 0 });
500
-      this.dialysisSolution.mode = this.dialysisSolution.mode_id;
498
+    commitInfo: function () {
499
+      Toast.loading({ forbidClick: true, duration: 0 })
500
+      this.dialysisSolution.mode = this.dialysisSolution.mode_id
501 501
       EditDialysisSolution(
502 502
         this.dialysisSolution.id,
503 503
         this.dialysisSolution
504 504
       ).then(response => {
505 505
         if (response.data.state == 0) {
506
-          Toast.fail(response.data.msg);
507
-          return false;
506
+          Toast.fail(response.data.msg)
507
+          return false
508 508
         } else {
509
-          Toast.success("修改成功");
509
+          Toast.success('修改成功')
510 510
           for (const key in response.data.data.solution) {
511 511
             this.tableDate[this.currentIndex][key] =
512
-              response.data.data.solution[key];
512
+              response.data.data.solution[key]
513 513
           }
514
-          this.popupDidHide();
514
+          this.popupDidHide()
515 515
         }
516
-      });
516
+      })
517 517
     },
518
-    openEdit(index, item) {
519
-      this.currentIndex = index;
518
+    openEdit (index, item) {
519
+      this.currentIndex = index
520 520
       for (var key in item) {
521
-        this.dialysisSolution[key] = item[key];
521
+        this.dialysisSolution[key] = item[key]
522 522
       }
523 523
 
524 524
       this.timeValue =
525 525
         this.dialysisSolution.dialysis_duration_hour +
526
-        "小时" +
526
+        '小时' +
527 527
         this.dialysisSolution.dialysis_duration_minute +
528
-        "分钟";
528
+        '分钟'
529 529
 
530 530
       this.time =
531 531
         (this.dialysisSolution.dialysis_duration_hour >= 10
532 532
           ? this.dialysisSolution.dialysis_duration_hour
533
-          : "0" + this.dialysisSolution.dialysis_duration_hour) +
534
-        ":" +
533
+          : '0' + this.dialysisSolution.dialysis_duration_hour) +
534
+        ':' +
535 535
         (this.dialysisSolution.dialysis_duration_minute >= 10
536 536
           ? this.dialysisSolution.dialysis_duration_minute
537
-          : "0" + this.dialysisSolution.dialysis_duration_minute);
537
+          : '0' + this.dialysisSolution.dialysis_duration_minute)
538 538
 
539
-      this.showObj.showPopup = true;
539
+      this.showObj.showPopup = true
540 540
 
541 541
       // document.getElementById('dialogTop').scrollTop = 200;
542
-      var dialogTop = document.querySelector("#dialogTop");
542
+      var dialogTop = document.querySelector('#dialogTop')
543 543
       if (dialogTop != null) {
544 544
         this.$nextTick(() => {
545
-          dialogTop.scrollTop = 0;
546
-        });
545
+          dialogTop.scrollTop = 0
546
+        })
547 547
       }
548 548
     },
549
-    popupDidHide() {
550
-      this.showObj.showPopup = false;
551
-      this.visibility = false;
552
-      this.showObj.showForm = true;
549
+    popupDidHide () {
550
+      this.showObj.showPopup = false
551
+      this.visibility = false
552
+      this.showObj.showForm = true
553 553
     },
554
-    openPicker: function() {
555
-      this.$refs.picker.open();
554
+    openPicker: function () {
555
+      this.$refs.picker.open()
556 556
     },
557
-    showSubMenu: function(val) {
557
+    showSubMenu: function (val) {
558 558
       switch (val) {
559
-        case "mode":
560
-          this.propForm.type = 1;
561
-          this.showObj.showForm = false;
562
-          this.propForm.title = "透析模式";
563
-          this.visibility = true;
564
-          this.propForm.list = [];
565
-          this.propForm.optionList = this.modeOption;
566
-          this.propForm.isMultiple = 1;
567
-          this.propForm.selectId = this.dialysisSolution.mode_id;
568
-          this.propForm.click_ref = "mode";
569
-
570
-          break;
571
-
572
-        case "anticoagulant":
573
-          this.propForm.type = 5;
574
-          this.showObj.showForm = false;
575
-          this.propForm.title = "抗疑剂";
576
-          this.visibility = true;
577
-          this.propForm.list = [];
578
-          this.propForm.optionList = this.anticoagulantsConfit;
579
-          this.propForm.isMultiple = 1;
580
-          this.propForm.selectId = this.dialysisSolution.anticoagulant;
581
-          this.propForm.click_ref = "anticoagulant";
582
-          break;
583
-        case "dialysate_formulation":
584
-          this.propForm.type = 6;
585
-          this.showObj.showForm = false;
586
-          this.propForm.title = "透析液配方";
587
-          this.visibility = true;
588
-          this.propForm.list = [];
589
-          this.propForm.optionList = this.dialysateFormulationOptions;
590
-          this.propForm.isMultiple = 1;
591
-          this.propForm.selectId = this.dialysisSolution.dialysate_formulation;
592
-          this.propForm.click_ref = "dialysate_formulation";
593
-          break;
559
+        case 'mode':
560
+          this.propForm.type = 1
561
+          this.showObj.showForm = false
562
+          this.propForm.title = '透析模式'
563
+          this.visibility = true
564
+          this.propForm.list = []
565
+          this.propForm.optionList = this.modeOption
566
+          this.propForm.isMultiple = 1
567
+          this.propForm.selectId = this.dialysisSolution.mode_id
568
+          this.propForm.click_ref = 'mode'
569
+
570
+          break
571
+
572
+        case 'anticoagulant':
573
+          this.propForm.type = 5
574
+          this.showObj.showForm = false
575
+          this.propForm.title = '抗疑剂'
576
+          this.visibility = true
577
+          this.propForm.list = []
578
+          this.propForm.optionList = this.anticoagulantsConfit
579
+          this.propForm.isMultiple = 1
580
+          this.propForm.selectId = this.dialysisSolution.anticoagulant
581
+          this.propForm.click_ref = 'anticoagulant'
582
+          break
583
+        case 'dialysate_formulation':
584
+          this.propForm.type = 6
585
+          this.showObj.showForm = false
586
+          this.propForm.title = '透析液配方'
587
+          this.visibility = true
588
+          this.propForm.list = []
589
+          this.propForm.optionList = this.dialysateFormulationOptions
590
+          this.propForm.isMultiple = 1
591
+          this.propForm.selectId = this.dialysisSolution.dialysate_formulation
592
+          this.propForm.click_ref = 'dialysate_formulation'
593
+          break
594 594
       }
595 595
     },
596
-    menuCancle: function() {
597
-      this.visibility = false;
598
-      this.showObj.showForm = true;
596
+    menuCancle: function () {
597
+      this.visibility = false
598
+      this.showObj.showForm = true
599 599
       this.$nextTick(() => {
600 600
         if (
601 601
           this.$refs[this.propForm.click_ref] != undefined &&
602 602
           this.$refs[this.propForm.click_ref] != null
603 603
         ) {
604
-          this.$refs[this.propForm.click_ref].scrollIntoView();
604
+          this.$refs[this.propForm.click_ref].scrollIntoView()
605 605
         }
606
-      });
606
+      })
607 607
     },
608
-    menuComfirm: function(val) {
609
-      this.visibility = false;
610
-      this.showObj.showForm = true;
608
+    menuComfirm: function (val) {
609
+      this.visibility = false
610
+      this.showObj.showForm = true
611 611
       this.$nextTick(() => {
612 612
         if (
613 613
           this.$refs[this.propForm.click_ref] != undefined &&
614 614
           this.$refs[this.propForm.click_ref] != null
615 615
         ) {
616
-          this.$refs[this.propForm.click_ref].scrollIntoView();
616
+          this.$refs[this.propForm.click_ref].scrollIntoView()
617 617
         }
618
-      });
618
+      })
619 619
       switch (val.type) {
620 620
         case 1:
621
-          this.dialysisSolution.mode_id = val.selectId;
621
+          this.dialysisSolution.mode_id = val.selectId
622 622
           this.dialysisSolution.mode_name = this.GetModeByModeId(
623 623
             this.dialysisSolution.mode_id
624
-          );
625
-          break;
624
+          )
625
+          break
626 626
 
627 627
         case 5:
628
-          this.dialysisSolution.anticoagulant = val.selectId;
628
+          this.dialysisSolution.anticoagulant = val.selectId
629 629
 
630 630
           if (
631
-            typeof this.anticoagulantsConfit[val.selectId] == "undefined" ||
631
+            typeof this.anticoagulantsConfit[val.selectId] === 'undefined' ||
632 632
             this.anticoagulantsConfit[val.selectId] == null
633 633
           ) {
634
-            return;
634
+            return
635 635
           }
636
-          this.anticoagulant = this.anticoagulantsConfit[val.selectId];
636
+          this.anticoagulant = this.anticoagulantsConfit[val.selectId]
637 637
 
638
-          break;
638
+          break
639 639
 
640 640
         case 6:
641
-          this.dialysisSolution.dialysate_formulation = val.selectId;
641
+          this.dialysisSolution.dialysate_formulation = val.selectId
642 642
 
643
-          break;
643
+          break
644 644
       }
645 645
     },
646
-    handleTimeConfirm: function(val) {
647
-      val = val.replace("小时");
648
-      val = val.replace("分钟");
649
-      let timeArray = val.split(":");
646
+    handleTimeConfirm: function (val) {
647
+      val = val.replace('小时')
648
+      val = val.replace('分钟')
649
+      let timeArray = val.split(':')
650 650
       if (parseInt(timeArray[0].substring(0, 1)) == 0) {
651 651
         this.dialysisSolution.dialysis_duration_hour = timeArray[0].charAt(
652 652
           timeArray[0].length - 1
653
-        );
653
+        )
654 654
       } else {
655
-        this.dialysisSolution.dialysis_duration_hour = timeArray[0];
655
+        this.dialysisSolution.dialysis_duration_hour = timeArray[0]
656 656
       }
657 657
 
658 658
       if (parseInt(timeArray[1].substring(0, 1)) == 0) {
659 659
         this.dialysisSolution.dialysis_duration_minute = timeArray[1].charAt(
660 660
           timeArray[1].length - 1
661
-        );
661
+        )
662 662
       } else {
663
-        this.dialysisSolution.dialysis_duration_minute = timeArray[1];
663
+        this.dialysisSolution.dialysis_duration_minute = timeArray[1]
664 664
       }
665 665
       this.timeValue =
666 666
         this.dialysisSolution.dialysis_duration_hour +
667
-        "小时" +
667
+        '小时' +
668 668
         this.dialysisSolution.dialysis_duration_minute +
669
-        "分钟";
669
+        '分钟'
670 670
       this.dialysisSolution.dialysis_duration =
671 671
         this.dialysisSolution.dialysis_duration_hour +
672
-        "." +
673
-        this.dialysisSolution.dialysis_duration_minute;
672
+        '.' +
673
+        this.dialysisSolution.dialysis_duration_minute
674 674
     },
675
-    GetModeByModeId: function(val) {
676
-      let treatment_mode_name = "";
677
-      let treatment_mode = this.modeOption;
675
+    GetModeByModeId: function (val) {
676
+      let treatment_mode_name = ''
677
+      let treatment_mode = this.modeOption
678 678
       for (let keys in treatment_mode) {
679 679
         if (treatment_mode[keys].id == val) {
680
-          treatment_mode_name = treatment_mode[keys].name;
680
+          treatment_mode_name = treatment_mode[keys].name
681 681
         }
682 682
       }
683 683
 
684
-      return treatment_mode_name;
684
+      return treatment_mode_name
685 685
     },
686
-    inputFocus: function(event) {
687
-      var input = event.target;
688
-      setTimeout(function() {
689
-        input.scrollIntoView();
690
-      }, 0);
686
+    inputFocus: function (event) {
687
+      var input = event.target
688
+      setTimeout(function () {
689
+        input.scrollIntoView()
690
+      }, 0)
691 691
 
692 692
       if (input.setSelectionRange) {
693
-        setTimeout(function() {
694
-          input.setSelectionRange(0, input.value.length);
695
-        }, 0);
693
+        setTimeout(function () {
694
+          input.setSelectionRange(0, input.value.length)
695
+        }, 0)
696 696
       } else if (input.createTextRange) {
697
-        var rng = input.createTextRange();
698
-        rng.move("character", input.value.length);
699
-        rng.select();
697
+        var rng = input.createTextRange()
698
+        rng.move('character', input.value.length)
699
+        rng.select()
700 700
       }
701 701
     },
702
-    lastInputBlur: function(event) {
703
-      var input = event.target;
704
-      setTimeout(function() {
705
-        input.style.marginBottom = "";
706
-      }, 0);
702
+    lastInputBlur: function (event) {
703
+      var input = event.target
704
+      setTimeout(function () {
705
+        input.style.marginBottom = ''
706
+      }, 0)
707 707
     },
708
-    lastInputFocus: function(event) {
709
-      var input = event.target;
710
-      setTimeout(function() {
711
-        input.style.marginBottom = "2rem";
712
-        input.parentNode.scrollIntoView();
713
-      }, 0);
708
+    lastInputFocus: function (event) {
709
+      var input = event.target
710
+      setTimeout(function () {
711
+        input.style.marginBottom = '2rem'
712
+        input.parentNode.scrollIntoView()
713
+      }, 0)
714 714
     },
715
-    GetDialysateFormulationById: function(val) {
716
-      let name = "";
717
-      let dfl = this.dialysateFormulationOptions.length;
715
+    GetDialysateFormulationById: function (val) {
716
+      let name = ''
717
+      let dfl = this.dialysateFormulationOptions.length
718 718
       for (let index = 0; index < dfl; index++) {
719 719
         if (this.dialysateFormulationOptions[index].id == val) {
720
-          name = this.dialysateFormulationOptions[index].name;
721
-          break;
720
+          name = this.dialysateFormulationOptions[index].name
721
+          break
722 722
         }
723 723
       }
724
-      return name;
724
+      return name
725 725
     },
726
-    GetAnticoagulantById: function(val) {
727
-      let anticoagulan_name = "";
728
-      let anticoagulant = this.anticoagulantsConfit;
726
+    GetAnticoagulantById: function (val) {
727
+      let anticoagulan_name = ''
728
+      let anticoagulant = this.anticoagulantsConfit
729 729
       for (let keys in anticoagulant) {
730 730
         if (anticoagulant[keys].id == val) {
731
-          anticoagulan_name = anticoagulant[keys].name;
731
+          anticoagulan_name = anticoagulant[keys].name
732 732
         }
733 733
       }
734
-      return anticoagulan_name;
734
+      return anticoagulan_name
735 735
     },
736
-    tranDoctor(id) {
736
+    tranDoctor (id) {
737 737
       if (id in this.adminUserOptions) {
738
-        return this.adminUserOptions[id].name;
738
+        return this.adminUserOptions[id].name
739 739
       } else {
740
-        return "未知";
740
+        return '未知'
741 741
       }
742 742
     },
743
-    fetchAllAdminUsers() {
743
+    fetchAllAdminUsers () {
744 744
       fetchAllAdminUsers().then(response => {
745 745
         if (response.data.state == 1) {
746
-          var ul = response.data.data.users.length;
746
+          var ul = response.data.data.users.length
747 747
           for (let index = 0; index < ul; index++) {
748 748
             this.adminUserOptions[response.data.data.users[index].id] =
749
-              response.data.data.users[index];
749
+              response.data.data.users[index]
750 750
           }
751 751
         }
752
-      });
752
+      })
753 753
     },
754
-    onLoad() {
754
+    onLoad () {
755 755
       // 异步更新数据
756
-      this.queryParams.page++;
756
+      this.queryParams.page++
757 757
       GetPatientDialysisSolutionList(this.queryParams).then(response => {
758 758
         if (response.data.state == 1) {
759
-          var sl = response.data.data.solutions.length;
759
+          var sl = response.data.data.solutions.length
760 760
           if (sl == 0) {
761
-            this.finished = true;
761
+            this.finished = true
762 762
           } else {
763 763
             for (let index = 0; index < sl; index++) {
764
-              var solution = response.data.data.solutions[index];
765
-              solution.no = allno;
764
+              var solution = response.data.data.solutions[index]
765
+              solution.no = allno
766 766
               solution.edate = parseTime(
767 767
                 solution.updated_time,
768
-                "{y}-{m}-{d} {h}:{i}"
769
-              );
770
-              allno++;
771
-              this.tableDate.push(solution);
768
+                '{y}-{m}-{d} {h}:{i}'
769
+              )
770
+              allno++
771
+              this.tableDate.push(solution)
772 772
             }
773 773
           }
774
-          this.loading = false;
774
+          this.loading = false
775 775
         }
776
-      });
776
+      })
777 777
     }
778 778
   },
779
-  created() {
780
-    allno = 1;
781
-    this.fetchAllAdminUsers();
782
-    this.queryParams.id = this.$route.query.patient_id;
783
-    this.onLoad();
779
+  created () {
780
+    allno = 1
781
+    this.fetchAllAdminUsers()
782
+    this.queryParams.id = this.$route.query.patient_id
783
+    this.onLoad()
784 784
 
785
-    this.modeOption = this.$store.getters.treatment_mode;
785
+    this.modeOption = this.$store.getters.treatment_mode
786 786
     this.dialysateFormulationOptions = getDataConfig(
787
-      "hemodialysis",
788
-      "dialysate_formulation"
789
-    );
790
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
791
-
792
-    var date = this.$route.query && this.$route.query.date;
793
-    date *= 1000;
794
-    var newDate = new Date(date);
795
-
796
-    var y = newDate.getFullYear();
797
-    var m = newDate.getMonth() + 1;
798
-    var d = newDate.getDate();
787
+      'hemodialysis',
788
+      'dialysate_formulation'
789
+    )
790
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
791
+
792
+    var date = this.$route.query && this.$route.query.date
793
+    date *= 1000
794
+    var newDate = new Date(date)
795
+
796
+    var y = newDate.getFullYear()
797
+    var m = newDate.getMonth() + 1
798
+    var d = newDate.getDate()
799 799
     if (isNaN(y) || isNaN(m) || isNaN(d)) {
800
-      newDate = new Date();
801
-      y = newDate.getFullYear();
802
-      m = newDate.getMonth() + 1;
803
-      d = newDate.getDate();
800
+      newDate = new Date()
801
+      y = newDate.getFullYear()
802
+      m = newDate.getMonth() + 1
803
+      d = newDate.getDate()
804 804
     }
805 805
     this.record_date =
806
-      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
806
+      y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
807 807
   },
808 808
   components: {
809 809
     CheckBoxSubMenu
810 810
   }
811
-};
811
+}
812 812
 </script>
813 813
 
814 814
 <style style="stylesheet/scss" lang="scss" scoped>

+ 28 - 10
src/pages/main/template/DialysisPrintOrderEight.vue View File

@@ -237,12 +237,12 @@
237 237
                     <span style="display:inline-block;margin-left:15px;"
238 238
                     >透析时间:
239 239
                     {{
240
-                        afterdialysis.actual_treatment_hour
241
-                        ? afterdialysis.actual_treatment_hour
240
+                        prescription.dialysis_duration_hour
241
+                        ? prescription.dialysis_duration_hour
242 242
                         : "0"
243 243
                     }}小时{{
244
-                        afterdialysis.actual_treatment_minute
245
-                        ? afterdialysis.actual_treatment_minute
244
+                        prescription.dialysis_duration_minute
245
+                        ? prescription.dialysis_duration_minute
246 246
                         : "0"
247 247
                     }}分钟</span
248 248
                     >
@@ -797,7 +797,7 @@
797 797
                     </td>
798 798
                     <td>{{ monitor.pulse_frequency }}</td>
799 799
                     <td>{{ monitor.blood_flow_volume }}</td>
800
-                    <td>{{ monitor.arterial_pressure }}</td>
800
+                    <td>{{ monitor.venous_pressure }}</td>
801 801
                     <td>{{ monitor.transmembrane_pressure }}</td>
802 802
                     <td>{{ monitor.ultrafiltration_rate }}</td>
803 803
                     <td>{{ monitor.ultrafiltration_volume }}</td>
@@ -977,11 +977,11 @@
977 977
                                 透析中进食:
978 978
                                 <label-box
979 979
                                     showValue="无"
980
-                                    :isChecked="afterdialysis.dialysis_intakes == 0 ? true : false"
980
+                                    :isChecked="afterdialysis.is_eat == 2 ? true : false"
981 981
                                 ></label-box>
982 982
                                 <label-box
983 983
                                     showValue="有"
984
-                                    :isChecked="afterdialysis.dialysis_intakes > 0 ? true : false"
984
+                                    :isChecked="afterdialysis.is_eat == 1 ? true : false"
985 985
                                 ></label-box> </span
986 986
                                 >&nbsp;&nbsp;
987 987
                                 <span>
@@ -1222,7 +1222,8 @@ export default {
1222 1222
       arrtwo: [],
1223 1223
       dialysisorder: {},
1224 1224
       check: {},
1225
-      tableAdvice: []
1225
+      tableAdvice: [],
1226
+      precautions: []
1226 1227
     }
1227 1228
   },
1228 1229
   methods: {
@@ -1434,9 +1435,24 @@ export default {
1434 1435
           )
1435 1436
 
1436 1437
           this.prescription = response.data.data.dialysisPrescription
1437
-          this.receiverTreatmentAccess =
1438
+          var receiverTreatmentAccess =
1438 1439
             response.data.data.receiverTreatmentAccess
1439
-
1440
+          console.log('接诊评估', this.receiverTreatmentAccess)
1441
+          var obj = receiverTreatmentAccess.precaution
1442
+          var arr = obj.split(',')
1443
+          console.log('arr', arr)
1444
+          var arr2 = []
1445
+          for (let i = 0; i < this.precautions.length; i++) {
1446
+            for (let j = 0; j < arr.length; j++) {
1447
+              if (this.precautions[i].id == parseInt(arr[j])) {
1448
+                arr2.push(this.precautions[i].name)
1449
+              }
1450
+            }
1451
+          }
1452
+          var obj2 = arr2.join(',')
1453
+          console.log('obj2', obj2)
1454
+          receiverTreatmentAccess.precaution = obj2
1455
+          this.receiverTreatmentAccess = receiverTreatmentAccess
1440 1456
           this.prescription.mode = this.modeName(this.prescription.mode_id)
1441 1457
           var rwLen = this.replacementWays.length
1442 1458
           this.prescription.replacement = ''
@@ -1809,6 +1825,8 @@ export default {
1809 1825
     }
1810 1826
     console.log('arr', arr)
1811 1827
     console.log('arrtwo', arrtwo)
1828
+    this.precautions = getDataConfig('hemodialysis', 'precaution')
1829
+    console.log('跌倒', this.precautions)
1812 1830
   }
1813 1831
 }
1814 1832
 </script>

+ 75 - 70
src/pages/main/today/acceptsAssessment.vue View File

@@ -69,8 +69,6 @@
69 69
           <span class="content">{{ this.record.precaution_other }}</span>
70 70
         </li>
71 71
 
72
-
73
-
74 72
         <li v-if="isShow('摄入量')">
75 73
           <label>摄入量:</label>
76 74
           <span class="content">{{ intakes }}</span>
@@ -108,13 +106,13 @@
108 106
 </template>
109 107
 
110 108
 <script>
111
-  import { getDataConfig } from '@/utils/data'
109
+import { getDataConfig } from '@/utils/data'
112 110
 
113
-  export default {
114
-  name: "AcceptsAssessment",
115
-  data() {
111
+export default {
112
+  name: 'AcceptsAssessment',
113
+  data () {
116 114
     return {
117
-      title: "接诊评估 ",
115
+      title: '接诊评估 ',
118 116
 
119 117
       ways: [],
120 118
       conditions: {
@@ -122,10 +120,10 @@
122 120
         '2': '门诊',
123 121
         '3': '手术期'
124 122
       },
125
-      consciousnesses:[],
123
+      consciousnesses: [],
126 124
       appetites: [],
127 125
       postures: [],
128
-      sick_condition:[],
126
+      sick_condition: [],
129 127
       danger_level: {
130 128
         '1': '无',
131 129
         '2': '低风险',
@@ -133,15 +131,15 @@
133 131
         '4': '高风险'
134 132
 
135 133
       },
136
-      intake:[],
134
+      intake: [],
137 135
       nutrition: [],
138 136
       psychological_assessment: {
139 137
         '1': '正常',
140 138
         '2': '异常'
141 139
       },
142
-      precautions:[],
140
+      precautions: []
143 141
 
144
-    };
142
+    }
145 143
   },
146 144
   props: {
147 145
     record: {
@@ -149,146 +147,154 @@
149 147
     }
150 148
   },
151 149
   computed: {
152
-    way: function() {
150
+    way: function () {
153 151
       if (this.record.id == 0) {
154 152
         return ''
155 153
       } else {
156 154
         // return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
157 155
 
158
-        for (let i = 0; i < this.ways.length; i++){
159
-          if (this.record.way == this.ways[i].id){
156
+        for (let i = 0; i < this.ways.length; i++) {
157
+          if (this.record.way == this.ways[i].id) {
160 158
             return this.ways[i].name
161
-
162 159
           }
163 160
         }
164 161
       }
165 162
     },
166
-    condition: function() {
167
-      if (this.record == null || this.record.id == "") {
168
-        return "";
163
+    condition: function () {
164
+      if (this.record == null || this.record.id == '') {
165
+        return ''
169 166
       } else {
170 167
         return this.conditions[this.record.condition] == undefined
171
-          ? ""
172
-          : this.conditions[this.record.condition] + "";
168
+          ? ''
169
+          : this.conditions[this.record.condition] + ''
173 170
       }
174 171
     },
175
-    consciousness: function() {
172
+    consciousness: function () {
176 173
       if (this.record.id == 0) {
177 174
         return ''
178 175
       } else {
179
-        for (let i = 0; i < this.consciousnesses.length; i++){
180
-          if (this.record.consciousness == this.consciousnesses[i].id){
176
+        for (let i = 0; i < this.consciousnesses.length; i++) {
177
+          if (this.record.consciousness == this.consciousnesses[i].id) {
181 178
             return this.consciousnesses[i].name
182
-
183 179
           }
184 180
         }
185 181
         // return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
186 182
       }
187 183
     },
188
-    appetite: function() {
184
+    appetite: function () {
189 185
       if (this.record.id == 0) {
190 186
         return ''
191 187
       } else {
192 188
         // return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
193
-        for (let i = 0; i < this.appetites.length; i++){
194
-          if (this.record.appetite == this.appetites[i].id){
189
+        for (let i = 0; i < this.appetites.length; i++) {
190
+          if (this.record.appetite == this.appetites[i].id) {
195 191
             return this.appetites[i].name
196
-
197 192
           }
198 193
         }
199 194
       }
200 195
     },
201
-    posture: function() {
196
+    posture: function () {
202 197
       if (this.record.id == 0) {
203 198
         return ''
204 199
       } else {
205 200
         // return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
206 201
 
207
-        for (let i = 0; i < this.postures.length; i++){
208
-          if (this.record.posture == this.postures[i].id){
202
+        for (let i = 0; i < this.postures.length; i++) {
203
+          if (this.record.posture == this.postures[i].id) {
209 204
             return this.postures[i].name
210
-
211 205
           }
212 206
         }
213 207
       }
214 208
     },
215
-    sickCondition: function() {
209
+    sickCondition: function () {
216 210
       if (this.record == null || this.record.id == '') {
217 211
         return ''
218 212
       } else {
219
-        for (let i = 0; i < this.sick_condition.length; i++){
220
-          if (this.record.sick_condition == this.sick_condition[i].id){
213
+        for (let i = 0; i < this.sick_condition.length; i++) {
214
+          if (this.record.sick_condition == this.sick_condition[i].id) {
221 215
             return this.sick_condition[i].name
222
-
223 216
           }
224 217
         }
225 218
         // return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
226 219
       }
227 220
     },
228
-    dangerLevel: function() {
229
-      if (this.record == null || this.record.id == "") {
230
-        return "";
221
+    dangerLevel: function () {
222
+      if (this.record == null || this.record.id == '') {
223
+        return ''
231 224
       } else {
232 225
         return this.danger_level[this.record.danger_level] == undefined
233
-          ? ""
234
-          : this.danger_level[this.record.danger_level] + "";
226
+          ? ''
227
+          : this.danger_level[this.record.danger_level] + ''
235 228
       }
236 229
     },
237
-    precaution: function() {
230
+    precaution: function () {
238 231
       if (this.record.id == 0) {
239 232
         return ''
240 233
       } else {
241
-        for (let i = 0; i < this.precautions.length; i++){
242
-          if (this.record.precaution == this.precautions[i].id){
243
-            return this.precautions[i].name
244
-
234
+        var obj = this.record.precaution
235
+        console.log('obj--', obj)
236
+        if (obj == null) {
237
+          return ''
238
+        }
239
+        if (obj != null) {
240
+          var arr = obj.split(',')
241
+          console.log('arr----', arr)
242
+          var arrtwo = []
243
+          for (let i = 0; i < arr.length; i++) {
244
+            for (let j = 0; j < this.precautions.length; j++) {
245
+              if (parseInt(arr[i]) == this.precautions[j].id) {
246
+                arrtwo.push(this.precautions[j].name)
247
+              }
248
+            }
245 249
           }
250
+          // console.log("arrtwo",arrtwo)
251
+          var objtwo = arrtwo.join(',')
252
+          // console.log("objtwo",objtwo)
253
+          return objtwo
246 254
         }
247 255
       }
248 256
     },
249
-    intakes: function() {
257
+    intakes: function () {
250 258
       if (this.record == null || this.record.id == '') {
251 259
         return ''
252 260
       } else {
253
-        for (let i = 0; i < this.intake.length; i++){
254
-          if (this.record.intake == this.intake[i].id){
261
+        for (let i = 0; i < this.intake.length; i++) {
262
+          if (this.record.intake == this.intake[i].id) {
255 263
             return this.intake[i].name
256
-
257 264
           }
258 265
         }
259 266
         // return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
260 267
       }
261 268
     },
262
-    nutritions: function() {
269
+    nutritions: function () {
263 270
       if (this.record == null || this.record.id == '') {
264 271
         return ''
265 272
       } else {
266
-        for (let i = 0; i < this.nutrition.length; i++){
267
-          if (this.record.nutrition == this.nutrition[i].id){
273
+        for (let i = 0; i < this.nutrition.length; i++) {
274
+          if (this.record.nutrition == this.nutrition[i].id) {
268 275
             return this.nutrition[i].name
269
-
270 276
           }
271 277
         }
272 278
         // return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
273 279
       }
274 280
     },
275
-    psychologicalAssessment: function() {
276
-      if (this.record == null || this.record.id == "") {
277
-        return "";
281
+    psychologicalAssessment: function () {
282
+      if (this.record == null || this.record.id == '') {
283
+        return ''
278 284
       } else {
279 285
         return this.psychological_assessment[
280 286
           this.record.psychological_assessment
281 287
         ] == undefined
282
-          ? ""
288
+          ? ''
283 289
           : this.psychological_assessment[
284
-              this.record.psychological_assessment
285
-            ] + "";
290
+            this.record.psychological_assessment
291
+          ] + ''
286 292
       }
287 293
     }
288 294
   },
289 295
   methods: {
290
-    isShow(name) {
291
-      var filedList = this.$store.getters.user.fileds;
296
+    isShow (name) {
297
+      var filedList = this.$store.getters.user.fileds
292 298
 
293 299
       for (let i = 0; i < filedList.length; i++) {
294 300
         if (
@@ -296,12 +302,13 @@
296 302
           filedList[i].filed_name_cn == name &&
297 303
           filedList[i].is_show == 1
298 304
         ) {
299
-          return true;
305
+          return true
300 306
         }
301 307
       }
302
-      return false;
308
+      return false
303 309
     }
304
-  },  created(){
310
+  },
311
+  created () {
305 312
     this.ways = getDataConfig('hemodialysis', 'way')
306 313
     this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
307 314
     this.appetites = getDataConfig('hemodialysis', 'appetite')
@@ -310,10 +317,8 @@
310 317
     this.precautions = getDataConfig('hemodialysis', 'precaution')
311 318
     this.intake = getDataConfig('hemodialysis', 'intake')
312 319
     this.nutrition = getDataConfig('hemodialysis', 'nutrition')
313
-
314
-
315
-  },
316
-};
320
+  }
321
+}
317 322
 </script>
318 323
 
319 324
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 86 - 86
src/pages/waitingRoom/components/dialog/dialysisDialog.vue View File

@@ -245,69 +245,69 @@
245 245
 </template>
246 246
 
247 247
 <script>
248
-import { commitDialysisPrescription } from "@/api/dialysis";
249
-import { Toast } from "vant";
248
+import { commitDialysisPrescription } from '@/api/dialysis'
249
+import { Toast } from 'vant'
250 250
 
251 251
 export default {
252
-  name: "LongDialog",
252
+  name: 'LongDialog',
253 253
 
254
-  data() {
254
+  data () {
255 255
     return {
256
-      title: "透析处方",
257
-      doctor: "",
256
+      title: ' ',
257
+      doctor: '',
258 258
       modeOptions: [],
259 259
       perfusion_apparatus: {},
260 260
       anticoagulantsConfit: {},
261 261
       replacementWays: [],
262 262
       dialyserList: [],
263 263
       dialysisPrescription: {
264
-        mode_id: "",
265
-        dialysis_duration: "",
266
-        mode_name: "",
267
-        dialyzer: "",
268
-        perfusion_apparatus: "",
269
-        blood_flow_volume: "",
270
-        dewater_amount: "",
264
+        mode_id: '',
265
+        dialysis_duration: '',
266
+        mode_name: '',
267
+        dialyzer: '',
268
+        perfusion_apparatus: '',
269
+        blood_flow_volume: '',
270
+        dewater_amount: '',
271 271
         displace_liqui: 0,
272
-        replacement_way: "",
273
-        anticoagulant: "",
274
-        anticoagulant_shouji: "",
275
-        anticoagulant_weichi: "",
276
-        anticoagulant_zongliang: "",
277
-        anticoagulant_gaimingcheng: "",
278
-        anticoagulant_gaijiliang: "",
279
-        kalium: "",
280
-        sodium: "",
281
-        calcium: "",
282
-        bicarbonate: "",
283
-        glucose: "",
284
-        dry_weight: "",
285
-        dialysate_flow: "",
286
-        dialysate_temperature: "",
287
-        conductivity: "",
288
-        doctor: "",
289
-        remark: ""
272
+        replacement_way: '',
273
+        anticoagulant: '',
274
+        anticoagulant_shouji: '',
275
+        anticoagulant_weichi: '',
276
+        anticoagulant_zongliang: '',
277
+        anticoagulant_gaimingcheng: '',
278
+        anticoagulant_gaijiliang: '',
279
+        kalium: '',
280
+        sodium: '',
281
+        calcium: '',
282
+        bicarbonate: '',
283
+        glucose: '',
284
+        dry_weight: '',
285
+        dialysate_flow: '',
286
+        dialysate_temperature: '',
287
+        conductivity: '',
288
+        doctor: '',
289
+        remark: ''
290 290
       },
291
-      record_date: "",
291
+      record_date: '',
292 292
       anticoagulant: {
293 293
         id: 0,
294
-        name: "",
294
+        name: '',
295 295
         type: 1,
296 296
         shouji: 1,
297 297
         weichi: 1,
298 298
         zongliang: 1,
299 299
         gaimingcheng: -1,
300 300
         gaijiliang: -1,
301
-        shouji_unit: "mg",
302
-        weichi_unit: "mg/h",
303
-        zongliang_unit: "mg",
304
-        gaimingcheng_unit: "",
305
-        gaijiliang_unit: ""
301
+        shouji_unit: 'mg',
302
+        weichi_unit: 'mg/h',
303
+        zongliang_unit: 'mg',
304
+        gaimingcheng_unit: '',
305
+        gaijiliang_unit: ''
306 306
       },
307 307
       patient: {
308 308
         id: 0
309 309
       }
310
-    };
310
+    }
311 311
   },
312 312
   props: {
313 313
     patient_prop: {
@@ -318,93 +318,93 @@ export default {
318 318
     },
319 319
     machines_prop: {
320 320
       type: Array,
321
-      default: function() {
322
-        return new Array();
321
+      default: function () {
322
+        return new Array()
323 323
       }
324 324
     }
325 325
   },
326 326
   methods: {
327
-    addPlanModeChange() {
328
-      var thismode = parseInt(this.dialysisPrescription.mode);
327
+    addPlanModeChange () {
328
+      var thismode = parseInt(this.dialysisPrescription.mode)
329 329
       if (isNaN(thismode) || thismode <= 0) {
330
-        return false;
330
+        return false
331 331
       }
332 332
       if (
333
-        typeof this.modeOptions[thismode] === "undefined" ||
333
+        typeof this.modeOptions[thismode] === 'undefined' ||
334 334
         this.modeOptions[thismode] == null
335 335
       ) {
336
-        return false;
336
+        return false
337 337
       }
338
-      this.dialysisPrescription.mode_name = this.modeOptions[thismode].name;
338
+      this.dialysisPrescription.mode_name = this.modeOptions[thismode].name
339 339
     },
340
-    submitInfo: function() {
341
-      let ParamsQuery = this.dialysisPrescription;
342
-      ParamsQuery["patient"] = this.patient.id;
343
-      ParamsQuery["record_date"] = this.record_date;
340
+    submitInfo: function () {
341
+      let ParamsQuery = this.dialysisPrescription
342
+      ParamsQuery['patient'] = this.patient.id
343
+      ParamsQuery['record_date'] = this.record_date
344 344
 
345 345
       commitDialysisPrescription(ParamsQuery).then(response => {
346 346
         if (response.data.state == 0) {
347 347
           // this.$toast({message: response.data.msg});
348
-          Toast.fail(response.data.msg);
349
-          return false;
348
+          Toast.fail(response.data.msg)
349
+          return false
350 350
         } else {
351 351
           // this.$toast({message: "创建成功"});
352
-          Toast.success("提交成功");
353
-          this.$emit("prescription", response.data.data.prescription);
352
+          Toast.success('提交成功')
353
+          this.$emit('prescription', response.data.data.prescription)
354 354
           for (const key in response.data.data.prescription) {
355
-            this.solution_prop[key] = response.data.data.prescription[key];
355
+            this.solution_prop[key] = response.data.data.prescription[key]
356 356
           }
357 357
         }
358
-      });
358
+      })
359 359
     },
360
-    changeThisAnticoagulant() {
361
-      var thismode = parseInt(this.dialysisPrescription.anticoagulant);
360
+    changeThisAnticoagulant () {
361
+      var thismode = parseInt(this.dialysisPrescription.anticoagulant)
362 362
       if (isNaN(thismode) || thismode <= 0) {
363
-        return false;
363
+        return false
364 364
       }
365 365
       if (
366
-        typeof this.anticoagulantsConfit[thismode] === "undefined" ||
366
+        typeof this.anticoagulantsConfit[thismode] === 'undefined' ||
367 367
         this.anticoagulantsConfit[thismode] == null
368 368
       ) {
369
-        return false;
369
+        return false
370 370
       }
371
-      this.anticoagulant = this.anticoagulantsConfit[thismode];
371
+      this.anticoagulant = this.anticoagulantsConfit[thismode]
372 372
     }
373 373
   },
374
-  created() {
375
-    this.modeOptions = this.$store.getters.treatment_mode;
376
-    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus;
377
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
378
-    this.replacementWays = this.$store.getters.replacement_ways;
374
+  created () {
375
+    this.modeOptions = this.$store.getters.treatment_mode
376
+    this.perfusion_apparatus = this.$store.getters.perfusion_apparatus
377
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
378
+    this.replacementWays = this.$store.getters.replacement_ways
379 379
 
380
-    this.patient = this.patient_prop;
380
+    this.patient = this.patient_prop
381 381
     // this.dialysisPrescription = this.solution_prop;
382
-    if (this.solution_prop != null && typeof this.solution_prop.id !== "") {
382
+    if (this.solution_prop != null && typeof this.solution_prop.id !== '') {
383 383
       for (const key in this.solution_prop) {
384
-        this.dialysisPrescription[key] = this.solution_prop[key];
384
+        this.dialysisPrescription[key] = this.solution_prop[key]
385 385
       }
386 386
     }
387
-    this.dialyserList = this.machines_prop;
388
-    this.doctor = this.$store.getters.user.user.user_name;
387
+    this.dialyserList = this.machines_prop
388
+    this.doctor = this.$store.getters.user.user.user_name
389 389
 
390
-    var date = this.$route.query && this.$route.query.date;
391
-    date *= 1000;
392
-    var newDate = new Date(date);
390
+    var date = this.$route.query && this.$route.query.date
391
+    date *= 1000
392
+    var newDate = new Date(date)
393 393
 
394
-    var y = newDate.getFullYear();
395
-    var m = newDate.getMonth() + 1;
396
-    var d = newDate.getDate();
394
+    var y = newDate.getFullYear()
395
+    var m = newDate.getMonth() + 1
396
+    var d = newDate.getDate()
397 397
     if (isNaN(y) || isNaN(m) || isNaN(d)) {
398
-      newDate = new Date();
399
-      y = newDate.getFullYear();
400
-      m = newDate.getMonth() + 1;
401
-      d = newDate.getDate();
398
+      newDate = new Date()
399
+      y = newDate.getFullYear()
400
+      m = newDate.getMonth() + 1
401
+      d = newDate.getDate()
402 402
     }
403 403
     this.record_date =
404
-      y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
405
-    this.patient.id = this.patient_prop.id;
404
+      y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
405
+    this.patient.id = this.patient_prop.id
406 406
   }
407
-};
407
+}
408 408
 </script>
409 409
 
410 410
 <style style="stylesheet/scss" lang="scss" scoped>