修改 巡查 养护 字段新增

master
lion 3 years ago
parent 0170589b99
commit 44988a417e

@ -46,7 +46,7 @@
<view class="demo-layout bg-purple">现场照片</view>
</u-col>
<u-col span="12" v-for="(item,index) in filesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
<u-row gutter="16">
@ -86,7 +86,7 @@
<view class="demo-layout bg-purple">处理后照片</view>
</u-col>
<u-col span="12" v-for="(item,index) in dealFilesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
@ -128,7 +128,17 @@
}
this.loadDep()
},
methods: {
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push :src="item.img_url"
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
loadDep(){
var that = this
that.util.request({

@ -54,7 +54,7 @@
<view class="demo-layout bg-purple">现场图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in lists.common_inspection_files">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
@ -88,7 +88,17 @@
this.loadInfo(options.id)
}
},
methods: {
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push :src="item.img_url"
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
loadInfo: function(id) {
var that = this;
this.util.request({

@ -40,7 +40,7 @@
<view class="demo-layout bg-purple">现场图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in lists.daily_inspection_files">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
@ -57,7 +57,7 @@
<view class="demo-layout bg-purple">处理后照片</view>
</u-col>
<u-col span="12" v-for="(item,index) in lists.daily_inspection_deal_files">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
@ -98,7 +98,17 @@
this.loadInfo(options.id)
}
},
methods: {
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push :src="item.img_url"
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
loadInfo: function(id) {
var that = this;
this.util.request({

@ -24,14 +24,11 @@
<u-select v-model="askShow" mode="single-column" value-name="id" label-name="value"
:list="rainArr.askContentList" @confirm="confirmAskType"></u-select>
</u-form-item>
<u-form-item label="覆盖范围" label-position="top" prop="number">
<u-input placeholder="请填写覆盖范围" v-model="form.number" type="text" :border="true" />
<u-tag text="米" mode="dark" v-slot="right" />
</u-form-item>
<u-form-item label="点位名称" label-position="top" prop="number">
<u-input placeholder="请填写点位名称" v-model="form.number" type="text" :border="true" />
<u-form-item labelWidth="180" label="覆盖范围(米)" label-position="left">
<u-input type="number" v-model="form.scope" placeholder="请填写覆盖范围"/>
</u-form-item>
<u-form-item labelWidth="180" label="点位名称" label-position="left">
<u-input v-model="form.point_name" type='text' placeholder="请填写点位名称"/>
</u-form-item>
</block>
<view v-if="!formshow">
@ -90,7 +87,7 @@
<view v-if="!formshow">
<u-form-item labelWidth="180" label-position="left" label="是否违法">
<u-radio-group v-model="form.is_law">
<u-radio v-for="(item, index) in rainArr.laws" :key="index" :name="item.id">
<u-radio @change="lawRadioChange" v-for="(item, index) in rainArr.laws" :key="index" :name="item.id">
{{item.name}}
</u-radio>
</u-radio-group>
@ -232,7 +229,9 @@
form: {
road_id: '',
content: "",
ask_content_id: "",
ask_content_id: "",
scope:"",
point_name:"",
is_unusual: 0,
is_scene: 0,
result: "",
@ -342,6 +341,13 @@
// }
},
lawRadioChange(val){
console.log(val)
if(val==0){
this.form.break_id=""
this.lawName = ""
}
},
confirmBuildTypeName(val) {
console.log(val)

@ -24,6 +24,30 @@
<u-col span="9">
<view class="demo-layout bg-purple-light">{{typeName}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="scopeShow">
<u-col span="3">
<view class="demo-layout bg-purple">巡查内容</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{askName}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="scopeShow">
<u-col span="3">
<view class="demo-layout bg-purple">覆盖范围</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{form.scope}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="scopeShow">
<u-col span="3">
<view class="demo-layout bg-purple">点位名称</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{form.point_name}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
@ -106,7 +130,7 @@
<view class="demo-layout bg-purple">现场图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in filesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" :src="item.files.url"></u-image>
</u-col>
</u-row>
@ -149,7 +173,7 @@
<view class="demo-layout bg-purple">处理后图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in dealFilesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
</view>
@ -172,7 +196,8 @@
data() {
return {
formshow:true,
lawshow:true,
lawshow:true,
scopeShow:false,
lists:{},
form:{},
typeName:"",
@ -196,7 +221,17 @@
this.loadInfo(options.id)
}
},
methods: {
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push :src="item.img_url"
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
loadInfo: function(id) {
var that = this;
this.util.request({
@ -212,11 +247,12 @@
switch(result.type){
case 1:
that.typeName = "日常雨水设施"
that.instype = 1
that.instype = 1
that.scopeShow = true
that.form = result.rain_equipment_info;
that.form.rain_equipment_id = result.rain_equipment_id;
that.askName = result.rain_equipment_info.ask_content_detail.value
that.areaName = result.area_info.name
that.areaName = result.area_info?result.area_info.name:""
if(result.rain_equipment_info.is_unusual==1){
that.form.unsualName == "丢失"
}else if(result.rain_equipment_info.is_unusual==2){
@ -250,7 +286,7 @@
that.formshow=false
that.typeName = "在建工地"
that.formshow = false
that.areaName = result.area_info.name
that.areaName = result.area_info?result.area_info.name:""
that.form = result.building_site_info;
that.form.buildName = result.building_site_info.building_site.name

@ -35,7 +35,7 @@
</u-form-item>
<block v-if="!aboutShow">
<u-form-item labelWidth="180" label="覆盖范围(米)" label-position="left">
<u-input v-model="form.scope" type='text' placeholder="请填写覆盖范围"/>
<u-input v-model="form.scope" type="number" placeholder="请填写覆盖范围"/>
</u-form-item>
<u-form-item labelWidth="180" label="点位名称" label-position="left">
<u-input v-model="form.point_name" type='text' placeholder="请填写点位名称"/>
@ -273,7 +273,6 @@
},
methods: {
confirmType(val) {
console.log(val)
var that = this
this.$refs.uForm.resetFields();
that.typeName = val[0].label
@ -282,7 +281,9 @@
that.lawshow = true
that.aboutShow = false
that.numShow = false
that.filesList = [];
that.filesList = [];
that.askName = ""
that.form.title_id=""
this.$refs.uUpload.clear();
that.dealFilesList = [];
that.form.scope = ""
@ -408,7 +409,9 @@
that.form = result.circulation_info;
that.form.circulation_id = result.circulation_id;
that.roadName = result.circulation_info.road.name
that.roadName = result.circulation_info.road?result.circulation_info.road.name:""
that.askName = result.circulation_info.title_detail?result.circulation_info.title_detail.value:""
let _files = [];
for (var mod of result.circulation_info.circulation_files) {
let m = Object.assign({}, mod);
@ -430,7 +433,38 @@
that.dealFilesList = _filesafter;
that.form.type = result.type
console.log(that.form)
break;
break;
case 5:
that.typeName = "出水口排查"
that.numShow = true
that.aboutShow = true
that.form = result.out_water_info;
that.form.out_water_id = result.out_water_id
that.roadName = result.out_water_info.road?result.out_water_info.road.name:""
that.askName = result.out_water_info.title_detail?result.out_water_info.title_detail.value:""
let water_files = [];
for (var mod of result.out_water_info.out_water_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "before";
water_files.push(m);
}
that.filesList = water_files;
let water_filesafter = [];
for (var mod of result.out_water_info.out_water_deal_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "after";
water_filesafter.push(m);
}
that.dealFilesList = water_filesafter;
that.form.type = result.type
console.log(that.form)
break
case 3:
that.typeName = "汛期助排"
that.lawshow = false

@ -24,6 +24,38 @@
<u-col span="9">
<view class="demo-layout bg-purple-light">{{form.typeName}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
<view class="demo-layout bg-purple">养护内容</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{titleName}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="watershow">
<u-col span="4">
<view class="demo-layout bg-purple">排水口编号</view>
</u-col>
<u-col span="8">
<view class="demo-layout bg-purple-light">{{form.number}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="!watershow">
<u-col span="3">
<view class="demo-layout bg-purple">覆盖范围</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{form.scope}}</view>
</u-col>
</u-row>
<u-row gutter="16" v-if="!watershow">
<u-col span="3">
<view class="demo-layout bg-purple">点位名称</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{form.point_name}}</view>
</u-col>
</u-row>
<u-row gutter="16">
<u-col span="3">
@ -46,7 +78,7 @@
<view class="demo-layout bg-purple">现场图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in filesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview(item.files.url)" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
<view v-if="formshow">
@ -87,7 +119,7 @@
<view class="demo-layout bg-purple">处理后图片</view>
</u-col>
<u-col span="12" v-for="(item,index) in dealFilesList">
<u-image style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
<u-image @click="imgListPreview" style="margin:20rpx 0" width="100%" height="300rpx" :src="item.files.url"></u-image>
</u-col>
</u-row>
</view>
@ -114,7 +146,9 @@
data() {
return {
formshow:true,
lawshow:true,
lawshow:true,
titleName:"",
watershow:false,
lists:{},
form:{},
filesList:[],
@ -130,7 +164,17 @@
this.loadInfo(options.id)
}
},
methods: {
methods: {
imgListPreview(item){
var urlList = []
urlList.push(item) //push :src="item.img_url"
uni.previewImage({
indicator:"number",
loop:true,
urls: urlList
})
},
loadInfo: function(id) {
var that = this;
this.util.request({
@ -170,8 +214,9 @@
that.form.type = result.type
result.circulation_info.is_solve==0 ? that.form.solveName="否":that.form.solveName="是"
result.circulation_info.is_law==0 ? that.form.lawName="否":that.form.lawName="是"
that.form.areaName = result.area_info.name
that.form.created_at = result.created_at
that.form.areaName = result.area_info?result.area_info.name:""
that.form.created_at = result.created_at
that.titleName = result.circulation_info.title_detail?result.circulation_info.title_detail.value:''
break;
case 3:
that.lawshow = false
@ -198,7 +243,7 @@
that.form.type = result.type
that.form.typeName = "汛期助排"
result.help_discharge_info.is_solve==0 ? that.form.solveName="否":that.form.solveName="是"
that.form.areaName = result.area_info.name
that.form.areaName = result.area_info?result.area_info.name:""
that.form.created_at = result.created_at
break;
case 4:
@ -215,9 +260,39 @@
that.filesList =mire_files;
that.form.type = result.type
that.form.typeName = "污泥外运"
that.form.areaName = result.area_info.name
that.form.areaName = result.area_info?result.area_info.name:""
that.form.created_at = result.created_at
break;
break;
case 5:
that.watershow = true
that.form = result.out_water_info;
let water_files = [];
for (var mod of result.out_water_info.out_water_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "before";
water_files.push(m);
}
that.filesList = water_files;
let water_filesafter = [];
for (var mod of result.out_water_info.out_water_deal_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "after";
water_filesafter.push(m);
}
that.dealFilesList = water_filesafter;
that.form.type = result.type
that.form.typeName = "出水口排查"
result.out_water_info.is_solve==0 ? that.form.solveName="否":that.form.solveName="是"
result.out_water_info.is_law==0 ? that.form.lawName="否":that.form.lawName="是"
that.form.areaName = result.area_info?result.area_info.name:""
that.form.created_at = result.created_at
that.titleName = result.out_water_info.title_detail?result.out_water_info.title_detail.value:''
break;
}
},
utilFail: function(res) {

@ -42,7 +42,7 @@
<view class="demo-layout bg-purple">所属片区</view>
</u-col>
<u-col span="9">
<view class="demo-layout bg-purple-light">{{item.area_info.name}}</view>
<view class="demo-layout bg-purple-light">{{item.area_info?item.area_info.name:""}}</view>
</u-col>
<u-col span="3">
<view class="demo-layout bg-purple">所属道路</view>
@ -306,7 +306,12 @@
m.typeName = "污泥外运"
m.road_name = m.mire_info.road?m.mire_info.road.name:""
break
break
case 5:
m.typeName = "出水口排查"
m.road_name = m.out_water_info.road?m.out_water_info.road.name:""
break
default:

Loading…
Cancel
Save