Parcourir la source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 il y a 2 semaines
Parent
révision
23c96385a5
1 fichiers modifiés avec 18 ajouts et 25 suppressions
  1. 18 25
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue

+ 18 - 25
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Voir le fichier

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