Sfoglia il codice sorgente

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

yq1 2 giorni fa
parent
commit
9af145da67

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

@@ -2658,6 +2658,18 @@ mu
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 2673
         if (pre != undefined) {
2662 2674
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2663 2675
           if (pre.oxygen_uptake == 1) {
@@ -3262,6 +3274,20 @@ mu
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 3292
       hide() {
3267 3293
         this.isVisibility = false

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

@@ -1925,20 +1925,21 @@ export default {
1925 1925
 
1926 1926
         copyStaffSchedule(){
1927 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 1944
         toContinuous(){
1944 1945
             var is_status = 0
@@ -1986,6 +1987,7 @@ export default {
1986 1987
               end_time:this.getTimestamp(this.weekDayArr[6]),
1987 1988
               copy_startime:copy_startime,
1988 1989
               copy_endtime:copy_endtime,
1990
+              remark:this.remark,
1989 1991
             }
1990 1992
            this.$refs[formName].validate(valid=>{
1991 1993
               if(valid){

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

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

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

@@ -371,7 +371,7 @@ export default {
371 371
     },
372 372
     recordTime: function(timestamp) {
373 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 376
     doctorName: function(doctor_id) {
377 377
       for (let index = 0; index < this.doctorOptions.length; index++) {
@@ -393,7 +393,7 @@ export default {
393 393
         id:this.edit_current_id,
394 394
         patient_id: this.patient_id,
395 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 397
         title: this.edit_title,
398 398
         is_shenyizhishi:this.edit_is_shenyizhishi,
399 399
         is_fumotouxishi:this.edit_is_fumotouxishi,
@@ -441,7 +441,7 @@ export default {
441 441
       let params = {
442 442
         patient_id: this.patient_id,
443 443
         content: this.new_content,
444
-        record_time: this.sick_history_time +" 00:00:00",
444
+        record_time: this.sick_history_time,
445 445
         title: this.title,
446 446
         is_shenyizhishi:this.is_shenyizhishi,
447 447
         is_fumotouxishi:this.is_fumotouxishi,

+ 13 - 13
src/xt_permission.js Vedi File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))