作者 徐强

提交

/unpackage/
/.hbuilderx/
... ...
... ... @@ -645,7 +645,7 @@
]
}
//固体废物排放
if(this.code == 'gtfwpf'){
if(this.param.type == 'gtfwpf'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
... ... @@ -656,13 +656,7 @@
{
title:'一.有组织排口',
show:true,
subKeyList:[
{
title:'1.委托处置',
code:'wtcz',
name:'WTCZ'
}
]
subKeyList:[]
}
]
}
... ... @@ -774,10 +768,7 @@
]
}
//废水
if(this.code == 'fs'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
if(this.param.type == 'fs'){
this.checkList = [
{
tempType:'check',
... ... @@ -803,18 +794,7 @@
]
}
//废水DW001
// console.log('this.code',this.code)
console.log('this.param.type',this.param.type)
if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){
let title = ''
if(this.code == 'fs_dw1'){
title = 'DW001'
}else{
title = 'DW002'
}
uni.setNavigationBarTitle({
title:title
})
this.checkList = [
{
tempType:'radio',
... ... @@ -942,25 +922,6 @@
}
//PH、化学需氧量(COD)、氨氮、总氮、总磷、可吸附有机卤素、二噁英
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'){
let title = ''
if(this.code == 'fs_dw_ph'){
title = 'pH'
}else if(this.code == 'fs_dw_hxxyl'){
title = '化学需氧量(COD)'
}else if(this.code == 'fs_dw_ad'){
title = '氨氮'
}else if(this.code == 'fs_dw_zd'){
title = '总氮'
}else if(this.code == 'fs_dw_zl'){
title = '总磷'
}else if(this.code == 'fs_dw_kxfyjls'){
title = '可吸附有机卤素'
}else if(this.code == 'fs_dw_eey'){
title = '二噁英'
}
uni.setNavigationBarTitle({
title:title
})
this.checkList = [
{
tempType:'radio',
... ... @@ -1144,10 +1105,7 @@
]
}
//废气
if(this.code == 'fq'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
if(this.param.type == 'fq'){
this.checkList = [
{
tempType:'check',
... ... @@ -1349,9 +1307,6 @@
}
//环境管理台账
if(this.param.type == '4'){
uni.setNavigationBarTitle({
title:'环境管理台账'
})
this.checkList=[
{
tempType:'radio',
... ... @@ -1488,9 +1443,6 @@
}
//执行报告
if(this.param.type == '5'){
uni.setNavigationBarTitle({
title:'执行报告'
})
this.checkList=[
{
tempType:'radio',
... ... @@ -1555,9 +1507,6 @@
}
//信息公开
if(this.param.type == '6'){
uni.setNavigationBarTitle({
title:'信息公开'
})
this.checkList=[
{
tempType:'radio',
... ... @@ -1565,7 +1514,7 @@
{
titleDesc:'一.',
moreInfo:{},
title:'一.公开方式是否满足要求',
title:'公开方式是否满足要求',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,//是否最后一项
... ... @@ -1622,9 +1571,6 @@
}
//修改落实情况
if(this.param.type == '7'){
uni.setNavigationBarTitle({
title:'修改落实情况'
})
this.checkList=[
{
tempType:'radio',
... ... @@ -1632,7 +1578,7 @@
{
titleDesc:'一.',
moreInfo:{},
title:'一.这边更改要求事项',
title:'这边更改要求事项',
moreBtn:true,//是否显示更多按钮
check:-1,//是否显示更多按钮
last:false,//是否最后一项
... ... @@ -1671,9 +1617,6 @@
}
//其他许可内容
if(this.param.type == '8'){
uni.setNavigationBarTitle({
title:'其他许可内容'
})
this.checkList=[
{
tempType:'radio',
... ... @@ -1740,14 +1683,12 @@
})
}
//废水
if(this.code == 'fs'){
if(this.param.type == 'fs'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
}
//废水DW001
// console.log('this.code',this.code)
console.log('this.param.type',this.param.type)
if(this.code == 'fs_dw1' || this.code == 'fs_dw2'){
let title = ''
if(this.code == 'fs_dw1'){
... ... @@ -1796,7 +1737,7 @@
})
}
//废气
if(this.code == 'fq'){
if(this.param.type == 'fq'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
... ... @@ -1862,7 +1803,6 @@
method:'get',
data:{companyId:this.companyId,type:this.param.type},
success: (res) => {
console.log('结果',res)
for(var k = 0; k < this.checkList.length; k ++){
if(this.checkList[k].tempType == 'radio'){
for(var i = 0; i < this.checkList[k].keyList.length; i++){
... ... @@ -1915,36 +1855,50 @@
}
}
//噪声排放
if(this.param.type == 'zspf'){
for(var i = 0;i < this.checkList.length; i ++){
if(this.checkList[i].tempType == 'typeRadio'){
for(var j = 0; j < this.checkList[i].keyList.length; j ++){
console.log('keyList1111',this.checkList[i].keyList[j])
setTimeout(()=>{
uni.request({
url:this.apiUrl + 'license/noiselimit',
method:'get',
data:{itemId:this.checkList[i].keyList[j].itemId},
success: (res) => {
console.log('限值查询 噪声',res,i,j)
console.log('checkList222',this.checkList[i])
console.log('keyList222',this.checkList[i].keyList[j])
/* for(var k = 0; k < res.data.data.length; k ++){
console.log('data',res.data.data[0])
this.checkList[i].keyList[j].subKeyList.push({
FIELDCN:res.data.data[k].TITLE,
CONTENT:res.data.data[k].LIMIT_VALUE
})
console.log(this.checkList[i].keyList[j].subKeyList)
} */
}
})
},500)
if(this.param.type == 'zspf'){
uni.request({
url:this.apiUrl + 'license/noiselimit',
method:'get',
data:{itemId:'noisetime'},
success: (res)=>{
for(var k = 0; k < res.data.data.length; k ++){
this.checkList[1].keyList[0].subKeyList.push({
FIELDCN:res.data.data[k].TITLE,
CONTENT:res.data.data[k].LIMIT_VALUE
})
}
}
}
})
uni.request({
url:this.apiUrl + 'license/noiselimit',
method:'get',
data:{itemId:'noisevalue'},
success: (res)=>{
for(var k = 0; k < res.data.data.length; k ++){
this.checkList[3].keyList[0].subKeyList.push({
FIELDCN:res.data.data[k].TITLE,
CONTENT:res.data.data[k].LIMIT_VALUE
})
}
}
})
}
//固体废物排放
if(this.param.type == 'gtfwpf'){
uni.request({
url:this.apiUrl + 'license/pdos',
method:'get',
data:{companyId:this.companyId,pdoType:this.param.pdoType},
success: (res) => {
for(var j = 0; j < res.data.data.length; j ++){
this.checkList[0].keyList[0].subKeyList.push({
title:res.data.data[j].PDO_NM,
param:JSON.stringify({type:'waterpull',pdoCd:res.data.data[j].PDO_CD}),
name:res.data.data[j].PDO_CD
})
}
}
})
}
//大气污染情况
if(this.param.type == 'dqwrqk'){
... ...
... ... @@ -137,11 +137,11 @@
subKeyList:[
{
title:'1.废水',
code:'fs'
param:JSON.stringify({type:'fs'})
},
{
title:'2.废气',
code:'fq'
param:JSON.stringify({type:'fq'})
}
]
},
... ... @@ -202,6 +202,7 @@
}
},
onLoad(option) {
console.log('option',option)
this.companyid = option.companyid
uni.setNavigationBarTitle({
title: option.factoryName //这是修改后的导航栏文字
... ...