2 Commits 2d4674407a ... 4f3316a7f2

Author SHA1 Message Date
  28169 4f3316a7f2 Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch 3 days ago
  28169 4eb26bd837 hah阿凡达 3 days ago

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

2658
             }
2658
             }
2659
          }
2659
          }
2660
         }
2660
         }
2661
+        //古镇乐生
2662
+        if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
2663
+          if(this.predialysis!=undefined){
2664
+            if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2665
+              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight)*1000
2666
+              if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
2667
+                 this.dialysisPrescription.target_ultrafiltration = 0
2668
+             }
2669
+
2670
+            }
2671
+         }
2672
+        }
2661
         if (pre != undefined) {
2673
         if (pre != undefined) {
2662
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2674
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2663
           if (pre.oxygen_uptake == 1) {
2675
           if (pre.oxygen_uptake == 1) {
3262
           }
3274
           }
3263
         }
3275
         }
3264
 
3276
 
3277
+
3278
+        //古镇乐生
3279
+         if(this.$store.getters.xt_user.template_info.org_id==10727 || this.$store.getters.xt_user.template_info.org_id==10731){
3280
+          if(this.predialysis!=undefined){
3281
+            if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
3282
+              this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight)*1000
3283
+              if(this.dialysisPrescription.target_ultrafiltration == "NaN"){
3284
+                 this.dialysisPrescription.target_ultrafiltration = 0
3285
+             }
3286
+
3287
+            }
3288
+         }
3289
+        }
3290
+
3265
       },
3291
       },
3266
       hide() {
3292
       hide() {
3267
         this.isVisibility = false
3293
         this.isVisibility = false

+ 16 - 14
src/xt_pages/medicalScheduling/index.vue View File

1925
 
1925
 
1926
         copyStaffSchedule(){
1926
         copyStaffSchedule(){
1927
             this.newVisible = true
1927
             this.newVisible = true
1928
-            const params = {
1929
-                start_time:this.getTimestamp(this.weekDayArr[0]),
1930
-                end_time:this.getTimestamp(this.weekDayArr[6])
1931
-            }
1932
-
1933
-            copyStaffSchedule(params).then(response=>{
1934
-                if(response.data.state == 1){
1935
-                var msg =  response.data.data.msg
1936
-                console.log("msg",msg)
1937
-                this.$message.success("复制成功")
1938
-                }else{
1939
-                this.$message.error("排班已存在")
1940
-                }
1941
-            })
1928
+            // const params = {
1929
+            //     start_time:this.getTimestamp(this.weekDayArr[0]),
1930
+            //     end_time:this.getTimestamp(this.weekDayArr[6]),
1931
+             
1932
+            // }
1933
+
1934
+            // copyStaffSchedule(params).then(response=>{
1935
+            //     if(response.data.state == 1){
1936
+            //     var msg =  response.data.data.msg
1937
+            //     console.log("msg",msg)
1938
+            //     this.$message.success("复制成功")
1939
+            //     }else{
1940
+            //     this.$message.error("排班已存在")
1941
+            //     }
1942
+            // })
1942
         },
1943
         },
1943
         toContinuous(){
1944
         toContinuous(){
1944
             var is_status = 0
1945
             var is_status = 0
1986
               end_time:this.getTimestamp(this.weekDayArr[6]),
1987
               end_time:this.getTimestamp(this.weekDayArr[6]),
1987
               copy_startime:copy_startime,
1988
               copy_startime:copy_startime,
1988
               copy_endtime:copy_endtime,
1989
               copy_endtime:copy_endtime,
1990
+              remark:this.remark,
1989
             }
1991
             }
1990
            this.$refs[formName].validate(valid=>{
1992
            this.$refs[formName].validate(valid=>{
1991
               if(valid){
1993
               if(valid){

+ 1 - 1
src/xt_pages/user/deathSummary.vue View File

293
           replace_reason:"",
293
           replace_reason:"",
294
           transplant:"",
294
           transplant:"",
295
           addShow:false,
295
           addShow:false,
296
-          last_record_date:moment(new Date()).format('YYYY-MM-DD'),
296
+          last_record_date:"",
297
           updateShow:false,
297
           updateShow:false,
298
           modifyShow:true,
298
           modifyShow:true,
299
           patientID:0,
299
           patientID:0,

+ 3 - 3
src/xt_pages/user/sickHistory.vue View File

371
     },
371
     },
372
     recordTime: function(timestamp) {
372
     recordTime: function(timestamp) {
373
       var time = new Date(timestamp * 1000)
373
       var time = new Date(timestamp * 1000)
374
-      return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
374
+      return parseTime(time, '{y}-{m}-{d}')
375
     },
375
     },
376
     doctorName: function(doctor_id) {
376
     doctorName: function(doctor_id) {
377
       for (let index = 0; index < this.doctorOptions.length; index++) {
377
       for (let index = 0; index < this.doctorOptions.length; index++) {
393
         id:this.edit_current_id,
393
         id:this.edit_current_id,
394
         patient_id: this.patient_id,
394
         patient_id: this.patient_id,
395
         content: this.edit_new_content,
395
         content: this.edit_new_content,
396
-        record_time: this.edit_sick_history_time + " 00:00:00",
396
+        record_time: this.edit_sick_history_time,
397
         title: this.edit_title,
397
         title: this.edit_title,
398
         is_shenyizhishi:this.edit_is_shenyizhishi,
398
         is_shenyizhishi:this.edit_is_shenyizhishi,
399
         is_fumotouxishi:this.edit_is_fumotouxishi,
399
         is_fumotouxishi:this.edit_is_fumotouxishi,
441
       let params = {
441
       let params = {
442
         patient_id: this.patient_id,
442
         patient_id: this.patient_id,
443
         content: this.new_content,
443
         content: this.new_content,
444
-        record_time: this.sick_history_time +" 00:00:00",
444
+        record_time: this.sick_history_time,
445
         title: this.title,
445
         title: this.title,
446
         is_shenyizhishi:this.is_shenyizhishi,
446
         is_shenyizhishi:this.is_shenyizhishi,
447
         is_fumotouxishi:this.is_fumotouxishi,
447
         is_fumotouxishi:this.is_fumotouxishi,

+ 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))