28169 1 år sedan
förälder
incheckning
be33182eaa

+ 1 - 1
src/api/dialysis.js Visa fil

@@ -537,4 +537,4 @@ export function getDialysisGatherList(params){
537 537
     method:"get",
538 538
     params:params,
539 539
   })
540
-}
540
+}

+ 221 - 236
src/xt_pages/dialysis/batch_print/batch_print_order_seventy.vue Visa fil

@@ -80,19 +80,19 @@
80 80
             <div class="inline_block" v-if="org_id!=10510">
81 81
               病区:
82 82
               <div class="under_line" style="width: 70px; text-align: left">
83
-                {{ record.device_zone.name}}
83
+                {{record.device_zone&&record.device_zone.name}}
84 84
               </div>
85 85
             </div>
86 86
             <div class="inline_block" v-if="org_id!=10510 && org_id!=10460" style="margin-left: 10px;">
87 87
               床号:
88 88
               <div class="under_line" style="width: 50px; text-align: center">
89
-                {{ record.device_number.number }}
89
+                {{ record.device_number&&record.device_number.number }}
90 90
               </div>
91 91
             </div>
92 92
             <div class="inline_block">
93 93
               透析号:
94 94
               <div class="under_line" style="width: 70px; text-align: center">
95
-                {{ record.patient.dialysis_no }}
95
+                {{record.patient&& record.patient.dialysis_no }}
96 96
               </div>
97 97
             </div>
98 98
           </div>
@@ -111,7 +111,7 @@
111 111
                   white-space: unset;
112 112
                 "
113 113
               >
114
-                {{ record.patient.diagnose }}
114
+                {{record.patient&& record.patient.diagnose }}
115 115
               </div>
116 116
             </div>
117 117
             <div class="inline_block" style="flex: 1.5">
@@ -407,6 +407,12 @@
407 407
                       <span>
408 408
                         {{
409 409
                           
410
+                            record.assessment_before_dislysis &&
411
+                            record.assessment_before_dislysis.puncture_needle_direction
412
+                              ? record.assessment_before_dislysis
413
+                                  .puncture_needle_direction
414
+                              : "/"
415
+                       
410 416
                         }}
411 417
                       </span>
412 418
                        
@@ -775,18 +781,16 @@
775 781
                           class="under_line"
776 782
                           style="width: 100px; text-align: center"
777 783
                         >
778
-                          {{
779
-                            record.prescription &&
780
-                            record.prescription.dialyzer_perfusion_apparatus
781
-                              ? record.prescription.dialyzer_perfusion_apparatus
782
-                              : ""
783
-                          }}
784
+                         
784 785
                           {{
785 786
                             record.prescription &&
786 787
                             record.prescription.dialysis_dialyszers
787 788
                               ? record.prescription.dialysis_dialyszers
788
-                              : "/"
789
+                              : ""
789 790
                           }}
791
+                         
792
+                           
793
+                        
790 794
                         </div>
791 795
                       </div>
792 796
                       <div class="inline_block" style="flex:1">
@@ -804,23 +808,20 @@
804 808
                         </div>
805 809
                       </div>
806 810
 
807
-                      <div class="inline_block" style="flex: 1">
808
-                        透析机号
811
+                      <div class="inline_block" style="flex:1">
812
+                        滤过器
809 813
                         <div
810 814
                           class="under_line"
811
-                          style="width: 50px; text-align: center"
815
+                          style="width: 70px; text-align: center"
812 816
                         >
813
-                          {{
814
-                            record.dialysis_order &&
815
-                            record.dialysis_order.device_number &&
816
-                            record.dialysis_order.device_number.number.length >
817
-                              0
818
-                              ? record.dialysis_order.device_number.number
819
-                              : record.device_number.number
820
-                          }}
817
+                         {{ 
818
+                             record.prescription.dialysis_strainer?record.prescription.dialysis_strainer:"/"
819
+                           }}
821 820
                         </div>
822 821
                       </div>
823 822
 
823
+                    
824
+
824 825
                       <!-- <div class="inline_block" style="flex: 1">
825 826
                         透析机型:
826 827
                         <div
@@ -936,8 +937,25 @@
936 937
                           </div>
937 938
                           kg
938 939
                       </div>
939
-                      <div class="inline_block" style="flex: 1" >
940
-                        目标超滤量:
940
+                      <div class="inline_block" style="flex: 1" v-if="org_id ==10597">
941
+                        处方超滤量:
942
+                        <div
943
+                          class="under_line"
944
+                          style="width: 60px; text-align: center"
945
+                        >
946
+                          {{
947
+                            record.prescription &&
948
+                            record.prescription.prescription_water
949
+                              ? record.prescription.prescription_water
950
+                              : "/"
951
+                          }}
952
+                        </div>
953
+                         <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id==10460">ml</span> 
954
+                         <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471 && org_id!=10460">L</span>
955
+                      </div>
956
+
957
+                      <div class="inline_block" style="flex: 1" v-if="org_id ==10599">
958
+                         目标超滤量:
941 959
                         <div
942 960
                           class="under_line"
943 961
                           style="width: 60px; text-align: center"
@@ -1189,7 +1207,24 @@
1189 1207
                         <span v-if="record.prescription.anticoagulant == 1"
1190 1208
                           >mg</span
1191 1209
                         >
1192
-                      </div>                      
1210
+                      </div>    
1211
+                      
1212
+                      <div class="inline_block" style="flex: 1">
1213
+                        透析机号:
1214
+                        <div
1215
+                          class="under_line"
1216
+                          style="width: 50px; text-align: center"
1217
+                        >
1218
+                          {{
1219
+                            record.dialysis_order &&
1220
+                            record.dialysis_order.device_number &&
1221
+                            record.dialysis_order.device_number.number.length >
1222
+                              0
1223
+                              ? record.dialysis_order.device_number.number
1224
+                              : record.device_number.number
1225
+                          }}
1226
+                        </div>
1227
+                      </div>
1193 1228
                     </div>
1194 1229
                   </td>
1195 1230
                 </tr>
@@ -1352,14 +1387,6 @@
1352 1387
                                   "
1353 1388
                                   >【开始透析】</template
1354 1389
                                 >
1355
-                                <!-- <template
1356
-                                  v-if="
1357
-                                    record.dialysis_order &&
1358
-                                    monitor_record.operate_time ==
1359
-                                      record.dialysis_order.end_time
1360
-                                  "
1361
-                                  >【结束透析】</template
1362
-                                > -->
1363 1390
                                 {{ monitor_record.end }}
1364 1391
                                 {{ monitor_record.symptom }} &nbsp;{{
1365 1392
                                   monitor_record.dispose
@@ -1412,7 +1439,8 @@
1412 1439
                     </table>
1413 1440
                   </td>
1414 1441
                 </tr>
1415
-                <tr >
1442
+                 
1443
+                <tr>
1416 1444
                   <td style="padding: 0; position: relative" colspan="2">
1417 1445
                     <table class="inside_table">
1418 1446
                       <tbody>
@@ -1431,97 +1459,89 @@
1431 1459
                             医嘱内容
1432 1460
                           </td>
1433 1461
                         </tr>
1434
-                       
1462
+                     
1435 1463
                         <tr style="line-height: 35px; padding: 8px 5px">
1436 1464
                           <td style="font-size: 16px" width="10%">时间</td>
1437 1465
                           <td style="font-size: 16px" colspan="2" width="45%">
1438 1466
                             医嘱内容
1439 1467
                           </td>
1440 1468
                           <td style="font-size: 16px" width="10%">医生签名</td>
1441
-                          <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
1442
-                          <td style="font-size: 16px" width="10%">时间</td>
1469
+                        
1443 1470
                           <td style="font-size: 16px" width="10%">
1444 1471
                             执行人签名
1445 1472
                           </td>
1446
-                         
1447
-                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id == 0 || org_id ==10206">核对护士</td>
1473
+                          <td style="font-size: 16px" width="10%">时间</td>
1474
+                           <td style="font-size: 16px" width="10%">核对护士</td>
1448 1475
                         </tr>
1449
-                        <!-- <template v-for="group in doctor_advices" > -->
1476
+                      
1477
+
1450 1478
                         <template v-if="record.advices">
1451 1479
                           <tr
1452 1480
                             v-for="(advice, advice_index) in record.advices"
1453 1481
                             :key="advice_index"
1454 1482
                           >
1455 1483
                             <td height="35px">
1456
-                              <span v-if="advice[0].start_time">
1457
-                                {{ getTime(advice[0].start_time, "{h}:{i}") }}
1484
+                              <span v-if="advice.start_time">
1485
+                                {{ getTime(advice.start_time, "{h}:{i}") }}
1458 1486
                               </span>
1459 1487
                             </td>
1488
+
1460 1489
                             <td
1461 1490
                               height="35px"
1462 1491
                               colspan="2"
1463 1492
                               class="advice-name"
1464 1493
                               style="padding-left: 7px"
1465 1494
                             >
1466
-                              <span v-if="advice[0].parent_id > 0">---></span>
1467
-                              <span>{{ advice[0].advice_name }}</span>
1495
+                              <span v-if="advice.parent_id > 0">---></span>
1496
+                              <span>{{ advice.advice_name }}</span>
1497
+
1468 1498
                               <span
1469 1499
                                 v-if="
1470
-                                  advice[0] &&
1471
-                                  advice[0].advice_desc != undefined
1500
+                                  advice &&
1501
+                                  advice.advice_desc != undefined
1472 1502
                                 "
1473 1503
                               >
1504
+                             
1474 1505
                               </span>
1475 1506
 
1476
-                              <span v-if="advice[0].prescribing_number"
1477
-                                >&nbsp;&nbsp; {{ advice[0].prescribing_number
1478
-                                }}{{ advice[0].prescribing_number_unit }}</span
1507
+                              <span v-if="advice.prescribing_number"
1508
+                                >&nbsp;&nbsp; {{ advice.prescribing_number
1509
+                                }}{{ advice.prescribing_number_unit }}</span
1479 1510
                               >
1480
-                              <span v-if="advice[0].single_dose != 0">
1481
-                                {{ advice[0].single_dose
1482
-                                }}{{ advice[0].single_dose_unit }}</span
1511
+                              <span v-if="advice.single_dose != 0">
1512
+                                {{ advice.single_dose
1513
+                                }}{{ advice.single_dose_unit }}</span
1483 1514
                               >
1484 1515
 
1485
-                              <span v-if="advice[0].parent_id == 0">{{
1486
-                                advice[0].delivery_way
1516
+                              <span v-if="advice.parent_id == 0">{{
1517
+                                advice.delivery_way
1487 1518
                               }}</span>
1488
-                              <span v-if="advice[0].parent_id == 0">{{
1489
-                                advice[0].execution_frequency
1519
+                              <span v-if="advice.parent_id == 0">{{
1520
+                                advice.execution_frequency
1490 1521
                               }}</span>
1491 1522
                               <span
1492 1523
                                 v-if="
1493
-                                  advice[0].parent_id == 0 &&
1494
-                                  advice[0].remark.length > 0
1524
+                                  advice.parent_id == 0 &&
1525
+                                  advice.remark.length > 0
1495 1526
                                 "
1496
-                                >({{ advice[0].remark }})</span
1497
-                              ><br/>
1498
-                              <template v-if="advice[0].children.length>0">
1499
-                                <span v-if="advice[0].children.length>0">{{ advice[0].children[0].advice_name }}</span>
1500
-                                <span v-if="advice[0].children[0].prescribing_number"
1501
-                                >&nbsp;&nbsp; {{ advice[0].children[0].prescribing_number
1502
-                                }}{{ advice[0].children[0].prescribing_number_unit }}</span
1503
-                              >
1504
-                              <span v-if="advice[0].children[0].single_dose != 0">
1505
-                                {{ advice[0].children[0].single_dose
1506
-                                }}{{ advice[0].children[0].single_dose_unit }}</span
1527
+                                >({{ advice.remark }})</span
1507 1528
                               >
1508
-                              </template>
1509 1529
                             </td>
1510 1530
 
1511 1531
                             <td height="35px">
1512 1532
                               <span
1513 1533
                                 v-if="
1514
-                                  setAdminUserES(advice[0], 'advice_doctor') ==
1534
+                                  setAdminUserES(advice, 'advice_doctor') ==
1515 1535
                                   ''
1516 1536
                                 "
1517 1537
                                 >{{
1518
-                                  getAdminUser(advice[0], "advice_doctor")
1538
+                                  getAdminUser(advice, "advice_doctor")
1519 1539
                                 }}</span
1520 1540
                               >
1521 1541
                               <img
1522 1542
                                 class="es-img"
1523 1543
                                 :src="
1524
-                                  setAdminUserES(advice[0], 'advice_doctor')
1544
+                                  setAdminUserES(advice, 'advice_doctor')
1525 1545
                                 "
1526 1546
                                 alt=""
1527 1547
                                 srcset=""
@@ -1530,28 +1550,21 @@
1530 1550
                               />
1531 1551
                             </td>
1532 1552
 
1533
-                            <td height="35px">
1534
-                              <span v-if="advice[0].execution_time">{{
1535
-                                getTime(advice[0].execution_time, " {h}:{i}")
1536
-                              }}</span>
1537
-                            </td>
1538
-
1539 1553
                             <td height="35px">
1540 1554
                               <span
1541 1555
                                 v-if="
1542 1556
                                   setAdminUserES(
1543
-                                    advice[0],
1544
-                                    'execution_staff'
1557
+                                    advice,'execution_staff'
1545 1558
                                   ) == ''
1546 1559
                                 "
1547 1560
                                 >{{
1548
-                                  getAdminUser(advice[0], "execution_staff")
1561
+                                  getAdminUser(advice, "execution_staff")
1549 1562
                                 }}</span
1550 1563
                               >
1551 1564
                               <img
1552 1565
                                 class="es-img"
1553 1566
                                 :src="
1554
-                                  setAdminUserES(advice[0], 'execution_staff')
1567
+                                  setAdminUserES(advice, 'execution_staff')
1555 1568
                                 "
1556 1569
                                 alt=""
1557 1570
                                 srcset=""
@@ -1559,23 +1572,27 @@
1559 1572
                                 style="height: 40px"
1560 1573
                               />
1561 1574
                             </td>
1562
-                           
1563
-                            <td height="35px" v-if="org_id == 10375 || org_id ==0||org_id ==10206">
1575
+                            <td height="35px">
1576
+                              <span v-if="advice.execution_time">{{
1577
+                                getTime(advice.execution_time, " {h}:{i}")
1578
+                              }}</span>
1579
+                            </td>
1580
+                            <td height="35px">
1564 1581
                               <span
1565 1582
                                 v-if="
1566 1583
                                   setAdminUserES(
1567
-                                    advice[0],
1584
+                                    advice,
1568 1585
                                     'checker'
1569 1586
                                   ) == ''
1570 1587
                                 "
1571 1588
                                 >{{
1572
-                                  getAdminUser(advice[0], "checker")
1589
+                                  getAdminUser(advice, "checker")
1573 1590
                                 }}</span
1574 1591
                               >
1575 1592
                               <img
1576 1593
                                 class="es-img"
1577 1594
                                 :src="
1578
-                                  setAdminUserES(advice[0], 'checker')
1595
+                                  setAdminUserES(advice, 'checker')
1579 1596
                                 "
1580 1597
                                 alt=""
1581 1598
                                 srcset=""
@@ -1589,6 +1606,8 @@
1589 1606
                     </table>
1590 1607
                   </td>
1591 1608
                 </tr>
1609
+
1610
+           
1592 1611
               </tbody>
1593 1612
             </table>
1594 1613
           </div>
@@ -1999,7 +2018,7 @@
1999 2018
                       >
2000 2019
   
2001 2020
                         <span v-if="org_id!=10460">
2002
-                          透析中入量  (L)
2021
+                          透析中入量:
2003 2022
                         </span>
2004 2023
                         <div
2005 2024
                           class="under_line"
@@ -2611,157 +2630,123 @@ export default {
2611 2630
             
2612 2631
             }
2613 2632
           }
2614
-          for (const recordIndex in this.records) {
2615
-            var dlegh = 0;
2616
-            if (
2617
-              this.records[recordIndex].monitor_records &&
2618
-              this.records[recordIndex].monitor_records.length < 6
2619
-            ) {
2620
-              dlegh = 6 - this.records[recordIndex].monitor_records.length;
2621
-            } else {
2622
-              dlegh = 0;
2623
-            }
2624
-            if (dlegh > 0) {
2625
-              if (
2626
-                typeof this.records[recordIndex].monitor_records ===
2627
-                  "undefined" ||
2628
-                this.records[recordIndex].monitor_records == null
2629
-              ) {
2630
-                this.records[recordIndex].monitor_records = [];
2631
-              }
2632
-              for (let index = 0; index < dlegh; index++) {
2633
-                this.records[recordIndex].monitor_records.push([]);
2634
-              }
2635
-            }
2636
-
2637
-            this.records[recordIndex].isShowZero = false;
2638
-            if (this.records[recordIndex].patient.user_org_id == 9535) {
2639
-              this.records[recordIndex].isShowZero = true;
2640
-            }
2641
-
2642
-            var delghTwo = 0;
2643
-            if (
2644
-              this.records[recordIndex].advices &&
2645
-              this.records[recordIndex].advices.length < 12
2646
-            ) {
2647
-              delghTwo = 12 - this.records[recordIndex].advices.length;
2648
-            } else {
2649
-              delghTwo = 0;
2650
-            }
2651
-
2652
-            if (delghTwo > 0) {
2653
-              if (
2654
-                typeof this.records[recordIndex].advices === "undefined" ||
2655
-                this.records[recordIndex].advices == null
2656
-              ) {
2657
-                this.records[recordIndex].advices = [];
2658
-              }
2659
-              for (let index = 0; index < delghTwo; index++) {
2660
-                this.records[recordIndex].advices.push([]);
2661
-              }
2662
-            }
2633
+          // for (const recordIndex in this.records) {
2634
+          //   var dlegh = 0;
2635
+          //   if (
2636
+          //     this.records[recordIndex].monitor_records &&
2637
+          //     this.records[recordIndex].monitor_records.length < 6
2638
+          //   ) {
2639
+          //     dlegh = 6 - this.records[recordIndex].monitor_records.length;
2640
+          //   } else {
2641
+          //     dlegh = 0;
2642
+          //   }
2643
+          //   if (dlegh > 0) {
2644
+          //     if (
2645
+          //       typeof this.records[recordIndex].monitor_records ===
2646
+          //         "undefined" ||
2647
+          //       this.records[recordIndex].monitor_records == null
2648
+          //     ) {
2649
+          //       this.records[recordIndex].monitor_records = [];
2650
+          //     }
2651
+          //     for (let index = 0; index < dlegh; index++) {
2652
+          //       this.records[recordIndex].monitor_records.push([]);
2653
+          //     }
2654
+          //   }
2655
+
2656
+          //   this.records[recordIndex].isShowZero = false;
2657
+          //   if (this.records[recordIndex].patient.user_org_id == 9535) {
2658
+          //     this.records[recordIndex].isShowZero = true;
2659
+          //   }
2660
+
2661
+          //   // var delghTwo = 0;
2662
+          //   // if (
2663
+          //   //   this.records[recordIndex].advices &&
2664
+          //   //   this.records[recordIndex].advices.length < 12
2665
+          //   // ) {
2666
+          //   //   delghTwo = 12 - this.records[recordIndex].advices.length;
2667
+          //   // } else {
2668
+          //   //   delghTwo = 0;
2669
+          //   // }
2670
+
2671
+          //   // if (delghTwo > 0) {
2672
+          //   //   if (
2673
+          //   //     typeof this.records[recordIndex].advices === "undefined" ||
2674
+          //   //     this.records[recordIndex].advices == null
2675
+          //   //   ) {
2676
+          //   //     this.records[recordIndex].advices = [];
2677
+          //   //   }
2678
+          //   //   for (let index = 0; index < delghTwo; index++) {
2679
+          //   //     this.records[recordIndex].advices.push([]);
2680
+          //   //   }
2681
+          //   // }
2663 2682
 
2664 2683
 
2665 2684
           
2666
-            if(this.org_id == 10206){
2667
-              console.log("this.records[recordIndex].his_project", this.records[recordIndex].his_project)
2668
-              var delghThree = 0 
2669
-             let his_project = []
2670
-              this.records[recordIndex].his_project.map(item => {
2671
-                // if(item.type == 2){
2672
-                //   his_project.push(item)
2673
-                // }
2674
-                his_project.push(item)
2675
-              
2676
-              })
2677
-            this.records[recordIndex].his_project = his_project
2678
-              var delghThree = 0
2679
-              if (
2680
-                this.records[recordIndex].his_advices &&
2681
-                this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
2682
-              ) {
2683
-                delghThree = 6 - (this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length)
2684
-              } else {
2685
-                delghThree = 0
2686
-              }
2687
-
2688
-              if (delghThree > 0) {
2689
-                if (
2690
-                  typeof this.records[recordIndex].his_project === 'undefined' ||
2691
-                  this.records[recordIndex].his_project == null
2692
-                ) {
2693
-                  this.records[recordIndex].his_project = []
2694
-                }
2695
-                for (let index = 0; index < delghThree; index++) {
2696
-                  this.records[recordIndex].his_project.push([])
2697
-                }
2698
-              }
2699
-            }
2700
-
2701
-
2702
-            var childMap = {};
2703
-            for (const index in this.records[recordIndex].advices) {
2704
-              if (this.records[recordIndex].advices[index].parent_id == 0) {
2705
-                continue;
2706
-              }
2707
-              if (
2708
-                !(
2709
-                  this.records[recordIndex].advices[index].parent_id in childMap
2710
-                )
2711
-              ) {
2712
-                childMap[this.records[recordIndex].advices[index].parent_id] =
2713
-                  [];
2714
-              }
2715
-              childMap[this.records[recordIndex].advices[index].parent_id].push(
2716
-                this.records[recordIndex].advices[index]
2717
-              );
2718
-            }
2719
-
2720
-            var advices = [];
2721
-            for (const index in this.records[recordIndex].advices) {
2722
-              if (this.records[recordIndex].advices[index].parent_id > 0) {
2723
-                continue;
2724
-              }
2725
-              var item = this.records[recordIndex].advices[index];
2726
-              if (item.id in childMap) {
2727
-                item.children = childMap[item.id];
2728
-              } else {
2729
-                item.children = [];
2730
-              }
2731
-              advices.push(item);
2732
-            }
2733
-
2734
-            var leftAdvice = [];
2735
-            var rightAdvice = [];
2736
-            var adlen = advices.length;
2737
-
2738
-            var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2739
-            for (var i = 0; i < halfLen; i++) {
2740
-              leftAdvice.push(advices[i]);
2741
-              var rightIndex = i + halfLen;
2742
-              rightAdvice.push(
2743
-                rightIndex in advices ? advices[i + halfLen] : []
2744
-              );
2745
-            }
2746
-            if (halfLen < 6) {
2747
-              var nl = 6 - leftAdvice.length;
2748
-              for (let index = 0; index < nl; index++) {
2749
-                leftAdvice.push([]);
2750
-              }
2751
-              var nl = 6 - rightAdvice.length;
2752
-              for (let index = 0; index < nl; index++) {
2753
-                rightAdvice.push([]);
2754
-              }
2755
-            }
2685
+          
2756 2686
 
2757
-            this.records[recordIndex].advices = [];
2758
-            for (var i = 0; i < halfLen; i++) {
2759
-              var item = [];
2760
-              item.push(leftAdvice[i]);
2761
-              item.push(rightAdvice[i]);
2762
-              this.records[recordIndex].advices.push(item);
2763
-            }
2764
-          }
2687
+          //   var childMap = {};
2688
+          //   for (const index in this.records[recordIndex].advices) {
2689
+          //     if (this.records[recordIndex].advices[index].parent_id == 0) {
2690
+          //       continue;
2691
+          //     }
2692
+          //     if (
2693
+          //       !(
2694
+          //         this.records[recordIndex].advices[index].parent_id in childMap
2695
+          //       )
2696
+          //     ) {
2697
+          //       childMap[this.records[recordIndex].advices[index].parent_id] =
2698
+          //         [];
2699
+          //     }
2700
+          //     childMap[this.records[recordIndex].advices[index].parent_id].push(
2701
+          //       this.records[recordIndex].advices[index]
2702
+          //     );
2703
+          //   }
2704
+
2705
+          //   var advices = [];
2706
+          //   for (const index in this.records[recordIndex].advices) {
2707
+          //     if (this.records[recordIndex].advices[index].parent_id > 0) {
2708
+          //       continue;
2709
+          //     }
2710
+          //     var item = this.records[recordIndex].advices[index];
2711
+          //     if (item.id in childMap) {
2712
+          //       item.children = childMap[item.id];
2713
+          //     } else {
2714
+          //       item.children = [];
2715
+          //     }
2716
+          //     advices.push(item);
2717
+          //   }
2718
+
2719
+          //   var leftAdvice = [];
2720
+          //   var rightAdvice = [];
2721
+          //   var adlen = advices.length;
2722
+
2723
+          //   var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2724
+          //   for (var i = 0; i < halfLen; i++) {
2725
+          //     leftAdvice.push(advices[i]);
2726
+          //     var rightIndex = i + halfLen;
2727
+          //     rightAdvice.push(
2728
+          //       rightIndex in advices ? advices[i + halfLen] : []
2729
+          //     );
2730
+          //   }
2731
+          //   if (halfLen < 6) {
2732
+          //     var nl = 6 - leftAdvice.length;
2733
+          //     for (let index = 0; index < nl; index++) {
2734
+          //       leftAdvice.push([]);
2735
+          //     }
2736
+          //     var nl = 6 - rightAdvice.length;
2737
+          //     for (let index = 0; index < nl; index++) {
2738
+          //       rightAdvice.push([]);
2739
+          //     }
2740
+          //   }
2741
+
2742
+          //   this.records[recordIndex].advices = [];
2743
+          //   for (var i = 0; i < halfLen; i++) {
2744
+          //     var item = [];
2745
+          //     item.push(leftAdvice[i]);
2746
+          //     item.push(rightAdvice[i]);
2747
+          //     this.records[recordIndex].advices.push(item);
2748
+          //   }
2749
+          // }
2765 2750
           console.log("数据我哦我我", this.records);
2766 2751
           // this.records.forEach(o => {
2767 2752
           //   console.log(o,'jj')

+ 7 - 1
src/xt_pages/dialysis/details/DialysisPrescription.vue Visa fil

@@ -170,12 +170,18 @@
170 170
         </li> -->
171 171
 
172 172
 
173
-        <li v-if="isShow('处方脱水量')">
173
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597">
174 174
           <label>处方脱水量 : </label>
175 175
           <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
176 176
           <span class="unit">{{ prescription_water != "0" ? "ml" : "" }}</span>
177 177
         </li>
178 178
 
179
+        <li v-if="isShow('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597">
180
+          <label>处方脱水量 : </label>
181
+          <span class="content">{{ prescription_water != "0" ? prescription_water : "" }}</span>
182
+          <span class="unit">{{ prescription_water != "0" ? "L" : "" }}</span>
183
+        </li>
184
+
179 185
        
180 186
         <li v-if="isShow('钾')">
181 187
           <label>钾 : </label>

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Visa fil

@@ -17,8 +17,8 @@
17 17
           <span class="content" v-if="actual_ultrafiltration != '0'">{{
18 18
             actual_ultrafiltration
19 19
           }}</span>
20
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445 ||  this.$store.getters.xt_user.template_info.org_id == 10495  ) " >ml</span>
21
-          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432 &&  this.$store.getters.xt_user.template_info.org_id!= 10441 &&  this.$store.getters.xt_user.template_info.org_id!= 10445  &&  this.$store.getters.xt_user.template_info.org_id!= 10495"  >L</span>
20
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && (this.$store.getters.xt_user.template_info.template_id == 6 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.template_id == 44 || this.$store.getters.xt_user.template_info.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10340 ||  this.$store.getters.xt_user.template_info.org_id == 10387 ||  this.$store.getters.xt_user.template_info.org_id == 10430 ||  this.$store.getters.xt_user.template_info.org_id == 10432 ||  this.$store.getters.xt_user.template_info.org_id == 10441 ||  this.$store.getters.xt_user.template_info.org_id == 10445 ||  this.$store.getters.xt_user.template_info.org_id == 10495 ||  this.$store.getters.xt_user.template_info.org_id == 10597  ||  this.$store.getters.xt_user.template_info.org_id == 10599 ) " >ml</span>
21
+          <span class="unit" v-if=" actual_ultrafiltration != '0' && this.$store.getters.xt_user.template_info.template_id != 6 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 44 && this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 9555  && this.$store.getters.xt_user.template_info.org_id != 10340 &&  this.$store.getters.xt_user.template_info.org_id!= 10387 &&  this.$store.getters.xt_user.template_info.org_id!= 10430 &&  this.$store.getters.xt_user.template_info.org_id!= 10432 &&  this.$store.getters.xt_user.template_info.org_id!= 10441 &&  this.$store.getters.xt_user.template_info.org_id!= 10445  &&  this.$store.getters.xt_user.template_info.org_id!= 10495 &&  this.$store.getters.xt_user.template_info.org_id!= 10597  &&  this.$store.getters.xt_user.template_info.org_id!= 10599"  >L</span>
22 22
         </li>
23 23
         <li v-if="isShow('导管')">
24 24
           <label>导管 : </label>

+ 6 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue Visa fil

@@ -66,6 +66,12 @@
66 66
           <span class="content">{{ this.record.puncture_needle }}</span>
67 67
         </li>
68 68
 
69
+        <li v-if="isShow('穿刺方向')">
70
+          <label>穿刺方向 : </label>
71
+          <span class="content">{{ this.record.puncture_needle_direction }}</span>
72
+        </li>
73
+
74
+
69 75
         <li v-if="isShow('穿刺点')">
70 76
           <label>穿刺点 : </label>
71 77
           <span class="content">{{ this.record.point_puncture }}</span>

+ 27 - 4
src/xt_pages/dialysis/details/consumable/dialysisGather.vue Visa fil

@@ -122,25 +122,37 @@
122 122
              
123 123
           <el-table-column align="center" label="透析器"  v-if="gatherSetting.dialysis_dialyszers == 1">
124 124
              <template slot-scope="scope">
125
-               <span>{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
125
+               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_dialyszers}}</span>
126
+
127
+               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
128
+
129
+               <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_dialyszers}}</span>
126 130
              </template>
127 131
           </el-table-column>
128 132
   
129 133
            <el-table-column align="center" label="灌流器"  v-if="gatherSetting.dialysis_irrigation ==1">
130 134
              <template slot-scope="scope">
131
-               <span>{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
135
+
136
+               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_irrigation}}</span>
137
+               <span v-if="scope.row.schedule_date < timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
138
+               <span v-if="scope.row.schedule_date > timenow">{{scope.row.dialysis_solution.dialysis_irrigation}}</span>
139
+
132 140
              </template>
133 141
           </el-table-column>
134 142
   
135 143
           <el-table-column align="center" label="滤过器"  v-if="gatherSetting.dialysis_strainer ==1">
136 144
              <template slot-scope="scope">
137
-               <span>{{scope.row.dialysis_prescription.dialysis_strainer}}</span>
145
+              
146
+               <span v-if="scope.row.schedule_date == timenow">{{scope.row.dialysis_prescription.dialysis_strainer}}</span>
147
+               <span v-if="scope.row.schedule_date<timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
148
+               <span v-if="scope.row.schedule_date>timenow">{{ scope.row.dialysis_solution.dialysis_strainer }}</span>
138 149
              </template>
139 150
           </el-table-column>
140 151
 
141 152
 
142 153
           <el-table-column align="center" label="换药包/穿刺针"  v-if="gatherSetting.change_nurse ==1">
143 154
              <template slot-scope="scope">
155
+              
144 156
                <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('导管')!=-1">1</span>
145 157
                <span v-if="(getBloodAccessOption(scope.row.dialysis_prescription.blood_access)).indexOf('导管')==-1">0</span>
146 158
                 /
@@ -349,6 +361,7 @@
349 361
     import { uParseTime } from "@/utils/tools";
350 362
     import {getRemindPrintList,saveRemindPrint} from '@/api/schedule'
351 363
     import { getDataConfig } from '@/utils/data'
364
+    const moment = require('moment')
352 365
     import store from "@/store";
353 366
     export default {
354 367
       components: {
@@ -480,6 +493,7 @@
480 493
           partition_id:0,
481 494
           zoneList:[],
482 495
           gatherSetting:{},
496
+          timenow:0,
483 497
         }
484 498
       },
485 499
       open(){
@@ -518,7 +532,16 @@
518 532
         this.query.partition_id = 0
519 533
         this.query.page = 1
520 534
         this.getAllZone()
521
-       
535
+        
536
+        let dateone =  moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
537
+        //方式一
538
+        let timeStampOne = Date.parse(dateone)
539
+        
540
+        var arrDateTwo = (timeStampOne/1000)-28800
541
+
542
+        console.log("时间搓2222",arrDateTwo)
543
+
544
+        this.timenow = arrDateTwo
522 545
        
523 546
        
524 547
       },

+ 26 - 5
src/xt_pages/dialysis/details/consumable/dialysisGatherPrint.vue Visa fil

@@ -92,13 +92,23 @@
92 92
                     <span v-if="item.mode_id == 35">HDF1000</span>
93 93
                  </td>
94 94
                   <td width="100" v-if="gatherSetting.dialysis_dialyszers == 1">
95
-                    {{item.dialysis_prescription.dialysis_dialyszers}}
95
+                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_dialyszers}}</span> 
96
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
97
+                    <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_dialyszers}}</span> 
96 98
                   </td>
97 99
                   <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
98
-                    <span>{{item.dialysis_prescription.dialysis_irrigation}}</span>
100
+                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_irrigation}}</span>
101
+
102
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
103
+
104
+                    <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_irrigation}}</span>
99 105
                   </td>
100
-                  <td width="100"  v-if="gatherSetting.dialysis_irrigation ==1">
101
-                    <span>{{item.dialysis_prescription.dialysis_strainer}}</span>
106
+                  <td width="100"  v-if="gatherSetting.dialysis_strainer ==1">
107
+                    <span v-if="item.schedule_date == timenow">{{item.dialysis_prescription.dialysis_strainer}}</span>
108
+
109
+                    <span v-if="item.schedule_date < timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
110
+
111
+                    <span v-if="item.schedule_date > timenow">{{item.dialysis_solution.dialysis_strainer}}</span>
102 112
                   </td>
103 113
                   <td width="100"  v-if="gatherSetting.change_nurse ==1"> 
104 114
                     <span v-if="(getBloodAccessOption(item.dialysis_prescription.blood_access)).indexOf('导管')!=-1">1</span>
@@ -153,6 +163,7 @@
153 163
     import BreadCrumb from '@/xt_pages/components/bread-crumb'
154 164
     import print from 'print-js'
155 165
     import { getDataConfig } from '@/utils/data'
166
+    const moment = require('moment')
156 167
     export default {
157 168
       name: 'SchedulePrint',
158 169
       data() {
@@ -192,13 +203,23 @@
192 203
           total_two:0,
193 204
           total_three:0,
194 205
           org_id:'',
195
-          gatherSetting:{}
206
+          gatherSetting:{},
207
+          timenow:0,
196 208
         }
197 209
       },
198 210
       components: {
199 211
         BreadCrumb
200 212
       },
201 213
       created() {
214
+        let dateone =  moment().format('YYYY-MM-DD')//获取标准时间 //Tue Aug 16 2022 15:06:24 GMT+0800 (中国标准时间)
215
+        //方式一
216
+        let timeStampOne = Date.parse(dateone)
217
+        
218
+        var arrDateTwo = (timeStampOne/1000)-28800
219
+
220
+        console.log("时间搓2222",arrDateTwo)
221
+
222
+        this.timenow = arrDateTwo
202 223
         this.org_id = this.$store.getters.xt_user.org.id
203 224
         this.displace_liqui_part_option = this.$store.getters.displace_liqui
204 225
         this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')

+ 3 - 3
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Visa fil

@@ -30,7 +30,7 @@
30 30
           <el-col :span="8" v-if="isShow('实际超滤量')">
31 31
             <el-form-item
32 32
               label="实际超滤量(ml): " :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')"
33
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558"  >
33
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.template_id == 60 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 10340 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10387 || this.$store.getters.xt_user.template_info.org_id == 10430 || this.$store.getters.xt_user.template_info.org_id == 10432 || this.$store.getters.xt_user.template_info.org_id == 10441 || this.$store.getters.xt_user.template_info.org_id == 10445 || this.$store.getters.xt_user.template_info.org_id == 10410 || this.$store.getters.xt_user.template_info.org_id == 10495 || this.$store.getters.xt_user.template_info.org_id == 10558 || this.$store.getters.xt_user.template_info.org_id == 10597 || this.$store.getters.xt_user.template_info.org_id == 10599"  >
34 34
               <el-input v-model="form.actual_ultrafiltration"></el-input>
35 35
             </el-form-item>
36 36
             <el-form-item label="实际超滤量(L): " v-else :prop="isName('实际超滤量')" :rules="isCheckmust('实际超滤量')">
@@ -351,13 +351,13 @@
351 351
         </el-col>
352 352
 
353 353
         <el-col :span="8" v-if="isShow('透析中入量') && org_id!=10485 && org_id!=10460  && org_id!=10551">
354
-          <el-form-item label="透析中入量(L): " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
354
+          <el-form-item label="透析中入量: " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
355 355
             <el-input v-model="form.dialysis_intakes"></el-input>
356 356
           </el-form-item>
357 357
         </el-col>
358 358
 
359 359
         <el-col :span="8" v-if="isShow('透析中入量') && (org_id==10485 || org_id ==10460)">
360
-          <el-form-item label="透析中入量(g): " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
360
+          <el-form-item label="透析中入量: " :prop="isName('透析中入量')" :rules="isCheckmust('透析中入量')">
361 361
             <el-input v-model="form.dialysis_intakes"></el-input>
362 362
           </el-form-item>
363 363
         </el-col>

+ 5 - 33
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Visa fil

@@ -240,8 +240,8 @@
240 240
           <template slot-scope="scope">
241 241
             <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
242 242
               <span class="el-dropdown-link">
243
-                <!-- {{ getAdviceContent(scope.row, 1)}} -->
244
-                {{ scope.row.advice_name }}
243
+                {{ getAdviceContent(scope.row, 1)}}
244
+              
245 245
                 <i class="el-icon-arrow-down el-icon--right"></i>
246 246
               </span>
247 247
               <el-dropdown-menu slot="dropdown">
@@ -254,8 +254,8 @@
254 254
             <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
255 255
               <span class="el-dropdown-link">
256 256
                 &emsp;
257
-                {{ scope.row.advice_name }}
258
-                <!-- {{ getAdviceContent(scope.row, 2)}} -->
257
+              
258
+                {{ getAdviceContent(scope.row, 2)}}
259 259
 
260 260
                 <i class="el-icon-arrow-down el-icon--right"></i>
261 261
               </span>
@@ -2292,35 +2292,7 @@
2292 2292
         }
2293 2293
       },
2294 2294
 
2295
-      getAdviceContentOne(row, isChild) {
2296
-        // alert("来")
2297
-        console.log("row",row)
2298
-        let tempSingleDoseDesc = ''
2299
-        let tempDrugSpecDesc = ''
2300
-        let tempPrescribingNumberDesc = ''
2301
-
2302
-        if (row.prescribing_number) {
2303
-           tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
2304
-        }
2305
-
2306
-        if(this.org_id == 10188 ){
2307
-            tempPrescribingNumberDesc = ""
2308
-        }
2309
-
2310
-        if (row.single_dose) {
2311
-          if (this.template_id != 6) {
2312
-            tempSingleDoseDesc =' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
2313
-          } else {
2314
-            tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
2315
-          }
2316
-        }
2317
-
2318
-        if (row.advice_desc) {
2319
-          tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' + " " + row.remark
2320
-        }
2321
- 
2322
-        return row.advice_name +tempDrugSpecDesc +' ' +tempPrescribingNumberDesc + tempSingleDoseDesc
2323
-      },
2295
+    
2324 2296
       getPermission() {
2325 2297
         request
2326 2298
           .get('/api/func_per/get', {

+ 2 - 2
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Visa fil

@@ -1600,7 +1600,7 @@ export default {
1600 1600
         }
1601 1601
       }
1602 1602
 
1603
-      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10517  || this.$store.getters.xt_user.org.id == 10579){
1603
+      if(this.$store.getters.xt_user.org.id == 9671 || this.$store.getters.xt_user.org.id == 9675 || this.$store.getters.xt_user.org.id == 10340 || this.$store.getters.xt_user.org.id == 10517){
1604 1604
          var date = new Date()
1605 1605
           var year = date.getFullYear()
1606 1606
           var month = date.getMonth() + 1
@@ -1749,7 +1749,7 @@ export default {
1749 1749
           }
1750 1750
       }
1751 1751
 
1752
-      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587){
1752
+      if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597){
1753 1753
         var date = new Date()
1754 1754
           var year = date.getFullYear()
1755 1755
           var month = date.getMonth() + 1

+ 17 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Visa fil

@@ -301,6 +301,17 @@
301 301
             </el-form-item>
302 302
           </el-col>
303 303
 
304
+          <el-col :span="8" v-if="isShow('穿刺方向')">
305
+            <el-form-item label="穿刺方向: " :prop="isName('穿刺方向')">
306
+              <el-select v-model="assessmentBeforeDislysis.puncture_needle_direction">
307
+                <el-option :key="0" label="请选择" :value="0"></el-option>
308
+
309
+                <el-option v-for="item in punctureNeedleDireciton" :label="item.name" :value="item.name"
310
+                           :key="item.id"></el-option>
311
+              </el-select>
312
+            </el-form-item>
313
+          </el-col>
314
+
304 315
 
305 316
           <el-col :span="8">
306 317
             <el-form-item label="针眼: " :prop="isName('针眼')"
@@ -976,6 +987,7 @@
976 987
           befor_symptoms:"",
977 988
           washing_time:"",
978 989
           warsh_count:"",
990
+          puncture_needle_direction:"",
979 991
         },
980 992
 
981 993
         InnerDialogProps: {
@@ -1000,7 +1012,8 @@
1000 1012
         catheter_evaluation_program_list:[],
1001 1013
         skin_site_catheterization_list:[],
1002 1014
         summary:[],
1003
-        value2:""
1015
+        value2:"",
1016
+        punctureNeedleDireciton:[]
1004 1017
       }
1005 1018
     },
1006 1019
     props: {
@@ -1845,6 +1858,9 @@
1845 1858
 
1846 1859
       this.skin_site_catheterization_list = getDataConfig('hemodialysis','skin_site_catheterization')
1847 1860
 
1861
+      this.punctureNeedleDireciton = getDataConfig('hemodialysis','puncture_needle_direction')
1862
+      console.log("穿刺方向",this.punctureNeedleDireciton)
1863
+
1848 1864
       console.log("predialysis_evaluation2332323323222323",this.predialysis_evaluation)
1849 1865
 
1850 1866
       this.point_punctures = getDataConfig('hemodialysis','point_puncture')

+ 22 - 8
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Visa fil

@@ -2626,14 +2626,6 @@ mu
2626 2626
             } else if (schedual.schedule_type == 3) {
2627 2627
               this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2628 2628
             }
2629
-           }else if(this.$store.getters.xt_user.org.id == 10579){
2630
-              if (schedual.schedule_type == 1) {
2631
-              this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
2632
-            } else if (schedual.schedule_type == 2) {
2633
-              this.start_time = year + '-' + month + '-' + day + ' ' + '11:00'
2634
-            } else if (schedual.schedule_type == 3) {
2635
-              this.start_time = year + '-' + month + '-' + day + ' ' + '18:00'
2636
-            }
2637 2629
            }else if(this.$store.getters.xt_user.org.id == 10440){
2638 2630
               if (schedual.schedule_type == 1) {
2639 2631
               this.start_time = year + '-' + month + '-' + day + ' ' + '7:00'
@@ -2699,6 +2691,28 @@ mu
2699 2691
             var hours = date.getHours()
2700 2692
             var minites = date.getMinutes()
2701 2693
 
2694
+            if (month < 10) {
2695
+              month = '0' + month
2696
+            }
2697
+            if (day < 10) {
2698
+              day = '0' + day
2699
+            }
2700
+            if (hours < 10) {
2701
+              hours = '0' + hours
2702
+            }
2703
+            if (minites < 10) {
2704
+              minites = '0' + minites
2705
+            }
2706
+            this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
2707
+           }else if (this.$store.getters.xt_user.org.id == 10597){
2708
+            var date = new Date()
2709
+            var year = date.getFullYear()
2710
+            var month = date.getMonth() + 1
2711
+            var day = date.getDate()
2712
+
2713
+            var hours = date.getHours()
2714
+            var minites = date.getMinutes()
2715
+
2702 2716
             if (month < 10) {
2703 2717
               month = '0' + month
2704 2718
             }

+ 6 - 2
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Visa fil

@@ -1284,7 +1284,9 @@
1284 1284
                 org_id == 10395 ||
1285 1285
                 org_id == 10375 ||
1286 1286
                 org_id == 10480 ||
1287
-                org_id == 10551)
1287
+                org_id == 10551 ||
1288
+                org_id == 10597||
1289
+                org_id == 10599)
1288 1290
                 && org_id!=10387
1289 1291
             "
1290 1292
           >
@@ -1345,7 +1347,9 @@
1345 1347
               org_id!=10395 &&
1346 1348
               org_id!=10375 &&
1347 1349
               org_id!=10480 &&
1348
-              org_id!=10551
1350
+              org_id!=10551 &&
1351
+              org_id!=10597 &&
1352
+              org_id!=10599
1349 1353
               )
1350 1354
               || org_id == 10387
1351 1355
             "

+ 53 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue Visa fil

@@ -459,7 +459,9 @@
459 459
                       >
460 460
                       <span>
461 461
                         {{
462
-
462
+                          predialysis.puncture_needle_direction
463
+                            ? predialysis.puncture_needle_direction
464
+                            : "/"
463 465
                         }}
464 466
                       </span>
465 467
 
@@ -863,17 +865,20 @@
863 865
                         class="under_line"
864 866
                         style="width: 100px; text-align: center"
865 867
                       >
866
-                        {{
868
+                        <!-- {{
867 869
                           prescription.dialyzer_perfusion_apparatus
868 870
                             ? prescription.dialyzer_perfusion_apparatus
869 871
                             : ""
870
-                        }}
871
-                        <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span>
872
+                        }} -->
873
+                        <!-- <span v-if="prescription.dialyzer_perfusion_apparatus&&prescription.dialyzer_perfusion_apparatus!=''">/</span> -->
872 874
                         {{
873 875
                           prescription.dialysis_dialyszers
874 876
                             ? prescription.dialysis_dialyszers
875 877
                             : ""
876 878
                         }}
879
+                      
880
+                         <span v-if="prescription&&prescription.dialysis_strainer!=''"></span>
881
+                       
877 882
                       </div>
878 883
                     </div>
879 884
 
@@ -891,21 +896,21 @@
891 896
                       </div>
892 897
                     </div>
893 898
 
894
-                    <div
895
-                      class="inline_block"
896
-                      style="flex: 1"
897
-                    >
898
-                      透析机号:
899
+                    <div class="inline_block" style="flex: 1" >
900
+                      滤过器:
899 901
                       <div
900 902
                         class="under_line"
901
-                        style="width: 50px; text-align: center"
903
+                        style="width: 70px; text-align: center"
902 904
                       >
903
-                        {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
904
-                        ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
905
+                      {{ 
906
+                           prescription.dialysis_strainer?
907
+                           prescription.dialysis_strainer:"/"
908
+                         }}
905 909
                       </div>
906
-
907 910
                     </div>
908 911
 
912
+                   
913
+
909 914
                   </div>
910 915
 
911 916
                   <div
@@ -989,15 +994,30 @@
989 994
                         class="under_line"
990 995
                         style="width: 50px; text-align: center"
991 996
                       >
992
-                      {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0
993
-                        ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/"
997
+                      {{ predialysis.weight_before > 0 && predialysis.weight_after > 0
998
+                        ? parseFloat(predialysis.weight_before - predialysis.weight_after).toFixed(2): "/"
994 999
                       }}
995 1000
                       </div>
996 1001
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
1002
+                      <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">kg</span>
1003
+                    </div>
1004
+                    <div class="inline_block" style="flex: 1" v-if="org_id == 10597">
1005
+                      处方超滤量:
1006
+                      <div
1007
+                        class="under_line"
1008
+                        style="width: 60px; text-align: center"
1009
+                      >
1010
+                        {{
1011
+                          prescription.prescription_water
1012
+                            ? prescription.prescription_water
1013
+                            : "/"
1014
+                        }}
1015
+                      </div>
1016
+                      <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
997 1017
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
998 1018
                     </div>
999
-                    <div class="inline_block" style="flex: 1">
1000
-                      目标超滤量:
1019
+                    <div class="inline_block" style="flex: 1" v-if="org_id == 10599">
1020
+                      目标超滤量:
1001 1021
                       <div
1002 1022
                         class="under_line"
1003 1023
                         style="width: 60px; text-align: center"
@@ -1248,6 +1268,20 @@
1248 1268
                       <span v-if="prescription.anticoagulant == 13">iu</span>
1249 1269
                     </span>
1250 1270
                     </div>
1271
+                    <div
1272
+                      class="inline_block"
1273
+                      style="flex: 1"
1274
+                    >
1275
+                      透析机号:
1276
+                      <div
1277
+                        class="under_line"
1278
+                        style="width: 50px; text-align: center"
1279
+                      >
1280
+                        {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0
1281
+                        ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
1282
+                      </div>
1283
+
1284
+                    </div>
1251 1285
                   </div>
1252 1286
 
1253 1287
                 </td>
@@ -2251,10 +2285,10 @@
2251 2285
                       v-if="org_id != 10223 || org_id!=10375"
2252 2286
                     >
2253 2287
                        <span v-if="org_id!=10460">
2254
-                          透析中入量(L)
2288
+                          透析中入量:
2255 2289
                         </span>
2256 2290
                         <span v-if="org_id==10460">
2257
-                          透析中入量(ml)
2291
+                          透析中入量:
2258 2292
                         </span>
2259 2293
                       <div
2260 2294
                         class="under_line"

+ 1 - 1
src/xt_permission.js Visa fil

@@ -24,7 +24,7 @@ router.beforeEach((to, from, next) => {
24 24
   } else {
25 25
     next()
26 26
   }
27
-   return
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))