刘翔宇-旅管家 4 years ago
parent dc551212f7
commit a4806f305c

@ -19,7 +19,8 @@
</LxHeader> </LxHeader>
</div> </div>
<div ref="lxTable"> <div ref="lxTable">
<el-table :data="tableData" class="v-table" @selection-change="handleSelectionChange" :height="tableHeight" style="width: 100%"> <el-table :data="tableData" class="v-table" @selection-change="handleSelectionChange" :height="tableHeight"
style="width: 100%">
<el-table-column type="selection" fixed width="55"></el-table-column> <el-table-column type="selection" fixed width="55"></el-table-column>
<el-table-column type="index" width="50" fixed label="序号" align="center"> </el-table-column> <el-table-column type="index" width="50" fixed label="序号" align="center"> </el-table-column>
<el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns" <el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns"
@ -33,10 +34,11 @@
style="margin-left: 10px;">编辑</Button> style="margin-left: 10px;">编辑</Button>
<Button v-if="scope.row['status']==0" ghost size="small" @click="show(scope.row)" type="primary" <Button v-if="scope.row['status']==0" ghost size="small" @click="show(scope.row)" type="primary"
style="margin-left: 10px;">审核</Button> style="margin-left: 10px;">审核</Button>
<Button v-if="scope.row['status']==1&&scope.row['end_type']!=1" ghost size="small" @click="show(scope.row)" type="primary" <Button v-if="scope.row['status']==1&&scope.row['end_type']!=1" ghost size="small"
style="margin-left: 10px;">办结</Button> @click="show(scope.row)" type="primary" style="margin-left: 10px;">办结</Button>
<Button ghost size="small" v-if="scope.row['status']==0||scope.row['status']==1&&scope.row['end_type']!=1" @click="del(scope.row)" <Button ghost size="small"
type="error" style="margin-left: 10px;">删除</Button> v-if="scope.row['status']==0||scope.row['status']==1&&scope.row['end_type']!=1"
@click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
<div v-else-if="column.type=='end_type'"> <div v-else-if="column.type=='end_type'">
<el-tag v-if="scope.row[column.field]==1" type="warning"></el-tag> <el-tag v-if="scope.row[column.field]==1" type="warning"></el-tag>
@ -68,11 +70,15 @@
<div v-else-if="column.type=='format'"> <div v-else-if="column.type=='format'">
{{scope.row[column.field]?scope.row[column.field].name:""}} {{scope.row[column.field]?scope.row[column.field].name:""}}
</div> </div>
<div v-else-if="column.type=='admin'">
{{getUserName(scope.row)}}
</div>
<!-- <div v-else-if="column.type=='end_type'"> <!-- <div v-else-if="column.type=='end_type'">
<el-tag v-if="scope.row[column.field]==0"></el-tag> <el-tag v-if="scope.row[column.field]==0"></el-tag>
<el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag> <el-tag type="danger" v-if="scope.row[column.field]==1" >违法转办</el-tag>
</div> --> </div> -->
<div v-else>{{scope.row[column.field]}}</div> <div v-else>{{scope.row[column.field]}}
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -463,13 +469,17 @@
<el-button @click="resetFormDetail('formdetail')"> </el-button> <el-button @click="resetFormDetail('formdetail')"> </el-button>
<el-button v-if="nowstatus==0" type="primary" v-preventReClick @click="submitFormDetail('formdetail','1')"> <el-button v-if="nowstatus==0" type="primary" v-preventReClick @click="submitFormDetail('formdetail','1')">
</el-button> </el-button>
<el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="warning" v-preventReClick @click="submitFormDetail('formdetail','4')"> <el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="warning" v-preventReClick
@click="submitFormDetail('formdetail','4')">
缺陷办结</el-button> 缺陷办结</el-button>
<el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="primary" v-preventReClick @click="submitFormDetail('formdetail','2')"> <el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="primary" v-preventReClick
@click="submitFormDetail('formdetail','2')">办结
</el-button> </el-button>
<el-button v-if="nowstatus==1&&formdetail.end_type==1&&wf_type!=1" type="primary" v-preventReClick @click="submitFormDetail('formdetail','1')"> <el-button v-if="nowstatus==1&&formdetail.end_type==1&&wf_type!=1" type="primary" v-preventReClick
@click="submitFormDetail('formdetail','1')">保存
</el-button> </el-button>
<el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="danger" v-preventReClick @click="submitFormDetail('formdetail','3')">退 <el-button v-if="nowstatus==1&&formdetail.end_type!=1" type="danger" v-preventReClick
@click="submitFormDetail('formdetail','3')">退回
</el-button> </el-button>
</div> </div>
@ -488,22 +498,10 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属道路" prop="road_id"> <el-form-item label="所属道路" prop="road_id">
<el-select <el-select class="width100" v-model="roadName" filterable remote @change="chooseRoad"
class="width100" :disabled="roaddisabled" reserve-keyword placeholder="请输入关键词查找道路信息" :remote-method="remoteMethod"
v-model="roadName"
filterable
remote
@change="chooseRoad"
:disabled="roaddisabled"
reserve-keyword
placeholder="请输入关键词查找道路信息"
:remote-method="remoteMethod"
:loading="roadloading"> :loading="roadloading">
<el-option <el-option v-for="item in roadsList" :key="item.id" :label="item.name" :value="item.id">
v-for="item in roadsList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -556,8 +554,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="现场照片" prop="files_list"> <el-form-item label="现场照片" prop="files_list">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList"
ref="pictureUpload" :auto-upload="true" :data="uploadOther" ref="pictureUpload" :auto-upload="true" :data="uploadOther" :on-error="handleError"
:on-error="handleError"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}"> :on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}">
<i slot="default" class="el-icon-plus"></i> <i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}"> <div slot="file" slot-scope="{file}">
@ -604,8 +601,7 @@
</el-col> </el-col>
<el-col :span="24" v-if="form.is_solve==1"> <el-col :span="24" v-if="form.is_solve==1">
<el-form-item label="处理后照片" prop="files_deal_list"> <el-form-item label="处理后照片" prop="files_deal_list">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :on-error="handleError"
:on-error="handleError"
:file-list="dealFilesList" ref="pictureUploads" :limit="3" :auto-upload="true" :data="uploadOther" :file-list="dealFilesList" ref="pictureUploads" :limit="3" :auto-upload="true" :data="uploadOther"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,2)}"> :on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,2)}">
<i slot="default" class="el-icon-plus"></i> <i slot="default" class="el-icon-plus"></i>
@ -636,22 +632,10 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属道路" prop="road_id"> <el-form-item label="所属道路" prop="road_id">
<el-select <el-select class="width100" v-model="roadName" filterable remote @change="chooseRoad"
class="width100" :disabled="roaddisabled" reserve-keyword placeholder="请输入关键词查找道路信息" :remote-method="remoteMethod"
v-model="roadName"
filterable
remote
@change="chooseRoad"
:disabled="roaddisabled"
reserve-keyword
placeholder="请输入关键词查找道路信息"
:remote-method="remoteMethod"
:loading="roadloading"> :loading="roadloading">
<el-option <el-option v-for="item in roadsList" :key="item.id" :label="item.name" :value="item.id">
v-for="item in roadsList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -679,8 +663,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="现场照片" prop="files_list"> <el-form-item label="现场照片" prop="files_list">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList"
ref="pictureUpload" :auto-upload="true" :data="uploadOther" ref="pictureUpload" :auto-upload="true" :data="uploadOther" :on-error="handleError"
:on-error="handleError"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}"> :on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}">
<i slot="default" class="el-icon-plus"></i> <i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}"> <div slot="file" slot-scope="{file}">
@ -719,8 +702,7 @@
</el-col> </el-col>
<el-col :span="24" v-if="form.is_solve==1"> <el-col :span="24" v-if="form.is_solve==1">
<el-form-item label="处理后照片" prop="files_deal_list"> <el-form-item label="处理后照片" prop="files_deal_list">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :on-error="handleError"
:on-error="handleError"
:file-list="dealFilesList" ref="pictureUploads" :limit="3" :auto-upload="true" :data="uploadOther" :file-list="dealFilesList" ref="pictureUploads" :limit="3" :auto-upload="true" :data="uploadOther"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,2)}"> :on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,2)}">
<i slot="default" class="el-icon-plus"></i> <i slot="default" class="el-icon-plus"></i>
@ -754,22 +736,10 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属道路" prop="road_id"> <el-form-item label="所属道路" prop="road_id">
<el-select <el-select class="width100" v-model="roadName" filterable remote @change="chooseRoad"
class="width100" :disabled="roaddisabled" reserve-keyword placeholder="请输入关键词查找道路信息" :remote-method="remoteMethod"
v-model="roadName"
filterable
remote
@change="chooseRoad"
:disabled="roaddisabled"
reserve-keyword
placeholder="请输入关键词查找道路信息"
:remote-method="remoteMethod"
:loading="roadloading"> :loading="roadloading">
<el-option <el-option v-for="item in roadsList" :key="item.id" :label="item.name" :value="item.id">
v-for="item in roadsList"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -794,8 +764,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="附件" prop="files_list"> <el-form-item label="附件" prop="files_list">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="filesList"
ref="pictureUpload" :auto-upload="true" :data="uploadOther" ref="pictureUpload" :auto-upload="true" :data="uploadOther" :on-error="handleError"
:on-error="handleError"
:on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}"> :on-success="function(responsose,file,fileList) {return handlesuccess(responsose,file,fileList,1)}">
<i slot="default" class="el-icon-plus"></i> <i slot="default" class="el-icon-plus"></i>
<div slot="file" slot-scope="{file}"> <div slot="file" slot-scope="{file}">
@ -844,7 +813,8 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="备注" prop="audit_reamrk"> <el-form-item label="备注" prop="audit_reamrk">
<el-input type="textarea" v-model="reviewForm.audit_reamrk" placeholder="请填写备注" autocomplete="off"></el-input> <el-input type="textarea" v-model="reviewForm.audit_reamrk" placeholder="请填写备注" autocomplete="off">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -905,18 +875,18 @@
data() { data() {
return { return {
reviewFormVisible: false, reviewFormVisible: false,
reviewList:[], reviewList: [],
reviewForm:{ reviewForm: {
ids:[], ids: [],
audit_status:0, audit_status: 0,
audit_reamrk:"" audit_reamrk: ""
}, },
reviewStatusList:[{ reviewStatusList: [{
id:0, id: 0,
value:"待复核" value: "待复核"
},{ }, {
id:1, id: 1,
value:"已复核" value: "已复核"
}], }],
tableHeight: 0, tableHeight: 0,
rainTypeVisible: false, rainTypeVisible: false,
@ -974,18 +944,18 @@
files_deal_list: [], files_deal_list: [],
date: "", date: "",
address: "", address: "",
road_id:"" road_id: ""
}, },
roadsList:[], roadsList: [],
roadName:"", roadName: "",
roaddisabled:false, roaddisabled: false,
roadloading:false, roadloading: false,
formdetail: { formdetail: {
status: 0, status: 0,
end_type: 0, end_type: 0,
content: "" content: ""
}, },
wf_type:0, wf_type: 0,
rules: { rules: {
content: [{ content: [{
@ -1000,7 +970,8 @@
title: "地址/排放点", title: "地址/排放点",
type: "string", type: "string",
align: "left", align: "left",
width: 360 width: 360,
fixed: "left"
}, },
{ {
field: "area_info", field: "area_info",
@ -1045,7 +1016,7 @@
// width:160 // width:160
// }, // },
{ {
field: "admin", field: "userName",
title: "提交人", title: "提交人",
type: "admin", type: "admin",
align: "center", align: "center",
@ -1056,7 +1027,8 @@
title: "提交日期", title: "提交日期",
type: "string", type: "string",
align: "center", align: "center",
width: 180 width: 180,
fixed: "right"
}, },
{ {
field: "操作", field: "操作",
@ -1081,40 +1053,50 @@
this.form.address = newVal[2]; this.form.address = newVal[2];
// } // }
}, },
rainType(){ rainType() {
this.roadsList = [] this.roadsList = []
} }
}, },
methods: { methods: {
handleSelectionChange(val){ getUserName(row) {
if (row.admin) {
return row.admin.name;
} else if (row.user) {
return row.user.name;
} else {
return "未知";
}
},
handleSelectionChange(val) {
console.log(val) console.log(val)
this.reviewList = val this.reviewList = val
}, },
review(){ review() {
let data = this.reviewList let data = this.reviewList
let idsArr = []; let idsArr = [];
if(data.length>0){ if (data.length > 0) {
for(var m of data){ for (var m of data) {
idsArr.push(m.id) idsArr.push(m.id)
} }
this.reviewForm.ids = idsArr this.reviewForm.ids = idsArr
this.reviewFormVisible = true this.reviewFormVisible = true
}else{ } else {
this.$message({ this.$message({
message: '请选择需要复核的信息', message: '请选择需要复核的信息',
type: 'warning' type: 'warning'
}); });
} }
}, },
submitReviewForm(){ submitReviewForm() {
var that = this var that = this
console.log(that.reviewForm); console.log(that.reviewForm);
review({ review({
ids:that.reviewForm.ids, ids: that.reviewForm.ids,
audit_status:that.reviewForm.audit_status, audit_status: that.reviewForm.audit_status,
audit_reamrk:that.reviewForm.audit_reamrk audit_reamrk: that.reviewForm.audit_reamrk
}).then(response => { }).then(response => {
this.$Message.success('操作成功'); this.$Message.success('操作成功');
that.load(); that.load();
@ -1124,20 +1106,20 @@
reject(error) reject(error)
}); });
}, },
chooseRoad(val){ chooseRoad(val) {
this.form.road_id = val this.form.road_id = val
}, },
remoteMethod(query){ remoteMethod(query) {
if(query!=''){ if (query != '') {
this.roadloading = true this.roadloading = true
listroad({ listroad({
name:query name: query
}).then(res => { }).then(res => {
this.roadloading = false this.roadloading = false
this.roadsList = res.data this.roadsList = res.data
}) })
}else{ } else {
this.roadsList=[] this.roadsList = []
} }
}, },
initLoad() { initLoad() {
@ -1223,7 +1205,7 @@
that.form = result.circulation_info; that.form = result.circulation_info;
that.form.circulation_id = result.circulation_id; that.form.circulation_id = result.circulation_id;
that.roaddisabled = true that.roaddisabled = true
that.roadName = result.circulation_info.road?result.circulation_info.road.name:"" that.roadName = result.circulation_info.road ? result.circulation_info.road.name : ""
that.idname = "circulation_id" that.idname = "circulation_id"
that.mapform = [result.circulation_info.longitude, result.circulation_info.latitude, result that.mapform = [result.circulation_info.longitude, result.circulation_info.latitude, result
.circulation_info.address .circulation_info.address
@ -1252,7 +1234,7 @@
that.form = result.help_discharge_info; that.form = result.help_discharge_info;
that.form.help_discharge_id = result.help_discharge_id; that.form.help_discharge_id = result.help_discharge_id;
that.roaddisabled = true that.roaddisabled = true
that.roadName = result.help_discharge_info.road?result.help_discharge_info.road.name:"" that.roadName = result.help_discharge_info.road ? result.help_discharge_info.road.name : ""
that.idname = "help_discharge_id" that.idname = "help_discharge_id"
that.mapform = [result.help_discharge_info.longitude, result.help_discharge_info.latitude, result that.mapform = [result.help_discharge_info.longitude, result.help_discharge_info.latitude, result
.help_discharge_info.address .help_discharge_info.address
@ -1282,7 +1264,7 @@
that.form = result.mire_info; that.form = result.mire_info;
that.form.mire_id = result.mire_id; that.form.mire_id = result.mire_id;
that.roaddisabled = true that.roaddisabled = true
that.roadName = result.mire_info.road?result.mire_info.road.name:"" that.roadName = result.mire_info.road ? result.mire_info.road.name : ""
that.idname = "mire_id"; that.idname = "mire_id";
let mire_files = []; let mire_files = [];
for (var mod of result.mire_info.mire_files) { for (var mod of result.mire_info.mire_files) {
@ -1299,7 +1281,7 @@
that.form.out_water_id = result.out_water_id; that.form.out_water_id = result.out_water_id;
that.idname = "out_water_id" that.idname = "out_water_id"
that.roaddisabled = true that.roaddisabled = true
that.roadName = result.out_water_info.road?result.out_water_info.road.name:"" 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 that.mapform = [result.out_water_info.longitude, result.out_water_info.latitude, result.out_water_info
.address .address
] ]
@ -1481,7 +1463,7 @@
}); });
}, },
handleError(err,file,fileList){ handleError(err, file, fileList) {
this.$message.error('上传失败,重新上传'); this.$message.error('上传失败,重新上传');
}, },
resetrainType() { resetrainType() {
@ -1624,5 +1606,4 @@
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up { .vm10 .el-select__caret.el-input__icon.el-icon-arrow-up {
line-height: 30px; line-height: 30px;
} }
</style> </style>

Loading…
Cancel
Save