Browse Source

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

See999 5 years ago
parent
commit
7e9a2e9109

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

@@ -265,7 +265,6 @@ export default {
265 265
           return false;
266 266
         } else {
267 267
           Toast.success("修改成功");
268
-          this.$emit('did_add_monitor', monitor)
269 268
           this.$emit("did_start", response.data.data.dialysis_order);
270 269
           var record = this.record;
271 270
           for (const key in response.data.data.dialysis_order) {
@@ -312,7 +311,7 @@ export default {
312 311
         } else {
313 312
           Toast.success("上机成功");
314 313
           var monitor = response.data.data.monitor;
315
-          // this.$emit('did_add_monitor', monitor)
314
+          this.$emit('did_add_monitor', monitor)
316 315
           this.$emit("did_start", response.data.data.dialysis_order);
317 316
           var record = this.record;
318 317
           for (const key in response.data.data.dialysis_order) {

+ 58 - 37
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -59,51 +59,71 @@
59 59
           </div>
60 60
         </div>
61 61
 
62
-        <div class="item" v-if="anticoagulant.shouji != -1&&isShow('首剂')">
63
-          <label class="name" for="sj">首剂({{anticoagulant.shouji_unit}})</label>
64
-          <div class="content">
65
-            <input type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
66
-                   :disabled="anticoagulant.shouji==1?false:true"/>
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>
69
+            <div class="content">
70
+              <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="sj" v-model="dialysisPrescription.anticoagulant_shouji"
71
+                     :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 76
           </div>
68
-        </div>
69
-        <div class="item" v-if="anticoagulant.weichi != -1&&isShow('维持')">
70
-          <label class="name" for="wz">维持({{anticoagulant.weichi_unit}})</label>
71
-          <div class="content">
72
-            <input type="tel" @focus="inputFocus" id="wz" class="inputBox"
73
-                   v-model="dialysisPrescription.anticoagulant_weichi"
74
-                   :disabled="anticoagulant.weichi==1?false:true">
77
+          <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>
84
+            <div class="content">
85
+              <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="wz" class="inputBox"
86
+                     v-model="dialysisPrescription.anticoagulant_weichi"
87
+                     :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 92
           </div>
76
-        </div>
77
-        <div class="item" v-if="anticoagulant.zongliang != -1 && isShow('总量')">
78
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 2">总量(mg)</label>
79
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 3">总量(IU)</label>
80
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 4">总量(mg)</label>
81
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 5">总量(mg)</label>
82
-          <label class="name" for="zl" v-if="dialysisPrescription.anticoagulant == 1">总量(mg)</label>
93
+          <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>
96
+            <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>
98
+            <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>
83 100
 
84 101
 
85
-          <div class="content">
86
-            <input type="tel" @focus="inputFocus" id="zl" class="inputBox"
87
-                   v-model="dialysisPrescription.anticoagulant_zongliang"
88
-                   :disabled="anticoagulant.zongliang==1?false:true">
102
+            <div class="content">
103
+              <input v-if="dialysisPrescription.anticoagulant != 1" type="tel" @focus="inputFocus" id="zl" class="inputBox"
104
+                     v-model="dialysisPrescription.anticoagulant_zongliang"
105
+                     :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 110
           </div>
90
-        </div>
91 111
 
92
-        <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
93
-          <label class="name" for="g">钙名称({{anticoagulant.gaimingcheng_unit}})</label>
94
-          <div class="content">
95
-            <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
96
-                   :disabled="anticoagulant.gaimingcheng==1?false:true">
112
+          <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
113
+            <label class="name" for="g">钙名称</label>
114
+            <div class="content">
115
+              <input type="text" id="g" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
116
+                     :disabled="anticoagulant.gaimingcheng==1?false:true">
117
+            </div>
97 118
           </div>
98
-        </div>
99 119
 
100
-        <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
101
-          <label class="name" for="gjl">钙剂量</label>
102
-          <div class="content">
103
-            <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaimingcheng"
104
-                   :disabled="anticoagulant.gaimingcheng==1?false:true">
120
+          <div class="item" v-if="anticoagulant.gaijiliang != -1 && isShow('钙剂量')">
121
+            <label class="name" for="gjl">钙剂量({{anticoagulant.gaimingcheng_unit}})</label>
122
+            <div class="content">
123
+              <input type="text" id="gjl" class="inputBox" v-model="dialysisPrescription.anticoagulant_gaijiliang"
124
+                     :disabled="anticoagulant.gaijiliang==1?false:true">
125
+            </div>
105 126
           </div>
106
-        </div>
107 127
         <!-- <div class="item">
108 128
           <label class="name" for="gtz">干体重(kg)</label>
109 129
           <div class="content">
@@ -1049,7 +1069,7 @@
1049 1069
       GetModeByModeId: function (val) {
1050 1070
         let treatment_mode_name = ''
1051 1071
         let treatment_mode = this.modeOption
1052
-        
1072
+
1053 1073
         for (let keys in treatment_mode) {
1054 1074
           if (treatment_mode[keys].id == val) {
1055 1075
             treatment_mode_name = treatment_mode[keys].name
@@ -1066,6 +1086,7 @@
1066 1086
               this.zhiShow = true
1067 1087
               this.totalShow = true
1068 1088
               this.huShow = true
1089
+
1069 1090
             }
1070 1091
           }
1071 1092
         }