Browse Source

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

csx 4 years ago
parent
commit
848169a6a0

+ 0 - 21
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -2116,10 +2116,7 @@
2116 2116
     },
2117 2117
     created () {
2118 2118
       this.template_id = this.$store.getters.user.template_info.template_id
2119
-      if (this.$store.getters.user.user.user_type == 2) {
2120
-        this.isShowSign = true
2121 2119
 
2122
-      }
2123 2120
       this.modeOption = this.$store.getters.treatment_mode
2124 2121
       delete this.modeOption['0']
2125 2122
 
@@ -2157,10 +2154,6 @@
2157 2154
 
2158 2155
       }
2159 2156
 
2160
-
2161
-
2162
-
2163
-
2164 2157
       if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
2165 2158
         this.timeValue = ''
2166 2159
         this.time = '03:00'
@@ -2189,20 +2182,6 @@
2189 2182
         y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
2190 2183
       // this.patient.id = this.patient_prop.id
2191 2184
 
2192
-      if (this.dialysisPrescription.prescription_doctor == '') {
2193
-        this.isShowDesc = true
2194
-        this.isShowDoctorSign = false
2195
-      } else {
2196
-        this.isShowDesc = false
2197
-        this.isShowDoctorSign = true
2198
-
2199
-        for (let i = 0; i < this.operators.length; i++) {
2200
-          if (this.operators[i].creator == this.dialysisPrescription.prescription_doctor) {
2201
-            this.signUrl = this.operators[i].url
2202
-          }
2203
-        }
2204
-
2205
-      }
2206 2185
       this.dialysisPrescription.kalium = this.getFloat(this.dialysisPrescription.kalium)
2207 2186
       this.dialysisPrescription.sodium = this.getFloat(this.dialysisPrescription.sodium)
2208 2187
       this.dialysisPrescription.calcium = this.getFloat(this.dialysisPrescription.calcium)

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

@@ -212,6 +212,18 @@
212 212
           <span class="content">{{ skin_other }}</span>
213 213
           <span class="unit"> </span>
214 214
         </li>
215
+
216
+        <li  v-if="isShow('血管通路部位')">
217
+          <label>血管通路部位:</label>
218
+          <span class="content">{{ getBloodAccessPart(this.record.blood_access_part_id) }}</span>
219
+          <span class="unit"> </span>
220
+        </li>
221
+
222
+        <li  v-if="isShow('血管通路操作')">
223
+          <label>血管通路操作:</label>
224
+          <span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
225
+          <span class="unit"> </span>
226
+        </li>
215 227
       </ul>
216 228
     </div>
217 229
     <div class="note">
@@ -221,8 +233,11 @@
221 233
 </template>
222 234
 
223 235
 <script>
224
-export default {
236
+  import { getDataConfig } from "@/utils/data";
237
+
238
+  export default {
225 239
   name: "assessmentBefore",
240
+
226 241
   data() {
227 242
     return {
228 243
       title: "透前评估 ",
@@ -434,6 +449,26 @@ export default {
434 449
     }
435 450
   },
436 451
   methods: {
452
+    getBloodAccessPart: function(id) {
453
+      var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
454
+      var BloodAccessPartName = ''
455
+      for (let i = 0; i < BloodAccessPart.length; i++) {
456
+        if (BloodAccessPart[i].id == id) {
457
+          BloodAccessPartName = BloodAccessPart[i].name
458
+        }
459
+      }
460
+      return BloodAccessPartName
461
+    },
462
+    getBloodAccessOpera: function(id) {
463
+      var BloodAccessOpera =  getDataConfig('hemodialysis', 'vascular_access_desc')
464
+      var BloodAccessOperaName = ''
465
+      for (let i = 0; i < BloodAccessOpera.length; i++) {
466
+        if (BloodAccessOpera[i].id == id) {
467
+          BloodAccessOperaName = BloodAccessOpera[i].name
468
+        }
469
+      }
470
+      return BloodAccessOperaName
471
+    },
437 472
     isShow(name) {
438 473
       var filedList = this.$store.getters.user.fileds;
439 474