Browse Source

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

XMLWAN 4 years ago
parent
commit
16ba42dd29

+ 1 - 1
build/cdn.json View File

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

+ 172 - 167
src/pages/main/DialysisArea.vue View File

@@ -116,23 +116,23 @@
116 116
 </template>
117 117
 
118 118
 <script>
119
-import PatientBox from "./PatientBox";
120
-import { Popover } from "vux";
121
-import { Datetime } from "vux";
122
-import { parseTime } from "@/utils/index";
123
-import { getDialysisScheduals } from "@/api/dialysis";
124
-import { Toast } from "vant";
125
-import $ from "jquery";
119
+import PatientBox from './PatientBox'
120
+import { Popover } from 'vux'
121
+import { Datetime } from 'vux'
122
+import { parseTime } from '@/utils/index'
123
+import { getDialysisScheduals } from '@/api/dialysis'
124
+import { Toast } from 'vant'
125
+import $ from 'jquery'
126 126
 
127 127
 export default {
128
-  name: "DialysisArea",
128
+  name: 'DialysisArea',
129 129
   components: {
130 130
     PatientBox,
131 131
     Popover,
132 132
     Datetime
133 133
   },
134
-  inject: ["reload"],
135
-  data() {
134
+  inject: ['reload'],
135
+  data () {
136 136
     return {
137 137
       loading: false,
138 138
       user_id: 0,
@@ -141,83 +141,83 @@ export default {
141 141
       ismypatient: this.$store.getters.app.dialysis_area.ismypatient,
142 142
       selected_date: this.$store.getters.app.dialysis_area.schedule_date, // new Date(),
143 143
       schedual_types: [
144
-        { value: 0, text: "全部班", select: true },
145
-        { value: 1, text: "上午", select: false },
146
-        { value: 2, text: "下午", select: false },
147
-        { value: 3, text: "晚上", select: false }
144
+        { value: 0, text: '全部班', select: true },
145
+        { value: 1, text: '上午', select: false },
146
+        { value: 2, text: '下午', select: false },
147
+        { value: 3, text: '晚上', select: false }
148 148
       ],
149 149
       schedual_type_selected: this.$store.getters.app.dialysis_area
150 150
         .schedule_type_select_index,
151 151
 
152 152
       zone_selected: this.$store.getters.app.dialysis_area.zone_select_index,
153
-      zones: [{ value: 0, text: "全部分区", select: true }],
153
+      zones: [{ value: 0, text: '全部分区', select: true }],
154 154
       dialysis_scheduals: [],
155 155
 
156 156
       zone_options_visible: false,
157 157
       sch_type_options_visible: false,
158 158
       newMypatient: 0
159
-    };
159
+    }
160 160
   },
161 161
   props: {
162 162
     search_keyword: {
163 163
       type: String,
164
-      default: ""
164
+      default: ''
165 165
     }
166 166
   },
167 167
   computed: {
168
-    selected_date_str: function() {
169
-      return parseTime(this.selected_date, "{y}-{m}-{d}");
168
+    selected_date_str: function () {
169
+      return parseTime(this.selected_date, '{y}-{m}-{d}')
170 170
     },
171 171
 
172
-    filtedScheduals: function() {
172
+    filtedScheduals: function () {
173 173
       if (this.dialysis_scheduals.length == 0) {
174
-        return [];
174
+        return []
175 175
       }
176 176
 
177
-      var search_keyword = this.search_keyword;
177
+      var search_keyword = this.search_keyword
178 178
       if (search_keyword.length > 0) {
179
-        var schedules = [];
179
+        var schedules = []
180 180
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
181
-          const scheduleInfo = this.dialysis_scheduals[o_i];
182
-          var originSchedules = scheduleInfo.scheduals;
181
+          const scheduleInfo = this.dialysis_scheduals[o_i]
182
+          var originSchedules = scheduleInfo.scheduals
183 183
           if (originSchedules.length == 0) {
184
-            continue;
184
+            continue
185 185
           }
186
-          var filtedSchedules = [];
186
+          var filtedSchedules = []
187 187
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
188
-            const schedule = originSchedules[s_i];
188
+            const schedule = originSchedules[s_i]
189 189
             if (
190 190
               schedule.patient.name.indexOf(search_keyword) != -1 ||
191 191
               schedule.patient.dialysis_no.indexOf(search_keyword) != -1
192 192
             ) {
193
-              filtedSchedules.push(schedule);
194
-              break;
193
+              filtedSchedules.push(schedule)
194
+              break
195 195
             }
196 196
           }
197 197
           if (filtedSchedules.length > 0) {
198 198
             schedules.push({
199 199
               zone_name: scheduleInfo.zone_name,
200 200
               scheduals: filtedSchedules
201
-            });
201
+            })
202 202
           }
203 203
         }
204
-        return schedules;
204
+        return schedules
205 205
       }
206 206
       if (this.ismypatient) {
207
-        var zone_selected = this.zone_selected;
208
-        var timetype_selected = this.schedual_type_selected;
207
+        var zone_selected = this.zone_selected
208
+        var timetype_selected = this.schedual_type_selected
209 209
         var zone_name =
210
-          zone_selected == 0 ? "" : this.zones[zone_selected].text;
211
-        var schedules = [];
210
+          zone_selected == 0 ? '' : this.zones[zone_selected].text
211
+        var schedules = []
212 212
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
213
-          const scheduleInfo = this.dialysis_scheduals[o_i];
214
-          var originSchedules = scheduleInfo.scheduals;
213
+          const scheduleInfo = this.dialysis_scheduals[o_i]
214
+          var originSchedules = scheduleInfo.scheduals
215 215
           if (originSchedules.length == 0) {
216
-            continue;
216
+            continue
217 217
           }
218
-          var filtedSchedules = [];
218
+          var filtedSchedules = []
219 219
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
220
-            const schedule = originSchedules[s_i];
220
+            const schedule = originSchedules[s_i]
221 221
             if (schedule.dialysis_order.start_nurse == this.user_id) {
222 222
               if (
223 223
                 zone_name.length == 0 ||
@@ -228,7 +228,7 @@ export default {
228 228
                   timetype_selected == 0 ||
229 229
                   schedule.schedule_type == timetype_selected
230 230
                 ) {
231
-                  filtedSchedules.push(schedule);
231
+                  filtedSchedules.push(schedule)
232 232
                 }
233 233
               }
234 234
               // break;
@@ -238,32 +238,32 @@ export default {
238 238
             schedules.push({
239 239
               zone_name: scheduleInfo.zone_name,
240 240
               scheduals: filtedSchedules
241
-            });
241
+            })
242 242
           }
243 243
         }
244
-        return schedules;
244
+        return schedules
245 245
       }
246 246
 
247
-      var zone_selected = this.zone_selected;
248
-      var timetype_selected = this.schedual_type_selected;
247
+      var zone_selected = this.zone_selected
248
+      var timetype_selected = this.schedual_type_selected
249 249
       if (
250 250
         (zone_selected == 0 && timetype_selected == 0) ||
251 251
         this.zones.length <= 1
252 252
       ) {
253
-        return this.dialysis_scheduals;
253
+        return this.dialysis_scheduals
254 254
       }
255 255
 
256
-      var zone_name = zone_selected == 0 ? "" : this.zones[zone_selected].text;
257
-      var schedules = [];
256
+      var zone_name = zone_selected == 0 ? '' : this.zones[zone_selected].text
257
+      var schedules = []
258 258
       for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
259
-        const scheduleInfo = this.dialysis_scheduals[o_i];
260
-        var originSchedules = scheduleInfo.scheduals;
261
-        var filtedSchedules = [];
259
+        const scheduleInfo = this.dialysis_scheduals[o_i]
260
+        var originSchedules = scheduleInfo.scheduals
261
+        var filtedSchedules = []
262 262
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
263
-          const schedule = originSchedules[s_i];
263
+          const schedule = originSchedules[s_i]
264 264
           if (this.ismypatient) {
265 265
             if (schedule.dialysis_order.creator == this.user_id) {
266
-              filtedSchedules.push(schedule);
266
+              filtedSchedules.push(schedule)
267 267
             }
268 268
           } else {
269 269
             if (
@@ -275,7 +275,7 @@ export default {
275 275
                 timetype_selected == 0 ||
276 276
                 schedule.schedule_type == timetype_selected
277 277
               ) {
278
-                filtedSchedules.push(schedule);
278
+                filtedSchedules.push(schedule)
279 279
               }
280 280
             }
281 281
           }
@@ -284,238 +284,243 @@ export default {
284 284
           schedules.push({
285 285
             zone_name: scheduleInfo.zone_name,
286 286
             scheduals: filtedSchedules
287
-          });
287
+          })
288 288
         }
289 289
       }
290
-      this.ismypatient = false;
291
-      return schedules;
290
+      this.ismypatient = false
291
+      return schedules
292 292
     }
293 293
   },
294 294
 
295
-  created() {
296
-    this.user_id = this.$store.getters.user.user.id;
295
+  created () {
296
+    this.user_id = this.$store.getters.user.user.id
297 297
 
298
-    var storedata = this.$store.getters.scheduals;
299
-    var scheduals = storedata.scheduals;
298
+    var storedata = this.$store.getters.scheduals
299
+    var scheduals = storedata.scheduals
300 300
     if (Object.keys(storedata).length > 0) {
301
-      var zoneMap = {};
302
-      var schedualMap = {};
301
+      var zoneMap = {}
302
+      var schedualMap = {}
303 303
       for (let index = 0; index < scheduals.length; index++) {
304
-        const schedual = scheduals[index];
304
+        const schedual = scheduals[index]
305 305
         if (schedual.dialysis_order == null) {
306
-          continue;
306
+          continue
307 307
         }
308 308
         if (schedualMap[schedual.device_number.zone.name] == null) {
309
-          schedualMap[schedual.device_number.zone.name] = [];
309
+          schedualMap[schedual.device_number.zone.name] = []
310 310
         }
311
-        schedualMap[schedual.device_number.zone.name].push(schedual);
311
+        schedualMap[schedual.device_number.zone.name].push(schedual)
312 312
         if (zoneMap[schedual.device_number.zone.name] == null) {
313 313
           zoneMap[schedual.device_number.zone.name] =
314
-            schedual.device_number.zone;
314
+            schedual.device_number.zone
315 315
         }
316 316
       }
317 317
 
318
-      var zones = [];
319
-      zones.push({ value: 0, text: "全部分区" });
318
+      var zones = []
319
+      zones.push({ value: 0, text: '全部分区' })
320 320
       for (var zoneName in zoneMap) {
321
-        zones.push({ value: zoneMap[zoneName].id, text: zoneName });
321
+        zones.push({ value: zoneMap[zoneName].id, text: zoneName })
322 322
       }
323 323
 
324
-      zones = zones.sort(function(a, b) {
325
-        return a.value > b.value;
326
-      });
327
-      this.zones = zones;
324
+      zones = zones.sort(function (a, b) {
325
+        return a.value > b.value
326
+      })
327
+      this.zones = zones
328 328
 
329
-      var dialysis_scheduals = [];
329
+      var dialysis_scheduals = []
330 330
       for (let index = 0; index < zones.length; index++) {
331
-        const zone = zones[index];
332
-        var scheduals = schedualMap[zone.text];
331
+        const zone = zones[index]
332
+        var scheduals = schedualMap[zone.text]
333 333
         if (scheduals == null) {
334
-          continue;
334
+          continue
335 335
         }
336 336
         dialysis_scheduals.push({
337 337
           zone_name: zone.text,
338 338
           scheduals: scheduals
339
-        });
339
+        })
340 340
       }
341
-      this.dialysis_scheduals = dialysis_scheduals;
341
+      this.dialysis_scheduals = dialysis_scheduals
342 342
     } else {
343
-      this.requestDialysisScheduals();
343
+      this.requestDialysisScheduals()
344 344
     }
345 345
   },
346
-  mounted() {
346
+  mounted () {
347 347
     this.timer = window.setInterval(() => {
348
-      setTimeout(this.requestDialysisScheduals(), 0);
349
-    }, 120000);
348
+      setTimeout(this.requestDialysisScheduals(), 0)
349
+    }, 120000)
350 350
   },
351
-  beforeDestroy() {
352
-    clearInterval(this.timer);
353
-    this.timer = null;
351
+  beforeDestroy () {
352
+    clearInterval(this.timer)
353
+    this.timer = null
354 354
   },
355 355
   methods: {
356
-    clearPatient() {
357
-      this.search_keyword = "";
358
-      this.ismypatient = false;
359
-      this.$emit("clear_search_keyword");
360
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
356
+    clearPatient () {
357
+      this.search_keyword = ''
358
+      this.ismypatient = false
359
+      this.$emit('clear_search_keyword')
360
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
361 361
         zone: this.zone_selected,
362 362
         schedule_type: this.schedual_type_selected,
363 363
         schedule_date: this.selected_date,
364 364
         ismypatient: this.ismypatient
365
-      });
365
+      })
366 366
     },
367
-    mypatient() {
368
-      this.search_keyword = "";
369
-      this.ismypatient = true;
370
-      this.$emit("clear_search_keyword");
371
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
367
+    mypatient () {
368
+      this.search_keyword = ''
369
+      this.ismypatient = true
370
+      this.$emit('clear_search_keyword')
371
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
372 372
         zone: this.zone_selected,
373 373
         schedule_type: this.schedual_type_selected,
374 374
         schedule_date: this.selected_date,
375 375
         ismypatient: this.ismypatient
376
-      });
377
-      this.newMypatient = 1;
376
+      })
377
+      this.newMypatient = 1
378 378
     },
379
-    reloads: function() {
380
-      this.reload();
379
+    reloads: function () {
380
+      this.reload()
381 381
     },
382
-    handletimeType: function(index) {
382
+    handletimeType: function (index) {
383 383
       if (!this.ismypatient) {
384
-        this.ismypatient = false;
384
+        this.ismypatient = false
385 385
       }
386
-      this.sch_type_options_visible = false;
387
-      this.schedual_type_selected = index;
388
-      this.$emit("clear_search_keyword");
389
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
386
+      this.sch_type_options_visible = false
387
+      this.schedual_type_selected = index
388
+      this.$emit('clear_search_keyword')
389
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
390 390
         zone: this.zone_selected,
391 391
         schedule_type: this.schedual_type_selected,
392 392
         schedule_date: this.selected_date,
393 393
         ismypatient: this.ismypatient
394
-      });
394
+      })
395 395
     },
396
-    handleZoneChange: function(index) {
397
-      this.ismypatient = false;
398
-      this.zone_options_visible = false;
399
-      this.zone_selected = index;
400
-      this.$emit("clear_search_keyword");
401
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
396
+    handleZoneChange: function (index) {
397
+      this.ismypatient = false
398
+      this.zone_options_visible = false
399
+      this.zone_selected = index
400
+      this.$emit('clear_search_keyword')
401
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
402 402
         zone: this.zone_selected,
403 403
         schedule_type: this.schedual_type_selected,
404 404
         schedule_date: this.selected_date,
405 405
         ismypatient: this.ismypatient
406
-      });
407
-      this.newMypatient = 0;
406
+      })
407
+      this.newMypatient = 0
408 408
     },
409
-    handleScheduleDateChange: function(date) {
409
+    handleScheduleDateChange: function (date) {
410 410
       if (!this.ismypatient) {
411
-        this.ismypatient = false;
411
+        this.ismypatient = false
412 412
       }
413
-      this.zone_selected = 0;
414
-      this.schedual_type_selected = 0;
415
-      this.$emit("clear_search_keyword");
416
-      this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
413
+      this.zone_selected = 0
414
+      this.schedual_type_selected = 0
415
+      this.$emit('clear_search_keyword')
416
+      this.$store.dispatch('SaveDialysisAreaSelectIndexs', {
417 417
         zone: this.zone_selected,
418 418
         schedule_type: this.schedual_type_selected,
419 419
         schedule_date: this.selected_date,
420 420
         ismypatient: this.ismypatient
421
-      });
422
-      this.requestDialysisScheduals();
421
+      })
422
+      this.requestDialysisScheduals()
423 423
     },
424 424
 
425
-    requestDialysisScheduals() {
425
+    requestDialysisScheduals () {
426 426
       // this.$toast.loading({forbidClick: true, duration: 0})
427 427
       // this.loading = true;
428
-      var type = 0;
428
+      var type = 0
429 429
       getDialysisScheduals({ type: type, date: this.selected_date_str })
430 430
         .then(rs => {
431
-          this.networkStates = true;
432
-          var resp = rs.data;
431
+          this.networkStates = true
432
+          var resp = rs.data
433 433
           if (resp.state == 1) {
434
-            this.loading = false;
434
+            this.loading = false
435 435
 
436 436
             // console.log(resp.data)
437
-            var scheduals = resp.data.scheduals;
438
-            this.$store.dispatch("SetScheduals", { scheduals: scheduals });
439
-            var zoneMap = {};
440
-            var schedualMap = {};
437
+            var scheduals = resp.data.scheduals
438
+            this.$store.dispatch('SetScheduals', { scheduals: scheduals })
439
+            this.$store.dispatch('SetWaitScheduals', { waitscheduals: scheduals })
440
+            this.$emit('refWaitingArea')
441
+            var zoneMap = {}
442
+            var schedualMap = {}
441 443
             for (let index = 0; index < scheduals.length; index++) {
442
-              const schedual = scheduals[index];
444
+              const schedual = scheduals[index]
443 445
               if (schedual.dialysis_order == null) {
444
-                continue;
446
+                continue
445 447
               }
446 448
               if (schedualMap[schedual.device_number.zone.name] == null) {
447
-                schedualMap[schedual.device_number.zone.name] = [];
449
+                schedualMap[schedual.device_number.zone.name] = []
448 450
               }
449
-              schedualMap[schedual.device_number.zone.name].push(schedual);
451
+              schedualMap[schedual.device_number.zone.name].push(schedual)
450 452
               if (zoneMap[schedual.device_number.zone.name] == null) {
451 453
                 zoneMap[schedual.device_number.zone.name] =
452
-                  schedual.device_number.zone;
454
+                  schedual.device_number.zone
453 455
               }
454 456
             }
455 457
 
456
-            var zones = [];
457
-            zones.push({ value: 0, text: "全部分区" });
458
+            var zones = []
459
+            zones.push({ value: 0, text: '全部分区' })
458 460
             for (var zoneName in zoneMap) {
459
-              zones.push({ value: zoneMap[zoneName].id, text: zoneName });
461
+              zones.push({ value: zoneMap[zoneName].id, text: zoneName })
460 462
             }
461 463
 
462
-            zones = zones.sort(function(a, b) {
463
-              return a.value > b.value;
464
-            });
465
-            this.zones = zones;
464
+            zones = zones.sort(function (a, b) {
465
+              return a.value > b.value
466
+            })
467
+            this.zones = zones
466 468
 
467
-            var dialysis_scheduals = [];
469
+            // eslint-disable-next-line camelcase
470
+            var dialysis_scheduals = []
468 471
             for (let index = 0; index < zones.length; index++) {
469
-              const zone = zones[index];
470
-              var scheduals = schedualMap[zone.text];
472
+              const zone = zones[index]
473
+              // eslint-disable-next-line no-redeclare
474
+              var scheduals = schedualMap[zone.text]
471 475
               if (scheduals == null) {
472
-                continue;
476
+                continue
473 477
               }
474 478
               dialysis_scheduals.push({
475 479
                 zone_name: zone.text,
476 480
                 scheduals: scheduals
477
-              });
481
+              })
478 482
             }
479
-            this.dialysis_scheduals = dialysis_scheduals;
483
+            // eslint-disable-next-line camelcase
484
+            this.dialysis_scheduals = dialysis_scheduals
480 485
           } else {
481
-            this.loading = false;
486
+            this.loading = false
482 487
 
483 488
             this.$toast({
484 489
               message: resp.msg
485
-            });
490
+            })
486 491
           }
487 492
         })
488 493
         .catch(error => {
489
-          this.loading = false;
494
+          this.loading = false
490 495
 
491 496
           // 超时之后在这里捕抓错误信息.
492 497
           if (error.response) {
493
-            this.networkStates = false;
498
+            this.networkStates = false
494 499
 
495
-            console.log("error.response");
496
-            console.log(error.response);
500
+            console.log('error.response')
501
+            console.log(error.response)
497 502
           } else if (error.request) {
498
-            this.networkStates = false;
503
+            this.networkStates = false
499 504
 
500 505
             // if(error.request.readyState == 4 && error.request.status == 0){
501 506
             //   //我在这里重新请求
502 507
             //   this.networkStates = false
503 508
             // }
504 509
           } else {
505
-            this.networkStates = false;
510
+            this.networkStates = false
506 511
           }
507
-        });
512
+        })
508 513
     },
509
-    openPicker() {
510
-      this.$refs.picker.open();
511
-      this.newMypatient = 0;
514
+    openPicker () {
515
+      this.$refs.picker.open()
516
+      this.newMypatient = 0
512 517
     }
513 518
     // getMyPatient () {
514 519
     //   console.log('这是啥', this.zone_options_visible)
515 520
     //   console.log('日期', this.selected_date)
516 521
     // }
517 522
   }
518
-};
523
+}
519 524
 </script>
520 525
 
521 526
 <style style="stylesheet/scss" lang="scss" scoped>

+ 30 - 31
src/pages/main/RecordPage.vue View File

@@ -118,27 +118,22 @@
118 118
         <van-button size="small" type="info">临时排班</van-button>
119 119
     </div>-->
120 120
     <div class="area">
121
-      <waiting-area v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
122
-      <dialysis-area
123
-        v-show="index == 1"
124
-        title="透析区"
125
-        :search_keyword="search_keyword"
126
-        @clear_search_keyword="clearKeyword"
127
-      ></dialysis-area>
121
+      <waiting-area ref="waitingArea" v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
122
+      <dialysis-area @refWaitingArea="refWaitingArea" v-show="index == 1" title="透析区" :search_keyword="search_keyword"  @clear_search_keyword="clearKeyword" ></dialysis-area>
128 123
     </div>
129 124
   </div>
130 125
 </template>
131 126
 
132 127
 <script>
133
-import DialysisArea from "./DialysisArea";
134
-import WaitingArea from "./WaitingArea";
135
-import { Popover } from "vux";
136
-import { getDialysisScheduals, getWaitingScheduals } from "@/api/dialysis";
137
-import { parseTime } from "@/utils/index";
138
-import { getDialysisOrWaitSelectedConfig } from "@/utils/data_config";
128
+import DialysisArea from './DialysisArea'
129
+import WaitingArea from './WaitingArea'
130
+import { Popover } from 'vux'
131
+import { getDialysisScheduals, getWaitingScheduals } from '@/api/dialysis'
132
+import { parseTime } from '@/utils/index'
133
+import { getDialysisOrWaitSelectedConfig } from '@/utils/data_config'
139 134
 
140 135
 export default {
141
-  name: "RecordPage",
136
+  name: 'RecordPage',
142 137
   props: {
143 138
     un_read_wait_num: {
144 139
       type: Number
@@ -147,16 +142,16 @@ export default {
147 142
       type: Number
148 143
     }
149 144
   },
150
-  data() {
145
+  data () {
151 146
     return {
152 147
       index: 1,
153
-      search_input: "",
154
-      search_keyword: "",
148
+      search_input: '',
149
+      search_keyword: '',
155 150
       scheduals: [],
156 151
       advice_groups: [],
157 152
       unReadWaitNum: 0,
158 153
       unReadDialysisNum: 0
159
-    };
154
+    }
160 155
   },
161 156
   components: {
162 157
     DialysisArea,
@@ -167,26 +162,30 @@ export default {
167 162
   },
168 163
 
169 164
   methods: {
170
-    ClickTab: function(tabIndex) {
171
-      this.index = tabIndex;
165
+    refWaitingArea: function () {
166
+      this.$refs.waitingArea.requestScheduals()
167
+      this.$emit('refAdvice')
168
+    },
169
+    ClickTab: function (tabIndex) {
170
+      this.index = tabIndex
172 171
     },
173
-    searchWithKeyword: function() {
174
-      this.$refs.search_field.blur();
175
-      this.search_keyword = this.search_input;
172
+    searchWithKeyword: function () {
173
+      this.$refs.search_field.blur()
174
+      this.search_keyword = this.search_input
176 175
     },
177
-    clearKeyword: function() {
178
-      this.search_input = "";
179
-      this.search_keyword = "";
176
+    clearKeyword: function () {
177
+      this.search_input = ''
178
+      this.search_keyword = ''
180 179
     }
181 180
   },
182
-  created() {
183
-    var index = getDialysisOrWaitSelectedConfig();
184
-    console.log(index);
181
+  created () {
182
+    var index = getDialysisOrWaitSelectedConfig()
183
+    console.log(index)
185 184
     if (index != null) {
186
-      this.index = index;
185
+      this.index = index
187 186
     }
188 187
   }
189
-};
188
+}
190 189
 </script>
191 190
 
192 191
 <style lang="scss" scoped>

+ 63 - 62
src/pages/main/WaitingArea.vue View File

@@ -138,7 +138,7 @@ export default {
138 138
       cur_zone_selected: 0,
139 139
       networkStates: true,
140 140
       scheduals: [],
141
-
141
+      timer:null,
142 142
       zone_options: [{ value: 0, text: '全部分区' }],
143 143
       zone_scheduals: [],
144 144
 
@@ -304,7 +304,7 @@ export default {
304 304
 
305 305
         console.log(filtedSchedules)
306 306
         return this.processScheduals(filtedSchedules)
307
-
307
+        // eslint-disable-next-line no-unreachable
308 308
         if (this.select_index == 2) {
309 309
           var scheduals = []
310 310
           for (let index = 0; index < this.scheduals.length; index++) {
@@ -462,14 +462,15 @@ export default {
462 462
 
463 463
       this.zone_options = this.makeZones(scheduals)
464 464
       this.zone_scheduals = this.processScheduals(scheduals)
465
-    } else {
466
-      this.requestScheduals()
467
-    }
465
+    } 
466
+    // else {
467
+    //   this.requestScheduals()
468
+    // }
468 469
   },
469 470
   mounted () {
470
-    this.timer = window.setInterval(() => {
471
-      setTimeout(this.requestScheduals(), 0)
472
-    }, 120000)
471
+    // this.timer = window.setInterval(() => {
472
+    //   setTimeout(this.requestScheduals(), 0)
473
+    // }, 120000)
473 474
   },
474 475
   beforeDestroy () {
475 476
     clearInterval(this.timer)
@@ -577,61 +578,61 @@ export default {
577 578
       setSelectedTimesDataConfigList(index.toString())
578 579
     },
579 580
 
580
-    requestScheduals () {
581
+    requestScheduals: function () {
581 582
       // this.loading = true;
582
-      var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
583
-      getWaitingScheduals({ date: date })
584
-        .then(rs => {
585
-          var resp = rs.data
586
-          if (resp.state == 1) {
587
-            this.loading = false
588
-
589
-            var scheduals = resp.data.scheduals
590
-            this.$store.dispatch('SetWaitScheduals', {
591
-              waitscheduals: scheduals
592
-            })
593
-            var totalCount = scheduals.length
594
-            var prescription_count = 0
595
-            var assessment_before_dislysis_count = 0
596
-            for (let index = 0; index < scheduals.length; index++) {
597
-              const schedual = scheduals[index]
598
-              if (schedual.assessment_before_dislysis == null) {
599
-                assessment_before_dislysis_count += 1
600
-              }
601
-              if (schedual.prescription == null) {
602
-                prescription_count += 1
603
-              }
604
-            }
605
-            this.menuList[2].count = assessment_before_dislysis_count
606
-            this.menuList[1].count = prescription_count
607
-            this.scheduals = scheduals
608
-
609
-            this.zone_options = this.makeZones(scheduals)
610
-            this.zone_scheduals = this.processScheduals(scheduals)
611
-          } else {
612
-            this.loading = false
613
-
614
-            this.$toast({
615
-              message: resp.msg
616
-            })
617
-          }
618
-        })
619
-        .catch(error => {
620
-          this.loading = false
621
-
622
-          // 超时之后在这里捕抓错误信息.
623
-          if (error.response) {
624
-            this.networkStates = false
625
-          } else if (error.request) {
626
-            this.networkStates = false
627
-            // if(error.request.readyState == 4 && error.request.status == 0){
628
-            //   //我在这里重新请求
629
-            //   this.networkStates = false
630
-            // }
631
-          } else {
632
-            this.networkStates = false
633
-          }
634
-        })
583
+      // var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
584
+      // getWaitingScheduals({ date: date }).then(rs => {
585
+      // var resp = rs.data
586
+      // if (resp.state == 1) {
587
+      this.loading = false
588
+      var storedata = this.$store.getters.waitscheduals
589
+      var scheduals = storedata.waitscheduals
590
+
591
+      // var scheduals = resp.data.scheduals
592
+      // this.$store.dispatch('SetWaitScheduals', {
593
+      //   waitscheduals: scheduals
594
+      // })
595
+      var totalCount = scheduals.length
596
+      var prescription_count = 0
597
+      var assessment_before_dislysis_count = 0
598
+      for (let index = 0; index < scheduals.length; index++) {
599
+        const schedual = scheduals[index]
600
+        if (schedual.assessment_before_dislysis == null) {
601
+          assessment_before_dislysis_count += 1
602
+        }
603
+        if (schedual.prescription == null) {
604
+          prescription_count += 1
605
+        }
606
+      }
607
+      this.menuList[2].count = assessment_before_dislysis_count
608
+      this.menuList[1].count = prescription_count
609
+      this.scheduals = scheduals
610
+
611
+      this.zone_options = this.makeZones(scheduals)
612
+      this.zone_scheduals = this.processScheduals(scheduals)
613
+      // } else {
614
+      //   this.loading = false
615
+
616
+      //   this.$toast({
617
+      //     message: resp.msg
618
+      //   })
619
+      // }
620
+      // }).catch(error => {
621
+      //     this.loading = false
622
+
623
+      //     // 超时之后在这里捕抓错误信息.
624
+      //     if (error.response) {
625
+      //       this.networkStates = false
626
+      //     } else if (error.request) {
627
+      //       this.networkStates = false
628
+      //       // if(error.request.readyState == 4 && error.request.status == 0){
629
+      //       //   //我在这里重新请求
630
+      //       //   this.networkStates = false
631
+      //       // }
632
+      //     } else {
633
+      //       this.networkStates = false
634
+      //     }
635
+      //   })
635 636
     },
636 637
     makeZones: function (scheduals) {
637 638
       var zoneMap = {}

+ 177 - 113
src/pages/main/dialog/AcceptsDialog.vue View File

@@ -13,50 +13,66 @@
13 13
           label-width="130px"
14 14
         >
15 15
           <el-form-item label="入室方式: " v-if="isShow('入室方式')">
16
-            <el-radio v-model="receiveTreatmentAsses.way" label="1"
17
-              >步行</el-radio
18
-            >
19
-            <el-radio v-model="receiveTreatmentAsses.way" label="2"
20
-              >扶行</el-radio
21
-            >
22
-            <el-radio v-model="receiveTreatmentAsses.way" label="3"
23
-              >轮椅</el-radio
24
-            >
25
-            <el-radio v-model="receiveTreatmentAsses.way" label="4"
26
-              >平车</el-radio
27
-            >
16
+            <el-radio v-for="(item,index) in way_arr" :key="index"
17
+                      :label="item.id" v-model="receiveTreatmentAsses.way">{{item.name}}
18
+            </el-radio>
19
+
20
+
21
+            <!--<el-radio v-model="receiveTreatmentAsses.way" label="1"-->
22
+              <!--&gt;步行</el-radio-->
23
+            <!--&gt;-->
24
+            <!--<el-radio v-model="receiveTreatmentAsses.way" label="2"-->
25
+              <!--&gt;扶行</el-radio-->
26
+            <!--&gt;-->
27
+            <!--<el-radio v-model="receiveTreatmentAsses.way" label="3"-->
28
+              <!--&gt;轮椅</el-radio-->
29
+            <!--&gt;-->
30
+            <!--<el-radio v-model="receiveTreatmentAsses.way" label="4"-->
31
+              <!--&gt;平车</el-radio-->
32
+            <!--&gt;-->
28 33
             <!--</el-radio-group>-->
29 34
           </el-form-item>
30 35
           <el-form-item label="病人意识: " v-if="isShow('病人意识')">
31
-            <el-radio v-model="receiveTreatmentAsses.consciousness" label="1"
32
-              >清醒</el-radio
33
-            >
34
-            <el-radio v-model="receiveTreatmentAsses.consciousness" label="2"
35
-              >嗜睡</el-radio
36
-            >
37
-            <el-radio v-model="receiveTreatmentAsses.consciousness" label="3"
38
-              >昏迷</el-radio
39
-            >
40
-            <el-radio v-model="receiveTreatmentAsses.consciousness" label="4"
41
-              >模糊</el-radio
42
-            >
36
+            <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="1"-->
37
+              <!--&gt;清醒</el-radio-->
38
+            <!--&gt;-->
39
+            <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="2"-->
40
+              <!--&gt;嗜睡</el-radio-->
41
+            <!--&gt;-->
42
+            <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="3"-->
43
+              <!--&gt;昏迷</el-radio-->
44
+            <!--&gt;-->
45
+            <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="4"-->
46
+              <!--&gt;模糊</el-radio-->
47
+            <!--&gt;-->
48
+            <el-radio v-for="(item,index) in consciousness_arr" :key="index"
49
+                      :label="item.id" v-model="receiveTreatmentAsses.consciousness">{{item.name}}
50
+            </el-radio>
51
+
52
+
53
+
43 54
           </el-form-item>
44 55
           <el-form-item label="病人食欲: " v-if="isShow('病人食欲')">
45
-            <el-radio v-model="receiveTreatmentAsses.appetite" label="1"
46
-              >正常</el-radio
47
-            >
48
-            <el-radio v-model="receiveTreatmentAsses.appetite" label="2"
49
-              >减退</el-radio
50
-            >
51
-            <el-radio v-model="receiveTreatmentAsses.appetite" label="3"
52
-              >恶心</el-radio
53
-            >
54
-            <el-radio v-model="receiveTreatmentAsses.appetite" label="4"
55
-              >呕吐</el-radio
56
-            >
57
-            <el-radio v-model="receiveTreatmentAsses.appetite" label="5"
58
-              >腹泻</el-radio
59
-            >
56
+            <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="1"-->
57
+              <!--&gt;正常</el-radio-->
58
+            <!--&gt;-->
59
+            <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="2"-->
60
+              <!--&gt;减退</el-radio-->
61
+            <!--&gt;-->
62
+            <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="3"-->
63
+              <!--&gt;恶心</el-radio-->
64
+            <!--&gt;-->
65
+            <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="4"-->
66
+              <!--&gt;呕吐</el-radio-->
67
+            <!--&gt;-->
68
+            <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="5"-->
69
+              <!--&gt;腹泻</el-radio-->
70
+            <!--&gt;-->
71
+
72
+            <el-radio v-for="(item,index) in appetite_arr" :key="index"
73
+                      :label="item.id" v-model="receiveTreatmentAsses.appetite">{{item.name}}
74
+            </el-radio>
75
+
60 76
           </el-form-item>
61 77
           <el-form-item label="病人情况: " v-if="isShow('病人情况')">
62 78
             <el-radio v-model="receiveTreatmentAsses.condition" label="1"
@@ -69,33 +85,52 @@
69 85
               >手术期</el-radio
70 86
             >
71 87
           </el-form-item>
88
+
89
+          <el-form-item
90
+            label-width="110dp"
91
+            label="住院号 : "
92
+            v-if="receiveTreatmentAsses.condition == '1'"
93
+          >
94
+            <el-input
95
+              class="illnessInput"
96
+              v-model="receiveTreatmentAsses.admission_number"
97
+            ></el-input>
98
+          </el-form-item>
99
+
100
+
72 101
           <el-form-item label="体位: " v-if="isShow('体位')">
73
-            <el-radio v-model="receiveTreatmentAsses.posture" label="1"
74
-              >自动体位</el-radio
75
-            >
76
-            <el-radio v-model="receiveTreatmentAsses.posture" label="2"
77
-              >平卧位</el-radio
78
-            >
79
-            <el-radio v-model="receiveTreatmentAsses.posture" label="3"
80
-              >半卧位</el-radio
81
-            >
82
-            <el-radio v-model="receiveTreatmentAsses.posture" label="4"
83
-              >端坐位</el-radio
84
-            >
85
-            <el-radio v-model="receiveTreatmentAsses.posture" label="5"
86
-              >躁动不安</el-radio
87
-            >
102
+            <!--<el-radio v-model="receiveTreatmentAsses.posture" label="1"-->
103
+              <!--&gt;自动体位</el-radio-->
104
+            <!--&gt;-->
105
+            <!--<el-radio v-model="receiveTreatmentAsses.posture" label="2"-->
106
+              <!--&gt;平卧位</el-radio-->
107
+            <!--&gt;-->
108
+            <!--<el-radio v-model="receiveTreatmentAsses.posture" label="3"-->
109
+              <!--&gt;半卧位</el-radio-->
110
+            <!--&gt;-->
111
+            <!--<el-radio v-model="receiveTreatmentAsses.posture" label="4"-->
112
+              <!--&gt;端坐位</el-radio-->
113
+            <!--&gt;-->
114
+            <!--<el-radio v-model="receiveTreatmentAsses.posture" label="5"-->
115
+              <!--&gt;躁动不安</el-radio-->
116
+            <!--&gt;-->
117
+            <el-radio v-for="(item,index) in posture_arr" :key="index"
118
+                      :label="item.id" v-model="receiveTreatmentAsses.posture">{{item.name}}
119
+            </el-radio>
88 120
           </el-form-item>
89 121
           <el-form-item label="病情: " v-if="isShow('病情')">
90
-            <el-radio v-model="receiveTreatmentAsses.sick_condition" label="1"
91
-              >一般</el-radio
92
-            >
93
-            <el-radio v-model="receiveTreatmentAsses.sick_condition" label="2"
94
-              >严重</el-radio
95
-            >
96
-            <el-radio v-model="receiveTreatmentAsses.sick_condition" label="3"
97
-              >危</el-radio
98
-            >
122
+            <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="1"-->
123
+              <!--&gt;一般</el-radio-->
124
+            <!--&gt;-->
125
+            <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="2"-->
126
+              <!--&gt;严重</el-radio-->
127
+            <!--&gt;-->
128
+            <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="3"-->
129
+              <!--&gt;危</el-radio-->
130
+            <!--&gt;-->
131
+            <el-radio v-for="(item,index) in sick_condition_arr" :key="index"
132
+                      :label="item.id" v-model="receiveTreatmentAsses.sick_condition">{{item.name}}
133
+            </el-radio>
99 134
           </el-form-item>
100 135
           <el-form-item
101 136
             label-width="110dp"
@@ -139,18 +174,22 @@
139 174
             label="跌倒风险预防措施: "
140 175
             v-if="isShow('跌倒风险预防措施')"
141 176
           >
142
-            <el-radio v-model="receiveTreatmentAsses.precaution" label="1"
143
-              >镇定剂</el-radio
144
-            >
145
-            <el-radio v-model="receiveTreatmentAsses.precaution" label="2"
146
-              >约束带</el-radio
147
-            >
148
-            <el-radio v-model="receiveTreatmentAsses.precaution" label="3"
149
-              >床栏</el-radio
150
-            >
151
-            <el-radio v-model="receiveTreatmentAsses.precaution" label="4"
152
-              >加强宣教</el-radio
153
-            >
177
+            <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="1"-->
178
+              <!--&gt;镇定剂</el-radio-->
179
+            <!--&gt;-->
180
+            <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="2"-->
181
+              <!--&gt;约束带</el-radio-->
182
+            <!--&gt;-->
183
+            <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="3"-->
184
+              <!--&gt;床栏</el-radio-->
185
+            <!--&gt;-->
186
+            <!--<el-radio v-model="receiveTreatmentAsses.precaution" label="4"-->
187
+              <!--&gt;加强宣教</el-radio-->
188
+            <!--&gt;-->
189
+
190
+            <el-radio v-for="(item,index) in precaution_arr" :key="index"
191
+                      :label="item.id" v-model="receiveTreatmentAsses.precaution">{{item.name}}
192
+            </el-radio>
154 193
           </el-form-item>
155 194
           <el-form-item
156 195
             label-width="110dp"
@@ -164,20 +203,15 @@
164 203
           </el-form-item>
165 204
 
166 205
           <el-form-item label="摄入量: " v-if="isShow('摄入量')">
167
-            <el-radio v-model="receiveTreatmentAsses.intake" label="1"
168
-              >正常</el-radio
169
-            >
170
-            <el-radio v-model="receiveTreatmentAsses.intake" label="2"
171
-              >减少</el-radio
172
-            >
206
+            <el-radio v-for="(item,index) in intake_arr" :key="index"
207
+                      :label="item.id" v-model="receiveTreatmentAsses.intake">{{item.name}}
208
+            </el-radio>
173 209
           </el-form-item>
174 210
           <el-form-item label="营养状况: " v-if="isShow('营养状况')">
175
-            <el-radio v-model="receiveTreatmentAsses.nutrition" label="1"
176
-              >正常</el-radio
177
-            >
178
-            <el-radio v-model="receiveTreatmentAsses.nutrition" label="2"
179
-              >营养不良</el-radio
180
-            >
211
+            <el-radio v-for="(item,index) in nutrition_arr" :key="index"
212
+                      :label="item.id" v-model="receiveTreatmentAsses.nutrition">{{item.name}}
213
+            </el-radio>
214
+
181 215
           </el-form-item>
182 216
           <el-form-item label="心理评估: " v-if="isShow('心理评估')">
183 217
             <el-radio
@@ -229,11 +263,21 @@
229 263
 <script>
230 264
 import { commitAcceptsAssessment, getLastAccepts } from "@/api/dialysis";
231 265
 import { Toast } from "vant";
266
+import { getDataConfig } from '@/utils/data'
232 267
 
233 268
 export default {
234 269
   name: "AcceptsDialog",
235 270
   data() {
236 271
     return {
272
+      way_arr: [],
273
+      consciousness_arr: [],
274
+      appetite_arr: [],
275
+      posture_arr: [],
276
+      sick_condition_arr: [],
277
+      precaution_arr: [],
278
+      intake_arr: [],
279
+      nutrition_arr: [],
280
+
237 281
       receiveTreatmentAsses: {
238 282
         way: "1",
239 283
         consciousness: "1",
@@ -250,7 +294,10 @@ export default {
250 294
         score: "",
251 295
         psychological_other: "",
252 296
         precaution: "1",
253
-        precaution_other: ""
297
+        precaution_other: "",
298
+        admission_number:'',
299
+
300
+
254 301
       },
255 302
       patient: {
256 303
         id: 0
@@ -267,6 +314,16 @@ export default {
267 314
     }
268 315
   },
269 316
   created() {
317
+    this.way_arr = getDataConfig('hemodialysis', 'way')
318
+    this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
319
+    this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
320
+    this.posture_arr = getDataConfig('hemodialysis', 'posture')
321
+    this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
322
+    this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
323
+    this.intake_arr = getDataConfig('hemodialysis', 'intake')
324
+    this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
325
+
326
+
270 327
     if (this.accepts == null || this.accepts.id == "") {
271 328
       let ParamsQuery = {};
272 329
       ParamsQuery["patient"] = this.$route.query.patient_id;
@@ -276,18 +333,18 @@ export default {
276 333
         } else {
277 334
           for (const key in response.data.data.receiveTreatmentAsses) {
278 335
             this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
279
-            this.receiveTreatmentAsses.way = this.accepts.way + "";
336
+            this.receiveTreatmentAsses.way = this.accepts.way;
280 337
             this.receiveTreatmentAsses.consciousness =
281
-              this.accepts.consciousness + "";
282
-            this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
338
+              this.accepts.consciousness;
339
+            this.receiveTreatmentAsses.appetite = this.accepts.appetite ;
283 340
             this.receiveTreatmentAsses.condition = this.accepts.condition + "";
284
-            this.receiveTreatmentAsses.posture = this.accepts.posture + "";
341
+            this.receiveTreatmentAsses.posture = this.accepts.posture;
285 342
             this.receiveTreatmentAsses.sick_condition =
286
-              this.accepts.sick_condition + "";
343
+              this.accepts.sick_condition;
287 344
             this.receiveTreatmentAsses.danger_level =
288 345
               this.accepts.danger_level + "";
289
-            this.receiveTreatmentAsses.intake = this.accepts.intake + "";
290
-            this.receiveTreatmentAsses.nutrition = this.accepts.nutrition + "";
346
+            this.receiveTreatmentAsses.intake = this.accepts.intake;
347
+            this.receiveTreatmentAsses.nutrition = this.accepts.nutrition;
291 348
             this.receiveTreatmentAsses.psychological_assessment =
292 349
               this.accepts.psychological_assessment + "";
293 350
             this.receiveTreatmentAsses.psychological_assessment_other = this.accepts.psychological_assessment_other;
@@ -296,8 +353,10 @@ export default {
296 353
             this.receiveTreatmentAsses.psychological_other = this.accepts.psychological_other;
297 354
 
298 355
             this.receiveTreatmentAsses.precaution =
299
-              this.accepts.precaution + "";
356
+              this.accepts.precaution;
300 357
             this.receiveTreatmentAsses.precaution_other = this.accepts.precaution_other;
358
+            this.receiveTreatmentAsses.admission_number = this.accepts.admission_number;
359
+
301 360
           }
302 361
         }
303 362
       }).catch(error => {
@@ -320,7 +379,9 @@ export default {
320 379
         this.accepts.psychological_other == "" &&
321 380
         this.accepts.precaution == 0 &&
322 381
         this.accepts.precaution_other == "" &&
323
-        this.accepts.score == ""
382
+        this.accepts.score == ""&&
383
+        this.accepts.admission_number == ""
384
+
324 385
       ) {
325 386
         let ParamsQuery = {};
326 387
         ParamsQuery["patient"] = this.$route.query.patient_id;
@@ -330,20 +391,20 @@ export default {
330 391
           } else {
331 392
             for (const key in response.data.data.receiveTreatmentAsses) {
332 393
               this.accepts[key] = response.data.data.receiveTreatmentAsses[key];
333
-              this.receiveTreatmentAsses.way = this.accepts.way + "";
394
+              this.receiveTreatmentAsses.way = this.accepts.way;
334 395
               this.receiveTreatmentAsses.consciousness =
335
-                this.accepts.consciousness + "";
336
-              this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
396
+                this.accepts.consciousness;
397
+              this.receiveTreatmentAsses.appetite = this.accepts.appetite;
337 398
               this.receiveTreatmentAsses.condition =
338 399
                 this.accepts.condition + "";
339
-              this.receiveTreatmentAsses.posture = this.accepts.posture + "";
400
+              this.receiveTreatmentAsses.posture = this.accepts.posture;
340 401
               this.receiveTreatmentAsses.sick_condition =
341
-                this.accepts.sick_condition + "";
402
+                this.accepts.sick_condition;
342 403
               this.receiveTreatmentAsses.danger_level =
343 404
                 this.accepts.danger_level + "";
344
-              this.receiveTreatmentAsses.intake = this.accepts.intake + "";
405
+              this.receiveTreatmentAsses.intake = this.accepts.intake;
345 406
               this.receiveTreatmentAsses.nutrition =
346
-                this.accepts.nutrition + "";
407
+                this.accepts.nutrition ;
347 408
               this.receiveTreatmentAsses.psychological_assessment =
348 409
                 this.accepts.psychological_assessment + "";
349 410
               this.receiveTreatmentAsses.psychological_assessment_other =
@@ -352,25 +413,27 @@ export default {
352 413
               this.receiveTreatmentAsses.sick_condition_other = this.accepts.sick_condition_other;
353 414
 
354 415
               this.receiveTreatmentAsses.precaution =
355
-                this.accepts.precaution + "";
416
+                this.accepts.precaution;
356 417
               this.receiveTreatmentAsses.precaution_other = this.accepts.precaution_other;
357 418
               this.receiveTreatmentAsses.psychological_other = this.accepts.psychological_other;
419
+              this.receiveTreatmentAsses.admission_number = this.accepts.admission_number;
420
+
358 421
             }
359 422
           }
360 423
         });
361 424
       } else {
362
-        this.receiveTreatmentAsses.way = this.accepts.way + "";
425
+        this.receiveTreatmentAsses.way = this.accepts.way;
363 426
         this.receiveTreatmentAsses.consciousness =
364
-          this.accepts.consciousness + "";
365
-        this.receiveTreatmentAsses.appetite = this.accepts.appetite + "";
427
+          this.accepts.consciousness;
428
+        this.receiveTreatmentAsses.appetite = this.accepts.appetite ;
366 429
         this.receiveTreatmentAsses.condition = this.accepts.condition + "";
367
-        this.receiveTreatmentAsses.posture = this.accepts.posture + "";
430
+        this.receiveTreatmentAsses.posture = this.accepts.posture;
368 431
         this.receiveTreatmentAsses.sick_condition =
369
-          this.accepts.sick_condition + "";
432
+          this.accepts.sick_condition;
370 433
         this.receiveTreatmentAsses.danger_level =
371 434
           this.accepts.danger_level + "";
372
-        this.receiveTreatmentAsses.intake = this.accepts.intake + "";
373
-        this.receiveTreatmentAsses.nutrition = this.accepts.nutrition + "";
435
+        this.receiveTreatmentAsses.intake = this.accepts.intake ;
436
+        this.receiveTreatmentAsses.nutrition = this.accepts.nutrition;
374 437
         this.receiveTreatmentAsses.psychological_assessment =
375 438
           this.accepts.psychological_assessment + "";
376 439
         this.receiveTreatmentAsses.psychological_assessment_other =
@@ -378,9 +441,10 @@ export default {
378 441
         this.receiveTreatmentAsses.score = this.accepts.score;
379 442
         this.receiveTreatmentAsses.sick_condition_other = this.accepts.sick_condition_other;
380 443
 
381
-        this.receiveTreatmentAsses.precaution = this.accepts.precaution + "";
444
+        this.receiveTreatmentAsses.precaution = this.accepts.precaution;
382 445
         this.receiveTreatmentAsses.precaution_other = this.accepts.precaution_other;
383 446
         this.receiveTreatmentAsses.psychological_other = this.accepts.psychological_other;
447
+        this.receiveTreatmentAsses.admission_number = this.accepts.admission_number;
384 448
       }
385 449
     }
386 450
 

+ 143 - 127
src/pages/main/index.vue View File

@@ -2,10 +2,7 @@
2 2
   <div class="mainBox">
3 3
     <div class="newBox">
4 4
       <div class="mainContent">
5
-        <record-page
6
-          :un_read_wait_num="unReadWaitNum"
7
-          :un_read_dialysis_num="unReadDialysisNum"
8
-        ></record-page>
5
+        <record-page @refAdvice="refAdvice" :un_read_wait_num="unReadWaitNum" :un_read_dialysis_num="unReadDialysisNum" ></record-page>
9 6
       </div>
10 7
       <side-bar :active_index="0" :total_read_dot="readNum"></side-bar>
11 8
     </div>
@@ -13,179 +10,198 @@
13 10
 </template>
14 11
 
15 12
 <script>
16
-import RecordPage from "./RecordPage";
17
-import SideBar from "@/pages/layout/SideBar";
18
-import { getDialysisScheduals, getWaitingScheduals } from "@/api/dialysis";
19
-import { parseTime } from "@/utils/index";
13
+import RecordPage from './RecordPage'
14
+import SideBar from '@/pages/layout/SideBar'
15
+import { getDialysisScheduals, getWaitingScheduals } from '@/api/dialysis'
16
+import { parseTime } from '@/utils/index'
20 17
 
21 18
 export default {
22
-  name: "Main",
23
-  data() {
19
+  name: 'Main',
20
+  data () {
24 21
     return {
25 22
       timer: null,
26 23
       scheduals: [],
27 24
       advice_groups: [],
28 25
       unReadWaitNum: 0,
29 26
       unReadDialysisNum: 0
30
-    };
27
+    }
31 28
   },
32 29
   components: {
33 30
     RecordPage,
34 31
     SideBar
35 32
   },
36
-  created() {
37
-    this.requestScheduals();
38
-    this.requestDialysisScheduals();
33
+  created () {
34
+    // this.requestScheduals()
35
+    // this.requestDialysisScheduals()
39 36
   },
37
+  mounted () {
38
+    // this.timer = window.setInterval(() => {
39
+    //   setTimeout(this.requestScheduals(), 0)
40
+    // }, 10000)
41
+
42
+    // this.timerDia = window.setInterval(() => {
43
+    //   setTimeout(this.requestDialysisScheduals(), 0)
44
+    // }, 10000)
45
+  },
46
+  // beforeDestroy () {
47
+  //   clearInterval(this.timer)
48
+  //   this.timer = null
49
+  //   this.$once('hook:beforeDestroy', () => {
50
+  //     clearInterval(this.timer)
51
+  //   })
52
+
53
+  //   clearInterval(this.timerDia)
54
+  //   this.timerDia = null
55
+  //   this.$once('hook:beforeDestroy', () => {
56
+  //     clearInterval(this.timerDia)
57
+  //   })
58
+  // },
40 59
   methods: {
41
-    requestScheduals() {
42
-      var storedata = this.$store.getters.waitscheduals;
43
-      var scheduals = storedata.waitscheduals;
60
+    refAdvice () {
61
+      this.requestScheduals()
62
+      this.requestDialysisScheduals()
63
+    },
64
+    requestScheduals () {
65
+      var storedata = this.$store.getters.waitscheduals
66
+      var scheduals = storedata.waitscheduals
44 67
       if (Object.keys(storedata).length > 0) {
45
-        this.scheduals = scheduals;
46
-        console.log(this.scheduals);
47
-        let doctorAdvice = [];
68
+        this.scheduals = scheduals
69
+        console.log(this.scheduals)
70
+        let doctorAdvice = []
48 71
         for (let i = 0; i < this.scheduals.length; i++) {
49 72
           for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
50 73
             if (this.scheduals[i].dialysis_order == null) {
51 74
               if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
52
-                doctorAdvice.push(this.scheduals[i].doctor_advice[y]);
75
+                doctorAdvice.push(this.scheduals[i].doctor_advice[y])
53 76
               }
54 77
             }
55 78
           }
56 79
         }
57 80
 
58
-        const sorted = this.groupBy(doctorAdvice, function(item) {
59
-          return [item.groupno];
60
-        });
61
-        this.unReadWaitNum = sorted.length;
62
-      } else {
63
-        var date = parseTime(Date.parse(new Date()), "{y}-{m}-{d}");
64
-        getWaitingScheduals({ date: date }).then(rs => {
65
-          var resp = rs.data;
66
-          this.$store.dispatch("SetRequestScheduals", { resp });
67
-          // console.log(resp);
68
-          if (resp.state == 1) {
69
-            var scheduals = resp.data.scheduals;
70
-            this.scheduals = scheduals;
71
-            console.log(this.scheduals);
72
-            let doctorAdvice = [];
73
-            for (let i = 0; i < this.scheduals.length; i++) {
74
-              for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
75
-                if (this.scheduals[i].dialysis_order == null) {
76
-                  if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
77
-                    doctorAdvice.push(this.scheduals[i].doctor_advice[y]);
78
-                  }
79
-                }
80
-              }
81
-            }
81
+        const sorted = this.groupBy(doctorAdvice, function (item) {
82
+          return [item.groupno]
83
+        })
84
+        this.unReadWaitNum = sorted.length
85
+      } 
86
+      // else {
87
+      //   var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
88
+      //   getWaitingScheduals({ date: date }).then(rs => {
89
+      //     var resp = rs.data
90
+      //     this.$store.dispatch('SetRequestScheduals', { resp })
91
+      //     // console.log(resp);
92
+      //     if (resp.state == 1) {
93
+      //       var scheduals = resp.data.scheduals
94
+      //       this.scheduals = scheduals
95
+      //       console.log(this.scheduals)
96
+      //       let doctorAdvice = []
97
+      //       for (let i = 0; i < this.scheduals.length; i++) {
98
+      //         for (let y = 0; y < this.scheduals[i].doctor_advice.length; y++) {
99
+      //           if (this.scheduals[i].dialysis_order == null) {
100
+      //             if (this.scheduals[i].doctor_advice[y].execution_state == 2) {
101
+      //               doctorAdvice.push(this.scheduals[i].doctor_advice[y])
102
+      //             }
103
+      //           }
104
+      //         }
105
+      //       }
82 106
 
83
-            const sorted = this.groupBy(doctorAdvice, function(item) {
84
-              return [item.groupno];
85
-            });
107
+      //       const sorted = this.groupBy(doctorAdvice, function (item) {
108
+      //         return [item.groupno]
109
+      //       })
86 110
 
87
-            this.unReadWaitNum = sorted.length;
88
-          } else {
89
-            this.$toast({
90
-              message: resp.msg
91
-            });
92
-          }
93
-        });
94
-      }
111
+      //       this.unReadWaitNum = sorted.length
112
+      //     } else {
113
+      //       this.$toast({
114
+      //         message: resp.msg
115
+      //       })
116
+      //     }
117
+      //   })
118
+      // }
95 119
     },
96
-    requestDialysisScheduals() {
97
-      var storedata = this.$store.getters.scheduals;
98
-      var scheduals = storedata.scheduals;
120
+    requestDialysisScheduals () {
121
+      var storedata = this.$store.getters.scheduals
122
+      var scheduals = storedata.scheduals
99 123
       if (Object.keys(storedata).length > 0) {
100
-        let doctorAdvice = [];
124
+        let doctorAdvice = []
101 125
         for (let index = 0; index < scheduals.length; index++) {
102
-          const schedual = scheduals[index];
126
+          const schedual = scheduals[index]
103 127
           if (schedual.dialysis_order == null) {
104
-            continue;
128
+            continue
105 129
           }
106 130
           for (let y = 0; y < schedual.doctor_advice.length; y++) {
107 131
             if (schedual.doctor_advice[y].execution_state == 2) {
108
-              doctorAdvice.push(schedual.doctor_advice[y]);
132
+              doctorAdvice.push(schedual.doctor_advice[y])
109 133
             }
110 134
           }
111 135
         }
112 136
 
113
-        const sorted = this.groupBy(doctorAdvice, function(item) {
114
-          return [item.groupno];
115
-        });
116
-
117
-        this.unReadDialysisNum = sorted.length;
118
-      } else {
119
-        var date = this.$store.getters.app.dialysis_area.schedule_date;
120
-        var type = 0;
121
-        getDialysisScheduals({
122
-          type: type,
123
-          date: parseTime(date, "{y}-{m}-{d}")
137
+        const sorted = this.groupBy(doctorAdvice, function (item) {
138
+          return [item.groupno]
124 139
         })
125
-          .then(rs => {
126
-            var resp = rs.data;
127
-            this.$store.dispatch("SetRequestDialysisScheduals", { resp });
128
-            if (resp.state == 1) {
129
-              var scheduals = resp.data.scheduals;
130
-              let doctorAdvice = [];
131
-              for (let index = 0; index < scheduals.length; index++) {
132
-                const schedual = scheduals[index];
133
-                if (schedual.dialysis_order == null) {
134
-                  continue;
135
-                }
136
-                for (let y = 0; y < schedual.doctor_advice.length; y++) {
137
-                  if (schedual.doctor_advice[y].execution_state == 2) {
138
-                    doctorAdvice.push(schedual.doctor_advice[y]);
139
-                  }
140
-                }
141
-              }
142 140
 
143
-              const sorted = this.groupBy(doctorAdvice, function(item) {
144
-                return [item.groupno];
145
-              });
141
+        this.unReadDialysisNum = sorted.length
142
+      } 
143
+      // else {
144
+      //   var date = this.$store.getters.app.dialysis_area.schedule_date
145
+      //   var type = 0
146
+      //   getDialysisScheduals({
147
+      //     type: type,
148
+      //     date: parseTime(date, '{y}-{m}-{d}')
149
+      //   })
150
+      //     .then(rs => {
151
+      //       var resp = rs.data
152
+      //       this.$store.dispatch('SetRequestDialysisScheduals', { resp })
153
+      //       if (resp.state == 1) {
154
+      //         var scheduals = resp.data.scheduals
155
+      //         let doctorAdvice = []
156
+      //         for (let index = 0; index < scheduals.length; index++) {
157
+      //           const schedual = scheduals[index]
158
+      //           if (schedual.dialysis_order == null) {
159
+      //             continue
160
+      //           }
161
+      //           for (let y = 0; y < schedual.doctor_advice.length; y++) {
162
+      //             if (schedual.doctor_advice[y].execution_state == 2) {
163
+      //               doctorAdvice.push(schedual.doctor_advice[y])
164
+      //             }
165
+      //           }
166
+      //         }
146 167
 
147
-              this.unReadDialysisNum = sorted.length;
148
-            } else {
149
-              this.$toast({
150
-                message: resp.msg
151
-              });
152
-            }
153
-          })
154
-          .catch(v => {});
155
-      }
168
+      //         const sorted = this.groupBy(doctorAdvice, function (item) {
169
+      //           return [item.groupno]
170
+      //         })
171
+
172
+      //         this.unReadDialysisNum = sorted.length
173
+      //       } else {
174
+      //         this.$toast({
175
+      //           message: resp.msg
176
+      //         })
177
+      //       }
178
+      //     })
179
+      //     .catch(v => {})
180
+      // }
156 181
     },
157
-    groupBy(array, f) {
158
-      const groups = {};
159
-      array.forEach(function(o) {
160
-        const group = JSON.stringify(f(o));
161
-        groups[group] = groups[group] || [];
162
-        groups[group].push(o);
163
-      });
164
-      return Object.keys(groups).map(function(group) {
165
-        return groups[group];
166
-      });
182
+    groupBy (array, f) {
183
+      const groups = {}
184
+      array.forEach(function (o) {
185
+        const group = JSON.stringify(f(o))
186
+        groups[group] = groups[group] || []
187
+        groups[group].push(o)
188
+      })
189
+      return Object.keys(groups).map(function (group) {
190
+        return groups[group]
191
+      })
167 192
     },
168
-    getData() {
169
-      console.log("111111");
193
+    getData () {
194
+      console.log('111111')
170 195
       // this.requestScheduals()
171 196
       // this.requestDialysisScheduals()
172 197
     }
173 198
   },
174 199
   computed: {
175
-    readNum: function() {
176
-      return this.unReadWaitNum + this.unReadDialysisNum;
200
+    readNum: function () {
201
+      return this.unReadWaitNum + this.unReadDialysisNum
177 202
     }
178
-  },
179
-  mounted() {
180
-    // this.timer = window.setInterval(() => {
181
-    //   setTimeout(this.getData(), 0);
182
-    // }, 30000);
183
-  },
184
-  beforeDestroy() {
185
-    clearInterval(this.timer);
186
-    this.timer = null;
187 203
   }
188
-};
204
+}
189 205
 </script>
190 206
 
191 207
 <style style="stylesheet/scss" lang="scss" scoped>

+ 225 - 187
src/pages/main/template/DialysisPrintOrderFive.vue View File

@@ -50,10 +50,12 @@
50 50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51 51
                 <div class="inline_block">
52 52
                   入科方式:
53
-                  <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
54
-                  <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
55
-                  <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
56
-                  <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
53
+                  <check-box v-for="item,index in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
54
+
55
+                  <!--<check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>-->
56
+                  <!--<check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>-->
57
+                  <!--<check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>-->
58
+                  <!--<check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>-->
57 59
                 </div>
58 60
                 <div class="inline_block" style="margin-left: 30px;">
59 61
                   体温:
@@ -65,7 +67,7 @@
65 67
                 <div class="inline_block" style="margin-left: 30px;">
66 68
                   血压:
67 69
                   <div class="under_line" style="width: 50px;text-align: left">
68
-                   {{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}
70
+                    {{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}
69 71
                   </div>
70 72
                 </div>
71 73
 
@@ -84,10 +86,12 @@
84 86
               <div class="row" style="padding: 2px 0;line-height:19px;">
85 87
                 <div class="inline_block" >
86 88
                   意识:
87
-                  <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
88
-                  <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
89
-                  <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
90
-                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
89
+                  <check-box v-for="item,index in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
90
+
91
+                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
92
+                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
93
+                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
94
+                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
91 95
 
92 96
                 </div>
93 97
                 <div class="inline_block"  style="margin-left: 5px;">
@@ -179,6 +183,12 @@
179 183
                   <check-box text="感染" :checked="predialysis.ductus_arantii.indexOf('感染')>-1?true:false"></check-box>
180 184
                   <check-box text="破损" :checked="predialysis.ductus_arantii.indexOf('破损')>-1?true:false"></check-box>
181 185
                 </div>
186
+                <div class="inline_block">
187
+                  其它:
188
+                  <div class="under_line" style="width: 100px;text-align: left">
189
+                    <span>{{predialysis.ductus_arantii_other}}</span>
190
+                  </div>
191
+                </div>
182 192
               </div>
183 193
               <div class="row" style="padding: 2px 0;line-height:19px;">
184 194
                 <div class="inline_block">
@@ -215,9 +225,11 @@
215 225
                 </div>
216 226
                 <div class="inline_block">
217 227
                   病情:
218
-                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
219
-                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
220
-                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
228
+                  <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
229
+
230
+                  <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
231
+                  <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
232
+                  <!--<check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>-->
221 233
                   <div class="inline_block">
222 234
                     其它:
223 235
                     <div class="under_line" style="width: 100px;text-align: left">
@@ -233,18 +245,24 @@
233 245
               <div class="row" style="padding: 2px 0;line-height:19px;">
234 246
                 <div class="inline_block">
235 247
                   营养状况评估:&nbsp;食欲:
236
-                  <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
237
-                  <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
248
+                  <check-box v-for="item, index in appetite_arr" :key="item.id" :text="item.name" :checked="receiverTreatmentAccess.appetite == item.id?true:false"></check-box>
249
+
250
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>-->
251
+                  <!--<check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>-->
238 252
                 </div>
239 253
                 <div class="inline_block">
240 254
                   &emsp; 摄入量:
241
-                  <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
242
-                  <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
255
+                  <check-box v-for="item, index in intake_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.intake == item.id?true:false"></check-box>
256
+
257
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>-->
258
+                  <!--<check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>-->
243 259
                 </div>
244 260
                 <div class="inline_block">
245 261
                   &emsp;营养状况:
246
-                  <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
247
-                  <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
262
+                  <check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>
263
+
264
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>-->
265
+                  <!--<check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>-->
248 266
                 </div>
249 267
               </div>
250 268
               <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -289,60 +307,60 @@
289 307
             <td style="padding: 0; position: relative;" colspan="2">
290 308
               <table class="inside_table">
291 309
                 <tbody>
292
-                  <tr><td colspan="12" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理记录:</td></tr>
293
-                  <tr>
294
-                    <td width="100">时间</td>
295
-                    <td width="30">T<br>C°</td>
296
-                    <td width="30">P<br/>次/分</td>
297
-                    <td width="30">R<br/>次/分</td>
298
-                    <td width="100">BP<br/>mmHg</td>
299
-                    <td width="60">静脉压/动脉压<br/>mmHg</td>
300
-                    <td width="80">血流量<br/>ml/min</td>
301
-                    <td width="90">超滤量累计L</td>
302
-                    <td width="90">置换液流量ml/h</td>
303
-                    <td width="80">钠浓度<br/>mmol/L</td>
304
-                    <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
305
-                    <td  width="100">护士签名</td>
306
-                  </tr>
307
-
308
-                  <tr v-if="this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0 || predialysis.pulse_frequency != 0 || predialysis.breathing_rate != 0 || predialysis.temperature != 0">
309
-                    <td>{{'透析前'}}</td>
310
-                    <td>{{predialysis.temperature?predialysis.temperature:''}}</td>
311
-                    <td>{{predialysis.pulse_frequency?predialysis.pulse_frequency:''}}</td>
312
-                    <td>{{predialysis.breathing_rate?predialysis.breathing_rate:''}}</td>
313
-                    <td>{{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}</td>
314
-
315
-                    <td>{{''}}/{{''}}</td>
316
-                    <td>{{''}}</td>
317
-                    <td>{{''}}</td>
318
-                    <td>{{''}}</td>
319
-                    <td>{{''}}</td>
320
-                    <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
321
-                    <td>
322
-                      <span v-if="setAdminUserES(predialysis.creater) == ''">{{getAdminUser(predialysis.creater)}}</span>
323
-                      <img class="es-img" :src="setAdminUserES(predialysis.creater)"  alt="" srcset="" v-else>
324
-                    </td>
325
-                  </tr>
326
-
327
-
328
-                  <tr v-for="(monitor,index) in monitors" :key="index">
329
-                    <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
330
-                    <td>{{monitor.temperature?monitor.temperature:''}}</td>
331
-                    <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
332
-                    <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
333
-                    <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
334
-                    <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
335
-                    <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
336
-                    <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:'/'}}</td>
337
-                    <td>{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</td>
338
-                    <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
339
-
340
-                    <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
341
-                    <td>
342
-                      <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
343
-                      <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)"  alt="" srcset="" v-else>
344
-                    </td>
345
-                  </tr>
310
+                <tr><td colspan="12" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理记录:</td></tr>
311
+                <tr>
312
+                  <td width="100">时间</td>
313
+                  <td width="30">T<br>C°</td>
314
+                  <td width="30">P<br/>次/分</td>
315
+                  <td width="30">R<br/>次/分</td>
316
+                  <td width="100">BP<br/>mmHg</td>
317
+                  <td width="60">静脉压/动脉压<br/>mmHg</td>
318
+                  <td width="80">血流量<br/>ml/min</td>
319
+                  <td width="90">超滤量累计L</td>
320
+                  <td width="90">置换液流量ml/h</td>
321
+                  <td width="80">钠浓度<br/>mmol/L</td>
322
+                  <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
323
+                  <td  width="100">护士签名</td>
324
+                </tr>
325
+
326
+                <tr v-if="this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0 || predialysis.pulse_frequency != 0 || predialysis.breathing_rate != 0 || predialysis.temperature != 0">
327
+                  <td>{{'透析前'}}</td>
328
+                  <td>{{predialysis.temperature?predialysis.temperature:''}}</td>
329
+                  <td>{{predialysis.pulse_frequency?predialysis.pulse_frequency:''}}</td>
330
+                  <td>{{predialysis.breathing_rate?predialysis.breathing_rate:''}}</td>
331
+                  <td>{{predialysis.systolic_blood_pressure?predialysis.systolic_blood_pressure:''}}/{{predialysis.diastolic_blood_pressure?predialysis.diastolic_blood_pressure:''}}</td>
332
+
333
+                  <td>{{''}}/{{''}}</td>
334
+                  <td>{{''}}</td>
335
+                  <td>{{''}}</td>
336
+                  <td>{{''}}</td>
337
+                  <td>{{''}}</td>
338
+                  <td style="line-height:16px;padding:0px;"> <div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;"> {{predialysis.remark}}</span></div></td>
339
+                  <td>
340
+                    <span v-if="setAdminUserES(predialysis.creater) == ''">{{getAdminUser(predialysis.creater)}}</span>
341
+                    <img class="es-img" :src="setAdminUserES(predialysis.creater)"  alt="" srcset="" v-else>
342
+                  </td>
343
+                </tr>
344
+
345
+
346
+                <tr v-for="(monitor,index) in monitors" :key="index">
347
+                  <td>{{getTime(monitor.operate_time,'{h}:{i}')}}</td>
348
+                  <td>{{monitor.temperature?monitor.temperature:''}}</td>
349
+                  <td>{{monitor.pulse_frequency?monitor.pulse_frequency:''}}</td>
350
+                  <td>{{monitor.breathing_rate?monitor.breathing_rate:''}}</td>
351
+                  <td>{{monitor.systolic_blood_pressure?monitor.systolic_blood_pressure:''}}/{{monitor.diastolic_blood_pressure?monitor.diastolic_blood_pressure:''}}</td>
352
+                  <td>{{monitor.venous_pressure?monitor.venous_pressure:''}}/{{monitor.arterial_pressure?monitor.arterial_pressure:''}}</td>
353
+                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:''}}</td>
354
+                  <td>{{monitor.ultrafiltration_volume?monitor.ultrafiltration_volume:'/'}}</td>
355
+                  <td>{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</td>
356
+                  <td>{{monitor.sodium_concentration?monitor.sodium_concentration:''}}</td>
357
+
358
+                  <td style="line-height:16px;padding:0px;"><div style="height:48px;line-height:48px; overflow:hidden;"><span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">{{monitor.symptom}}  &nbsp;{{monitor.dispose}} &nbsp;{{monitor.result}} </span> </div></td>
359
+                  <td>
360
+                    <span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{getAdminUser(monitor.monitoring_nurse)}}</span>
361
+                    <img class="es-img" :src="setAdminUserES(monitor.monitoring_nurse)"  alt="" srcset="" v-else>
362
+                  </td>
363
+                </tr>
346 364
                 </tbody>
347 365
               </table>
348 366
               <div v-if="(this.monitors.length > 8 && this.print_length == 8) || (this.monitors.length > 9 && this.print_length == 9)"  class="print-yema">1</div>
@@ -485,7 +503,7 @@
485 503
                 </div>
486 504
 
487 505
                 <div class="inline_block" style="margin-left:30px;">
488
-                 透析期间进食:
506
+                  透析期间进食:
489 507
                   <check-box text="无" :checked="afterdialysis.is_eat == 1?true:false"></check-box>
490 508
                   <check-box text="有" :checked="afterdialysis.is_eat == 2?true:false"></check-box>
491 509
                 </div>
@@ -765,11 +783,11 @@
765 783
             </div>
766 784
             <div class="row" style="padding: 2px 0;line-height:24px;">
767 785
               <div class="inline_block">
768
-                  透析器型号:
769
-                  <div class="under_line" style="width: 100px;text-align: left">
770
-                    {{prescription.dialyzer_perfusion_apparatus}}
771
-                  </div>
786
+                透析器型号:
787
+                <div class="under_line" style="width: 100px;text-align: left">
788
+                  {{prescription.dialyzer_perfusion_apparatus}}
772 789
                 </div>
790
+              </div>
773 791
               <div class="inline_block" style="margin-left:20px;">
774 792
                 透析前使用特殊药物:
775 793
                 <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
@@ -918,66 +936,66 @@
918 936
         </tr>
919 937
         </tbody>
920 938
       </table>
921
-       <table class="print-table-no" border="1"  count="0" :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;margin-top: -1px;position: relative;':'margin-top: -1px;position: relative;'">
939
+      <table class="print-table-no" border="1"  count="0" :style="this.advice_groups_2.length > 0 ? 'margin-bottom:350px;margin-top: -1px;position: relative;':'margin-top: -1px;position: relative;'">
922 940
         <tbody>
923
-          <tr style="line-height:35px;padding:8px 5px;">
924
-            <td colspan="7" style="font-size: 18px">医嘱</td>
925
-          </tr>
926
-          <tr style="line-height:35px;padding:8px 5px;">
927
-            <td colspan="4" style="font-size: 16px">开医嘱</td>
928
-            <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
929
-          </tr>
930
-          <tr style="line-height:35px;padding:8px 5px;">
931
-            <td style="font-size: 16px" width="10%">时间</td>
932
-            <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
933
-            <td style="font-size: 16px" width="10%">医生签名</td>
934
-            <td style="font-size: 16px" width="10%">核对人签名</td>
935
-            <td style="font-size: 16px" width="10%">执行人签名</td>
936
-            <td style="font-size: 16px" width="10%">时间</td>
937
-          </tr>
938
-          <template v-for="(group, group_index) in advice_groups" >
939
-            <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
940
-              <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
941
+        <tr style="line-height:35px;padding:8px 5px;">
942
+          <td colspan="7" style="font-size: 18px">医嘱</td>
943
+        </tr>
944
+        <tr style="line-height:35px;padding:8px 5px;">
945
+          <td colspan="4" style="font-size: 16px">开医嘱</td>
946
+          <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
947
+        </tr>
948
+        <tr style="line-height:35px;padding:8px 5px;">
949
+          <td style="font-size: 16px" width="10%">时间</td>
950
+          <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
951
+          <td style="font-size: 16px" width="10%">医生签名</td>
952
+          <td style="font-size: 16px" width="10%">核对人签名</td>
953
+          <td style="font-size: 16px" width="10%">执行人签名</td>
954
+          <td style="font-size: 16px" width="10%">时间</td>
955
+        </tr>
956
+        <template v-for="(group, group_index) in advice_groups" >
957
+          <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
958
+            <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
941 959
                   <span v-if="advice.start_time">
942 960
                     {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
943 961
                   </span>
944
-                <span v-else>&nbsp;<br/>&nbsp;</span>
945
-              </td>
946
-              <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
947
-                <span >{{advice.advice_name }}</span>
948
-                <span>{{advice.advice_desc}}</span>
949
-                <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
950
-                <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
951
-                <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
952
-                <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
953
-                <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
954
-              </td>
955
-              <td colspan="2" height="60px" style="text-align: center" v-else >
956
-                <span>{{advice.delivery_way}}</span>
957
-                <span>{{advice.execution_frequency}}</span>
958
-                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
959
-              </td>
960
-              <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
961
-              <td height="60px">
962
-                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
963
-                <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
964
-              </td>
965
-              <td height="60px">
966
-                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
967
-                <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
968
-              </td>
969
-              <td height="60px">
970
-                <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
971
-                <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
972
-              </td>
973
-              <td height="60px">
974
-                <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
975
-              </td>
976
-            </tr>
977
-          </template>
978
-          <tr v-if="this.advice_groups_2.length == 0">
979
-              <td colspan="7" style="text-align:left;">特殊纪录:</td>
962
+              <span v-else>&nbsp;<br/>&nbsp;</span>
963
+            </td>
964
+            <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
965
+              <span >{{advice.advice_name }}</span>
966
+              <span>{{advice.advice_desc}}</span>
967
+              <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
968
+              <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
969
+              <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
970
+              <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
971
+              <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
972
+            </td>
973
+            <td colspan="2" height="60px" style="text-align: center" v-else >
974
+              <span>{{advice.delivery_way}}</span>
975
+              <span>{{advice.execution_frequency}}</span>
976
+              <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
977
+            </td>
978
+            <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
979
+            <td height="60px">
980
+              <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
981
+              <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
982
+            </td>
983
+            <td height="60px">
984
+              <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
985
+              <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
986
+            </td>
987
+            <td height="60px">
988
+              <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
989
+              <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
990
+            </td>
991
+            <td height="60px">
992
+              <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
993
+            </td>
980 994
           </tr>
995
+        </template>
996
+        <!-- <tr v-if="this.advice_groups_2.length == 0">
997
+            <td colspan="7" style="text-align:left;">特殊纪录:</td>
998
+        </tr> -->
981 999
         </tbody>
982 1000
         <div class="print-yema4">1</div>
983 1001
       </table>
@@ -1025,64 +1043,64 @@
1025 1043
 
1026 1044
           <table class="print-table-no" border="1"  count="0">
1027 1045
             <tbody>
1028
-              <tr style="line-height:35px;padding:8px 5px;">
1029
-                <td colspan="7" style="font-size: 18px">医嘱</td>
1030
-              </tr>
1031
-              <tr style="line-height:35px;padding:8px 5px;">
1032
-                <td colspan="4" style="font-size: 16px">开医嘱</td>
1033
-                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1034
-              </tr>
1035
-              <tr style="line-height:35px;padding:8px 5px;">
1036
-                <td style="font-size: 16px" width="10%">时间</td>
1037
-                <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
1038
-                <td style="font-size: 16px" width="10%">医生签名</td>
1039
-                <td style="font-size: 16px" width="10%">核对人签名</td>
1040
-                <td style="font-size: 16px" width="10%">执行人签名</td>
1041
-                <td style="font-size: 16px" width="10%">时间</td>
1042
-              </tr>
1043
-              <template v-for="(group, group_index) in advice_groups_2" >
1044
-                <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
1045
-                  <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
1046
+            <tr style="line-height:35px;padding:8px 5px;">
1047
+              <td colspan="7" style="font-size: 18px">医嘱</td>
1048
+            </tr>
1049
+            <tr style="line-height:35px;padding:8px 5px;">
1050
+              <td colspan="4" style="font-size: 16px">开医嘱</td>
1051
+              <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1052
+            </tr>
1053
+            <tr style="line-height:35px;padding:8px 5px;">
1054
+              <td style="font-size: 16px" width="10%">时间</td>
1055
+              <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
1056
+              <td style="font-size: 16px" width="10%">医生签名</td>
1057
+              <td style="font-size: 16px" width="10%">核对人签名</td>
1058
+              <td style="font-size: 16px" width="10%">执行人签名</td>
1059
+              <td style="font-size: 16px" width="10%">时间</td>
1060
+            </tr>
1061
+            <template v-for="(group, group_index) in advice_groups_2" >
1062
+              <tr v-for="(advice, advice_index) in group.advices" :key="advice_index" >
1063
+                <td height="60px" v-if="advice_index == 0" :rowspan="group.advices.length">
1046 1064
                       <span v-if="advice.start_time">
1047 1065
                         {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
1048 1066
                       </span>
1049
-                    <span v-else>&nbsp;<br/>&nbsp;</span>
1050
-                  </td>
1051
-                  <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
1052
-                    <span >{{advice.advice_name }}</span>
1053
-                    <span>{{advice.advice_desc}}</span>
1054
-                    <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1055
-                    <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
1056
-                    <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
1057
-                    <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
1058
-                    <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
1059
-                  </td>
1060
-                  <td colspan="2" height="60px" style="text-align: center" v-else >
1061
-                    <span>{{advice.delivery_way}}</span>
1062
-                    <span>{{advice.execution_frequency}}</span>
1063
-                    <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1064
-                  </td>
1065
-                  <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
1066
-                  <td height="60px">
1067
-                    <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
1068
-                    <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
1069
-                  </td>
1070
-                  <td height="60px">
1071
-                    <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1072
-                    <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1073
-                  </td>
1074
-                  <td height="60px">
1075
-                    <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
1076
-                    <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
1077
-                  </td>
1078
-                  <td height="60px">
1079
-                    <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
1080
-                  </td>
1081
-                </tr>
1082
-              </template>
1083
-              <!-- <tr >
1084
-                  <td colspan="7" style="text-align:left;">特殊纪录:</td>
1085
-              </tr> -->
1067
+                  <span v-else>&nbsp;<br/>&nbsp;</span>
1068
+                </td>
1069
+                <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
1070
+                  <span >{{advice.advice_name }}</span>
1071
+                  <span>{{advice.advice_desc}}</span>
1072
+                  <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1073
+                  <span  v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
1074
+                  <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
1075
+                  <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
1076
+                  <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
1077
+                </td>
1078
+                <td colspan="2" height="60px" style="text-align: center" v-else >
1079
+                  <span>{{advice.delivery_way}}</span>
1080
+                  <span>{{advice.execution_frequency}}</span>
1081
+                  <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1082
+                </td>
1083
+                <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td>
1084
+                <td height="60px">
1085
+                  <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
1086
+                  <img class="es-img" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
1087
+                </td>
1088
+                <td height="60px">
1089
+                  <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1090
+                  <img class="es-img" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1091
+                </td>
1092
+                <td height="60px">
1093
+                  <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
1094
+                  <img class="es-img" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
1095
+                </td>
1096
+                <td height="60px">
1097
+                  <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{y}-{m}-{d} {h}:{i}')}}</span>
1098
+                </td>
1099
+              </tr>
1100
+            </template>
1101
+            <!-- <tr >
1102
+                <td colspan="7" style="text-align:left;">特殊纪录:</td>
1103
+            </tr> -->
1086 1104
             </tbody>
1087 1105
           </table>
1088 1106
           <div class="print-yema4">2</div>
@@ -1093,6 +1111,7 @@
1093 1111
 
1094 1112
 </template>
1095 1113
 
1114
+
1096 1115
 <script>
1097 1116
   // import CheckBox from 'option_check_box'
1098 1117
   import { getDialysisRecord } from '@/api/dialysis'
@@ -1114,6 +1133,14 @@
1114 1133
     },
1115 1134
     data() {
1116 1135
       return {
1136
+        way_arr: [],
1137
+        consciousness_arr: [],
1138
+        appetite_arr: [],
1139
+        posture_arr: [],
1140
+        sick_condition_arr: [],
1141
+        precaution_arr: [],
1142
+        intake_arr: [],
1143
+        nutrition_arr: [],
1117 1144
         crumbs: [
1118 1145
           { path: false, name: '透析管理' },
1119 1146
           { path: false, name: '打印单' }
@@ -1704,6 +1731,17 @@
1704 1731
 
1705 1732
     },
1706 1733
     created() {
1734
+
1735
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1736
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1737
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1738
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1739
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1740
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1741
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1742
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1743
+
1744
+
1707 1745
       var xtuser = this.$store.getters.user;
1708 1746
       this.orgname = xtuser.org.org_name;
1709 1747
       // this.orgname = "遂溪方济医院";

+ 59 - 30
src/pages/main/template/DialysisPrintOrderOne.vue View File

@@ -68,27 +68,31 @@
68 68
                     <td width="70">入院方式:</td>
69 69
                     <td width="240">
70 70
                       <div>
71
-                        <label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>
72
-                        &nbsp;
73
-                        <label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>
74
-                        &nbsp;
75
-                        <label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>
76
-                        &nbsp;
77
-                        <label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>
71
+                        <label-box v-for="(item, index) in way_arr" :key="index" :isChecked='receiverTreatmentAccess.way==item.id?true:false' :showValue='item.name'></label-box>
72
+
73
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==1?true:false' showValue='步行'></label-box>-->
74
+                        <!--&nbsp;-->
75
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==2?true:false' showValue='扶行'></label-box>-->
76
+                        <!--&nbsp;-->
77
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==3?true:false' showValue='轮椅'></label-box>-->
78
+                        <!--&nbsp;-->
79
+                        <!--<label-box :isChecked='receiverTreatmentAccess.way==4?true:false' showValue='平车'></label-box>-->
78 80
                       </div>
79 81
                     </td>
80 82
                     <td width="50">意识:</td>
81 83
                     <td width="220">
82 84
                       <div>
83
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'
84
-                                   showValue='清醒'></label-box>
85
-                        &nbsp;
86
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'
87
-                                   showValue='嗜睡'></label-box>
88
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'
89
-                                   showValue='昏迷'></label-box>
90
-                        <label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'
91
-                                   showValue='模糊'></label-box>
85
+                        <label-box v-for="(item, index) in consciousness_arr" :key="index" :isChecked='receiverTreatmentAccess.consciousness==item.id?true:false' :showValue='item.name'></label-box>
86
+
87
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==1?true:false'-->
88
+                                   <!--showValue='清醒'></label-box>-->
89
+                        <!--&nbsp;-->
90
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==2?true:false'-->
91
+                                   <!--showValue='嗜睡'></label-box>-->
92
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==3?true:false'-->
93
+                                   <!--showValue='昏迷'></label-box>-->
94
+                        <!--<label-box :isChecked='receiverTreatmentAccess.consciousness==4?true:false'-->
95
+                                   <!--showValue='模糊'></label-box>-->
92 96
                       </div>
93 97
                     </td>
94 98
                     <td width="10"></td>
@@ -109,20 +113,22 @@
109 113
                     <td width="40">体位:</td>
110 114
                     <td width="400">
111 115
                       <div>
112
-                        <label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'
113
-                                   showValue='自动体位'></label-box>
114
-                        &nbsp;
115
-                        <label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'
116
-                                   showValue='平卧位'></label-box>
117
-                        &nbsp;
118
-                        <label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'
119
-                                   showValue='半卧位'></label-box>
120
-                        &nbsp;
121
-                        <label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'
122
-                                   showValue='端坐位'></label-box>
123
-                        &nbsp;
124
-                        <label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'
125
-                                   showValue='躁动不安'></label-box>
116
+                        <label-box v-for="(item, index) in posture_arr" :key="index" :isChecked='receiverTreatmentAccess.posture==item.id?true:false' :showValue='item.name'></label-box>
117
+
118
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==1?true:false'-->
119
+                                   <!--showValue='自动体位'></label-box>-->
120
+                        <!--&nbsp;-->
121
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==2?true:false'-->
122
+                                   <!--showValue='平卧位'></label-box>-->
123
+                        <!--&nbsp;-->
124
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==3?true:false'-->
125
+                                   <!--showValue='半卧位'></label-box>-->
126
+                        <!--&nbsp;-->
127
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==4?true:false'-->
128
+                                   <!--showValue='端坐位'></label-box>-->
129
+                        <!--&nbsp;-->
130
+                        <!--<label-box :isChecked='receiverTreatmentAccess.posture==5?true:false'-->
131
+                                   <!--showValue='躁动不安'></label-box>-->
126 132
                         &nbsp;
127 133
                       </div>
128 134
                     </td>
@@ -1034,6 +1040,17 @@
1034 1040
     },
1035 1041
     data() {
1036 1042
       return {
1043
+
1044
+        way_arr: [],
1045
+        consciousness_arr: [],
1046
+        appetite_arr: [],
1047
+        posture_arr: [],
1048
+        sick_condition_arr: [],
1049
+        precaution_arr: [],
1050
+        intake_arr: [],
1051
+        nutrition_arr: [],
1052
+
1053
+
1037 1054
         crumbs: [
1038 1055
           { path: false, name: '透析管理' },
1039 1056
           { path: false, name: '打印单' }
@@ -1494,6 +1511,18 @@
1494 1511
 
1495 1512
     },
1496 1513
     created() {
1514
+
1515
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1516
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1517
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1518
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1519
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1520
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1521
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1522
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1523
+
1524
+
1525
+
1497 1526
       var xtuser = this.$store.getters.user;
1498 1527
       this.orgname = xtuser.org.org_name;
1499 1528
       // this.orgname = "遂溪方济医院";

+ 38 - 10
src/pages/main/template/DialysisPrintOrderSix.vue View File

@@ -57,11 +57,12 @@
57 57
       <div class="row" >
58 58
         <div class="inline_block" >
59 59
           入科方式:
60
-          <div class="under_line" v-if="receiverTreatmentAccess.way==0" style="width: 180px;text-align: left">  </div>
61
-          <div class="under_line" v-if="receiverTreatmentAccess.way==1" style="width: 180px;text-align: left">步行 </div>
62
-          <div class="under_line" v-if="receiverTreatmentAccess.way==2" style="width: 180px;text-align: left">扶行 </div>
63
-          <div class="under_line" v-if="receiverTreatmentAccess.way==3" style="width: 180px;text-align: left">轮椅 </div>
64
-          <div class="under_line" v-if="receiverTreatmentAccess.way==4" style="width: 180px;text-align: left">平车 </div>
60
+          <div
61
+            v-for="item,index in way_arr"
62
+            class="under_line"
63
+            v-if="receiverTreatmentAccess.way == item.id"
64
+            style="width: 180px;text-align: left"
65
+          >{{item.name}}</div>
65 66
         </div>
66 67
         <div class="inline_block" style="margin-left: 10px;">
67 68
           诊断:
@@ -605,11 +606,17 @@
605 606
         <div class="row" >
606 607
           <div class="inline_block" >
607 608
             入科方式:
608
-            <div class="under_line" v-if="receiverTreatmentAccess.way==0" style="width: 180px;text-align: left">  </div>
609
-            <div class="under_line" v-if="receiverTreatmentAccess.way==1" style="width: 180px;text-align: left">步行 </div>
610
-            <div class="under_line" v-if="receiverTreatmentAccess.way==2" style="width: 180px;text-align: left">扶行 </div>
611
-            <div class="under_line" v-if="receiverTreatmentAccess.way==3" style="width: 180px;text-align: left">轮椅 </div>
612
-            <div class="under_line" v-if="receiverTreatmentAccess.way==4" style="width: 180px;text-align: left">平车 </div>
609
+            <div
610
+              v-for="item,index in way_arr"
611
+              class="under_line"
612
+              v-if="receiverTreatmentAccess.way == item.id"
613
+              style="width: 180px;text-align: left"
614
+            >{{item.name}}</div>
615
+            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==0" style="width: 180px;text-align: left">  </div>-->
616
+            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==1" style="width: 180px;text-align: left">步行 </div>-->
617
+            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==2" style="width: 180px;text-align: left">扶行 </div>-->
618
+            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==3" style="width: 180px;text-align: left">轮椅 </div>-->
619
+            <!--<div class="under_line" v-if="receiverTreatmentAccess.way==4" style="width: 180px;text-align: left">平车 </div>-->
613 620
           </div>
614 621
           <div class="inline_block" style="margin-left: 10px;">
615 622
             诊断:
@@ -826,6 +833,17 @@
826 833
     },
827 834
      data() {
828 835
       return {
836
+        way_arr: [],
837
+        consciousness_arr: [],
838
+        appetite_arr: [],
839
+        posture_arr: [],
840
+        sick_condition_arr: [],
841
+        precaution_arr: [],
842
+        intake_arr: [],
843
+        nutrition_arr: [],
844
+
845
+
846
+
829 847
         crumbs: [
830 848
           { path: false, name: '透析管理' },
831 849
           { path: false, name: '打印单' }
@@ -1418,6 +1436,16 @@
1418 1436
 
1419 1437
     },
1420 1438
     created() {
1439
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1440
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1441
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1442
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1443
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1444
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1445
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1446
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1447
+
1448
+
1421 1449
       var xtuser = this.$store.getters.user
1422 1450
       this.orgname = xtuser.org.org_name
1423 1451
       // this.orgname = "遂溪方济医院";

+ 58 - 20
src/pages/main/template/DialysisPrintOrderTwo.vue View File

@@ -50,10 +50,12 @@
50 50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51 51
                 <div class="inline_block">
52 52
                   入科方式:
53
-                  <check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>
54
-                  <check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>
55
-                  <check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>
56
-                  <check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>
53
+                  <check-box v-for="item,index in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
54
+
55
+                  <!--<check-box text="步行" :checked="receiverTreatmentAccess.way==1?true:false"></check-box>-->
56
+                  <!--<check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>-->
57
+                  <!--<check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>-->
58
+                  <!--<check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>-->
57 59
                 </div>
58 60
                 <div class="inline_block" style="margin-left: 5px;">
59 61
                   透析频次:
@@ -74,10 +76,12 @@
74 76
               <div class="row" style="padding: 2px 0;line-height:19px;">
75 77
                 <div class="inline_block" >
76 78
                   意识:
77
-                  <check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>
78
-                  <check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>
79
-                  <check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>
80
-                  <check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>
79
+                  <check-box v-for="item,index in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
80
+
81
+                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
82
+                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
83
+                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
84
+                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
81 85
                 </div>
82 86
                 <div class="inline_block"  >
83 87
                   活动性出血:
@@ -173,9 +177,11 @@
173 177
                 </div>
174 178
                 <div class="inline_block">
175 179
                   病情:
176
-                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
177
-                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
178
-                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
180
+                  <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
181
+
182
+                  <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
183
+                  <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
184
+                  <!--<check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>-->
179 185
                 </div>
180 186
               </div>
181 187
             </td>
@@ -196,18 +202,24 @@
196 202
               <div class="row" style="padding: 2px 0;line-height:19px;">
197 203
                 <div class="inline_block">
198 204
                   营养状况评估:&nbsp;食欲:
199
-                  <check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>
200
-                  <check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>
205
+                  <check-box v-for="item, index in appetite_arr" :key="item.id" :text="item.name" :checked="receiverTreatmentAccess.appetite == item.id?true:false"></check-box>
206
+
207
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.appetite == 1?true:false"></check-box>-->
208
+                  <!--<check-box text="下降" :checked="receiverTreatmentAccess.appetite == 2?true:false"></check-box>-->
201 209
                 </div>
202 210
                 <div class="inline_block">
203 211
                   &emsp; 摄入量:
204
-                  <check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>
205
-                  <check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>
212
+                  <check-box v-for="item, index in intake_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.intake == item.id?true:false"></check-box>
213
+
214
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.intake == 1?true:false"></check-box>-->
215
+                  <!--<check-box text="减少" :checked="receiverTreatmentAccess.intake == 2?true:false"></check-box>-->
206 216
                 </div>
207 217
                 <div class="inline_block">
208 218
                   &emsp;营养状况:
209
-                  <check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>
210
-                  <check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>
219
+                  <check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>
220
+
221
+                  <!--<check-box text="正常" :checked="receiverTreatmentAccess.nutrition == 1?true:false"></check-box>-->
222
+                  <!--<check-box text="营养不良" :checked="receiverTreatmentAccess.nutrition == 2?true:false"></check-box>-->
211 223
                 </div>
212 224
               </div>
213 225
               <div class="row" style="padding: 2px 0; line-height:19px;">
@@ -668,9 +680,11 @@
668 680
                 </div>
669 681
                 <div class="inline_block">
670 682
                   病情:
671
-                  <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
672
-                  <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
673
-                  <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
683
+                  <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
684
+
685
+                  <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
686
+                  <!--<check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>-->
687
+                  <!--<check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>-->
674 688
                 </div>
675 689
               </div>
676 690
               <div class="row" style="padding: 2px 0;line-height:24px;">
@@ -1061,6 +1075,18 @@
1061 1075
         bloodAccessParOpera: {},
1062 1076
         dialysateFormulationOptions: {},
1063 1077
 
1078
+
1079
+        way_arr: [],
1080
+        consciousness_arr: [],
1081
+        appetite_arr: [],
1082
+        posture_arr: [],
1083
+        sick_condition_arr: [],
1084
+        precaution_arr: [],
1085
+        intake_arr: [],
1086
+        nutrition_arr: [],
1087
+
1088
+
1089
+
1064 1090
         queryParams: {
1065 1091
           xtdate: '',
1066 1092
           xtno: ''
@@ -1624,6 +1650,18 @@
1624 1650
 
1625 1651
     },
1626 1652
     created() {
1653
+
1654
+      this.way_arr = getDataConfig('hemodialysis', 'way')
1655
+      this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
1656
+      this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
1657
+      this.posture_arr = getDataConfig('hemodialysis', 'posture')
1658
+      this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
1659
+      this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
1660
+      this.intake_arr = getDataConfig('hemodialysis', 'intake')
1661
+      this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1662
+
1663
+
1664
+
1627 1665
       var xtuser = this.$store.getters.user;
1628 1666
       this.orgname = xtuser.org.org_name;
1629 1667
       // this.orgname = "遂溪方济医院";

+ 119 - 98
src/pages/main/today/acceptsAssessment.vue View File

@@ -15,6 +15,16 @@
15 15
           <label>病人情况 :</label>
16 16
           <span class="content">{{ condition }}</span>
17 17
         </li>
18
+
19
+        <li
20
+          v-if="this.record.condition == 1"
21
+        >
22
+          <label>住院号:</label>
23
+          <span class="content">{{
24
+            this.record.admission_number
25
+          }}</span>
26
+        </li>
27
+
18 28
         <li v-if="isShow('病人意识')">
19 29
           <label>病人意识 :</label>
20 30
           <span class="content">{{ consciousness }}</span>
@@ -51,7 +61,7 @@
51 61
 
52 62
         <li v-if="isShow('跌倒风险预防措施')">
53 63
           <label>跌倒风险预防措施:</label>
54
-          <span class="content">{{ precautions }}</span>
64
+          <span class="content">{{ precaution }}</span>
55 65
         </li>
56 66
 
57 67
         <li v-if="isShow('其他跌倒风险预防措施')">
@@ -98,72 +108,39 @@
98 108
 </template>
99 109
 
100 110
 <script>
101
-export default {
111
+  import { getDataConfig } from '@/utils/data'
112
+
113
+  export default {
102 114
   name: "AcceptsAssessment",
103 115
   data() {
104 116
     return {
105 117
       title: "接诊评估 ",
106 118
 
107
-      ways: {
108
-        "1": "步行",
109
-        "2": "扶行",
110
-        "3": "轮椅",
111
-        "4": "平车"
112
-      },
119
+      ways: [],
113 120
       conditions: {
114
-        "1": "住院",
115
-        "2": "门诊",
116
-        "3": "手术期"
117
-      },
118
-      consciousnesses: {
119
-        "1": "清醒",
120
-        "2": "嗜睡",
121
-        "3": "昏迷",
122
-        "4": "模糊"
123
-      },
124
-      appetites: {
125
-        "1": "正常",
126
-        "2": "减退",
127
-        "3": "恶心",
128
-        "4": "呕吐",
129
-        "5": "腹泻"
130
-      },
131
-      postures: {
132
-        "1": "自动体位",
133
-        "2": "平卧位",
134
-        "3": "半卧位",
135
-        "4": "端坐位",
136
-        "5": "躁动不安"
137
-      },
138
-      sick_condition: {
139
-        "1": "一般",
140
-        "2": "重",
141
-        "3": "危"
121
+        '1': '住院',
122
+        '2': '门诊',
123
+        '3': '手术期'
142 124
       },
125
+      consciousnesses:[],
126
+      appetites: [],
127
+      postures: [],
128
+      sick_condition:[],
143 129
       danger_level: {
144
-        "1": "无",
145
-        "2": "低风险",
146
-        "3": "中度风险",
147
-        "4": "高风险"
148
-      },
149
-      intake: {
150
-        "1": "正常",
151
-        "2": "减少"
152
-      },
153
-      nutrition: {
154
-        "1": "正常",
155
-        "2": "营养不良"
130
+        '1': '无',
131
+        '2': '低风险',
132
+        '3': '中度风险',
133
+        '4': '高风险'
134
+
156 135
       },
136
+      intake:[],
137
+      nutrition: [],
157 138
       psychological_assessment: {
158
-        "1": "正常",
159
-        "2": "异常"
139
+        '1': '正常',
140
+        '2': '异常'
160 141
       },
161
-      precautionss: {
162
-        "1": "镇定剂",
163
-        "2": "约束带",
164
-        "3": "床栏",
165
-        "4": "加强宣教"
166
-      }
142
+      precautions:[],
143
+
167 144
     };
168 145
   },
169 146
   props: {
@@ -173,12 +150,17 @@ export default {
173 150
   },
174 151
   computed: {
175 152
     way: function() {
176
-      if (this.record == null || this.record.id == "") {
177
-        return "";
153
+      if (this.record.id == 0) {
154
+        return ''
178 155
       } else {
179
-        return this.ways[this.record.way] == undefined
180
-          ? ""
181
-          : this.ways[this.record.way] + "";
156
+        // return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
157
+
158
+        for (let i = 0; i < this.ways.length; i++){
159
+          if (this.record.way == this.ways[i].id){
160
+            return this.ways[i].name
161
+
162
+          }
163
+        }
182 164
       }
183 165
     },
184 166
     condition: function() {
@@ -191,39 +173,56 @@ export default {
191 173
       }
192 174
     },
193 175
     consciousness: function() {
194
-      if (this.record == null || this.record.id == "") {
195
-        return "";
176
+      if (this.record.id == 0) {
177
+        return ''
196 178
       } else {
197
-        return this.consciousnesses[this.record.consciousness] == undefined
198
-          ? ""
199
-          : this.consciousnesses[this.record.consciousness] + "";
179
+        for (let i = 0; i < this.consciousnesses.length; i++){
180
+          if (this.record.consciousness == this.consciousnesses[i].id){
181
+            return this.consciousnesses[i].name
182
+
183
+          }
184
+        }
185
+        // return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
200 186
       }
201 187
     },
202 188
     appetite: function() {
203
-      if (this.record == null || this.record.id == "") {
204
-        return "";
189
+      if (this.record.id == 0) {
190
+        return ''
205 191
       } else {
206
-        return this.appetites[this.record.appetite] == undefined
207
-          ? ""
208
-          : this.appetites[this.record.appetite] + "";
192
+        // 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){
195
+            return this.appetites[i].name
196
+
197
+          }
198
+        }
209 199
       }
210 200
     },
211 201
     posture: function() {
212
-      if (this.record == null || this.record.id == "") {
213
-        return "";
202
+      if (this.record.id == 0) {
203
+        return ''
214 204
       } else {
215
-        return this.postures[this.record.posture] == undefined
216
-          ? ""
217
-          : this.postures[this.record.posture] + "";
205
+        // return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
206
+
207
+        for (let i = 0; i < this.postures.length; i++){
208
+          if (this.record.posture == this.postures[i].id){
209
+            return this.postures[i].name
210
+
211
+          }
212
+        }
218 213
       }
219 214
     },
220 215
     sickCondition: function() {
221
-      if (this.record == null || this.record.id == "") {
222
-        return "";
216
+      if (this.record == null || this.record.id == '') {
217
+        return ''
223 218
       } else {
224
-        return this.sick_condition[this.record.sick_condition] == undefined
225
-          ? ""
226
-          : this.sick_condition[this.record.sick_condition] + "";
219
+        for (let i = 0; i < this.sick_condition.length; i++){
220
+          if (this.record.sick_condition == this.sick_condition[i].id){
221
+            return this.sick_condition[i].name
222
+
223
+          }
224
+        }
225
+        // return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
227 226
       }
228 227
     },
229 228
     dangerLevel: function() {
@@ -235,31 +234,42 @@ export default {
235 234
           : this.danger_level[this.record.danger_level] + "";
236 235
       }
237 236
     },
238
-    precautions: function() {
239
-      if (this.record == null || this.record.id == "") {
240
-        return "";
237
+    precaution: function() {
238
+      if (this.record.id == 0) {
239
+        return ''
241 240
       } else {
242
-        return this.precautionss[this.record.precaution] == undefined
243
-          ? ""
244
-          : this.precautionss[this.record.precaution] + "";
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
+
245
+          }
246
+        }
245 247
       }
246 248
     },
247 249
     intakes: function() {
248
-      if (this.record == null || this.record.id == "") {
249
-        return "";
250
+      if (this.record == null || this.record.id == '') {
251
+        return ''
250 252
       } else {
251
-        return this.intake[this.record.intake] == undefined
252
-          ? ""
253
-          : this.intake[this.record.intake] + "";
253
+        for (let i = 0; i < this.intake.length; i++){
254
+          if (this.record.intake == this.intake[i].id){
255
+            return this.intake[i].name
256
+
257
+          }
258
+        }
259
+        // return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
254 260
       }
255 261
     },
256 262
     nutritions: function() {
257
-      if (this.record == null || this.record.id == "") {
258
-        return "";
263
+      if (this.record == null || this.record.id == '') {
264
+        return ''
259 265
       } else {
260
-        return this.nutrition[this.record.nutrition] == undefined
261
-          ? ""
262
-          : this.nutrition[this.record.nutrition] + "";
266
+        for (let i = 0; i < this.nutrition.length; i++){
267
+          if (this.record.nutrition == this.nutrition[i].id){
268
+            return this.nutrition[i].name
269
+
270
+          }
271
+        }
272
+        // return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
263 273
       }
264 274
     },
265 275
     psychologicalAssessment: function() {
@@ -291,7 +301,18 @@ export default {
291 301
       }
292 302
       return false;
293 303
     }
294
-  }
304
+  },  created(){
305
+    this.ways = getDataConfig('hemodialysis', 'way')
306
+    this.consciousnesses = getDataConfig('hemodialysis', 'consciousness')
307
+    this.appetites = getDataConfig('hemodialysis', 'appetite')
308
+    this.postures = getDataConfig('hemodialysis', 'posture')
309
+    this.sick_condition = getDataConfig('hemodialysis', 'sick_condition')
310
+    this.precautions = getDataConfig('hemodialysis', 'precaution')
311
+    this.intake = getDataConfig('hemodialysis', 'intake')
312
+    this.nutrition = getDataConfig('hemodialysis', 'nutrition')
313
+
314
+
315
+  },
295 316
 };
296 317
 </script>
297 318