Browse Source

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

yq1 1 month ago
parent
commit
54ea2b787d
2 changed files with 89 additions and 10 deletions
  1. 1 1
      build/cdn.json
  2. 88 9
      src/pages/main/today/TodayTab.vue

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "2999.999.13755"
2
+  "version": "2999.999.13757"
3 3
 }

+ 88 - 9
src/pages/main/today/TodayTab.vue View File

@@ -1671,6 +1671,13 @@ export default {
1671 1671
 
1672 1672
           console.log("项目姐夫------------------------",this.project)
1673 1673
 
1674
+          console.log("项目开关-----------------",this.is_project_open)
1675
+
1676
+          //针对濉溪杏康
1677
+          if(this.$store.getters.user.template_info.org_id == 10721){
1678
+            this.is_project_open = 2
1679
+          }
1680
+
1674 1681
           if (this.project != null && this.is_project_open == 1) {
1675 1682
             this.project.map(item => {
1676 1683
               let obj = {
@@ -2318,6 +2325,8 @@ export default {
2318 2325
             }
2319 2326
             var his_doctor_advices = resp.data.his_advices
2320 2327
 
2328
+
2329
+
2321 2330
             this.his_is_open = resp.data.is_open_config.is_open
2322 2331
 
2323 2332
             var is_advice_open = resp.data.is_advice_open.is_advice_open
@@ -2344,19 +2353,48 @@ export default {
2344 2353
                 doctor_advices[i]['origin'] = 1
2345 2354
               }
2346 2355
             }
2356
+            // if (his_doctor_advices != null) {
2357
+            //   for (let i = 0; i < his_doctor_advices.length; i++) {
2358
+            //     his_doctor_advices[i]['origin'] = 2
2359
+            //     his_doctor_advices[i]['way'] = 1
2360
+            //     if (doctor_advices != null) {
2361
+            //       doctor_advices.push(his_doctor_advices[i])
2362
+            //     }
2363
+            //     if (doctor_advices == null) {
2364
+            //       doctor_advices = []
2365
+            //       doctor_advices.push(his_doctor_advices[i])
2366
+            //     }
2367
+            //   }
2368
+            // }
2347 2369
             if (his_doctor_advices != null) {
2348
-              for (let i = 0; i < his_doctor_advices.length; i++) {
2349
-                his_doctor_advices[i]['origin'] = 2
2350
-                his_doctor_advices[i]['way'] = 1
2351
-                if (doctor_advices != null) {
2370
+            for (let i = 0; i < his_doctor_advices.length; i++) {
2371
+              his_doctor_advices[i]['origin'] = 2
2372
+              his_doctor_advices[i]['way'] = 1
2373
+              if (doctor_advices != null) {
2374
+
2375
+                //针对 濉溪杏康血液透析中心
2376
+                if(this.$store.getters.user.template_info.org_id == 10721){
2377
+                  if(his_doctor_advices[i].execution_frequency.indexOf("上机前") == -1 && his_doctor_advices[i].delivery_way.indexOf("口服")==-1 && his_doctor_advices[i].advice_name.indexOf("胰岛素")==-1){
2378
+                    doctor_advices.push(his_doctor_advices[i])
2379
+                  }
2380
+                }else{
2352 2381
                   doctor_advices.push(his_doctor_advices[i])
2353 2382
                 }
2354
-                if (doctor_advices == null) {
2383
+
2384
+
2385
+              } else {
2355 2386
                   doctor_advices = []
2356
-                  doctor_advices.push(his_doctor_advices[i])
2357
-                }
2387
+                  //针对 濉溪杏康血液透析中心
2388
+                  if(this.$store.getters.user.template_info.org_id == 10721){
2389
+                    if(his_doctor_advices[i].execution_frequency.indexOf("上机前") == -1 && his_doctor_advices[i].delivery_way.indexOf("口服")==-1 && his_doctor_advices[i].advice_name.indexOf("胰岛素")==-1){
2390
+                      doctor_advices.push(his_doctor_advices[i])
2391
+                    }
2392
+                  }else{
2393
+                       doctor_advices.push(his_doctor_advices[i])
2394
+                  }
2358 2395
               }
2359 2396
             }
2397
+          }
2360 2398
             var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
2361 2399
             var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
2362 2400
             var last_monitor_record = resp.data.last_monitor_record
@@ -2467,11 +2505,24 @@ export default {
2467 2505
               }
2468 2506
             }
2469 2507
 
2508
+
2509
+            this.is_project_open = resp.data.is_project_open_config.is_open
2510
+
2511
+            console.log("第二项目姐夫------------------------",this.project)
2512
+
2513
+            console.log("第二项目开关-----------------",this.is_project_open)
2514
+
2515
+          //针对濉溪杏康
2516
+          if(this.$store.getters.user.template_info.org_id == 10721){
2517
+            this.is_project_open = 2
2518
+          }
2519
+
2520
+          if (this.project != null && this.is_project_open == 1) {
2470 2521
             this.project.map(item => {
2471 2522
               let obj = {
2472 2523
                 advice_doctor: item.doctor,
2473 2524
                 start_time: item.start_time,
2474
-                advice_name: item.type == 2 ? item.project.project_name : item.good_info.good_name,
2525
+                advice_name: item.team_id > 0 && item.is_check_team == 1 ? item.team.project_team : item.type == 2 ? item.project.project_name + ' ' + item.count + item.project.unit : item.good_info.good_name + ' ' + item.good_info.specification_name + ' ' + item.count + item.good_info.packing_unit,
2475 2526
                 execution_time: item.execution_time,
2476 2527
                 execution_state: item.execution_state,
2477 2528
                 execution_staff: item.execution_staff,
@@ -2481,7 +2532,9 @@ export default {
2481 2532
                 remark: '',
2482 2533
                 id: item.id,
2483 2534
                 parent_id: 0,
2484
-                projectType: 2
2535
+                projectType: 2,
2536
+                team_id: item.team_id,
2537
+                is_check_team: item.is_check_team
2485 2538
               }
2486 2539
               let advice = []
2487 2540
               advice.push(obj)
@@ -2491,6 +2544,32 @@ export default {
2491 2544
               }
2492 2545
               this.advice_groups.push(advices)
2493 2546
             })
2547
+          }
2548
+
2549
+            // this.project.map(item => {
2550
+            //   let obj = {
2551
+            //     advice_doctor: item.doctor,
2552
+            //     start_time: item.start_time,
2553
+            //     advice_name: item.type == 2 ? item.project.project_name : item.good_info.good_name,
2554
+            //     execution_time: item.execution_time,
2555
+            //     execution_state: item.execution_state,
2556
+            //     execution_staff: item.execution_staff,
2557
+            //     check_time: item.check_time,
2558
+            //     check_state: item.check_state,
2559
+            //     checker: item.checker,
2560
+            //     remark: '',
2561
+            //     id: item.id,
2562
+            //     parent_id: 0,
2563
+            //     projectType: 2
2564
+            //   }
2565
+            //   let advice = []
2566
+            //   advice.push(obj)
2567
+            //   let advices = {
2568
+            //     advices: advice,
2569
+            //     group_no: 0
2570
+            //   }
2571
+            //   this.advice_groups.push(advices)
2572
+            // })
2494 2573
 
2495 2574
             let doctorAdviceArr = []
2496 2575
             this.doctor_advices.map(item => {