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,14 +1,13 @@
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 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7 7
   //BASE_API: '"https://api.xt.kuyicloud.com"'
8 8
   BASE_API: '"http://localhost:9531"'
9
-  //BASE_API: '"http://localhost:9529"'
9
+  // BASE_API: '"http://localhost:9529"'
10 10
   //http://api.xt.test.sgjyun.com http://localhost:9529
11 11
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
12 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,10 +1,10 @@
1 1
 <template>
2 2
   <div class="mainBox">
3 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 8
     </van-sticky>
9 9
     <div class="choice">
10 10
       <ul>
@@ -78,24 +78,24 @@
78 78
     <div style="width:100%;overflow:hildden;overflow-x:auto;" class="DialysisAdvice">
79 79
       <div class="blueBorder"></div>
80 80
 
81
-      <table class="table">
81
+      <table class="table dialysisTable">
82 82
         <tr>
83
-          <th width="60px">姓名</th>
83
+          <th width="40px">姓名</th>
84 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 89
           <th width="80px">执行护士</th>
90 90
           <th width="80px">校对护士</th>
91
-          <th width="110px">校对时间</th>
91
+          <th width="50px">校对时间</th>
92 92
           <th width="60px">开嘱医生</th>
93
-          <th width="110px">开嘱时间</th>
93
+          <th width="50px">开嘱时间</th>
94 94
         </tr>
95 95
         <template v-for="(schedules, zone_name, index) in filtedScheduals">
96 96
           <tr :key="index">
97 97
             <td>{{ zone_name }}</td>
98
-            <td></td>
98
+            <!-- <td></td> -->
99 99
             <td></td>
100 100
             <td></td>
101 101
             <td></td>
@@ -119,14 +119,14 @@
119 119
                   advice.parent_id == 0 ? schedule.patient.dialysis_no : ""
120 120
                   }}
121 121
                 </td>
122
-                <td
122
+                <!-- <td
123 123
                   v-if="advice_index == 0"
124 124
                   :rowspan="group.advices.length"
125
-                >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>
125
+                >{{ getAdaviceType(advice.advice_type, advice.parent_id) }}</td>-->
126 126
                 <td v-if="advice_index == 0" :rowspan="group.advices.length">
127 127
                   {{
128 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 132
                 </td>
@@ -153,12 +153,12 @@
153 153
                     v-if="advice.parent_id == 0 && advice.remark.length > 0"
154 154
                   >({{ advice.remark }})</span>
155 155
                 </td>
156
-                <td>{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}</td>
156
+                <td>{{ parseTime(advice.execution_time, "{h}:{i}") }}</td>
157 157
                 <td>{{ getName(advice.execution_staff) }}</td>
158 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 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 162
               </tr>
163 163
             </template>
164 164
           </template>
@@ -347,7 +347,7 @@ export default {
347 347
               }
348 348
             }
349 349
             if (group.group_no > 0) {
350
-              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
350
+              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
351 351
               advice_groups.push(group);
352 352
             }
353 353
             advice_groups = advice_groups;
@@ -440,6 +440,49 @@ export default {
440 440
         if (resp.state == 1) {
441 441
           this.admin_user = resp.data.adminUser;
442 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 486
           var zoneMap = {};
444 487
           var scheduleMap = {};
445 488
           for (let index = 0; index < schedules.length; index++) {
@@ -476,7 +519,14 @@ export default {
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 532
 </script>
@@ -624,6 +674,12 @@ export default {
624 674
   padding-right: 5px;
625 675
   // background: #fafcfe;
626 676
 }
677
+.dialysisTable {
678
+  @media only screen and (max-width: 450px) {
679
+    width: 800px;
680
+    //
681
+  }
682
+}
627 683
 </style>
628 684
 <style lang="scss">
629 685
 // .el-table {

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

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

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

@@ -186,9 +186,8 @@ export default {
186 186
           var filtedSchedules = []
187 187
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
188 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 190
               filtedSchedules.push(schedule)
191
-              break
192 191
             }
193 192
           }
194 193
           if (filtedSchedules.length > 0) {

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

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

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

@@ -65,15 +65,28 @@
65 65
           </div>
66 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 86
           <h2 class="name">透析机型号</h2>
70 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 90
           </div>
78 91
         </div>
79 92
 
@@ -649,7 +662,8 @@ export default {
649 662
         puncture_needle: ""
650 663
       },
651 664
 
652
-      record_date: ""
665
+      record_date: "",
666
+      machineType: []
653 667
     };
654 668
   },
655 669
   watch: {
@@ -1333,6 +1347,23 @@ export default {
1333 1347
           }
1334 1348
           this.propForm.click_ref = "puncture_needle";
1335 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 1369
     menuCancle: function() {
@@ -1440,12 +1471,14 @@ export default {
1440 1471
         case 22:
1441 1472
           this.formValue.puncture_needle = val.result.join(",");
1442 1473
           break;
1474
+        case 23:
1475
+          this.formValue.machine_type = val.selectId;
1476
+          break;
1443 1477
       }
1444 1478
     },
1445 1479
     QueryPartById: function(val) {
1446 1480
       let vascular_access_part_name = "";
1447 1481
       let vascular_access = getDataConfig("hemodialysis", "vascular_access");
1448
-      console.log("vascular_access", vascular_access);
1449 1482
       for (let i = 0; i < vascular_access.length; i++) {
1450 1483
         if (vascular_access[i].id == val) {
1451 1484
           vascular_access_part_name = vascular_access[i].name;
@@ -1479,6 +1512,18 @@ export default {
1479 1512
       }
1480 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 1527
     commitInfo: function() {
1483 1528
       let mode = 1;
1484 1529
       Toast.loading({ forbidClick: true, duration: 0 });
@@ -1490,21 +1535,26 @@ export default {
1490 1535
       // if (this.formValue.dry_weight == ""){
1491 1536
       //   this.formValue.
1492 1537
       // }
1493
-      console.log(this.predialysis);
1494
-
1495 1538
 
1496 1539
       if (this.predialysis.id > 0) {
1497 1540
         mode = 1;
1498
-        if(this.predialysis.creater == 0){
1541
+        if (this.predialysis.creater == 0) {
1499 1542
           mode = 1;
1500
-        }else{
1543
+        } else {
1501 1544
           mode = 2;
1502 1545
           if (this.predialysis.creater != this.$store.getters.user.admin.id) {
1503 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 1558
       EditAssessmentBeforeDislysis(
1509 1559
         this.$route.query.patient_id,
1510 1560
         this.record_date,
@@ -1518,6 +1568,14 @@ export default {
1518 1568
           } else {
1519 1569
             Toast("提交完成");
1520 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 1581
         .catch(error => {
@@ -1592,8 +1650,6 @@ export default {
1592 1650
           }
1593 1651
         })
1594 1652
         .then(res => {
1595
-          console.log(res);
1596
-          console.log("透前", this.patient_prop);
1597 1653
           console.log("透前", this.predialysis);
1598 1654
           if (res.data.state == 0) {
1599 1655
             this.hasPermission = false;
@@ -1633,6 +1689,7 @@ export default {
1633 1689
     CheckBoxSubMenu
1634 1690
   },
1635 1691
   created() {
1692
+    console.log("透前评估数据来源", this.predialysis);
1636 1693
     this.getPermission();
1637 1694
 
1638 1695
     var date = this.$route.query && this.$route.query.date;
@@ -1650,8 +1707,16 @@ export default {
1650 1707
     }
1651 1708
     this.record_date =
1652 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 1720
     if (
1656 1721
       this.predialysis.id == undefined &&
1657 1722
       this.last_predialysis.id != undefined
@@ -1726,7 +1791,6 @@ export default {
1726 1791
     }
1727 1792
     this.hemorrhage_state = this.formValue.is_hemorrhage == 0;
1728 1793
     this.data = getDataConfig("hemodialysis", "vascular_access_desc");
1729
-    console.log("投前评估", this.data);
1730 1794
   }
1731 1795
 };
1732 1796
 </script>

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

@@ -10,34 +10,118 @@
10 10
         <div style="width:100%;background: #fff;">
11 11
           <div class="yzNav" style="width:80%">
12 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 21
           </div>
16 22
         </div>
17 23
         <div class="DialogContent choose" id="dialogTop">
18 24
           <div style="width:100%;overflow:hildden;">
19
-            <table class="table" style>
25
+            <table class="table newMonitTable" style>
20 26
               <tr @click="selectRow(-1, null)">
21 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 125
                 <th v-if="isShow('病情变化')" width="92px">病情变化</th>
42 126
                 <th v-if="isShow('处理')" width="92px">处理</th>
43 127
                 <th v-if="isShow('结果')" width="92px">结果</th>
@@ -50,7 +134,9 @@
50 134
                 :class="index==currentIndex?rowClass:''"
51 135
               >
52 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 140
                 <td v-if="isShow('脉搏')">{{item.pulse_frequency?item.pulse_frequency:''}}</td>
55 141
                 <td v-if="isShow('体温')">{{item.temperature?item.temperature:''}}</td>
56 142
                 <td v-if="isShow('呼吸频率')">{{item.breathing_rate?item.breathing_rate:''}}</td>
@@ -70,7 +156,7 @@
70 156
                 <td
71 157
                   v-if="isShow('置换量')"
72 158
                 >{{item.displacement_quantity?item.displacement_quantity:''}}</td>
73
-                 <td
159
+                <td
74 160
                   v-if="isShow('SpO₂') && template_id != 6 && template_id != 10  && template_id != 11"
75 161
                 >{{item.blood_oxygen_saturation?item.blood_oxygen_saturation:''}}</td>
76 162
 
@@ -79,9 +165,7 @@
79 165
                   v-if="isShow('置换液流量')"
80 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 170
                 <td v-if="isShow('病情变化')">{{item.symptom}}</td>
87 171
                 <td v-if="isShow('处理')">{{item.dispose}}</td>
@@ -206,7 +290,9 @@
206 290
               >转换</button>
207 291
             </div>
208 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 296
               <label v-else>超滤量(L)</label>
211 297
               <input
212 298
                 type="number"
@@ -229,7 +315,7 @@
229 315
               />
230 316
             </div>
231 317
             <div class="cell" v-if="isShow('动脉压')">
232
-             <label>动脉压(mmHg)</label>
318
+              <label>动脉压(mmHg)</label>
233 319
               <input
234 320
                 type="number"
235 321
                 @focus="inputFocus"
@@ -516,7 +602,7 @@ export default {
516 602
         blood_oxygen_saturation: "",
517 603
         monitoring_nurse: this.$store.getters.user.admin.id, // 监测人
518 604
         creator: 0,
519
-        heparin:"",
605
+        heparin: ""
520 606
       },
521 607
       doctor: this.$store.getters.user.user.user_name,
522 608
       value: 0,
@@ -679,10 +765,7 @@ export default {
679 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 770
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
688 771
         this.form.conductivity = "";
@@ -693,7 +776,10 @@ export default {
693 776
         this.form.dispose = ""; // this.last_monitor_record.dispose;
694 777
         this.form.result = ""; // this.last_monitor_record.result;
695 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,15 +894,12 @@ export default {
808 894
               monitor.displacement_flow_quantity;
809 895
           }
810 896
 
811
-
812 897
           if (monitor.heparin == 0) {
813 898
             this.form.heparin = "";
814 899
           } else {
815 900
             this.form.heparin = monitor.heparin;
816 901
           }
817 902
 
818
-
819
-
820 903
           this.form.ktv = monitor.ktv;
821 904
           this.form.symptom = monitor.symptom;
822 905
           this.form.dispose = monitor.dispose;
@@ -1278,7 +1361,7 @@ export default {
1278 1361
             this.form.result = "";
1279 1362
             this.form.conductivity = "";
1280 1363
             this.form.displacement_flow_quantity = "";
1281
-            this.form.heparin= "";
1364
+            this.form.heparin = "";
1282 1365
 
1283 1366
             // this.last_monitor_record.sodium_concentration =
1284 1367
             //   monitor.sodium_concentration
@@ -1537,6 +1620,9 @@ export default {
1537 1620
       text-align: center;
1538 1621
     }
1539 1622
   }
1623
+  .newMonitTable {
1624
+    width: 1670px;
1625
+  }
1540 1626
 }
1541 1627
 
1542 1628
 .row-class-active > td {

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

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

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

@@ -319,8 +319,8 @@
319 319
               />
320 320
             </div>
321 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 324
             <div class="content">
325 325
               <input
326 326
                 type="number"
@@ -331,16 +331,25 @@
331 331
               />
332 332
             </div>
333 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 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 350
             </div>
343 351
           </div>
352
+
344 353
           <div class="line"></div>
345 354
 
346 355
           <div
@@ -799,7 +808,8 @@ export default {
799 808
         type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
800 809
         selectId: 0
801 810
       },
802
-      data: []
811
+      data: [],
812
+      dialyzerPerfusionApparatus: []
803 813
     };
804 814
   },
805 815
   computed: {
@@ -1036,49 +1046,16 @@ export default {
1036 1046
           break;
1037 1047
 
1038 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 1049
           this.propForm.type = 11;
1053 1050
           this.isShowDialog = false;
1054 1051
           this.propForm.title = "透析器/灌流器";
1055 1052
           this.visibility = true;
1056 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 1057
           this.propForm.click_ref = "dialyzer_perfusion_apparatus";
1058
+
1082 1059
           break;
1083 1060
       }
1084 1061
     },
@@ -1467,9 +1444,7 @@ export default {
1467 1444
           this.dialysisPrescription.blood_access = val.selectId;
1468 1445
           break;
1469 1446
         case 11:
1470
-          this.dialysisPrescription.dialyzer_perfusion_apparatus = val.result.join(
1471
-            ","
1472
-          );
1447
+          this.dialysisPrescription.dialyzer_perfusion_apparatus = val.selectId;
1473 1448
           break;
1474 1449
       }
1475 1450
     },
@@ -1499,7 +1474,8 @@ export default {
1499 1474
             treatment_mode_id === 13 ||
1500 1475
             treatment_mode_id === 14 ||
1501 1476
             treatment_mode_id === 15 ||
1502
-            treatment_mode_id === 16
1477
+            treatment_mode_id === 16 ||
1478
+            treatment_mode_id === 19
1503 1479
           ) {
1504 1480
             this.zhiShow = false;
1505 1481
             this.totalShow = false;
@@ -1593,7 +1569,19 @@ export default {
1593 1569
       if (this.prescription_prop.id == "") {
1594 1570
         if (this.is_open == 0) {
1595 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 1585
           ParamsQuery["patient"] = this.$route.query.patient_id;
1598 1586
           ParamsQuery["record_date"] = this.record_date;
1599 1587
           ParamsQuery["mode"] = "1";
@@ -1634,7 +1622,19 @@ export default {
1634 1622
             }
1635 1623
           } else {
1636 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 1638
             ParamsQuery["patient"] = this.$route.query.patient_id;
1639 1639
             ParamsQuery["record_date"] = this.record_date;
1640 1640
             ParamsQuery["mode"] = "1";
@@ -1661,7 +1661,19 @@ export default {
1661 1661
         } else if (this.is_open == 2) {
1662 1662
           if (this.waitUploadAdvices.length > 0) {
1663 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 1677
             ParamsQuery["patient"] = this.$route.query.patient_id;
1666 1678
             ParamsQuery["record_date"] = this.record_date;
1667 1679
             ParamsQuery["mode"] = "1";
@@ -1741,7 +1753,19 @@ export default {
1741 1753
               });
1742 1754
           } else {
1743 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 1769
             ParamsQuery["patient"] = this.$route.query.patient_id;
1746 1770
             ParamsQuery["record_date"] = this.record_date;
1747 1771
             commitDialysisPrescription(ParamsQuery)
@@ -1770,7 +1794,19 @@ export default {
1770 1794
         if (this.prescription_prop.creater == 0) {
1771 1795
           if (this.is_open == 0) {
1772 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 1810
             ParamsQuery["patient"] = this.$route.query.patient_id;
1775 1811
             ParamsQuery["record_date"] = this.record_date;
1776 1812
             ParamsQuery["mode"] = "1";
@@ -1814,7 +1850,19 @@ export default {
1814 1850
               }
1815 1851
             } else {
1816 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 1866
               ParamsQuery["patient"] = this.$route.query.patient_id;
1819 1867
               ParamsQuery["record_date"] = this.record_date;
1820 1868
               ParamsQuery["mode"] = "1";
@@ -1842,7 +1890,19 @@ export default {
1842 1890
           } else if (this.is_open == 2) {
1843 1891
             if (this.waitUploadAdvices.length > 0) {
1844 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 1906
               ParamsQuery["patient"] = this.$route.query.patient_id;
1847 1907
               ParamsQuery["record_date"] = this.record_date;
1848 1908
               ParamsQuery["mode"] = "1";
@@ -1923,7 +1983,19 @@ export default {
1923 1983
                 });
1924 1984
             } else {
1925 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 1999
               ParamsQuery["patient"] = this.$route.query.patient_id;
1928 2000
               ParamsQuery["record_date"] = this.record_date;
1929 2001
               ParamsQuery["mode"] = "1";
@@ -1949,7 +2021,20 @@ export default {
1949 2021
           }
1950 2022
         } else {
1951 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 2038
           ParamsQuery["patient"] = this.$route.query.patient_id;
1954 2039
           ParamsQuery["record_date"] = this.record_date;
1955 2040
 
@@ -1999,7 +2084,19 @@ export default {
1999 2084
       if (this.prescription_prop.id == "") {
2000 2085
         if (this.is_open == 0) {
2001 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 2100
           ParamsQuery["patient"] = this.$route.query.patient_id;
2004 2101
           ParamsQuery["record_date"] = this.record_date;
2005 2102
           ParamsQuery["mode"] = "1";
@@ -2035,7 +2132,19 @@ export default {
2035 2132
             }
2036 2133
           } else {
2037 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 2148
             ParamsQuery["patient"] = this.$route.query.patient_id;
2040 2149
             ParamsQuery["record_date"] = this.record_date;
2041 2150
             ParamsQuery["mode"] = "1";
@@ -2061,7 +2170,19 @@ export default {
2061 2170
         } else if (this.is_open == 2) {
2062 2171
           if (this.waitUploadAdvices.length > 0) {
2063 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 2186
             ParamsQuery["patient"] = this.$route.query.patient_id;
2066 2187
             ParamsQuery["record_date"] = this.record_date;
2067 2188
             ParamsQuery["mode"] = "1";
@@ -2147,7 +2268,19 @@ export default {
2147 2268
               });
2148 2269
           } else {
2149 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 2284
             ParamsQuery["patient"] = this.$route.query.patient_id;
2152 2285
             ParamsQuery["record_date"] = this.record_date;
2153 2286
             ParamsQuery["mode"] = "1";
@@ -2174,7 +2307,19 @@ export default {
2174 2307
         if (this.prescription_prop.creater == 0) {
2175 2308
           if (this.is_open == 0) {
2176 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 2323
             ParamsQuery["patient"] = this.$route.query.patient_id;
2179 2324
             ParamsQuery["record_date"] = this.record_date;
2180 2325
             ParamsQuery["mode"] = "1";
@@ -2215,7 +2360,19 @@ export default {
2215 2360
               }
2216 2361
             } else {
2217 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 2376
               ParamsQuery["patient"] = this.$route.query.patient_id;
2220 2377
               ParamsQuery["record_date"] = this.record_date;
2221 2378
               ParamsQuery["mode"] = "1";
@@ -2240,7 +2397,19 @@ export default {
2240 2397
           } else if (this.is_open == 2) {
2241 2398
             if (this.waitUploadAdvices.length > 0) {
2242 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 2413
               ParamsQuery["patient"] = this.$route.query.patient_id;
2245 2414
               ParamsQuery["record_date"] = this.record_date;
2246 2415
               ParamsQuery["mode"] = "2";
@@ -2326,7 +2495,19 @@ export default {
2326 2495
                 });
2327 2496
             } else {
2328 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 2511
               ParamsQuery["patient"] = this.$route.query.patient_id;
2331 2512
               ParamsQuery["record_date"] = this.record_date;
2332 2513
               ParamsQuery["mode"] = "1";
@@ -2351,7 +2532,19 @@ export default {
2351 2532
           }
2352 2533
         } else {
2353 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 2548
           ParamsQuery["patient"] = this.$route.query.patient_id;
2356 2549
           ParamsQuery["record_date"] = this.record_date;
2357 2550
           ParamsQuery["mode"] = "1";
@@ -2364,6 +2557,7 @@ export default {
2364 2557
               } else {
2365 2558
                 Toast.success("提交成功");
2366 2559
                 this.$emit("longSolution", response.data.data.solution);
2560
+
2367 2561
                 this.$emit("prescription", response.data.data.prescription);
2368 2562
                 this.finish();
2369 2563
               }
@@ -2468,6 +2662,17 @@ export default {
2468 2662
       }
2469 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 2676
     menuEmpty: function(val) {
2472 2677
       this.visibility = false;
2473 2678
       this.isShowDialog = true;
@@ -2532,6 +2737,7 @@ export default {
2532 2737
       this.is_show = false;
2533 2738
     },
2534 2739
     menuComfirmTwo: function(dialysisPrescription) {
2740
+      console.log("dialysisPrescription是射门", dialysisPrescription);
2535 2741
       this.isShowDialog = true;
2536 2742
       this.is_show = false;
2537 2743
       this.dialysisPrescription.niprocart = dialysisPrescription.niprocart;
@@ -2565,12 +2771,6 @@ export default {
2565 2771
           }
2566 2772
         })
2567 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 2774
           if (res.data.state == 0) {
2575 2775
             this.hasPermission = false;
2576 2776
           } else if (res.data.state == 1) {
@@ -2609,8 +2809,6 @@ export default {
2609 2809
     }
2610 2810
   },
2611 2811
   created() {
2612
-    console.log("数据来源", this.dialysisPrescription);
2613
-
2614 2812
     this.getPermission();
2615 2813
     this.template_id = this.$store.getters.user.template_info.template_id;
2616 2814
 
@@ -2627,8 +2825,8 @@ export default {
2627 2825
     this.perfusion_apparatus = perfusion_apparatus;
2628 2826
 
2629 2827
     this.anticoagulantsConfitTwo = this.$store.getters.anticoagulants_confit;
2828
+
2630 2829
     var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit;
2631
-    console.log("康妮剂", anticoagulantsConfitOne);
2632 2830
 
2633 2831
     for (let i = 0; i < anticoagulantsConfitOne.length; i++) {
2634 2832
       console.log("anticoagulantsConfitOne", anticoagulantsConfitOne[i].name);
@@ -2642,15 +2840,16 @@ export default {
2642 2840
     var arrthree = {};
2643 2841
     arrthree = { ...arr };
2644 2842
     console.log("arrthree", arrthree);
2843
+
2645 2844
     let arrFour = [];
2646 2845
     Object.keys(anticoagulantsConfitOne).map((item, index) => {
2647 2846
       Object.keys(arrthree).map((it, i) => {
2648 2847
         if (anticoagulantsConfitOne[item].name == arrthree[it].name) {
2848
+          console.log("anticoagulantsConfitOne[item].name");
2649 2849
           arrFour.push(anticoagulantsConfitOne[item]);
2650 2850
         }
2651 2851
       });
2652 2852
     });
2653
-    console.log("arrFour", arrFour);
2654 2853
     this.anticoagulantsConfit = arrFour;
2655 2854
 
2656 2855
     this.bodyFluidOptions = this.$store.getters.body_fluid;
@@ -2777,6 +2976,24 @@ export default {
2777 2976
     if (this.dialysisPrescription.anticoagulant_zongliang == "") {
2778 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 2999
   components: {

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

@@ -12,27 +12,35 @@
12 12
       </div>
13 13
 
14 14
       <div class="DialogContent choose" id="dialogTop">
15
+
15 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 44
           <el-form-item label="透析小结 : ">
37 45
             <el-input
38 46
               readonly
@@ -42,21 +50,73 @@
42 50
               @focus="showSubMenu('summary')"
43 51
             ></el-input>
44 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 119
         </el-form>
57
-        <!-- <div class="button">
58
-              <button @click="commitInfo" class="submitButton">提交</button>
59
-        </div>-->
60 120
       </div>
61 121
     </div>
62 122
 
@@ -75,14 +135,14 @@ import { Toast } from "vant";
75 135
 import CheckBoxSubMenu from "./subMenu/checkBoxSubMenu";
76 136
 import { getDataConfig } from "@/utils/data";
77 137
 
78
-import request from '@/utils/request'
138
+import request from "@/utils/request";
79 139
 
80 140
 export default {
81 141
   name: "TreatmentDialog",
82 142
   data() {
83 143
     return {
84
-      showTxt:'',
85
-      hasPermission:true,
144
+      showTxt: "",
145
+      hasPermission: true,
86 146
       isShowDialog: true,
87 147
 
88 148
       visibility: false,
@@ -91,8 +151,8 @@ export default {
91 151
         list: [],
92 152
         optionList: [],
93 153
         isMultiple: 2,
94
-        result: [], //选中的值
95
-        type: 1, //用来区分不同子菜单,方便对返回值进行赋值
154
+        result: [], // 选中的值
155
+        type: 1, // 用来区分不同子菜单,方便对返回值进行赋值
96 156
         selectId: 0
97 157
       },
98 158
 
@@ -107,7 +167,11 @@ export default {
107 167
         treatNurse: "",
108 168
         checkStaff: "",
109 169
         deboardNurse: "",
110
-        treatDoctor: ""
170
+        treatDoctor: "",
171
+        nursing_record: "",
172
+        special_record: "",
173
+        nursingRecordSelect: "",
174
+        specialRecordSelect: ""
111 175
       },
112 176
       summary: [],
113 177
       summaryObj: {},
@@ -117,7 +181,9 @@ export default {
117 181
       record_date: "",
118 182
       patient: {
119 183
         id: 0
120
-      }
184
+      },
185
+      nursingRecord: [],
186
+      specialRecord: []
121 187
     };
122 188
   },
123 189
   props: {
@@ -129,13 +195,14 @@ export default {
129 195
     }
130 196
   },
131 197
   created() {
132
-    this.getPermission()
198
+    this.getPermission();
133 199
     // this.summary = this.$store.getters.summary;
134 200
     this.summary = getDataConfig("summary", "summary");
201
+    console.log("透后选叫", getDataConfig("summary", "summary"));
135 202
     // console.log("this.summary",this.summary)
136 203
     // this.teach = this.$store.getters.teach;
137 204
     this.teach = getDataConfig("education", "education");
138
-
205
+    console.log("this", this.teach);
139 206
     if (this.teach.length > 0) {
140 207
       var tlen = this.teach.length;
141 208
       for (let index = 0; index < tlen; index++) {
@@ -150,6 +217,28 @@ export default {
150 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 243
     var date = this.$route.query && this.$route.query.date;
155 244
     date *= 1000;
@@ -213,9 +302,30 @@ export default {
213 302
           this.visibility = true;
214 303
           this.propForm.list = [];
215 304
           this.propForm.optionList = this.summary;
305
+          console.log("summary", this.summary);
216 306
           this.propForm.isMultiple = 1;
217 307
           this.propForm.selectId = this.dialysisSummary.xxjid;
218 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 331
     menuCancle: function() {
@@ -246,12 +356,32 @@ export default {
246 356
             ].name;
247 357
           }
248 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 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 387
       if (this.dialysisSummary.summaryContent == "") {
@@ -267,21 +397,29 @@ export default {
267 397
               this.dialysisSummary.summaryContent + "," + values;
268 398
           } else {
269 399
             this.dialysisSummary.summaryContent =
270
-              this.dialysisSummary.summaryContent  + values;
400
+              this.dialysisSummary.summaryContent + values;
271 401
           }
272 402
         }
273 403
       }
274 404
     },
275 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 409
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
280 410
         this.dialysisSummary.propagandaAndEducationContent = values;
281 411
       } else {
282
-        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
412
+        if (
413
+          this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
414
+          -1
415
+        ) {
283 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 423
             this.dialysisSummary.propagandaAndEducationContent =
286 424
               this.dialysisSummary.propagandaAndEducationContent + "," + values;
287 425
           } else {
@@ -291,6 +429,50 @@ export default {
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 476
     commitInfo: function() {
295 477
       Toast.loading({ forbidClick: true, duration: 0 });
296 478
       let ParamsQuery = this.dialysisSummary;
@@ -298,28 +480,30 @@ export default {
298 480
       ParamsQuery["record_date"] = this.record_date;
299 481
       ParamsQuery["mode"] = "1";
300 482
 
301
-      if (this.record.id > 0){
483
+      if (this.record.id > 0) {
302 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 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 508
     close: function() {
325 509
       this.$emit("close");
@@ -334,40 +518,59 @@ export default {
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,7 +597,7 @@ export default {
394 597
     }
395 598
   }
396 599
 }
397
-.warnTxt{
600
+.warnTxt {
398 601
   font-size: 0.5rem;
399 602
   height: 1rem;
400 603
   line-height: 1rem;

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

@@ -1,23 +1,22 @@
1 1
 <template>
2 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 4
       <div class="choice">
10 5
         <ul>
11 6
           <li>
12 7
             透析时间:
13 8
             <div @click="openStartPicker" class>
14 9
               {{ parseTime(startTime.getTime() / 1000, "{y}-{m}-{d}") }}
15
-              <span class="iconfont">&#xe74a;</span>
10
+              <span
11
+                class="iconfont"
12
+              >&#xe74a;</span>
16 13
             </div>
17 14
             <span class="line"></span>
18 15
             <div @click="openEndPicker" class>
19 16
               {{ parseTime(endTime.getTime() / 1000, "{y}-{m}-{d}") }}
20
-              <span class="iconfont">&#xe74a;</span>
17
+              <span
18
+                class="iconfont"
19
+              >&#xe74a;</span>
21 20
             </div>
22 21
           </li>
23 22
 
@@ -42,20 +41,15 @@
42 41
                   :key="item.id"
43 42
                   @click="itemClick(item.id)"
44 43
                   :class="mode_id == item.id ? 'tick' : ''"
45
-                >
46
-                  {{ item.name }}
47
-                </li>
44
+                >{{ item.name }}</li>
48 45
               </ul>
49 46
             </div>
50 47
           </el-popover>
51 48
         </ul>
52 49
       </div>
53 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 53
           <tr>
60 54
             <th width="124px">透析日期</th>
61 55
             <th width="72px">班次</th>
@@ -84,49 +78,49 @@
84 78
             <td>{{ modeName(item.prescription.mode_id) }}</td>
85 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 85
             </td>
92 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 90
             </td>
97 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 97
             </td>
104 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 104
             </td>
111 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 111
             </td>
118 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 118
             </td>
125 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 125
             </td>
132 126
             <td>{{ setAnticoagulantsConfit(item.prescription) }}</td>
@@ -136,11 +130,7 @@
136 130
         </table>
137 131
 
138 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 134
         </div>
145 135
       </div>
146 136
       <!-- <el-table :data="tableDate" border style="width: 100%">
@@ -568,6 +558,14 @@ export default {
568 558
   max-height: 400px;
569 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 569
 </style>
572 570
 <style lang="scss">
573 571
 .el-table td {

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

@@ -1,11 +1,6 @@
1 1
 <template>
2 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 4
       <div class="blueBorder"></div>
10 5
       <div class="schedulTable">
11 6
         <div class="tableTit">
@@ -20,18 +15,12 @@
20 15
               ]"
21 16
               :key="index"
22 17
               :value="item.value"
23
-            >
24
-              {{ item }}
25
-            </li>
18
+            >{{ item }}</li>
26 19
           </ul>
27 20
         </div>
28 21
         <div class="tableDate">
29 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 24
               <span>{{ parseTime(item.schedule_date, "{y}-{m}-{d}") }}</span>
36 25
               <span>{{ scheduleType(item.schedule_type) }}</span>
37 26
               <span>{{ item.zone.name }}</span>
@@ -44,11 +33,7 @@
44 33
     </van-list>
45 34
     <!--<div class="NoData" v-show="tableDate.length == 0"><img src="@/assets/login/data.jpg" alt=""></div>-->
46 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 37
     </div>
53 38
   </div>
54 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,7 +87,7 @@
87 87
                 <div class="inline_block" style="flex:1;">
88 88
                   透析次数:
89 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 91
                   </div>
92 92
                 </div>
93 93
                 <div class="inline_block" style="flex:1;">

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

@@ -123,7 +123,7 @@
123 123
                   </td>
124 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 127
                   </td>
128 128
                  </tr>
129 129
                   <tr>
@@ -774,7 +774,7 @@
774 774
                 压迫后内瘘震颤:
775 775
                 <label-box
776 776
                   :isChecked="
777
-                    predialysis.internal_fistula.indexOf('震颤-存在') > -1
777
+                    afterdialysis.internal_fistula.indexOf('震颤-存在') > -1
778 778
                       ? true
779 779
                       : false
780 780
                   "
@@ -783,7 +783,7 @@
783 783
                 &nbsp;
784 784
                 <label-box
785 785
                   :isChecked="
786
-                    predialysis.internal_fistula.indexOf('震颤-减弱') > -1
786
+                    afterdialysis.internal_fistula.indexOf('震颤-减弱') > -1
787 787
                       ? true
788 788
                       : false
789 789
                   "
@@ -792,7 +792,7 @@
792 792
                 &nbsp;
793 793
                 <label-box
794 794
                   :isChecked="
795
-                    predialysis.internal_fistula.indexOf('震颤-无') > -1
795
+                    afterdialysis.internal_fistula.indexOf('震颤-无') > -1
796 796
                       ? true
797 797
                       : false
798 798
                   "

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

@@ -86,7 +86,7 @@
86 86
                   <div class="inline_block" style="flex:1;">
87 87
                     透析次数:
88 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 90
                     </div>
91 91
                   </div>
92 92
                   <div class="inline_block" style="flex:1;">
@@ -304,6 +304,9 @@
304 304
                     <div class="under_line" style="width: 100px;text-align: center;font-weight:600;" v-if="prescription.mode_id==18">
305 305
                       HDF后置换
306 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 310
                   </div>
308 311
 
309 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,7 +311,7 @@ import { GetRemindLongAdvice } from "@/api/advice";
311 311
 
312 312
 import { parseTime } from "@/utils";
313 313
 import request from "@/utils/request";
314
-
314
+import { getDataConfig } from "@/utils/data";
315 315
 export default {
316 316
   name: "TodayTab",
317 317
   components: {
@@ -405,7 +405,8 @@ export default {
405 405
       is_open: 0,
406 406
       targetAdvices: [],
407 407
       status: "",
408
-      patientid: 0
408
+      patientid: 0,
409
+      dialyzerPerfusionApparatus: []
409 410
     };
410 411
   },
411 412
   computed: {
@@ -883,11 +884,46 @@ export default {
883 884
           var patient = resp.data.patient; // 患者信息
884 885
           var schedual = resp.data.schedual; // 患者排班信息
885 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 905
           var solution = resp.data.solution; // 透析方案
887 906
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
888 907
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
889 908
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
890 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 927
           var system_prescription = resp.data.system_prescription;
892 928
 
893 929
           this.dryWeight = resp.data.dry_weight;
@@ -1516,11 +1552,31 @@ export default {
1516 1552
             var patient = resp.data.patient; // 患者信息
1517 1553
             var schedual = resp.data.schedual; // 患者排班信息
1518 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 1574
             var solution = resp.data.solution; // 透析方案
1520 1575
             var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
1521 1576
             var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
1522 1577
             var doctor_advices = resp.data.doctor_advices; // 临时医嘱
1523 1578
             var last_prescription = resp.data.last_prescription;
1579
+            console.log("上次透析处方2", last_prescription);
1524 1580
             var system_prescription = resp.data.system_prescription;
1525 1581
 
1526 1582
             this.dryWeight = resp.data.dry_weight;

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

@@ -8,43 +8,107 @@
8 8
     <div class="dm" style="width:100%;overflow:hildden;overflow-x:auto;">
9 9
       <table class="table dialsisTable" style>
10 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 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 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 105
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
38 106
           <th v-if="isShow('处理')" width="92px">处理</th>
39 107
           <th v-if="isShow('结果')" width="92px">结果</th>
40 108
         </tr>
41 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 112
           <td v-if="isShow('血压')">
49 113
             {{
50 114
             item.systolic_blood_pressure ? item.systolic_blood_pressure : ""
@@ -52,47 +116,35 @@
52 116
             item.diastolic_blood_pressure ? item.diastolic_blood_pressure : ""
53 117
             }}
54 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 122
           <td>
63 123
             {{ item.venous_pressure ? item.venous_pressure : "" }}/{{
64
-              item.arterial_pressure ? item.arterial_pressure : ""
124
+            item.arterial_pressure ? item.arterial_pressure : ""
65 125
             }}
66 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 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 149
           </th>
98 150
           <th v-if="isShow('肝素用量余量')">
@@ -109,11 +161,7 @@
109 161
       </table>
110 162
 
111 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 165
       </div>
118 166
     </div>
119 167
     <!-- <el-table :data="tableDate" border style="width: 100%" ref="form">
@@ -285,7 +333,7 @@ export default {
285 333
 
286 334
 <style rel="stylesheet/scss" lang="scss" scoped>
287 335
 .dialsisTable {
288
-  width: 2400px;
336
+  width: 1600px;
289 337
 }
290 338
 .dm {
291 339
   /* 针对缺省样式 (必须的) */

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

@@ -143,7 +143,7 @@
143 143
         <ul> -->
144 144
         <li v-if="isShow('透析器/灌流器')">
145 145
           <label>透析器/灌流器 : </label>
146
-          <span class="content">{{dialyzer_perfusion_apparatus}}</span>
146
+          <span class="content">{{getData(dialyzer_perfusion_apparatus)}}</span>
147 147
           <span class="unit"></span>
148 148
         </li>
149 149
         <li v-if="isShow('体液过多症状')">
@@ -217,7 +217,8 @@ export default {
217 217
     return {
218 218
       title: "透析处方",
219 219
       perfusion_apparatus_map: {},
220
-      dialysateFormulationMap: {}
220
+      dialysateFormulationMap: {},
221
+      dialyzerPerfusionApparatus: []
221 222
     };
222 223
   },
223 224
   props: {
@@ -483,6 +484,21 @@ export default {
483 484
       this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
484 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 503
   methods: {
488 504
     getDisplaceLiquiValue: function() {
@@ -538,6 +554,15 @@ export default {
538 554
       } else {
539 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,8 +9,8 @@
9 9
     <div class="newDiv">
10 10
       <table class="table">
11 11
         <tr>
12
-          <th width="8%">开嘱医生</th>
13
-          <th width="8%">开始时间</th>
12
+          <th width="5%">开嘱医生</th>
13
+          <th width="6%">开始时间</th>
14 14
           <th width="20%">医嘱内容</th>
15 15
           <th width="8%">执行时间</th>
16 16
           <th width="8%">执行护士</th>
@@ -21,15 +21,16 @@
21 21
           <tr v-for="(advice, i) in group.advices" :key="advice.id">
22 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 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 35
             <td
35 36
               :class="
@@ -39,9 +40,15 @@
39 40
               <span>{{ advice.advice_name }}</span>
40 41
 
41 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 52
               <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
46 53
               <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
47 54
               <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
@@ -51,21 +58,21 @@
51 58
 
52 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 67
             </td>
61 68
 
62 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 77
             </td>
71 78
           </tr>
@@ -73,11 +80,7 @@
73 80
       </table>
74 81
 
75 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 84
       </div>
82 85
     </div>
83 86
   </div>
@@ -191,7 +194,7 @@ export default {
191 194
 
192 195
 <style rel="stylesheet/scss" lang="scss" scoped>
193 196
 .table {
194
-  width: 1000px;
197
+  width: 800px;
195 198
   overflow: hidden;
196 199
   font-size: 0.45rem;
197 200
   text-align: center;

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

@@ -5,7 +5,7 @@
5 5
       <p>{{ title }}</p>
6 6
       <span class="line"></span>
7 7
     </h2>
8
-    <div class="plate ">
8
+    <div class="plate " style="border:none;padding-bottom:0">
9 9
       <ul>
10 10
         <li>
11 11
           <label>透后宣教 : </label>
@@ -16,6 +16,18 @@
16 16
           <span class="content">{{ dialysis_summary }}</span>
17 17
         </li>
18 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 31
     </div>
20 32
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
21 33
   </div>
@@ -51,6 +63,18 @@ export default {
51 63
         return "";
52 64
       }
53 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 80
   methods: {
@@ -62,4 +86,5 @@ export default {
62 86
 };
63 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,6 +449,21 @@ const global_config = {
449 449
         sodium: 2,
450 450
         calcium: 2,
451 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 469
     anticoagulants_confit: { // 抗凝剂

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

@@ -1,9 +1,12 @@
1 1
 import store from '@/store'
2 2
 
3
-export function getDataConfig(module, field) {
3
+export function getDataConfig (module, field) {
4 4
   var storeConfigList = store.getters.configlist
5 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 10
     var Aresult = []
8 11
     for (var j = 0; j < moduleConfig.length; j++) {
9 12
       var Atemp = []
@@ -19,12 +22,14 @@ export function getDataConfig(module, field) {
19 22
       var newConfig = moduleConfig[i]
20 23
       if (newConfig.field_name === field) {
21 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 34
         return result
30 35
       }

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

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