作者 xuqiang

提交

... ... @@ -13,8 +13,8 @@
</view>
</view>
<view class="subCheckWrap" v-if="item.show" v-for="(subItem,subIndex) in item.subKeyList" :key="subIndex">
<navigator class="subCheckItem" :url="'/pages/index/license/checkDetail?code='+subItem.code" hover-class="none">
{{subItem.title}}
<navigator class="subCheckItem" :url="'/pages/index/license/checkDetail?param='+subItem.param+'&companyid='+companyid" hover-class="none">
{{subIndex+1+'.'}}{{subItem.title}}
<view class="subCheckRight">
{{subItem.name}}
<image src="../static/image/icon_arrow.png" mode=""></image>
... ... @@ -41,6 +41,14 @@
},
checkLength:{
type:Number
},
companyid:{
type:String
}
},
watch:{
keyList(){
}
},
methods: {
... ...
... ... @@ -9,14 +9,14 @@
</view>
<view class="paramWrap">
<view class="tabList">
<view class="tabItem" :class="{active:tabIndex == 0}" @click="changeTabIndex(0)">
全部 (10)
<view class="tabItem" :class="{active:tabIndex == -1}" @click="changeTabIndex(-1)">
全部 ({{check.sum}})
</view>
<view class="tabItem" :class="{active:tabIndex == 1}" @click="changeTabIndex(1)">
待督查 (5)
待督查 ({{check.uncomplete}})
</view>
<view class="tabItem" :class="{active:tabIndex == 2}" @click="changeTabIndex(2)">
已督查 (5)
<view class="tabItem" :class="{active:tabIndex == 0}" @click="changeTabIndex(0)">
已督查 ({{check.complete}})
</view>
</view>
<view class="selectList">
... ... @@ -37,8 +37,9 @@
export default {
data() {
return {
check:{},
topHeight:0,
tabIndex:0,
tabIndex:-1,
bgColor:'#4bb377',
searchBgColor:"#fff",
}
... ... @@ -64,9 +65,19 @@
this.bgColor = '#fff'
this.searchBgColor = '#f2f3f5'
}
this.getData()
},
methods: {
getData(){
uni.request({
url:this.apiUrl + 'license/count',
method:'post',
success: (res) => {
console.log('督查数值',res)
this.check = res.data.data
}
})
},
search(){
uni.navigateTo({
url:'/pages/index/license/search'
... ... @@ -77,6 +88,7 @@
},
changeTabIndex(tabIndex){
this.tabIndex = tabIndex
this.$emit('changeParamType',{tabIndex:tabIndex})
}
}
}
... ...
... ... @@ -2,27 +2,27 @@
<view class="wrap">
<view class="radioTemp" :class="{margBottom:item.last}" v-for="(item,index) in keyList" :key="index">
<view class="radioTop">
{{item.title}}
{{item.titleDesc}}{{item.title}}
<image v-if="item.moreBtn" src="../static/image/icon_add.png" mode="" @click="showRecordMore(index)"></image>
</view>
<view class="radioBottom" :class="{padBottom:item.more}">
<view class="radioBottom" :class="{padBottom: item.moreInfo.LAT && item.moreInfo.NOTE && item.moreInfo.IMGS}">
<view class="radioItem" @click="radioCheck(index,subIndex)" :class="{yc:item.check == subItem.check && item.check == 0,yz:item.check == subItem.check && item.check == 1}" v-for="(subItem,subIndex) in item.subKeyList" :key="subIndex">
{{subItem.title}}
</view>
</view>
<view v-if="item.more">
<view class="address" v-if="lan != '' && lon != ''">
<view v-if="item.moreInfo">
<view class="address" v-if="item.moreInfo.LAT">
<image src="../static/image/icon_loc2.png" mode=""></image>
<view class="lang">
经度: {{lan}} 纬度: {{lon}}
经度: {{item.moreInfo.LAT}} 纬度: {{item.moreInfo.LON}}
<image class="clearBtn" src="../static/image/icon_clear2.png" mode="" @click="delAddress()"></image>
</view>
</view>
<view class="desc">
经过上述讨论, 要想清楚,关于我们,到底是一种怎么样的存在。 现在,解决关于我们的问题,是非常非常重要的。
<view class="desc" v-if="item.moreInfo.NOTE">
{{item.moreInfo.NOTE}}
</view>
<view class="imgList">
<view class="imgItem" v-for="(item,index) in imgList" :key="index">
<view class="imgList" v-if="item.moreInfo.IMGS">
<view class="imgItem" v-for="(item,index) in item.moreInfo.IMGS" :key="index">
<image class="img" src="../static/logo.png" mode=""></image>
<image class="clearBtn" src="../static/image/icon_clear2.png" mode="" @click="del(index)"></image>
</view>
... ... @@ -46,9 +46,6 @@
type:Array
}
},
watch:{
},
methods: {
delAddress(){
this.lan = ''
... ...
... ... @@ -4,7 +4,7 @@
<view class="bottomWrap" :class="{marBottom:!item.show}">
<view class="bottomItem" @click="item.show = !item.show">
<view class="bottomLeft">
{{item.title}}
{{item.titleDesc}}{{item.title}}
</view>
<view class="bottomRight">
{{item.subTitle}}
... ... @@ -15,14 +15,17 @@
</view>
<view class="subCheckWrap" v-if="item.show" v-for="(subItem,subIndex) in item.subKeyList" :key="subIndex">
<view class="subCheckItem">
{{subItem.title}}
<br v-if="subItem.unit != ''">{{subItem.unit}}</br>
<view class="subCheckLeft">
{{subIndex + 1 + '.'}}{{subItem.FIELDCN}}
</view>
<view class="subCheckCenter">
{{subItem.CONTENT}}
</view>
<view class="subCheckRight">
{{subItem.name}}
<view class="yc" :class="{active:subItem.choose == 0}" @click="choose('yc',index,subIndex)">
<view class="yc" :class="{active:subItem.FILEDSTATICS == 0}" @click="choose('yc',index,subIndex)">
异常
</view>
<view class="yz" :class="{active:subItem.choose == 1}" @click="choose('yz',index,subIndex)">
<view class="yz" :class="{active:subItem.FILEDSTATICS == 1}" @click="choose('yz',index,subIndex)">
一致
</view>
</view>
... ... @@ -47,9 +50,9 @@
methods: {
choose(type,index,subIndex){
if(type == 'yc'){
this.keyList[index].subKeyList[subIndex].choose = 0
this.keyList[index].subKeyList[subIndex].FILEDSTATICS = 0
}else{
this.keyList[index].subKeyList[subIndex].choose = 1
this.keyList[index].subKeyList[subIndex].FILEDSTATICS = 1
}
}
}
... ... @@ -64,10 +67,12 @@
.bottomItem .bottomRight{color: #969799;display: flex;align-items: center;}
.bottomRight image{width: 32rpx;height: 32rpx;}
.subCheckWrap{padding: 0 32rpx 0 64rpx;}
.subCheckWrap .subCheckItem{display: flex;justify-content: space-between;align-items: center;height: 96rpx;color: #646566;font-size: 28rpx;}
.subCheckItem .subCheckRight{display: flex;align-items: center;}
.subCheckRight .yc{width: 104rpx;height: 48rpx;background: #ffffff;border: 1rpx solid #dcdee0;border-radius: 48rpx 0 0 48rpx;text-align: center;line-height: 48rpx;color: #969799;font-size: 28rpx;margin: 0 10rpx 0 32rpx;}
.subCheckWrap .subCheckItem{display: flex;align-items: center;padding: 20rpx 0; color: #646566;font-size: 28rpx;}
.subCheckItem .subCheckLeft{flex: 1;}
.subCheckItem .subCheckCenter{width: 180rpx;padding: 0 10rpx;word-break: break-word;text-align: center;}
.subCheckItem .subCheckRight{display: flex;align-items: center;width:200rpx;justify-content: space-between;}
.subCheckRight .yc{width: 95rpx;height: 48rpx;background: #ffffff;border: 1rpx solid #dcdee0;border-radius: 48rpx 0 0 48rpx;text-align: center;line-height: 48rpx;color: #969799;font-size: 28rpx;}
.yc.active{background: #ffeeec;border: 1rpx solid #f2485a;color: #f2485a;}
.subCheckRight .yz{width: 104rpx;height: 48rpx;background: #ffffff;border: 1rpx solid #dcdee0;border-radius: 0 48rpx 48rpx 0;text-align: center;line-height: 48rpx;color: #969799;font-size: 28rpx;}
.subCheckRight .yz{width: 95rpx;height: 48rpx;background: #ffffff;border: 1rpx solid #dcdee0;border-radius: 0 48rpx 48rpx 0;text-align: center;line-height: 48rpx;color: #969799;font-size: 28rpx;}
.yz.active{background: #e8fff2;border: 1rpx solid #a1ddba;color: #58b981;}
</style>
... ...
... ... @@ -6,7 +6,7 @@ import check from './check/index.js'
Vue.config.productionTip = false
Vue.prototype.$imgUrl="http://api.intewl.cn/uploads/"
Vue.prototype.apiUrl="http://api.intewl.cn/api"
Vue.prototype.apiUrl="http://60.28.38.245:8090/hwes-admin/"
// Vue.prototype.$imgUrl="http://www.mall.com/uploads/"
// Vue.prototype.apiUrl="http://www.mall.com/api"
Vue.prototype.check=check;
... ...
<template>
<view>
<!-- 顶部区域 -->
<check-top-wrap :yearVal="yearVal" :keyword="keyword" :cityVal="cityVal" @showPicker="showPicker"></check-top-wrap>
<check-top-wrap @changeParamType="changeParamType" :yearVal="yearVal" :keyword="keyword" :cityVal="cityVal" @showPicker="showPicker"></check-top-wrap>
<w-picker
:visible.sync="visibleYear"
mode="date"
... ... @@ -23,7 +23,7 @@
ref="region"
>选择地区</w-picker>
<view class="factoryList">
<navigator class="factoryItem" v-for="(item,index) in list" :key="index" url="factoryDetail?factoryName=迁安市西甲河造纸厂" hover-class="none">
<navigator class="factoryItem" v-for="(item,index) in list" :key="index" :url="'factoryDetail?factoryName='+item.OWNERCOMPANY+'&companyid='+item.companyid" hover-class="none">
<view class="factoryLeft">
<view class="factoryNum">
{{index + 1}}
... ... @@ -31,16 +31,16 @@
</view>
<view class="factoryRight">
<view class="factoryName">
迁安市西甲河造纸厂
{{item.OWNERCOMPANY}}
</view>
<view class="typeAddress">
机制纸板制造
{{item.TYPE}}
<view class="address">
河北
{{item.PROVINCE}}
</view>
</view>
<view class="factoryDate">
11-30
{{item.MISSIONTM}}
</view>
</view>
</navigator>
... ... @@ -55,7 +55,8 @@
export default {
data() {
return {
list:[1,2,3,4,5],
param:{},
list:[],
yearVal:new Date().getFullYear().toString(),
cityVal:'',
visibleYear:false,
... ... @@ -96,8 +97,32 @@
this.cityVal = '全流域'
this.defaultRegion = ['全流域','']
//#endif
this.getData()
},
methods: {
getData(){
uni.showLoading({
title:'加载中'
})
uni.request({
url:this.apiUrl+'license/list',
data:this.param,
success: (res) => {
console.log('厂家',res)
this.list = res.data.data
uni.hideLoading()
}
})
},
changeParamType(e){
if(e.tabIndex == -1){
this.param = {}
this.getData()
}else{
this.param.type = e.tabIndex
this.getData()
}
},
showPicker(e){
if(e.pickerType == 'year'){
this.visibleYear = true
... ... @@ -136,6 +161,6 @@
.factoryItem .factoryRight{flex: 1;}
.factoryRight .factoryName{font-size: 36rpx;}
.factoryRight .typeAddress{display: flex;padding-top: 24rpx;font-size: 28rpx;color: #969799;align-items: center;}
.typeAddress .address{margin-left: 24rpx;width: 64rpx;height: 32rpx;background: #e6faf1;border-radius: 8rpx;text-align: center;line-height: 32rpx;font-size: 24rpx;color: #6fc393;}
.typeAddress .address{margin-left: 24rpx;padding: 0 5rpx;height: 32rpx;background: #e6faf1;border-radius: 8rpx;text-align: center;line-height: 32rpx;font-size: 24rpx;color: #6fc393;}
.factoryRight .factoryDate{font-size: 24rpx;color: #c8c9cc;padding-top: 4rpx;}
</style>
... ...
<template>
<view>
<view v-for="(item,index) in checkList" :key="index">
<check-temp v-if="item.tempType == 'check'" :checkIndex="index" :checkLength="checkList.length" :keyList="item.keyList"></check-temp>
<check-temp v-if="item.tempType == 'check'" :companyid="companyId" :checkIndex="index" :checkLength="checkList.length" :keyList="item.keyList"></check-temp>
<radio-temp v-if="item.tempType == 'radio'" @showRecordMore="showRecordMore = true" :keyList="item.keyList"></radio-temp>
<type-radio-temp v-if="item.tempType == 'typeRadio'" :keyList="item.keyList"></type-radio-temp>
<sub-radio-temp v-if="item.tempType == 'subRadio'" :keyList="item.keyList"></sub-radio-temp>
... ... @@ -68,15 +68,32 @@
export default {
data() {
return {
code:'',
companyId:'',
param:{},
pdoCd:'',
showRecordMore:false,
checkList:[
checkList:[]
}
},
components:{
radioTemp,
checkTemp,
typeRadioTemp,
subRadioTemp
},
onLoad(option){
this.param = JSON.parse(option.param)
this.companyId = option.companyid
console.log('option',option)
if(this.param.type == '1'){
this.checkList=[
{
tempType:'radio',
keyList:[
{
title:'一.单位名称',
more:false,
titleDesc:'一.',
moreInfo:{},
title:'单位名称',
moreBtn:true,//是否显示更多按钮
check:0,
last:false,
... ... @@ -92,8 +109,9 @@
]
},
{
title:'二.生产经营地',
more:false,
titleDesc:'二.',
moreInfo:{},
title:'生产经营地址',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -109,8 +127,9 @@
]
},
{
title:'三.技术负责人',
more:false,
titleDesc:'三.',
moreInfo:{},
title:'技术负责人',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -127,8 +146,9 @@
]
},
{
title:'四.生产设施运行',
more:false,
titleDesc:'四.',
moreInfo:{},
title:'生产设施运行',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -144,8 +164,9 @@
]
},
{
title:'五.治理设施运行',
more:false,
titleDesc:'五.',
moreInfo:{},
title:'治理设施运行',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -161,8 +182,9 @@
]
},
{
title:'六.正本规范悬挂',
more:false,
titleDesc:'六.',
moreInfo:{},
title:'正本规范悬挂',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -178,7 +200,9 @@
]
},
{
title:'七.其他变更事项',
titleDesc:'七.',
moreInfo:{},
title:'其他变更事项',
more:false,
moreBtn:true,//是否显示更多按钮
check:-1,
... ... @@ -198,48 +222,17 @@
}
]
}
},
components:{
radioTemp,
checkTemp,
typeRadioTemp,
subRadioTemp
},
onLoad(option){
this.code = option.code
},
onReady() {
console.log('onReady')
//基本情况
if(this.code == 'jbqk'){
uni.setNavigationBarTitle({
title:'基本情况'
})
}
//水污染情况
if(this.code == 'swrqk'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
if(this.param.type == 'swrqk'){
this.checkList = [
{
tempType:'check',
pdoType:'0',
keyList:[
{
title:'一.有组织排口',
show:false,
subKeyList:[
{
title:'1.废水排放口1',
code:'yzzpk',
name:'DW001'
},
{
title:'2.废水排放口2',
code:'yzzpk',
name:'DW002'
}
]
subKeyList:[]
}
]
},
... ... @@ -247,8 +240,9 @@
tempType:'radio',
keyList:[
{
title:'二.未登记排口',
more:false,
moreInfo:{},
titleDesc:'二.',
title:'未登记排口',
moreBtn:true,//是否显示更多按钮
check:-1,
subKeyList:[
... ... @@ -263,8 +257,9 @@
]
},
{
title:'三.雨水排口',
more:false,
moreInfo:{},
titleDesc:'三.',
title:'雨水排口',
moreBtn:true,//是否显示更多按钮
check:-1,
subKeyList:[
... ... @@ -282,18 +277,16 @@
}
]
}
//DW001
if(this.code == 'yzzpk'){
uni.setNavigationBarTitle({
title:'DW001'
})
//水排口
if(this.param.type == 'waterpull'){
this.checkList = [
{
tempType:'radio',
keyList:[
{
title:'一.坐标及市况',
more:false,
moreInfo:{},
titleDesc:'一.',
title:'坐标及实况',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -309,8 +302,9 @@
]
},
{
title:'二.排放口类型',
more:false,
moreInfo:{},
titleDesc:'二.',
title:'排放口类型',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -326,10 +320,11 @@
]
},
{
title:'三.排放去向',
moreInfo:{},
titleDesc:'三.',
title:'排放去向',
moreBtn:true,//是否显示更多按钮
check:-1,
more:false,
last:false,
subKeyList:[
{
... ... @@ -343,8 +338,9 @@
]
},
{
title:'四.排放规律',
more:false,
moreInfo:{},
titleDesc:'四.',
title:'排放规律',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -365,114 +361,18 @@
tempType:'typeRadio',
keyList:[
{
title:'五.受纳自然水体',
titleDesc:'五.',
title:'受纳自然水体',
show:true,
subTitle:'北排明渠',
subKeyList:[
{
title:'1.功能目标',
unit:'',
choose:-1,
name:'v类'
},
{
title:'2.汇入经纬度',
unit:'',
choose:-1,
name:'v类'
}
]
subTitle:'',
subKeyList:[]
},
{
title:'六.污染物种类',
titleDesc:'六.',
title:'污染物种类',
show:true,
subTitle:'',
subKeyList:[
{
title:'1.pH',
unit:'',
choose:-1,
name:'6-9'
},
{
title:'2.色度 (稀释倍数)',
unit:'',
choose:-1,
name:'50'
},
{
title:'3.悬浮物 (mg/)',
unit:'',
choose:-1,
name:'30'
},
{
title:'4.五日生化需氧量',
unit:'(BOD 5, mg/L)',
choose:-1,
name:'20'
},
{
title:'5.化学需氧量',
unit:'(COD C r ,mg/L)',
choose:-1,
name:'80'
},
{
title:'6.氨氮 (mg/L)',
unit:'',
choose:-1,
name:'8'
},
{
title:'7.总氮 (mg/L)',
unit:'',
choose:-1,
name:'12'
},
{
title:'8.总磷 (mg/L)',
unit:'',
choose:-1,
name:'0.8'
},
{
title:'9.可吸附有机卤素',
unit:'(AOX,mg/L)',
choose:-1,
name:'50'
},
{
title:'10.二噁英',
unit:'(pgTEQ/L)',
choose:-1,
name:'30'
},
{
title:'11.pH',
unit:'',
choose:-1,
name:'6-9'
},
{
title:'12.pH',
unit:'',
choose:-1,
name:'6-9'
},
{
title:'13.pH',
unit:'',
choose:-1,
name:'6-9'
},
{
title:'14.pH',
unit:'',
choose:-1,
name:'6-9'
}
]
subKeyList:[]
}
]
},
... ... @@ -480,8 +380,9 @@
tempType:'radio',
keyList:[
{
title:'七.未登记污染物',
more:false,
moreInfo:{},
titleDesc:'七.',
title:'未登记污染物',
moreBtn:true,//是否显示更多按钮
check:-1,
last:false,
... ... @@ -497,8 +398,9 @@
]
},
{
title:'八.执法监测',
more:false,
moreInfo:{},
titleDesc:'八.',
title:'执法监测',
moreBtn:true,//是否显示更多按钮
check:-1,
last:true,
... ... @@ -518,10 +420,7 @@
]
}
//大气污染情况
if(this.code == 'dqwrqk'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
if(this.param.type == 'dqwrqk'){
this.checkList = [
{
tempType:'check',
... ... @@ -529,34 +428,12 @@
{
title:'一.有组织排口',
show:false,
subKeyList:[
{
title:'1.排口1',
code:'pk',
name:'DA001'
},
{
title:'2.排口2',
code:'pk',
name:'DA002'
}
]
subKeyList:[]
},
{
title:'二.有组织排口',
show:false,
subKeyList:[
{
title:'1.厂界1',
code:'cj',
name:'CJ001'
},
{
title:'2.厂界2',
code:'cj',
name:'CJ002'
}
]
subKeyList:[]
}
]
},
... ... @@ -564,8 +441,9 @@
tempType:'radio',
keyList:[
{
title:'三.未登记排口',
more:false,
moreInfo:{},
titleDesc:'三.',
title:'未登记排口',
moreBtn:true,
check:-1,
subKeyList:[
... ... @@ -584,19 +462,17 @@
]
}
//排口、厂界
if(this.code == 'pk' || this.code == 'cj'){
uni.setNavigationBarTitle({
title:'DA001'
})
if(this.param.type == 'airpull'){
this.checkList = [
{
tempType:'radio',
keyList:[
{
title:'一.产污环节',
moreInfo:{},
titleDesc:'一.',
title:'产污环节',
moreBtn:true,//是否显示更多按钮
check:-1,
more:false,
last:false,
subKeyList:[
{
... ... @@ -615,29 +491,11 @@
tempType:'typeRadio',
keyList:[
{
title:'二.污染物种类',
titleDesc:'二.',
title:'污染物种类',
show:false,
subTitle:'',
subKeyList:[
{
title:'1.硫化氢(mg/Nm3)',
unit:'',
choose:-1,
name:'0.06'
},
{
title:'2.臭气浓度(mg/Nm3)',
unit:'',
choose:-1,
name:'20'
},
{
title:'3.氨 (氨气)(mg/Nm3)',
unit:'',
choose:-1,
name:'1.6'
}
]
subKeyList:[]
}
]
},
... ... @@ -645,7 +503,9 @@
tempType:'radio',
keyList:[
{
title:'三.未登记污染物',
moreInfo:{},
titleDesc:'三.',
title:'未登记污染物',
more:false,
moreBtn:true,//是否显示更多按钮
check:-1,
... ... @@ -662,8 +522,9 @@
]
},
{
title:'四.执法监测',
more:false,
moreInfo:{},
titleDesc:'四.',
title:'执法监测',
moreBtn:false,
check:-1,
last:true,
... ... @@ -683,19 +544,17 @@
]
}
//噪声排放
if(this.code == 'zspf'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
if(this.param.type == 'zspf'){
this.checkList = [
{
tempType:'radio',
keyList:[
{
title:'一.产污环节',
moreInfo:{},
titleDesc:'一.',
title:'产污环节',
moreBtn:false,
check:-1,
more:false,
last:false,
subKeyList:[
{
... ... @@ -714,23 +573,12 @@
tempType:'typeRadio',
keyList:[
{
title:'二.生产时段',
titleDesc:'二.',
title:'生产时段',
itemId:'noisetime',
show:false,
subTitle:'',
subKeyList:[
{
title:'1.昼间',
unit:'',
choose:-1,
name:'6时至22时'
},
{
title:'2.夜间',
unit:'',
choose:-1,
name:'22时至6时'
}
]
subKeyList:[]
}
]
},
... ... @@ -738,7 +586,9 @@
tempType:'radio',
keyList:[
{
title:'三.执行标准',
moreInfo:{},
titleDesc:'三.',
title:'执行标准',
more:false,
moreBtn:false,
check:-1,
... ... @@ -760,23 +610,12 @@
tempType:'typeRadio',
keyList:[
{
title:'四.排放限值',
titleDesc:'四.',
title:'排放限值',
itemId:'noisevalue',
show:false,
subTitle:'',
subKeyList:[
{
title:'1.昼间',
unit:'',
choose:-1,
name:'6时至22时'
},
{
title:'2.夜间',
unit:'',
choose:-1,
name:'22时至6时'
}
]
subKeyList:[]
}
]
},
... ... @@ -784,10 +623,11 @@
tempType:'radio',
keyList:[
{
title:'五.噪声类别',
moreInfo:{},
titleDesc:'五.',
title:'噪声类别',
check:-1,
moreBtn:false,
more:false,
last:true,
subKeyList:[
{
... ... @@ -963,7 +803,8 @@
]
}
//废水DW001
console.log('this.code',this.code)
// 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'){
... ... @@ -1507,7 +1348,7 @@
]
}
//环境管理台账
if(this.code == 'hjgltz'){
if(this.param.type == '4'){
uni.setNavigationBarTitle({
title:'环境管理台账'
})
... ... @@ -1516,9 +1357,10 @@
tempType:'radio',
keyList:[
{
title:'一.生产设施运行管理信息',
titleDesc:'一.',
moreInfo:{},
title:'生产设施运行管理信息',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,//是否显示更多按钮
last:false,//是否最后一项
subKeyList:[
... ... @@ -1533,9 +1375,10 @@
]
},
{
title:'二.污染防治设置运行管理信息',
titleDesc:'二.',
moreInfo:{},
title:'污染防治设置运行管理信息',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1550,9 +1393,10 @@
]
},
{
title:'三.监测记录信息',
titleDesc:'三.',
moreInfo:{},
title:'监测记录信息',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1567,9 +1411,10 @@
]
},
{
title:'四.特殊时段管理要求执行情况',
titleDesc:'四.',
moreInfo:{},
title:'特殊时段管理要求执行情况',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1584,7 +1429,9 @@
]
},
{
title:'五.纸质、电子齐备',
titleDesc:'五.',
moreInfo:{},
title:'纸质、电子齐备',
moreBtn:false,
check:-1,
last:false,
... ... @@ -1600,7 +1447,9 @@
]
},
{
title:'六.保存时间不少于3年',
titleDesc:'六.',
moreInfo:{},
title:'保存时间不少于3年',
moreBtn:false,
check:-1,
last:false,
... ... @@ -1616,7 +1465,9 @@
]
},
{
title:'七.专人专档管理',
titleDesc:'七.',
moreInfo:{},
title:'专人专档管理',
moreBtn:false,
check:-1,
last:true,
... ... @@ -1636,7 +1487,7 @@
]
}
//执行报告
if(this.code == 'zxbg'){
if(this.param.type == '5'){
uni.setNavigationBarTitle({
title:'执行报告'
})
... ... @@ -1645,9 +1496,10 @@
tempType:'radio',
keyList:[
{
title:'一.内容是否满足要求',
titleDesc:'一.',
moreInfo:{},
title:'内容是否满足要求',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,//是否显示更多按钮
last:false,//是否最后一项
subKeyList:[
... ... @@ -1662,9 +1514,10 @@
]
},
{
title:'二.上报频次时间是否满足要求',
titleDesc:'二.',
moreInfo:{},
title:'上报频次时间是否满足要求',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1679,9 +1532,10 @@
]
},
{
title:'三.登记与排放总量是否一致',
titleDesc:'三.',
moreInfo:{},
title:'登记与排放总量是否一致',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1700,7 +1554,7 @@
]
}
//信息公开
if(this.code == 'xxgk'){
if(this.param.type == '6'){
uni.setNavigationBarTitle({
title:'信息公开'
})
... ... @@ -1709,9 +1563,10 @@
tempType:'radio',
keyList:[
{
titleDesc:'一.',
moreInfo:{},
title:'一.公开方式是否满足要求',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,//是否最后一项
subKeyList:[
... ... @@ -1726,9 +1581,10 @@
]
},
{
title:'二.上报频次时间是否满足要求',
titleDesc:'二.',
moreInfo:{},
title:'上报频次时间是否满足要求',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1743,9 +1599,10 @@
]
},
{
title:'三.登记与排放总量是否一致',
titleDesc:'三.',
moreInfo:{},
title:'登记与排放总量是否一致',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1764,7 +1621,7 @@
]
}
//修改落实情况
if(this.code == 'xglsqk'){
if(this.param.type == '7'){
uni.setNavigationBarTitle({
title:'修改落实情况'
})
... ... @@ -1773,9 +1630,10 @@
tempType:'radio',
keyList:[
{
titleDesc:'一.',
moreInfo:{},
title:'一.这边更改要求事项',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,//是否显示更多按钮
last:false,//是否最后一项
subKeyList:[
... ... @@ -1790,9 +1648,10 @@
]
},
{
title:'二.整改落实情况是否满足要求',
titleDesc:'二.',
moreInfo:{},
title:'整改落实情况是否满足要求',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,
subKeyList:[
... ... @@ -1811,7 +1670,7 @@
]
}
//其他许可内容
if(this.code == 'qtxknr'){
if(this.param.type == '8'){
uni.setNavigationBarTitle({
title:'其他许可内容'
})
... ... @@ -1820,9 +1679,10 @@
tempType:'radio',
keyList:[
{
title:'一.这边更改要求事项',
titleDesc:'一.',
moreInfo:{},
title:'这边更改要求事项',
moreBtn:true,//是否显示更多按钮
more:false,
check:-1,
last:false,//是否最后一项
subKeyList:[
... ... @@ -1840,8 +1700,381 @@
}
]
}
this.getData()
},
onReady() {
//基本情况
if(this.param.type == '1'){
uni.setNavigationBarTitle({
title:'基本情况'
})
}
//水污染情况、大气污染情况、噪声排放
if(this.param.type == 'swrqk' || this.param.type == 'dqwrqk' || this.param.type == 'zspf'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
}
//排口信息查询(水)、排口信息查询(大气)
if(this.param.type == 'waterpull' || this.param.type == 'airpull'){
uni.setNavigationBarTitle({
title:this.param.pdoCd
})
}
//排口、厂界
if(this.code == 'pk' || this.code == 'cj'){
uni.setNavigationBarTitle({
title:'DA001'
})
}
//固体废物排放
if(this.param.type == 'gtfwpf'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
}
//委托处置
if(this.code == 'wtcz'){
uni.setNavigationBarTitle({
title:'wtcz'
})
}
//废水
if(this.code == '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'){
title = 'DW001'
}else{
title = 'DW002'
}
uni.setNavigationBarTitle({
title:title
})
}
//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
})
}
//色度、悬浮物、五日生化需氧量
if(this.code == 'fs_dw_sd' || this.code == 'fs_dw_xfw' || this.code == 'fs_dw_wrshxyl'){
let title = ''
if(this.code == 'fs_dw_sd'){
title = '色度'
}else if(this.code == 'fs_dw_xfw'){
title = '悬浮物'
}else if(this.code == 'fs_dw_wrshxyl'){
title = '五日生化需氧量'
}
uni.setNavigationBarTitle({
title:title
})
}
//废气
if(this.code == 'fq'){
uni.setNavigationBarTitle({
title:'产排污环节对应排放口'
})
}
//有组织排口
if(this.code == 'fq_pk1' || this.code == 'fq_pk2' || this.code == 'cj_pk1' || this.code == 'cj_pk2'){
let title = ''
if(this.code == 'fq_pk1'){
title = 'DA001'
}else if(this.code == 'fq_pk2'){
title = 'DA002'
}else if(this.code == 'cj_pk1'){
title = 'CJ001'
}else{
title = 'CJ002'
}
uni.setNavigationBarTitle({
title:title
})
}
//环境管理台账
if(this.param.type == '4'){
uni.setNavigationBarTitle({
title:'环境管理台账'
})
}
//执行报告
if(this.param.type == '5'){
uni.setNavigationBarTitle({
title:'执行报告'
})
}
//信息公开
if(this.param.type == '6'){
uni.setNavigationBarTitle({
title:'信息公开'
})
}
//修改落实情况
if(this.param.type == '7'){
uni.setNavigationBarTitle({
title:'修改落实情况'
})
}
//其他许可内容
if(this.param.type == '8'){
uni.setNavigationBarTitle({
title:'其他许可内容'
})
}
},
methods: {
getData(){
if(this.param.type == '1'
|| this.param.type == '4'
|| this.param.type == '5'
|| this.param.type == '6'
|| this.param.type == '7'
|| this.param.type == '8'
){
uni.request({
url:this.apiUrl + 'license/simpleInfo',
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++){
for(var j = 0; j < res.data.data.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data[j].FIELDCN){
if(res.data.data[j].FILEDSTATICS){
this.checkList[k].keyList[i].check = parseInt(res.data.data[j].FILEDSTATICS)
}else{
this.checkList[k].keyList[i].check = -1
}
if(res.data.data[j].IMGS){
this.checkList[k].keyList[i].moreInfo.IMGS = res.data.data[j].IMGS
}
if(res.data.data[j].NOTE){
this.checkList[k].keyList[i].moreInfo.NOTE = res.data.data[j].NOTE
}
if(res.data.data[j].LON){
this.checkList[k].keyList[i].moreInfo.LON = res.data.data[j].LON
this.checkList[k].keyList[i].moreInfo.LAT = res.data.data[j].LAT
}
break;
}
}
}
}
}
}
})
}
//水污染情况
if(this.param.type == 'swrqk'){
//查询排口
for(var i = 0;i < this.checkList.length; i ++){
if(this.checkList[i].tempType == 'check'){
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 == '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 == 'dqwrqk'){
for(var i = 0;i < this.checkList.length; i ++){
if(this.checkList[i].tempType == 'check'){
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[1].subKeyList.push({
title:res.data.data[j].PDO_NM,
param:JSON.stringify({type:'airpull',pdoCd:res.data.data[j].PDO_CD}),
name:res.data.data[j].PDO_CD
})
}
}
})
}
}
}
//排口信息查询(水)
if(this.param.type == 'waterpull'){
uni.request({
url:this.apiUrl + 'license/waterpull',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
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++){
for(var j = 0; j < res.data.data.base.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data.base[j].FIELDCN){
if(this.checkList[k].keyList[i].title == '受纳自然水体'){
this.checkList[k].keyList[i].subKeyList = res.data.data.snst
}
if(this.checkList[k].keyList[i].title == '污染物种类'){
this.checkList[k].keyList[i].subKeyList = res.data.data.wrw
}
if(res.data.data.base[j].FILEDSTATICS){
this.checkList[k].keyList[i].check = parseInt(res.data.data.base[j].FILEDSTATICS)
}else{
this.checkList[k].keyList[i].check = -1
}
if(res.data.data.base[j].IMGS){
this.checkList[k].keyList[i].moreInfo.IMGS = res.data.data.base[j].IMGS
}
if(res.data.data.base[j].NOTE){
this.checkList[k].keyList[i].moreInfo.NOTE = res.data.data.base[j].NOTE
}
if(res.data.data.base[j].LON){
this.checkList[k].keyList[i].moreInfo.LON = res.data.data.base[j].LON
this.checkList[k].keyList[i].moreInfo.LAT = res.data.data.base[j].LAT
}
break;
}
}
}
}
if(this.checkList[k].tempType == 'typeRadio'){
for(var i = 0; i < this.checkList[k].keyList.length; i++){
for(var j = 0; j < res.data.data.base.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data.base[j].FIELDCN){
if(this.checkList[k].keyList[i].title == '受纳自然水体'){
console.log('受纳自然水体',res.data.data.snst)
this.checkList[k].keyList[i].subKeyList = res.data.data.snst
}
if(this.checkList[k].keyList[i].title == '污染物种类'){
this.checkList[k].keyList[i].subKeyList = res.data.data.wrw
}
}
}
}
}
}
}
})
}
//排口信息查询(大气)
if(this.param.type == 'airpull'){
uni.request({
url:this.apiUrl + 'license/airpull',
method:'get',
data:{companyId:this.companyId,pdoCd:this.param.pdoCd},
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++){
for(var j = 0; j < res.data.data.airbase.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data.airbase[j].FIELDCN){
if(res.data.data.airbase[j].FILEDSTATICS){
this.checkList[k].keyList[i].check = parseInt(res.data.data.airbase[j].FILEDSTATICS)
}else{
this.checkList[k].keyList[i].check = -1
}
if(res.data.data.airbase[j].IMGS){
this.checkList[k].keyList[i].moreInfo.IMGS = res.data.data.airbase[j].IMGS
}
if(res.data.data.airbase[j].NOTE){
this.checkList[k].keyList[i].moreInfo.NOTE = res.data.data.airbase[j].NOTE
}
if(res.data.data.airbase[j].LON){
this.checkList[k].keyList[i].moreInfo.LON = res.data.data.airbase[j].LON
this.checkList[k].keyList[i].moreInfo.LAT = res.data.data.airbase[j].LAT
}
break;
}
}
}
}
if(this.checkList[k].tempType == 'typeRadio'){
for(var i = 0; i < this.checkList[k].keyList.length; i++){
for(var j = 0; j < res.data.data.airbase.length; j ++){
if(this.checkList[k].keyList[i].title == res.data.data.airbase[j].FIELDCN){
if(this.checkList[k].keyList[i].title == '污染物种类'){
this.checkList[k].keyList[i].subKeyList = res.data.data.airwrw
}
}
}
}
}
}
}
})
}
},
save(){
console.log(this.checkList)
}
... ...
... ... @@ -57,7 +57,7 @@
</view>
</view>
<view class="subCheckWrap" v-if="item.show == 1" v-for="(subItem,subIndex) in item.subKeyList" :key="subIndex">
<navigator class="subCheckItem" :url="'checkDetail?code='+subItem.code" hover-class="none">
<navigator class="subCheckItem" :url="'checkDetail?param='+subItem.param+'&companyid='+companyid" hover-class="none">
{{subItem.title}}
<image src="../../../static/image/icon_arrow.png" mode=""></image>
</navigator>
... ... @@ -94,13 +94,15 @@
export default {
data() {
return {
companyid:'',
showArchiveAlert:false,
visibleMinute:false,
checkTime:'请选择',
keyList:[
{
title:'一.基本情况',
code:'jbqk',
// code:'jbqk',
param:{type:'1'},
complete:1,
show:0,
subKeyList:[]
... ... @@ -112,19 +114,19 @@
subKeyList:[
{
title:'1.水污染情况',
code:'swrqk'
param:JSON.stringify({type:'swrqk',pdoType:'0'})
},
{
title:'2.大气污染情况',
code:'dqwrqk'
param:JSON.stringify({type:'dqwrqk',pdoType:'1'})
},
{
title:'3.噪声排放',
code:'zspf'
param:JSON.stringify({type:'zspf'})
},
{
title:'4.固体废物排放',
code:'gtfwpf'
param:JSON.stringify({type:'gtfwpf',pdoType:'2'})
}
]
},
... ... @@ -145,35 +147,40 @@
},
{
title:'四.环境管理台账',
code:'hjgltz',
// code:'hjgltz',
param:{type:'4'},
complete:0,
show:0,
subKeyList:[]
},
{
title:'五.执行报告',
code:'zxbg',
// code:'zxbg',
param:{type:'5'},
complete:0,
show:0,
subKeyList:[]
},
{
title:'六.信息公开',
code:'xxgk',
// code:'xxgk',
param:{type:'6'},
complete:0,
show:0,
subKeyList:[]
},
{
title:'七.修改落实情况',
code:'xglsqk',
// code:'xglsqk',
param:{type:'7'},
complete:0,
show:0,
subKeyList:[]
},
{
title:'八.其他许可内容',
code:'qtxknr',
// code:'qtxknr',
param:{type:'8'},
complete:0,
show:0,
subKeyList:[]
... ... @@ -195,8 +202,9 @@
}
},
onLoad(option) {
this.companyid = option.companyid
uni.setNavigationBarTitle({
title: option.factoryName //这是修改后的导航栏文字
title: option.factoryName //这是修改后的导航栏文字
})
},
methods: {
... ... @@ -221,7 +229,7 @@
}
}else{
uni.navigateTo({
url:'checkDetail?code='+this.keyList[index].code
url:'checkDetail?param='+JSON.stringify(this.keyList[index].param)+'&companyid='+this.companyid
})
}
},
... ...