Browse Source

修改处方字段

csx 5 years ago
parent
commit
a5de59009e
1 changed files with 46 additions and 26 deletions
  1. 46 26
      src/pages/main/dialog/PrescriptionDialog.vue

+ 46 - 26
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -59,35 +59,55 @@
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 112
         <div class="item" v-if="anticoagulant.gaimingcheng != -1 && isShow('钙名称')">
93 113
           <label class="name" for="g">钙名称({{anticoagulant.gaimingcheng_unit}})</label>
@@ -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,7 +1086,7 @@
1066 1086
               this.zhiShow = true
1067 1087
               this.totalShow = true
1068 1088
               this.huShow = true
1069
-             
1089
+
1070 1090
             }
1071 1091
           }
1072 1092
         }