Ver código fonte

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

xiaoming_global 5 anos atrás
pai
commit
9ec79ab2ad

+ 1 - 1
build/cdn.json Ver arquivo

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

+ 52 - 53
src/pages/main/dialog/AssessmentDialog.vue Ver arquivo

469
   export default {
469
   export default {
470
     name: 'PrescriptionDialog',
470
     name: 'PrescriptionDialog',
471
     props: {
471
     props: {
472
-      dry_weight:{
472
+      dry_weight: {
473
         type: Object,
473
         type: Object,
474
 
474
 
475
       },
475
       },
481
       },
481
       },
482
       last_predialysis: {
482
       last_predialysis: {
483
         type: Object,
483
         type: Object,
484
-      },  admin_users_prop: {
484
+      }, admin_users_prop: {
485
         type: Array
485
         type: Array
486
       },
486
       },
487
     },
487
     },
488
-    data () {
488
+    data() {
489
       return {
489
       return {
490
-        propDryForm:{
491
-          weight:0,
492
-          doctor:[],
490
+        propDryForm: {
491
+          weight: 0,
492
+          doctor: [],
493
         },
493
         },
494
         isShowDialog: true,
494
         isShowDialog: true,
495
         //sub menu prop
495
         //sub menu prop
506
           isHasOther: 1 //是否有其他选项  1是 2否
506
           isHasOther: 1 //是否有其他选项  1是 2否
507
         },
507
         },
508
         hemorrhage_state: false,
508
         hemorrhage_state: false,
509
-        infect_state:false,
510
-        hemorrhages:[
509
+        infect_state: false,
510
+        hemorrhages: [
511
           {id: 1, name: "有"},
511
           {id: 1, name: "有"},
512
           {id: 2, name: "无"},
512
           {id: 2, name: "无"},
513
         ],
513
         ],
514
 
514
 
515
-        infects:[
515
+        infects: [
516
           {id: 1, name: "无"},
516
           {id: 1, name: "无"},
517
           {id: 2, name: "有"},
517
           {id: 2, name: "有"},
518
         ],
518
         ],
520
         formValue: {
520
         formValue: {
521
           weight_before: '',
521
           weight_before: '',
522
           dry_weight: '',
522
           dry_weight: '',
523
-          additional_weight :'',
523
+          additional_weight: '',
524
           temperature: '',
524
           temperature: '',
525
           systolic_blood_pressure: '',
525
           systolic_blood_pressure: '',
526
           diastolic_blood_pressure: '',
526
           diastolic_blood_pressure: '',
550
           blood_access_noise: '',
550
           blood_access_noise: '',
551
           internal_fistula_other: '',
551
           internal_fistula_other: '',
552
           blood_access_internal_fistula: '',
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
       }
567
       }
568
     },
568
     },
569
     methods: {
569
     methods: {
570
-      menuDryComfirm(val){
570
+      menuDryComfirm(val) {
571
         this.isShowDialog = true
571
         this.isShowDialog = true
572
         this.$refs.dry.close()
572
         this.$refs.dry.close()
573
         this.formValue.dry_weight = val.dry_weight
573
         this.formValue.dry_weight = val.dry_weight
574
         this.propDryForm.weight = val.dry_weight
574
         this.propDryForm.weight = val.dry_weight
575
         this.dry_weight = val
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
         this.isShowDialog = true
580
         this.isShowDialog = true
581
         this.$refs.dry.close()
581
         this.$refs.dry.close()
582
 
582
 
584
 
584
 
585
 
585
 
586
       },
586
       },
587
-      isShow(name){
587
+      isShow(name) {
588
         var filedList = this.$store.getters.user.fileds
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
             return true
592
             return true
593
           }
593
           }
594
         }
594
         }
661
         }
661
         }
662
         return emergencyTreatmentName
662
         return emergencyTreatmentName
663
 
663
 
664
-      },getSkin:function(id){
664
+      }, getSkin: function (id) {
665
         if (id == -1) {
665
         if (id == -1) {
666
           return '其他'
666
           return '其他'
667
         }
667
         }
1224
             this.formValue.puncture_way = val.selectId
1224
             this.formValue.puncture_way = val.selectId
1225
             break
1225
             break
1226
           case 19:
1226
           case 19:
1227
-            if( val.selectId == 1){
1227
+            if (val.selectId == 1) {
1228
               this.hemorrhage_state = true
1228
               this.hemorrhage_state = true
1229
               this.formValue.is_hemorrhage = val.selectId
1229
               this.formValue.is_hemorrhage = val.selectId
1230
-            }else if(val.selectId == 2){
1230
+            } else if (val.selectId == 2) {
1231
               this.hemorrhage_state = false
1231
               this.hemorrhage_state = false
1232
               this.formValue.is_hemorrhage = val.selectId
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
             break
1235
             break
1236
           case 20:
1236
           case 20:
1237
-            if( val.selectId == 1){
1237
+            if (val.selectId == 1) {
1238
               this.infect_state = true
1238
               this.infect_state = true
1239
               this.formValue.is_infect = val.selectId.toString()
1239
               this.formValue.is_infect = val.selectId.toString()
1240
-            }else if(val.selectId == 2){
1240
+            } else if (val.selectId == 2) {
1241
               this.infect_state = false
1241
               this.infect_state = false
1242
               this.formValue.is_infect = val.selectId.toString()
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
             break
1245
             break
1246
           case 21:
1246
           case 21:
1288
       },
1288
       },
1289
       commitInfo: function () {
1289
       commitInfo: function () {
1290
         Toast.loading({forbidClick: true, duration: 0})
1290
         Toast.loading({forbidClick: true, duration: 0})
1291
-        if (this.formValue.dry_weight == undefined){
1291
+        if (this.formValue.dry_weight == undefined) {
1292
           this.formValue.dry_weight = "0"
1292
           this.formValue.dry_weight = "0"
1293
-        }else{
1293
+        } else {
1294
 
1294
 
1295
           this.formValue.dry_weight = this.formValue.dry_weight.toString()
1295
           this.formValue.dry_weight = this.formValue.dry_weight.toString()
1296
         }
1296
         }
1307
             this.$emit('evaluation', response.data.data.evaluation)
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
           return
1312
           return
1313
         }
1313
         }
1314
         this.isShowDialog = false
1314
         this.isShowDialog = false
1315
         this.$refs.dry.open()
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
             this.propDryForm.doctor.push(this.admin_users_prop[i])
1319
             this.propDryForm.doctor.push(this.admin_users_prop[i])
1320
           }
1320
           }
1321
         }
1321
         }
1331
             dialogTop.scrollTop = 0
1331
             dialogTop.scrollTop = 0
1332
           })
1332
           })
1333
         }
1333
         }
1334
-      },menuEmpty:function (val) {
1334
+      }, menuEmpty: function (val) {
1335
         this.visibility = false
1335
         this.visibility = false
1336
         this.isShowDialog = true
1336
         this.isShowDialog = true
1337
         switch (val.type) {
1337
         switch (val.type) {
1367
       DryWeightMenu,
1367
       DryWeightMenu,
1368
       CheckBoxSubMenu,
1368
       CheckBoxSubMenu,
1369
 
1369
 
1370
-    }, created () {
1370
+    }, created() {
1371
 
1371
 
1372
       var date = this.$route.query && this.$route.query.date
1372
       var date = this.$route.query && this.$route.query.date
1373
       date *= 1000
1373
       date *= 1000
1408
         // this.$set(this.formValue, 'pulse_frequency', this.last_predialysis['pulse_frequency'])
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
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0
1426
       this.hemorrhage_state = this.formValue.is_hemorrhage == 0

+ 3 - 3
src/pages/main/dialog/subMenu/MsgTip.vue Ver arquivo

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

+ 1 - 1
src/pages/main/template/DialysisPrintOrderOne.vue Ver arquivo

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

+ 4 - 0
src/pages/main/today/dialysisPrescription.vue Ver arquivo

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