|
|
|
|
@ -30,6 +30,17 @@
|
|
|
|
|
</u-button>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</block>
|
|
|
|
|
<u-form-item v-if="numShow" labelWidth="180" label="出水口编号" label-position="left">
|
|
|
|
|
<u-input v-model="form.number" type='text' placeholder="请填写出水口编号"/>
|
|
|
|
|
</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-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>
|
|
|
|
|
<block v-if="!formshow">
|
|
|
|
|
<u-form-item label="外运时间" label-position="top" prop="type">
|
|
|
|
|
<u-input placeholder="请选择外运时间" v-model="form.date" type="select" :border="true"
|
|
|
|
|
@ -96,11 +107,15 @@
|
|
|
|
|
token: ""
|
|
|
|
|
},
|
|
|
|
|
roadName: "",
|
|
|
|
|
aboutShow:false,
|
|
|
|
|
typeShow: false,
|
|
|
|
|
dateShow: false,
|
|
|
|
|
formshow: true,
|
|
|
|
|
lawshow: true,
|
|
|
|
|
showInfoId: false,
|
|
|
|
|
askName:"",
|
|
|
|
|
askShow:false,
|
|
|
|
|
numShow:false,
|
|
|
|
|
typeName: "雨水管道疏挖",
|
|
|
|
|
dateparams: {
|
|
|
|
|
year: true,
|
|
|
|
|
@ -111,6 +126,7 @@
|
|
|
|
|
second: true,
|
|
|
|
|
},
|
|
|
|
|
rainArr: {
|
|
|
|
|
askContentList:[],
|
|
|
|
|
rainTypes: [{
|
|
|
|
|
id: 1,
|
|
|
|
|
name: "雨水管道疏挖"
|
|
|
|
|
@ -168,6 +184,9 @@
|
|
|
|
|
files_deal_list: [],
|
|
|
|
|
date: "",
|
|
|
|
|
address: "",
|
|
|
|
|
scope:"",
|
|
|
|
|
point_name:"",
|
|
|
|
|
title_id:""
|
|
|
|
|
},
|
|
|
|
|
rules: {
|
|
|
|
|
content: [{
|
|
|
|
|
@ -183,14 +202,16 @@
|
|
|
|
|
"/api/mobile/rain-maintains/circulation-store",
|
|
|
|
|
"/api/mobile/rain-maintains/circulation-store",
|
|
|
|
|
"/api/mobile/rain-maintains/help-discharge-store",
|
|
|
|
|
"/api/mobile/rain-maintains/mire-store"
|
|
|
|
|
"/api/mobile/rain-maintains/mire-store",
|
|
|
|
|
"/api/mobile/rain-maintains/out-water-store"
|
|
|
|
|
],
|
|
|
|
|
save: [
|
|
|
|
|
"",
|
|
|
|
|
"/api/mobile/rain-maintains/circulation-save",
|
|
|
|
|
"/api/mobile/rain-maintains/circulation-save",
|
|
|
|
|
"/api/mobile/rain-maintains/help-discharge-save",
|
|
|
|
|
"/api/mobile/rain-maintains/mire-save"
|
|
|
|
|
"/api/mobile/rain-maintains/mire-save",
|
|
|
|
|
"/api/mobile/rain-maintains/out-water-save"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -206,6 +227,7 @@
|
|
|
|
|
this.form.road_id = options.roadid
|
|
|
|
|
this.roadName = options.roadname
|
|
|
|
|
}
|
|
|
|
|
that.loadAskContent();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.action = this.util.HOST + "/api/mobile/upload-file";
|
|
|
|
|
@ -258,9 +280,13 @@
|
|
|
|
|
that.form.type = val[0].value
|
|
|
|
|
that.formshow = true
|
|
|
|
|
that.lawshow = true
|
|
|
|
|
that.aboutShow = false
|
|
|
|
|
that.numShow = false
|
|
|
|
|
that.filesList = [];
|
|
|
|
|
this.$refs.uUpload.clear();
|
|
|
|
|
that.dealFilesList = [];
|
|
|
|
|
that.form.scope = ""
|
|
|
|
|
that.form.point_name = ""
|
|
|
|
|
if (that.form.is_solve == 1) {
|
|
|
|
|
this.$refs.uUploaddeal.clear();
|
|
|
|
|
}
|
|
|
|
|
@ -274,9 +300,35 @@
|
|
|
|
|
}
|
|
|
|
|
if (val[0].value == 3 || val[0].value == 4) {
|
|
|
|
|
that.lawshow = false
|
|
|
|
|
that.aboutShow = true
|
|
|
|
|
}
|
|
|
|
|
if (val[0].value == 5) {
|
|
|
|
|
that.aboutShow = true
|
|
|
|
|
that.numShow = true
|
|
|
|
|
}
|
|
|
|
|
console.log("res", that.form)
|
|
|
|
|
},
|
|
|
|
|
confirmAskType(e){
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.askName = e[0].label
|
|
|
|
|
this.form.title_id = e[0].value
|
|
|
|
|
},
|
|
|
|
|
loadAskContent() {
|
|
|
|
|
var that = this;
|
|
|
|
|
that.util.request({
|
|
|
|
|
api: '/api/admin/parameter/show',
|
|
|
|
|
method: "get",
|
|
|
|
|
data: {
|
|
|
|
|
number: "maintainContent"
|
|
|
|
|
},
|
|
|
|
|
utilSuccess: function(result) {
|
|
|
|
|
that.rainArr.askContentList = result.detail
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
that.util.alert(res);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
chooseLocation(e) { //打开地图选择位置
|
|
|
|
|
var that = this;
|
|
|
|
|
uni.chooseLocation({
|
|
|
|
|
@ -468,7 +520,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$refs.uForm.validate(valid => {
|
|
|
|
|
// console.log(api)
|
|
|
|
|
console.log("form",that.form)
|
|
|
|
|
// return;
|
|
|
|
|
if (valid) {
|
|
|
|
|
console.log('验证通过');
|
|
|
|
|
|