Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 week ago
parent
commit
6858d31004

+ 30 - 26
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

@@ -662,7 +662,7 @@
662 662
                           <td>{{monitor_record.blood_flow_volume? monitor_record.blood_flow_volume: ""}}</td>
663 663
                           <td>{{monitor_record.replacement_rate ? monitor_record.replacement_rate : '/'}}</td>
664 664
                           <td>{{monitor_record.ultrafiltration_rate ? monitor_record.ultrafiltration_rate : '/' }}</td>
665
-                          <td>{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: ""}}</td>
665
+                          <td>{{monitor_record.ultrafiltration_volume? monitor_record.ultrafiltration_volume: "0"}}</td>
666 666
                           <td>{{ monitor_record.venous_pressure ? monitor_record.venous_pressure : "/"}}</td>
667 667
                           <td>{{ monitor_record.transmembrane_pressure ? monitor_record.transmembrane_pressure : ""}}</td>
668 668
                           <td>{{ monitor_record.sodium_concentration ? monitor_record.sodium_concentration : "" }}</td>
@@ -899,6 +899,7 @@
899 899
                                 <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
900 900
                             </td>
901 901
                           </tr>
902
+                        
902 903
                         </template>
903 904
                       </tbody>
904 905
                     </table>
@@ -1896,31 +1897,34 @@ export default {
1896 1897
                 this.records[i].his_advices.forEach((item,index)=>{
1897 1898
                   // console.log("itemwowowowowo",item)
1898 1899
                   let { new_groupno } = item
1899
-                  if(!objInfo[new_groupno]){
1900
-                    objInfo[new_groupno] = {
1901
-                      new_groupno,
1902
-                      child:[],
1903
-                      start_time:item.start_time,
1904
-                      advice_doctor:item.advice_doctor,
1905
-                      advice_name:item.advice_name,
1906
-                      check_time:item.check_time,
1907
-                      checker:item.checker,
1908
-                      delivery_way:item.delivery_way,
1909
-                      execution_frequency:item.execution_frequency,
1910
-                      execution_staff:item.execution_staff,
1911
-                      execution_state:item.execution_state,
1912
-                      execution_time:item.execution_time,
1913
-                      frequency_type:item.frequency_type,
1914
-                      new_groupno:item.new_groupno,
1915
-                      advice_desc:item.advice_desc,
1916
-                      drug_spec_unit:item.drug_spec_unit,
1917
-                      prescribing_number:item.prescribing_number,
1918
-                      prescribing_number_unit:item.prescribing_number_unit,
1919
-                      single_dose:item.single_dose,
1920
-                      single_dose_unit:item.single_dose_unit,
1921
-                      parent_id:item.parent_id,
1922
-                      remark:item.remark,
1923
-
1900
+                  if(item.delivery_way !='口服' && item.delivery_way!='中药口服'){
1901
+                    if(!objInfo[new_groupno] ){
1902
+                      console.log('66666666',item);
1903
+                      objInfo[new_groupno] = {
1904
+                        new_groupno,
1905
+                        child:[],
1906
+                        start_time:item.start_time,
1907
+                        advice_doctor:item.advice_doctor,
1908
+                        advice_name:item.advice_name,
1909
+                        check_time:item.check_time,
1910
+                        checker:item.checker,
1911
+                        delivery_way:item.delivery_way,
1912
+                        execution_frequency:item.execution_frequency,
1913
+                        execution_staff:item.execution_staff,
1914
+                        execution_state:item.execution_state,
1915
+                        execution_time:item.execution_time,
1916
+                        frequency_type:item.frequency_type,
1917
+                        new_groupno:item.new_groupno,
1918
+                        advice_desc:item.advice_desc,
1919
+                        drug_spec_unit:item.drug_spec_unit,
1920
+                        prescribing_number:item.prescribing_number,
1921
+                        prescribing_number_unit:item.prescribing_number_unit,
1922
+                        single_dose:item.single_dose,
1923
+                        single_dose_unit:item.single_dose_unit,
1924
+                        parent_id:item.parent_id,
1925
+                        remark:item.remark,
1926
+
1927
+                      }
1924 1928
                     }
1925 1929
                   }
1926 1930
                 })

+ 155 - 153
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

@@ -605,7 +605,7 @@
605 605
                             text-align: center;
606 606
                             font-weight: 520;
607 607
                             font-size: 16px;
608
-                            padding: 0px 8px;
608
+                            padding: 6px 8px;
609 609
                             line-height: 30px;
610 610
                           "
611 611
                         >
@@ -639,12 +639,12 @@
639 639
                         <td width="200">病情变化及处理</td>
640 640
                       </tr>
641 641
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex" style="">
642
-                        <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
643
-                        <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
644
-                        <td>{{monitor.replacement_rate ? monitor.replacement_rate : '/'}}</td>
645
-                        <td>{{monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/' }}</td>
646
-                        <td>{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</td>
647
-                        <td>{{ monitor.venous_pressure ? monitor.venous_pressure : "/"}}</td>
642
+                        <td height="40px">{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
643
+                        <td >{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
644
+                        <td >{{monitor.replacement_rate ? monitor.replacement_rate : '/'}}</td>
645
+                        <td >{{monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/' }}</td>
646
+                        <td >{{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</td>
647
+                        <td >{{ monitor.venous_pressure ? monitor.venous_pressure : "/"}}</td>
648 648
                         <td>{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : ""}}</td>
649 649
                         <td>{{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</td>
650 650
                         <!-- 温度 -->
@@ -703,7 +703,7 @@
703 703
                             text-align: center;
704 704
                             font-weight: 520;
705 705
                             font-size: 16px;
706
-                            padding: 0px 8px;
706
+                            padding: 6px 8px;
707 707
                             line-height: 30px;
708 708
                           "
709 709
                         >
@@ -712,7 +712,7 @@
712 712
                       </tr>
713 713
 
714 714
                       <tr style="line-height: 35px; padding: 8px 5px">
715
-                        <td style="font-size: 16px" width="10%">时间</td>
715
+                        <td style="font-size: 16px;height: 32px;" width="10%">时间</td>
716 716
                         <td style="font-size: 16px" colspan="2" width="45%">
717 717
                           医嘱内容
718 718
                         </td>
@@ -819,7 +819,7 @@
819 819
                     text-align: center;
820 820
                     font-weight: 520;
821 821
                     font-size: 16px;
822
-                    padding: 0px 8px;
822
+                    padding: 6px 8px;
823 823
                     line-height: 30px;
824 824
                   "
825 825
                 >
@@ -2284,7 +2284,7 @@ export default {
2284 2284
         }
2285 2285
         console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
2286 2286
 
2287
-        if(this.org_id == 10489 || this.org_id == 0){
2287
+        if(this.org_id == 10489 ){
2288 2288
           let projectsOne = [];
2289 2289
           response.data.data.projects.map((item) => {
2290 2290
               projectsOne.push(item);
@@ -2295,184 +2295,186 @@ export default {
2295 2295
         }
2296 2296
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
2297 2297
 
2298
-        //华池
2299
-        if(this.org_id == 10440){
2300
-           var parint_id =0
2301
-           var newArr = []
2302
-           if(this.doctor_advices!=null&&this.doctor_advices.length>0){
2303
-
2304
-             for(let i=0;i<this.doctor_advices.length;i++){
2305
-               if(this.doctor_advices[i].advice_name.indexOf("低分子")!=-1){
2306
-                 parint_id = this.doctor_advices[i].id
2307
-               }
2308
-             }
2309
-
2310
-             for(let i=0;i<this.doctor_advices.length;i++){
2311
-               if(this.doctor_advices[i].id != parint_id && this.doctor_advices[i].parent_id!=parint_id){
2312
-                  newArr.push(this.doctor_advices[i])
2313
-               }
2314
-             }
2315
-             this.doctor_advices =[]
2316
-             this.doctor_advices = newArr
2317
-           }
2318
-        }
2298
+        // //华池
2299
+        // if(this.org_id == 10440){
2300
+        //    var parint_id =0
2301
+        //    var newArr = []
2302
+        //    if(this.doctor_advices!=null&&this.doctor_advices.length>0){
2319 2303
 
2320
-        //HIS客户显示临时医嘱的地方
2321
-        if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id ==10644 || this.org_id == 0){
2322
-          if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
2304
+        //      for(let i=0;i<this.doctor_advices.length;i++){
2305
+        //        if(this.doctor_advices[i].advice_name.indexOf("低分子")!=-1){
2306
+        //          parint_id = this.doctor_advices[i].id
2307
+        //        }
2308
+        //      }
2323 2309
 
2324
-            for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
2325
-              this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
2326
-              console.log("寄哪里 222")
2310
+        //      for(let i=0;i<this.doctor_advices.length;i++){
2311
+        //        if(this.doctor_advices[i].id != parint_id && this.doctor_advices[i].parent_id!=parint_id){
2312
+        //           newArr.push(this.doctor_advices[i])
2313
+        //        }
2314
+        //      }
2315
+        //      this.doctor_advices =[]
2316
+        //      this.doctor_advices = newArr
2317
+        //    }
2318
+        // }
2327 2319
 
2328
-            }
2329
-         }
2320
+        // //HIS客户显示临时医嘱的地方
2321
+        // if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id ==10644 || this.org_id == 0){
2322
+        //   if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
2330 2323
 
2324
+        //     for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
2325
+        //       this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
2326
+        //       console.log("寄哪里 222")
2331 2327
 
2328
+        //     }
2329
+        //  }
2332 2330
 
2333
-         let projects = [];
2334
-        response.data.data.projects.map((item) => {
2335
-          if (item.type == 2) {
2336
-            projects.push(item);
2337
-          }
2338
-        });
2339
-        this.projects = projects;
2340 2331
 
2341 2332
 
2342
-        // console.log("this.projects=========================================", this.projects);
2333
+        //  let projects = [];
2334
+        // response.data.data.projects.map((item) => {
2335
+        //   if (item.type == 2) {
2336
+        //     projects.push(item);
2337
+        //   }
2338
+        // });
2339
+        // this.projects = projects;
2343 2340
 
2344 2341
 
2342
+        // // console.log("this.projects=========================================", this.projects);
2343
+
2345 2344
 
2346
-        if(this.org_id!=10510 &&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=10489){
2347
-            console.log("列表===================================",this.projects)
2348
-            var newHisArr = []
2349
-            if(this.projects!=null && this.projects.length >0){
2350
-             for(let i=0;i<this.projects.length;i++){
2351
-              if(this.projects[i].type== 2){
2352 2345
 
2353
-                this.projects[i].project_team_name = ""
2354
-                this.projects[i].project_team_id = 0
2346
+        // if(this.org_id!=10510 &&this.org_id!=10206 && this.org_id!=10478 && this.org_id!=10489){
2347
+        //     console.log("列表===================================",this.projects)
2348
+        //     var newHisArr = []
2349
+        //     if(this.projects!=null && this.projects.length >0){
2350
+        //      for(let i=0;i<this.projects.length;i++){
2351
+        //       if(this.projects[i].type== 2){
2355 2352
 
2356
-                if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
2353
+        //         this.projects[i].project_team_name = ""
2354
+        //         this.projects[i].project_team_id = 0
2357 2355
 
2358
-                  this.projects[i].project_team = this.projects[i].team.project_team
2359
-                  this.projects[i].project_team_id = this.projects[i].team.id
2360
-                  this.projects[i].start_time = this.projects[i].start_time
2361
-                  this.projects[i].single_dose = this.projects[i].single_dose
2362
-                  this.projects[i].single_dose_unit = this.projects[i].unit
2363
-                  this.projects[i].execution_time = this.projects[i].execution_time
2364
-                  this.projects[i].execution_staff= this.projects[i].execution_staff
2365
-                  this.projects[i].advice_name =  this.projects[i].team.project_team
2366
-                  this.projects[i].advice_doctor = this.projects[i].doctor
2356
+        //         if(this.projects[i].team!= "undefined" && this.projects[i].team.id >0){
2357
+
2358
+        //           this.projects[i].project_team = this.projects[i].team.project_team
2359
+        //           this.projects[i].project_team_id = this.projects[i].team.id
2360
+        //           this.projects[i].start_time = this.projects[i].start_time
2361
+        //           this.projects[i].single_dose = this.projects[i].single_dose
2362
+        //           this.projects[i].single_dose_unit = this.projects[i].unit
2363
+        //           this.projects[i].execution_time = this.projects[i].execution_time
2364
+        //           this.projects[i].execution_staff= this.projects[i].execution_staff
2365
+        //           this.projects[i].advice_name =  this.projects[i].team.project_team
2366
+        //           this.projects[i].advice_doctor = this.projects[i].doctor
2367 2367
 
2368 2368
 
2369
-                  newHisArr.push(this.projects[i])
2370
-                  // this.doctor_advices_2.push(this.project[i])
2371
-                }else{
2372
-                  this.projects[i].project_team = this.projects[i].project.project_name
2373
-                  this.projects[i].advice_name = this.projects[i].project.project_name
2374
-                  this.projects[i].start_time = this.projects[i].start_time
2375
-                  this.projects[i].single_dose = this.projects[i].single_dose
2376
-                  this.projects[i].single_dose_unit = this.projects[i].unit
2377
-                  this.projects[i].execution_time = this.projects[i].execution_time
2378
-                  this.projects[i].execution_staff= this.projects[i].execution_staff
2379
-                  this.projects[i].advice_doctor = this.projects[i].doctor
2380
-                  newHisArr.push(this.projects[i])
2369
+        //           newHisArr.push(this.projects[i])
2370
+        //           // this.doctor_advices_2.push(this.project[i])
2371
+        //         }else{
2372
+        //           this.projects[i].project_team = this.projects[i].project.project_name
2373
+        //           this.projects[i].advice_name = this.projects[i].project.project_name
2374
+        //           this.projects[i].start_time = this.projects[i].start_time
2375
+        //           this.projects[i].single_dose = this.projects[i].single_dose
2376
+        //           this.projects[i].single_dose_unit = this.projects[i].unit
2377
+        //           this.projects[i].execution_time = this.projects[i].execution_time
2378
+        //           this.projects[i].execution_staff= this.projects[i].execution_staff
2379
+        //           this.projects[i].advice_doctor = this.projects[i].doctor
2380
+        //           newHisArr.push(this.projects[i])
2381
+
2381 2382
 
2383
+        //           // this.doctor_advices_2.push(this.projects[i])
2384
+        //         }
2382 2385
 
2383
-                  // this.doctor_advices_2.push(this.projects[i])
2384
-                }
2385 2386
 
2386 2387
 
2388
+        //       }
2387 2389
 
2388
-              }
2390
+        //     }
2391
+        //     }
2389 2392
 
2390
-            }
2391
-            }
2392 2393
 
2393 2394
 
2395
+        //     for(let i=0;i<newHisArr.length;i++){
2396
+        //       newHisArr[i].advice_name_str = ""
2397
+        //       newHisArr[i].advice_name_str = newHisArr[i].project_team + (newHisArr[i].prescription_id).toString()
2398
+        //     }
2399
+        //     console.log("newHisArr===================================",newHisArr)
2400
+
2401
+        //     var ordHisArr = this.getQuChong(newHisArr)
2394 2402
 
2395
-            for(let i=0;i<newHisArr.length;i++){
2396
-              newHisArr[i].advice_name_str = ""
2397
-              newHisArr[i].advice_name_str = newHisArr[i].project_team + (newHisArr[i].prescription_id).toString()
2398
-            }
2399
-            console.log("newHisArr===================================",newHisArr)
2403
+        //    this.doctor_advices.push(...ordHisArr)
2404
+        // }
2400 2405
 
2401
-            var ordHisArr = this.getQuChong(newHisArr)
2402 2406
 
2403
-           this.doctor_advices.push(...ordHisArr)
2404
-        }
2407
+        // }
2405 2408
 
2409
+        // //针对内蒙古阿拉善
2410
+        // if(this.org_id ==10206 || this.org_id ==0){
2406 2411
 
2407
-        }
2412
+        //   if(this.doctor_advices!=null && this.doctor_advices.length > 0){
2408 2413
 
2409
-        //针对内蒙古阿拉善
2410
-        if(this.org_id ==10206 || this.org_id ==0){
2414
+        //     for(let i=0;i<this.doctor_advices.length;i++){
2415
+        //       this.doctor_advices[i].new_groupno = ""
2416
+        //        this.doctor_advices[i].new_groupno = this.doctor_advices[i].prescription_id + "_" + this.doctor_advices[i].groupno
2411 2417
 
2412
-          if(this.doctor_advices!=null && this.doctor_advices.length > 0){
2418
+        //         let objInfo = {}
2419
+        //         this.doctor_advices.forEach((item,index)=>{
2420
+        //           let { new_groupno } = item
2421
+        //           if(!objInfo[new_groupno]){
2422
+        //             objInfo[new_groupno] = {
2423
+        //               new_groupno,
2424
+        //               child:[],
2425
+        //               start_time:item.start_time,
2426
+        //               advice_doctor:item.advice_doctor,
2427
+        //               advice_name:item.advice_name,
2428
+        //               check_time:item.check_time,
2429
+        //               checker:item.checker,
2430
+        //               delivery_way:item.delivery_way,
2431
+        //               execution_frequency:item.execution_frequency,
2432
+        //               execution_staff:item.execution_staff,
2433
+        //               execution_state:item.execution_state,
2434
+        //               execution_time:item.execution_time,
2435
+        //               frequency_type:item.frequency_type,
2436
+        //               new_groupno:item.new_groupno,
2437
+        //               advice_desc:item.advice_desc,
2438
+        //               drug_spec_unit:item.drug_spec_unit,
2439
+        //               prescribing_number:item.prescribing_number,
2440
+        //               prescribing_number_unit:item.prescribing_number_unit,
2441
+        //               single_dose:item.single_dose,
2442
+        //               single_dose_unit:item.single_dose_unit,
2443
+        //               parent_id:item.parent_id,
2444
+        //               remark:item.remark,
2445
+
2446
+        //             }
2447
+        //           }
2448
+        //         })
2449
+        //         let newArr = Object.values(objInfo);
2450
+
2451
+
2452
+        //         if(newArr!=null && newArr.length >0){
2453
+        //           for(let i=0;i<newArr.length;i++){
2454
+        //             for(let j=0;j<this.doctor_advices.length;j++){
2455
+        //                if(newArr[i].new_groupno == this.doctor_advices[j].new_groupno){
2456
+        //                   newArr[i].child.push(this.doctor_advices[j])
2457
+        //                }
2458
+        //             }
2459
+        //           }
2460
+        //         }
2461
+
2462
+        //         // console.log("newArrwowoow",newArr)
2463
+
2464
+        //       this.new_doctor_advice_list = []
2465
+        //       this.new_doctor_advice_list.push(...newArr)
2413 2466
 
2414
-            for(let i=0;i<this.doctor_advices.length;i++){
2415
-              this.doctor_advices[i].new_groupno = ""
2416
-               this.doctor_advices[i].new_groupno = this.doctor_advices[i].prescription_id + "_" + this.doctor_advices[i].groupno
2417
-
2418
-                let objInfo = {}
2419
-                this.doctor_advices.forEach((item,index)=>{
2420
-                  let { new_groupno } = item
2421
-                  if(!objInfo[new_groupno]){
2422
-                    objInfo[new_groupno] = {
2423
-                      new_groupno,
2424
-                      child:[],
2425
-                      start_time:item.start_time,
2426
-                      advice_doctor:item.advice_doctor,
2427
-                      advice_name:item.advice_name,
2428
-                      check_time:item.check_time,
2429
-                      checker:item.checker,
2430
-                      delivery_way:item.delivery_way,
2431
-                      execution_frequency:item.execution_frequency,
2432
-                      execution_staff:item.execution_staff,
2433
-                      execution_state:item.execution_state,
2434
-                      execution_time:item.execution_time,
2435
-                      frequency_type:item.frequency_type,
2436
-                      new_groupno:item.new_groupno,
2437
-                      advice_desc:item.advice_desc,
2438
-                      drug_spec_unit:item.drug_spec_unit,
2439
-                      prescribing_number:item.prescribing_number,
2440
-                      prescribing_number_unit:item.prescribing_number_unit,
2441
-                      single_dose:item.single_dose,
2442
-                      single_dose_unit:item.single_dose_unit,
2443
-                      parent_id:item.parent_id,
2444
-                      remark:item.remark,
2445
-
2446
-                    }
2447
-                  }
2448
-                })
2449
-                let newArr = Object.values(objInfo);
2450
-
2451
-
2452
-                if(newArr!=null && newArr.length >0){
2453
-                  for(let i=0;i<newArr.length;i++){
2454
-                    for(let j=0;j<this.doctor_advices.length;j++){
2455
-                       if(newArr[i].new_groupno == this.doctor_advices[j].new_groupno){
2456
-                          newArr[i].child.push(this.doctor_advices[j])
2457
-                       }
2458
-                    }
2459
-                  }
2460
-                }
2461
-
2462
-                // console.log("newArrwowoow",newArr)
2463
-
2464
-              this.new_doctor_advice_list = []
2465
-              this.new_doctor_advice_list.push(...newArr)
2466
-
2467
-              // console.log("newArrwowoow",this.new_doctor_advice_list)
2468
-            }
2469
-          }
2470
-        }
2467
+        //       // console.log("newArrwowoow",this.new_doctor_advice_list)
2468
+        //     }
2469
+        //   }
2470
+        // }
2471 2471
 
2472 2472
         console.log("新时间我哦我哦",this.doctor_advices)
2473 2473
 
2474 2474
         //过滤口服药
2475
-        if(this.org_id == 10265){
2475
+        if(this.org_id ==10721 ||this.org_id ==0){
2476
+          console.log('df11111111',this.doctor_advices);
2477
+          
2476 2478
           var docArr = []
2477 2479
           if(this.doctor_advices!=null && this.doctor_advices.length>0){
2478 2480
             for(let i=0;i<this.doctor_advices.length;i++){