Browse Source

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

28169 3 days ago
parent
commit
21cb87641b
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
 {
1
 {
2
-  "version": "2999.999.13755"
2
+  "version": "2999.999.13757"
3
 }
3
 }

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

1671
 
1671
 
1672
           console.log("项目姐夫------------------------",this.project)
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
           if (this.project != null && this.is_project_open == 1) {
1681
           if (this.project != null && this.is_project_open == 1) {
1675
             this.project.map(item => {
1682
             this.project.map(item => {
1676
               let obj = {
1683
               let obj = {
2318
             }
2325
             }
2319
             var his_doctor_advices = resp.data.his_advices
2326
             var his_doctor_advices = resp.data.his_advices
2320
 
2327
 
2328
+
2329
+
2321
             this.his_is_open = resp.data.is_open_config.is_open
2330
             this.his_is_open = resp.data.is_open_config.is_open
2322
 
2331
 
2323
             var is_advice_open = resp.data.is_advice_open.is_advice_open
2332
             var is_advice_open = resp.data.is_advice_open.is_advice_open
2344
                 doctor_advices[i]['origin'] = 1
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
             if (his_doctor_advices != null) {
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
                   doctor_advices.push(his_doctor_advices[i])
2381
                   doctor_advices.push(his_doctor_advices[i])
2353
                 }
2382
                 }
2354
-                if (doctor_advices == null) {
2383
+
2384
+
2385
+              } else {
2355
                   doctor_advices = []
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
             var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
2398
             var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
2361
             var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
2399
             var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
2362
             var last_monitor_record = resp.data.last_monitor_record
2400
             var last_monitor_record = resp.data.last_monitor_record
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
             this.project.map(item => {
2521
             this.project.map(item => {
2471
               let obj = {
2522
               let obj = {
2472
                 advice_doctor: item.doctor,
2523
                 advice_doctor: item.doctor,
2473
                 start_time: item.start_time,
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
                 execution_time: item.execution_time,
2526
                 execution_time: item.execution_time,
2476
                 execution_state: item.execution_state,
2527
                 execution_state: item.execution_state,
2477
                 execution_staff: item.execution_staff,
2528
                 execution_staff: item.execution_staff,
2481
                 remark: '',
2532
                 remark: '',
2482
                 id: item.id,
2533
                 id: item.id,
2483
                 parent_id: 0,
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
               let advice = []
2539
               let advice = []
2487
               advice.push(obj)
2540
               advice.push(obj)
2491
               }
2544
               }
2492
               this.advice_groups.push(advices)
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
             let doctorAdviceArr = []
2574
             let doctorAdviceArr = []
2496
             this.doctor_advices.map(item => {
2575
             this.doctor_advices.map(item => {