...
|
...
|
@@ -2,7 +2,7 @@ |
|
|
<view>
|
|
|
<view v-for="(item,index) in checkList" :key="index">
|
|
|
<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>
|
|
|
<radio-temp v-if="item.tempType == 'radio'" :checkIndex="index" @showRecordMore="editRecordMore" :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>
|
|
|
</view>
|
...
|
...
|
@@ -19,7 +19,7 @@ |
|
|
记录更多
|
|
|
</view>
|
|
|
<view class="recordTypeList">
|
|
|
<view class="recordTypeItem">
|
|
|
<view class="recordTypeItem" @click="getLocation">
|
|
|
<view class="typeImg">
|
|
|
<image src="../../../static/image/icon_loc.png" mode=""></image>
|
|
|
</view>
|
...
|
...
|
@@ -72,7 +72,9 @@ |
|
|
param:{},
|
|
|
pdoCd:'',
|
|
|
showRecordMore:false,
|
|
|
checkList:[]
|
|
|
checkList:[],
|
|
|
checkIndex:0,
|
|
|
keyIndex:0,
|
|
|
}
|
|
|
},
|
|
|
components:{
|
...
|
...
|
@@ -899,58 +901,7 @@ |
|
|
pdoType:'1',
|
|
|
organization:0,
|
|
|
type:'airpull',
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'1.pH',
|
|
|
code:'fs_dw_ph',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'2.色度',
|
|
|
code:'fs_dw_sd',
|
|
|
name:'手工'
|
|
|
},
|
|
|
{
|
|
|
title:'3.悬浮物',
|
|
|
code:'fs_dw_xfw',
|
|
|
name:'手工'
|
|
|
},
|
|
|
{
|
|
|
title:'4.五日生化需氧量',
|
|
|
code:'fs_dw_wrshxyl',
|
|
|
name:'手工'
|
|
|
},
|
|
|
{
|
|
|
title:'5.化学需氧量(COD)',
|
|
|
code:'fs_dw_hxxyl',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'6.氨氮',
|
|
|
code:'fs_dw_ad',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'7.总氨',
|
|
|
code:'fs_dw_zd',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'8.总磷',
|
|
|
code:'fs_dw_zl',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'9.可吸附有机卤素',
|
|
|
code:'fs_dw_kxfyjls',
|
|
|
name:'自动'
|
|
|
},
|
|
|
{
|
|
|
title:'10.二噁英',
|
|
|
code:'fs_dw_eey',
|
|
|
name:'自动'
|
|
|
}
|
|
|
]
|
|
|
subKeyList:[]
|
|
|
}
|
|
|
]
|
|
|
},
|
...
|
...
|
@@ -980,188 +931,12 @@ |
|
|
]
|
|
|
}
|
|
|
|
|
|
//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'){
|
|
|
this.checkList = [
|
|
|
{
|
|
|
tempType:'radio',
|
|
|
keyList:[
|
|
|
{
|
|
|
title:'一.仪器名称',
|
|
|
moreBtn:false,
|
|
|
more:false,
|
|
|
check:-1,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'二.安装位置',
|
|
|
moreBtn:false,
|
|
|
more:false,
|
|
|
check:-1,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'三.是否联网',
|
|
|
moreBtn:false,
|
|
|
more:false,
|
|
|
check:-1,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'否',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'是',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'四.是否符合要求',
|
|
|
moreBtn:false,
|
|
|
check:-1,
|
|
|
more:false,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'否',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'是',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'五.对比手工数据',
|
|
|
moreBtn:false,
|
|
|
check:-1,
|
|
|
more:false,
|
|
|
last:true,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
|
|
|
//色度、悬浮物、五日生化需氧量
|
|
|
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.param.code == 'fs_pk_jcnr'){
|
|
|
this.checkList = [
|
|
|
{
|
|
|
tempType:'radio',
|
|
|
keyList:[
|
|
|
{
|
|
|
title:'一.采样方法',
|
|
|
moreBtn:false,
|
|
|
more:false,
|
|
|
check:-1,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'二.采样个数',
|
|
|
moreBtn:false,
|
|
|
more:false,
|
|
|
check:-1,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'三.监测频次',
|
|
|
moreBtn:false,
|
|
|
check:-1,
|
|
|
more:false,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'四.测定方法',
|
|
|
moreBtn:false,
|
|
|
check:-1,
|
|
|
more:false,
|
|
|
last:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
keyList:[]
|
|
|
}
|
|
|
]
|
|
|
}
|
...
|
...
|
@@ -1216,7 +991,7 @@ |
|
|
}
|
|
|
|
|
|
//废气-排口、厂界
|
|
|
if(this.code == 'fq_pc'){
|
|
|
if(this.param.code == 'fq_pc'){
|
|
|
this.checkList = [
|
|
|
{
|
|
|
tempType:'radio',
|
...
|
...
|
@@ -1265,77 +1040,7 @@ |
|
|
{
|
|
|
title:'三.监测内容',
|
|
|
show:false,
|
|
|
subKeyList:[
|
|
|
{
|
|
|
title:'1.硫化氢',
|
|
|
show:false,
|
|
|
name:'手工',
|
|
|
thKeyList:[
|
|
|
{
|
|
|
title:'(1) 采样方法',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(2) 采样个数',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(4) 监测频次',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(5) 测定方法',
|
|
|
choose:-1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'2.臭气浓度',
|
|
|
name:'手工',
|
|
|
show:false,
|
|
|
thKeyList:[
|
|
|
{
|
|
|
title:'(1) 采样方法',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(2) 采样个数',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(4) 监测频次',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(5) 测定方法',
|
|
|
choose:-1
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
title:'3.氨 (氨气)',
|
|
|
name:'手工',
|
|
|
show:false,
|
|
|
thKeyList:[
|
|
|
{
|
|
|
title:'(1) 采样方法',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(2) 采样个数',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(4) 监测频次',
|
|
|
choose:-1
|
|
|
},
|
|
|
{
|
|
|
title:'(5) 测定方法',
|
|
|
choose:-1
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
subKeyList:[]
|
|
|
}
|
|
|
]
|
|
|
},
|
...
|
...
|
@@ -1345,7 +1050,7 @@ |
|
|
{
|
|
|
titleDesc:'四.',
|
|
|
title:'纸质保存三年',
|
|
|
moreBtn:true,//是否显示更多按钮
|
|
|
moreBtn:false,//是否显示更多按钮
|
|
|
check:-1,
|
|
|
moreInfo:{},
|
|
|
last:true,
|
...
|
...
|
@@ -1725,47 +1430,17 @@ |
|
|
title:'产排污环节对应排放口'
|
|
|
})
|
|
|
}
|
|
|
//水污染情况-排口、大气污染情况-排口、厂界、委托处置、废水-排口、废水-排口、厂界
|
|
|
if(this.param.code == 'swrqk_pk' || this.param.code == 'dqwrqk_pc' || this.param.code == 'wtcz' || this.param.code == 'fs_pk' || this.param.code == 'fs_pc'){
|
|
|
//水污染情况-排口、大气污染情况-排口、厂界、委托处置、废水-排口、废气-排口、厂界
|
|
|
if(this.param.code == 'swrqk_pk' || this.param.code == 'dqwrqk_pc' || this.param.code == 'wtcz' || this.param.code == 'fs_pk' || this.param.code == 'fq_pc'){
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:this.param.pdoCd
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//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 = '五日生化需氧量'
|
|
|
}
|
|
|
//废水-排口-监测内容
|
|
|
if(this.param.code == 'fs_pk_jcnr'){
|
|
|
uni.setNavigationBarTitle({
|
|
|
title:title
|
|
|
title:this.param.navBarTitle
|
|
|
})
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1819,6 +1494,7 @@ |
|
|
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){
|
|
|
this.checkList[k].keyList[i].id = res.data.data[j].ID
|
|
|
if(res.data.data[j].FILEDSTATICS){
|
|
|
this.checkList[k].keyList[i].check = parseInt(res.data.data[j].FILEDSTATICS)
|
|
|
}else{
|
...
|
...
|
@@ -1851,7 +1527,14 @@ |
|
|
for(var j = 0; j < this.checkList[i].keyList.length; j ++){
|
|
|
var keyList = this.checkList[i].keyList[j]
|
|
|
var type = keyList.type
|
|
|
var code = this.param.code == 'swrqk' ? 'swrqk_pk' : this.param.code == 'gtfwpf' ? 'wtcz' : 'dqwrqk_pc'
|
|
|
var code = ''
|
|
|
switch(this.param.code){
|
|
|
case 'swrqk' : code = 'swrqk_pk'; break;
|
|
|
case 'dqwrqk' : code = 'dqwrqk_pc'; break;
|
|
|
case 'gtfwpf' : code = 'wtcz'; break;
|
|
|
case 'fs' : code = 'fs_pk'; break;
|
|
|
default : code = 'fq_pc'; break;
|
|
|
}
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/pdos',
|
|
|
method:'get',
|
...
|
...
|
@@ -1888,6 +1571,7 @@ |
|
|
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){
|
|
|
this.checkList[k].keyList[i].id = res.data.data.base[j].ID
|
|
|
if(this.checkList[k].keyList[i].title == '受纳自然水体'){
|
|
|
this.checkList[k].keyList[i].subKeyList = res.data.data.snst
|
|
|
}
|
...
|
...
|
@@ -2069,11 +1753,355 @@ |
|
|
})
|
|
|
}
|
|
|
|
|
|
//废水-排口
|
|
|
if(this.param.code == 'fs_pk'){
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfWater',
|
|
|
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.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.checkList[k].tempType == 'check'){
|
|
|
for(var i = 0; i < this.checkList[k].keyList.length; i++){
|
|
|
for(var j = 0; j < res.data.data.length; j ++){
|
|
|
console.log(this.checkList[k].keyList[i].title,res.data.data[j].FIELDCN)
|
|
|
if(this.checkList[k].keyList[i].title == '三.监测内容' && res.data.data[j].FIELDCN =='监测内容'){
|
|
|
var keyList = this.checkList[k].keyList[i]
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfMonitInfo',
|
|
|
method:'get',
|
|
|
data:{id:res.data.data[j].ID},
|
|
|
success: (res) => {
|
|
|
console.log('废水-排口-监测内容',res)
|
|
|
for(var l = 0; l < res.data.data.length; l ++){
|
|
|
keyList.subKeyList.push({
|
|
|
title:res.data.data[l].FIELDCN,
|
|
|
param:JSON.stringify({id:res.data.data[l].ID,code:'fs_pk_jcnr',navBarTitle:res.data.data[l].FIELDCN}),
|
|
|
name:res.data.data[l].CONTENT
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//废水-排口-监测内容
|
|
|
if(this.param.code == 'fs_pk_jcnr'){
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfMonitValue',
|
|
|
method:'get',
|
|
|
data:{id:this.param.id},
|
|
|
success: (res) => {
|
|
|
for(var j = 0; j < res.data.data.length; j ++){
|
|
|
var check = -1
|
|
|
var moreInfo = {}
|
|
|
var titleDesc = ''
|
|
|
var last = false
|
|
|
var subKeyList = [
|
|
|
{
|
|
|
title:'异常',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'一致',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
if(res.data.data[j].FILEDSTATICS){
|
|
|
check = parseInt(res.data.data[j].FILEDSTATICS)
|
|
|
}
|
|
|
if(res.data.data[j].IMGS){
|
|
|
moreInfo.IMGS = res.data.data[j].IMGS
|
|
|
}
|
|
|
if(res.data.data[j].NOTE){
|
|
|
moreInfo.NOTE = res.data.data[j].NOTE
|
|
|
}
|
|
|
if(res.data.data[j].LON){
|
|
|
moreInfo.LON = res.data.data[j].LON
|
|
|
moreInfo.LAT = res.data.data[j].LAT
|
|
|
}
|
|
|
|
|
|
|
|
|
if(j == res.data.data.length - 1){
|
|
|
last = true
|
|
|
}
|
|
|
if(res.data.data[j].FIELDCN == '是否联网' || res.data.data[j].FIELDCN == '是否符合要求'){
|
|
|
subKeyList = [
|
|
|
{
|
|
|
title:'否',
|
|
|
check:0
|
|
|
},
|
|
|
{
|
|
|
title:'是',
|
|
|
check:1
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
switch(j){
|
|
|
case 0 : titleDesc = '一.'; break;
|
|
|
case 1 : titleDesc = '二.'; break;
|
|
|
case 2 : titleDesc = '三.'; break;
|
|
|
case 3 : titleDesc = '四.'; break;
|
|
|
case 4 : titleDesc = '五.'; break;
|
|
|
case 5 : titleDesc = '六.'; break;
|
|
|
default : titleDesc = '七.'; break;
|
|
|
}
|
|
|
this.checkList[0].keyList.push({
|
|
|
id:res.data.data[j].ID,
|
|
|
titleDesc:titleDesc,
|
|
|
title:res.data.data[j].FIELDCN,
|
|
|
moreBtn:false,
|
|
|
moreInfo:moreInfo,
|
|
|
check:check,
|
|
|
last:last,
|
|
|
subKeyList:subKeyList
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
//废气-排口、厂界
|
|
|
if(this.param.code == 'fq_pc'){
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfGas',
|
|
|
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.length; j ++){
|
|
|
if(this.checkList[k].keyList[i].title == res.data.data[j].FIELDCN){
|
|
|
this.checkList[k].keyList[i].id = res.data.data[j].ID
|
|
|
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 != undefined && res.data.data[j].IMGS.length > 0){
|
|
|
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.checkList[k].tempType == 'subRadio'){
|
|
|
for(var i = 0; i < this.checkList[k].keyList.length; i++){
|
|
|
console.log('res.data.data',res.data.data.length)
|
|
|
for(var j = 0; j < res.data.data.length; j ++){
|
|
|
console.log(this.checkList[k].keyList[i].title,res.data.data[j].FIELDCN)
|
|
|
if(this.checkList[k].keyList[i].title == '三.监测内容' && res.data.data[j].FIELDCN =='监测内容'){
|
|
|
var keyList = this.checkList[k].keyList[i]
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfMonitInfo',
|
|
|
method:'get',
|
|
|
data:{id:res.data.data[j].ID},
|
|
|
success: (subKeyRes) => {
|
|
|
console.log('废气-排口-监测内容',subKeyRes)
|
|
|
for(var l = 0; l < subKeyRes.data.data.length; l ++){
|
|
|
this.setSubKeyList(subKeyRes.data.data[l],keyList)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
},
|
|
|
getLocation(){
|
|
|
console.log('111')
|
|
|
|
|
|
uni.getLocation({
|
|
|
type: 'wgs84',
|
|
|
success: (res) => {
|
|
|
var moreInfo = {
|
|
|
LAT : res.latitude,
|
|
|
LON : res.longitude
|
|
|
}
|
|
|
this.checkList[this.checkIndex].keyList[this.keyIndex].moreInfo = moreInfo
|
|
|
console.log(this.checkList[this.checkIndex].keyList[this.keyIndex])
|
|
|
this.showRecordMore = false
|
|
|
}
|
|
|
});
|
|
|
|
|
|
},
|
|
|
editRecordMore(e){
|
|
|
console.log('e',e)
|
|
|
this.checkIndex = e.checkIndex
|
|
|
this.keyIndex = e.keyIndex
|
|
|
this.showRecordMore = true
|
|
|
// this.checkList[e.checkIndex].keyList[e.keyIndex].
|
|
|
},
|
|
|
async setSubKeyList(subKeyObj,keyList){
|
|
|
var subKey = {
|
|
|
title:subKeyObj.FIELDCN,
|
|
|
show:false,
|
|
|
name:subKeyObj.CONTENT,
|
|
|
thKeyList:(await this.getSubKeyList(subKeyObj.ID)).thKeyList
|
|
|
}
|
|
|
keyList.subKeyList.push(subKey)
|
|
|
console.log('keyList',keyList)
|
|
|
},
|
|
|
getSubKeyList(id){
|
|
|
return new Promise((resolve,reject) => {
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/selfMonitValue',
|
|
|
method:'get',
|
|
|
data:{id:id},
|
|
|
success: (res) => {
|
|
|
console.log('废气-排口-监测内容-子项',res)
|
|
|
var thKeyList = []
|
|
|
for(var i = 0; i < res.data.data.length; i ++){
|
|
|
var choose = -1
|
|
|
if(res.data.data[i].FILEDSTATICS){
|
|
|
choose = parseInt(res.data.data[i].FILEDSTATICS)
|
|
|
}
|
|
|
thKeyList.push({
|
|
|
id:res.data.data[i].ID,
|
|
|
title:res.data.data[i].FIELDCN,
|
|
|
choose:choose
|
|
|
})
|
|
|
}
|
|
|
resolve({thKeyList:thKeyList})
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
save(){
|
|
|
console.log(this.checkList)
|
|
|
console.log('保存数据',this.checkList)
|
|
|
uni.showLoading({
|
|
|
title:'保存中...'
|
|
|
})
|
|
|
//废气-排口、厂界
|
|
|
if(this.param.code == 'fq_pc'){
|
|
|
var saveParam = []
|
|
|
//保存检测内容
|
|
|
for(var i = 0; i < this.checkList.length; i ++){
|
|
|
if(this.checkList[i].tempType == 'subRadio'){
|
|
|
for(var j = 0; j < this.checkList[i].keyList.length; j ++){
|
|
|
for(var k = 0; k < this.checkList[i].keyList[j].subKeyList.length; k ++){
|
|
|
for(var l = 0; l < this.checkList[i].keyList[j].subKeyList[k].thKeyList.length; l ++){
|
|
|
var choose = this.checkList[i].keyList[j].subKeyList[k].thKeyList[l].choose
|
|
|
var id = this.checkList[i].keyList[j].subKeyList[k].thKeyList[l].id
|
|
|
if(choose != -1){
|
|
|
saveParam.push({
|
|
|
filedstatic:choose.toString(),
|
|
|
id:id
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/updateSelfMonitInfo',
|
|
|
method:'post',
|
|
|
data:saveParam,
|
|
|
success: (res) => {
|
|
|
console.log('保存检测内容',res)
|
|
|
uni.hideLoading()
|
|
|
uni.showToast({
|
|
|
title:'保存成功'
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//废水-排口-检测内容
|
|
|
if(this.param.code == 'fs_pk_jcnr'){
|
|
|
var saveParam = []
|
|
|
//保存检测内容
|
|
|
for(var i = 0; i < this.checkList.length; i ++){
|
|
|
for(var j = 0; j < this.checkList[i].keyList.length; j ++){
|
|
|
var check = this.checkList[i].keyList[j].check
|
|
|
var id = this.checkList[i].keyList[j].id
|
|
|
if(check != -1){
|
|
|
saveParam.push({
|
|
|
filedstatic:check.toString(),
|
|
|
id:id
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
uni.request({
|
|
|
url:this.apiUrl + 'license/updateSelfMonitInfo',
|
|
|
method:'post',
|
|
|
data:saveParam,
|
|
|
success: (res) => {
|
|
|
console.log('保存检测内容',res)
|
|
|
uni.hideLoading()
|
|
|
uni.showToast({
|
|
|
title:'保存成功'
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(this.param.code == 'jbqk'
|
|
|
|| this.param.code == 'hjgltz'
|
|
|
|| this.param.code == 'zxbg'
|
|
|
|| this.param.code == 'xxgk'
|
|
|
|| this.param.code == 'xglsqk'
|
|
|
|| this.param.code == 'qtxknr'
|
|
|
){
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
|
|
|
//水污染情况-排口
|
|
|
if(this.param.code == 'swrqk_pk'){
|
|
|
uni.hideLoading()
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|