作者 徐强

提交

1 /unpackage/ 1 /unpackage/
  2 +/.hbuilderx/
@@ -645,7 +645,7 @@ @@ -645,7 +645,7 @@
645 ] 645 ]
646 } 646 }
647 //固体废物排放 647 //固体废物排放
648 - if(this.code == 'gtfwpf'){ 648 + if(this.param.type == 'gtfwpf'){
649 uni.setNavigationBarTitle({ 649 uni.setNavigationBarTitle({
650 title:'产排污环节对应排放口' 650 title:'产排污环节对应排放口'
651 }) 651 })
@@ -656,13 +656,7 @@ @@ -656,13 +656,7 @@
656 { 656 {
657 title:'一.有组织排口', 657 title:'一.有组织排口',
658 show:true, 658 show:true,
659 - subKeyList:[  
660 - {  
661 - title:'1.委托处置',  
662 - code:'wtcz',  
663 - name:'WTCZ'  
664 - }  
665 - ] 659 + subKeyList:[]
666 } 660 }
667 ] 661 ]
668 } 662 }
@@ -774,10 +768,7 @@ @@ -774,10 +768,7 @@
774 ] 768 ]
775 } 769 }
776 //废水 770 //废水
777 - if(this.code == 'fs'){  
778 - uni.setNavigationBarTitle({  
779 - title:'产排污环节对应排放口'  
780 - }) 771 + if(this.param.type == 'fs'){
781 this.checkList = [ 772 this.checkList = [
782 { 773 {
783 tempType:'check', 774 tempType:'check',
@@ -803,18 +794,7 @@ @@ -803,18 +794,7 @@
803 ] 794 ]
804 } 795 }
805 //废水DW001 796 //废水DW001
806 - // console.log('this.code',this.code)  
807 - console.log('this.param.type',this.param.type)  
808 if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){ 797 if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){
809 - let title = ''  
810 - if(this.code == 'fs_dw1'){  
811 - title = 'DW001'  
812 - }else{  
813 - title = 'DW002'  
814 - }  
815 - uni.setNavigationBarTitle({  
816 - title:title  
817 - })  
818 this.checkList = [ 798 this.checkList = [
819 { 799 {
820 tempType:'radio', 800 tempType:'radio',
@@ -942,25 +922,6 @@ @@ -942,25 +922,6 @@
942 } 922 }
943 //PH、化学需氧量(COD)、氨氮、总氮、总磷、可吸附有机卤素、二噁英 923 //PH、化学需氧量(COD)、氨氮、总氮、总磷、可吸附有机卤素、二噁英
944 if(this.code == 'fs_dw_ph' || this.code == 'fs_dw_hxxyl' || this.code == 'fs_dw_ad' || this.code == 'fs_dw_zd' || this.code == 'fs_dw_zl' || this.code == 'fs_dw_kxfyjls' || this.code == 'fs_dw_eey'){ 924 if(this.code == 'fs_dw_ph' || this.code == 'fs_dw_hxxyl' || this.code == 'fs_dw_ad' || this.code == 'fs_dw_zd' || this.code == 'fs_dw_zl' || this.code == 'fs_dw_kxfyjls' || this.code == 'fs_dw_eey'){
945 - let title = ''  
946 - if(this.code == 'fs_dw_ph'){  
947 - title = 'pH'  
948 - }else if(this.code == 'fs_dw_hxxyl'){  
949 - title = '化学需氧量(COD)'  
950 - }else if(this.code == 'fs_dw_ad'){  
951 - title = '氨氮'  
952 - }else if(this.code == 'fs_dw_zd'){  
953 - title = '总氮'  
954 - }else if(this.code == 'fs_dw_zl'){  
955 - title = '总磷'  
956 - }else if(this.code == 'fs_dw_kxfyjls'){  
957 - title = '可吸附有机卤素'  
958 - }else if(this.code == 'fs_dw_eey'){  
959 - title = '二噁英'  
960 - }  
961 - uni.setNavigationBarTitle({  
962 - title:title  
963 - })  
964 this.checkList = [ 925 this.checkList = [
965 { 926 {
966 tempType:'radio', 927 tempType:'radio',
@@ -1144,10 +1105,7 @@ @@ -1144,10 +1105,7 @@
1144 ] 1105 ]
1145 } 1106 }
1146 //废气 1107 //废气
1147 - if(this.code == 'fq'){  
1148 - uni.setNavigationBarTitle({  
1149 - title:'产排污环节对应排放口'  
1150 - }) 1108 + if(this.param.type == 'fq'){
1151 this.checkList = [ 1109 this.checkList = [
1152 { 1110 {
1153 tempType:'check', 1111 tempType:'check',
@@ -1349,9 +1307,6 @@ @@ -1349,9 +1307,6 @@
1349 } 1307 }
1350 //环境管理台账 1308 //环境管理台账
1351 if(this.param.type == '4'){ 1309 if(this.param.type == '4'){
1352 - uni.setNavigationBarTitle({  
1353 - title:'环境管理台账'  
1354 - })  
1355 this.checkList=[ 1310 this.checkList=[
1356 { 1311 {
1357 tempType:'radio', 1312 tempType:'radio',
@@ -1488,9 +1443,6 @@ @@ -1488,9 +1443,6 @@
1488 } 1443 }
1489 //执行报告 1444 //执行报告
1490 if(this.param.type == '5'){ 1445 if(this.param.type == '5'){
1491 - uni.setNavigationBarTitle({  
1492 - title:'执行报告'  
1493 - })  
1494 this.checkList=[ 1446 this.checkList=[
1495 { 1447 {
1496 tempType:'radio', 1448 tempType:'radio',
@@ -1555,9 +1507,6 @@ @@ -1555,9 +1507,6 @@
1555 } 1507 }
1556 //信息公开 1508 //信息公开
1557 if(this.param.type == '6'){ 1509 if(this.param.type == '6'){
1558 - uni.setNavigationBarTitle({  
1559 - title:'信息公开'  
1560 - })  
1561 this.checkList=[ 1510 this.checkList=[
1562 { 1511 {
1563 tempType:'radio', 1512 tempType:'radio',
@@ -1565,7 +1514,7 @@ @@ -1565,7 +1514,7 @@
1565 { 1514 {
1566 titleDesc:'一.', 1515 titleDesc:'一.',
1567 moreInfo:{}, 1516 moreInfo:{},
1568 - title:'一.公开方式是否满足要求', 1517 + title:'公开方式是否满足要求',
1569 moreBtn:true,//是否显示更多按钮 1518 moreBtn:true,//是否显示更多按钮
1570 check:-1, 1519 check:-1,
1571 last:false,//是否最后一项 1520 last:false,//是否最后一项
@@ -1622,9 +1571,6 @@ @@ -1622,9 +1571,6 @@
1622 } 1571 }
1623 //修改落实情况 1572 //修改落实情况
1624 if(this.param.type == '7'){ 1573 if(this.param.type == '7'){
1625 - uni.setNavigationBarTitle({  
1626 - title:'修改落实情况'  
1627 - })  
1628 this.checkList=[ 1574 this.checkList=[
1629 { 1575 {
1630 tempType:'radio', 1576 tempType:'radio',
@@ -1632,7 +1578,7 @@ @@ -1632,7 +1578,7 @@
1632 { 1578 {
1633 titleDesc:'一.', 1579 titleDesc:'一.',
1634 moreInfo:{}, 1580 moreInfo:{},
1635 - title:'一.这边更改要求事项', 1581 + title:'这边更改要求事项',
1636 moreBtn:true,//是否显示更多按钮 1582 moreBtn:true,//是否显示更多按钮
1637 check:-1,//是否显示更多按钮 1583 check:-1,//是否显示更多按钮
1638 last:false,//是否最后一项 1584 last:false,//是否最后一项
@@ -1671,9 +1617,6 @@ @@ -1671,9 +1617,6 @@
1671 } 1617 }
1672 //其他许可内容 1618 //其他许可内容
1673 if(this.param.type == '8'){ 1619 if(this.param.type == '8'){
1674 - uni.setNavigationBarTitle({  
1675 - title:'其他许可内容'  
1676 - })  
1677 this.checkList=[ 1620 this.checkList=[
1678 { 1621 {
1679 tempType:'radio', 1622 tempType:'radio',
@@ -1740,14 +1683,12 @@ @@ -1740,14 +1683,12 @@
1740 }) 1683 })
1741 } 1684 }
1742 //废水 1685 //废水
1743 - if(this.code == 'fs'){ 1686 + if(this.param.type == 'fs'){
1744 uni.setNavigationBarTitle({ 1687 uni.setNavigationBarTitle({
1745 title:'产排污环节对应排放口' 1688 title:'产排污环节对应排放口'
1746 }) 1689 })
1747 } 1690 }
1748 //废水DW001 1691 //废水DW001
1749 - // console.log('this.code',this.code)  
1750 - console.log('this.param.type',this.param.type)  
1751 if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){ 1692 if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){
1752 let title = '' 1693 let title = ''
1753 if(this.code == 'fs_dw1'){ 1694 if(this.code == 'fs_dw1'){
@@ -1796,7 +1737,7 @@ @@ -1796,7 +1737,7 @@
1796 }) 1737 })
1797 } 1738 }
1798 //废气 1739 //废气
1799 - if(this.code == 'fq'){ 1740 + if(this.param.type == 'fq'){
1800 uni.setNavigationBarTitle({ 1741 uni.setNavigationBarTitle({
1801 title:'产排污环节对应排放口' 1742 title:'产排污环节对应排放口'
1802 }) 1743 })
@@ -1862,7 +1803,6 @@ @@ -1862,7 +1803,6 @@
1862 method:'get', 1803 method:'get',
1863 data:{companyId:this.companyId,type:this.param.type}, 1804 data:{companyId:this.companyId,type:this.param.type},
1864 success: (res) => { 1805 success: (res) => {
1865 - console.log('结果',res)  
1866 for(var k = 0; k < this.checkList.length; k ++){ 1806 for(var k = 0; k < this.checkList.length; k ++){
1867 if(this.checkList[k].tempType == 'radio'){ 1807 if(this.checkList[k].tempType == 'radio'){
1868 for(var i = 0; i < this.checkList[k].keyList.length; i++){ 1808 for(var i = 0; i < this.checkList[k].keyList.length; i++){
@@ -1915,36 +1855,50 @@ @@ -1915,36 +1855,50 @@
1915 } 1855 }
1916 } 1856 }
1917 //噪声排放 1857 //噪声排放
1918 - if(this.param.type == 'zspf'){  
1919 - for(var i = 0;i < this.checkList.length; i ++){  
1920 - if(this.checkList[i].tempType == 'typeRadio'){  
1921 - for(var j = 0; j < this.checkList[i].keyList.length; j ++){  
1922 - console.log('keyList1111',this.checkList[i].keyList[j])  
1923 - setTimeout(()=>{  
1924 - uni.request({  
1925 - url:this.apiUrl + 'license/noiselimit',  
1926 - method:'get',  
1927 - data:{itemId:this.checkList[i].keyList[j].itemId},  
1928 - success: (res) => {  
1929 - console.log('限值查询 噪声',res,i,j)  
1930 - console.log('checkList222',this.checkList[i])  
1931 - console.log('keyList222',this.checkList[i].keyList[j])  
1932 - /* for(var k = 0; k < res.data.data.length; k ++){  
1933 - console.log('data',res.data.data[0])  
1934 -  
1935 - this.checkList[i].keyList[j].subKeyList.push({  
1936 - FIELDCN:res.data.data[k].TITLE,  
1937 - CONTENT:res.data.data[k].LIMIT_VALUE  
1938 - })  
1939 - console.log(this.checkList[i].keyList[j].subKeyList)  
1940 - } */  
1941 - }  
1942 - })  
1943 - },500)  
1944 - 1858 + if(this.param.type == 'zspf'){
  1859 + uni.request({
  1860 + url:this.apiUrl + 'license/noiselimit',
  1861 + method:'get',
  1862 + data:{itemId:'noisetime'},
  1863 + success: (res)=>{
  1864 + for(var k = 0; k < res.data.data.length; k ++){
  1865 + this.checkList[1].keyList[0].subKeyList.push({
  1866 + FIELDCN:res.data.data[k].TITLE,
  1867 + CONTENT:res.data.data[k].LIMIT_VALUE
  1868 + })
1945 } 1869 }
1946 } 1870 }
1947 - } 1871 + })
  1872 + uni.request({
  1873 + url:this.apiUrl + 'license/noiselimit',
  1874 + method:'get',
  1875 + data:{itemId:'noisevalue'},
  1876 + success: (res)=>{
  1877 + for(var k = 0; k < res.data.data.length; k ++){
  1878 + this.checkList[3].keyList[0].subKeyList.push({
  1879 + FIELDCN:res.data.data[k].TITLE,
  1880 + CONTENT:res.data.data[k].LIMIT_VALUE
  1881 + })
  1882 + }
  1883 + }
  1884 + })
  1885 + }
  1886 + //固体废物排放
  1887 + if(this.param.type == 'gtfwpf'){
  1888 + uni.request({
  1889 + url:this.apiUrl + 'license/pdos',
  1890 + method:'get',
  1891 + data:{companyId:this.companyId,pdoType:this.param.pdoType},
  1892 + success: (res) => {
  1893 + for(var j = 0; j < res.data.data.length; j ++){
  1894 + this.checkList[0].keyList[0].subKeyList.push({
  1895 + title:res.data.data[j].PDO_NM,
  1896 + param:JSON.stringify({type:'waterpull',pdoCd:res.data.data[j].PDO_CD}),
  1897 + name:res.data.data[j].PDO_CD
  1898 + })
  1899 + }
  1900 + }
  1901 + })
1948 } 1902 }
1949 //大气污染情况 1903 //大气污染情况
1950 if(this.param.type == 'dqwrqk'){ 1904 if(this.param.type == 'dqwrqk'){
@@ -137,11 +137,11 @@ @@ -137,11 +137,11 @@
137 subKeyList:[ 137 subKeyList:[
138 { 138 {
139 title:'1.废水', 139 title:'1.废水',
140 - code:'fs' 140 + param:JSON.stringify({type:'fs'})
141 }, 141 },
142 { 142 {
143 title:'2.废气', 143 title:'2.废气',
144 - code:'fq' 144 + param:JSON.stringify({type:'fq'})
145 } 145 }
146 ] 146 ]
147 }, 147 },
@@ -202,6 +202,7 @@ @@ -202,6 +202,7 @@
202 } 202 }
203 }, 203 },
204 onLoad(option) { 204 onLoad(option) {
  205 + console.log('option',option)
205 this.companyid = option.companyid 206 this.companyid = option.companyid
206 uni.setNavigationBarTitle({ 207 uni.setNavigationBarTitle({
207 title: option.factoryName //这是修改后的导航栏文字 208 title: option.factoryName //这是修改后的导航栏文字