Browse Source

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

csx 4 years ago
parent
commit
c0efc5bef5

+ 5 - 6
config/dev.env.js View File

1
-'use strict'
2
-const merge = require('webpack-merge')
3
-const prodEnv = require('./prod.env')
1
+"use strict";
2
+const merge = require("webpack-merge");
3
+const prodEnv = require("./prod.env");
4
 
4
 
5
 module.exports = merge(prodEnv, {
5
 module.exports = merge(prodEnv, {
6
   NODE_ENV: '"development"',
6
   NODE_ENV: '"development"',
7
   //BASE_API: '"https://api.xt.kuyicloud.com"'
7
   //BASE_API: '"https://api.xt.kuyicloud.com"'
8
   BASE_API: '"http://localhost:9531"'
8
   BASE_API: '"http://localhost:9531"'
9
-  //BASE_API: '"http://localhost:9529"'
9
+  // BASE_API: '"http://localhost:9529"'
10
   //http://api.xt.test.sgjyun.com http://localhost:9529
10
   //http://api.xt.test.sgjyun.com http://localhost:9529
11
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
11
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
12
   // BASE_API: '"https://api.xt.kuyicloud.com"'
12
   // BASE_API: '"https://api.xt.kuyicloud.com"'
13
-
14
-})
13
+});

BIN
src/assets/images/ercode.png View File


+ 77 - 21
src/pages/advice/DialysisAdviceTable.vue View File

1
 <template>
1
 <template>
2
   <div class="mainBox">
2
   <div class="mainBox">
3
     <van-sticky>
3
     <van-sticky>
4
-    <div class="floatLeft">
5
-      <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
6
-      <span class="titleName">透析医嘱</span>
7
-    </div>
4
+      <div class="floatLeft">
5
+        <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
6
+        <span class="titleName">透析医嘱</span>
7
+      </div>
8
     </van-sticky>
8
     </van-sticky>
9
     <div class="choice">
9
     <div class="choice">
10
       <ul>
10
       <ul>
78
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
78
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
79
       <div class="blueBorder"></div>
79
       <div class="blueBorder"></div>
80
 
80
 
81
-      <table class="table">
81
+      <table class="table dialysisTable">
82
         <tr>
82
         <tr>
83
-          <th width="60px">姓名</th>
83
+          <th width="40px">姓名</th>
84
           <th width="40px">透析号</th>
84
           <th width="40px">透析号</th>
85
-          <th width="50px">类型</th>
86
-          <th width="110px">开始时间</th>
87
-          <th width="140px">医嘱内容</th>
88
-          <th width="100px">执行时间</th>
85
+          <!-- <th width="50px">类型</th> -->
86
+          <th width="50px">开始时间</th>
87
+          <th width="60px">医嘱内容</th>
88
+          <th width="50px">执行时间</th>
89
           <th width="80px">执行护士</th>
89
           <th width="80px">执行护士</th>
90
           <th width="80px">校对护士</th>
90
           <th width="80px">校对护士</th>
91
-          <th width="110px">校对时间</th>
91
+          <th width="50px">校对时间</th>
92
           <th width="60px">开嘱医生</th>
92
           <th width="60px">开嘱医生</th>
93
-          <th width="110px">开嘱时间</th>
93
+          <th width="50px">开嘱时间</th>
94
         </tr>
94
         </tr>
95
         <template v-for="(schedules, zone_name, index) in filtedScheduals">
95
         <template v-for="(schedules, zone_name, index) in filtedScheduals">
96
           <tr :key="index">
96
           <tr :key="index">
97
             <td>{{ zone_name }}</td>
97
             <td>{{ zone_name }}</td>
98
-            <td></td>
98
+            <!-- <td></td> -->
99
             <td></td>
99
             <td></td>
100
             <td></td>
100
             <td></td>
101
             <td></td>
101
             <td></td>
119
                   advice.parent_id == 0 ? schedule.patient.dialysis_no : ""
119
                   advice.parent_id == 0 ? schedule.patient.dialysis_no : ""
120
                   }}
120
                   }}
121
                 </td>
121
                 </td>
122
-                <td
122
+                <!-- <td
123
                   v-if="advice_index == 0"
123
                   v-if="advice_index == 0"
124
                   :rowspan="group.advices.length"
124
                   :rowspan="group.advices.length"
125
-                >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>
125
+                >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>-->
126
                 <td v-if="advice_index == 0" :rowspan="group.advices.length">
126
                 <td v-if="advice_index == 0" :rowspan="group.advices.length">
127
                   {{
127
                   {{
128
                   advice.parent_id == 0
128
                   advice.parent_id == 0
129
-                  ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
129
+                  ? parseTime(advice.start_time, "{h}:{i}")
130
                   : ""
130
                   : ""
131
                   }}
131
                   }}
132
                 </td>
132
                 </td>
153
                     v-if="advice.parent_id == 0 && advice.remark.length > 0"
153
                     v-if="advice.parent_id == 0 && advice.remark.length > 0"
154
                   >({{ advice.remark }})</span>
154
                   >({{ advice.remark }})</span>
155
                 </td>
155
                 </td>
156
-                <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
156
+                <td>{{ parseTime(advice.execution_time, "{h}:{i}") }}</td>
157
                 <td>{{ getName(advice.execution_staff) }}</td>
157
                 <td>{{ getName(advice.execution_staff) }}</td>
158
                 <td>{{ getName(advice.checker) }}</td>
158
                 <td>{{ getName(advice.checker) }}</td>
159
-                <td>{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}</td>
159
+                <td>{{ parseTime(advice.check_time, "{h}:{i}") }}</td>
160
                 <td>{{ getName(advice.advice_doctor) }}</td>
160
                 <td>{{ getName(advice.advice_doctor) }}</td>
161
-                <td>{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}</td>
161
+                <td>{{ parseTime(advice.created_time, "{h}:{i}") }}</td>
162
               </tr>
162
               </tr>
163
             </template>
163
             </template>
164
           </template>
164
           </template>
347
               }
347
               }
348
             }
348
             }
349
             if (group.group_no > 0) {
349
             if (group.group_no > 0) {
350
-              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
350
+              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
351
               advice_groups.push(group);
351
               advice_groups.push(group);
352
             }
352
             }
353
             advice_groups = advice_groups;
353
             advice_groups = advice_groups;
440
         if (resp.state == 1) {
440
         if (resp.state == 1) {
441
           this.admin_user = resp.data.adminUser;
441
           this.admin_user = resp.data.adminUser;
442
           var schedules = resp.data.scheduals;
442
           var schedules = resp.data.scheduals;
443
+
444
+          for (let i = 0; i < schedules.length; i++) {
445
+            schedules[i].dialysis_no = parseInt(
446
+              schedules[i].patient.dialysis_no
447
+            );
448
+          }
449
+          console.log("schedules", schedules);
450
+
451
+          var arr = [];
452
+          for (let j = 0; j < schedules.length; j++) {
453
+            arr.push(schedules[j].dialysis_no);
454
+          }
455
+          arr.sort(function(a, b) {
456
+            return a - b;
457
+          });
458
+          console.log("arr", arr);
459
+
460
+          var arrTwo = [];
461
+          for (let i = 0; i < arr.length; i++) {
462
+            for (let j = 0; j < schedules.length; j++) {
463
+              if (arr[i] == schedules[j].dialysis_no) {
464
+                arrTwo.push(schedules[j]);
465
+              }
466
+            }
467
+          }
468
+
469
+          arrTwo.map((item, index) => {
470
+            // console.log(item);
471
+            // item.doctor_advice.map((items, i) => {
472
+            //   console.log(items);
473
+            // });
474
+            item.doctor_advice.sort(this.compare("start_time"));
475
+          });
476
+          console.log("arrTwo", arrTwo);
477
+
478
+          const res = new Map();
479
+          let a = arrTwo.filter(
480
+            a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
481
+          );
482
+
483
+          console.log("a", a);
484
+
485
+          schedules = a;
443
           var zoneMap = {};
486
           var zoneMap = {};
444
           var scheduleMap = {};
487
           var scheduleMap = {};
445
           for (let index = 0; index < schedules.length; index++) {
488
           for (let index = 0; index < schedules.length; index++) {
476
         }
519
         }
477
       });
520
       });
478
     },
521
     },
479
-    adviceDesc(advice) {}
522
+    adviceDesc(advice) {},
523
+    compare(property) {
524
+      return function(a, b) {
525
+        var value1 = a[property];
526
+        var value2 = b[property];
527
+        return value1 - value2;
528
+      };
529
+    }
480
   }
530
   }
481
 };
531
 };
482
 </script>
532
 </script>
624
   padding-right: 5px;
674
   padding-right: 5px;
625
   // background: #fafcfe;
675
   // background: #fafcfe;
626
 }
676
 }
677
+.dialysisTable {
678
+  @media only screen and (max-width: 450px) {
679
+    width: 800px;
680
+    //
681
+  }
682
+}
627
 </style>
683
 </style>
628
 <style lang="scss">
684
 <style lang="scss">
629
 // .el-table {
685
 // .el-table {

+ 1 - 0
src/pages/doctorAdvice/components/Inspection.vue View File

318
       this.finished = true;
318
       this.finished = true;
319
     },
319
     },
320
     getTime(time) {
320
     getTime(time) {
321
+      console.log("time是------", time);
321
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
322
       // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
322
       return uParseTime(time, "{y}-{m}-{d}");
323
       return uParseTime(time, "{y}-{m}-{d}");
323
     },
324
     },

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

186
           var filtedSchedules = []
186
           var filtedSchedules = []
187
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
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
-            if ( schedule.patient.name.indexOf(search_keyword) != -1  ) {
189
+            if (schedule.patient.name.indexOf(search_keyword) != -1) {
190
               filtedSchedules.push(schedule)
190
               filtedSchedules.push(schedule)
191
-              break
192
             }
191
             }
193
           }
192
           }
194
           if (filtedSchedules.length > 0) {
193
           if (filtedSchedules.length > 0) {

+ 5 - 1
src/pages/main/add_urgent_schedule.vue View File

130
     </van-popup>
130
     </van-popup>
131
     <van-popup v-model="show_sch_type_picker" position="bottom" class="popup">
131
     <van-popup v-model="show_sch_type_picker" position="bottom" class="popup">
132
       <van-picker
132
       <van-picker
133
+        :default-index="defaultIndex"
133
         ref="schedule"
134
         ref="schedule"
134
         :columns="schedule_types"
135
         :columns="schedule_types"
135
         value-key="text"
136
         value-key="text"
184
       current_devices: [],
185
       current_devices: [],
185
       zone_device_options: [],
186
       zone_device_options: [],
186
 
187
 
187
-      origin_schedules: []
188
+      origin_schedules: [],
189
+      defaultIndex: 0
188
     };
190
     };
189
   },
191
   },
190
   computed: {
192
   computed: {
221
       for (let index = 0; index < this.schedule_types.length; index++) {
223
       for (let index = 0; index < this.schedule_types.length; index++) {
222
         const type = this.schedule_types[index];
224
         const type = this.schedule_types[index];
223
         if (type.value == this.schedule_type) {
225
         if (type.value == this.schedule_type) {
226
+          this.defaultIndex = this.schedule_type - 1;
224
           return type.text;
227
           return type.text;
225
         }
228
         }
226
       }
229
       }
251
         // console.log(rs.data.data)
254
         // console.log(rs.data.data)
252
         if (rs.data.state == 1) {
255
         if (rs.data.state == 1) {
253
           this.origin_schedules = rs.data.data.schedules;
256
           this.origin_schedules = rs.data.data.schedules;
257
+          // console.log("数据源", this.origin_schedules);
254
           this.patients = rs.data.data.patients;
258
           this.patients = rs.data.data.patients;
255
           console.log(this.patients);
259
           console.log(this.patients);
256
           this.modes = rs.data.data.modes;
260
           this.modes = rs.data.data.modes;

+ 82 - 18
src/pages/main/dialog/AssessmentDialog.vue View File

65
           </div>
65
           </div>
66
         </div>
66
         </div>
67
 
67
 
68
-        <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">
68
+<!--        <div class="item" ref="symptom_before_dialysis" v-if="isShow('透析机型号')">-->
69
+<!--          <h2 class="name">透析机型号</h2>-->
70
+<!--          <div class="content">-->
71
+<!--            <input-->
72
+<!--              type="text"-->
73
+<!--              @click="newClick($event)"-->
74
+<!--              @focus="inputFocus"-->
75
+<!--              v-model="formValue.machine_type"-->
76
+<!--            />-->
77
+<!--          </div>-->
78
+<!--        </div>-->
79
+
80
+        <div
81
+          @click="showSubMenu('machine_type')"
82
+          class="item"
83
+          ref="machine_type"
84
+          v-if="isShow('透析机型号')"
85
+        >
69
           <h2 class="name">透析机型号</h2>
86
           <h2 class="name">透析机型号</h2>
70
           <div class="content">
87
           <div class="content">
71
-            <input
72
-              type="text"
73
-              @click="newClick($event)"
74
-              @focus="inputFocus"
75
-              v-model="formValue.machine_type"
76
-            />
88
+            <span class="text">{{DialysisModel(formValue.machine_type)}}</span>
89
+            <span class="iconfont">&#xe6f9;</span>
77
           </div>
90
           </div>
78
         </div>
91
         </div>
79
 
92
 
649
         puncture_needle: ""
662
         puncture_needle: ""
650
       },
663
       },
651
 
664
 
652
-      record_date: ""
665
+      record_date: "",
666
+      machineType: []
653
     };
667
     };
654
   },
668
   },
655
   watch: {
669
   watch: {
1333
           }
1347
           }
1334
           this.propForm.click_ref = "puncture_needle";
1348
           this.propForm.click_ref = "puncture_needle";
1335
           break;
1349
           break;
1350
+
1351
+        case "machine_type":
1352
+          this.isHasOther = 2;
1353
+          this.propForm.isShowOther = 1;
1354
+          this.propForm.type = 23;
1355
+          this.isShowDialog = false;
1356
+          this.propForm.title = "透析机型号";
1357
+          this.visibility = true;
1358
+          this.propForm.list = [];
1359
+          this.propForm.optionList = getDataConfig(
1360
+            "hemodialysis",
1361
+            "machine_type"
1362
+          );
1363
+          this.propForm.isMultiple = 1;
1364
+          this.propForm.selectId = this.formValue.machine_type;
1365
+          this.propForm.click_ref = "machine_type";
1366
+          break;
1336
       }
1367
       }
1337
     },
1368
     },
1338
     menuCancle: function() {
1369
     menuCancle: function() {
1440
         case 22:
1471
         case 22:
1441
           this.formValue.puncture_needle = val.result.join(",");
1472
           this.formValue.puncture_needle = val.result.join(",");
1442
           break;
1473
           break;
1474
+        case 23:
1475
+          this.formValue.machine_type = val.selectId;
1476
+          break;
1443
       }
1477
       }
1444
     },
1478
     },
1445
     QueryPartById: function(val) {
1479
     QueryPartById: function(val) {
1446
       let vascular_access_part_name = "";
1480
       let vascular_access_part_name = "";
1447
       let vascular_access = getDataConfig("hemodialysis", "vascular_access");
1481
       let vascular_access = getDataConfig("hemodialysis", "vascular_access");
1448
-      console.log("vascular_access", vascular_access);
1449
       for (let i = 0; i < vascular_access.length; i++) {
1482
       for (let i = 0; i < vascular_access.length; i++) {
1450
         if (vascular_access[i].id == val) {
1483
         if (vascular_access[i].id == val) {
1451
           vascular_access_part_name = vascular_access[i].name;
1484
           vascular_access_part_name = vascular_access[i].name;
1479
       }
1512
       }
1480
       return name;
1513
       return name;
1481
     },
1514
     },
1515
+    DialysisModel: function(val) {
1516
+      let name = "";
1517
+      let options = getDataConfig("hemodialysis", "machine_type");
1518
+      for (let index = 0; index < options.length; index++) {
1519
+        const option = options[index];
1520
+        if (option.id == val) {
1521
+          name = option.name;
1522
+          break;
1523
+        }
1524
+      }
1525
+      return name;
1526
+    },
1482
     commitInfo: function() {
1527
     commitInfo: function() {
1483
       let mode = 1;
1528
       let mode = 1;
1484
       Toast.loading({ forbidClick: true, duration: 0 });
1529
       Toast.loading({ forbidClick: true, duration: 0 });
1490
       // if (this.formValue.dry_weight == ""){
1535
       // if (this.formValue.dry_weight == ""){
1491
       //   this.formValue.
1536
       //   this.formValue.
1492
       // }
1537
       // }
1493
-      console.log(this.predialysis);
1494
-
1495
 
1538
 
1496
       if (this.predialysis.id > 0) {
1539
       if (this.predialysis.id > 0) {
1497
         mode = 1;
1540
         mode = 1;
1498
-        if(this.predialysis.creater == 0){
1541
+        if (this.predialysis.creater == 0) {
1499
           mode = 1;
1542
           mode = 1;
1500
-        }else{
1543
+        } else {
1501
           mode = 2;
1544
           mode = 2;
1502
           if (this.predialysis.creater != this.$store.getters.user.admin.id) {
1545
           if (this.predialysis.creater != this.$store.getters.user.admin.id) {
1503
             mode = 3;
1546
             mode = 3;
1504
           }
1547
           }
1505
         }
1548
         }
1506
       }
1549
       }
1507
-
1550
+      this.machineType = getDataConfig("hemodialysis", "machine_type");
1551
+      var arr = this.formValue;
1552
+      for (let i = 0; i < this.machineType.length; i++) {
1553
+        if (arr.machine_type == this.machineType[i].id) {
1554
+          arr.machine_type = this.machineType[i].name;
1555
+        }
1556
+      }
1557
+      this.formValue = arr;
1508
       EditAssessmentBeforeDislysis(
1558
       EditAssessmentBeforeDislysis(
1509
         this.$route.query.patient_id,
1559
         this.$route.query.patient_id,
1510
         this.record_date,
1560
         this.record_date,
1518
           } else {
1568
           } else {
1519
             Toast("提交完成");
1569
             Toast("提交完成");
1520
             this.$emit("evaluation", response.data.data.evaluation);
1570
             this.$emit("evaluation", response.data.data.evaluation);
1571
+            var obj = this.predialysis;
1572
+            var arr = getDataConfig("hemodialysis", "machine_type");
1573
+            for (let i = 0; i < arr.length; i++) {
1574
+              if (obj.machine_type == arr[i].name) {
1575
+                obj.machine_type = arr[i].id;
1576
+              }
1577
+            }
1578
+            this.formValue = obj;
1521
           }
1579
           }
1522
         })
1580
         })
1523
         .catch(error => {
1581
         .catch(error => {
1592
           }
1650
           }
1593
         })
1651
         })
1594
         .then(res => {
1652
         .then(res => {
1595
-          console.log(res);
1596
-          console.log("透前", this.patient_prop);
1597
           console.log("透前", this.predialysis);
1653
           console.log("透前", this.predialysis);
1598
           if (res.data.state == 0) {
1654
           if (res.data.state == 0) {
1599
             this.hasPermission = false;
1655
             this.hasPermission = false;
1633
     CheckBoxSubMenu
1689
     CheckBoxSubMenu
1634
   },
1690
   },
1635
   created() {
1691
   created() {
1692
+    console.log("透前评估数据来源", this.predialysis);
1636
     this.getPermission();
1693
     this.getPermission();
1637
 
1694
 
1638
     var date = this.$route.query && this.$route.query.date;
1695
     var date = this.$route.query && this.$route.query.date;
1650
     }
1707
     }
1651
     this.record_date =
1708
     this.record_date =
1652
       y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
1709
       y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
1653
-    this.formValue = this.predialysis;
1654
 
1710
 
1711
+    var obj = this.predialysis;
1712
+    var arr = getDataConfig("hemodialysis", "machine_type");
1713
+    console.log("arr", arr);
1714
+    for (let i = 0; i < arr.length; i++) {
1715
+      if (obj.machine_type == arr[i].name) {
1716
+        obj.machine_type = arr[i].id;
1717
+      }
1718
+    }
1719
+    this.formValue = obj;
1655
     if (
1720
     if (
1656
       this.predialysis.id == undefined &&
1721
       this.predialysis.id == undefined &&
1657
       this.last_predialysis.id != undefined
1722
       this.last_predialysis.id != undefined
1726
     }
1791
     }
1727
     this.hemorrhage_state = this.formValue.is_hemorrhage == 0;
1792
     this.hemorrhage_state = this.formValue.is_hemorrhage == 0;
1728
     this.data = getDataConfig("hemodialysis", "vascular_access_desc");
1793
     this.data = getDataConfig("hemodialysis", "vascular_access_desc");
1729
-    console.log("投前评估", this.data);
1730
   }
1794
   }
1731
 };
1795
 };
1732
 </script>
1796
 </script>

+ 125 - 39
src/pages/main/dialog/MonitDialog.vue View File

10
         <div style="width:100%;background: #fff;">
10
         <div style="width:100%;background: #fff;">
11
           <div class="yzNav" style="width:80%">
11
           <div class="yzNav" style="width:80%">
12
             <span :class="{ forbid: is_has_create != true }" @click="openForm()">新增监测</span>
12
             <span :class="{ forbid: is_has_create != true }" @click="openForm()">新增监测</span>
13
-            <span :class="{ forbid: is_has_modify != true && is_has_modify_other != true }" @click="openEidtForm()">修改监测</span>
14
-            <span :class="{ forbid: is_has_del != true && is_has_del_other != true }" @click="deleteForm()">删除监测</span>
13
+            <span
14
+              :class="{ forbid: is_has_modify != true && is_has_modify_other != true }"
15
+              @click="openEidtForm()"
16
+            >修改监测</span>
17
+            <span
18
+              :class="{ forbid: is_has_del != true && is_has_del_other != true }"
19
+              @click="deleteForm()"
20
+            >删除监测</span>
15
           </div>
21
           </div>
16
         </div>
22
         </div>
17
         <div class="DialogContent choose" id="dialogTop">
23
         <div class="DialogContent choose" id="dialogTop">
18
           <div style="width:100%;overflow:hildden;">
24
           <div style="width:100%;overflow:hildden;">
19
-            <table class="table" style>
25
+            <table class="table newMonitTable" style>
20
               <tr @click="selectRow(-1, null)">
26
               <tr @click="selectRow(-1, null)">
21
                 <th v-if="isShow('监测时间')" width="60px">时间</th>
27
                 <th v-if="isShow('监测时间')" width="60px">时间</th>
22
-                <th v-if="isShow('血压')" width="60px">血压(mmHg)</th>
23
-                <th v-if="isShow('脉搏')" width="50px">脉搏(次/分)</th>
24
-                <th v-if="isShow('体温')" width="50px">体温(℃)</th>
25
-                <th v-if="isShow('呼吸频率')" width="80px">呼吸频率(次/分)</th>
26
-                <th v-if="isShow('血流量')" width="70px">血流量(ml/min)</th>
27
-                <th width="76px">静脉压/动脉压(mmHg)</th>
28
-                <th v-if="isShow('跨膜压')" width="70px">跨膜压(mmHg)</th>
29
-                <th v-if="isShow('超滤量') && (template_id ==6 || template_id == 10 || template_id == 11)" width="60px">超滤量(ml)</th>
30
-                <th v-if="isShow('超滤量') && template_id !=6 && template_id !=10 && template_id !=11" width="60px">超滤量(L)</th>
31
-                <th v-if="isShow('钠浓度')" width="82px">钠浓度(mmol/L)</th>
32
-                <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
33
-                <th v-if="isShow('置换率') && (template_id ==6 || template_id == 10 || template_id == 11)" width="92px">置换率(ml/min)</th>
34
-                <th v-if="isShow('置换率') && template_id !=6 && template_id !=10 && template_id != 11" width="92px">置换率(L/h)</th>
35
-                <th v-if="isShow('置换量') && (template_id ==6 || template_id ==10 ||template_id ==11 )" width="50px">置换量(ml)</th>
36
-                <th v-if="isShow('置换量') && template_id !=6 && template_id !=10 && template_id !=11" width="50px">置换量(L)</th>
37
-                <th v-if="isShow('SpO₂')  && template_id !=6 && template_id !=10 && template_id !=11" width="50px">SpO₂(%)</th>
38
-                <th v-if="isShow('电导度')" width="50px">电导度(mS/cm)</th>
39
-                <th v-if="isShow('置换液流量')" width="50px">置换液流量(ml/h)</th>
40
-                <th v-if="isShow('肝素用量余量')" width="50px">肝素用量余量(ml)</th>
28
+                <th v-if="isShow('血压')" width="60px">
29
+                  血压
30
+                  <br />(mmHg)
31
+                </th>
32
+                <th v-if="isShow('脉搏')" width="50px">
33
+                  脉搏
34
+                  <br />(次/分)
35
+                </th>
36
+                <th v-if="isShow('体温')" width="40px">
37
+                  体温
38
+                  <br />(℃)
39
+                </th>
40
+                <th v-if="isShow('呼吸频率')" width="60px">
41
+                  呼吸频率
42
+                  <br />(次/分)
43
+                </th>
44
+                <th v-if="isShow('血流量')" width="60px">
45
+                  血流量
46
+                  <br />(ml/min)
47
+                </th>
48
+                <th width="76px">
49
+                  静脉压/动脉压
50
+                  <br />(mmHg)
51
+                </th>
52
+                <th v-if="isShow('跨膜压')" width="60px">
53
+                  跨膜压
54
+                  <br />(mmHg)
55
+                </th>
56
+                <th
57
+                  v-if="isShow('超滤量') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12)"
58
+                  width="50px"
59
+                >
60
+                  超滤量
61
+                  <br />(ml)
62
+                </th>
63
+                <th
64
+                  v-if="isShow('超滤量') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12"
65
+                  width="50px"
66
+                >
67
+                  超滤量
68
+                  <br />(L)
69
+                </th>
70
+                <th v-if="isShow('钠浓度')" width="60px">
71
+                  钠浓度
72
+                  <br />(mmol/L)
73
+                </th>
74
+                <th v-if="isShow('透析液温度')" width="60px">
75
+                  透析液温度
76
+                  <br />(℃)
77
+                </th>
78
+                <th
79
+                  v-if="isShow('置换率') && (template_id ==6 || template_id == 10 || template_id == 11)"
80
+                  width="50px"
81
+                >
82
+                  置换率
83
+                  <br />(ml/min)
84
+                </th>
85
+                <th
86
+                  v-if="isShow('置换率') && template_id !=6 && template_id !=10 && template_id != 11"
87
+                  width="50px"
88
+                >
89
+                  置换率
90
+                  <br />(L/h)
91
+                </th>
92
+                <th
93
+                  v-if="isShow('置换量') && (template_id ==6 || template_id ==10 ||template_id ==11 )"
94
+                  width="50px"
95
+                >
96
+                  置换量
97
+                  <br />(ml)
98
+                </th>
99
+                <th
100
+                  v-if="isShow('置换量') && template_id !=6 && template_id !=10 && template_id !=11"
101
+                  width="50px"
102
+                >
103
+                  置换量
104
+                  <br />(L)
105
+                </th>
106
+                <th
107
+                  v-if="isShow('SpO₂')  && template_id !=6 && template_id !=10 && template_id !=11"
108
+                  width="40px"
109
+                >
110
+                  SpO₂
111
+                  <br />(%)
112
+                </th>
113
+                <th v-if="isShow('电导度')" width="50px">
114
+                  电导度
115
+                  <br />(mS/cm)
116
+                </th>
117
+                <th v-if="isShow('置换液流量')" width="50px">
118
+                  置换液流量
119
+                  <br />(ml/h)
120
+                </th>
121
+                <th v-if="isShow('肝素用量余量')" width="60px">
122
+                  肝素用量余量
123
+                  <br />(ml)
124
+                </th>
41
                 <th v-if="isShow('病情变化')" width="92px">病情变化</th>
125
                 <th v-if="isShow('病情变化')" width="92px">病情变化</th>
42
                 <th v-if="isShow('处理')" width="92px">处理</th>
126
                 <th v-if="isShow('处理')" width="92px">处理</th>
43
                 <th v-if="isShow('结果')" width="92px">结果</th>
127
                 <th v-if="isShow('结果')" width="92px">结果</th>
50
                 :class="index==currentIndex?rowClass:''"
134
                 :class="index==currentIndex?rowClass:''"
51
               >
135
               >
52
                 <td v-if="isShow('监测时间')">{{parseTime(item.operate_time, '{y}-{m}-{d} {h}:{i}')}}</td>
136
                 <td v-if="isShow('监测时间')">{{parseTime(item.operate_time, '{y}-{m}-{d} {h}:{i}')}}</td>
53
-                <td v-if="isShow('血压')">{{item.systolic_blood_pressure?item.systolic_blood_pressure:''}}/{{item.diastolic_blood_pressure?item.diastolic_blood_pressure:''}}</td>
137
+                <td
138
+                  v-if="isShow('血压')"
139
+                >{{item.systolic_blood_pressure?item.systolic_blood_pressure:''}}/{{item.diastolic_blood_pressure?item.diastolic_blood_pressure:''}}</td>
54
                 <td v-if="isShow('脉搏')">{{item.pulse_frequency?item.pulse_frequency:''}}</td>
140
                 <td v-if="isShow('脉搏')">{{item.pulse_frequency?item.pulse_frequency:''}}</td>
55
                 <td v-if="isShow('体温')">{{item.temperature?item.temperature:''}}</td>
141
                 <td v-if="isShow('体温')">{{item.temperature?item.temperature:''}}</td>
56
                 <td v-if="isShow('呼吸频率')">{{item.breathing_rate?item.breathing_rate:''}}</td>
142
                 <td v-if="isShow('呼吸频率')">{{item.breathing_rate?item.breathing_rate:''}}</td>
70
                 <td
156
                 <td
71
                   v-if="isShow('置换量')"
157
                   v-if="isShow('置换量')"
72
                 >{{item.displacement_quantity?item.displacement_quantity:''}}</td>
158
                 >{{item.displacement_quantity?item.displacement_quantity:''}}</td>
73
-                 <td
159
+                <td
74
                   v-if="isShow('SpO₂') && template_id != 6 && template_id != 10  && template_id != 11"
160
                   v-if="isShow('SpO₂') && template_id != 6 && template_id != 10  && template_id != 11"
75
                 >{{item.blood_oxygen_saturation?item.blood_oxygen_saturation:''}}</td>
161
                 >{{item.blood_oxygen_saturation?item.blood_oxygen_saturation:''}}</td>
76
 
162
 
79
                   v-if="isShow('置换液流量')"
165
                   v-if="isShow('置换液流量')"
80
                 >{{item.displacement_flow_quantity?item.displacement_flow_quantity:''}}</td>
166
                 >{{item.displacement_flow_quantity?item.displacement_flow_quantity:''}}</td>
81
 
167
 
82
-                <td
83
-                  v-if="isShow('肝素用量余量')"
84
-                >{{item.heparin?item.heparin:''}}</td>
168
+                <td v-if="isShow('肝素用量余量')">{{item.heparin?item.heparin:''}}</td>
85
 
169
 
86
                 <td v-if="isShow('病情变化')">{{item.symptom}}</td>
170
                 <td v-if="isShow('病情变化')">{{item.symptom}}</td>
87
                 <td v-if="isShow('处理')">{{item.dispose}}</td>
171
                 <td v-if="isShow('处理')">{{item.dispose}}</td>
206
               >转换</button>
290
               >转换</button>
207
             </div>
291
             </div>
208
             <div class="cell" v-if="isShow('超滤量')">
292
             <div class="cell" v-if="isShow('超滤量')">
209
-              <label v-if="template_id == 6 || template_id == 10 || template_id == 11">超滤量(ml)</label>
293
+              <label
294
+                v-if="template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12"
295
+              >超滤量(ml)</label>
210
               <label v-else>超滤量(L)</label>
296
               <label v-else>超滤量(L)</label>
211
               <input
297
               <input
212
                 type="number"
298
                 type="number"
229
               />
315
               />
230
             </div>
316
             </div>
231
             <div class="cell" v-if="isShow('动脉压')">
317
             <div class="cell" v-if="isShow('动脉压')">
232
-             <label>动脉压(mmHg)</label>
318
+              <label>动脉压(mmHg)</label>
233
               <input
319
               <input
234
                 type="number"
320
                 type="number"
235
                 @focus="inputFocus"
321
                 @focus="inputFocus"
516
         blood_oxygen_saturation: "",
602
         blood_oxygen_saturation: "",
517
         monitoring_nurse: this.$store.getters.user.admin.id, // 监测人
603
         monitoring_nurse: this.$store.getters.user.admin.id, // 监测人
518
         creator: 0,
604
         creator: 0,
519
-        heparin:"",
605
+        heparin: ""
520
       },
606
       },
521
       doctor: this.$store.getters.user.user.user_name,
607
       doctor: this.$store.getters.user.user.user_name,
522
       value: 0,
608
       value: 0,
679
           ? resp.monitor.replacement_rate
765
           ? resp.monitor.replacement_rate
680
           : "";
766
           : "";
681
 
767
 
682
-        this.form.heparin = resp.monitor.heparin
683
-          ? resp.monitor.heparin
684
-          : "";
685
-
768
+        this.form.heparin = resp.monitor.heparin ? resp.monitor.heparin : "";
686
 
769
 
687
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
770
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
688
         this.form.conductivity = "";
771
         this.form.conductivity = "";
693
         this.form.dispose = ""; // this.last_monitor_record.dispose;
776
         this.form.dispose = ""; // this.last_monitor_record.dispose;
694
         this.form.result = ""; // this.last_monitor_record.result;
777
         this.form.result = ""; // this.last_monitor_record.result;
695
         this.form.id = -1;
778
         this.form.id = -1;
696
-        console.log(this.form);
779
+        console.log("hheh", resp.monitor);
780
+        this.form.blood_oxygen_saturation = resp.monitor.blood_oxygen_saturation
781
+          ? resp.monitor.blood_oxygen_saturation
782
+          : "";
697
       });
783
       });
698
     },
784
     },
699
 
785
 
808
               monitor.displacement_flow_quantity;
894
               monitor.displacement_flow_quantity;
809
           }
895
           }
810
 
896
 
811
-
812
           if (monitor.heparin == 0) {
897
           if (monitor.heparin == 0) {
813
             this.form.heparin = "";
898
             this.form.heparin = "";
814
           } else {
899
           } else {
815
             this.form.heparin = monitor.heparin;
900
             this.form.heparin = monitor.heparin;
816
           }
901
           }
817
 
902
 
818
-
819
-
820
           this.form.ktv = monitor.ktv;
903
           this.form.ktv = monitor.ktv;
821
           this.form.symptom = monitor.symptom;
904
           this.form.symptom = monitor.symptom;
822
           this.form.dispose = monitor.dispose;
905
           this.form.dispose = monitor.dispose;
1278
             this.form.result = "";
1361
             this.form.result = "";
1279
             this.form.conductivity = "";
1362
             this.form.conductivity = "";
1280
             this.form.displacement_flow_quantity = "";
1363
             this.form.displacement_flow_quantity = "";
1281
-            this.form.heparin= "";
1364
+            this.form.heparin = "";
1282
 
1365
 
1283
             // this.last_monitor_record.sodium_concentration =
1366
             // this.last_monitor_record.sodium_concentration =
1284
             //   monitor.sodium_concentration
1367
             //   monitor.sodium_concentration
1537
       text-align: center;
1620
       text-align: center;
1538
     }
1621
     }
1539
   }
1622
   }
1623
+  .newMonitTable {
1624
+    width: 1670px;
1625
+  }
1540
 }
1626
 }
1541
 
1627
 
1542
 .row-class-active > td {
1628
 .row-class-active > td {

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

54
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
54
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
55
 
55
 
56
         <div class="content clearfix">
56
         <div class="content clearfix">
57
+
58
+
57
           <div class="orderTable">
59
           <div class="orderTable">
58
 
60
 
59
             <table class="table">
61
             <table class="table">

+ 296 - 79
src/pages/main/dialog/PrescriptionDialog.vue View File

319
               />
319
               />
320
             </div>
320
             </div>
321
           </div>
321
           </div>
322
-          <div class="item" v-if="isShow('电导')">
323
-            <label class="name" for="dtl">电导(mS/cm)</label>
322
+          <div class="item" v-if="isShow('电导')">
323
+            <label class="name" for="dtl">电导(mS/cm)</label>
324
             <div class="content">
324
             <div class="content">
325
               <input
325
               <input
326
                 type="number"
326
                 type="number"
331
               />
331
               />
332
             </div>
332
             </div>
333
           </div>
333
           </div>
334
-          <div class="item" v-if="isShow('透析器/灌流器')">
335
-            <label class="name" for="dtl">透析器/灌流器</label>
334
+<!--          <div class="item" v-if="isShow('透析器/灌流器')">-->
335
+<!--            <label class="name" for="dtl">透析器/灌流器</label>-->
336
+<!--            <div class="content">-->
337
+<!--              <input-->
338
+<!--                @focus="inputFocus"-->
339
+<!--                id="dt"-->
340
+<!--                v-model="dialysisPrescription.dialyzer_perfusion_apparatus"-->
341
+<!--              />-->
342
+<!--            </div>-->
343
+<!--          </div>-->
344
+
345
+          <div @click="showSubMenu('dialyzer_perfusion_apparatus')" class="item" ref="mode" v-if="isShow('透析器/灌流器')">
346
+            <label class="name" for="txms">透析器/灌流器</label>
336
             <div class="content">
347
             <div class="content">
337
-              <input
338
-                @focus="inputFocus"
339
-                id="dt"
340
-                v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
341
-              />
348
+              <span class="text" id="txms">{{getDialyzerPerfusionApparatus(dialysisPrescription.dialyzer_perfusion_apparatus)}}</span>
349
+              <span class="iconfont">&#xe6f9;</span>
342
             </div>
350
             </div>
343
           </div>
351
           </div>
352
+
344
           <div class="line"></div>
353
           <div class="line"></div>
345
 
354
 
346
           <div
355
           <div
799
         type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
808
         type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
800
         selectId: 0
809
         selectId: 0
801
       },
810
       },
802
-      data: []
811
+      data: [],
812
+      dialyzerPerfusionApparatus: []
803
     };
813
     };
804
   },
814
   },
805
   computed: {
815
   computed: {
1036
           break;
1046
           break;
1037
 
1047
 
1038
         case "dialyzer_perfusion_apparatus":
1048
         case "dialyzer_perfusion_apparatus":
1039
-          // this.propForm.type = 11
1040
-          // this.isShowDialog = false
1041
-          // this.propForm.title = '透析器/灌流器'
1042
-          // this.visibility = true
1043
-          // this.propForm.list = []
1044
-          // this.propForm.optionList = this.bloodAccessOptions
1045
-          // this.propForm.isMultiple = 1
1046
-          // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
1047
-          // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
1048
-          // break
1049
-
1050
-          this.propForm.result = [];
1051
-          this.isHasOther = 2;
1052
           this.propForm.type = 11;
1049
           this.propForm.type = 11;
1053
           this.isShowDialog = false;
1050
           this.isShowDialog = false;
1054
           this.propForm.title = "透析器/灌流器";
1051
           this.propForm.title = "透析器/灌流器";
1055
           this.visibility = true;
1052
           this.visibility = true;
1056
           this.propForm.list = [];
1053
           this.propForm.list = [];
1057
-          this.propForm.list = getDataConfig(
1058
-            "hemodialysis",
1059
-            "dialyzer_perfusion_apparatus"
1060
-          );
1061
-          this.propForm.optionList = [];
1062
-          this.propForm.isMultiple = 2;
1063
-          // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
1064
-          if (
1065
-            this.dialysisPrescription.dialyzer_perfusion_apparatus !=
1066
-              undefined ||
1067
-            this.dialysisPrescription.dialyzer_perfusion_apparatus != null
1068
-          ) {
1069
-            if (
1070
-              this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0
1071
-            ) {
1072
-              this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(
1073
-                ","
1074
-              );
1075
-            } else {
1076
-              this.propForm.result = [];
1077
-            }
1078
-          } else {
1079
-            this.propForm.result = [];
1080
-          }
1054
+          this.propForm.optionList = this.dialyzerPerfusionApparatus;
1055
+          this.propForm.isMultiple = 1;
1056
+          this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus;
1081
           this.propForm.click_ref = "dialyzer_perfusion_apparatus";
1057
           this.propForm.click_ref = "dialyzer_perfusion_apparatus";
1058
+
1082
           break;
1059
           break;
1083
       }
1060
       }
1084
     },
1061
     },
1467
           this.dialysisPrescription.blood_access = val.selectId;
1444
           this.dialysisPrescription.blood_access = val.selectId;
1468
           break;
1445
           break;
1469
         case 11:
1446
         case 11:
1470
-          this.dialysisPrescription.dialyzer_perfusion_apparatus = val.result.join(
1471
-            ","
1472
-          );
1447
+          this.dialysisPrescription.dialyzer_perfusion_apparatus = val.selectId;
1473
           break;
1448
           break;
1474
       }
1449
       }
1475
     },
1450
     },
1499
             treatment_mode_id === 13 ||
1474
             treatment_mode_id === 13 ||
1500
             treatment_mode_id === 14 ||
1475
             treatment_mode_id === 14 ||
1501
             treatment_mode_id === 15 ||
1476
             treatment_mode_id === 15 ||
1502
-            treatment_mode_id === 16
1477
+            treatment_mode_id === 16 ||
1478
+            treatment_mode_id === 19
1503
           ) {
1479
           ) {
1504
             this.zhiShow = false;
1480
             this.zhiShow = false;
1505
             this.totalShow = false;
1481
             this.totalShow = false;
1593
       if (this.prescription_prop.id == "") {
1569
       if (this.prescription_prop.id == "") {
1594
         if (this.is_open == 0) {
1570
         if (this.is_open == 0) {
1595
           Toast.loading({ forbidClick: true, duration: 0 });
1571
           Toast.loading({ forbidClick: true, duration: 0 });
1596
-          let ParamsQuery = this.dialysisPrescription;
1572
+          var arr = this.dialysisPrescription;
1573
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1574
+            if (
1575
+              arr.dialyzer_perfusion_apparatus ==
1576
+              this.dialyzerPerfusionApparatus[i].id
1577
+            ) {
1578
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1579
+                i
1580
+              ].name;
1581
+            }
1582
+          }
1583
+          let ParamsQuery = arr;
1584
+          console.log("ParamsQueryOne", ParamsQuery);
1597
           ParamsQuery["patient"] = this.$route.query.patient_id;
1585
           ParamsQuery["patient"] = this.$route.query.patient_id;
1598
           ParamsQuery["record_date"] = this.record_date;
1586
           ParamsQuery["record_date"] = this.record_date;
1599
           ParamsQuery["mode"] = "1";
1587
           ParamsQuery["mode"] = "1";
1634
             }
1622
             }
1635
           } else {
1623
           } else {
1636
             Toast.loading({ forbidClick: true, duration: 0 });
1624
             Toast.loading({ forbidClick: true, duration: 0 });
1637
-            let ParamsQuery = this.dialysisPrescription;
1625
+            var arr = this.dialysisPrescription;
1626
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1627
+              if (
1628
+                arr.dialyzer_perfusion_apparatus ==
1629
+                this.dialyzerPerfusionApparatus[i].id
1630
+              ) {
1631
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1632
+                  i
1633
+                ].name;
1634
+              }
1635
+            }
1636
+            let ParamsQuery = arr;
1637
+            console.log("ParamsQueryTwo", ParamsQuery);
1638
             ParamsQuery["patient"] = this.$route.query.patient_id;
1638
             ParamsQuery["patient"] = this.$route.query.patient_id;
1639
             ParamsQuery["record_date"] = this.record_date;
1639
             ParamsQuery["record_date"] = this.record_date;
1640
             ParamsQuery["mode"] = "1";
1640
             ParamsQuery["mode"] = "1";
1661
         } else if (this.is_open == 2) {
1661
         } else if (this.is_open == 2) {
1662
           if (this.waitUploadAdvices.length > 0) {
1662
           if (this.waitUploadAdvices.length > 0) {
1663
             Toast.loading({ forbidClick: true, duration: 0 });
1663
             Toast.loading({ forbidClick: true, duration: 0 });
1664
-            let ParamsQuery = this.dialysisPrescription;
1664
+            var arr = this.dialysisPrescription;
1665
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1666
+              if (
1667
+                arr.dialyzer_perfusion_apparatus ==
1668
+                this.dialyzerPerfusionApparatus[i].id
1669
+              ) {
1670
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1671
+                  i
1672
+                ].name;
1673
+              }
1674
+            }
1675
+            let ParamsQuery = arr;
1676
+            console.log("ParamsQueryThree", ParamsQuery);
1665
             ParamsQuery["patient"] = this.$route.query.patient_id;
1677
             ParamsQuery["patient"] = this.$route.query.patient_id;
1666
             ParamsQuery["record_date"] = this.record_date;
1678
             ParamsQuery["record_date"] = this.record_date;
1667
             ParamsQuery["mode"] = "1";
1679
             ParamsQuery["mode"] = "1";
1741
               });
1753
               });
1742
           } else {
1754
           } else {
1743
             Toast.loading({ forbidClick: true, duration: 0 });
1755
             Toast.loading({ forbidClick: true, duration: 0 });
1744
-            let ParamsQuery = this.dialysisPrescription;
1756
+            var arr = this.dialysisPrescription;
1757
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1758
+              if (
1759
+                arr.dialyzer_perfusion_apparatus ==
1760
+                this.dialyzerPerfusionApparatus[i].id
1761
+              ) {
1762
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1763
+                  i
1764
+                ].name;
1765
+              }
1766
+            }
1767
+            let ParamsQuery = arr;
1768
+            console.log("ParamsQueryFour", ParamsQuery);
1745
             ParamsQuery["patient"] = this.$route.query.patient_id;
1769
             ParamsQuery["patient"] = this.$route.query.patient_id;
1746
             ParamsQuery["record_date"] = this.record_date;
1770
             ParamsQuery["record_date"] = this.record_date;
1747
             commitDialysisPrescription(ParamsQuery)
1771
             commitDialysisPrescription(ParamsQuery)
1770
         if (this.prescription_prop.creater == 0) {
1794
         if (this.prescription_prop.creater == 0) {
1771
           if (this.is_open == 0) {
1795
           if (this.is_open == 0) {
1772
             Toast.loading({ forbidClick: true, duration: 0 });
1796
             Toast.loading({ forbidClick: true, duration: 0 });
1773
-            let ParamsQuery = this.dialysisPrescription;
1797
+            var arr = this.dialysisPrescription;
1798
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1799
+              if (
1800
+                arr.dialyzer_perfusion_apparatus ==
1801
+                this.dialyzerPerfusionApparatus[i].id
1802
+              ) {
1803
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1804
+                  i
1805
+                ].name;
1806
+              }
1807
+            }
1808
+            let ParamsQuery = arr;
1809
+            console.log("ParamsQueryFive", ParamsQuery);
1774
             ParamsQuery["patient"] = this.$route.query.patient_id;
1810
             ParamsQuery["patient"] = this.$route.query.patient_id;
1775
             ParamsQuery["record_date"] = this.record_date;
1811
             ParamsQuery["record_date"] = this.record_date;
1776
             ParamsQuery["mode"] = "1";
1812
             ParamsQuery["mode"] = "1";
1814
               }
1850
               }
1815
             } else {
1851
             } else {
1816
               Toast.loading({ forbidClick: true, duration: 0 });
1852
               Toast.loading({ forbidClick: true, duration: 0 });
1817
-              let ParamsQuery = this.dialysisPrescription;
1853
+              var arr = this.dialysisPrescription;
1854
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1855
+                if (
1856
+                  arr.dialyzer_perfusion_apparatus ==
1857
+                  this.dialyzerPerfusionApparatus[i].id
1858
+                ) {
1859
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1860
+                    i
1861
+                  ].name;
1862
+                }
1863
+              }
1864
+              let ParamsQuery = arr;
1865
+              console.log("ParamsQuerySIx", ParamsQuery);
1818
               ParamsQuery["patient"] = this.$route.query.patient_id;
1866
               ParamsQuery["patient"] = this.$route.query.patient_id;
1819
               ParamsQuery["record_date"] = this.record_date;
1867
               ParamsQuery["record_date"] = this.record_date;
1820
               ParamsQuery["mode"] = "1";
1868
               ParamsQuery["mode"] = "1";
1842
           } else if (this.is_open == 2) {
1890
           } else if (this.is_open == 2) {
1843
             if (this.waitUploadAdvices.length > 0) {
1891
             if (this.waitUploadAdvices.length > 0) {
1844
               Toast.loading({ forbidClick: true, duration: 0 });
1892
               Toast.loading({ forbidClick: true, duration: 0 });
1845
-              let ParamsQuery = this.dialysisPrescription;
1893
+              var arr = this.dialysisPrescription;
1894
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1895
+                if (
1896
+                  arr.dialyzer_perfusion_apparatus ==
1897
+                  this.dialyzerPerfusionApparatus[i].id
1898
+                ) {
1899
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1900
+                    i
1901
+                  ].name;
1902
+                }
1903
+              }
1904
+              let ParamsQuery = arr;
1905
+              console.log("ParamsQuerySeven", ParamsQuery);
1846
               ParamsQuery["patient"] = this.$route.query.patient_id;
1906
               ParamsQuery["patient"] = this.$route.query.patient_id;
1847
               ParamsQuery["record_date"] = this.record_date;
1907
               ParamsQuery["record_date"] = this.record_date;
1848
               ParamsQuery["mode"] = "1";
1908
               ParamsQuery["mode"] = "1";
1923
                 });
1983
                 });
1924
             } else {
1984
             } else {
1925
               Toast.loading({ forbidClick: true, duration: 0 });
1985
               Toast.loading({ forbidClick: true, duration: 0 });
1926
-              let ParamsQuery = this.dialysisPrescription;
1986
+              var arr = this.dialysisPrescription;
1987
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1988
+                if (
1989
+                  arr.dialyzer_perfusion_apparatus ==
1990
+                  this.dialyzerPerfusionApparatus[i].id
1991
+                ) {
1992
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1993
+                    i
1994
+                  ].name;
1995
+                }
1996
+              }
1997
+              let ParamsQuery = arr;
1998
+              console.log("ParamsQueryeight", ParamsQuery);
1927
               ParamsQuery["patient"] = this.$route.query.patient_id;
1999
               ParamsQuery["patient"] = this.$route.query.patient_id;
1928
               ParamsQuery["record_date"] = this.record_date;
2000
               ParamsQuery["record_date"] = this.record_date;
1929
               ParamsQuery["mode"] = "1";
2001
               ParamsQuery["mode"] = "1";
1949
           }
2021
           }
1950
         } else {
2022
         } else {
1951
           Toast.loading({ forbidClick: true, duration: 0 });
2023
           Toast.loading({ forbidClick: true, duration: 0 });
1952
-          let ParamsQuery = this.dialysisPrescription;
2024
+          var arr = this.dialysisPrescription;
2025
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2026
+            if (
2027
+              arr.dialyzer_perfusion_apparatus ==
2028
+              this.dialyzerPerfusionApparatus[i].id
2029
+            ) {
2030
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2031
+                i
2032
+              ].name;
2033
+            }
2034
+          }
2035
+          let ParamsQuery = arr;
2036
+          console.log("paramsquerynight", ParamsQuery);
2037
+
1953
           ParamsQuery["patient"] = this.$route.query.patient_id;
2038
           ParamsQuery["patient"] = this.$route.query.patient_id;
1954
           ParamsQuery["record_date"] = this.record_date;
2039
           ParamsQuery["record_date"] = this.record_date;
1955
 
2040
 
1999
       if (this.prescription_prop.id == "") {
2084
       if (this.prescription_prop.id == "") {
2000
         if (this.is_open == 0) {
2085
         if (this.is_open == 0) {
2001
           Toast.loading({ forbidClick: true, duration: 0 });
2086
           Toast.loading({ forbidClick: true, duration: 0 });
2002
-          let ParamsQuery = this.dialysisPrescription;
2087
+          var arr = this.dialysisPrescription;
2088
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2089
+            if (
2090
+              arr.dialyzer_perfusion_apparatus ==
2091
+              this.dialyzerPerfusionApparatus[i].id
2092
+            ) {
2093
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2094
+                i
2095
+              ].name;
2096
+            }
2097
+          }
2098
+          let ParamsQuery = arr;
2099
+          console.log("ParamsQueryOne", ParamsQuery);
2003
           ParamsQuery["patient"] = this.$route.query.patient_id;
2100
           ParamsQuery["patient"] = this.$route.query.patient_id;
2004
           ParamsQuery["record_date"] = this.record_date;
2101
           ParamsQuery["record_date"] = this.record_date;
2005
           ParamsQuery["mode"] = "1";
2102
           ParamsQuery["mode"] = "1";
2035
             }
2132
             }
2036
           } else {
2133
           } else {
2037
             Toast.loading({ forbidClick: true, duration: 0 });
2134
             Toast.loading({ forbidClick: true, duration: 0 });
2038
-            let ParamsQuery = this.dialysisPrescription;
2135
+            var arr = this.dialysisPrescription;
2136
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2137
+              if (
2138
+                arr.dialyzer_perfusion_apparatus ==
2139
+                this.dialyzerPerfusionApparatus[i].id
2140
+              ) {
2141
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2142
+                  i
2143
+                ].name;
2144
+              }
2145
+            }
2146
+            let ParamsQuery = arr;
2147
+            console.log("ParamsQueryOne", ParamsQuery);
2039
             ParamsQuery["patient"] = this.$route.query.patient_id;
2148
             ParamsQuery["patient"] = this.$route.query.patient_id;
2040
             ParamsQuery["record_date"] = this.record_date;
2149
             ParamsQuery["record_date"] = this.record_date;
2041
             ParamsQuery["mode"] = "1";
2150
             ParamsQuery["mode"] = "1";
2061
         } else if (this.is_open == 2) {
2170
         } else if (this.is_open == 2) {
2062
           if (this.waitUploadAdvices.length > 0) {
2171
           if (this.waitUploadAdvices.length > 0) {
2063
             Toast.loading({ forbidClick: true, duration: 0 });
2172
             Toast.loading({ forbidClick: true, duration: 0 });
2064
-            let ParamsQuery = this.dialysisPrescription;
2173
+            var arr = this.dialysisPrescription;
2174
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2175
+              if (
2176
+                arr.dialyzer_perfusion_apparatus ==
2177
+                this.dialyzerPerfusionApparatus[i].id
2178
+              ) {
2179
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2180
+                  i
2181
+                ].name;
2182
+              }
2183
+            }
2184
+            let ParamsQuery = arr;
2185
+            console.log("ParamsQueryOne", ParamsQuery);
2065
             ParamsQuery["patient"] = this.$route.query.patient_id;
2186
             ParamsQuery["patient"] = this.$route.query.patient_id;
2066
             ParamsQuery["record_date"] = this.record_date;
2187
             ParamsQuery["record_date"] = this.record_date;
2067
             ParamsQuery["mode"] = "1";
2188
             ParamsQuery["mode"] = "1";
2147
               });
2268
               });
2148
           } else {
2269
           } else {
2149
             Toast.loading({ forbidClick: true, duration: 0 });
2270
             Toast.loading({ forbidClick: true, duration: 0 });
2150
-            let ParamsQuery = this.dialysisPrescription;
2271
+            var arr = this.dialysisPrescription;
2272
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2273
+              if (
2274
+                arr.dialyzer_perfusion_apparatus ==
2275
+                this.dialyzerPerfusionApparatus[i].id
2276
+              ) {
2277
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2278
+                  i
2279
+                ].name;
2280
+              }
2281
+            }
2282
+            let ParamsQuery = arr;
2283
+            console.log("ParamsQueryOne", ParamsQuery);
2151
             ParamsQuery["patient"] = this.$route.query.patient_id;
2284
             ParamsQuery["patient"] = this.$route.query.patient_id;
2152
             ParamsQuery["record_date"] = this.record_date;
2285
             ParamsQuery["record_date"] = this.record_date;
2153
             ParamsQuery["mode"] = "1";
2286
             ParamsQuery["mode"] = "1";
2174
         if (this.prescription_prop.creater == 0) {
2307
         if (this.prescription_prop.creater == 0) {
2175
           if (this.is_open == 0) {
2308
           if (this.is_open == 0) {
2176
             Toast.loading({ forbidClick: true, duration: 0 });
2309
             Toast.loading({ forbidClick: true, duration: 0 });
2177
-            let ParamsQuery = this.dialysisPrescription;
2310
+            var arr = this.dialysisPrescription;
2311
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2312
+              if (
2313
+                arr.dialyzer_perfusion_apparatus ==
2314
+                this.dialyzerPerfusionApparatus[i].id
2315
+              ) {
2316
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2317
+                  i
2318
+                ].name;
2319
+              }
2320
+            }
2321
+            let ParamsQuery = arr;
2322
+            console.log("ParamsQueryOne", ParamsQuery);
2178
             ParamsQuery["patient"] = this.$route.query.patient_id;
2323
             ParamsQuery["patient"] = this.$route.query.patient_id;
2179
             ParamsQuery["record_date"] = this.record_date;
2324
             ParamsQuery["record_date"] = this.record_date;
2180
             ParamsQuery["mode"] = "1";
2325
             ParamsQuery["mode"] = "1";
2215
               }
2360
               }
2216
             } else {
2361
             } else {
2217
               Toast.loading({ forbidClick: true, duration: 0 });
2362
               Toast.loading({ forbidClick: true, duration: 0 });
2218
-              let ParamsQuery = this.dialysisPrescription;
2363
+              var arr = this.dialysisPrescription;
2364
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2365
+                if (
2366
+                  arr.dialyzer_perfusion_apparatus ==
2367
+                  this.dialyzerPerfusionApparatus[i].id
2368
+                ) {
2369
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2370
+                    i
2371
+                  ].name;
2372
+                }
2373
+              }
2374
+              let ParamsQuery = arr;
2375
+              console.log("ParamsQueryOne", ParamsQuery);
2219
               ParamsQuery["patient"] = this.$route.query.patient_id;
2376
               ParamsQuery["patient"] = this.$route.query.patient_id;
2220
               ParamsQuery["record_date"] = this.record_date;
2377
               ParamsQuery["record_date"] = this.record_date;
2221
               ParamsQuery["mode"] = "1";
2378
               ParamsQuery["mode"] = "1";
2240
           } else if (this.is_open == 2) {
2397
           } else if (this.is_open == 2) {
2241
             if (this.waitUploadAdvices.length > 0) {
2398
             if (this.waitUploadAdvices.length > 0) {
2242
               Toast.loading({ forbidClick: true, duration: 0 });
2399
               Toast.loading({ forbidClick: true, duration: 0 });
2243
-              let ParamsQuery = this.dialysisPrescription;
2400
+              var arr = this.dialysisPrescription;
2401
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2402
+                if (
2403
+                  arr.dialyzer_perfusion_apparatus ==
2404
+                  this.dialyzerPerfusionApparatus[i].id
2405
+                ) {
2406
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2407
+                    i
2408
+                  ].name;
2409
+                }
2410
+              }
2411
+              let ParamsQuery = arr;
2412
+              console.log("ParamsQueryOne", ParamsQuery);
2244
               ParamsQuery["patient"] = this.$route.query.patient_id;
2413
               ParamsQuery["patient"] = this.$route.query.patient_id;
2245
               ParamsQuery["record_date"] = this.record_date;
2414
               ParamsQuery["record_date"] = this.record_date;
2246
               ParamsQuery["mode"] = "2";
2415
               ParamsQuery["mode"] = "2";
2326
                 });
2495
                 });
2327
             } else {
2496
             } else {
2328
               Toast.loading({ forbidClick: true, duration: 0 });
2497
               Toast.loading({ forbidClick: true, duration: 0 });
2329
-              let ParamsQuery = this.dialysisPrescription;
2498
+              var arr = this.dialysisPrescription;
2499
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2500
+                if (
2501
+                  arr.dialyzer_perfusion_apparatus ==
2502
+                  this.dialyzerPerfusionApparatus[i].id
2503
+                ) {
2504
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2505
+                    i
2506
+                  ].name;
2507
+                }
2508
+              }
2509
+              let ParamsQuery = arr;
2510
+              console.log("ParamsQueryOne", ParamsQuery);
2330
               ParamsQuery["patient"] = this.$route.query.patient_id;
2511
               ParamsQuery["patient"] = this.$route.query.patient_id;
2331
               ParamsQuery["record_date"] = this.record_date;
2512
               ParamsQuery["record_date"] = this.record_date;
2332
               ParamsQuery["mode"] = "1";
2513
               ParamsQuery["mode"] = "1";
2351
           }
2532
           }
2352
         } else {
2533
         } else {
2353
           Toast.loading({ forbidClick: true, duration: 0 });
2534
           Toast.loading({ forbidClick: true, duration: 0 });
2354
-          let ParamsQuery = this.dialysisPrescription;
2535
+          var arr = this.dialysisPrescription;
2536
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2537
+            if (
2538
+              arr.dialyzer_perfusion_apparatus ==
2539
+              this.dialyzerPerfusionApparatus[i].id
2540
+            ) {
2541
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2542
+                i
2543
+              ].name;
2544
+            }
2545
+          }
2546
+          let ParamsQuery = arr;
2547
+          console.log("ParamsQueryOne", ParamsQuery);
2355
           ParamsQuery["patient"] = this.$route.query.patient_id;
2548
           ParamsQuery["patient"] = this.$route.query.patient_id;
2356
           ParamsQuery["record_date"] = this.record_date;
2549
           ParamsQuery["record_date"] = this.record_date;
2357
           ParamsQuery["mode"] = "1";
2550
           ParamsQuery["mode"] = "1";
2364
               } else {
2557
               } else {
2365
                 Toast.success("提交成功");
2558
                 Toast.success("提交成功");
2366
                 this.$emit("longSolution", response.data.data.solution);
2559
                 this.$emit("longSolution", response.data.data.solution);
2560
+
2367
                 this.$emit("prescription", response.data.data.prescription);
2561
                 this.$emit("prescription", response.data.data.prescription);
2368
                 this.finish();
2562
                 this.finish();
2369
               }
2563
               }
2468
       }
2662
       }
2469
       return blood_access_name;
2663
       return blood_access_name;
2470
     },
2664
     },
2665
+    getDialyzerPerfusionApparatus: function(val) {
2666
+      console.log("val", val);
2667
+      let dialyzer_perfusion_apparatus = "";
2668
+      let arr = this.dialyzerPerfusionApparatus;
2669
+      for (let i = 0; i < arr.length; i++) {
2670
+        if (arr[i].id == val) {
2671
+          dialyzer_perfusion_apparatus = arr[i].name;
2672
+        }
2673
+      }
2674
+      return dialyzer_perfusion_apparatus;
2675
+    },
2471
     menuEmpty: function(val) {
2676
     menuEmpty: function(val) {
2472
       this.visibility = false;
2677
       this.visibility = false;
2473
       this.isShowDialog = true;
2678
       this.isShowDialog = true;
2532
       this.is_show = false;
2737
       this.is_show = false;
2533
     },
2738
     },
2534
     menuComfirmTwo: function(dialysisPrescription) {
2739
     menuComfirmTwo: function(dialysisPrescription) {
2740
+      console.log("dialysisPrescription是射门", dialysisPrescription);
2535
       this.isShowDialog = true;
2741
       this.isShowDialog = true;
2536
       this.is_show = false;
2742
       this.is_show = false;
2537
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart;
2743
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart;
2565
           }
2771
           }
2566
         })
2772
         })
2567
         .then(res => {
2773
         .then(res => {
2568
-          console.log(res);
2569
-          console.log(
2570
-            "prescription_prop.creater",
2571
-            this.prescription_prop.creater
2572
-          );
2573
-          console.log("admin.id", this.$store.getters.user.admin.id);
2574
           if (res.data.state == 0) {
2774
           if (res.data.state == 0) {
2575
             this.hasPermission = false;
2775
             this.hasPermission = false;
2576
           } else if (res.data.state == 1) {
2776
           } else if (res.data.state == 1) {
2609
     }
2809
     }
2610
   },
2810
   },
2611
   created() {
2811
   created() {
2612
-    console.log("数据来源", this.dialysisPrescription);
2613
-
2614
     this.getPermission();
2812
     this.getPermission();
2615
     this.template_id = this.$store.getters.user.template_info.template_id;
2813
     this.template_id = this.$store.getters.user.template_info.template_id;
2616
 
2814
 
2627
     this.perfusion_apparatus = perfusion_apparatus;
2825
     this.perfusion_apparatus = perfusion_apparatus;
2628
 
2826
 
2629
     this.anticoagulantsConfitTwo = this.$store.getters.anticoagulants_confit;
2827
     this.anticoagulantsConfitTwo = this.$store.getters.anticoagulants_confit;
2828
+
2630
     var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit;
2829
     var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit;
2631
-    console.log("康妮剂", anticoagulantsConfitOne);
2632
 
2830
 
2633
     for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
2831
     for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
2634
       console.log("anticoagulantsConfitOne", anticoagulantsConfitOne[i].name);
2832
       console.log("anticoagulantsConfitOne", anticoagulantsConfitOne[i].name);
2642
     var arrthree = {};
2840
     var arrthree = {};
2643
     arrthree = { ...arr };
2841
     arrthree = { ...arr };
2644
     console.log("arrthree", arrthree);
2842
     console.log("arrthree", arrthree);
2843
+
2645
     let arrFour = [];
2844
     let arrFour = [];
2646
     Object.keys(anticoagulantsConfitOne).map((item, index) => {
2845
     Object.keys(anticoagulantsConfitOne).map((item, index) => {
2647
       Object.keys(arrthree).map((it, i) => {
2846
       Object.keys(arrthree).map((it, i) => {
2648
         if (anticoagulantsConfitOne[item].name == arrthree[it].name) {
2847
         if (anticoagulantsConfitOne[item].name == arrthree[it].name) {
2848
+          console.log("anticoagulantsConfitOne[item].name");
2649
           arrFour.push(anticoagulantsConfitOne[item]);
2849
           arrFour.push(anticoagulantsConfitOne[item]);
2650
         }
2850
         }
2651
       });
2851
       });
2652
     });
2852
     });
2653
-    console.log("arrFour", arrFour);
2654
     this.anticoagulantsConfit = arrFour;
2853
     this.anticoagulantsConfit = arrFour;
2655
 
2854
 
2656
     this.bodyFluidOptions = this.$store.getters.body_fluid;
2855
     this.bodyFluidOptions = this.$store.getters.body_fluid;
2777
     if (this.dialysisPrescription.anticoagulant_zongliang == "") {
2976
     if (this.dialysisPrescription.anticoagulant_zongliang == "") {
2778
       this.dialysisPrescription.anticoagulant_weichi = "0";
2977
       this.dialysisPrescription.anticoagulant_weichi = "0";
2779
     }
2978
     }
2979
+
2980
+    this.dialyzerPerfusionApparatus = getDataConfig(
2981
+      "hemodialysis",
2982
+      "dialyzer_perfusion_apparatus"
2983
+    );
2984
+
2985
+    for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2986
+      if (
2987
+        this.dialysisPrescription.dialyzer_perfusion_apparatus ==
2988
+        this.dialyzerPerfusionApparatus[i].name
2989
+      ) {
2990
+        this.dialysisPrescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2991
+          i
2992
+        ].id;
2993
+      }
2994
+    }
2995
+
2996
+    console.log("数据来源", this.dialysisPrescription);
2780
   },
2997
   },
2781
 
2998
 
2782
   components: {
2999
   components: {

+ 298 - 95
src/pages/main/dialog/TreatmentDialog.vue View File

12
       </div>
12
       </div>
13
 
13
 
14
       <div class="DialogContent choose" id="dialogTop">
14
       <div class="DialogContent choose" id="dialogTop">
15
+
15
         <el-form :model="dialysisSummary" label-width="120px">
16
         <el-form :model="dialysisSummary" label-width="120px">
16
-          <el-form-item label="透后宣教 : ">
17
-            <!-- <el-select @change="dialysisAfterTeachSelectChange" v-model="dialysisSummary.text1" placeholder="请选择">
18
-                  <el-option v-for="(s, index) in teach" :label="s.text" :value="s.value" :key="index"></el-option>
19
-            </el-select>-->
20
-            <el-input
21
-              class="treatmentInput"
22
-              readonly
23
-              v-model="dialysisSummary.propagandaAndEducationContentSelect"
24
-              placeholder="请选择"
25
-              @focus="showSubMenu('education')"
26
-            ></el-input>
27
-          </el-form-item>
28
-          <el-form-item label-width="0">
29
-            <el-input
30
-              class="newTextarea treatmentInput"
31
-              type="textarea"
32
-              v-model="dialysisSummary.propagandaAndEducationContent"
33
-              :rows="5"
34
-            ></el-input>
35
-          </el-form-item>
17
+        <el-row>
18
+         <el-col v-if="isShow('宣教知识')">
19
+            <el-form-item label="宣教知识 : ">
20
+              <el-input
21
+                class="treatmentInput"
22
+                readonly
23
+                v-model="dialysisSummary.propagandaAndEducationContentSelect"
24
+                placeholder="请选择"
25
+                @focus="showSubMenu('education')"
26
+              ></el-input>
27
+            </el-form-item>
28
+         </el-col>
29
+         </el-row>
30
+         <el-row>
31
+          <el-col v-if="isShow('宣教知识')">
32
+            <el-form-item label-width="0">
33
+              <el-input
34
+                class="newTextarea treatmentInput"
35
+                type="textarea"
36
+                v-model="dialysisSummary.propagandaAndEducationContent"
37
+                :rows="5"
38
+              ></el-input>
39
+            </el-form-item>
40
+          </el-col>
41
+        </el-row>
42
+        <el-row>
43
+        <el-col v-if="isShow('透析小结')">
36
           <el-form-item label="透析小结 : ">
44
           <el-form-item label="透析小结 : ">
37
             <el-input
45
             <el-input
38
               readonly
46
               readonly
42
               @focus="showSubMenu('summary')"
50
               @focus="showSubMenu('summary')"
43
             ></el-input>
51
             ></el-input>
44
           </el-form-item>
52
           </el-form-item>
45
-
46
-          <el-form-item label-width="0">
47
-            <el-input
48
-              class="newTextarea treatmentInput"
49
-              @focus="lastInputFocus"
50
-              @blur="lastInputBlur"
51
-              type="textarea"
52
-              v-model="dialysisSummary.summaryContent"
53
-              :rows="5"
54
-            ></el-input>
55
-          </el-form-item>
53
+       </el-col>
54
+       </el-row>
55
+       <el-row>
56
+        <el-col v-if="isShow('透析小结')">
57
+            <el-form-item label-width="0">
58
+              <el-input
59
+                class="newTextarea treatmentInput"
60
+                @focus="lastInputFocus"
61
+                @blur="lastInputBlur"
62
+                type="textarea"
63
+                v-model="dialysisSummary.summaryContent"
64
+                :rows="5"
65
+              ></el-input>
66
+            </el-form-item>
67
+          </el-col>
68
+        </el-row>
69
+          <el-row>
70
+            <el-col v-if="isShow('透析护理记录')">
71
+              <el-form-item label="透析护理记录:">
72
+                <el-input
73
+                    class="treatmentInput"
74
+                    readonly
75
+                    v-model="dialysisSummary.nursingRecordSelect"
76
+                    placeholder="请选择"
77
+                    @focus="showSubMenu('nursing_record')"
78
+                ></el-input>
79
+              </el-form-item>
80
+            </el-col>
81
+        </el-row>
82
+         <el-row>
83
+          <el-col v-if="isShow('透析护理记录')">
84
+            <el-form-item label-width="0">
85
+              <el-input
86
+                class="newTextarea treatmentInput"
87
+                type="textarea"
88
+                v-model="dialysisSummary.nursing_record"
89
+                :rows="5"
90
+              ></el-input>
91
+            </el-form-item>
92
+          </el-col>
93
+        </el-row>
94
+        <el-row>
95
+          <el-col v-if="isShow('特殊记录')">
96
+              <el-form-item label="特殊记录:">
97
+                <el-input
98
+                      class="treatmentInput"
99
+                      readonly
100
+                      v-model="dialysisSummary.specialRecordSelect"
101
+                      placeholder="请选择"
102
+                      @focus="showSubMenu('special_record')"
103
+                  ></el-input>
104
+            </el-form-item>
105
+           </el-col>
106
+        </el-row>
107
+          <el-row>
108
+            <el-col v-if="isShow('特殊记录')">
109
+              <el-form-item label-width="0">
110
+                <el-input
111
+                  class="newTextarea treatmentInput"
112
+                  type="textarea"
113
+                  v-model="dialysisSummary.special_record"
114
+                  :rows="5"
115
+                ></el-input>
116
+              </el-form-item>
117
+            </el-col>
118
+          </el-row>
56
         </el-form>
119
         </el-form>
57
-        <!-- <div class="button">
58
-              <button @click="commitInfo" class="submitButton">提交</button>
59
-        </div>-->
60
       </div>
120
       </div>
61
     </div>
121
     </div>
62
 
122
 
75
 import CheckBoxSubMenu from "./subMenu/checkBoxSubMenu";
135
 import CheckBoxSubMenu from "./subMenu/checkBoxSubMenu";
76
 import { getDataConfig } from "@/utils/data";
136
 import { getDataConfig } from "@/utils/data";
77
 
137
 
78
-import request from '@/utils/request'
138
+import request from "@/utils/request";
79
 
139
 
80
 export default {
140
 export default {
81
   name: "TreatmentDialog",
141
   name: "TreatmentDialog",
82
   data() {
142
   data() {
83
     return {
143
     return {
84
-      showTxt:'',
85
-      hasPermission:true,
144
+      showTxt: "",
145
+      hasPermission: true,
86
       isShowDialog: true,
146
       isShowDialog: true,
87
 
147
 
88
       visibility: false,
148
       visibility: false,
91
         list: [],
151
         list: [],
92
         optionList: [],
152
         optionList: [],
93
         isMultiple: 2,
153
         isMultiple: 2,
94
-        result: [], //选中的值
95
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
154
+        result: [], // 选中的值
155
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
96
         selectId: 0
156
         selectId: 0
97
       },
157
       },
98
 
158
 
107
         treatNurse: "",
167
         treatNurse: "",
108
         checkStaff: "",
168
         checkStaff: "",
109
         deboardNurse: "",
169
         deboardNurse: "",
110
-        treatDoctor: ""
170
+        treatDoctor: "",
171
+        nursing_record: "",
172
+        special_record: "",
173
+        nursingRecordSelect: "",
174
+        specialRecordSelect: ""
111
       },
175
       },
112
       summary: [],
176
       summary: [],
113
       summaryObj: {},
177
       summaryObj: {},
117
       record_date: "",
181
       record_date: "",
118
       patient: {
182
       patient: {
119
         id: 0
183
         id: 0
120
-      }
184
+      },
185
+      nursingRecord: [],
186
+      specialRecord: []
121
     };
187
     };
122
   },
188
   },
123
   props: {
189
   props: {
129
     }
195
     }
130
   },
196
   },
131
   created() {
197
   created() {
132
-    this.getPermission()
198
+    this.getPermission();
133
     // this.summary = this.$store.getters.summary;
199
     // this.summary = this.$store.getters.summary;
134
     this.summary = getDataConfig("summary", "summary");
200
     this.summary = getDataConfig("summary", "summary");
201
+    console.log("透后选叫", getDataConfig("summary", "summary"));
135
     // console.log("this.summary",this.summary)
202
     // console.log("this.summary",this.summary)
136
     // this.teach = this.$store.getters.teach;
203
     // this.teach = this.$store.getters.teach;
137
     this.teach = getDataConfig("education", "education");
204
     this.teach = getDataConfig("education", "education");
138
-
205
+    console.log("this", this.teach);
139
     if (this.teach.length > 0) {
206
     if (this.teach.length > 0) {
140
       var tlen = this.teach.length;
207
       var tlen = this.teach.length;
141
       for (let index = 0; index < tlen; index++) {
208
       for (let index = 0; index < tlen; index++) {
150
         this.summaryObj[this.summary[index].id] = this.summary[index];
217
         this.summaryObj[this.summary[index].id] = this.summary[index];
151
       }
218
       }
152
     }
219
     }
220
+    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
221
+    console.log("透析护理记录", this.nursingRecord);
222
+
223
+    if (this.nursingRecord.length > 0) {
224
+      var tlen = this.nursingRecord.length;
225
+      for (let index = 0; index < tlen; index++) {
226
+        this.nursingRecord[index].name = this.nursingRecord[index].text;
227
+        this.summaryObj[this.nursingRecord[index].id] = this.nursingRecord[
228
+          index
229
+        ];
230
+      }
231
+    }
232
+    this.specialRecord = getDataConfig("special_record", "special_record");
233
+    if (this.specialRecord.length > 0) {
234
+      var tlen = this.specialRecord.length;
235
+      for (let index = 0; index < tlen; index++) {
236
+        this.specialRecord[index].name = this.specialRecord[index].text;
237
+        this.summaryObj[this.specialRecord[index].id] = this.specialRecord[
238
+          index
239
+        ];
240
+      }
241
+    }
153
 
242
 
154
     var date = this.$route.query && this.$route.query.date;
243
     var date = this.$route.query && this.$route.query.date;
155
     date *= 1000;
244
     date *= 1000;
213
           this.visibility = true;
302
           this.visibility = true;
214
           this.propForm.list = [];
303
           this.propForm.list = [];
215
           this.propForm.optionList = this.summary;
304
           this.propForm.optionList = this.summary;
305
+          console.log("summary", this.summary);
216
           this.propForm.isMultiple = 1;
306
           this.propForm.isMultiple = 1;
217
           this.propForm.selectId = this.dialysisSummary.xxjid;
307
           this.propForm.selectId = this.dialysisSummary.xxjid;
218
           break;
308
           break;
309
+        case "nursing_record":
310
+          this.propForm.type = 3;
311
+          this.isShowDialog = false;
312
+          this.propForm.title = "透析护理记录";
313
+          this.visibility = true;
314
+          this.propForm.list = [];
315
+          this.propForm.optionList = this.nursingRecord;
316
+          this.propForm.isMultiple = 1;
317
+          this.propForm.selectId = this.dialysisSummary.xxxjid;
318
+          break;
319
+        case "special_record":
320
+          this.propForm.type = 4;
321
+          this.isShowDialog = false;
322
+          this.propForm.title = "特殊记录";
323
+          this.visibility = true;
324
+          this.propForm.list = [];
325
+          this.propForm.optionList = this.specialRecord;
326
+          this.propForm.isMultiple = 1;
327
+          this.propForm.selectId = this.dialysisSummary.xxxxjid;
328
+          break;
219
       }
329
       }
220
     },
330
     },
221
     menuCancle: function() {
331
     menuCancle: function() {
246
             ].name;
356
             ].name;
247
           }
357
           }
248
           break;
358
           break;
359
+        case 3:
360
+          if (val.selectId in this.summaryObj) {
361
+            var theValue = this.summaryObj[val.selectId].value;
362
+            this.dialysisSummaryNuserocoderChange(theValue);
363
+            this.dialysisSummary.xxxjid = val.selectId;
364
+            this.dialysisSummary.nursingRecordSelect = this.summaryObj[
365
+              val.selectId
366
+            ].name;
367
+          }
368
+          break;
369
+        case 4:
370
+          if (val.selectId in this.summaryObj) {
371
+            var theValue = this.summaryObj[val.selectId].value;
372
+            this.dialysisSummarySpecialcoderChange(theValue);
373
+            this.dialysisSummary.xxxxjid = val.selectId;
374
+            this.dialysisSummary.specialRecordSelect = this.summaryObj[
375
+              val.selectId
376
+            ].name;
377
+          }
378
+          break;
249
       }
379
       }
250
     },
380
     },
251
 
381
 
252
     dialysisSummarySelectChange: function(values) {
382
     dialysisSummarySelectChange: function(values) {
253
-      if(this.dialysisSummary.summaryContent == null){
254
-        this.dialysisSummary.summaryContent == ""
383
+      if (this.dialysisSummary.summaryContent == null) {
384
+        this.dialysisSummary.summaryContent == "";
255
       }
385
       }
256
 
386
 
257
       if (this.dialysisSummary.summaryContent == "") {
387
       if (this.dialysisSummary.summaryContent == "") {
267
               this.dialysisSummary.summaryContent + "," + values;
397
               this.dialysisSummary.summaryContent + "," + values;
268
           } else {
398
           } else {
269
             this.dialysisSummary.summaryContent =
399
             this.dialysisSummary.summaryContent =
270
-              this.dialysisSummary.summaryContent  + values;
400
+              this.dialysisSummary.summaryContent + values;
271
           }
401
           }
272
         }
402
         }
273
       }
403
       }
274
     },
404
     },
275
     dialysisAfterTeachSelectChange: function(values) {
405
     dialysisAfterTeachSelectChange: function(values) {
276
-      if(this.dialysisSummary.propagandaAndEducationContent == null){
277
-        this.dialysisSummary.propagandaAndEducationContent == ""
406
+      if (this.dialysisSummary.propagandaAndEducationContent == null) {
407
+        this.dialysisSummary.propagandaAndEducationContent == "";
278
       }
408
       }
279
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
409
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
280
         this.dialysisSummary.propagandaAndEducationContent = values;
410
         this.dialysisSummary.propagandaAndEducationContent = values;
281
       } else {
411
       } else {
282
-        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
412
+        if (
413
+          this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
414
+          -1
415
+        ) {
283
           if (
416
           if (
284
-            this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
417
+            this.dialysisSummary.propagandaAndEducationContent
418
+              .charAt(
419
+                this.dialysisSummary.propagandaAndEducationContent.length - 1
420
+              )
421
+              .indexOf("。") == -1
422
+          ) {
285
             this.dialysisSummary.propagandaAndEducationContent =
423
             this.dialysisSummary.propagandaAndEducationContent =
286
               this.dialysisSummary.propagandaAndEducationContent + "," + values;
424
               this.dialysisSummary.propagandaAndEducationContent + "," + values;
287
           } else {
425
           } else {
291
         }
429
         }
292
       }
430
       }
293
     },
431
     },
432
+    dialysisSummaryNuserocoderChange: function(values) {
433
+      if (this.dialysisSummary.nursing_record == null) {
434
+        this.dialysisSummary.nursing_record == "";
435
+      }
436
+      if (this.dialysisSummary.nursing_record == "") {
437
+        this.dialysisSummary.nursing_record = values;
438
+      } else {
439
+        if (this.dialysisSummary.nursing_record.indexOf(values) == -1) {
440
+          if (
441
+            this.dialysisSummary.nursing_record
442
+              .charAt(this.dialysisSummary.nursing_record.length - 1)
443
+              .indexOf("。") == -1
444
+          ) {
445
+            this.dialysisSummary.nursing_record =
446
+              this.dialysisSummary.nursing_record + "," + values;
447
+          } else {
448
+            this.dialysisSummary.nursing_record =
449
+              this.dialysisSummary.nursing_record + values;
450
+          }
451
+        }
452
+      }
453
+    },
454
+    dialysisSummarySpecialcoderChange: function(values) {
455
+      if (this.dialysisSummary.special_record == null) {
456
+        this.dialysisSummary.special_record == "";
457
+      }
458
+      if (this.dialysisSummary.special_record == "") {
459
+        this.dialysisSummary.special_record = values;
460
+      } else {
461
+        if (this.dialysisSummary.special_record.indexOf(values) == -1) {
462
+          if (
463
+            this.dialysisSummary.special_record
464
+              .charAt(this.dialysisSummary.special_record.length - 1)
465
+              .indexOf("。") == -1
466
+          ) {
467
+            this.dialysisSummary.special_record =
468
+              this.dialysisSummary.special_record + "," + values;
469
+          } else {
470
+            this.dialysisSummary.special_record =
471
+              this.dialysisSummary.special_record + values;
472
+          }
473
+        }
474
+      }
475
+    },
294
     commitInfo: function() {
476
     commitInfo: function() {
295
       Toast.loading({ forbidClick: true, duration: 0 });
477
       Toast.loading({ forbidClick: true, duration: 0 });
296
       let ParamsQuery = this.dialysisSummary;
478
       let ParamsQuery = this.dialysisSummary;
298
       ParamsQuery["record_date"] = this.record_date;
480
       ParamsQuery["record_date"] = this.record_date;
299
       ParamsQuery["mode"] = "1";
481
       ParamsQuery["mode"] = "1";
300
 
482
 
301
-      if (this.record.id > 0){
483
+      if (this.record.id > 0) {
302
         ParamsQuery["mode"] = "2";
484
         ParamsQuery["mode"] = "2";
303
-        if(this.record.creater != this.$store.getters.user.admin.id){
485
+        if (this.record.creater != this.$store.getters.user.admin.id) {
304
           ParamsQuery["mode"] = "3";
486
           ParamsQuery["mode"] = "3";
305
         }
487
         }
306
       }
488
       }
307
 
489
 
308
-      commitTreatmentSummary(ParamsQuery).then(response => {
309
-        if (response.data.state == 0) {
310
-          Toast.fail(response.data.msg);
311
-          return false;
312
-        } else {
313
-          Toast.success("提交成功");
490
+      commitTreatmentSummary(ParamsQuery)
491
+        .then(response => {
492
+          if (response.data.state == 0) {
493
+            Toast.fail(response.data.msg);
494
+            return false;
495
+          } else {
496
+            Toast.success("提交成功");
314
 
497
 
315
-          this.$emit("did_update", response.data.data.summary);
316
-          for (const key in response.data.data.summary) {
317
-            this.record[key] = response.data.data.summary[key];
498
+            this.$emit("did_update", response.data.data.summary);
499
+            for (const key in response.data.data.summary) {
500
+              this.record[key] = response.data.data.summary[key];
501
+            }
318
           }
502
           }
319
-        }
320
-      }).catch(err => {
321
-        Toast.fail(err)
322
-      });
503
+        })
504
+        .catch(err => {
505
+          Toast.fail(err);
506
+        });
323
     },
507
     },
324
     close: function() {
508
     close: function() {
325
       this.$emit("close");
509
       this.$emit("close");
334
         });
518
         });
335
       }
519
       }
336
     },
520
     },
337
-    getPermission(){
338
-      request.get("/m/api/permission/get",{
339
-        params:{
340
-          create_url:"/m/api/dialysis/treatmentSummary?mode=1",
341
-          modify_url:"/m/api/dialysis/treatmentSummary?mode=2",
342
-          modify_other_url:"/m/api/dialysis/treatmentSummary?mode=3",
343
-          module:9
344
-        }
345
-      }).then(res => {
346
-        console.log(res)
347
-        console.log("小结",this.record)
348
-        if(res.data.state == 0){
349
-          this.hasPermission = false
350
-        }else if(res.data.state == 1){
351
-          if(this.record.id != "" && this.record.creater != 0){//有数据
352
-            if(this.record.creater == this.$store.getters.user.admin.id){//创建人是自己
353
-              if(res.data.data.is_has_modify == false){
354
-                this.hasPermission = false
355
-                this.showTxt = "你没有修改治疗小结权限"
521
+    getPermission() {
522
+      request
523
+        .get("/m/api/permission/get", {
524
+          params: {
525
+            create_url: "/m/api/dialysis/treatmentSummary?mode=1",
526
+            modify_url: "/m/api/dialysis/treatmentSummary?mode=2",
527
+            modify_other_url: "/m/api/dialysis/treatmentSummary?mode=3",
528
+            module: 9
529
+          }
530
+        })
531
+        .then(res => {
532
+          console.log(res);
533
+          console.log("小结", this.record);
534
+          if (res.data.state == 0) {
535
+            this.hasPermission = false;
536
+          } else if (res.data.state == 1) {
537
+            if (this.record.id != "" && this.record.creater != 0) {
538
+              // 有数据
539
+              if (this.record.creater == this.$store.getters.user.admin.id) {
540
+                // 创建人是自己
541
+                if (res.data.data.is_has_modify == false) {
542
+                  this.hasPermission = false;
543
+                  this.showTxt = "你没有修改治疗小结权限";
544
+                }
545
+              } else {
546
+                // 创建人不是自己
547
+                if (res.data.data.is_has_modify_other == false) {
548
+                  this.hasPermission = false;
549
+                  this.showTxt = "你没有修改他人治疗小结权限";
550
+                }
356
               }
551
               }
357
-            }else{//创建人不是自己
358
-              if(res.data.data.is_has_modify_other == false){
359
-                this.hasPermission = false
360
-                this.showTxt = "你没有修改他人治疗小结权限"
552
+            } else if (this.record.id == "" || this.record.creater == 0) {
553
+              if (res.data.data.is_has_create == false) {
554
+                this.hasPermission = false;
555
+                this.showTxt = "你没有新增治疗小结权限";
361
               }
556
               }
362
             }
557
             }
363
-          }else if(this.record.id == "" || this.record.creater == 0){
364
-            if(res.data.data.is_has_create  == false){
365
-              this.hasPermission = false
366
-              this.showTxt = "你没有新增治疗小结权限"
367
-            }
368
           }
558
           }
559
+        });
560
+    },
561
+    isShow(name) {
562
+      var filedList = this.$store.getters.user.fileds;
563
+
564
+      for (let i = 0; i < filedList.length; i++) {
565
+        if (
566
+          filedList[i].module == 6 &&
567
+          filedList[i].filed_name_cn == name &&
568
+          filedList[i].is_show == 1
569
+        ) {
570
+          return true;
369
         }
571
         }
370
-      })
572
+      }
573
+      return false;
371
     }
574
     }
372
   },
575
   },
373
 
576
 
394
     }
597
     }
395
   }
598
   }
396
 }
599
 }
397
-.warnTxt{
600
+.warnTxt {
398
   font-size: 0.5rem;
601
   font-size: 0.5rem;
399
   height: 1rem;
602
   height: 1rem;
400
   line-height: 1rem;
603
   line-height: 1rem;

+ 38 - 40
src/pages/main/dialysis/RecordTable.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <van-list
4
-      width="100%"
5
-      v-model="loading"
6
-      :finished="finished"
7
-      @load="onLoad"
8
-    >
3
+    <van-list width="100%" v-model="loading" :finished="finished" @load="onLoad">
9
       <div class="choice">
4
       <div class="choice">
10
         <ul>
5
         <ul>
11
           <li>
6
           <li>
12
             透析时间:
7
             透析时间:
13
             <div @click="openStartPicker" class>
8
             <div @click="openStartPicker" class>
14
               {{ parseTime(startTime.getTime() / 1000, "{y}-{m}-{d}") }}
9
               {{ parseTime(startTime.getTime() / 1000, "{y}-{m}-{d}") }}
15
-              <span class="iconfont">&#xe74a;</span>
10
+              <span
11
+                class="iconfont"
12
+              >&#xe74a;</span>
16
             </div>
13
             </div>
17
             <span class="line"></span>
14
             <span class="line"></span>
18
             <div @click="openEndPicker" class>
15
             <div @click="openEndPicker" class>
19
               {{ parseTime(endTime.getTime() / 1000, "{y}-{m}-{d}") }}
16
               {{ parseTime(endTime.getTime() / 1000, "{y}-{m}-{d}") }}
20
-              <span class="iconfont">&#xe74a;</span>
17
+              <span
18
+                class="iconfont"
19
+              >&#xe74a;</span>
21
             </div>
20
             </div>
22
           </li>
21
           </li>
23
 
22
 
42
                   :key="item.id"
41
                   :key="item.id"
43
                   @click="itemClick(item.id)"
42
                   @click="itemClick(item.id)"
44
                   :class="mode_id == item.id ? 'tick' : ''"
43
                   :class="mode_id == item.id ? 'tick' : ''"
45
-                >
46
-                  {{ item.name }}
47
-                </li>
44
+                >{{ item.name }}</li>
48
               </ul>
45
               </ul>
49
             </div>
46
             </div>
50
           </el-popover>
47
           </el-popover>
51
         </ul>
48
         </ul>
52
       </div>
49
       </div>
53
       <div class="blueBorder"></div>
50
       <div class="blueBorder"></div>
54
-      <div
55
-        style="width:100%;overflow:hildden;overflow-x:auto;"
56
-        class="RecordTable"
57
-      >
58
-        <table class="table" style>
51
+      <div style="width:100%;overflow:hildden;overflow-x:auto;" class="RecordTable">
52
+        <table class="table newRecordTable" style>
59
           <tr>
53
           <tr>
60
             <th width="124px">透析日期</th>
54
             <th width="124px">透析日期</th>
61
             <th width="72px">班次</th>
55
             <th width="72px">班次</th>
84
             <td>{{ modeName(item.prescription.mode_id) }}</td>
78
             <td>{{ modeName(item.prescription.mode_id) }}</td>
85
             <td>
79
             <td>
86
               {{
80
               {{
87
-                item.prescription.dialysis_duration
88
-                  ? item.prescription.dialysis_duration
89
-                  : ""
81
+              item.prescription.dialysis_duration
82
+              ? item.prescription.dialysis_duration
83
+              : ""
90
               }}
84
               }}
91
             </td>
85
             </td>
92
             <td>
86
             <td>
93
               {{
87
               {{
94
-                item.prescription.dry_weight ? item.prescription.dry_weight : ""
88
+              item.prescription.dry_weight ? item.prescription.dry_weight : ""
95
               }}
89
               }}
96
             </td>
90
             </td>
97
             <td>
91
             <td>
98
               {{
92
               {{
99
-                item.predialysis_evaluation.weight_before
100
-                  ? item.predialysis_evaluation.weight_before
101
-                  : ""
93
+              item.predialysis_evaluation.weight_before
94
+              ? item.predialysis_evaluation.weight_before
95
+              : ""
102
               }}
96
               }}
103
             </td>
97
             </td>
104
             <td>
98
             <td>
105
               {{
99
               {{
106
-                item.assessment_after_dislysis.weight_after
107
-                  ? item.assessment_after_dislysis.weight_after
108
-                  : ""
100
+              item.assessment_after_dislysis.weight_after
101
+              ? item.assessment_after_dislysis.weight_after
102
+              : ""
109
               }}
103
               }}
110
             </td>
104
             </td>
111
             <td>
105
             <td>
112
               {{
106
               {{
113
-                item.predialysis_evaluation.systolic_blood_pressure
114
-                  ? item.predialysis_evaluation.systolic_blood_pressure
115
-                  : ""
107
+              item.predialysis_evaluation.systolic_blood_pressure
108
+              ? item.predialysis_evaluation.systolic_blood_pressure
109
+              : ""
116
               }}
110
               }}
117
             </td>
111
             </td>
118
             <td>
112
             <td>
119
               {{
113
               {{
120
-                item.assessment_after_dislysis.systolic_blood_pressure
121
-                  ? item.assessment_after_dislysis.systolic_blood_pressure
122
-                  : ""
114
+              item.assessment_after_dislysis.systolic_blood_pressure
115
+              ? item.assessment_after_dislysis.systolic_blood_pressure
116
+              : ""
123
               }}
117
               }}
124
             </td>
118
             </td>
125
             <td>
119
             <td>
126
               {{
120
               {{
127
-                item.predialysis_evaluation.ultrafiltration_amount
128
-                  ? item.predialysis_evaluation.ultrafiltration_amount
129
-                  : ""
121
+              item.predialysis_evaluation.ultrafiltration_amount
122
+              ? item.predialysis_evaluation.ultrafiltration_amount
123
+              : ""
130
               }}
124
               }}
131
             </td>
125
             </td>
132
             <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
126
             <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
136
         </table>
130
         </table>
137
 
131
 
138
         <div class="NoData" v-show="tableDate.length == 0">
132
         <div class="NoData" v-show="tableDate.length == 0">
139
-          <img
140
-            style="margin-top: 50px; margin-bottom: 50px"
141
-            src="@/assets/login/data.jpg"
142
-            alt
143
-          />
133
+          <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
144
         </div>
134
         </div>
145
       </div>
135
       </div>
146
       <!-- <el-table :data="tableDate" border style="width: 100%">
136
       <!-- <el-table :data="tableDate" border style="width: 100%">
568
   max-height: 400px;
558
   max-height: 400px;
569
   overflow-y: scroll;
559
   overflow-y: scroll;
570
 }
560
 }
561
+.newRecordTable {
562
+  @media only screen and (max-width: 414px) {
563
+    width: 1200px;
564
+  }
565
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
566
+    width: 1600px;
567
+  }
568
+}
571
 </style>
569
 </style>
572
 <style lang="scss">
570
 <style lang="scss">
573
 .el-table td {
571
 .el-table td {

+ 4 - 19
src/pages/main/dialysis/SchedulTable.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <van-list
4
-      width="100%"
5
-      v-model="loading"
6
-      :finished="finished"
7
-      @load="onLoad"
8
-    >
3
+    <van-list width="100%" v-model="loading" :finished="finished" @load="onLoad">
9
       <div class="blueBorder"></div>
4
       <div class="blueBorder"></div>
10
       <div class="schedulTable">
5
       <div class="schedulTable">
11
         <div class="tableTit">
6
         <div class="tableTit">
20
               ]"
15
               ]"
21
               :key="index"
16
               :key="index"
22
               :value="item.value"
17
               :value="item.value"
23
-            >
24
-              {{ item }}
25
-            </li>
18
+            >{{ item }}</li>
26
           </ul>
19
           </ul>
27
         </div>
20
         </div>
28
         <div class="tableDate">
21
         <div class="tableDate">
29
           <ul>
22
           <ul>
30
-            <li
31
-              v-for="(item, index) in tableDate"
32
-              :key="index"
33
-              :value="item.value"
34
-            >
23
+            <li v-for="(item, index) in tableDate" :key="index" :value="item.value">
35
               <span>{{ parseTime(item.schedule_date, "{y}-{m}-{d}") }}</span>
24
               <span>{{ parseTime(item.schedule_date, "{y}-{m}-{d}") }}</span>
36
               <span>{{ scheduleType(item.schedule_type) }}</span>
25
               <span>{{ scheduleType(item.schedule_type) }}</span>
37
               <span>{{ item.zone.name }}</span>
26
               <span>{{ item.zone.name }}</span>
44
     </van-list>
33
     </van-list>
45
     <!--<div class="NoData" v-show="tableDate.length == 0"><img src="@/assets/login/data.jpg" alt=""></div>-->
34
     <!--<div class="NoData" v-show="tableDate.length == 0"><img src="@/assets/login/data.jpg" alt=""></div>-->
46
     <div class="NoData" v-show="tableDate.length == 0">
35
     <div class="NoData" v-show="tableDate.length == 0">
47
-      <img
48
-        style="margin-top: 50px; margin-bottom: 50px"
49
-        src="@/assets/login/data.jpg"
50
-        alt
51
-      />
36
+      <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
52
     </div>
37
     </div>
53
   </div>
38
   </div>
54
 </template>
39
 </template>

File diff suppressed because it is too large
+ 349 - 341
src/pages/main/template/DialysisPrintOrderEight.vue


+ 1 - 1
src/pages/main/template/DialysisPrintOrderEleven.vue View File

87
                 <div class="inline_block" style="flex:1;">
87
                 <div class="inline_block" style="flex:1;">
88
                   透析次数:
88
                   透析次数:
89
                   <div class="under_line" style="width: 70px;text-align: center">
89
                   <div class="under_line" style="width: 70px;text-align: center">
90
-                    {{patientInfo.total_dialysis?patientInfo.total_dialysis:'/'}}
90
+                    {{patientInfo.total_dialysis + patientInfo.user_sys_before_count?patientInfo.total_dialysis+patientInfo.user_sys_before_count:'/'}}
91
                   </div>
91
                   </div>
92
                 </div>
92
                 </div>
93
                 <div class="inline_block" style="flex:1;">
93
                 <div class="inline_block" style="flex:1;">

+ 4 - 4
src/pages/main/template/DialysisPrintOrderSeven.vue View File

123
                   </td>
123
                   </td>
124
                   <td style="text-align:left;margin-left:15px" colspan="2">
124
                   <td style="text-align:left;margin-left:15px" colspan="2">
125
                     透析次数:
125
                     透析次数:
126
-                    <span class="under-line">&nbsp;{{patientInfo.total_dialysis?patientInfo.total_dialysis:'/'}}</span>
126
+                    <span class="under-line">&nbsp;{{patientInfo.total_dialysis+patientInfo.user_sys_before_count?patientInfo.total_dialysis+patientInfo.user_sys_before_count:'/'}}</span>
127
                   </td>
127
                   </td>
128
                  </tr>
128
                  </tr>
129
                   <tr>
129
                   <tr>
774
                 压迫后内瘘震颤:
774
                 压迫后内瘘震颤:
775
                 <label-box
775
                 <label-box
776
                   :isChecked="
776
                   :isChecked="
777
-                    predialysis.internal_fistula.indexOf('震颤-存在') > -1
777
+                    afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
778
                       ? true
778
                       ? true
779
                       : false
779
                       : false
780
                   "
780
                   "
783
                 &nbsp;
783
                 &nbsp;
784
                 <label-box
784
                 <label-box
785
                   :isChecked="
785
                   :isChecked="
786
-                    predialysis.internal_fistula.indexOf('震颤-减弱') > -1
786
+                    afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
787
                       ? true
787
                       ? true
788
                       : false
788
                       : false
789
                   "
789
                   "
792
                 &nbsp;
792
                 &nbsp;
793
                 <label-box
793
                 <label-box
794
                   :isChecked="
794
                   :isChecked="
795
-                    predialysis.internal_fistula.indexOf('震颤-无') > -1
795
+                    afterdialysis.internal_fistula.indexOf('震颤-无') > -1
796
                       ? true
796
                       ? true
797
                       : false
797
                       : false
798
                   "
798
                   "

+ 4 - 1
src/pages/main/template/DialysisPrintOrderSix.vue View File

86
                   <div class="inline_block" style="flex:1;">
86
                   <div class="inline_block" style="flex:1;">
87
                     透析次数:
87
                     透析次数:
88
                     <div class="under_line" style="width: 70px;text-align: center">
88
                     <div class="under_line" style="width: 70px;text-align: center">
89
-                      {{patientInfo.total_dialysis?patientInfo.total_dialysis:'/'}}
89
+                      {{patientInfo.total_dialysis + patientInfo.user_sys_before_count?patientInfo.total_dialysis+patientInfo.user_sys_before_count:'/'}}
90
                     </div>
90
                     </div>
91
                   </div>
91
                   </div>
92
                   <div class="inline_block" style="flex:1;">
92
                   <div class="inline_block" style="flex:1;">
304
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
304
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
305
                       HDF后置换
305
                       HDF后置换
306
                     </div>
306
                     </div>
307
+                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==19">
308
+                     IUF+HD
309
+                    </div>
307
                   </div>
310
                   </div>
308
 
311
 
309
                   <div class="inline_block" style="margin-left:10px;flex:1;">
312
                   <div class="inline_block" style="margin-left:10px;flex:1;">

File diff suppressed because it is too large
+ 864 - 866
src/pages/main/template/DialysisPrintOrderTen.vue


+ 58 - 2
src/pages/main/today/TodayTab.vue View File

311
 
311
 
312
 import { parseTime } from "@/utils";
312
 import { parseTime } from "@/utils";
313
 import request from "@/utils/request";
313
 import request from "@/utils/request";
314
-
314
+import { getDataConfig } from "@/utils/data";
315
 export default {
315
 export default {
316
   name: "TodayTab",
316
   name: "TodayTab",
317
   components: {
317
   components: {
405
       is_open: 0,
405
       is_open: 0,
406
       targetAdvices: [],
406
       targetAdvices: [],
407
       status: "",
407
       status: "",
408
-      patientid: 0
408
+      patientid: 0,
409
+      dialyzerPerfusionApparatus: []
409
     };
410
     };
410
   },
411
   },
411
   computed: {
412
   computed: {
883
           var patient = resp.data.patient; // 患者信息
884
           var patient = resp.data.patient; // 患者信息
884
           var schedual = resp.data.schedual; // 患者排班信息
885
           var schedual = resp.data.schedual; // 患者排班信息
885
           var prescription = resp.data.prescription; // 透析处方
886
           var prescription = resp.data.prescription; // 透析处方
887
+          console.log("透析处方22222", prescription);
888
+          if (prescription !== null) {
889
+            this.dialyzerPerfusionApparatus = getDataConfig(
890
+              "hemodialysis",
891
+              "dialyzer_perfusion_apparatus"
892
+            );
893
+            console.log("透析器/灌流器", this.dialyzerPerfusionApparatus);
894
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
895
+              if (
896
+                prescription.dialyzer_perfusion_apparatus ==
897
+                this.dialyzerPerfusionApparatus[i].name
898
+              ) {
899
+                prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
900
+                  i
901
+                ].id;
902
+              }
903
+            }
904
+          }
886
           var solution = resp.data.solution; // 透析方案
905
           var solution = resp.data.solution; // 透析方案
887
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
906
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
888
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
907
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
889
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
908
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
890
           var last_prescription = resp.data.last_prescription;
909
           var last_prescription = resp.data.last_prescription;
910
+          console.log("上次透析处方", last_prescription);
911
+          this.dialyzerPerfusionApparatus = getDataConfig(
912
+            "hemodialysis",
913
+            "dialyzer_perfusion_apparatus"
914
+          );
915
+          if (last_prescription != null) {
916
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
917
+              if (
918
+                last_prescription.dialyzer_perfusion_apparatus ==
919
+                this.dialyzerPerfusionApparatus[i].name
920
+              ) {
921
+                last_prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
922
+                  i
923
+                ].id;
924
+              }
925
+            }
926
+          }
891
           var system_prescription = resp.data.system_prescription;
927
           var system_prescription = resp.data.system_prescription;
892
 
928
 
893
           this.dryWeight = resp.data.dry_weight;
929
           this.dryWeight = resp.data.dry_weight;
1516
             var patient = resp.data.patient; // 患者信息
1552
             var patient = resp.data.patient; // 患者信息
1517
             var schedual = resp.data.schedual; // 患者排班信息
1553
             var schedual = resp.data.schedual; // 患者排班信息
1518
             var prescription = resp.data.prescription; // 透析处方
1554
             var prescription = resp.data.prescription; // 透析处方
1555
+            console.log("透析处方1", prescription);
1556
+            if (prescription != null) {
1557
+              this.dialyzerPerfusionApparatus = getDataConfig(
1558
+                "hemodialysis",
1559
+                "dialyzer_perfusion_apparatus"
1560
+              );
1561
+              console.log("透析处方中的", this.dialyzerPerfusionApparatus);
1562
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1563
+                if (
1564
+                  prescription.dialyzer_perfusion_apparatus ==
1565
+                  this.dialyzerPerfusionApparatus[i].name
1566
+                ) {
1567
+                  prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1568
+                    i
1569
+                  ].id;
1570
+                }
1571
+              }
1572
+            }
1573
+
1519
             var solution = resp.data.solution; // 透析方案
1574
             var solution = resp.data.solution; // 透析方案
1520
             var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
1575
             var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
1521
             var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
1576
             var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
1522
             var doctor_advices = resp.data.doctor_advices; // 临时医嘱
1577
             var doctor_advices = resp.data.doctor_advices; // 临时医嘱
1523
             var last_prescription = resp.data.last_prescription;
1578
             var last_prescription = resp.data.last_prescription;
1579
+            console.log("上次透析处方2", last_prescription);
1524
             var system_prescription = resp.data.system_prescription;
1580
             var system_prescription = resp.data.system_prescription;
1525
 
1581
 
1526
             this.dryWeight = resp.data.dry_weight;
1582
             this.dryWeight = resp.data.dry_weight;

+ 115 - 67
src/pages/main/today/dialysisMonitoring.vue View File

8
     <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
8
     <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
9
       <table class="table dialsisTable" style>
9
       <table class="table dialsisTable" style>
10
         <tr>
10
         <tr>
11
-          <th v-if="isShow('监测时间')" width="80px">时间</th>
12
-          <th v-if="isShow('体温')" width="80px">体温(℃)</th>
13
-          <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
14
-          <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
15
-          <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
16
-          <th width="76px">静脉压/动脉压(mmHg)</th>
17
-          <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
18
-          <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
19
-          <th v-if="isShow('超滤量') && (template_id == 6 ||template_id == 10 || template_id == 11 )" width="76px">
20
-            超滤量(ml)
11
+          <th v-if="isShow('监测时间')" width="60px">时间</th>
12
+          <th v-if="isShow('体温')" width="40px">
13
+            体温
14
+            <br />(℃)
21
           </th>
15
           </th>
22
-          <th v-if="isShow('超滤量') && template_id != 6 && template_id != 10 &&template_id != 11 " width="76px">
23
-            超滤量(L)
16
+          <th v-if="isShow('血压')" width="60px">
17
+            血压
18
+            <br />(mmHg)
19
+          </th>
20
+          <th v-if="isShow('脉搏')" width="50px">
21
+            脉搏
22
+            <br />(次/分)
23
+          </th>
24
+          <th v-if="isShow('呼吸频率')" width="70px">
25
+            呼吸频率
26
+            <br />(次/分)
27
+          </th>
28
+          <th width="76px">
29
+            静脉压/动脉压
30
+            <br />(mmHg)
31
+          </th>
32
+          <th v-if="isShow('血流量')" width="60px">
33
+            血流量
34
+            <br />(ml/min)
35
+          </th>
36
+          <th v-if="isShow('跨膜压')" width="60px">
37
+            跨膜压
38
+            <br />(mmHg)
39
+          </th>
40
+          <th
41
+            v-if="isShow('超滤量') && (template_id == 6 ||template_id == 10 || template_id == 11 )"
42
+            width="60px"
43
+          >
44
+            超滤量
45
+            <br />(ml)
46
+          </th>
47
+          <th
48
+            v-if="isShow('超滤量') && template_id != 6 && template_id != 10 &&template_id != 11 "
49
+            width="60px"
50
+          >
51
+            超滤量
52
+            <br />(L)
53
+          </th>
54
+          <th v-if="isShow('钠浓度')" width="60px">
55
+            钠浓度
56
+            <br />(mmol/L)
57
+          </th>
58
+          <th v-if="isShow('透析液温度')" width="70px">
59
+            透析液温度
60
+            <br />(℃)
61
+          </th>
62
+          <th
63
+            v-if="isShow('置换率')&& (template_id == 6 ||template_id == 10 || template_id == 11)"
64
+            width="60px"
65
+          >
66
+            置换率
67
+            <br />(ml/min)
68
+          </th>
69
+          <th
70
+            v-if="isShow('置换率')&& template_id != 6 && template_id != 10 && template_id != 11"
71
+            width="60px"
72
+          >
73
+            置换率
74
+            <br />(L/h)
75
+          </th>
76
+          <th
77
+            v-if="isShow('置换量')&& (template_id == 6 || template_id == 10 || template_id == 11)"
78
+            width="50px"
79
+          >
80
+            置换量
81
+            <br />(ml)
82
+          </th>
83
+          <th
84
+            v-if="isShow('置换量')&& template_id != 6 && template_id != 10 && template_id != 11"
85
+            width="50px"
86
+          >
87
+            置换量
88
+            <br />(L)
24
           </th>
89
           </th>
25
-          <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
26
-          <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
27
-          <th v-if="isShow('置换率')&& (template_id == 6 ||template_id == 10 || template_id == 11)" width="92px">置换率(ml/min)</th>
28
-          <th v-if="isShow('置换率')&& template_id != 6 && template_id != 10 && template_id != 11" width="92px">置换率(L/h)</th>
29
-          <th v-if="isShow('置换量')&& (template_id == 6 || template_id == 10 || template_id == 11)" width="50px">置换量(ml)</th>
30
-          <th v-if="isShow('置换量')&& template_id != 6 && template_id != 10 && template_id != 11" width="50px">置换量(L)</th>
31
 
90
 
32
-          <th v-if="isShow('电导度')" width="92px">电导度(mS/cm)</th>
33
-          <th v-if="isShow('置换液流量')" width="92px">置换液流量(ml/h)</th>
91
+          <th v-if="isShow('电导度')" width="60px">
92
+            电导度
93
+            <br />(mS/cm)
94
+          </th>
95
+          <th v-if="isShow('置换液流量')" width="70px">
96
+            置换液流量
97
+            <br />(ml/h)
98
+          </th>
34
 
99
 
35
-          <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
100
+          <th v-if="isShow('肝素用量余量')" width="70px">
101
+            肝素用量余量
102
+            <br />(ml)
103
+          </th>
36
 
104
 
37
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
105
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
38
           <th v-if="isShow('处理')" width="92px">处理</th>
106
           <th v-if="isShow('处理')" width="92px">处理</th>
39
           <th v-if="isShow('结果')" width="92px">结果</th>
107
           <th v-if="isShow('结果')" width="92px">结果</th>
40
         </tr>
108
         </tr>
41
         <tr v-for="(item, index) in tableDate" :key="index" :value="item.value">
109
         <tr v-for="(item, index) in tableDate" :key="index" :value="item.value">
42
-          <td v-if="isShow('监测时间')">
43
-            {{ parseTime(item.operate_time, "{y}-{m}-{d} {h}:{i}") }}
44
-          </td>
45
-          <td v-if="isShow('体温')">
46
-            {{ item.temperature ? item.temperature : "" }}
47
-          </td>
110
+          <td v-if="isShow('监测时间')">{{ parseTime(item.operate_time, "{y}-{m}-{d} {h}:{i}") }}</td>
111
+          <td v-if="isShow('体温')">{{ item.temperature ? item.temperature : "" }}</td>
48
           <td v-if="isShow('血压')">
112
           <td v-if="isShow('血压')">
49
             {{
113
             {{
50
             item.systolic_blood_pressure ? item.systolic_blood_pressure : ""
114
             item.systolic_blood_pressure ? item.systolic_blood_pressure : ""
52
             item.diastolic_blood_pressure ? item.diastolic_blood_pressure : ""
116
             item.diastolic_blood_pressure ? item.diastolic_blood_pressure : ""
53
             }}
117
             }}
54
           </td>
118
           </td>
55
-          <td v-if="isShow('脉搏')">
56
-            {{ item.pulse_frequency ? item.pulse_frequency : "" }}
57
-          </td>
119
+          <td v-if="isShow('脉搏')">{{ item.pulse_frequency ? item.pulse_frequency : "" }}</td>
58
 
120
 
59
-          <td v-if="isShow('呼吸频率')">
60
-            {{ item.breathing_rate ? item.breathing_rate : "" }}
61
-          </td>
121
+          <td v-if="isShow('呼吸频率')">{{ item.breathing_rate ? item.breathing_rate : "" }}</td>
62
           <td>
122
           <td>
63
             {{ item.venous_pressure ? item.venous_pressure : "" }}/{{
123
             {{ item.venous_pressure ? item.venous_pressure : "" }}/{{
64
-              item.arterial_pressure ? item.arterial_pressure : ""
124
+            item.arterial_pressure ? item.arterial_pressure : ""
65
             }}
125
             }}
66
           </td>
126
           </td>
67
-          <td v-if="isShow('血流量')">
68
-            {{ item.blood_flow_volume ? item.blood_flow_volume : "" }}
69
-          </td>
70
-          <td v-if="isShow('跨膜压')">
71
-            {{ item.transmembrane_pressure ? item.transmembrane_pressure : "" }}
72
-          </td>
73
-          <td v-if="isShow('超滤量')">
74
-            {{ item.ultrafiltration_volume ? item.ultrafiltration_volume : "" }}
75
-          </td>
76
-          <td v-if="isShow('钠浓度')">
77
-            {{ item.sodium_concentration ? item.sodium_concentration : "" }}
78
-          </td>
79
-          <td v-if="isShow('透析液温度')">
80
-            {{ item.dialysate_temperature ? item.dialysate_temperature : "" }}
81
-          </td>
82
-          <td v-if="isShow('置换率')">
83
-            {{ item.replacement_rate ? item.replacement_rate : "" }}
84
-          </td>
85
-          <td v-if="isShow('置换量')">
86
-            {{ item.displacement_quantity ? item.displacement_quantity : "" }}
87
-          </td>
88
-          <th v-if="isShow('电导度')">
89
-            {{ item.conductivity ? item.conductivity : "" }}
90
-          </th>
127
+          <td v-if="isShow('血流量')">{{ item.blood_flow_volume ? item.blood_flow_volume : "" }}</td>
128
+          <td
129
+            v-if="isShow('跨膜压')"
130
+          >{{ item.transmembrane_pressure ? item.transmembrane_pressure : "" }}</td>
131
+          <td
132
+            v-if="isShow('超滤量')"
133
+          >{{ item.ultrafiltration_volume ? item.ultrafiltration_volume : "" }}</td>
134
+          <td v-if="isShow('钠浓度')">{{ item.sodium_concentration ? item.sodium_concentration : "" }}</td>
135
+          <td
136
+            v-if="isShow('透析液温度')"
137
+          >{{ item.dialysate_temperature ? item.dialysate_temperature : "" }}</td>
138
+          <td v-if="isShow('置换率')">{{ item.replacement_rate ? item.replacement_rate : "" }}</td>
139
+          <td
140
+            v-if="isShow('置换量')"
141
+          >{{ item.displacement_quantity ? item.displacement_quantity : "" }}</td>
142
+          <th v-if="isShow('电导度')">{{ item.conductivity ? item.conductivity : "" }}</th>
91
           <th v-if="isShow('置换液流量')">
143
           <th v-if="isShow('置换液流量')">
92
             {{
144
             {{
93
-              item.displacement_flow_quantity
94
-                ? item.displacement_flow_quantity
95
-                : ""
145
+            item.displacement_flow_quantity
146
+            ? item.displacement_flow_quantity
147
+            : ""
96
             }}
148
             }}
97
           </th>
149
           </th>
98
           <th v-if="isShow('肝素用量余量')">
150
           <th v-if="isShow('肝素用量余量')">
109
       </table>
161
       </table>
110
 
162
 
111
       <div class="NoData" v-show="tableDate.length == 0">
163
       <div class="NoData" v-show="tableDate.length == 0">
112
-        <img
113
-          style="margin-top: 50px; margin-bottom: 50px"
114
-          src="@/assets/login/data.jpg"
115
-          alt
116
-        />
164
+        <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
117
       </div>
165
       </div>
118
     </div>
166
     </div>
119
     <!-- <el-table :data="tableDate" border style="width: 100%" ref="form">
167
     <!-- <el-table :data="tableDate" border style="width: 100%" ref="form">
285
 
333
 
286
 <style rel="stylesheet/scss" lang="scss" scoped>
334
 <style rel="stylesheet/scss" lang="scss" scoped>
287
 .dialsisTable {
335
 .dialsisTable {
288
-  width: 2400px;
336
+  width: 1600px;
289
 }
337
 }
290
 .dm {
338
 .dm {
291
   /* 针对缺省样式 (必须的) */
339
   /* 针对缺省样式 (必须的) */

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

143
         <ul> -->
143
         <ul> -->
144
         <li v-if="isShow('透析器/灌流器')">
144
         <li v-if="isShow('透析器/灌流器')">
145
           <label>透析器/灌流器 : </label>
145
           <label>透析器/灌流器 : </label>
146
-          <span class="content">{{dialyzer_perfusion_apparatus}}</span>
146
+          <span class="content">{{getData(dialyzer_perfusion_apparatus)}}</span>
147
           <span class="unit"></span>
147
           <span class="unit"></span>
148
         </li>
148
         </li>
149
         <li v-if="isShow('体液过多症状')">
149
         <li v-if="isShow('体液过多症状')">
217
     return {
217
     return {
218
       title: "透析处方",
218
       title: "透析处方",
219
       perfusion_apparatus_map: {},
219
       perfusion_apparatus_map: {},
220
-      dialysateFormulationMap: {}
220
+      dialysateFormulationMap: {},
221
+      dialyzerPerfusionApparatus: []
221
     };
222
     };
222
   },
223
   },
223
   props: {
224
   props: {
483
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
484
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
484
         dialysateFormulationOptions[index];
485
         dialysateFormulationOptions[index];
485
     }
486
     }
487
+    this.dialyzerPerfusionApparatus = getDataConfig(
488
+      "hemodialysis",
489
+      "dialyzer_perfusion_apparatus"
490
+    );
491
+    for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
492
+      if (
493
+        this.prescription.dialyzer_perfusion_apparatus ==
494
+        this.dialyzerPerfusionApparatus[i].id
495
+      ) {
496
+        this.prescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
497
+          i
498
+        ].name;
499
+      }
500
+    }
501
+    console.log("透析处方----2", this.prescription);
486
   },
502
   },
487
   methods: {
503
   methods: {
488
     getDisplaceLiquiValue: function() {
504
     getDisplaceLiquiValue: function() {
538
       } else {
554
       } else {
539
         return "0.0";
555
         return "0.0";
540
       }
556
       }
557
+    },
558
+    getData(val) {
559
+      var obj = "";
560
+      for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
561
+        if (val == this.dialyzerPerfusionApparatus[i].id) {
562
+          obj = this.dialyzerPerfusionApparatus[i].name;
563
+        }
564
+      }
565
+      return obj;
541
     }
566
     }
542
   }
567
   }
543
 };
568
 };

+ 30 - 27
src/pages/main/today/statOrder.vue View File

9
     <div class="newDiv">
9
     <div class="newDiv">
10
       <table class="table">
10
       <table class="table">
11
         <tr>
11
         <tr>
12
-          <th width="8%">开嘱医生</th>
13
-          <th width="8%">开始时间</th>
12
+          <th width="5%">开嘱医生</th>
13
+          <th width="6%">开始时间</th>
14
           <th width="20%">医嘱内容</th>
14
           <th width="20%">医嘱内容</th>
15
           <th width="8%">执行时间</th>
15
           <th width="8%">执行时间</th>
16
           <th width="8%">执行护士</th>
16
           <th width="8%">执行护士</th>
21
           <tr v-for="(advice, i) in group.advices" :key="advice.id">
21
           <tr v-for="(advice, i) in group.advices" :key="advice.id">
22
             <td v-if="i == 0" :rowspan="group.advices.length">
22
             <td v-if="i == 0" :rowspan="group.advices.length">
23
               {{
23
               {{
24
-                doctor_map[advice.advice_doctor] != undefined
25
-                  ? doctor_map[advice.advice_doctor].name
26
-                  : ""
24
+              doctor_map[advice.advice_doctor] != undefined
25
+              ? doctor_map[advice.advice_doctor].name
26
+              : ""
27
               }}
27
               }}
28
             </td>
28
             </td>
29
 
29
 
30
-            <td v-if="i == 0" :rowspan="group.advices.length">
31
-              {{ parseTime(advice.start_time, "{m}-{d} {h}:{i}") }}
32
-            </td>
30
+            <td
31
+              v-if="i == 0"
32
+              :rowspan="group.advices.length"
33
+            >{{ parseTime(advice.start_time, "{m}-{d} {h}:{i}") }}</td>
33
 
34
 
34
             <td
35
             <td
35
               :class="
36
               :class="
39
               <span>{{ advice.advice_name }}</span>
40
               <span>{{ advice.advice_name }}</span>
40
 
41
 
41
               <span v-if="advice.advice_desc">({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
42
               <span v-if="advice.advice_desc">({{ advice.advice_desc }}{{advice.drug_spec_unit}})</span>
42
-              <span v-if="advice.prescribing_number">&nbsp;&nbsp;{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
43
-              <span v-if="advice.single_dose && template_id == 6" >{{advice.single_dose}}{{advice.single_dose_unit}}</span>
44
-              <span v-if="advice.single_dose && template_id != 6" >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
43
+              <span
44
+                v-if="advice.prescribing_number"
45
+              >&nbsp;&nbsp;{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
46
+              <span
47
+                v-if="advice.single_dose && template_id == 6"
48
+              >{{advice.single_dose}}{{advice.single_dose_unit}}</span>
49
+              <span
50
+                v-if="advice.single_dose && template_id != 6"
51
+              >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
45
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
52
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
46
               <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
53
               <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
47
               <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
54
               <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
51
 
58
 
52
             <td>
59
             <td>
53
               {{
60
               {{
54
-                advice.execution_staff != 0
55
-                  ? doctor_map[advice.execution_staff] != undefined
56
-                    ? doctor_map[advice.execution_staff].name
57
-                    : ""
58
-                  : ""
61
+              advice.execution_staff != 0
62
+              ? doctor_map[advice.execution_staff] != undefined
63
+              ? doctor_map[advice.execution_staff].name
64
+              : ""
65
+              : ""
59
               }}
66
               }}
60
             </td>
67
             </td>
61
 
68
 
62
             <td v-if="template_id != 6">
69
             <td v-if="template_id != 6">
63
               {{
70
               {{
64
-                advice.checker != 0
65
-                  ? doctor_map[advice.checker] != undefined
66
-                    ? doctor_map[advice.checker].name
67
-                    : ""
68
-                  : ""
71
+              advice.checker != 0
72
+              ? doctor_map[advice.checker] != undefined
73
+              ? doctor_map[advice.checker].name
74
+              : ""
75
+              : ""
69
               }}
76
               }}
70
             </td>
77
             </td>
71
           </tr>
78
           </tr>
73
       </table>
80
       </table>
74
 
81
 
75
       <div class="NoData" v-show="advice_groups.length == 0">
82
       <div class="NoData" v-show="advice_groups.length == 0">
76
-        <img
77
-          style="margin-top: 50px; margin-bottom: 50px"
78
-          src="@/assets/login/data.jpg"
79
-          alt
80
-        />
83
+        <img style="margin-top: 50px; margin-bottom: 50px" src="@/assets/login/data.jpg" alt />
81
       </div>
84
       </div>
82
     </div>
85
     </div>
83
   </div>
86
   </div>
191
 
194
 
192
 <style rel="stylesheet/scss" lang="scss" scoped>
195
 <style rel="stylesheet/scss" lang="scss" scoped>
193
 .table {
196
 .table {
194
-  width: 1000px;
197
+  width: 800px;
195
   overflow: hidden;
198
   overflow: hidden;
196
   font-size: 0.45rem;
199
   font-size: 0.45rem;
197
   text-align: center;
200
   text-align: center;

+ 27 - 2
src/pages/main/today/treatmentOf.vue View File

5
       <p>{{ title }}</p>
5
       <p>{{ title }}</p>
6
       <span class="line"></span>
6
       <span class="line"></span>
7
     </h2>
7
     </h2>
8
-    <div class="plate ">
8
+    <div class="plate " style="border:none;padding-bottom:0">
9
       <ul>
9
       <ul>
10
         <li>
10
         <li>
11
           <label>透后宣教 : </label>
11
           <label>透后宣教 : </label>
16
           <span class="content">{{ dialysis_summary }}</span>
16
           <span class="content">{{ dialysis_summary }}</span>
17
         </li>
17
         </li>
18
       </ul>
18
       </ul>
19
+    </div>
20
+      <div class="plate ">
21
+      <ul>
22
+        <li>
23
+          <label>透析护理记录 : </label>
24
+          <span class="content">{{ nursing_record }}</span>
25
+        </li>
26
+        <li>
27
+          <label>特殊记录 : </label>
28
+          <span class="content">{{ special_record }}</span>
29
+        </li>
30
+      </ul>
19
     </div>
31
     </div>
20
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
32
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
21
   </div>
33
   </div>
51
         return "";
63
         return "";
52
       }
64
       }
53
       return this.record.dialysis_summary;
65
       return this.record.dialysis_summary;
66
+    },
67
+    nursing_record: function() {
68
+      if (this.record == null || this.record.id == "") {
69
+        return "";
70
+      }
71
+      return this.record.nursing_record;
72
+    },
73
+    special_record: function() {
74
+      if (this.record == null || this.record.id == "") {
75
+        return "";
76
+      }
77
+      return this.record.special_record;
54
     }
78
     }
55
   },
79
   },
56
   methods: {
80
   methods: {
62
 };
86
 };
63
 </script>
87
 </script>
64
 
88
 
65
-<style rel="stylesheet/scss" lang="scss" scoped></style>
89
+<style rel="stylesheet/scss" lang="scss" scoped>
90
+</style>

+ 15 - 0
src/store/modules/globalConfig.js View File

449
         sodium: 2,
449
         sodium: 2,
450
         calcium: 2,
450
         calcium: 2,
451
         bicarbonate: 2
451
         bicarbonate: 2
452
+      },
453
+      19: {
454
+        id: 19,
455
+        name: 'IUF+HD',
456
+        dialysis_duration: 1,
457
+        replacement_way: 2,
458
+        hemodialysis_machine: 1,
459
+        blood_filter: 2,
460
+        perfusion_apparatus: 2,
461
+        blood_flow_volume: 1,
462
+        dialysate_flow: 1,
463
+        kalium: 1,
464
+        sodium: 1,
465
+        calcium: 1,
466
+        bicarbonate: 1
452
       }
467
       }
453
     },
468
     },
454
     anticoagulants_confit: { // 抗凝剂
469
     anticoagulants_confit: { // 抗凝剂

+ 13 - 8
src/utils/data.js View File

1
 import store from '@/store'
1
 import store from '@/store'
2
 
2
 
3
-export function getDataConfig(module, field) {
3
+export function getDataConfig (module, field) {
4
   var storeConfigList = store.getters.configlist
4
   var storeConfigList = store.getters.configlist
5
   var moduleConfig = storeConfigList[module]
5
   var moduleConfig = storeConfigList[module]
6
-  if (module === 'summary' || module === 'education') {
6
+  if (moduleConfig == undefined) {
7
+    return false
8
+  }
9
+  if (module === 'summary' || module === 'education' || module === 'nursing_record' || module === 'special_record') {
7
     var Aresult = []
10
     var Aresult = []
8
     for (var j = 0; j < moduleConfig.length; j++) {
11
     for (var j = 0; j < moduleConfig.length; j++) {
9
       var Atemp = []
12
       var Atemp = []
19
       var newConfig = moduleConfig[i]
22
       var newConfig = moduleConfig[i]
20
       if (newConfig.field_name === field) {
23
       if (newConfig.field_name === field) {
21
         var result = []
24
         var result = []
22
-        for (var j = 0; j < newConfig.childs.length; j++) {
23
-          var tempconfig = newConfig.childs[j]
24
-          var temp = []
25
-          temp['id'] = tempconfig.value
26
-          temp['name'] = tempconfig.name
27
-          result.push(temp)
25
+        if (newConfig.childs != null) {
26
+          for (var j = 0; j < newConfig.childs.length; j++) {
27
+            var tempconfig = newConfig.childs[j]
28
+            var temp = []
29
+            temp['id'] = tempconfig.value
30
+            temp['name'] = tempconfig.name
31
+            result.push(temp)
32
+          }
28
         }
33
         }
29
         return result
34
         return result
30
       }
35
       }

+ 4 - 1
src/utils/tools.js View File

186
     return 0
186
     return 0
187
   }
187
   }
188
   shouji = parseFloat(shouji)
188
   shouji = parseFloat(shouji)
189
+  // console.log('shouji', shouji)
189
   shichang = parseFloat(shichang)
190
   shichang = parseFloat(shichang)
191
+  // console.log('时长', shichang)
190
   weichi = parseFloat(weichi)
192
   weichi = parseFloat(weichi)
193
+  // console.log('维持', weichi)
191
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
194
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
192
     return 0
195
     return 0
193
   }
196
   }
194
-
197
+  console.log('总量', (shouji + (shichang - t) * weichi).toFixed(1))
195
   return (shouji + (shichang - t) * weichi).toFixed(1)
198
   return (shouji + (shichang - t) * weichi).toFixed(1)
196
 }
199
 }
197
 
200