+
雨水管道疏挖
雨水管道疏通
汛期助排
@@ -103,6 +108,9 @@
{{getUserName(scope.row)}}
+
+ {{getMaintinName(scope.row)}}
+
-
-
-
-
-
-
-
-
- {{roadName}}
-
-
-
-
- {{form.title_detail}}
-
-
-
-
-
- {{form.number}}
-
-
-
-
-
- {{form.address}}
-
-
-
-
- {{form.longitude}}
-
-
-
-
- {{form.latitude}}
-
-
-
-
- {{form.content}}
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
- 否
- 是
-
-
-
-
- 否
- 是
-
-
-
-
- {{form.deal_content}}
-
-
-
-
- {{form.deal_result}}
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
- 养护转办
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
- 养护转办
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{roadName}}
-
-
-
-
- {{form.address}}
-
-
-
-
- {{form.longitude}}
-
-
-
-
- {{form.latitude}}
-
-
-
-
- {{form.content}}
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
- 否
- 是
-
-
-
-
- {{form.deal_content}}
-
-
-
-
- {{form.deal_result}}
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
- 养护转办
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
- 养护转办
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{roadName}}
-
-
-
-
- {{form.date}}
-
-
-
-
- {{form.address}}
-
-
-
-
- {{form.content}}
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
- 养护转办
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 无
- 有
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 否
- 是
-
-
-
-
-
-
- 否
- 是
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 否
- 是
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
![]()
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -934,6 +178,13 @@
+
+
+
+
+
+
+
@@ -945,14 +196,6 @@
get,
del,
update,
- storecirculation,
- savecirculation,
- storedischarge,
- savedischarge,
- storemire,
- savemire,
- storewater,
- savewater,
review
} from '../../../api/rain/maintain.js'
import {
@@ -964,19 +207,30 @@
import {
listroad
} from '../../../api/basic/road.js'
+ import {
+ listmaintain
+ } from '../../../api/basic/unit.js'
import {
getparameteritem
} from '../../../api/system/dictionary.js'
import LxHeader from "@/components/LxHeader/index.vue";
+ import showCirculationInfo from '@/views/rain/maintain/components/showCirculationInfo'
+ import showDischargeInfo from '@/views/rain/maintain/components/showDischargeInfo'
+ import showMireInfo from '@/views/rain/maintain/components/showMireInfo'
+ import editCirculation from '@/views/rain/maintain/components/editCirculation'
+ import editMire from '@/views/rain/maintain/components/editMire'
import AvueMap from 'avue-plugin-map'
- import {
- ElMapExportTable
- } from "table-excel";
export default {
components: {
LxHeader,
- AvueMap
+ AvueMap,
+ showCirculationInfo,
+ showDischargeInfo,
+ showMireInfo,
+ editCirculation,
+ editMire
+
},
data() {
return {
@@ -1012,7 +266,8 @@
datesearch: "",
baseurl: "",
searchFields: {
- is_export: 0
+ is_export: 0,
+ is_auth: 1
},
yhtypeList: [{
id: 1,
@@ -1091,7 +346,11 @@
}, {
id: 2,
name: "违法转办"
- }]
+ }],
+ maintaingroupList: [{
+ id: "",
+ name: "所有"
+ }],
},
paginations: {
page: 1,
@@ -1168,8 +427,7 @@
title: "地址/排放点",
type: "string",
align: "left",
- width: 360,
- fixed: "left"
+ width: 360
},
{
field: "area_info",
@@ -1179,9 +437,16 @@
width: 180
},
{
- field: "type",
+ field: "maintain",
+ title: "所属养护单位",
+ type: "maintain",
+ align: "center",
+ width: 180
+ },
+ {
+ field: "old_type",
title: "类型",
- type: "type",
+ type: "old_type",
align: "center",
width: 180
},
@@ -1225,8 +490,7 @@
title: "提交日期",
type: "string",
align: "center",
- width: 180,
- fixed: "right"
+ width: 180
},
{
field: "操作",
@@ -1255,7 +519,6 @@
this.roadsList = []
},
datesearch(newVal, oldVal) {
- console.log(newVal)
if (newVal) {
this.searchFields.start_date = newVal[0]
this.searchFields.end_date = newVal[1]
@@ -1278,7 +541,7 @@
value: "所有"
}]
}
- }
+ },
},
methods: {
getUserName(row) {
@@ -1291,6 +554,18 @@
}
},
+ getMaintinName(row) {
+ if (row.user) {
+ if (row.user.maintain) {
+ return row.user.maintain.name;
+ } else {
+ return "";
+ }
+
+ } else {
+ return "";
+ }
+ },
exportExcel() {
var that = this
that.searchFields.is_export = 1
@@ -1334,6 +609,7 @@
reject(error)
});
},
+
chooseRoad(val) {
this.form.road_id = val
},
@@ -1363,7 +639,6 @@
that.tableHeight = tableHeight;
that.baseurl = location.host; //process.env.VUE_APP_BASE_API
this.uploadOther.token = getToken();
-
listarea({
page: 1,
page_size: 99
@@ -1377,6 +652,17 @@
}
})
+ listmaintain({
+ page: 1,
+ page_size: 999,
+ }).then(response => {
+ for (var m of response.data) {
+ this.selects.maintaingroupList.push(m)
+ }
+ }).catch(error => {
+ console.log(error)
+ reject(error)
+ });
},
handleCurrentChange(page) {
this.paginations.page = page;
@@ -1412,7 +698,7 @@
var that = this;
get(obj.id).then(res => {
let result = Object.assign(that.form, res);
- that.rainType = result.type;
+ that.rainType = result.old_type;
that.nowstatus = result.status;
that.formdetail.id = result.id
that.formdetail.end_type = result.end_type
@@ -1534,7 +820,7 @@
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(",") : []
+ let water_arrs = result.out_water_info.title_id ? result.out_water_info.title_id.split(",") : []
for (var m of water_arrs) {
that.titleArr.push(parseInt(m))
}
@@ -1564,27 +850,41 @@
//reject(error)
})
},
-
- show(obj) {
- this.dialogFormDetailVisible = true;
- this.info(obj)
+ // 查看 审核 办结
+ showInfo(obj, formtype) {
+ if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 6 || obj.old_type == 7 || obj.old_type == 5) {
+ this.$refs.showCirculationInfo.isShow = true
+ this.$refs.showCirculationInfo.infoId = obj.id
+ this.$refs.showCirculationInfo.formType = formtype
+ this.$refs.showCirculationInfo.getInfo(obj.id)
+ } else if (obj.old_type == 3) {
+ this.$refs.showDischargeInfo.isShow = true
+ this.$refs.showDischargeInfo.infoId = obj.id
+ this.$refs.showDischargeInfo.formType = formtype
+ this.$refs.showDischargeInfo.getInfo(obj.id)
+ } else if (obj.old_type == 4) {
+ this.$refs.showMireInfo.isShow = true
+ this.$refs.showMireInfo.infoId = obj.id
+ this.$refs.showMireInfo.formType = formtype
+ this.$refs.showMireInfo.getInfo(obj.id)
+ }
},
edit(obj) {
var that = this;
- this.form = this.$options.data().form
- that.filesList = [];
- that.dealFilesList = [];
- that.mapform = ['', '', ''];
- that.roadName = ""
- that.titleArr = []
- that.roaddisabled = false
if (obj) {
- that.info(obj);
- this.dialogFormVisible = true;
- } else {
- this.dialogFormVisible = false
- this.rainTypeVisible = true
+ if (obj.old_type == 1 || obj.old_type == 2 || obj.old_type == 3 || obj.old_type == 5 || obj.old_type == 6 ||
+ obj.old_type ==
+ 7) {
+ this.$refs.editCirculation.rainType = obj.old_type
+ this.$refs.editCirculation.infoId = obj.id
+ this.$refs.editCirculation.getInfo(obj.id)
+ this.$refs.editCirculation.isShow = true
+ } else if (obj.old_type == 4) {
+ this.$refs.editMire.infoId = obj.id
+ this.$refs.editMire.getInfo(obj.id)
+ this.$refs.editMire.isShow = true
+ }
}
},
@@ -1692,7 +992,7 @@
that.form = {};
that.rainMaintainLogs = []
that.end_types = 0;
- that.formdetail.type = ""
+ that.formdetail.type = 0
this.$refs[formName].resetFields();
that.dialogFormVisible = false;
that.dialogFormDetailVisible = false;
@@ -1741,15 +1041,31 @@
},
submitRainType() {
var that = this
+ if (that.rainType == 1 || that.rainType == 2 || that.rainType == 3 || that.rainType == 5 || that.rainType ==
+ 6 || that.rainType ==
+ 7) {
+ this.$refs.editCirculation.rainType = that.rainType
+ this.$refs.editCirculation.getInfo()
+ this.$refs.editCirculation.isShow = true
+ } else if (that.rainType == 4) {
+ this.$refs.editMire.getInfo()
+ this.$refs.editMire.isShow = true
+ }
+ this.rainTypeVisible = false
+ return
+
+
this.rainTypeVisible = false
if (that.rainType == 1 || that.rainType == 2 || that.rainType == 5 || that.rainType == 6 || that.rainType ==
- 7) {
+ 7 || that.rainType == 3) {
if (that.rainType == 1) {
that.rainTitle = "雨水管道疏挖"
} else if (that.rainType == 2) {
that.rainTitle = "雨水管道疏通"
} else if (that.rainType == 5) {
that.rainTitle = "出水口排查"
+ } else if (that.rainType == 3) {
+ that.rainTitle = "汛期助排"
} else if (that.rainType == 6) {
that.rainTitle = "专项处理"
} else if (that.rainType == 7) {
@@ -1760,9 +1076,6 @@
getparameteritem('maintainContent_' + that.rainType).then(res => {
that.maintaninList = res.detail
})
- } else if (that.rainType == 3) {
- that.rainTitle = "汛期助排"
- that.maintaninList = []
} else if (that.rainType == 4) {
that.rainTitle = "污泥外运"
that.maintaninList = []