Procházet zdrojové kódy

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

xiaoming_global před 5 roky
rodič
revize
9ec79ab2ad

+ 1 - 1
build/cdn.json Zobrazit soubor

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.0.317"
2
+  "version": "1.0.318"
3 3
 }

+ 52 - 53
src/pages/main/dialog/AssessmentDialog.vue Zobrazit soubor

@@ -469,7 +469,7 @@
469 469
   export default {
470 470
     name: 'PrescriptionDialog',
471 471
     props: {
472
-      dry_weight:{
472
+      dry_weight: {
473 473
         type: Object,
474 474
 
475 475
       },
@@ -481,15 +481,15 @@
481 481
       },
482 482
       last_predialysis: {
483 483
         type: Object,
484
-      },  admin_users_prop: {
484
+      }, admin_users_prop: {
485 485
         type: Array
486 486
       },
487 487
     },
488
-    data () {
488
+    data() {
489 489
       return {
490
-        propDryForm:{
491
-          weight:0,
492
-          doctor:[],
490
+        propDryForm: {
491
+          weight: 0,
492
+          doctor: [],
493 493
         },
494 494
         isShowDialog: true,
495 495
         //sub menu prop
@@ -506,13 +506,13 @@
506 506
           isHasOther: 1 //是否有其他选项  1是 2否
507 507
         },
508 508
         hemorrhage_state: false,
509
-        infect_state:false,
510
-        hemorrhages:[
509
+        infect_state: false,
510
+        hemorrhages: [
511 511
           {id: 1, name: "有"},
512 512
           {id: 2, name: "无"},
513 513
         ],
514 514
 
515
-        infects:[
515
+        infects: [
516 516
           {id: 1, name: "无"},
517 517
           {id: 2, name: "有"},
518 518
         ],
@@ -520,7 +520,7 @@
520 520
         formValue: {
521 521
           weight_before: '',
522 522
           dry_weight: '',
523
-          additional_weight :'',
523
+          additional_weight: '',
524 524
           temperature: '',
525 525
           systolic_blood_pressure: '',
526 526
           diastolic_blood_pressure: '',
@@ -550,15 +550,15 @@
550 550
           blood_access_noise: '',
551 551
           internal_fistula_other: '',
552 552
           blood_access_internal_fistula: '',
553
-          machine_type:'',
554
-          breathing_rate:'',
555
-          is_infect:0,
556
-          exposed:'',
557
-          skin:'',
558
-          skin_other:'',
559
-          infect_other:'',
560
-          ductus_arantii_other:'',
561
-          puncture_needle:'',
553
+          machine_type: '',
554
+          breathing_rate: '',
555
+          is_infect: 0,
556
+          exposed: '',
557
+          skin: '',
558
+          skin_other: '',
559
+          infect_other: '',
560
+          ductus_arantii_other: '',
561
+          puncture_needle: '',
562 562
 
563 563
         },
564 564
 
@@ -567,16 +567,16 @@
567 567
       }
568 568
     },
569 569
     methods: {
570
-      menuDryComfirm(val){
570
+      menuDryComfirm(val) {
571 571
         this.isShowDialog = true
572 572
         this.$refs.dry.close()
573 573
         this.formValue.dry_weight = val.dry_weight
574 574
         this.propDryForm.weight = val.dry_weight
575 575
         this.dry_weight = val
576
-        this.$emit("weight_update",this.dry_weight);
576
+        this.$emit("weight_update", this.dry_weight);
577 577
 
578 578
       },
579
-      menuDryCancle(){
579
+      menuDryCancle() {
580 580
         this.isShowDialog = true
581 581
         this.$refs.dry.close()
582 582
 
@@ -584,11 +584,11 @@
584 584
 
585 585
 
586 586
       },
587
-      isShow(name){
587
+      isShow(name) {
588 588
         var filedList = this.$store.getters.user.fileds
589 589
 
590
-        for (let i = 0; i < filedList.length; i++){
591
-          if(filedList[i].module == 3 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
590
+        for (let i = 0; i < filedList.length; i++) {
591
+          if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
592 592
             return true
593 593
           }
594 594
         }
@@ -661,7 +661,7 @@
661 661
         }
662 662
         return emergencyTreatmentName
663 663
 
664
-      },getSkin:function(id){
664
+      }, getSkin: function (id) {
665 665
         if (id == -1) {
666 666
           return '其他'
667 667
         }
@@ -1224,23 +1224,23 @@
1224 1224
             this.formValue.puncture_way = val.selectId
1225 1225
             break
1226 1226
           case 19:
1227
-            if( val.selectId == 1){
1227
+            if (val.selectId == 1) {
1228 1228
               this.hemorrhage_state = true
1229 1229
               this.formValue.is_hemorrhage = val.selectId
1230
-            }else if(val.selectId == 2){
1230
+            } else if (val.selectId == 2) {
1231 1231
               this.hemorrhage_state = false
1232 1232
               this.formValue.is_hemorrhage = val.selectId
1233
-            }else if(this.formValue.is_hemorrhage == -2){
1233
+            } else if (this.formValue.is_hemorrhage == -2) {
1234 1234
             }
1235 1235
             break
1236 1236
           case 20:
1237
-            if( val.selectId == 1){
1237
+            if (val.selectId == 1) {
1238 1238
               this.infect_state = true
1239 1239
               this.formValue.is_infect = val.selectId.toString()
1240
-            }else if(val.selectId == 2){
1240
+            } else if (val.selectId == 2) {
1241 1241
               this.infect_state = false
1242 1242
               this.formValue.is_infect = val.selectId.toString()
1243
-            }else if(this.formValue.is_infect == -2){
1243
+            } else if (this.formValue.is_infect == -2) {
1244 1244
             }
1245 1245
             break
1246 1246
           case 21:
@@ -1288,9 +1288,9 @@
1288 1288
       },
1289 1289
       commitInfo: function () {
1290 1290
         Toast.loading({forbidClick: true, duration: 0})
1291
-        if (this.formValue.dry_weight == undefined){
1291
+        if (this.formValue.dry_weight == undefined) {
1292 1292
           this.formValue.dry_weight = "0"
1293
-        }else{
1293
+        } else {
1294 1294
 
1295 1295
           this.formValue.dry_weight = this.formValue.dry_weight.toString()
1296 1296
         }
@@ -1307,15 +1307,15 @@
1307 1307
             this.$emit('evaluation', response.data.data.evaluation)
1308 1308
           }
1309 1309
         })
1310
-      },showDryWeight:function(){
1311
-        if(this.$store.getters.user.user.user_type == 3){
1310
+      }, showDryWeight: function () {
1311
+        if (this.$store.getters.user.user.user_type == 3) {
1312 1312
           return
1313 1313
         }
1314 1314
         this.isShowDialog = false
1315 1315
         this.$refs.dry.open()
1316
-        this.propDryForm.doctor=[]
1317
-        for (let i = 0; i < this.admin_users_prop.length;i++){
1318
-          if(this.admin_users_prop[i].user_type == 2 || this.admin_users_prop[i].user_type == 1){
1316
+        this.propDryForm.doctor = []
1317
+        for (let i = 0; i < this.admin_users_prop.length; i++) {
1318
+          if (this.admin_users_prop[i].user_type == 2 || this.admin_users_prop[i].user_type == 1) {
1319 1319
             this.propDryForm.doctor.push(this.admin_users_prop[i])
1320 1320
           }
1321 1321
         }
@@ -1331,7 +1331,7 @@
1331 1331
             dialogTop.scrollTop = 0
1332 1332
           })
1333 1333
         }
1334
-      },menuEmpty:function (val) {
1334
+      }, menuEmpty: function (val) {
1335 1335
         this.visibility = false
1336 1336
         this.isShowDialog = true
1337 1337
         switch (val.type) {
@@ -1367,7 +1367,7 @@
1367 1367
       DryWeightMenu,
1368 1368
       CheckBoxSubMenu,
1369 1369
 
1370
-    }, created () {
1370
+    }, created() {
1371 1371
 
1372 1372
       var date = this.$route.query && this.$route.query.date
1373 1373
       date *= 1000
@@ -1408,20 +1408,19 @@
1408 1408
         // this.$set(this.formValue, 'pulse_frequency', this.last_predialysis['pulse_frequency'])
1409 1409
       }
1410 1410
 
1411
-      if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1412
-        this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1413
-      }
1411
+      // if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1412
+      //   this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1413
+      // }
1414 1414
 
1415
-      if (this.$store.getters.user.template_info.template_id == 6 ) {
1415
+      // if (this.$store.getters.user.template_info.template_id == 6 ) {
1416 1416
 
1417
-        if(this.dry_weight != null && this.dry_weight.id != undefined){
1418
-          this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
1419
-          this.propDryForm.weight = this.dry_weight.dry_weight.toString()
1420
-        }else{
1421
-          if(this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1422
-            this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1423
-            this.propDryForm.weight = this.formValue.dry_weight
1424
-          }
1417
+      if (this.dry_weight != null && this.dry_weight.id != undefined) {
1418
+        this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
1419
+        this.propDryForm.weight = this.dry_weight.dry_weight.toString()
1420
+      } else {
1421
+        if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1422
+          this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1423
+          this.propDryForm.weight = this.formValue.dry_weight
1425 1424
         }
1426 1425
       }
1427 1426
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0

+ 3 - 3
src/pages/main/dialog/subMenu/MsgTip.vue Zobrazit soubor

@@ -61,7 +61,7 @@
61 61
         <label class="name" for="txms">上次透后体重(kg)</label>
62 62
         <div class="content">
63 63
           <span class="text" id="txms">{{
64
-            predialysis.weight_after_last_transparency
64
+            last_record.weight_after
65 65
           }}</span>
66 66
         </div>
67 67
       </div>
@@ -77,10 +77,10 @@ export default {
77 77
   created() {
78 78
     if (
79 79
       this.predialysis.weight_before > 0 &&
80
-      this.predialysis.weight_after_last_transparency > 0
80
+      this.last_record.weight_after > 0
81 81
     ) {
82 82
       add_weight = parseFloat(
83
-        this.predialysis.weight_before - this.predialysis.weight_after_last_transparency
83
+        this.predialysis.weight_before - this.last_record.weight_after
84 84
       ).toFixed(2);
85 85
     }
86 86
   },

+ 1 - 1
src/pages/main/template/DialysisPrintOrderOne.vue Zobrazit soubor

@@ -338,7 +338,7 @@
338 338
                     <td width="70">
339 339
                       <div class="under-line">&nbsp;{{prescription.target_ultrafiltration?prescription.target_ultrafiltration:''}}</div>
340 340
                     </td>
341
-                    <td width="20">ml</td>
341
+                    <td width="20">L</td>
342 342
                   </tr>
343 343
                   </tbody>
344 344
                 </table>

+ 4 - 0
src/pages/main/today/dialysisPrescription.vue Zobrazit soubor

@@ -7,6 +7,10 @@
7 7
     </h2>
8 8
     <div class="plate">
9 9
       <ul>
10
+        <li v-if="isShow('透析模式')">
11
+          <label>透析模式 :</label>
12
+          <span class="content">{{dialysis_mode}}</span>
13
+        </li>
10 14
         <li v-if="isShow('透析模式')">
11 15
           <label>透析模式 :</label>
12 16
           <span class="content">{{dialysis_mode}}</span>