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