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
23c96385a5
1 changed files with 18 additions and 25 deletions
  1. 18 25
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue

+ 18 - 25
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

@@ -1722,7 +1722,6 @@ export default {
1722 1722
           }
1723 1723
           this.patientInfo = response.data.data.patientInfo
1724 1724
           // console.log("透析记录", this.patientInfo);
1725
-
1726 1725
           this.patientInfo.birth = uParseTime(
1727 1726
             this.patientInfo.birthday,
1728 1727
             '{y}-{m}-{d}'
@@ -1785,7 +1784,8 @@ export default {
1785 1784
           var tableAdvice = doctorAdevieInfo
1786 1785
           console.log('tableAdvice', tableAdvice)
1787 1786
           // console.log('医生', tableAdvice.length)
1788
-          if (tableAdvice.length === 0) {
1787
+          if (tableAdvice == null) {
1788
+            let tableAdvice1=[]
1789 1789
             var obj = { advice_name: '', start_time: '' }
1790 1790
             var obj1 = { advice_name: '', start_time: '' }
1791 1791
             var obj2 = { advice_name: '', start_time: '' }
@@ -1793,16 +1793,15 @@ export default {
1793 1793
             var obj4 = { advice_name: '', start_time: '' }
1794 1794
             var obj5 = { advice_name: '', start_time: '' }
1795 1795
             var obj6 = { advice_name: '', start_time: '' }
1796
-            tableAdvice.push(obj)
1797
-            tableAdvice.push(obj1)
1798
-            tableAdvice.push(obj2)
1799
-            tableAdvice.push(obj3)
1800
-            tableAdvice.push(obj4)
1801
-            tableAdvice.push(obj5)
1802
-            tableAdvice.push(obj6)
1803
-            this.tableAdvice = tableAdvice
1804
-          }
1805
-          if (tableAdvice.length === 1) {
1796
+            tableAdvice1.push(obj)
1797
+            tableAdvice1.push(obj1)
1798
+            tableAdvice1.push(obj2)
1799
+            tableAdvice1.push(obj3)
1800
+            tableAdvice1.push(obj4)
1801
+            tableAdvice1.push(obj5)
1802
+            tableAdvice1.push(obj6)
1803
+            this.tableAdvice = tableAdvice1
1804
+          }else if (tableAdvice.length === 1) {
1806 1805
             var obj = { advice_name: '', start_time: '' }
1807 1806
             var obj1 = { advice_name: '', start_time: '' }
1808 1807
             var obj2 = { advice_name: '', start_time: '' }
@@ -1816,8 +1815,7 @@ export default {
1816 1815
             tableAdvice.push(obj4)
1817 1816
             tableAdvice.push(obj5)
1818 1817
             this.tableAdvice = tableAdvice
1819
-          }
1820
-          if (tableAdvice.length === 2) {
1818
+          }else if (tableAdvice.length === 2) {
1821 1819
             var obj = { advice_name: '', start_time: '' }
1822 1820
             var obj1 = { advice_name: '', start_time: '' }
1823 1821
             var obj2 = { advice_name: '', start_time: '' }
@@ -1829,8 +1827,7 @@ export default {
1829 1827
             tableAdvice.push(obj3)
1830 1828
             tableAdvice.push(obj4)
1831 1829
             this.tableAdvice = tableAdvice
1832
-          }
1833
-          if (tableAdvice.length === 3) {
1830
+          }else if (tableAdvice.length === 3) {
1834 1831
             // eslint-disable-next-line no-redeclare
1835 1832
             var obj = { advice_name: '', start_time: '' }
1836 1833
             // eslint-disable-next-line no-redeclare
@@ -1846,8 +1843,7 @@ export default {
1846 1843
             tableAdvice.push(obj3)
1847 1844
 
1848 1845
             this.tableAdvice = tableAdvice
1849
-          }
1850
-          if (tableAdvice.length === 4) {
1846
+          }else if (tableAdvice.length === 4) {
1851 1847
             // eslint-disable-next-line no-redeclare
1852 1848
             var obj = { advice_name: '', start_time: '' }
1853 1849
             // eslint-disable-next-line no-redeclare
@@ -1859,8 +1855,7 @@ export default {
1859 1855
             tableAdvice.push(obj1)
1860 1856
             tableAdvice.push(obj2)
1861 1857
             this.tableAdvice = tableAdvice
1862
-          }
1863
-          if (tableAdvice.length === 5) {
1858
+          }else if (tableAdvice.length === 5) {
1864 1859
             // eslint-disable-next-line no-redeclare
1865 1860
             var obj = { advice_name: '', start_time: '' }
1866 1861
             // eslint-disable-next-line no-redeclare
@@ -1868,14 +1863,12 @@ export default {
1868 1863
             tableAdvice.push(obj)
1869 1864
             tableAdvice.push(obj1)
1870 1865
             this.tableAdvice = tableAdvice
1871
-          }
1872
-          if (tableAdvice.length === 6) {
1866
+          }else if (tableAdvice.length === 6) {
1873 1867
             // eslint-disable-next-line no-redeclare
1874 1868
             var obj = { advice_name: '', start_time: '' }
1875 1869
             tableAdvice.push(obj)
1876 1870
             this.tableAdvice = tableAdvice
1877
-          }
1878
-          if (tableAdvice.length >= 7) {
1871
+          }else if (tableAdvice.length >= 7) {
1879 1872
             this.tableAdvice = tableAdvice
1880 1873
           }
1881 1874
           var doctor = response.data.data.doctor
@@ -1973,7 +1966,7 @@ export default {
1973 1966
           var obj2 = arr2.join(',')
1974 1967
           console.log('obj2', obj2)
1975 1968
           receiverTreatmentAccess.precaution = obj2
1976
-          console.log('接诊评估', receiverTreatmentAccess)
1969
+          console.log('接诊评估2', receiverTreatmentAccess)
1977 1970
           this.receiverTreatmentAccess = receiverTreatmentAccess
1978 1971
           var dialysisway = response.data.data.dialysisway
1979 1972
           console.log('透析处方', dialysisway)