刘翔宇-旅管家 3 years ago
parent 030ce888cc
commit 74b772169f

@ -6,14 +6,16 @@
<div slot="content"></div> <div slot="content"></div>
<slot> <slot>
<div> <div>
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword" placeholder="关键字搜索" /> <Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword"
placeholder="关键字搜索" />
<el-select class="vm10" filterable v-model="searchFields.feedback_department_id" placeholder="请选择反馈科室"> <el-select class="vm10" filterable v-model="searchFields.feedback_department_id" placeholder="请选择反馈科室">
<el-option v-for="item in selects.sdepartments" :key="item.id" :label="item.name" :value="item.id"> <el-option v-for="item in selects.sdepartments" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-select class="vm10" @change="showSearchAskContentChange" filterable v-model="searchFields.ask_type_id" placeholder="请选择类型"> <el-select class="vm10" @change="showSearchAskContentChange" filterable v-model="searchFields.ask_type_id"
placeholder="请选择类型">
<el-option v-for="item in selects.sask_types" :key="item.id" :label="item.value" :value="item.id"> <el-option v-for="item in selects.sask_types" :key="item.id" :label="item.value" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
@ -40,14 +42,14 @@
:label="column.title" :width="column.width" :fixed="column.fixed"> :label="column.title" :width="column.width" :fixed="column.fixed">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="column.type=='opt'"> <div v-if="column.type=='opt'">
<Button ghost size="small" @click="edit(scope.row)" type="primary" <Button ghost size="small" @click="edit(scope.row,1)" type="primary"
style="margin-left: 10px;" v-if="scope.row['status']==3">查看</Button> style="margin-left: 10px;">查看</Button>
<Button v-if="scope.row['status']==1" ghost size="small" @click="show(scope.row)" type="primary" <Button v-if="scope.row['status']==1" 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" ghost size="small" @click="edit(scope.row)" type="primary" <Button v-if="scope.row['status']==1" ghost size="small" @click="edit(scope.row,2)" type="primary"
style="margin-left: 10px;">审核</Button> style="margin-left: 10px;">审核</Button>
<Button v-if="scope.row['status']==2" ghost size="small" @click="edit(scope.row)" type="primary" <Button v-if="scope.row['status']==2" ghost size="small" @click="edit(scope.row,2)" type="primary"
style="margin-left: 10px;">办结</Button> style="margin-left: 10px;">办结</Button>
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button> <Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
</div> </div>
@ -88,9 +90,9 @@
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
<el-form-item label="类型" prop="ask_type_id"> <el-form-item label="类型" prop="ask_type_id">
<el-select @change="showAskContentChange" class="width100" v-model="form.ask_type_id" placeholder="请选择类型"> <el-select @change="showAskContentChange" class="width100" v-model="form.ask_type_id"
<el-option v-for="item in selects.ask_types" :key="item.id" :label="item.value" placeholder="请选择类型">
:value="item.id"> <el-option v-for="item in selects.ask_types" :key="item.id" :label="item.value" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -126,10 +128,9 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="附件" prop="common_inspection_files"> <el-form-item label="附件" prop="common_inspection_files">
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="commonInspectionFiles" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card"
ref="pictureUploads" :auto-upload="true" :data="uploadOther" :file-list="commonInspectionFiles" ref="pictureUploads" :auto-upload="true" :data="uploadOther"
:on-success="handlesuccess" :on-success="handlesuccess" :on-error="handleError">
:on-error="handleError">
<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}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt=""> <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
@ -150,8 +151,7 @@
<el-col :span="24"> <el-col :span="24">
<el-form-item label="反馈科室" prop="feedback_department_id"> <el-form-item label="反馈科室" prop="feedback_department_id">
<el-select filterable class="width100" v-model="form.feedback_department_id" placeholder="请选择反馈科室"> <el-select filterable class="width100" v-model="form.feedback_department_id" placeholder="请选择反馈科室">
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name" <el-option v-for="item in selects.departments" :key="item.id" :label="item.name" :value="item.id">
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -181,11 +181,12 @@
<el-dialog class="common-dialog" :title="detailtitle" :visible.sync="dialogFormVisible" width="60%"> <el-dialog class="common-dialog" :title="detailtitle" :visible.sync="dialogFormVisible" width="60%">
<div class="dialogConcent"> <div class="dialogConcent">
<el-scrollbar style="flex: 1"> <el-scrollbar style="flex: 1">
<el-form :model="formdetail" :rules="rules" ref="formdetail" label-position="right" :label-width="formLabelWidth"> <el-form :model="formdetail" :rules="rules" ref="formdetail" label-position="right"
:label-width="formLabelWidth">
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
<el-form-item label="所属道路" prop="road_id"> <el-form-item label="所属道路" prop="road_id">
<el-input disabled v-model="form.road_id" placeholder="所属道路" autocomplete="off"></el-input> <el-input disabled v-model="roadName" placeholder="所属道路" autocomplete="off"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -207,7 +208,8 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="地址" prop="address"> <el-form-item label="地址" prop="address">
<avue-input-map :disabled="mapdisabled" :params="mapparams" placeholder="请选择地图" v-model="mapform" ></avue-input-map> <avue-input-map :disabled="mapdisabled" :params="mapparams" placeholder="请选择地图" v-model="mapform">
</avue-input-map>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -230,9 +232,8 @@
<!-- <img v-if="commonInspectionFilesCheck.length>0" v-for="item in commonInspectionFilesCheck" :src="item.files.url" alt=""> --> <!-- <img v-if="commonInspectionFilesCheck.length>0" v-for="item in commonInspectionFilesCheck" :src="item.files.url" alt=""> -->
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="commonInspectionFilesCheck" <el-upload multiple action="/api/admin/upload-file" list-type="picture-card"
ref="pictureUploads" :file-list="commonInspectionFilesCheck" ref="pictureUploads">
>
<div slot="file" slot-scope="{file}"> <div slot="file" slot-scope="{file}">
<img class="el-upload-list__item-thumbnail" :src="file.url" alt=""> <img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
<span class="el-upload-list__item-actions"> <span class="el-upload-list__item-actions">
@ -248,14 +249,15 @@
<el-col :span="24" v-if="form.status!=3"> <el-col :span="24" v-if="form.status!=3">
<el-form-item label="备注" prop="type_id"> <el-form-item label="备注" prop="type_id">
<el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注" autocomplete="off"></el-input> <el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注" autocomplete="off">
</el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="form.status==1"> <el-col :span="24" v-if="form.status==1">
<el-form-item label="反馈科室" prop="feedback_department_id"> <el-form-item label="反馈科室" prop="feedback_department_id">
<el-select filterable class="width100" v-model="formdetail.feedback_department_id" placeholder="请选择反馈科室"> <el-select filterable class="width100" v-model="formdetail.feedback_department_id"
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name" placeholder="请选择反馈科室">
:value="item.id"> <el-option v-for="item in selects.departments" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -271,27 +273,16 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24" v-if="form.status==3"> <el-col :span="24" v-if="showType==1">
<el-form-item label="处理日志" prop="" > <el-form-item label="处理日志" prop="" >
</el-form-item> </el-form-item>
<el-table <el-table :data="form.common_inspection_logs" style="width: 90%;margin: 0 auto;">
:data="form.common_inspection_logs" <el-table-column prop="created_at" label="日期" width="180">
style="width: 90%;margin: 0 auto;">
<el-table-column
prop="created_at"
label="日期"
width="180">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="content" label="内容">
prop="content"
label="内容"
>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="admin_id" label="操作人" width="180">
prop="admin_id"
label="操作人"
width="180">
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -306,10 +297,12 @@
</el-scrollbar> </el-scrollbar>
</div> </div>
<div slot="footer" class="dialog-footer" v-if="form.status!=3"> <div slot="footer" class="dialog-footer" v-if="form.status!=3&&showType!=1">
<el-button @click="resetForm('formdetail')"> </el-button> <el-button @click="resetForm('formdetail')"> </el-button>
<el-button v-if="form.status==1" type="primary" v-preventReClick @click="submitForm('formdetail','2')"></el-button> <el-button v-if="form.status==1" type="primary" v-preventReClick @click="submitForm('formdetail','2')">
<el-button v-if="form.status==2" type="primary" v-preventReClick @click="submitForm('formdetail','3')"></el-button> </el-button>
<el-button v-if="form.status==2" type="primary" v-preventReClick @click="submitForm('formdetail','3')">
</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -332,7 +325,9 @@
getparameteritem, getparameteritem,
getparameter getparameter
} from "../../api/system/dictionary.js" } from "../../api/system/dictionary.js"
import {listCommondepartment} from "../../api/common.js" import {
listCommondepartment
} from "../../api/common.js"
import LxHeader from "@/components/LxHeader/index.vue"; import LxHeader from "@/components/LxHeader/index.vue";
import AvueMap from 'avue-plugin-map' import AvueMap from 'avue-plugin-map'
@ -343,7 +338,7 @@
}, },
data() { data() {
return { return {
showType: 2, //1: 2:
tableHeight: 0, tableHeight: 0,
dialogFormVisible: false, dialogFormVisible: false,
showdialogFormVisible: false, showdialogFormVisible: false,
@ -623,11 +618,13 @@
// this.$set(that.form,res); // this.$set(that.form,res);
that.showAskContent(result.ask_type_id); that.showAskContent(result.ask_type_id);
if (result.status == 2) { if (result.status == 2) {
this.detailtitle = '通用巡查办结' that.detailtitle = '通用巡查办结'
} }
if (result.status == 1) { if (result.status == 1) {
this.detailtitle = '通用巡查审核' that.detailtitle = '通用巡查审核'
} }
that.detailtitle = that.isview == 1 ? "通用巡查查看" : that.detailtitle
// that.form = result; // that.form = result;
that.mapform = [result.longitude, result.latitude, result.address] that.mapform = [result.longitude, result.latitude, result.address]
@ -655,12 +652,13 @@
}) })
}, },
edit(obj, isnew) { edit(obj, isview) {
this.form = this.$options.data().form; this.form = this.$options.data().form;
this.clientHeight = document.documentElement.clientHeight - 84 - 110; this.clientHeight = document.documentElement.clientHeight - 84 - 110;
this.dialogFormVisible = true; this.dialogFormVisible = true;
this.showdialogFormVisible = false; this.showdialogFormVisible = false;
this.mapdisabled = true; this.mapdisabled = true;
this.showType = isview;
if (obj) { if (obj) {
this.info(obj); this.info(obj);
} }
@ -892,18 +890,22 @@
.dialogConcent { .dialogConcent {
overflow-y: auto; overflow-y: auto;
} }
.width100 { .width100 {
width: 100%; width: 100%;
} }
.common_inspection_files_check .el-upload.el-upload--picture-card { .common_inspection_files_check .el-upload.el-upload--picture-card {
display: none; display: none;
} }
.vm10 { .vm10 {
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px; margin-bottom: 10px;
height: 32px; height: 32px;
vertical-align: bottom; vertical-align: bottom;
} }
.vm10 input { .vm10 input {
height: 32px; height: 32px;
vertical-align: middle; vertical-align: middle;
@ -912,9 +914,12 @@
.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;
} }
.vm10 .el-input__icon.el-range__icon.el-icon-date,.vm10 .el-range-separator{
.vm10 .el-input__icon.el-range__icon.el-icon-date,
.vm10 .el-range-separator {
line-height: 25px; line-height: 25px;
} }
.selerchcontent button { .selerchcontent button {
vertical-align: top; vertical-align: top;
} }

Loading…
Cancel
Save