Kaynağa Gözat

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

xiaoming_global 5 yıl önce
ebeveyn
işleme
771e1dab2e

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order.vue Dosyayı Görüntüle

@@ -307,7 +307,7 @@
307 307
                       <check-box text="HF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 5)"></check-box>
308 308
                       <check-box text="HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 4)"></check-box>
309 309
                       <check-box text="HD+HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 3)"></check-box>
310
-                      <check-box text="SCUF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 6)"></check-box>
310
+                      <!-- <check-box text="SCUF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 6)"></check-box>
311 311
                       <check-box text="IUF" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 7)"></check-box>
312 312
                       <check-box text="HFHD" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 8)"></check-box>
313 313
                       <check-box text="HFHD+HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 9)"></check-box>
@@ -319,7 +319,7 @@
319 319
                       <check-box text="HD前置换" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 15)"></check-box>
320 320
                       <check-box text="HD后置换" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 16)"></check-box>
321 321
                       <check-box text="HDF前置换" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 17)"></check-box>
322
-                      <check-box text="HDF后置换" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 18)"></check-box>
322
+                      <check-box text="HDF后置换" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 18)"></check-box> -->
323 323
                       其他
324 324
                       <div class="under_line" style="width: 100px;">
325 325
                         {{record.prescription&&record.prescription.mode_id>5?modeName(record.prescription.mode_id):''}}

+ 1 - 0
src/xt_pages/dialysis/details/BasicInfor.vue Dosyayı Görüntüle

@@ -50,6 +50,7 @@
50 50
 <script>
51 51
 const moment = require('moment')
52 52
 import { parseTime } from '@/utils'
53
+import { jsGetAge, uParseTime } from '@/utils/tools'
53 54
 
54 55
 export default {
55 56
   name: 'BasicInfor',

+ 10 - 9
src/xt_pages/dialysis/details/DialysisPrescription.vue Dosyayı Görüntüle

@@ -172,11 +172,11 @@
172 172
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') != 1">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
173 173
           <span class="content" v-if="getValueStr('anticoagulant','anticoagulant') == 1"></span>
174 174
 
175
-          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_weichi != '0'?"iu":""}}</span>
176
-          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_weichi != '0'?"iu":""}}</span>
177
-          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_weichi != '0'?"mg":""}}</span>
178
-          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_weichi != '0'?"mg":""}}</span>
179
-          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml":""}}</span>
175
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 2">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
176
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 3">{{anticoagulant_weichi != '0'?"iu/h":""}}</span>
177
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 1">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
178
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 4">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
179
+          <span class="unit" v-if="getValueStr('anticoagulant','anticoagulant') == 5">{{anticoagulant_weichi != '0'?"ml/h":""}}</span>
180 180
         </li>
181 181
 
182 182
         <li v-if="isShow('钙')">
@@ -220,7 +220,6 @@
220 220
         </li>
221 221
       </ul>
222 222
     </div>
223
-    <div class="note">备注 : <span>{{note}}</span></div>
224 223
   </div>
225 224
 </template>
226 225
 
@@ -235,6 +234,8 @@
235 234
         title: "透析处方",
236 235
         perfusion_apparatus_map: {},
237 236
         dialysateFormulationMap:{},
237
+        blood_access_part:[],
238
+        blood_access_part_opera:[],
238 239
       };
239 240
     },
240 241
     props: {
@@ -380,9 +381,6 @@
380 381
       },
381 382
       dialyzer_perfusion_apparatus: function() {
382 383
         return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
383
-      },
384
-      note: function() {
385
-        return this.getValueStr("remark", "remark")
386 384
       },body_fluid:function () {
387 385
         var id =  this.getValueStr("body_fluid", "body_fluid")
388 386
         if(id == 0){
@@ -451,6 +449,8 @@
451 449
       this.perfusion_apparatus_map = map
452 450
 
453 451
       var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
452
+
453
+
454 454
       for(var index in dialysateFormulationOptions){
455 455
         this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
456 456
       }
@@ -468,6 +468,7 @@
468 468
           if (this.solution[skey] == null || this.solution[skey] == undefined) {
469 469
             return ""
470 470
           }
471
+
471 472
           return this.solution[skey] + ""
472 473
         }
473 474
       },isShow(name){

+ 1 - 0
src/xt_pages/dialysis/details/NavIgation.vue Dosyayı Görüntüle

@@ -67,6 +67,7 @@
67 67
                                   :admin_users="admin_users" :targetAdvices="longAdvices"
68 68
                                   :waitUploadAdvices="waitUploadAdvices" :is_open="is_open"
69 69
 
70
+
70 71
                                   :predialysis="predialysis_evaluation"
71 72
                                   :last_predialysis="last_predialysis_evaluation"
72 73
                                   :record="assessment_after_dislysis"

+ 36 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue Dosyayı Görüntüle

@@ -96,7 +96,7 @@
96 96
           <label>血管杂音 : </label>
97 97
           <span class="content">{{getBloodAccessNoise(this.record.blood_access_noise)}}</span>
98 98
         </li>
99
-     
99
+
100 100
         <li v-if="isShow('穿刺针')">
101 101
           <label>穿刺针 : </label>
102 102
           <span class="content">{{this.record.puncture_needle}}</span>
@@ -164,6 +164,19 @@
164 164
           <span class="content">{{ skin_other }}</span>
165 165
           <span class="unit"> </span>
166 166
         </li>
167
+
168
+        <li  v-if="isShow('血管通路部位')">
169
+          <label>血管通路部位:</label>
170
+          <span class="content">{{ getBloodAccessPart(this.record.blood_access_part_id) }}</span>
171
+          <span class="unit"> </span>
172
+        </li>
173
+
174
+        <li  v-if="isShow('血管通路操作')">
175
+          <label>血管通路操作:</label>
176
+          <span class="content">{{ getBloodAccessOpera(this.record.blood_access_part_opera_id) }}</span>
177
+          <span class="unit"> </span>
178
+        </li>
179
+
167 180
       </ul>
168 181
     </div>
169 182
     <div class="note">备注 : <span>{{ remark }}</span></div>
@@ -174,6 +187,7 @@
174 187
 
175 188
 <script>
176 189
   import store from '@/store'
190
+  import {getDataConfig} from '@/utils/data';
177 191
 
178 192
 export default {
179 193
   name: 'assessmentBefore',
@@ -360,6 +374,27 @@ export default {
360 374
       }
361 375
   },
362 376
   methods: {
377
+    getBloodAccessPart: function(id) {
378
+      var BloodAccessPart = getDataConfig('hemodialysis', 'vascular_access')
379
+      var BloodAccessPartName = ''
380
+      for (let i = 0; i < BloodAccessPart.length; i++) {
381
+        if (BloodAccessPart[i].id == id) {
382
+          BloodAccessPartName = BloodAccessPart[i].name
383
+        }
384
+      }
385
+      return BloodAccessPartName
386
+    },
387
+    getBloodAccessOpera: function(id) {
388
+      var BloodAccessOpera =  getDataConfig('hemodialysis', 'vascular_access_desc')
389
+      var BloodAccessOperaName = ''
390
+      for (let i = 0; i < BloodAccessOpera.length; i++) {
391
+        if (BloodAccessOpera[i].id == id) {
392
+          BloodAccessOperaName = BloodAccessOpera[i].name
393
+        }
394
+      }
395
+      return BloodAccessOperaName
396
+    },
397
+
363 398
       getBloodAccessInternalFistula: function(id) {
364 399
         var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula
365 400
         var BloodAccessInternalFistulaName = ''

+ 1 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -423,7 +423,7 @@
423 423
     </el-dialog>
424 424
 
425 425
 
426
-    <el-dialog title="调整干体重  " :visible.sync="dialogFormVisible" width="50%">
426
+    <el-dialog title="调整干体重  " :visible.sync="dialogFormVisible" width="50%"   @close="cancleDryWeight()">
427 427
       <el-form :model="weight_adjust" ref="weight_adjust">
428 428
         <el-form-item label="干体重 :" label-width="80px" >
429 429
           <el-input style="width: 200px" v-model="weight_adjust.weight" auto-complete="off"></el-input>

+ 34 - 35
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -558,6 +558,9 @@
558 558
     name: 'dialysisPrescriptionDialog',
559 559
     components: { MsgTip },
560 560
     props: {
561
+      schedual: {
562
+        type: Object
563
+      },
561 564
       is_open: {
562 565
         type: Number,
563 566
         default: () => {
@@ -738,6 +741,11 @@
738 741
         default: () => {
739 742
           return { id: 0 }
740 743
         }
744
+      },last_prescription: {
745
+        type: Object,
746
+        default: () => {
747
+          return { id: 0 }
748
+        }
741 749
       },
742 750
 
743 751
     },
@@ -1985,6 +1993,29 @@
1985 1993
 
1986 1994
       var date = this.$route.query && this.$route.query.date
1987 1995
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
1996
+
1997
+
1998
+
1999
+      if (this.prescription != null && typeof (this.prescription.id) != 'undefined' && this.prescription.id > 0) {
2000
+        for (const key in this.prescription) {
2001
+          this.dialysisPrescription[key] = this.prescription[key]
2002
+        }
2003
+      } else if (this.solution != null && typeof this.solution.id != 'undefined' && this.solution.id) {
2004
+        for (const key in this.solution) {
2005
+            this.dialysisPrescription[key] = this.solution[key]
2006
+        }
2007
+      } else if (this.last_prescription != null && typeof this.last_prescription.id != 'undefined' && this.last_prescription.id) {
2008
+
2009
+        for (const key in this.last_prescription) {
2010
+            this.dialysisPrescription[key] = this.last_prescription[key]
2011
+        }
2012
+      } else {
2013
+        this.dialysisPrescription.mode_id = this.schedual.mode_id
2014
+
2015
+      }
2016
+
2017
+
2018
+
1988 2019
     },
1989 2020
     watch: {
1990 2021
       "dialysisPrescription.dialysis_duration_hour":function(){
@@ -2057,13 +2088,11 @@
2057 2088
         let  dialysis_duration_minute = 0
2058 2089
         let dialysis_duration_hour = 0
2059 2090
         let duration = 0
2060
-
2061 2091
         if (this.dialysisPrescription.dialysis_duration_minute == ''){
2062 2092
           dialysis_duration_minute = 0
2063 2093
         }else{
2064 2094
           dialysis_duration_minute = this.dialysisPrescription.dialysis_duration_minute
2065 2095
         }
2066
-
2067 2096
         if (this.dialysisPrescription.dialysis_duration_hour == ''){
2068 2097
           dialysis_duration_hour = 0
2069 2098
 
@@ -2073,10 +2102,6 @@
2073 2102
 
2074 2103
         }
2075 2104
         duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2076
-
2077
-
2078
-        console.log(duration)
2079
-
2080 2105
         this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2081 2106
           this.dialysisPrescription.anticoagulant_shouji,
2082 2107
           duration,
@@ -2107,8 +2132,6 @@
2107 2132
         }
2108 2133
         duration = parseFloat(dialysis_duration_hour) * 60 + parseFloat(dialysis_duration_minute)
2109 2134
 
2110
-        console.log(duration)
2111
-
2112 2135
         this.dialysisPrescription.anticoagulant_zongliang=calculateAnticoagulantZL(1,
2113 2136
           this.dialysisPrescription.anticoagulant_shouji,
2114 2137
           duration,
@@ -2123,25 +2146,16 @@
2123 2146
             this.dialysisPrescription[index] = this.prescription[index]
2124 2147
           }
2125 2148
 
2126
-          // console.log(this.prescription['dialysate_formulation'])
2127 2149
 
2128 2150
           if (this.prescription['dialysate_formulation'] == 0) {
2129 2151
             this.dialysisPrescription['dialysate_formulation'] = ''
2130 2152
           }
2131 2153
 
2132
-          // else{
2133
-          //   this.dialysisPrescription['dialysate_formulation']  = this.prescription['dialysate_formulation']
2134
-          //
2135
-          // }
2136
-          //
2137
-          //
2154
+
2138 2155
           if (this.prescription['anticoagulant'] == 0) {
2139 2156
             this.dialysisPrescription['anticoagulant'] = ''
2140 2157
           }
2141
-          // else{
2142
-          //   this.dialysisPrescription['anticoagulant']  = this.prescription['anticoagulant']
2143
-          //
2144
-          // }
2158
+
2145 2159
 
2146 2160
           if (this.prescription['dialysis_duration_hour'] == 0) {
2147 2161
             this.dialysisPrescription['dialysis_duration_hour'] = ''
@@ -2208,21 +2222,9 @@
2208 2222
             if (this.prescription['dialysate_formulation'] == 0) {
2209 2223
               this.dialysisPrescription['dialysate_formulation'] = ''
2210 2224
             }
2211
-
2212
-            // else{
2213
-            //   this.dialysisPrescription['dialysate_formulation']  = this.prescription['dialysate_formulation']+''
2214
-            //
2215
-            // }
2216
-            //
2217
-            //
2218 2225
             if (this.prescription['anticoagulant'] == 0) {
2219 2226
               this.dialysisPrescription['anticoagulant'] = ''
2220 2227
             }
2221
-            //
2222
-            // else{
2223
-            //   this.dialysisPrescription['anticoagulant']  = this.prescription['anticoagulant']+''
2224
-            //
2225
-            // }
2226 2228
 
2227 2229
             if (this.prescription['dialysis_duration_hour'] == 0) {
2228 2230
               this.dialysisPrescription['dialysis_duration_hour'] = ''
@@ -2286,10 +2288,7 @@
2286 2288
             if (this.solution['dialysate_formulation'] == 0) {
2287 2289
               this.dialysisPrescription['dialysate_formulation'] = ''
2288 2290
             }
2289
-            // else{
2290
-            //   this.dialysisPrescription['dialysate_formulation']  = this.solution['dialysate_formulation']+''
2291
-            //
2292
-            // }
2291
+
2293 2292
 
2294 2293
             if (this.solution['anticoagulant'] == 0) {
2295 2294
               this.dialysisPrescription['anticoagulant'] = ''

+ 72 - 43
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Dosyayı Görüntüle

@@ -158,13 +158,26 @@
158 158
             </el-col>
159 159
             <el-col :span="8"  v-if="isShow('静脉压')">
160 160
               <el-form-item label="静脉压(mmHg):">
161
-                <el-input v-model="form.venous_pressure"></el-input>
161
+                <el-input style="width: 140px" v-model="form.venous_pressure"></el-input>
162
+                <el-button
163
+                  size="mini"
164
+                  type="primary"
165
+                  @click="venousPressureChange(1)"
166
+                >转换</el-button>
162 167
               </el-form-item>
168
+
169
+
163 170
             </el-col>
164 171
             <el-col :span="8" v-if="isShow('动脉压')">
165 172
               <el-form-item label="动脉压(mmHg):">
166
-                <el-input v-model="form.arterial_pressure"></el-input>
173
+                <el-input style="width: 140px" v-model="form.arterial_pressure"></el-input>
174
+                <el-button
175
+                  size="mini"
176
+                  type="primary"
177
+                  @click="venousPressureChange(3)"
178
+                >转换</el-button>
167 179
               </el-form-item>
180
+
168 181
             </el-col>
169 182
 
170 183
             <el-col :span="8" v-if="isShow('血流量')">
@@ -172,24 +185,18 @@
172 185
                 <el-input v-model="form.blood_flow_volume"></el-input>
173 186
               </el-form-item>
174 187
             </el-col>
175
-          <!-- </el-row>
176
-
177
-          <el-row :gutter="20"> -->
178
-
179
-
180
-
181
-
182
-          <!-- </el-row>
183
-
184
-          <el-row :gutter="20"> -->
185 188
 
186 189
             <el-col :span="8" v-if="isShow('跨膜压')">
187 190
               <el-form-item label="跨膜压(mmHg):">
188
-                <el-input v-model="form.transmembrane_pressure"></el-input>
191
+                <el-input  style="width: 140px" v-model="form.transmembrane_pressure"></el-input>
192
+                <el-button
193
+                  size="mini"
194
+                  type="primary"
195
+                  @click="venousPressureChange(2)"
196
+                >转换</el-button>
189 197
               </el-form-item>
190
-            </el-col>
191
-
192 198
 
199
+            </el-col>
193 200
 
194 201
             <el-col :span="8" v-if="isShow('超滤率')">
195 202
               <el-form-item label="超滤率(ml/h)">
@@ -395,6 +402,21 @@ export default {
395 402
       this.form.operate_time = (new Date()).getTime()
396 403
     },
397 404
     methods: {
405
+      venousPressureChange (type) {
406
+        if (type == 1) {
407
+          this.form.venous_pressure = Math.ceil(
408
+            Math.round(this.form.venous_pressure * 7.5)
409
+          )
410
+        } else if (type == 2) {
411
+          this.form.transmembrane_pressure = Math.ceil(
412
+            Math.round(this.form.transmembrane_pressure * 7.5)
413
+          )
414
+        } else {
415
+          this.form.arterial_pressure = Math.ceil(
416
+            Math.round(this.form.arterial_pressure * 7.5)
417
+          )
418
+        }
419
+      },
398 420
       isShow(name) {
399 421
         var filedList = store.getters.xt_user.fileds
400 422
         for (let i = 0; i < filedList.length; i++) {
@@ -677,41 +699,44 @@ export default {
677 699
 
678 700
 <style style="stylesheet/scss" lang="scss" scoped>
679 701
   .grid {
680
-  padding: 10px 0 20px 0;
681
-  .list {
682
-  ul {
683
-  @include display-flex;
684
-  @include align-items-center;
685
-  @include text-align;
686
-  @include justify-content-around;
687
-  cursor: pointer;
688
-  li {
689
-  font-size: 12px;
690
-  color: #5d6b7a;
691
-  margin-top: 20px;
692
-
693
-  p {
694
-  height: 30px;
695
-  line-height: 30px;
696
-  color: #34495e;
697
-  font-size: 14px;
698
-  }
699
-  img {
700
-  width: 50px;
701
-  height: 50px;
702
-  }
703
-  }
704
-  }
705
-  }
702
+    padding: 10px 0 20px 0;
703
+    .list {
704
+      ul {
705
+      @include display-flex;
706
+      @include align-items-center;
707
+      @include text-align;
708
+      @include justify-content-around;
709
+      cursor: pointer;
710
+        li {
711
+          font-size: 12px;
712
+          color: #5d6b7a;
713
+          margin-top: 20px;
714
+
715
+          p {
716
+            height: 30px;
717
+            line-height: 30px;
718
+            color: #34495e;
719
+            font-size: 14px;
720
+          }
721
+      img {
722
+            width: 50px;
723
+            height: 50px;
724
+          }
725
+        }
726
+      }
727
+    }
706 728
   }
707 729
   .txsj{
708 730
   text-align: center;
709 731
   margin-bottom: 20px;
710 732
   }
733
+  .current-box-class::-webkit-scrollbar
734
+  {
735
+      height: 20px;  /*滚动条高度*/
736
+  }
711 737
 </style>
712 738
 
713
-<
714
-style >
739
+<style style="stylesheet/scss" lang="scss">
715 740
 .dialog_box .current-box-class .current-row > td {
716 741
   background: #6fb5fa;
717 742
   color: white;
@@ -723,5 +748,9 @@ style >
723 748
   color: white;
724 749
   /* font-size: 12px; */
725 750
 }
751
+.el-table__body-wrapper::-webkit-scrollbar{
752
+  height: 20px;
753
+}
726 754
 </style>
727 755
 
756
+

+ 21 - 5
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

@@ -1,4 +1,5 @@
1 1
 <template>
2
+
2 3
   <div class="main-contain">
3 4
     <div class="position">
4 5
       <bread-crumb :crumbs='crumbs'></bread-crumb>
@@ -6,7 +7,12 @@
6 7
         <el-button size="small" type="primary" @click="printOrder" icon="el-icon-printer">打印</el-button>
7 8
       </div>
8 9
     </div>
9
-    <div class="details-bg" v-loading.fullscreen.lock="loading">
10
+
11
+    <div v-loading="loading"
12
+         element-loading-text="拼命加载中"
13
+         element-loading-spinner="el-icon-loading"
14
+         element-loading-background="rgba(0, 0, 0, 0.8)">
15
+
10 16
       <nav-igation
11 17
         ref="nav"
12 18
         title="弹窗导航"
@@ -59,21 +65,24 @@
59 65
       >
60 66
       </nav-igation>
61 67
 
68
+
62 69
       <basic-infor :patient="patient" :device_number="schedual.id == 0 ? '' : schedual.device_number.number"
63 70
                    :steps="steps" title="基本信息"></basic-infor>
64 71
 
65 72
 
66 73
       <dialysis-prescription :prescription="prescription" :solution="solution" :device_map="device_map"
67 74
                              title="透析处方"></dialysis-prescription>
75
+    </div>
68 76
 
69
-      <!-- <past-data class="往期数据"></past-data> -->
77
+    <!-- <past-data class="往期数据"></past-data> -->
70 78
       <div style="height: 20px;background-color: #f6f8f9" ></div>
71 79
       <accepts-assessment :record="receiver_treatment_access" title="接诊评估"></accepts-assessment>
72 80
 
73 81
 
74 82
       <assessment-before :record="predialysis_evaluation" ref="assessment_before" title="透前评估"></assessment-before>
75 83
 
76
-      <stat-order ref="stat_order" :advices="doctor_advices" :doctor_map="admin_user_map" title="临时医嘱"></stat-order>
84
+
85
+    <stat-order ref="stat_order" :advices="doctor_advices" :doctor_map="admin_user_map" title="临时医嘱"></stat-order>
77 86
 
78 87
       <dialysis-computer ref="dialysis_computer" :record="dialysis_order" :admin_map="admin_user_map"
79 88
                          :device_number_map="device_number_map" title="透析上机 "></dialysis-computer>
@@ -240,8 +249,8 @@
240 249
       <assessment-after ref="assessment_after" :record="assessment_after_dislysis" title="透后评估"></assessment-after>
241 250
 
242 251
       <treatment-of ref="treatment_of" :record="treatment_summary" title="治疗小结"></treatment-of>
252
+
243 253
     </div>
244
-  </div>
245 254
 </template>
246 255
 
247 256
 <script>
@@ -444,7 +453,6 @@
444 453
           } else {
445 454
             this.$message.error(resp.msg)
446 455
           }
447
-          this.loading = false
448 456
         })
449 457
 
450 458
       },assessmentAfterDislysisFunc:function(val){
@@ -520,6 +528,8 @@
520 528
             this.headNurses = headNurses
521 529
 
522 530
 
531
+
532
+
523 533
             this.niprocart_info = niprocart_info
524 534
             this.jms_info = jms_info
525 535
             this.fistula_needle_set_info = fistula_needle_set_info
@@ -588,6 +598,12 @@
588 598
             this.$message.error(resp.msg)
589 599
           }
590 600
 
601
+          if (this.lastDialysisPrescribe != null){
602
+            delete this.lastDialysisPrescribe.target_ultrafiltration
603
+          }
604
+          if (this.solution != null){
605
+            delete  this.solution.target_ultrafiltration
606
+          }
591 607
           this.loading = false
592 608
         })
593 609
       },

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Dosyayı Görüntüle

@@ -483,7 +483,7 @@
483 483
                 <td width="80">
484 484
                   <label-box :isChecked="prescription.mode_id==3?true:false" showValue='HD+HP'></label-box>
485 485
                 </td>
486
-                <td width="80">
486
+                <!-- <td width="80">
487 487
                   <label-box :isChecked="prescription.mode_id==6?true:false" showValue='SCUF'></label-box>
488 488
                 </td>
489 489
                 <td width="80">
@@ -521,7 +521,7 @@
521 521
                 </td>
522 522
                 <td width="80">
523 523
                   <label-box :isChecked="prescription.mode_id==18?true:false" showValue='HDF后置换'></label-box>
524
-                </td>
524
+                </td> -->
525 525
 
526 526
                 <td width="35">其他</td>
527 527
                 <td width="100">

+ 8 - 5
src/xt_pages/role/components/AdminInfoForm.vue Dosyayı Görüntüle

@@ -19,9 +19,9 @@
19 19
                     </el-select>
20 20
                 </el-form-item>
21 21
 
22
-                <el-form-item label="角色 : ">
22
+                <el-form-item label="角色 : " prop="role">
23 23
                     <el-select v-model="form.role" placeholder="角色">
24
-                        <el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
24
+                        <el-option v-for="(item,index) in roles" :key="index" :label="item.name" :value="item.id"></el-option>
25 25
                     </el-select>
26 26
                 </el-form-item>
27 27
 
@@ -107,11 +107,14 @@ export default {
107 107
       },
108 108
       rules: {
109 109
         mobile: [
110
-          { validator: checkMobile, trigger: 'blur' }
110
+          { required: true,validator: checkMobile, trigger: 'blur' }
111 111
         ],
112 112
         name: [
113
-          { validator: checkName, trigger: 'blur' }
114
-        ]
113
+          {required: true, validator: checkName, trigger: 'blur' }
114
+        ],
115
+        role: [
116
+          { required: true, message: '请选择角色', trigger: 'change' }
117
+        ],
115 118
       }
116 119
     }
117 120
   },

+ 24 - 16
src/xt_pages/role/components/EditAdminInfo.vue Dosyayı Görüntüle

@@ -20,9 +20,9 @@
20 20
                     </el-select>
21 21
                 </el-form-item>
22 22
 
23
-                <el-form-item label="角色">
24
-                    <el-select v-model="form.role" placeholder="角色">
25
-                        <el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
23
+                <el-form-item label="角色" prop="role">
24
+                    <el-select v-model="form.role" placeholder="角色" >
25
+                        <el-option v-for="(item,index) in roles" :key="index" :label="item.name" :value="item.id"></el-option>
26 26
                     </el-select>
27 27
                 </el-form-item>
28 28
 
@@ -54,6 +54,7 @@ export default {
54 54
     },
55 55
     data() {
56 56
         var checkMobile = (rule, value, callback) => {
57
+           console.log(value)
57 58
             if (!value || value.length == 0) {
58 59
                 return callback(new Error('手机号不能为空'))
59 60
             }
@@ -109,7 +110,10 @@ export default {
109 110
                 ],
110 111
                 name: [
111 112
                     {validator: checkName, trigger: 'blur'}
112
-                ]
113
+                ],
114
+               role: [
115
+                  { required: true, message: '请选择角色', trigger: 'change' }
116
+                ],
113 117
             }
114 118
         }
115 119
     },
@@ -125,7 +129,6 @@ export default {
125 129
             this.loading = false
126 130
             return
127 131
         }
128
-
129 132
         this.form.id = this.admin_id
130 133
         if (this.admin_id === 0) {
131 134
             this.form.user_type = this.user_types[0].index
@@ -134,7 +137,9 @@ export default {
134 137
                 this.loading = false
135 138
                 var resp = rs.data
136 139
                 if (resp.state === 1) {
137
-                    this.roles.push(...resp.data.roles)
140
+                  this.roles = []
141
+
142
+                  this.roles.push(...resp.data.roles)
138 143
                     this.qntoken = resp.data.qntoken
139 144
                     if (this.roles.length > 0) {
140 145
                         this.form.role = this.roles[0].id
@@ -148,15 +153,14 @@ export default {
148 153
                 this.loading = false
149 154
                 this.$message.error(err)
150 155
             })
151
-            
152 156
         } else {
153
-            getModifyAdminInitData(this.form.id).then(rs => {
157
+          getModifyAdminInitData(this.form.id).then(rs => {
154 158
                 this.loading = false
155 159
                 var resp = rs.data
156 160
                 if (resp.state === 1) {
157
-                    this.roles.push(...resp.data.roles)
161
+                  this.roles = []
162
+                  this.roles.push(...resp.data.roles)
158 163
                     this.qntoken = resp.data.qntoken
159
-                    
160 164
                     var admin = resp.data.admin
161 165
                     this.form.name = admin.user_name
162 166
                     this.form.mobile = admin.mobile
@@ -164,11 +168,9 @@ export default {
164 168
                     this.form.user_title = admin.user_title
165 169
                     this.form.role = admin.role_id
166 170
                     this.form.intro = admin.intro
167
-                    
168 171
                 } else {
169 172
                     this.$message.error(resp.msg)
170 173
                 }
171
-
172 174
             }).catch(err => {
173 175
                 this.loading = false
174 176
                 this.$message.error(err)
@@ -180,6 +182,12 @@ export default {
180 182
             if (this.admin_id < 0) {
181 183
                 return
182 184
             }
185
+            console.log(this.form)
186
+
187
+            if (this.form.role <= 0 || this.form.role == '' ){
188
+              this.$message.error("请选择角色")
189
+              return
190
+            }
183 191
             this.$refs.form.validate((valid) => {
184 192
                 if (valid) {
185 193
                     this.loading = true
@@ -194,7 +202,7 @@ export default {
194 202
                                     _this.$store.dispatch('RecoverAdminsChangeState')
195 203
                                 }, 500)
196 204
                                 _this.$router.back(-1)
197
-                                
205
+
198 206
                             } else {
199 207
                                 this.$message.error(resp.msg)
200 208
                             }
@@ -203,7 +211,7 @@ export default {
203 211
                             this.loading = false
204 212
                             this.$message.error(err)
205 213
                         })
206
-                        
214
+
207 215
                     } else {
208 216
                         modifyAdmin(this.form.id, this.form.name, this.form.user_type, this.form.user_title, this.form.role, this.form.intro).then(rs => {
209 217
                             this.loading = false
@@ -215,7 +223,7 @@ export default {
215 223
                                     _this.$store.dispatch('RecoverAdminsChangeState')
216 224
                                 }, 500)
217 225
                                 _this.$router.back(-1)
218
-                                
226
+
219 227
                             } else {
220 228
                                 this.$message.error(resp.msg)
221 229
                             }
@@ -225,7 +233,7 @@ export default {
225 233
                             this.$message.error(err)
226 234
                         })
227 235
                     }
228
-                    
236
+
229 237
                 } else {
230 238
                     return false
231 239
                 }