Browse Source

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

xiaoming_global 5 years ago
parent
commit
f4a65bade1

+ 1 - 0
src/store/modules/xt_permission.js View File

@@ -14,6 +14,7 @@ const xt_permission = {
14 14
   actions: {
15 15
     xt_GenerateRoutes({ commit }, urls) {
16 16
       return new Promise(resolve => {
17
+
17 18
         setupRouters(urls)
18 19
         var addRouters = xt_filterAsyncRouter(xt_asyncRouterMap)
19 20
         commit('XT_SET_ROUTERS', { concatRouters:xt_constantRouterMap.concat(xt_asyncRouterMap), addRouters:addRouters })

+ 2 - 0
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

@@ -487,6 +487,8 @@
487 487
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '心衰')"></check-box>
488 488
                       <check-box text="腹痛"
489 489
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '腹痛')"></check-box>
490
+                      <check-box text="无"
491
+                                 :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '无')"></check-box>
490 492
                     </div>
491 493
                   </div>
492 494
                   <div class="row" style="padding: 2px 0;">

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue View File

@@ -266,8 +266,8 @@
266 266
                   </div>
267 267
                   <div class="inline_block">
268 268
                     &emsp;实际超滤量:
269
-                    <div class="under_line" style="width:60px;text-align: left" v-if="record.prescription&&record.prescription.ultrafiltration">
270
-                      {{getFloat(record.prescription.ultrafiltration)}}
269
+                    <div class="under_line" style="width:60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
270
+                      {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
271 271
                     </div>
272 272
                     <div class="under_line" style="width:60px;" v-else>
273 273
                       {{'/'}}

+ 2 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_four.vue View File

@@ -519,6 +519,8 @@
519 519
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '心衰')"></check-box>
520 520
                       <check-box text="腹痛"
521 521
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '腹痛')"></check-box>
522
+                      <check-box text="无"
523
+                                 :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '无')"></check-box>
522 524
                     </div>
523 525
                   </div>
524 526
                   <div class="row" style="padding: 2px 0;">

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue View File

@@ -248,8 +248,8 @@
248 248
                     </div>
249 249
                     <div class="inline_block">
250 250
                       &emsp;实际超滤量:
251
-                      <div class="under_line" style="width:60px;text-align: left" v-if="record.prescription&&record.prescription.ultrafiltration">
252
-                        {{getFloat(record.prescription.ultrafiltration)}}
251
+                      <div class="under_line" style="width:60px;text-align: left" v-if="record.assessment_after_dislysis&&record.assessment_after_dislysis.actual_ultrafiltration">
252
+                        {{getFloat(record.assessment_after_dislysis.actual_ultrafiltration)}}
253 253
                       </div>
254 254
                       <div class="under_line" style="width:60px;" v-else>
255 255
                         {{'/'}}

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -280,7 +280,7 @@
280 280
                                     <div class="under_line" style="width: 150px;text-align: center">
281 281
                                         {{record.prescription&&record.prescription.target_ultrafiltration?record.prescription.target_ultrafiltration:'/'}}
282 282
                                     </div>
283
-                                    L
283
+                                      ml
284 284
                                     </div>
285 285
                                 </div>
286 286
 

+ 2 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_three.vue View File

@@ -510,6 +510,8 @@
510 510
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '心衰')"></check-box>
511 511
                       <check-box text="腹痛"
512 512
                                  :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '腹痛')"></check-box>
513
+                      <check-box text="无"
514
+                                 :checked="isValueIndexOfCheck(record.assessment_after_dislysis, 'complication', '无')"></check-box>
513 515
                     </div>
514 516
                   </div>
515 517
 

+ 1 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -10,8 +10,7 @@
10 10
         <li v-if="isShow('目标超滤量')">
11 11
           <label>目标超滤量 : </label>
12 12
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
13
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id != 6">{{target_ultrafiltration != '0'?"L":''}}</span>
14
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id == 6">{{target_ultrafiltration != '0'?"ml":''}}</span>
13
+          <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
15 14
 
16 15
         </li>
17 16
         <li v-if="isShow('首剂')">

+ 2 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -40,10 +40,8 @@
40 40
 
41 41
 
42 42
           <el-col :span="8" v-if="isShows('目标超滤量')">
43
-            <el-form-item label="目标超滤量(ml):" v-if="this.$store.getters.xt_user.template_info.template_id == 6">
44
-              <el-input type="number" v-model="dialysisPrescription.target_ultrafiltration"></el-input>
45
-            </el-form-item>
46
-            <el-form-item label="目标超滤量(L):"  v-if="this.$store.getters.xt_user.template_info.template_id != 6">
43
+
44
+            <el-form-item label="目标超滤量(L):">
47 45
               <el-input type="number" v-model="dialysisPrescription.target_ultrafiltration"></el-input>
48 46
             </el-form-item>
49 47
           </el-col>

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue View File

@@ -750,7 +750,8 @@
750 750
                                  showValue='心衰'></label-box>
751 751
                       <label-box :isChecked="afterdialysis.complications_index.indexOf('腹痛')>-1?true:false"
752 752
                                  showValue='腹痛'></label-box>
753
-
753
+                      <label-box :isChecked="afterdialysis.complications_index.indexOf('无')>-1?true:false"
754
+                                 showValue='无'></label-box>
754 755
                     </td>
755 756
                     <td></td>
756 757
                   </tr>

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

@@ -691,6 +691,8 @@
691 691
                                  showValue='心衰'></label-box>
692 692
                       <label-box :isChecked="afterdialysis.complications_index.indexOf('腹痛')>-1?true:false"
693 693
                                  showValue='腹痛'></label-box>
694
+                      <label-box :isChecked="afterdialysis.complications_index.indexOf('无')>-1?true:false"
695
+                                 showValue='无'></label-box>
694 696
 
695 697
                     </td>
696 698
                     <td></td>
@@ -1048,7 +1050,7 @@
1048 1050
           DeviceNumber: []
1049 1051
         },
1050 1052
         operatorMaps: {},
1051
-        complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛'],
1053
+        complications: ['低血压', '高血压', '心律失常', '头晕', '头痛', '呕吐', '抽搐', '出血', '心衰', '腹痛','无'],
1052 1054
         jilurow: 0,
1053 1055
         advice_jilurow: 0,
1054 1056
         loading: false,

+ 78 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -445,7 +445,7 @@
445 445
                         <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;" >
446 446
                           <span v-if="advice.parent_id > 0">---></span>
447 447
                           <span >{{advice.advice_name }}</span>
448
-                          <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
448
+                          <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
449 449
                           <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
450 450
                            <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
451 451
                           <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
@@ -553,11 +553,67 @@
553 553
       <div class="row" style="margin-top:-11px;position: relative;">
554 554
         <table class="proj_table">
555 555
           <tbody>
556
+          <template v-if="doctor_advices_2.length > 0">
557
+            <tr style="line-height:35px;padding:8px 5px;">
558
+              <td colspan="7" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">医嘱内容</td>
559
+            </tr>
560
+            <!-- <tr style="line-height:35px;padding:8px 5px;">
561
+              <td colspan="4" style="font-size: 16px">开医嘱</td>
562
+              <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
563
+            </tr> -->
564
+            <tr style="line-height:35px;padding:8px 5px;">
565
+              <td style="font-size: 16px" width="10%">时间</td>
566
+              <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
567
+              <td style="font-size: 16px" width="10%">医生签名</td>
568
+              <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
569
+              <td style="font-size: 16px" width="10%">执行人签名</td>
570
+              <td style="font-size: 16px" width="10%">时间</td>
571
+            </tr>
572
+            <!-- <template v-for="group in doctor_advices" > -->
573
+            <tr v-for="(advice, advice_index) in doctor_advices_2" :key="advice_index" >
574
+              <td height="32px" >
575
+                  <span v-if="advice.start_time">
576
+                    {{getTime(advice.start_time,'{h}:{i}')}}
577
+                  </span>
578
+                <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
579
+              </td>
580
+              <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;" >
581
+                <span v-if="advice.parent_id > 0">---></span>
582
+                <span >{{advice.advice_name }}</span>
583
+                <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
584
+                <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
585
+                  <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
586
+                <span v-if="advice.parent_id == 0 ">{{advice.delivery_way}}</span>
587
+                <span v-if="advice.parent_id == 0  ">{{advice.execution_frequency}}</span>
588
+                <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
589
+              </td>
590
+              <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
591
+                <span>{{advice.delivery_way}}</span>
592
+                <span>{{advice.execution_frequency}}</span>
593
+                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
594
+              </td> -->
595
+              <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
596
+              <td height="32px">
597
+                <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getAdminUser(advice.advice_doctor)}}</span>
598
+                <img style="height:20px;" :src="setAdminUserES(advice.advice_doctor)" alt="" srcset="" v-else>
599
+              </td>
600
+              <!-- <td height="35px">
601
+                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
602
+                <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
603
+              </td> -->
604
+              <td height="32px">
605
+                <span v-if="setAdminUserES(advice.execution_staff) == ''">{{getAdminUser(advice.execution_staff)}}</span>
606
+                <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt="" srcset="" v-else>
607
+              </td>
608
+              <td height="32px">
609
+                <span v-if="advice.execution_time">{{getTime(advice.execution_time,'{h}:{i}')}}</span>
610
+              </td>
611
+            </tr>
612
+          </template>
556 613
 
557
-
558
-          <tr><td colspan="2"  style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析后情况</td></tr>
614
+          <tr><td colspan="7"  style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">透析后情况</td></tr>
559 615
           <tr>
560
-            <td>
616
+            <td colspan="7">
561 617
               <div class="row" style="padding: 2px 0;line-height:23px; display:flex;">
562 618
                 <div class="inline_block" style="flex:1;" >
563 619
                   T:
@@ -666,7 +722,7 @@
666 722
             </td>
667 723
           </tr>
668 724
           <tr>
669
-            <td>
725
+            <td colspan="7">
670 726
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
671 727
                 <div class="inline_block" style="flex:1;">
672 728
                   穿刺护士:
@@ -818,6 +874,7 @@
818 874
         org_template_info: {},
819 875
 
820 876
         doctor_advices: [],
877
+        doctor_advices_2: [],
821 878
         advice_groups: [],
822 879
         advice_groups_2: [],
823 880
         print_length : 0,
@@ -1155,7 +1212,6 @@
1155 1212
             this.advices.push(item)
1156 1213
           }
1157 1214
           this.loading = false
1158
-
1159 1215
           this.doctor_advices = response.data.data.advices == null ? [] : response.data.data.advices
1160 1216
 
1161 1217
           for (let index = 0; index < this.doctor_advices.length; index++) {
@@ -1240,7 +1296,6 @@
1240 1296
           //    this.advice_groups.push(group)
1241 1297
           //   }
1242 1298
           // }
1243
-
1244 1299
           if (this.doctor_advices.length <= 6) {
1245 1300
             var nl = 6
1246 1301
             this.print_length = 6
@@ -1253,7 +1308,23 @@
1253 1308
               }
1254 1309
             }
1255 1310
           }
1311
+
1256 1312
           this.totollength = this.doctor_advices.length + this.monitors.length
1313
+          if (this.totollength > 18) {
1314
+            var temp_advice_length = 17 - this.monitors.length;
1315
+            var doctor_advices_1 = []
1316
+            var doctor_advices_2 = []
1317
+            for (let index = 0; index < this.doctor_advices.length; index++) {
1318
+              const element = this.doctor_advices[index];
1319
+              if (temp_advice_length > index) {
1320
+                doctor_advices_1.push(element)
1321
+              } else {
1322
+                doctor_advices_2.push(element)
1323
+              }
1324
+            }
1325
+            this.doctor_advices = doctor_advices_1
1326
+            this.doctor_advices_2 = doctor_advices_2
1327
+          }
1257 1328
           console.log(this.advice_groups)
1258 1329
         } else {
1259 1330
           this.loading = false

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue View File

@@ -725,7 +725,8 @@
725 725
                                  showValue='心衰'></label-box>
726 726
                       <label-box :isChecked="afterdialysis.complications_index.indexOf('腹痛')>-1?true:false"
727 727
                                  showValue='腹痛'></label-box>
728
-
728
+                      <label-box :isChecked="afterdialysis.complications_index.indexOf('无')>-1?true:false"
729
+                                 showValue='无'></label-box>
729 730
                     </td>
730 731
                     <td></td>
731 732
                   </tr>

+ 2 - 2
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

@@ -820,8 +820,8 @@
820 820
               </div>
821 821
               <div class="inline_block">
822 822
                 &emsp;实际超滤量:
823
-                <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(prescription.ultrafiltration)">
824
-                  {{getFloat(prescription.ultrafiltration)}}
823
+                <div class="under_line" style="width: 70px;text-align: left" v-if="getFloat(afterdialysis.actual_ultrafiltration)">
824
+                  {{getFloat(afterdialysis.actual_ultrafiltration)}}
825 825
                 </div>
826 826
                 <div class="under_line" style="width: 70px;" v-else>
827 827
                   {{'/'}}

+ 33 - 59
src/xt_pages/user/dialysisSolution.vue View File

@@ -27,7 +27,7 @@
27 27
           label="透析模式"
28 28
           min-width="50">
29 29
           <template slot-scope="scope">
30
-            {{scope.row.mode_name}}
30
+            {{modeOptions[scope.row.mode_id].name}}
31 31
           </template>
32 32
         </el-table-column>
33 33
         <el-table-column
@@ -36,7 +36,7 @@
36 36
           label="透析时长"
37 37
           min-width="50">
38 38
           <template slot-scope="scope">
39
-            {{scope.row.dialysis_duration}}h
39
+            {{scope.row.dialysis_duration_hour}} 小时 {{scope.row.dialysis_duration_minute}} 分钟
40 40
           </template>
41 41
         </el-table-column>
42 42
         <!-- <el-table-column
@@ -58,16 +58,16 @@
58 58
               <span >{{scope.row.name}}{{scope.row.sub_name}}</span>
59 59
           </template>
60 60
         </el-table-column> -->
61
-        <el-table-column
62
-          prop="doctor"
63
-          label="医生"
64
-          align="center"
65
-          min-width="110">
66
-          <template slot-scope="scope">
67
-            <span>{{getAdminUserName(scope.row.doctor)}}</span>
68
-          </template>
61
+        <!--<el-table-column-->
62
+          <!--prop="doctor"-->
63
+          <!--label="医生"-->
64
+          <!--align="center"-->
65
+          <!--min-width="110">-->
66
+          <!--<template slot-scope="scope">-->
67
+            <!--<span>{{getAdminUserName(scope.row.doctor)}}</span>-->
68
+          <!--</template>-->
69 69
 
70
-        </el-table-column>
70
+        <!--</el-table-column>-->
71 71
 
72 72
         <el-table-column
73 73
           prop="updated_time"
@@ -144,7 +144,6 @@
144 144
 
145 145
           <el-col :span="8" v-if="isShows('透析时长')">
146 146
             <el-form-item label="透析时长(h):" prop="dialysis_duration">
147
-              <!-- <el-input v-model="addPlan.dialysis_duration"></el-input> -->
148 147
               <el-time-picker
149 148
                 v-model="dialysisTimeShow"
150 149
                 :picker-options="{
@@ -293,8 +292,8 @@
293 292
           </el-col>
294 293
 
295 294
 
296
-          <el-col :span="8" v-if="isShows('碳酸氢')">
297
-            <el-form-item label="碳酸氢(mmol/L): " prop="bicarbonate">
295
+          <el-col :span="8" v-if="isShows('碳酸氢')">
296
+            <el-form-item label="碳酸氢(mmol/L): " prop="bicarbonate">
298 297
               <el-input v-model="addPlan.bicarbonate"></el-input>
299 298
             </el-form-item>
300 299
           </el-col>
@@ -691,52 +690,27 @@
691 690
       }
692 691
     },
693 692
     watch: {
694
-      'addPlan.anticoagulant_shouji': function() {
695
-
696
-        if (this.addPlan.anticoagulant_shouji == '' && this.addPlan.anticoagulant_weichi == '') {
697
-          this.addPlan.anticoagulant_zongliang = parseInt(0) + parseInt(0)
698
-        } else if (this.addPlan.anticoagulant_shouji != '' && this.addPlan.anticoagulant_weichi != '') {
699
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
700
-        } else if (this.addPlan.anticoagulant_shouji != '' && this.addPlan.anticoagulant_shouji == '') {
701
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(0)
702
-        } else if (this.addPlan.anticoagulant_shouji == '' && this.addPlan.anticoagulant_shouji != '') {
703
-          this.addPlan.anticoagulant_zongliang = parseInt(0) + parseInt(this.addPlan.anticoagulant_shouji)
704
-
705
-        }
706
-        // if(this.addPlan.anticoagulant_zongliang  === NaN){
707
-        //   console.log("222222")
708
-        //
709
-        //   this.addPlan.anticoagulant_zongliang = ''
710
-        // }
711
-        if(isNaN(this.addPlan.anticoagulant_zongliang)){
712
-          this.addPlan.anticoagulant_zongliang = ''
713
-
714
-        }
715
-
693
+      "addPlan.dialysis_duration":function(){
694
+        this.addPlan.anticoagulant_zongliang=calculateAnticoagulantZL(1,
695
+          this.addPlan.anticoagulant_shouji,
696
+          this.addPlan.dialysis_duration,
697
+          this.addPlan.anticoagulant_weichi
698
+        );
716 699
       },
717
-      'addPlan.anticoagulant_weichi': function() {
718
-        if (this.addPlan.anticoagulant_shouji == '' && this.addPlan.anticoagulant_weichi == '') {
719
-          this.addPlan.anticoagulant_zongliang = parseInt(0) + parseInt(0)
720
-        } else if (this.addPlan.anticoagulant_shouji != '' && this.addPlan.anticoagulant_weichi != '') {
721
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
722
-        } else if (this.addPlan.anticoagulant_shouji != '' && this.addPlan.anticoagulant_shouji == '') {
723
-          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(0)
724
-        } else if (this.addPlan.anticoagulant_shouji == '' && this.addPlan.anticoagulant_shouji != '') {
725
-          this.addPlan.anticoagulant_zongliang = parseInt(0) + parseInt(this.addPlan.anticoagulant_shouji)
726
-        }
727
-
728
-        if(isNaN(this.addPlan.anticoagulant_zongliang)){
729
-          this.addPlan.anticoagulant_zongliang = ''
730
-
731
-        }
732
-
733
-        // console.log(this.addPlan.anticoagulant_zongliang)
734
-
735
-        // if(this.addPlan.anticoagulant_zongliang  === NaN){
736
-        // }
737
-
700
+      "addPlan.anticoagulant_shouji":function(){
701
+        this.addPlan.anticoagulant_zongliang=calculateAnticoagulantZL(1,
702
+          this.addPlan.anticoagulant_shouji,
703
+          this.addPlan.dialysis_duration,
704
+          this.addPlan.anticoagulant_weichi
705
+        );
738 706
       },
739
-
707
+      "addPlan.anticoagulant_weichi":function(){
708
+        this.addPlan.anticoagulant_zongliang=calculateAnticoagulantZL(1,
709
+          this.addPlan.anticoagulant_shouji,
710
+          this.addPlan.dialysis_duration,
711
+          this.addPlan.anticoagulant_weichi
712
+        );
713
+      }
740 714
     },
741 715
     components: {
742 716
       tableTitle, PatientSidebar
@@ -754,7 +728,7 @@
754 728
 
755 729
       selectnDialysisTime(val) {
756 730
         var valTime = val.split(':')
757
-        this.addPlan.dialysis_duration = valTime[0] + '.' + valTime[1]
731
+        this.addPlan.dialysis_duration = parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2))
758 732
         this.addPlan.dialysis_duration_hour = valTime[0]
759 733
         this.addPlan.dialysis_duration_minute = valTime[1]
760 734
       },

+ 2 - 2
src/xt_pages/workforce/components/tableData.vue View File

@@ -14,7 +14,7 @@
14 14
 
15 15
         <el-table-column label="姓名" width="120">
16 16
           <template slot-scope="scope">
17
-            {{ scope.row.patient}}
17
+            {{scope.row.patient}}
18 18
           </template>
19 19
         </el-table-column>
20 20
         <el-table-column label="透析日期" width="200">
@@ -1078,7 +1078,7 @@
1078 1078
                     zone_device_map[device_number.zone.name].push(device_number)
1079 1079
                   }
1080 1080
                   this.zone_device_map = zone_device_map
1081
-  
1081
+
1082 1082
                   this.zone_names = Object.keys(this.zone_device_map)
1083 1083
                   if (this.zone_names.length > 0) {
1084 1084
                     this.zone_name = this.zone_names[0]