yq1 1 week ago
parent
commit
6da679f1cb
1 changed files with 18 additions and 24 deletions
  1. 18 24
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue

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

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