巡查转养护

master
lion 3 years ago
parent 9ae2a73fa0
commit 9ba101c1f8

@ -0,0 +1,62 @@
<template>
<el-dialog class="common-dialog" :title="title" :visible.sync="diaShow" @close="coloseDia" :width="width">
<div class="dialogConcent">
<el-scrollbar style="flex: 1">
<slot name="content"></slot>
</el-scrollbar>
</div>
<div slot="footer" class="dialog-footer">
<el-button v-if="type=='showinfo'" @click="coloseDia"> </el-button>
<slot name="footerbtn"></slot>
</div>
</el-dialog>
</template>
<script>
export default {
name:"dialogShow",
props:{
title:{
type:String,
default:""
},
width:{
type:String,
default:"60%"
},
isShow: {
type: Boolean,
default: () => {
return false
}
},
type:{
type:String,
default:"showinfo"
}
},
data() {
return {
diaShow:this.isShow,
}
},
watch:{
isShow(val){
this.diaShow = this.isShow
}
},
methods:{
coloseDia(){
this.$emit('update:isShow',false)
}
}
}
</script>
<style>
.dialogConcent {
overflow-y: auto;
}
</style>

@ -80,13 +80,13 @@
<div class="dialogConcent">
<el-scrollbar style="flex: 1">
<el-form :model="form" :rules="rules" ref="form" label-position="right" :label-width="formLabelWidth">
<el-row>
<!-- <el-row>
<el-col :span="10">
<el-form-item label="所属道路" prop="road_id">
<el-input disabled v-model="roadName" placeholder="" autocomplete="off"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row>
<el-col :span="10">
<el-form-item label="类型" prop="ask_type_id">
@ -183,13 +183,13 @@
<el-scrollbar style="flex: 1">
<el-form :model="formdetail" :rules="rules" ref="formdetail" label-position="right"
:label-width="formLabelWidth">
<el-row>
<!-- <el-row>
<el-col :span="10">
<el-form-item label="所属道路" prop="road_id">
<el-input disabled v-model="roadName" placeholder="所属道路" autocomplete="off"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row>
<el-col :span="10">
<el-form-item label="类型" prop="ask_type_id">
@ -403,7 +403,7 @@
files_list: [],
type: "",
},
roadName: "",
// roadName: "",
form: {
feedback_department_id: "",
ask_type_id: "",
@ -627,7 +627,7 @@
// that.form = result;
that.mapform = [result.longitude, result.latitude, result.address]
that.roadName = result.road ? result.road.name : ""
// that.roadName = result.road ? result.road.name : ""
let _files = [];
for (var mod of result.common_inspection_files) {
let m = Object.assign({}, mod);

@ -0,0 +1,346 @@
<template>
<!-- 日常雨水设施查看 -->
<dialogShow :title="title" :is-show.sync="isShow" :width="width">
<template v-slot:content>
<el-form :model="formdetail" :rules="{}" ref="formdetail" label-position="right" :label-width="labelwidth">
<el-row>
<el-col :span="12">
<el-form-item label="所属道路" prop="road_id">
{{form.roadName}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="巡查内容" prop="ask_content_id">
{{form.ask_content_detail?form.ask_content_detail:""}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="所在位置" prop="address">
{{form.address}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="经度" prop="longitude">
{{form.longitude}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纬度" prop="latitude">
{{form.latitude}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="现场照片" prop="files_list" class="files_check">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList"
ref="pictureUploads">
<div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in"></i>
</span>
</span>
</div>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="是否异常" prop="is_unusual">
<el-tag v-if="form.is_unusual==0"></el-tag>
<el-tag type="warning" v-if="form.is_unusual==1"></el-tag>
</el-form-item>
</el-col>
<el-col :span="12" v-if="form.is_unusual==0">
<el-form-item label="巡查开始点位" prop="start_address">
{{form.start_address?form.start_address:""}}
</el-form-item>
</el-col>
<el-col :span="12" v-if="form.is_unusual==0">
<el-form-item label="巡查结束点位" prop="address">
{{form.end_address?form.end_address:""}}
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_unusual!=0">
<el-form-item label="异常类型" prop="unusual_type_detail">
{{form.unusual_type_detail?form.unusual_type_detail.value:""}}
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_unusual!=0">
<el-form-item label="异常处置建议" prop="tip">
{{form.tip}}
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item label="是否现场处理" prop="is_scene">
<el-tag v-if="form.is_scene==0"></el-tag>
<el-tag type="success" v-if="form.is_scene==1"></el-tag>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_scene==1">
<el-form-item label="现场处理结果" prop="result">
{{form.result}}
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_scene==1">
<el-form-item label="处理后照片" prop="files_end_list" class="files_check">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="dealFilesList"
ref="pictureUploads">
<div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in"></i>
</span>
</span>
</div>
</el-upload>
</el-form-item>
</el-col>
<!-- 查看 -->
<div v-if="formType=='showform'">
<el-col :span="24">
<el-form-item label="有无违法转办">
<el-tag v-if="form.end_type==0"></el-tag>
<el-tag type="warning" v-if="form.end_type==1"></el-tag>
<el-tag type="warning" v-if="form.end_type==2"></el-tag>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="养护转办类型" prop="type">
<div v-for="item in yhtypeList">
<div v-if="form.maintain_type==item.id">
{{item.name}}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="要求完成时间" prop="end_time">
{{form.end_time}}
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="备注" prop="remark">
{{form.remark}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="处理日志" prop="">
</el-form-item>
<el-table :data="form.rainInspectionLogs" style="width: 90%;margin: 0 auto;">
<el-table-column prop="created_at" label="日期" width="180">
</el-table-column>
<el-table-column prop="content" label="内容">
</el-table-column>
<el-table-column prop="type_name" label="操作结果">
</el-table-column>
<el-table-column prop="adminName" label="操作人" width="180">
</el-table-column>
</el-table>
</el-col>
</div>
<!-- 审核 auditform 办结-->
<div v-if="formType=='auditform'||formType=='endform'">
<el-col :span="24">
<el-form-item label="备注" prop="content">
<el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注"></el-input>
</el-form-item>
</el-col>
</div>
<div v-if="formType=='endform'">
<el-col :span="24">
<el-form-item label="有无违法转办" prop="end_type">
<el-radio-group v-model="formdetail.end_type">
<el-radio :label="0"></el-radio>
<el-radio :label="1">养护转办</el-radio>
<el-radio :label="2">违法转办</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24" v-if="formdetail.end_type==1">
<el-form-item label="养护转办类型" prop="type">
<el-select class="width100" v-model="formdetail.maintain_type" placeholder="请选择养护转办类型">
<el-option v-for="item in yhtypeList" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="24" v-if="formdetail.end_type==1">
<el-form-item label="要求完成时间" prop="end_time">
<el-date-picker style="width:100%" v-model="formdetail.end_time" type="datetime" placeholder="选择时间"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" prop="remark" v-if="formdetail.end_type==1">
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注"></el-input>
</el-form-item>
</el-col>
</div>
</el-row>
</el-form>
</template>
<template v-slot:footerbtn>
<el-button v-if="formType=='auditform'" type="primary" v-preventReClick @click="auditForm('formdetail','1')"></el-button>
<div v-if="formType=='endform'" style="display: inline-block;margin-left:10px">
<el-button v-if="formdetail.end_type!=2" type="primary" v-preventReClick @click="auditForm('formdetail','2')">
</el-button>
<el-button v-if="formdetail.end_type==2" type="primary" v-preventReClick @click="auditForm('formdetail','1')">
</el-button>
<el-button v-if="formdetail.end_type!=2" type="danger" v-preventReClick @click="auditForm('formdetail','3')">退
</el-button>
</div>
</template>
</dialogShow>
</template>
<script>
import {
get,
update
} from '../../../../api/rain/inspection.js'
import dialogShow from '@/components/dialogShow'
export default {
components: {
dialogShow
},
data() {
return {
formType: "showform", // auditform endform showform
title: "日常雨水设施",
width: "60%",
labelwidth: "120px",
isShow: false,
// diaShow:this.isShow,
infoId: "",
filesList: [],
dealFilesList: [],
yhtypeList: [{
id: 1,
name: "雨水管道疏挖"
}, {
id: 2,
name: "雨水管道疏通"
}, {
id: 3,
name: "汛期助排"
}, {
id: 4,
name: "污泥外运"
}, {
id: 5,
name: "出水口排查"
}, {
id: 6,
name: "专项处理"
}, {
id: 7,
name: "维修"
}],
form: {
},
formdetail: {
content: "",
end_type: 0,
end_time: "",
remark: "",
maintain_type:0
},
rules: {}
}
},
watch: {
infoId(val) {
this.infoId = val
},
formType(val) {
this.formType = val
},
'formdetail.end_type':function(val){
if(val){
this.formdetail.remark = ""
this.formdetail.end_time = ""
this.formdetail.maintain_type = 0
}
}
},
methods: {
getEquipmentInfo(id) {
if (id) {
var that = this;
that.form = {}
get(id).then(res => {
let result = Object.assign(that.form, res);
that.form = result.rain_equipment_info
if (result.rain_inspection_logs) {
for (var k of result.rain_inspection_logs) {
k.adminName = k.admin ? k.admin.name : ""
}
}
that.form.rainInspectionLogs = result.rain_inspection_logs
that.form.roadName = result.rain_equipment_info.road ? result.rain_equipment_info.road.name : ""
that.form.end_time = result.end_time
that.form.remark = result.remark
that.form.end_type = result.end_type
that.form.maintain_type = result.maintain_type
let _files = [];
for (var mod of result.rain_equipment_info.rain_equipment_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "before";
_files.push(m);
}
that.filesList = _files;
let _filesafter = [];
for (var mod of result.rain_equipment_info.rain_equipment_end_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "after";
_filesafter.push(m);
}
that.dealFilesList = _filesafter;
console.log(that.form)
}).catch(error => {
//reject(error)
})
}
},
auditForm(formname,status) {
var that = this
this.formdetail.status = status
this.formdetail.id = this.infoId
update(that.formdetail).then(response => {
this.$Message.success('操作成功');
this.$emit("auditSuccess")
that.isShow = false;
this.$refs['formdetail'].resetFields()
}).catch(error => {
//reject(error)
})
}
}
}
</script>
<style>
</style>

@ -0,0 +1,379 @@
<template>
<!-- 工地巡查 -->
<dialogShow :title="title" :is-show.sync="isShow" :width="width">
<template v-slot:content>
<el-form :model="formdetail" :rules="{}" ref="formdetail" label-position="right" :label-width="labelwidth">
<el-row>
<el-col :span="24">
<el-form-item label="所属道路" prop="roadName">
{{form.roadName}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="工地名称" prop="name">
{{form.name}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="所在位置" prop="address">
{{form.address}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="经度" prop="longitude">
{{form.longitude}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="纬度" prop="address">
{{form.latitude}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="工地编号" prop="number">
{{form.number}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="建设单位" prop="build_unit">
{{form.build_unit}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="施工单位" prop="carry_unit">
{{form.carry_unit}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="工地类型" prop="siteType">
<div v-for="item in siteType">
<div v-if="item.id==form.siteType">
{{item.value}}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="工地状态" prop="status">
<div v-for="item in siteStatus">
<el-tag v-if="item.id==form.status">{{item.value}}</el-tag>
</div>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" prop="remark">
{{form.siteRemark}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="现场照片" prop="files_list" class="files_check">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList"
ref="pictureUploads">
<div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
<span class="el-upload-list__item-actions">
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
<i class="el-icon-zoom-in"></i>
</span>
</span>
</div>
</el-upload>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="是否违法" prop="is_law">
<el-tag v-if="form.is_law==0"></el-tag>
<el-tag v-if="form.is_law==1"></el-tag>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_law==1">
<el-form-item label="违规内容" prop="break_id">
<div v-for=" item in siteLaw">
<div v-if="item.id==form.break_id">
{{item.value}}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.is_law==1">
<el-form-item label="描述" prop="content">
{{form.content}}
</el-form-item>
</el-col>
<!-- 查看 -->
<div v-if="formType=='showform'">
<el-col :span="24">
<el-form-item label="有无违法转办">
<el-tag v-if="form.end_type==0"></el-tag>
<el-tag type="warning" v-if="form.end_type==1"></el-tag>
<el-tag type="warning" v-if="form.end_type==2"></el-tag>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="养护转办类型" prop="type">
<div v-for="item in yhtypeList">
<div v-if="form.maintain_type==item.id">
{{item.name}}
</div>
</div>
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="要求完成时间" prop="end_time">
{{form.end_time}}
</el-form-item>
</el-col>
<el-col :span="24" v-if="form.end_type==1">
<el-form-item label="备注" prop="remark">
{{form.remark}}
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="处理日志" prop="">
</el-form-item>
<el-table :data="form.rainInspectionLogs" style="width: 90%;margin: 0 auto;">
<el-table-column prop="created_at" label="日期" width="180">
</el-table-column>
<el-table-column prop="content" label="内容">
</el-table-column>
<el-table-column prop="type_name" label="操作结果">
</el-table-column>
<el-table-column prop="adminName" label="操作人" width="180">
</el-table-column>
</el-table>
</el-col>
</div>
<!-- 审核 auditform 办结-->
<div v-if="formType!='showform'">
<el-col :span="24">
<el-form-item label="备注" prop="content">
<el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注"></el-input>
</el-form-item>
</el-col>
</div>
<div v-if="formType=='endform'">
<el-col :span="24">
<el-form-item label="有无违法转办" prop="end_type">
<el-radio-group v-model="formdetail.end_type">
<el-radio :label="0"></el-radio>
<el-radio :label="1">养护转办</el-radio>
<el-radio :label="2">违法转办</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col :span="24" v-if="formdetail.end_type==1">
<el-form-item label="养护转办类型" prop="type">
<el-select class="width100" v-model="formdetail.maintain_type" placeholder="请选择养护转办类型">
<el-option v-for="item in yhtypeList" :key="item.id" :label="item.name" :value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="24" v-if="formdetail.end_type==1">
<el-form-item label="要求完成时间" prop="end_time">
<el-date-picker style="width:100%" v-model="formdetail.end_time" type="datetime" placeholder="选择时间"
value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="备注" prop="remark" v-if="formdetail.end_type==1">
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注"></el-input>
</el-form-item>
</el-col>
</div>
</el-row>
</el-form>
</template>
<template v-slot:footerbtn>
<el-button v-if="formType=='auditform'" type="primary" v-preventReClick @click="auditForm('formdetail','1')"></el-button>
<div v-if="formType=='endform'" style="display: inline-block;margin-left:10px">
<el-button v-if="formdetail.end_type!=2" type="primary" v-preventReClick
@click="auditForm('formdetail','2')">办结
</el-button>
<el-button v-if="formdetail.end_type==2" type="primary" v-preventReClick
@click="auditForm('formdetail','1')">保存
</el-button>
<el-button v-if="formdetail.end_type!=2" type="danger" v-preventReClick
@click="auditForm('formdetail','3')">退回</el-button>
</div>
</template>
</dialogShow>
</template>
<script>
import {
get,
update
} from '../../../../api/rain/inspection.js'
import {
getparameteritem
} from '../../../../api/system/dictionary.js'
import dialogShow from '@/components/dialogShow'
export default {
components: {
dialogShow
},
data() {
return {
formType: "showform", // auditform endform showform
title: "在建工地巡查",
width: "60%",
labelwidth: "120px",
isShow: false,
infoId: "",
filesList: [],
dealFilesList: [],
siteType: [],
siteLaw: [],
siteStatus: [{
id: 1,
value: "在建"
}, {
id: 2,
value: "完工"
}],
yhtypeList: [{
id: 1,
name: "雨水管道疏挖"
}, {
id: 2,
name: "雨水管道疏通"
}, {
id: 3,
name: "汛期助排"
}, {
id: 4,
name: "污泥外运"
}, {
id: 5,
name: "出水口排查"
}, {
id: 6,
name: "专项处理"
}, {
id: 7,
name: "维修"
}],
form: {
},
formdetail: {
content: "",
end_time: "",
remark: "",
maintain_type:0,
end_type:0
},
rules: {}
}
},
watch: {
infoId(val) {
console.log("id",val)
this.infoId = val
},
formType(val) {
this.formType = val
},
'formdetail.end_type':function(val){
if(val){
this.formdetail.remark = ""
this.formdetail.end_time = ""
this.formdetail.maintain_type = 0
}
}
},
created() {
this.initload()
},
methods: {
initload() {
getparameteritem('siteType').then(res => {
this.siteType = res.detail
})
getparameteritem('siteLaw').then(res => {
this.siteLaw = res.detail
})
},
getSiteInfo(id) {
if (id) {
var that = this;
that.form = {}
get(id).then(res => {
let result = Object.assign(that.form, res);
that.form = result.building_site_info
if (result.rain_inspection_logs) {
for (var k of result.rain_inspection_logs) {
k.adminName = k.admin ? k.admin.name : ""
}
}
that.form.rainInspectionLogs = result.rain_inspection_logs
that.form.roadName = result.building_site_info.road ? result.building_site_info.road.name : ""
that.form.end_time = result.end_time
that.form.remark = result.remark
that.form.end_type = result.end_type
let building_site = result.building_site_info.building_site
that.form.address = building_site.address
that.form.latitude = building_site.latitude
that.form.longitude = building_site.longitude
that.form.name = building_site.name
that.form.number = building_site.number
that.form.siteRemark = building_site.remark
that.form.status = building_site.status
that.form.build_unit = building_site.build_unit
that.form.carry_unit = building_site.carry_unit
that.form.siteType = parseInt(building_site.type)
that.form.maintain_type = result.maintain_type
let site_files = [];
for (var mod of result.building_site_info.building_site_content_files) {
let m = Object.assign({}, mod);
m.url = mod.files.url;
m.id = mod.files.id;
m.photoType = "before";
site_files.push(m);
}
that.filesList = site_files;
}).catch(error => {
//reject(error)
})
}
},
auditForm(formname,status) {
var that = this
this.formdetail.status = status
this.formdetail.id = this.infoId
update(that.formdetail).then(response => {
this.$Message.success('操作成功');
this.$emit("auditSuccess")
that.isShow = false;
this.$refs['formdetail'].resetFields()
// that.load();
}).catch(error => {
//reject(error)
})
}
}
}
</script>
<style>
</style>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,102 @@
<template>
<!-- 工地巡查 -->
<dialogShow :title="title" :is-show.sync="isShow" :width="width">
<template v-slot:content>
<el-form :model="form" :rules="{}" ref="formdetail" label-position="right"
:label-width="labelwidth">
<el-row>
</el-row>
</el-form>
</template>
<!-- <template v-slot:footerbtn>
123
</template> -->
</dialogShow>
</template>
<script>
import {
get
} from '../../../../api/rain/maintain.js'
import {
getparameteritem
} from '../../../../api/system/dictionary.js'
import dialogShow from '@/components/dialogShow'
export default {
components: {
dialogShow
},
data() {
return {
title: "雨水管道疏挖",
width: "60%",
labelwidth:"120px",
isShow: false,
filesList: [],
dealFilesList: [],
yhtypeList: [{
id: 1,
name: "雨水管道疏挖"
}, {
id: 2,
name: "雨水管道疏通"
}, {
id: 3,
name: "汛期助排"
}, {
id: 4,
name: "污泥外运"
}, {
id: 5,
name: "出水口排查"
}, {
id: 6,
name: "专项处理"
}, {
id: 7,
name: "维修"
}],
form: {
},
rules: {}
}
},
created(){
this.initload()
},
methods: {
initload(){
},
getSiteInfo(id) {
if (id) {
var that = this;
that.form = {}
get(id).then(res => {
let result = Object.assign(that.form, res);
}).catch(error => {
//reject(error)
})
}
}
}
}
</script>
<style>
</style>

@ -611,7 +611,7 @@
</el-col>
<el-col :span="12">
<el-form-item label="养护内容" prop="title_id">
<el-select class="width100" v-model="form.title_id" placeholder="请选择养护内容">
<el-select multiple class="width100" v-model="titleArr" placeholder="请选择养护内容">
<el-option v-for="item in maintaninList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
@ -1141,7 +1141,7 @@
remark:""
},
wf_type: 0,
titleArr:[],
rules: {
// scope: [{
// required: true,
@ -1451,7 +1451,11 @@
that.idname = "circulation_id"
that.mapform = [result.circulation_info.longitude, result.circulation_info.latitude, result
.circulation_info.address
]
]
let cir_arrs = result.circulation_info.title_id ? result.circulation_info.title_id.split(","):[]
for(var m of cir_arrs){
that.titleArr.push(parseInt(m))
}
let _files = [];
for (var mod of result.circulation_info.circulation_files) {
let m = Object.assign({}, mod);
@ -1526,7 +1530,11 @@
that.roadName = result.out_water_info.road ? result.out_water_info.road.name : ""
that.mapform = [result.out_water_info.longitude, result.out_water_info.latitude, result.out_water_info
.address
]
]
let water_arrs = result.circulation_info.title_id ? result.circulation_info.title_id.split(","):[]
for(var m of water_arrs){
that.titleArr.push(parseInt(m))
}
let water_files = [];
for (var mod of result.out_water_info.out_water_files) {
let m = Object.assign({}, mod);
@ -1566,6 +1574,7 @@
that.dealFilesList = [];
that.mapform = ['', '', ''];
that.roadName = ""
that.titleArr = []
that.roaddisabled = false
if (obj) {
that.info(obj);
@ -1596,7 +1605,17 @@
});
}
},
returnTitleId(arr){
if(arr.length==0){
return
}
let getArr = ""
for(var m of arr){
getArr+= m+","
}
getArr = getArr.substring(0,getArr.length-1)
return getArr
},
submitForm(formName) {
var that = this;
var listUrlbefore = []
@ -1622,8 +1641,10 @@
listUrlafter.push({
"upload_id": m.upload_id
});
}
this.form.files_deal_list = listUrlafter
}
this.form.files_deal_list = listUrlafter
that.form.title_id = this.returnTitleId(that.titleArr)
this.$refs[formName].validate((valid) => {
if (valid) {
that.submitAll(that.rainType, that.form[this.idname])

@ -112,7 +112,9 @@
<maintainInfo @update="updeatshow" ref="maintain" :dialogFormDetailVisible='showinfo'></maintainInfo>
<!-- // -->
<showRainEquipmentInfo ref="showRainEquipmentInfo"></showRainEquipmentInfo>
<showRainSiteInfo ref="showRainSiteInfo"></showRainSiteInfo>
@ -137,11 +139,15 @@
import {listCommonuser} from"../../../api/common.js"
import {listaccount} from "../../../api/basic/account.js"
import LxHeader from "@/components/LxHeader/index.vue";
import maintainInfo from '@/views/rain/order/components/maintainInfo'
import maintainInfo from '@/views/rain/order/components/maintainInfo'
import showRainEquipmentInfo from '@/views/rain/inspection/components/showRainEquipmentInfo'
import showRainSiteInfo from '@/views/rain/inspection/components/showRainSiteInfo'
export default {
components: {
LxHeader,
maintainInfo
maintainInfo,
showRainEquipmentInfo,
showRainSiteInfo
},
data() {
return {
@ -416,8 +422,27 @@ updeatshow(e){
},
info(obj,what) {
var that = this;
this.showinfo = true
this.$refs.maintain.info(obj.rain_maintain_id)
if(obj.rain_inspection_id){
//
if(obj.rain_inspection_info.type==1){
this.$refs.showRainEquipmentInfo.isShow = true
this.$refs.showRainEquipmentInfo.getEquipmentInfo(obj.rain_inspection_id)
this.$refs.showRainEquipmentInfo.infoId = obj.rain_inspection_id
this.$refs.showRainEquipmentInfo.formType = 'showform'
}
//
if(obj.rain_inspection_info.type==2){
this.$refs.showRainSiteInfo.isShow = true
this.$refs.showRainSiteInfo.getSiteInfo(obj.rain_inspection_id)
this.$refs.showRainSiteInfo.infoId = obj.rain_inspection_id
this.$refs.showRainSiteInfo.formType = 'showform'
}
}
if(obj.rain_maintain_id){
this.showinfo = true
this.$refs.maintain.info(obj.rain_maintain_id)
}
},
edit(obj) {
this.form = this.$options.data().form

@ -1,7 +1,7 @@
<template>
<!-- 审核 -->
<el-dialog class="common-dialog" :title="rainTitle" :visible.sync="showdiago" width="60%">
<el-dialog class="common-dialog" :title="rainTitle" @close="changeShow" :visible.sync="dialogFormDetailVisible" width="60%">
<div class="dialogConcent">
<el-scrollbar style="flex: 1">
<!-- 疏通疏挖 -->
@ -489,18 +489,19 @@
export default {
name:"maintainInfo",
props:{
dialogFormDetailVisible:{
type:Boolean,
default:() => {
return false
}
}
// dialogFormDetailVisible:{
// type:Boolean,
// default:() => {
// return false
// }
// }
},
data() {
return {
rainType:6,
maintainids:0,
showdiago: false,
maintainids:0,
dialogFormDetailVisible:false,
// showdiago: this.dialogFormDetailVisible,
formLabelWidth: "120px",
dialogImageUrl: "",
dialogVisible: false,
@ -596,7 +597,8 @@
},
changeShow(){
this.$emit("update", false);
this.dialogFormDetailVisible=false
// this.$emit("update:dialogFormDetailVisible", false);
// this.$emit('shows',this.dialogFormDetailVisible=false);
},
info(id) {

@ -339,9 +339,11 @@
<img width="100%" :src="dialogImageUrl" alt="">
</el-dialog>
<!-- // -->
<maintainInfo @shows="showsfalse" ref="maintain" :dialogFormDetailVisible='showinfo'></maintainInfo>
<maintainInfo ref="maintain"></maintainInfo>
<!-- // -->
<showRainEquipmentInfo ref="showRainEquipmentInfo"></showRainEquipmentInfo>
<showRainSiteInfo ref="showRainSiteInfo"></showRainSiteInfo>
@ -364,11 +366,15 @@
import {listCommonuser} from"../../../api/common.js"
import {listaccount} from "../../../api/basic/account.js"
import LxHeader from "@/components/LxHeader/index.vue";
import maintainInfo from '@/views/rain/order/components/maintainInfo'
import maintainInfo from '@/views/rain/order/components/maintainInfo'
import showRainEquipmentInfo from '@/views/rain/inspection/components/showRainEquipmentInfo'
import showRainSiteInfo from '@/views/rain/inspection/components/showRainSiteInfo'
export default {
components: {
LxHeader,
maintainInfo
maintainInfo,
showRainEquipmentInfo,
showRainSiteInfo
},
data() {
return {
@ -566,10 +572,10 @@
},
},
methods: {
showsfalse(val){
console.log(val)
this.showinfo = false
},
// showsfalse(val){
// console.log(val)
// this.showinfo = false
// },
handlePictureCardPreview(file) {
this.dialogImageUrl = file.url;
@ -713,13 +719,29 @@
})
},
show(obj,ck){
if(obj.rain_maintain_id>0){
this.showinfo = true
if(obj.rain_inspection_id){
//
if(obj.rain_inspection_info.type==1){
this.$refs.showRainEquipmentInfo.isShow = true
this.$refs.showRainEquipmentInfo.getEquipmentInfo(obj.rain_inspection_id)
this.$refs.showRainEquipmentInfo.infoId = obj.rain_inspection_id
this.$refs.showRainEquipmentInfo.formType = 'showform'
}
//
if(obj.rain_inspection_info.type==2){
this.$refs.showRainSiteInfo.isShow = true
this.$refs.showRainSiteInfo.getSiteInfo(obj.rain_inspection_id)
this.$refs.showRainSiteInfo.infoId = obj.rain_inspection_id
this.$refs.showRainSiteInfo.formType = 'showform'
}
}else if(obj.rain_maintain_id>0){
this.$refs.maintain.dialogFormDetailVisible = true
// this.showinfo = true
this.$refs.maintain.info(obj.rain_maintain_id)
}else{
this.info(obj,ck)
}
// this.dialogOrderFormVisible = true
},
edit(obj,pd) {

Loading…
Cancel
Save