yq1 před 1 rokem
rodič
revize
7cf3a5ed23

+ 6 - 95
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Zobrazit soubor

@@ -114,8 +114,8 @@
114 114
             </div>
115 115
           </div>
116 116
         </div>
117
-
118
-        <div class="row" :style="this.totollength > 13 ? 'margin-bottom:400px;' : ''">
117
+<!-- margin-bottom:400px; -->
118
+        <div class="row" :style="this.totollength > 13 ? 'margin-bottom:10px;' : ''">
119 119
           <table class="proj_table">
120 120
             <tbody>
121 121
               <tr>
@@ -513,18 +513,6 @@
513 513
                         </td>
514 514
                         <td width="200">病情变化及处理</td>
515 515
                         <td width="100">护士签名</td>
516
-
517
-                        <!-- <td width="100">时间</td>
518
-                <td width="30">T<br>C°</td>
519
-                <td width="30">P<br/>次/分</td>
520
-                <td width="30">R<br/>次/分</td>
521
-                <td width="100">BP<br/>mmHg</td>
522
-                <td width="60">静脉压/动脉压<br/>mmHg</td>
523
-                <td width="80">血流量<br/>ml/min</td>
524
-                <td width="90">超滤量累计L</td>
525
-                <td width="80">钠浓度<br/>mmol/L</td>
526
-                <td width="240">病情特殊情况处理<br/>及专科护理措施记录</td>
527
-                <td  width="100">护士签名</td> -->
528 516
                       </tr>
529 517
 
530 518
                       <tr v-for="(monitor, monindex) in monitors" :key="monindex">
@@ -798,7 +786,7 @@
798 786
             </tr> -->
799 787
                 <tr style="line-height:35px;padding:8px 5px;">
800 788
                   <td style="font-size: 16px" width="10%">时间</td>
801
-                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容</td>
789
+                  <td style="font-size: 16px" colspan="2" width="45%">医嘱内容33</td>
802 790
                   <td style="font-size: 16px" width="10%">医生签名</td>
803 791
                   <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
804 792
                   <td style="font-size: 16px" width="10%">执行人签名</td>
@@ -1506,7 +1494,7 @@ export default {
1506 1494
       var response = this.childResponse;
1507 1495
       if (response.data.state == 1) {
1508 1496
         this.adminUser = response.data.data.users;
1509
-
1497
+        console.log('oooooooooo',response.data.data);
1510 1498
         this.users = response.data.data.users;
1511 1499
         this.patientInfo = response.data.data.patientInfo;
1512 1500
 
@@ -1744,84 +1732,6 @@ export default {
1744 1732
           this.doctor_advices[index]["isShow"] = 2;
1745 1733
         }
1746 1734
 
1747
-        // if (this.doctor_advices.length > 0) {
1748
-        //   var group = this.newAdviceGroupObject()
1749
-        //   var initGroupBlock = function(group, advice) {
1750
-        //     group.group_no = advice.groupno
1751
-        //   }
1752
-        //   for (let index = this.doctor_advices.length - 1; index >= 0; index--) {
1753
-        //     var new_advice_index = 0
1754
-
1755
-        //     if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
1756
-        //       new_advice_index = index + this.doctor_advices[index].children.length + 1
1757
-
1758
-        //       var doctor_advice = {
1759
-        //         delivery_way: this.doctor_advices[index].delivery_way,
1760
-        //         execution_frequency: this.doctor_advices[index].execution_frequency,
1761
-        //         groupno: this.doctor_advices[index].groupno,
1762
-        //         id: this.doctor_advices[index].id,
1763
-        //         parent_id: this.doctor_advices[index].parent_id,
1764
-        //         children: this.doctor_advices[index].children,
1765
-        //         remark: this.doctor_advices[index].remark,
1766
-        //         execution_staff: this.doctor_advices[index].execution_staff,
1767
-        //         checker: this.doctor_advices[index].checker,
1768
-        //         execution_time: this.doctor_advices[index].execution_time,
1769
-        //         advice_doctor: this.doctor_advices[index].advice_doctor
1770
-
1771
-        //       }
1772
-        //       doctor_advice['isShow'] = 1
1773
-        //       this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
1774
-        //       // this.doctor_advices.push(doctor_advice)
1775
-        //     }
1776
-        //   }
1777
-
1778
-        //   for (let index = 0; index < this.doctor_advices.length; index++) {
1779
-        //     const advice = this.doctor_advices[index]
1780
-        //     if (advice.groupno == 0) {
1781
-        //       // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1782
-        //       if (advice.parent_id > 0) {
1783
-        //         if (this.advice_groups.length > 0) {
1784
-        //           var parent_group = this.advice_groups[
1785
-        //             this.advice_groups.length - 1
1786
-        //           ]
1787
-        //           if (parent_group.advices.length > 0) {
1788
-        //             if (parent_group.advices[0].id == advice.parent_id) {
1789
-        //               parent_group.advices.push(advice)
1790
-        //             }
1791
-        //           }
1792
-        //         }
1793
-        //         continue
1794
-        //       } else {
1795
-        //         if (group.group_no > 0) {
1796
-        //           this.advice_groups.push(group)
1797
-        //           group = this.newAdviceGroupObject()
1798
-        //         }
1799
-
1800
-        //         initGroupBlock(group, advice)
1801
-        //         group.advices.push(advice)
1802
-        //         this.advice_groups.push(group)
1803
-        //         group = this.newAdviceGroupObject()
1804
-        //         continue
1805
-        //       }
1806
-        //     }
1807
-
1808
-        //     if (group.group_no > 0 && group.group_no != advice.groupno) {
1809
-        //       this.advice_groups.push(group)
1810
-        //       group = this.newAdviceGroupObject()
1811
-        //     }
1812
-        //     if (group.group_no == 0) {
1813
-        //       initGroupBlock(group, advice)
1814
-        //     }
1815
-        //     if (group.group_no == advice.groupno) {
1816
-        //       group.advices.push(advice)
1817
-        //     }
1818
-        //   }
1819
-
1820
-        //   if (group.group_no > 0) {
1821
-        //     // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
1822
-        //    this.advice_groups.push(group)
1823
-        //   }
1824
-        // }
1825 1735
         if (this.doctor_advices.length <= 6) {
1826 1736
           var nl = 6;
1827 1737
           this.print_length = 6;
@@ -1839,6 +1749,7 @@ export default {
1839 1749
         }
1840 1750
 
1841 1751
         this.totollength = this.doctor_advices.length + this.monitors.length;
1752
+        console.log('222223333333',this.totollength,'this.doctor_advices',this.doctor_advices,'this.monitors',this.monitors);
1842 1753
         if (this.totollength > 18) {
1843 1754
           var temp_advice_length = 17 - this.monitors.length;
1844 1755
           var doctor_advices_1 = [];
@@ -1854,7 +1765,7 @@ export default {
1854 1765
           this.doctor_advices = doctor_advices_1;
1855 1766
           this.doctor_advices_2 = doctor_advices_2;
1856 1767
         }
1857
-          console.log(this.advice_groups);
1768
+          console.log('kkkkkkkkkkk',this.doctor_advices_2,'this.doctor_advices',this.doctor_advices);
1858 1769
       } else {
1859 1770
         this.loading = false;
1860 1771
         this.$message.error("请求数据失败");