Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 week ago
parent
commit
b53843343b

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

10
                 class="newDialog"
10
                 class="newDialog"
11
         >
11
         >
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
12
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo(patient.id)">{{ patient.name }}</el-button>
13
-            <div style="position: absolute;left: 20%;top: 3%;width: 75%;">
13
+            <div style="position: absolute;left: 20%;top: 3%;width: 80%;">
14
               <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
14
               <span  v-if="this.$store.getters.xt_user.template_info.org_id!=0&&this.$store.getters.xt_user.template_info.org_id!=10702">
15
                 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
15
                 透前称重:{{predialysis&&predialysis.weight_before?predialysis.weight_before:"" }} kg
16
               </span>&nbsp;&nbsp;
16
               </span>&nbsp;&nbsp;
28
                 <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
28
                 <span v-if="this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id==10702">{{last_record&&(last_record.weight_after-last_record.additional_weight).toFixed(2)?(last_record.weight_after-last_record.additional_weight).toFixed(2):""}}kg</span>
29
               </span>&nbsp;&nbsp;
29
               </span>&nbsp;&nbsp;
30
             </div>
30
             </div>
31
-            <div style="position: absolute;left: 20%;top: 10%;width: 75%;">
31
+            <div style="position: absolute;left: 20%;top: 10%;width: 80%;">
32
               <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id ==10721">
32
               <span style="display: inline-block;" v-if="this.$store.getters.xt_user.template_info.org_id==0||this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id ==10721">
33
                 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
33
                 衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:"" }} kg
34
               </span>&nbsp;&nbsp;
34
               </span>&nbsp;&nbsp;
48
               </span>
48
               </span>
49
             </div>
49
             </div>
50
 
50
 
51
-            
51
+
52
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
52
             <!-- <span style="position: absolute;left: 48%;top: 3%"  :modal = 'false'>
53
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
53
               衣物重:{{predialysis&&predialysis.additional_weight?predialysis.additional_weight:""}}kg
54
             </span> -->
54
             </span> -->
951
                     </el-col>
951
                     </el-col>
952
 
952
 
953
                     <el-col :span="8">
953
                     <el-col :span="8">
954
-                       
954
+
955
                     </el-col>
955
                     </el-col>
956
 
956
 
957
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
957
                     <el-col :span="8" v-if="isShows('置换液总量')" v-show="totalShow">
2636
       },
2636
       },
2637
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2637
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2638
         console.log("除非=======================")
2638
         console.log("除非=======================")
2639
-      
2639
+
2640
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635  || this.$store.getters.xt_user.template_info.org_id==0   || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10726){
2640
         if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635  || this.$store.getters.xt_user.template_info.org_id==0   || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10726){
2641
           if(this.predialysis!=undefined){
2641
           if(this.predialysis!=undefined){
2642
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2642
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3105
         if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726){
3105
         if(this.$store.getters.xt_user.template_info.org_id==10164 || this.$store.getters.xt_user.template_info.org_id==10721 || this.$store.getters.xt_user.template_info.org_id==10635 || this.$store.getters.xt_user.template_info.org_id==0 || this.$store.getters.xt_user.template_info.org_id == 10726){
3106
           this.getPatientBefor()
3106
           this.getPatientBefor()
3107
         }
3107
         }
3108
-      
3108
+
3109
 
3109
 
3110
         let last_weight_after = 0
3110
         let last_weight_after = 0
3111
         let weight_before = 0
3111
         let weight_before = 0
3241
         }
3241
         }
3242
 
3242
 
3243
         if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 ||  this.$store.getters.xt_user.template_info.org_id == 10727 ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3243
         if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0 || this.$store.getters.xt_user.template_info.org_id ==10702 ||  this.$store.getters.xt_user.template_info.org_id == 10727 ||  this.$store.getters.xt_user.template_info.org_id == 10721){
3244
-         
3244
+
3245
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3245
           if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3246
-          
3246
+
3247
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3247
              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3248
-          
3248
+
3249
           }
3249
           }
3250
         }
3250
         }
3251
-      
3251
+
3252
       },
3252
       },
3253
       hide() {
3253
       hide() {
3254
         this.isVisibility = false
3254
         this.isVisibility = false
3364
                 ParamsQuery['mode'] = '1'
3364
                 ParamsQuery['mode'] = '1'
3365
                 ParamsQuery['patient_id'] = this.patient.id
3365
                 ParamsQuery['patient_id'] = this.patient.id
3366
                 console.log('第一', ParamsQuery)
3366
                 console.log('第一', ParamsQuery)
3367
-             
3367
+
3368
 
3368
 
3369
                 postPrescription(ParamsQuery).then(response => {
3369
                 postPrescription(ParamsQuery).then(response => {
3370
                   if (response.data.state == 0) {
3370
                   if (response.data.state == 0) {
4893
         })
4893
         })
4894
     },
4894
     },
4895
     getPatientBefor(){
4895
     getPatientBefor(){
4896
-     
4896
+
4897
        var patient_id = 0
4897
        var patient_id = 0
4898
        var record_date =""
4898
        var record_date =""
4899
        if(this.$route.query.patient_id!=undefined){
4899
        if(this.$route.query.patient_id!=undefined){
4931
             // }
4931
             // }
4932
           }
4932
           }
4933
           if(prescription!=undefined){
4933
           if(prescription!=undefined){
4934
-           
4934
+
4935
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4935
             this.dialysisPrescription.target_ultrafiltration = prescription.target_ultrafiltration
4936
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4936
             this.dialysisPrescription.prescription_water = prescription.prescription_water
4937
           }
4937
           }
4938
 
4938
 
4939
          }
4939
          }
4940
-      }) 
4940
+      })
4941
     },
4941
     },
4942
     unique(arr) {
4942
     unique(arr) {
4943
       const res = new Map()
4943
       const res = new Map()
5561
 
5561
 
5562
         }
5562
         }
5563
 
5563
 
5564
-      
5564
+
5565
 
5565
 
5566
       },
5566
       },
5567
       stockType: function() {
5567
       stockType: function() {
5631
 
5631
 
5632
       this.org_id = this.$store.getters.xt_user.org.id
5632
       this.org_id = this.$store.getters.xt_user.org.id
5633
       console.log('this.org_id',this.org_id);
5633
       console.log('this.org_id',this.org_id);
5634
-      
5634
+
5635
     }
5635
     }
5636
   }
5636
   }
5637
 </script>
5637
 </script>

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))