Browse Source

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

xiaoming_global 5 years ago
parent
commit
7737a91bd5

File diff suppressed because it is too large
+ 3555 - 1086
package-lock.json


+ 7 - 3
src/pages/home/login.vue View File

37
           >
37
           >
38
             登录
38
             登录
39
           </button>
39
           </button>
40
-          <router-link to="/forgetPassword">
41
-            <div class="newForget">忘记密码</div>
42
-          </router-link>
40
+          <!-- <router-link to="/forgetPassword"> -->
41
+          <div class="newForget" @click="ok">忘记密码</div>
42
+          <!-- </router-link> -->
43
           <!-- </router-link> -->
43
           <!-- </router-link> -->
44
           <!-- <div class="forget">
44
           <!-- <div class="forget">
45
           <a href="">免密码登录</a>
45
           <a href="">免密码登录</a>
55
 import { loginByPwd } from "@/api/login";
55
 import { loginByPwd } from "@/api/login";
56
 import { hex_md5 } from "@/utils/md5";
56
 import { hex_md5 } from "@/utils/md5";
57
 import { getLoginInfoCache, cacheLoginInfo } from "@/utils/admin_info_cache";
57
 import { getLoginInfoCache, cacheLoginInfo } from "@/utils/admin_info_cache";
58
+import { Toast } from "vant";
58
 
59
 
59
 export default {
60
 export default {
60
   name: "Home",
61
   name: "Home",
115
     },
116
     },
116
     to: function() {
117
     to: function() {
117
       this.$router.push({ path: "/forgetPassword" });
118
       this.$router.push({ path: "/forgetPassword" });
119
+    },
120
+    ok() {
121
+      Toast.success("程序员还在开发中");
118
     }
122
     }
119
   }
123
   }
120
 };
124
 };

+ 1 - 0
src/pages/main/PatientBox.vue View File

296
   width: 47%;
296
   width: 47%;
297
   margin: 0 3% 0.5rem 0;
297
   margin: 0 3% 0.5rem 0;
298
   float: left;
298
   float: left;
299
+  border-radius: 5px;
299
   @media only screen and (max-width: 415px) {
300
   @media only screen and (max-width: 415px) {
300
     width: 96% !important;
301
     width: 96% !important;
301
   }
302
   }

+ 17 - 4
src/pages/main/dialog/AcceptsDialog.vue View File

7
         <span class="success" @click="commitInfo">保存</span>
7
         <span class="success" @click="commitInfo">保存</span>
8
       </div>
8
       </div>
9
       <div class="DialogContent choose">
9
       <div class="DialogContent choose">
10
-        <el-form :model="receiveTreatmentAsses" label-width="130px">
10
+        <el-form
11
+          class="acceptsForm"
12
+          :model="receiveTreatmentAsses"
13
+          label-width="130px"
14
+        >
11
           <el-form-item label="入室方式: " v-if="isShow('入室方式')">
15
           <el-form-item label="入室方式: " v-if="isShow('入室方式')">
12
             <el-radio v-model="receiveTreatmentAsses.way" label="1"
16
             <el-radio v-model="receiveTreatmentAsses.way" label="1"
13
               >步行</el-radio
17
               >步行</el-radio
467
 }
471
 }
468
 </style>
472
 </style>
469
 <style lang="scss">
473
 <style lang="scss">
470
-.el-radio {
471
-  margin-right: 26px;
472
-  width: 2.4rem;
474
+.acceptsForm {
475
+  .el-radio {
476
+    margin-right: 20px;
477
+    width: 2.4rem;
478
+  }
473
 }
479
 }
480
+
474
 .el-radio__inner {
481
 .el-radio__inner {
475
   width: 20px;
482
   width: 20px;
476
   height: 20px;
483
   height: 20px;
484
+  @media only screen and (min-width: 768px) {
485
+    width: 26px;
486
+    height: 26px;
487
+    margin-bottom: 4px;
488
+  }
477
 }
489
 }
478
 .illnessInput {
490
 .illnessInput {
479
   .el-input__inner {
491
   .el-input__inner {
492
+    font-size: 0.45rem;
480
     @media only screen and (min-width: 768px) {
493
     @media only screen and (min-width: 768px) {
481
       height: 60px;
494
       height: 60px;
482
       line-height: 60px;
495
       line-height: 60px;

+ 1 - 0
src/pages/main/dialog/ComputerDialog.vue View File

265
           return false;
265
           return false;
266
         } else {
266
         } else {
267
           Toast.success("修改成功");
267
           Toast.success("修改成功");
268
+          this.$emit('did_add_monitor', monitor)
268
           this.$emit("did_start", response.data.data.dialysis_order);
269
           this.$emit("did_start", response.data.data.dialysis_order);
269
           var record = this.record;
270
           var record = this.record;
270
           for (const key in response.data.data.dialysis_order) {
271
           for (const key in response.data.data.dialysis_order) {

+ 41 - 22
src/pages/main/dialog/DoubleDialog.vue View File

9
       <div style="height: 8rem" class="DialogContent choose">
9
       <div style="height: 8rem" class="DialogContent choose">
10
         <el-form
10
         <el-form
11
           :inline="true"
11
           :inline="true"
12
-          class="demo-form-inline"
12
+          class="demo-form-inline doubleForm"
13
           :model="doubleReview"
13
           :model="doubleReview"
14
-          label-width="140px"
14
+          label-width="3.4rem"
15
         >
15
         >
16
           <el-form-item label="透析物品核查 : ">
16
           <el-form-item label="透析物品核查 : ">
17
             <el-radio v-model="doubleReview.dialysis_item_check" label="1"
17
             <el-radio v-model="doubleReview.dialysis_item_check" label="1"
21
               >错误</el-radio
21
               >错误</el-radio
22
             >
22
             >
23
           </el-form-item>
23
           </el-form-item>
24
-          <el-form-item label="差错描述 : " label-width="140px">
25
-            <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
24
+          <el-form-item label="差错描述 : " label-width="3.4rem">
25
+            <el-input
26
+              class="doubleInput"
27
+              v-model="doubleReview.dialysis_item_desc"
28
+            ></el-input>
26
           </el-form-item>
29
           </el-form-item>
27
         </el-form>
30
         </el-form>
28
         <el-form
31
         <el-form
29
           :inline="true"
32
           :inline="true"
30
-          class="demo-form-inline"
33
+          class="demo-form-inline doubleForm"
31
           :model="doubleReview"
34
           :model="doubleReview"
32
-          label-width="140px"
35
+          label-width="3.4rem"
33
         >
36
         >
34
           <el-form-item label="透析参数核查 : ">
37
           <el-form-item label="透析参数核查 : ">
35
             <el-radio v-model="doubleReview.dialysis_parameter_check" label="1"
38
             <el-radio v-model="doubleReview.dialysis_parameter_check" label="1"
39
               >错误</el-radio
42
               >错误</el-radio
40
             >
43
             >
41
           </el-form-item>
44
           </el-form-item>
42
-          <el-form-item label="差错描述 : " label-width="140px">
43
-            <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
45
+          <el-form-item label="差错描述 : " label-width="3.4rem">
46
+            <el-input
47
+              class="doubleInput"
48
+              v-model="doubleReview.dialysis_parameter_desc"
49
+            ></el-input>
44
           </el-form-item>
50
           </el-form-item>
45
         </el-form>
51
         </el-form>
46
         <el-form
52
         <el-form
47
           :inline="true"
53
           :inline="true"
48
-          class="demo-form-inline"
54
+          class="demo-form-inline doubleForm"
49
           :model="doubleReview"
55
           :model="doubleReview"
50
-          label-width="140px"
56
+          label-width="3.4rem"
51
         >
57
         >
52
           <el-form-item label="血管通路核查 : ">
58
           <el-form-item label="血管通路核查 : ">
53
             <!--<el-radio-group v-model="form.appetite">-->
59
             <!--<el-radio-group v-model="form.appetite">-->
65
               >错误</el-radio
71
               >错误</el-radio
66
             >
72
             >
67
           </el-form-item>
73
           </el-form-item>
68
-          <el-form-item label="差错描述 : " label-width="140px">
69
-            <el-input v-model="doubleReview.vascular_access_desc"></el-input>
74
+          <el-form-item label="差错描述 : " label-width="3.4rem">
75
+            <el-input
76
+              class="doubleInput"
77
+              v-model="doubleReview.vascular_access_desc"
78
+            ></el-input>
70
           </el-form-item>
79
           </el-form-item>
71
         </el-form>
80
         </el-form>
72
         <el-form
81
         <el-form
73
           :inline="true"
82
           :inline="true"
74
-          class="demo-form-inline"
83
+          class="demo-form-inline doubleForm"
75
           :model="doubleReview"
84
           :model="doubleReview"
76
-          label-width="140px"
85
+          label-width="3.4rem"
77
         >
86
         >
78
           <el-form-item label="管道连接核查 : ">
87
           <el-form-item label="管道连接核查 : ">
79
             <!--<el-radio-group v-model="form.condition">-->
88
             <!--<el-radio-group v-model="form.condition">-->
85
             >
94
             >
86
             <!--</el-radio-group>-->
95
             <!--</el-radio-group>-->
87
           </el-form-item>
96
           </el-form-item>
88
-          <el-form-item label="差错描述 : " label-width="140px">
97
+          <el-form-item label="差错描述 : " label-width="3.4rem">
89
             <el-input
98
             <el-input
99
+              class="doubleInput"
90
               v-model="doubleReview.pipeline_connection_desc"
100
               v-model="doubleReview.pipeline_connection_desc"
91
             ></el-input>
101
             ></el-input>
92
           </el-form-item>
102
           </el-form-item>
97
           <div class="content">
107
           <div class="content">
98
             <span
108
             <span
99
               class="text"
109
               class="text"
100
-              style="width: 160px"
110
+              style="width: 3.4rem"
101
               @click="selectCheckTimeAction"
111
               @click="selectCheckTimeAction"
102
               >{{ check_time_str }}</span
112
               >{{ check_time_str }}</span
103
             >
113
             >
107
 
117
 
108
         <el-form
118
         <el-form
109
           :inline="true"
119
           :inline="true"
110
-          class="demo-form-inline"
120
+          class="demo-form-inline doubleForm"
111
           :model="doubleReview"
121
           :model="doubleReview"
112
-          label-width="160px"
122
+          label-width="3.4rem"
113
         >
123
         >
114
           <p style="margin: 10px 0 10px 13px;" v-if="doubleReview.creater != 0">
124
           <p style="margin: 10px 0 10px 13px;" v-if="doubleReview.creater != 0">
115
             {{ getFirstCheckDesc() }}
125
             {{ getFirstCheckDesc() }}
542
 }
552
 }
543
 </style>
553
 </style>
544
 <style lang="scss">
554
 <style lang="scss">
545
-.el-radio__inner {
546
-  @media only screen and (min-width: 768px) {
547
-    width: 20px;
548
-    height: 20px;
555
+.doubleForm {
556
+  .el-radio__inner {
557
+    @media only screen and (min-width: 768px) {
558
+      width: 26px;
559
+      height: 26px;
560
+      margin-bottom: 4px;
561
+    }
549
   }
562
   }
550
 }
563
 }
564
+
551
 .el-radio__input {
565
 .el-radio__input {
552
   @media only screen and (min-width: 768px) {
566
   @media only screen and (min-width: 768px) {
553
     margin-top: -6px;
567
     margin-top: -6px;
558
     font-size: 0.45rem;
572
     font-size: 0.45rem;
559
   }
573
   }
560
 }
574
 }
575
+.doubleInput {
576
+  .el-input__inner {
577
+    font-size: 0.45rem;
578
+  }
579
+}
561
 </style>
580
 </style>

+ 11 - 15
src/pages/main/dialog/MonitDialog.vue View File

18
           <div style="width:100%;overflow:hildden;">
18
           <div style="width:100%;overflow:hildden;">
19
             <table class="table" style="">
19
             <table class="table" style="">
20
               <tr @click="selectRow(-1, null)">
20
               <tr @click="selectRow(-1, null)">
21
-                <th v-if="isShow('监测时间')" width="124px">时间</th>
22
-                <th v-if="isShow('血压')" width="72px">血压(mmHg)</th>
23
-                <th v-if="isShow('脉搏')" width="80px">脉搏(次/分)</th>
24
-                <th v-if="isShow('体温')" width="80px">体温(℃)</th>
25
-                <th v-if="isShow('呼吸频率')" width="110px">呼吸频率(次/分)</th>
26
-                <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
21
+                <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>
27
                 <th width="76px">静脉压/动脉压(mmHg)</th>
28
-                <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmHg)</th>
29
-                <th v-if="isShow('超滤量') && template_id ==6" width="76px">超滤量(ml)</th>
30
-                <th v-if="isShow('超滤量') && template_id !=6" width="76px">超滤量(L)</th>
31
-                <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
28
+                <th v-if="isShow('跨膜压')" width="70px">跨膜压(mmHg)</th>
29
+                <th v-if="isShow('超滤量') && template_id ==6" width="60px">超滤量(ml)</th>
30
+                <th v-if="isShow('超滤量') && template_id !=6" width="60px">超滤量(L)</th>
31
+                <th v-if="isShow('钠浓度')" width="82px">钠浓度(mmol/L)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
32
                 <th v-if="isShow('透析液温度')" width="82px">透析液温度(℃)</th>
33
                 <th v-if="isShow('置换率') && template_id ==6" width="92px">置换率(ml/min)</th>
33
                 <th v-if="isShow('置换率') && template_id ==6" width="92px">置换率(ml/min)</th>
34
                 <th v-if="isShow('置换率') && template_id !=6" width="92px">置换率(L/h)</th>
34
                 <th v-if="isShow('置换率') && template_id !=6" width="92px">置换率(L/h)</th>
559
       this.$emit('close')
559
       this.$emit('close')
560
     },
560
     },
561
     setRecords (records) {
561
     setRecords (records) {
562
-      if (records == null) {
563
-        records = []
564
-      }
565
-      this.tableDate.splice(0, this.tableDate.length)
566
-      this.tableDate.push(...records)
562
+        this.monitorRecords = records
567
     },
563
     },
568
     parseTime (time, layout) {
564
     parseTime (time, layout) {
569
       return parseTime(time, layout)
565
       return parseTime(time, layout)

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

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <div class="Dialog" v-show="index==0" style="width: 11.8rem;">
3
     <div class="Dialog" v-show="index==0" style="width: 11.8rem;">
4
-      <div class="DialogTit" @click="$emit('orderDialog')">
5
-        <span class="iconfont">&#xe6e9;</span>
4
+      <div class="DialogTit">
5
+        <span class="iconfont" @click="$emit('orderDialog')">&#xe6e9;</span>
6
         <h1 class="name">临时医嘱</h1>
6
         <h1 class="name">临时医嘱</h1>
7
         <span class="success">&nbsp;</span>
7
         <span class="success">&nbsp;</span>
8
       </div>
8
       </div>
20
           v-if="isShowMofifyExce"
20
           v-if="isShowMofifyExce"
21
           @click="modifyExecAdvice"
21
           @click="modifyExecAdvice"
22
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
22
           :class="{ forbid: (current_advice&& current_advice.parent_id > 0) }"
23
-        >修改</span>
23
+        >执行</span>
24
         <span
24
         <span
25
           v-if="template_id != 6"
25
           v-if="template_id != 6"
26
           @click="checkAdvice"
26
           @click="checkAdvice"
34
         <span
34
         <span
35
           v-if="currentSubAdvices.length <= 0"
35
           v-if="currentSubAdvices.length <= 0"
36
           @click="modifyAdviceAction"
36
           @click="modifyAdviceAction"
37
-          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 }"
37
+          :class="{ forbid: current_group_index < 0 ||  currentAdvices.length != 1 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
38
         >修改</span>
38
         >修改</span>
39
         <span
39
         <span
40
           v-if="currentSubAdvices.length <= 0"
40
           v-if="currentSubAdvices.length <= 0"
41
           @click="deleteAdviceAction"
41
           @click="deleteAdviceAction"
42
-          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0  }"
42
+          :class="{ forbid: current_group_index < 0 || currentAdvices.length <= 0 || (this.$store.getters.user.user.user_type == 3 && !isPremission) }"
43
         >删除</span>
43
         >删除</span>
44
 
44
 
45
-        <span v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46
-        <span v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
45
+        <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="modifySubdviceAction">修改子医嘱</span>
46
+        <span :class="{ forbid:(this.$store.getters.user.user.user_type == 3 && !isPremission) }" v-if="currentSubAdvices.length > 0" @click="deleteSubAdviceAction">删除子医嘱</span>
47
       </div>
47
       </div>
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
48
       <div class="DialogContent choose" id="dialogTop" style="height:6.5rem;">
49
-       
49
+
50
         <div class="content clearfix">
50
         <div class="content clearfix">
51
           <div class="orderTable">
51
           <div class="orderTable">
52
 
52
 
53
             <table class="table">
53
             <table class="table">
54
               <tr @click="cancelAdviceSelect">
54
               <tr @click="cancelAdviceSelect">
55
                 <th width="8%">开嘱医生</th>
55
                 <th width="8%">开嘱医生</th>
56
-                <th width="16%">开始时间</th>
57
-                <th width="44%">医嘱内容</th>
58
-                <th width="16%">执行时间</th>
56
+                <th width="12%">开始时间</th>
57
+                <th width="52%">医嘱内容</th>
58
+                <th width="12%">执行时间</th>
59
                 <th width="8%">执行护士</th>
59
                 <th width="8%">执行护士</th>
60
                 <th v-if="template_id != 6" width="8%">核对人员</th>
60
                 <th v-if="template_id != 6" width="8%">核对人员</th>
61
               </tr>
61
               </tr>
781
         }
781
         }
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
782
         return year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':00'
783
       }, deleteSubAdviceAction: function () {
783
       }, deleteSubAdviceAction: function () {
784
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
785
+          return
786
+        }
784
         if (this.currentSubAdvices.length <= 0) {
787
         if (this.currentSubAdvices.length <= 0) {
785
           return
788
           return
786
         }
789
         }
820
 
823
 
821
       },
824
       },
822
       deleteAdviceAction: function () {
825
       deleteAdviceAction: function () {
826
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
827
+          return
828
+        }
823
         if (this.current_select_object == 1) {
829
         if (this.current_select_object == 1) {
824
           if (this.currentAdvices.length <= 0) {
830
           if (this.currentAdvices.length <= 0) {
825
             return
831
             return
1184
         this.current_advice_index = -1
1190
         this.current_advice_index = -1
1185
         this.current_advice = null
1191
         this.current_advice = null
1186
       }, modifySubdviceAction: function () {
1192
       }, modifySubdviceAction: function () {
1193
+        if (this.$store.getters.user.user.user_type == 3&& !this.isPremission){
1194
+          return
1195
+        }
1187
         if (this.currentSubAdvices.length <= 0) {
1196
         if (this.currentSubAdvices.length <= 0) {
1188
           return
1197
           return
1189
         }
1198
         }
1210
 
1219
 
1211
       },
1220
       },
1212
       modifyAdviceAction: function () {
1221
       modifyAdviceAction: function () {
1222
+        if (this.$store.getters.user.user.user_type == 3 && !this.isPremission){
1223
+          return
1224
+        }
1213
         if (this.current_group_index < 0) {
1225
         if (this.current_group_index < 0) {
1214
           return
1226
           return
1215
         }
1227
         }
1386
 }
1398
 }
1387
 .table {
1399
 .table {
1388
   width: 1200px;
1400
   width: 1200px;
1401
+  @media only screen and (max-width: 767px) {
1402
+      width: 800px;
1403
+    }
1389
   tr {
1404
   tr {
1390
     th {
1405
     th {
1391
       background: $main-color;
1406
       background: $main-color;

+ 186 - 225
src/pages/main/dialog/PrescriptionDialog.vue View File

4
     <div v-if="isShowDialog" class="Dialog">
4
     <div v-if="isShowDialog" class="Dialog">
5
       <div class="DialogTit">
5
       <div class="DialogTit">
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
7
-        <h1 class="name">透析处方</h1>
8
-        <button @click="showmsgtip">{{patient.name}} [透析号 {{patient.dialysis_no}} ]</button>
9
-        <span @click="commitInfo" class="success" v-if="isPermission()">完成</span>
7
+        <h1 class="name newName">透析处方</h1>
8
+        <button class="newButton" @click="showmsgtip">{{patient.name}}</button>
9
+        <span @click="commitInfo" class="success" v-if="isPermission()">保存</span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
10
         <span @click="commitInfo" class="success" v-if="!isPermission()"></span>
11
 
11
 
12
       </div>
12
       </div>
13
 
13
 
14
-      <div class="DialogContent" id="dialogTop">
14
+      <div class="DialogContent newDialogContent" id="dialogTop">
15
+        <div>
15
         <div @click="showSubMenu('mode')" class="item" ref="mode" v-if="isShow('透析模式')">
16
         <div @click="showSubMenu('mode')" class="item" ref="mode" v-if="isShow('透析模式')">
16
           <label class="name" for="txms">透析模式</label>
17
           <label class="name" for="txms">透析模式</label>
17
           <div class="content">
18
           <div class="content">
35
         </div>
36
         </div>
36
 
37
 
37
         <div class="item" v-if="isShow('目标超滤量')">
38
         <div class="item" v-if="isShow('目标超滤量')">
38
-          <!--<label class="name" for="mbcll" v-if="this.$store.getters.user.template_info.template_id == 6">目标超滤量(ml)</label>-->
39
           <label class="name" for="mbcll">目标超滤量(L)</label>
39
           <label class="name" for="mbcll">目标超滤量(L)</label>
40
           <div class="content">
40
           <div class="content">
41
             <input type="tel" @focus="inputFocus" id="mbcll" v-model="dialysisPrescription.target_ultrafiltration"/>
41
             <input type="tel" @focus="inputFocus" id="mbcll" v-model="dialysisPrescription.target_ultrafiltration"/>
60
         </div>
60
         </div>
61
 
61
 
62
         <div class="item" v-if="anticoagulant.shouji != -1&&isShow('首剂')">
62
         <div class="item" v-if="anticoagulant.shouji != -1&&isShow('首剂')">
63
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">首剂(mg)</label>
64
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">首剂(mg)</label>
65
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">首剂(iu)</label>
66
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">首剂(mg)</label>
67
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">首剂(mg)</label>
68
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">首剂(mg)</label>
63
+          <label class="name" for="sj">首剂({{anticoagulant.shouji_unit}})</label>
69
           <div class="content">
64
           <div class="content">
70
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
65
+            <input type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
71
                    :disabled="anticoagulant.shouji==1?false:true"/>
66
                    :disabled="anticoagulant.shouji==1?false:true"/>
72
-
73
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_shouji"
74
-                   disabled="true"/>
75
           </div>
67
           </div>
76
         </div>
68
         </div>
77
         <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
69
         <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
78
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">维持(mg/h)</label>
79
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">维持(mg/h)</label>
80
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">维持(iu)</label>
81
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">维持(mg/h)</label>
82
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">维持(ml/h)</label>
83
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">维持(mg/h)</label>
70
+          <label class="name" for="wz">维持({{anticoagulant.weichi_unit}})</label>
84
           <div class="content">
71
           <div class="content">
85
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="wz" class="inputBox"
72
+            <input type="tel" @focus="inputFocus" id="wz" class="inputBox"
86
                    v-model="dialysisPrescription.anticoagulant_weichi"
73
                    v-model="dialysisPrescription.anticoagulant_weichi"
87
                    :disabled="anticoagulant.weichi==1?false:true">
74
                    :disabled="anticoagulant.weichi==1?false:true">
88
-
89
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_weichi"
90
-                   disabled="true"/>
91
           </div>
75
           </div>
92
         </div>
76
         </div>
93
         <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
77
         <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
94
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 0 ||dialysisPrescription.anticoagulant == -2">总量(mg)</label>
95
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">总量(mg)</label>
78
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">总量(mg)</label>
96
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">总量(iu)</label>
79
+          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">总量(IU)</label>
97
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">总量(mg)</label>
80
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">总量(mg)</label>
98
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">总量(mg)</label>
81
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">总量(mg)</label>
99
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">总量(mg)</label>
82
           <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">总量(mg)</label>
100
 
83
 
101
 
84
 
102
           <div class="content">
85
           <div class="content">
103
-            <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="zl" class="inputBox"
86
+            <input type="tel" @focus="inputFocus" id="zl" class="inputBox"
104
                    v-model="dialysisPrescription.anticoagulant_zongliang"
87
                    v-model="dialysisPrescription.anticoagulant_zongliang"
105
                    :disabled="anticoagulant.zongliang==1?false:true">
88
                    :disabled="anticoagulant.zongliang==1?false:true">
106
-
107
-            <input v-if="dialysisPrescription.anticoagulant == 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.no_anticoagulant_zongliang"
108
-                   disabled="true"/>
109
           </div>
89
           </div>
110
         </div>
90
         </div>
111
 
91
 
112
         <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
92
         <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
113
-          <label class="name" for="g">钙名称</label>
93
+          <label class="name" for="g">钙名称({{anticoagulant.gaimingcheng_unit}})</label>
114
           <div class="content">
94
           <div class="content">
115
             <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
95
             <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
116
                    :disabled="anticoagulant.gaimingcheng==1?false:true">
96
                    :disabled="anticoagulant.gaimingcheng==1?false:true">
118
         </div>
98
         </div>
119
 
99
 
120
         <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
100
         <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
121
-          <label class="name" for="gjl">钙剂量({{anticoagulant.gaimingcheng_unit}})</label>
101
+          <label class="name" for="gjl">钙剂量</label>
122
           <div class="content">
102
           <div class="content">
123
-            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaijiliang"
124
-                   :disabled="anticoagulant.gaijiliang==1?false:true">
103
+            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
104
+                   :disabled="anticoagulant.gaimingcheng==1?false:true">
125
           </div>
105
           </div>
126
         </div>
106
         </div>
127
         <!-- <div class="item">
107
         <!-- <div class="item">
132
         </div> -->
112
         </div> -->
133
 
113
 
134
         <div class="line"></div>
114
         <div class="line"></div>
135
-        <div class="item" v-if="isShow('置换量')" v-show="zhiShow">
115
+        <div class="item" v-if="isShow('置换量')">
136
           <label class="name" for="zhy">置换量(L)</label>
116
           <label class="name" for="zhy">置换量(L)</label>
137
           <div class="content">
117
           <div class="content">
138
             <input type="tel" @focus="inputFocus" id="zhy" v-model="dialysisPrescription.replacement_total"/>
118
             <input type="tel" @focus="inputFocus" id="zhy" v-model="dialysisPrescription.replacement_total"/>
196
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
176
             <input type="tel" @focus="inputFocus" id="dtl" v-model="dialysisPrescription.conductivity"/>
197
           </div>
177
           </div>
198
         </div>
178
         </div>
199
-        <!-- <div @click="showSubMenu('dialyzer_perfusion_apparatus')" class="item" ref="dialyzer_perfusion_apparatus" v-if="isShow('透析器/灌流器') && template_id == 6">
200
-          <label class="name" for="dt1">透析器/灌流器</label>
201
-          <div class="content">
202
-            <span class="text" id="dt">{{dialysisPrescription.dialyzer_perfusion_apparatus}}</span>
203
-            <span class="iconfont">&#xe6f9;</span>
204
-          </div>
205
-        </div> -->
206
-
207
-        <div class="item" v-if="isShow('透析器/灌流器') ">
179
+        <div class="item" v-if="isShow('透析器/灌流器')">
208
           <label class="name" for="dtl">透析器/灌流器</label>
180
           <label class="name" for="dtl">透析器/灌流器</label>
209
           <div class="content">
181
           <div class="content">
210
 
182
 
243
           </div>
215
           </div>
244
         </div>
216
         </div>
245
 
217
 
246
-        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')" v-show="huShow">
247
-          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id == 6">置换方式</label>
248
-          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id != 6">置换液</label>
218
+        <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')">
219
+          <label class="name" for="knj">置换液</label>
249
           <div class="content">
220
           <div class="content">
250
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
221
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
251
             <span class="iconfont">&#xe6f9;</span>
222
             <span class="iconfont">&#xe6f9;</span>
252
           </div>
223
           </div>
253
         </div>
224
         </div>
254
 
225
 
255
-        <div class="item" v-if="isShow('置换液总量')" v-show="totalShow">
226
+        <div class="item" v-if="isShow('置换液总量')">
256
           <label class="name" for="knj">置换液总量(L)</label>
227
           <label class="name" for="knj">置换液总量(L)</label>
257
           <div class="content">
228
           <div class="content">
258
             <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
229
             <input @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
309
           <textarea class="textarea" id="bz" placeholder="请输入内容" v-model="dialysisPrescription.remark"
280
           <textarea class="textarea" id="bz" placeholder="请输入内容" v-model="dialysisPrescription.remark"
310
                     @focus="lastInputFocus" @blur="lastInputBlur"></textarea>
281
                     @focus="lastInputFocus" @blur="lastInputBlur"></textarea>
311
         </div>
282
         </div>
312
-
283
+        </div>
313
         <!--<div class="footer">-->
284
         <!--<div class="footer">-->
314
         <!--处方医生:刘小军 医生-->
285
         <!--处方医生:刘小军 医生-->
315
         <!--</div>-->
286
         <!--</div>-->
316
         <div class="PrescSubmit">
287
         <div class="PrescSubmit">
317
           <button style="display: none" class="tj" @click="sign()">医生签名</button>
288
           <button style="display: none" class="tj" @click="sign()">医生签名</button>
318
           <button class="tjcq" @click="commitSolutionInfo" v-if="isPermission()">保存并设为长期处方</button>
289
           <button class="tjcq" @click="commitSolutionInfo" v-if="isPermission()">保存并设为长期处方</button>
319
-          <button class="tj" @click="commitInfo" v-if="isPermission()">保存</button>
290
+          <button class="tj" style="display:none;" @click="commitInfo" v-if="isPermission()">保存</button>
320
         </div>
291
         </div>
321
       </div>
292
       </div>
322
     </div>
293
     </div>
341
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
312
     <long-advice-sub-menu :visibility="advice_visibility" v-on:menu-cancle-three="menuCancleThree"
342
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
313
                           v-on:menu-comfirm-three="menuComfirmThree" :propsForm="advicePropForm"></long-advice-sub-menu>
343
 
314
 
344
-    <msg-tip style="width:500px;" :visibility="msgtip_visibility" :predialysis="predialysis"
315
+    <msg-tip  :visibility="msgtip_visibility" :predialysis="predialysis"
345
              :last_predialysis="last_predialysis"
316
              :last_predialysis="last_predialysis"
346
              :record="record"
317
              :record="record"
347
              :last_record="last_record"
318
              :last_record="last_record"
348
              :patient_prop="patient"
319
              :patient_prop="patient"
349
-             :dry_weight="dry_weight"
350
              :prescription_prop="prescription_prop"
320
              :prescription_prop="prescription_prop"
351
              v-on:menu-msg-tip="menuMsgTip"></msg-tip>
321
              v-on:menu-msg-tip="menuMsgTip"></msg-tip>
352
 
322
 
357
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
327
   import CheckBoxSubMenu from './subMenu/checkBoxSubMenu'
358
   import MultipleSubMenu from './subMenu/multipleSubMenu'
328
   import MultipleSubMenu from './subMenu/multipleSubMenu'
359
   import {commitDialysisPrescription, CreateGroupAdvice, GetSolution, postSign, postSolution} from '@/api/dialysis'
329
   import {commitDialysisPrescription, CreateGroupAdvice, GetSolution, postSign, postSolution} from '@/api/dialysis'
360
-  import { calculateAnticoagulantZL} from '@/utils/tools'
361
 
330
 
362
   import {Toast} from 'vant'
331
   import {Toast} from 'vant'
363
   import {getDataConfig} from '@/utils/data'
332
   import {getDataConfig} from '@/utils/data'
453
         msgtip_visibility: false,
422
         msgtip_visibility: false,
454
         time: '03:00',
423
         time: '03:00',
455
         timeValue: '',
424
         timeValue: '',
456
-        tempTimeValue:'',
457
         isShowSign: false,
425
         isShowSign: false,
458
         anticoagulantsConfit: {},
426
         anticoagulantsConfit: {},
459
         dialysateFormulationOptions: [],
427
         dialysateFormulationOptions: [],
466
           result: [],
434
           result: [],
467
           operators: [],
435
           operators: [],
468
 
436
 
469
-        },
470
-        is_show: false,
437
+      },
438
+      is_show: false,
471
 
439
 
472
         perfusion_apparatus: {},
440
         perfusion_apparatus: {},
473
         replacementWays: [],
441
         replacementWays: [],
619
         }
587
         }
620
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
588
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
621
 
589
 
622
-        this.dialysisPrescription.dialysis_duration = parseFloat(this.dialysisPrescription.dialysis_duration_hour) + parseFloat((this.dialysisPrescription.dialysis_duration_minute / 60).toFixed(2))
590
+        this.dialysisPrescription.dialysis_duration = this.dialysisPrescription.dialysis_duration_hour + '.' + (this.dialysisPrescription.dialysis_duration_minute)
623
 
591
 
624
       },
592
       },
625
       inputFocus: function (event) {
593
       inputFocus: function (event) {
689
             this.propForm.selectId = this.dialysisPrescription.perfusion_apparatus
657
             this.propForm.selectId = this.dialysisPrescription.perfusion_apparatus
690
             this.propForm.click_ref = 'perfusion_apparatus'
658
             this.propForm.click_ref = 'perfusion_apparatus'
691
 
659
 
692
-            break
693
-          case 'replacement_way':
694
-            this.propForm.type = 4
695
-            this.isShowDialog = false
696
-            this.propForm.title = '置换方式'
697
-            this.visibility = true
698
-            this.propForm.list = []
699
-            this.propForm.optionList = this.replacementWays
700
-            this.propForm.isMultiple = 1
701
-            this.propForm.selectId = this.dialysisPrescription.replacement_way
702
-            this.propForm.click_ref = 'replacement_way'
660
+          break
661
+        case 'replacement_way':
662
+          this.propForm.type = 4
663
+          this.isShowDialog = false
664
+          this.propForm.title = '置换方式'
665
+          this.visibility = true
666
+          this.propForm.list = []
667
+          this.propForm.optionList = this.replacementWays
668
+          this.propForm.isMultiple = 1
669
+          this.propForm.selectId = this.dialysisPrescription.replacement_way
670
+          this.propForm.click_ref = 'replacement_way'
703
 
671
 
704
             break
672
             break
705
 
673
 
706
-          case 'anticoagulant':
707
-            this.propForm.type = 5
708
-            this.isShowDialog = false
709
-            this.propForm.title = '抗疑剂'
710
-            this.visibility = true
711
-            this.propForm.list = []
712
-            this.propForm.optionList = this.anticoagulantsConfit
713
-            this.propForm.isMultiple = 1
714
-            this.propForm.selectId = this.dialysisPrescription.anticoagulant
715
-            this.propForm.click_ref = 'anticoagulant'
716
-            break
717
-          case 'dialysate_formulation':
718
-            this.propForm.type = 6
719
-            this.isShowDialog = false
720
-            this.propForm.title = '透析液配方'
721
-            this.visibility = true
722
-            this.propForm.list = []
723
-            this.propForm.optionList = this.dialysateFormulationOptions
724
-            this.propForm.isMultiple = 1
725
-            this.propForm.selectId = this.dialysisPrescription.dialysate_formulation
726
-            this.propForm.click_ref = 'dialysate_formulation'
727
-            break
728
-          case 'body_fluid':
729
-            this.propForm.type = 7
730
-            this.isShowDialog = false
731
-            this.propForm.title = '体液过多症状'
732
-            this.visibility = true
733
-            this.propForm.list = []
734
-            this.propForm.optionList = this.bodyFluidOptions
735
-            this.propForm.isMultiple = 1
736
-            this.propForm.selectId = this.dialysisPrescription.body_fluid
737
-            this.propForm.click_ref = 'body_fluid'
738
-            break
739
-          case 'special_medicine':
740
-            this.propForm.type = 8
741
-            this.isShowDialog = false
742
-            this.propForm.title = '透析前使用特殊药物'
743
-            this.visibility = true
744
-            this.propForm.list = []
745
-            this.propForm.optionList = this.specialMedicineOptions
746
-            this.propForm.isMultiple = 1
747
-            this.propForm.selectId = this.dialysisPrescription.special_medicine
748
-            this.propForm.click_ref = 'special_medicine'
749
-            break
750
-          case 'displace_liqui_part':
751
-            this.propForm.type = 9
752
-            this.isShowDialog = false
753
-            this.propForm.title = '置换液'
754
-            this.visibility = true
755
-            this.propForm.list = []
756
-            this.propForm.optionList = this.displaceLiquiPartOptions
757
-            this.propForm.isMultiple = 1
758
-            this.propForm.selectId = this.dialysisPrescription.displace_liqui_part
759
-            this.propForm.click_ref = 'displace_liqui_part'
760
-            break
761
-          case 'blood_access':
762
-            this.propForm.type = 10
763
-            this.isShowDialog = false
764
-            this.propForm.title = '血管通路'
765
-            this.visibility = true
766
-            this.propForm.list = []
767
-            this.propForm.optionList = this.bloodAccessOptions
768
-            this.propForm.isMultiple = 1
769
-            this.propForm.selectId = this.dialysisPrescription.blood_access
770
-            this.propForm.click_ref = 'blood_access'
771
-            break
772
-          case 'dialyzer_perfusion_apparatus':
773
-            // this.propForm.type = 11
774
-            // this.isShowDialog = false
775
-            // this.propForm.title = '透析器/灌流器'
776
-            // this.visibility = true
777
-            // this.propForm.list = []
778
-            // this.propForm.optionList = this.bloodAccessOptions
779
-            // this.propForm.isMultiple = 1
780
-            // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
781
-            // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
782
-            // break
783
-
784
-            this.propForm.result = []
785
-            this.isHasOther = 2
786
-            this.propForm.type = 11
787
-            this.isShowDialog = false
788
-            this.propForm.title = '透析器/灌流器'
789
-            this.visibility = true
790
-            this.propForm.list = []
791
-            this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
792
-            this.propForm.optionList = []
793
-            this.propForm.isMultiple = 2
794
-            // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
795
-            if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
796
-              if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
797
-                this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
798
-              } else {
799
-                this.propForm.result = []
800
-              }
674
+        case 'anticoagulant':
675
+          this.propForm.type = 5
676
+          this.isShowDialog = false
677
+          this.propForm.title = '抗疑剂'
678
+          this.visibility = true
679
+          this.propForm.list = []
680
+          this.propForm.optionList = this.anticoagulantsConfit
681
+          this.propForm.isMultiple = 1
682
+          this.propForm.selectId = this.dialysisPrescription.anticoagulant
683
+          this.propForm.click_ref = 'anticoagulant'
684
+          break
685
+        case 'dialysate_formulation':
686
+          this.propForm.type = 6
687
+          this.isShowDialog = false
688
+          this.propForm.title = '透析液配方'
689
+          this.visibility = true
690
+          this.propForm.list = []
691
+          this.propForm.optionList = this.dialysateFormulationOptions
692
+          this.propForm.isMultiple = 1
693
+          this.propForm.selectId = this.dialysisPrescription.dialysate_formulation
694
+          this.propForm.click_ref = 'dialysate_formulation'
695
+          break
696
+        case 'body_fluid':
697
+          this.propForm.type = 7
698
+          this.isShowDialog = false
699
+          this.propForm.title = '体液过多症状'
700
+          this.visibility = true
701
+          this.propForm.list = []
702
+          this.propForm.optionList = this.bodyFluidOptions
703
+          this.propForm.isMultiple = 1
704
+          this.propForm.selectId = this.dialysisPrescription.body_fluid
705
+          this.propForm.click_ref = 'body_fluid'
706
+          break
707
+        case 'special_medicine':
708
+          this.propForm.type = 8
709
+          this.isShowDialog = false
710
+          this.propForm.title = '透析前使用特殊药物'
711
+          this.visibility = true
712
+          this.propForm.list = []
713
+          this.propForm.optionList = this.specialMedicineOptions
714
+          this.propForm.isMultiple = 1
715
+          this.propForm.selectId = this.dialysisPrescription.special_medicine
716
+          this.propForm.click_ref = 'special_medicine'
717
+          break
718
+        case 'displace_liqui_part':
719
+          this.propForm.type = 9
720
+          this.isShowDialog = false
721
+          this.propForm.title = '置换液'
722
+          this.visibility = true
723
+          this.propForm.list = []
724
+          this.propForm.optionList = this.displaceLiquiPartOptions
725
+          this.propForm.isMultiple = 1
726
+          this.propForm.selectId = this.dialysisPrescription.displace_liqui_part
727
+          this.propForm.click_ref = 'displace_liqui_part'
728
+          break
729
+        case 'blood_access':
730
+          this.propForm.type = 10
731
+          this.isShowDialog = false
732
+          this.propForm.title = '血管通路'
733
+          this.visibility = true
734
+          this.propForm.list = []
735
+          this.propForm.optionList = this.bloodAccessOptions
736
+          this.propForm.isMultiple = 1
737
+          this.propForm.selectId = this.dialysisPrescription.blood_access
738
+          this.propForm.click_ref = 'blood_access'
739
+          break
740
+        case 'dialyzer_perfusion_apparatus':
741
+          // this.propForm.type = 11
742
+          // this.isShowDialog = false
743
+          // this.propForm.title = '透析器/灌流器'
744
+          // this.visibility = true
745
+          // this.propForm.list = []
746
+          // this.propForm.optionList = this.bloodAccessOptions
747
+          // this.propForm.isMultiple = 1
748
+          // this.propForm.selectId = this.dialysisPrescription.dialyzer_perfusion_apparatus
749
+          // this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
750
+          // break
751
+
752
+          this.propForm.result = []
753
+          this.isHasOther = 2
754
+          this.propForm.type = 11
755
+          this.isShowDialog = false
756
+          this.propForm.title = '透析器/灌流器'
757
+          this.visibility = true
758
+          this.propForm.list = []
759
+          this.propForm.list = getDataConfig('hemodialysis', 'dialyzer_perfusion_apparatus')
760
+          this.propForm.optionList = []
761
+          this.propForm.isMultiple = 2
762
+          // this.propForm.result = typeof(this.formValue.hemorrhage) == "string"? this.formValue.hemorrhage.split(","):[]
763
+          if (this.dialysisPrescription.dialyzer_perfusion_apparatus != undefined || this.dialysisPrescription.dialyzer_perfusion_apparatus != null) {
764
+            if (this.dialysisPrescription.dialyzer_perfusion_apparatus.length > 0) {
765
+              this.propForm.result = this.dialysisPrescription.dialyzer_perfusion_apparatus.split(',')
801
             } else {
766
             } else {
802
               this.propForm.result = []
767
               this.propForm.result = []
803
             }
768
             }
804
-            this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
805
-            break
806
-        }
807
-      },
808
-      menuCancle: function () {
809
-        this.visibility = false
810
-        this.isShowDialog = true
811
-        this.$nextTick(() => {
812
-          if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
813
-            this.$refs[this.propForm.click_ref].scrollIntoView()
769
+          } else {
770
+            this.propForm.result = []
814
           }
771
           }
815
-        })
816
-      },
817
-      menuCancleThree: function () {
818
-        this.advice_visibility = false
819
-        this.isShowDialog = true
820
-      },
821
-      menuMsgTip: function () {
822
-        this.msgtip_visibility = false
823
-        this.isShowDialog = true
824
-      },
772
+          this.propForm.click_ref = 'dialyzer_perfusion_apparatus'
773
+          break
774
+      }
775
+    },
776
+    menuCancle: function () {
777
+      this.visibility = false
778
+      this.isShowDialog = true
779
+      this.$nextTick(() => {
780
+        if (this.$refs[this.propForm.click_ref] != undefined && this.$refs[this.propForm.click_ref] != null) {
781
+          this.$refs[this.propForm.click_ref].scrollIntoView()
782
+        }
783
+      })
784
+    },
785
+    menuCancleThree: function () {
786
+      this.advice_visibility = false
787
+      this.isShowDialog = true
788
+    },
789
+    menuMsgTip: function () {
790
+      this.msgtip_visibility = false
791
+      this.isShowDialog = true
792
+    },
825
 
793
 
826
       menuComfirmThree: function (targetAdvices) {
794
       menuComfirmThree: function (targetAdvices) {
827
 
795
 
1024
                 }
992
                 }
1025
               }
993
               }
1026
 
994
 
995
+              console.log(this.dialysisPrescription.dialysis_duration_hour)
996
+              console.log(this.dialysisPrescription.dialysis_duration_minute)
997
+              console.log(this.dialysisPrescription.dialysis_duration_hour == '')
998
+              console.log(this.dialysisPrescription.dialysis_duration_minute == 0)
1027
 
999
 
1028
 
1000
 
1029
 
1001
 
1969
 
1941
 
1970
       }
1942
       }
1971
 
1943
 
1972
-
1973
-
1974
-
1975
-
1976
       if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
1944
       if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
1977
         this.timeValue = ''
1945
         this.timeValue = ''
1978
         this.time = '03:00'
1946
         this.time = '03:00'
2021
       this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
1989
       this.dialysisPrescription.ultrafiltration = this.getFloat(this.dialysisPrescription.ultrafiltration)
2022
       this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
1990
       this.dialysisPrescription.target_ultrafiltration = this.getFloat(this.dialysisPrescription.target_ultrafiltration)
2023
 
1991
 
2024
-      if(this.dialysisPrescription.anticoagulant_shouji == ''){
2025
-        this.dialysisPrescription.anticoagulant_shouji = '0'
2026
-      }
2027
-
2028
-      if(this.dialysisPrescription.anticoagulant_weichi == ''){
2029
-        this.dialysisPrescription.anticoagulant_weichi = '0'
2030
-      }
2031
-
2032
-      if(this.dialysisPrescription.anticoagulant_zongliang == ''){
2033
-        this.dialysisPrescription.anticoagulant_weichi = '0'
2034
-      }
2035
-
2036
-
2037
     },
1992
     },
2038
 
1993
 
2039
     components: {
1994
     components: {
2044
       CheckBoxSubMenu
1999
       CheckBoxSubMenu
2045
     },
2000
     },
2046
     watch: {
2001
     watch: {
2047
-      "dialysisPrescription.dialysis_duration":function(){
2048
-        console.log(this.dialysisPrescription.dialysis_duration)
2049
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2050
-          this.dialysisPrescription.anticoagulant_shouji,
2051
-          this.dialysisPrescription.dialysis_duration,
2052
-          this.dialysisPrescription.anticoagulant_weichi
2053
-        );
2054
-        if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2055
-          this.dialysisPrescription.anticoagulant_zongliang = ''
2002
+      'dialysisPrescription.anticoagulant_shouji': function (val) {
2003
+        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2004
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2005
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2006
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2007
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2008
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2009
+        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2010
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2056
         }
2011
         }
2057
-      },
2058
-      "dialysisPrescription.anticoagulant_shouji":function(){
2059
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2060
-          this.dialysisPrescription.anticoagulant_shouji,
2061
-          this.dialysisPrescription.dialysis_duration,
2062
-          this.dialysisPrescription.anticoagulant_weichi
2063
-        );
2064
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2012
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2065
           this.dialysisPrescription.anticoagulant_zongliang = ''
2013
           this.dialysisPrescription.anticoagulant_zongliang = ''
2066
         }
2014
         }
2067
-      },
2068
-      "dialysisPrescription.anticoagulant_weichi":function(){
2069
-        this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2070
-          this.dialysisPrescription.anticoagulant_shouji,
2071
-          this.dialysisPrescription.dialysis_duration,
2072
-          this.dialysisPrescription.anticoagulant_weichi
2073
-        );
2015
+
2016
+
2017
+      }, 'dialysisPrescription.anticoagulant_weichi': function (val) {
2018
+        console.log(this.dialysisPrescription.anticoagulant_shouji)
2019
+        console.log(this.dialysisPrescription.anticoagulant_weichi)
2020
+        if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_weichi == '') {
2021
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(0)
2022
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_weichi != '') {
2023
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
2024
+        } else if (this.dialysisPrescription.anticoagulant_shouji != '' && this.dialysisPrescription.anticoagulant_shouji == '') {
2025
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(0)
2026
+        } else if (this.dialysisPrescription.anticoagulant_shouji == '' && this.dialysisPrescription.anticoagulant_shouji != '') {
2027
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(0) + parseInt(this.dialysisPrescription.anticoagulant_shouji)
2028
+        }
2029
+
2074
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2030
         if(isNaN(this.dialysisPrescription.anticoagulant_zongliang)){
2075
           this.dialysisPrescription.anticoagulant_zongliang = ''
2031
           this.dialysisPrescription.anticoagulant_zongliang = ''
2032
+
2076
         }
2033
         }
2077
       },
2034
       },
2035
+
2078
       isShowDialog (val) {
2036
       isShowDialog (val) {
2079
         if (val) {
2037
         if (val) {
2080
           this.advice_visibility = false
2038
           this.advice_visibility = false
2083
     }
2041
     }
2084
   }
2042
   }
2085
 </script>
2043
 </script>
2044
+
2045
+
2086
 <style style="stylesheet/scss" lang="scss" scoped>
2046
 <style style="stylesheet/scss" lang="scss" scoped>
2087
   .DialogContent {
2047
   .DialogContent {
2088
   // padding-bottom:2rem !important;
2048
   // padding-bottom:2rem !important;
2099
   }
2059
   }
2100
   }
2060
   }
2101
   .newButton{
2061
   .newButton{
2062
+    
2102
     background: #258ffc;
2063
     background: #258ffc;
2103
     padding: 0 0.2rem;
2064
     padding: 0 0.2rem;
2104
     height: 0.85rem;
2065
     height: 0.85rem;
2105
     line-height: 0.85rem;
2066
     line-height: 0.85rem;
2106
-    border-radius:5px;
2067
+    border-radius:5px; 
2107
     color: #fff;
2068
     color: #fff;
2108
     margin-right: -3.5rem;
2069
     margin-right: -3.5rem;
2109
   }
2070
   }

+ 1 - 1
src/pages/main/dialog/new_order/AddNewOrders.vue View File

602
   }
602
   }
603
 }
603
 }
604
 .newSpan {
604
 .newSpan {
605
-  padding: 0 0.4rem;
605
+  padding: 0 0.3rem;
606
 }
606
 }
607
 </style>
607
 </style>
608
 <style lang="scss">
608
 <style lang="scss">

+ 5 - 18
src/pages/main/dialog/subMenu/MsgTip.vue View File

28
       <div class="item">
28
       <div class="item">
29
         <label class="name" for="txms">干体重(kg)</label>
29
         <label class="name" for="txms">干体重(kg)</label>
30
         <div class="content">
30
         <div class="content">
31
-          <span class="text" id="txms">{{ dry }}</span>
31
+          <span class="text" id="txms">{{ last_predialysis.dry_weight }}</span>
32
         </div>
32
         </div>
33
       </div>
33
       </div>
34
       <div class="item">
34
       <div class="item">
73
 import { parseTime } from "@/utils";
73
 import { parseTime } from "@/utils";
74
 
74
 
75
 export default {
75
 export default {
76
-  name: "MsgTip",
76
+  name: "LongAdviceSubMenu",
77
   created() {
77
   created() {
78
     if (
78
     if (
79
-      this.predialysis &&
80
       this.predialysis.weight_before > 0 &&
79
       this.predialysis.weight_before > 0 &&
81
       this.predialysis.weight_after_last_transparency > 0
80
       this.predialysis.weight_after_last_transparency > 0
82
     ) {
81
     ) {
83
-      this.add_weight = parseFloat(
84
-        this.predialysis.weight_before -
85
-          this.predialysis.weight_after_last_transparency
82
+      add_weight = parseFloat(
83
+        this.predialysis.weight_before - this.predialysis.weight_after_last_transparency
86
       ).toFixed(2);
84
       ).toFixed(2);
87
     }
85
     }
88
-
89
-    console.log(this.dry_weight);
90
-    if (this.dry_weight != null) {
91
-      this.dry = this.dry_weight.dry_weight;
92
-    } else {
93
-      this.dry = this.last_predialysis.dry_weight;
94
-    }
95
   },
86
   },
96
   data() {
87
   data() {
97
     return {
88
     return {
98
       result: [],
89
       result: [],
99
       id: 0,
90
       id: 0,
100
       selectName: "",
91
       selectName: "",
101
-      add_weight: 0,
102
-      dry: 0
92
+      add_weight: 0
103
     };
93
     };
104
   },
94
   },
105
   props: {
95
   props: {
124
     },
114
     },
125
     prescription_prop: {
115
     prescription_prop: {
126
       type: Object
116
       type: Object
127
-    },
128
-    dry_weight: {
129
-      type: Object
130
     }
117
     }
131
   },
118
   },
132
   computed: {
119
   computed: {

+ 2 - 3
src/pages/main/dialog/subMenu/multipleSubMenu.vue View File

214
       :show="is_show"
214
       :show="is_show"
215
       v-on:menu-cancle="menuCancle"
215
       v-on:menu-cancle="menuCancle"
216
       v-on:menu-comfirm="menuComfirm"
216
       v-on:menu-comfirm="menuComfirm"
217
-      v-on:menu-empty="menuEmpty"
218
-      :propsForm="propForm"
217
+       :propsForm="propForm"
219
     ></new-check-box-sub-menu>
218
     ></new-check-box-sub-menu>
220
   </div>
219
   </div>
221
 </template>
220
 </template>
609
 
608
 
610
 <style style="stylesheet/scss" scoped>
609
 <style style="stylesheet/scss" scoped>
611
 .DialogContent {
610
 .DialogContent {
612
-  // padding-bottom:2rem !important;
611
+  /* padding-bottom:2rem !important; */
613
 
612
 
614
   .textarea {
613
   .textarea {
615
     width: 100%;
614
     width: 100%;

+ 3 - 12
src/pages/main/today/TodayTab.vue View File

182
     </van-popup>
182
     </van-popup>
183
 
183
 
184
     <van-popup
184
     <van-popup
185
-      title="双人对"
185
+      title="双人对"
186
       v-model="menuList[5].showPopup"
186
       v-model="menuList[5].showPopup"
187
       :overlay="true"
187
       :overlay="true"
188
       :close-on-click-overlay="false"
188
       :close-on-click-overlay="false"
427
           steps[1].value = 1
427
           steps[1].value = 1
428
         }
428
         }
429
 
429
 
430
-        if (typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.evaluator > 0) {
430
+        if (typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0) {
431
           steps[2].value = 1
431
           steps[2].value = 1
432
         }
432
         }
433
 
433
 
496
 
496
 
497
     didAddMonitor (monitor) {
497
     didAddMonitor (monitor) {
498
       this.monitor_records.push(monitor)
498
       this.monitor_records.push(monitor)
499
-
500
       this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
499
       this.monitor_records.sort((a, b) => b.operate_time - a.operate_time)
501
-
502
-      // for (let index = 0; index < this.monitor_records.length; index++) {
503
-      //   const record = this.monitor_records[index];
504
-      //   if (record.operate_time <= monitor.operate_time) {
505
-      //     this.monitor_records.splice(index, 0, monitor)
506
-      //     break
507
-      //   }
508
-      // }
509
       this.monitor_records.reverse()
500
       this.monitor_records.reverse()
501
+      this.$refs.monit_dialog.setRecords(this.monitor_records)
510
       this.last_monitor_record = monitor
502
       this.last_monitor_record = monitor
511
-      // this.$refs.plane_dialog.set_last_monitor_record(monitor)
512
     },
503
     },
513
 
504
 
514
     didEditMonitor (monitor) {
505
     didEditMonitor (monitor) {

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

91
         { title: "透前评估" },
91
         { title: "透前评估" },
92
         { title: "临时医嘱" },
92
         { title: "临时医嘱" },
93
         { title: "透析上机" },
93
         { title: "透析上机" },
94
-        { title: "双人对" },
94
+        { title: "双人对" },
95
         { title: "透析监测" },
95
         { title: "透析监测" },
96
         { title: "透析下机" },
96
         { title: "透析下机" },
97
         { title: "透后评估" },
97
         { title: "透后评估" },

+ 13 - 9
src/pages/personal/index.vue View File

72
         <img class="bannerOne" src="../../assets/my/myBanner.png" alt />
72
         <img class="bannerOne" src="../../assets/my/myBanner.png" alt />
73
         <div class="avatar">
73
         <div class="avatar">
74
           <img src="../../assets/my/avatar.png" alt />
74
           <img src="../../assets/my/avatar.png" alt />
75
-          <p>{{user_name}}</p>
75
+          <p>{{ user_name }}</p>
76
         </div>
76
         </div>
77
       </div>
77
       </div>
78
       <div class="list">
78
       <div class="list">
85
             <span class="iconfont jiantou">&#xe6f9;</span>
85
             <span class="iconfont jiantou">&#xe6f9;</span>
86
           </div>
86
           </div>
87
         </router-link>
87
         </router-link>
88
-        <router-link to="/ChangePassword">
89
-          <div class="name">
90
-            <div class="left">
91
-              <img src="../../assets/my/modification.png" alt />
92
-              <span>修改密码</span>
93
-            </div>
94
-            <span class="iconfont jiantou">&#xe6f9;</span>
88
+        <!-- <router-link to="/ChangePassword"> -->
89
+        <div class="name" @click="okk">
90
+          <div class="left">
91
+            <img src="../../assets/my/modification.png" alt />
92
+            <span>修改密码</span>
95
           </div>
93
           </div>
96
-        </router-link>
94
+          <span class="iconfont jiantou">&#xe6f9;</span>
95
+        </div>
96
+        <!-- </router-link> -->
97
         <div class="name" @click="logout">
97
         <div class="name" @click="logout">
98
           <div class="left">
98
           <div class="left">
99
             <img src="../../assets/my/exit.png" alt />
99
             <img src="../../assets/my/exit.png" alt />
111
 import SideBar from "@/pages/layout/SideBar";
111
 import SideBar from "@/pages/layout/SideBar";
112
 import EditPersonal from "./EditPersonal";
112
 import EditPersonal from "./EditPersonal";
113
 import { GetMyInfo } from "@/api/admin_user";
113
 import { GetMyInfo } from "@/api/admin_user";
114
+import { Toast } from "vant";
114
 
115
 
115
 export default {
116
 export default {
116
   name: "PersonalIndex",
117
   name: "PersonalIndex",
150
     logout: function() {
151
     logout: function() {
151
       // TODO 请求退出登录接口
152
       // TODO 请求退出登录接口
152
       this.$router.push("/");
153
       this.$router.push("/");
154
+    },
155
+    okk() {
156
+      Toast.success("程序员还在开发中");
153
     }
157
     }
154
   }
158
   }
155
 };
159
 };

+ 1 - 1
src/pages/waitingRoom/components/details.vue View File

80
         ></dialysis-computer>
80
         ></dialysis-computer>
81
         <double-check
81
         <double-check
82
           ref="double_check"
82
           ref="double_check"
83
-          title="双人对 "
83
+          title="双人对 "
84
           :record="double_check"
84
           :record="double_check"
85
         ></double-check>
85
         ></double-check>
86
         <dialysis-monitoring
86
         <dialysis-monitoring

+ 1 - 1
src/pages/waitingRoom/components/dialog/doubleCheck.vue View File

113
         pipeline_connection_desc: "",
113
         pipeline_connection_desc: "",
114
         collator: ""
114
         collator: ""
115
       },
115
       },
116
-      title: "双人对 ",
116
+      title: "双人对 ",
117
       patient: {
117
       patient: {
118
         id: 0
118
         id: 0
119
       },
119
       },

+ 1 - 1
src/styles/style.scss View File

542
       button {
542
       button {
543
         padding: 0 0.32rem;
543
         padding: 0 0.32rem;
544
         border: $main-color;
544
         border: $main-color;
545
-        font-size: 0.36rem;
545
+        font-size: 0.45rem;
546
         text-align: center;
546
         text-align: center;
547
         height: 1rem;
547
         height: 1rem;
548
         line-height: 0.7rem;
548
         line-height: 0.7rem;