You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
591 lines
15 KiB
591 lines
15 KiB
<template>
|
|
<!-- <div class="app-container"> -->
|
|
<div>
|
|
<el-breadcrumb separator="/" style="margin-bottom: 20px">
|
|
<el-breadcrumb-item
|
|
v-for="(item, index) in routeList"
|
|
:key="item + index"
|
|
:to="{ path: item.path }"
|
|
>
|
|
{{ item.routeName }}
|
|
</el-breadcrumb-item>
|
|
</el-breadcrumb>
|
|
|
|
<el-form
|
|
:model="queryParams"
|
|
ref="queryForm"
|
|
:inline="true"
|
|
v-show="showSearch"
|
|
label-width="68px"
|
|
>
|
|
<el-form-item label="堤防名称" prop="dikeName">
|
|
<el-select
|
|
v-model="queryParams.data.dikeId"
|
|
placeholder="请选择堤防名称"
|
|
style="width: 100%"
|
|
filterable
|
|
clearable
|
|
@change="handleQuery"
|
|
>
|
|
<el-option
|
|
v-for="dict in dikeNameOptions"
|
|
:key="dict.id"
|
|
:label="dict.dikeName"
|
|
:value="dict.id"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="计划完成时间" prop="planTime" label-width="96px">
|
|
<el-date-picker
|
|
clearable
|
|
size="small"
|
|
style="width: 100%"
|
|
v-model="queryParams.data.planTime"
|
|
type="date"
|
|
value-format="yyyy-MM-dd"
|
|
placeholder="选择计划完成时间"
|
|
@change="handleQuery"
|
|
>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<!-- <el-button
|
|
type="cyan"
|
|
icon="el-icon-search"
|
|
size="mini"
|
|
@click="handleQuery"
|
|
>搜索</el-button
|
|
> -->
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
>重置</el-button
|
|
>
|
|
</el-form-item>
|
|
</el-form>
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
<!-- <el-col :span="1.5">
|
|
<el-button
|
|
type="primary"
|
|
icon="el-icon-plus"
|
|
size="mini"
|
|
@click="handleAdd"
|
|
v-hasPermi="['sz:szrw:add']"
|
|
>新增</el-button
|
|
>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="success"
|
|
icon="el-icon-edit"
|
|
size="mini"
|
|
:disabled="single"
|
|
@click="handleUpdate"
|
|
v-hasPermi="['sz:szrw:edit']"
|
|
>修改</el-button
|
|
>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="danger"
|
|
icon="el-icon-delete"
|
|
size="mini"
|
|
:disabled="multiple"
|
|
@click="handleDelete"
|
|
v-hasPermi="['sz:szrw:remove']"
|
|
>删除</el-button
|
|
>
|
|
</el-col> -->
|
|
<right-toolbar
|
|
:showSearch.sync="showSearch"
|
|
@queryTable="getList"
|
|
></right-toolbar>
|
|
</el-row>
|
|
|
|
<el-table v-loading="loading" :data="szrwList">
|
|
<el-table-column
|
|
label="序号"
|
|
type="index"
|
|
width="50"
|
|
align="center"
|
|
fixed
|
|
/>
|
|
|
|
<el-table-column
|
|
label="堤防名称"
|
|
align="center"
|
|
prop="dikeName"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="行政划区"
|
|
align="center"
|
|
prop="adcd"
|
|
:formatter="$formatAdcd"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="堤防类型"
|
|
align="center"
|
|
prop="dikeType"
|
|
:formatter="sluiceTypeFormat"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="任务状态"
|
|
align="center"
|
|
prop="status"
|
|
:formatter="taskStatusFormat"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="计划完成时间"
|
|
align="center"
|
|
prop="planTime"
|
|
min-width="120"
|
|
>
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.planTime, "{y}-{m}-{d}") }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column
|
|
label="完成时间"
|
|
align="center"
|
|
prop="completionTime"
|
|
min-width="120"
|
|
>
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.completionTime, "{y}-{m}-{d}") }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
label="操作"
|
|
align="center"
|
|
class-name="small-padding fixed-width"
|
|
width="180"
|
|
fixed="right"
|
|
>
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
size="mini"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
@click="fillOut(scope.row)"
|
|
v-hasPermi="['sz:szrw:fillOut']"
|
|
>
|
|
{{
|
|
scope.row.status == "0"
|
|
? "填报"
|
|
: scope.row.status == "1"
|
|
? "审核中"
|
|
: "修改填报"
|
|
}}
|
|
</el-button>
|
|
<el-button
|
|
size="mini"
|
|
type="text"
|
|
icon="el-icon-edit"
|
|
@click="examine(scope.row)"
|
|
v-hasPermi="['sz:szrw:examine']"
|
|
>审核</el-button
|
|
>
|
|
<!-- <el-button
|
|
size="mini"
|
|
type="text"
|
|
icon="el-icon-delete"
|
|
@click="handleDelete(scope.row)"
|
|
v-hasPermi="['sz:szrw:remove']"
|
|
>删除</el-button
|
|
> -->
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
|
|
<pagination
|
|
v-show="total > 0"
|
|
:total="total"
|
|
:page.sync="queryParams.pageNum"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="getList"
|
|
/>
|
|
|
|
<!-- 添加或修改堤防鉴定任务关联对话框 -->
|
|
<el-dialog
|
|
:title="title"
|
|
:visible.sync="open"
|
|
width="1200px"
|
|
append-to-body
|
|
:close-on-click-modal="false"
|
|
@close="close"
|
|
>
|
|
<div class="noPass" v-if="this.form.status == '2'">
|
|
<div class="noPassTitle">审核不通过意见</div>
|
|
<div class="noPassContent">{{ this.form.remark }}</div>
|
|
</div>
|
|
<el-tabs v-model="activeName" style="margin-bottom: 20px" v-if="open">
|
|
<el-tab-pane label="安全鉴定信息" name="listBaseInfo" :lazy="true">
|
|
<listBaseInfo
|
|
ref="listBaseInfo"
|
|
:szrwId="szrwId"
|
|
:dikeName="dikeName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="安全检测" name="listSafetyDetection" :lazy="true">
|
|
<listSafetyDetection
|
|
:szrwId="szrwId"
|
|
:dikeName="dikeName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
<!-- <div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div> -->
|
|
</el-dialog>
|
|
|
|
<!-- 审核 -->
|
|
<el-dialog
|
|
:title="emTitle"
|
|
:visible.sync="emOpen"
|
|
width="1200px"
|
|
append-to-body
|
|
:close-on-click-modal="false"
|
|
@close="close"
|
|
>
|
|
<el-tabs v-model="emActiveName" style="margin-bottom: 20px" v-if="emOpen">
|
|
<el-tab-pane label="安全鉴定信息" name="listBaseInfoEm" :lazy="true">
|
|
<listBaseInfoEm
|
|
ref="listBaseInfoEm"
|
|
:szrwId="szrwId"
|
|
:dikeName="dikeName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="安全检测" name="listSafetyDetectionEm" :lazy="true">
|
|
<listSafetyDetectionEm
|
|
:szrwId="szrwId"
|
|
:dikeName="dikeName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<!-- <el-button type="primary" @click="pass">通 过</el-button>
|
|
<el-button @click="noPass">不通过</el-button> -->
|
|
|
|
<!-- 注销审核通过 -->
|
|
<el-popconfirm
|
|
icon="el-icon-info"
|
|
icon-color="green"
|
|
title="确定通过吗,请核实对好数据"
|
|
@confirm="pass"
|
|
>
|
|
<el-button slot="reference" type="primary">通 过</el-button>
|
|
</el-popconfirm>
|
|
<!-- 注销审核不通过 -->
|
|
<el-popover
|
|
placement="top"
|
|
width="300"
|
|
v-model="visible"
|
|
style="margin: 0 10px"
|
|
>
|
|
<el-input
|
|
v-model="remark"
|
|
placeholder="请输入驳回意见"
|
|
type="textarea"
|
|
style="margin-bottom: 10px"
|
|
></el-input>
|
|
<div style="text-align: right; margin: 0">
|
|
<el-button type="primary" size="mini" @click="noPass">
|
|
确定
|
|
</el-button>
|
|
<el-button size="mini" type="text" @click="visible = false">
|
|
取消
|
|
</el-button>
|
|
</div>
|
|
|
|
<el-button slot="reference" type="warning"> 不通过 </el-button>
|
|
</el-popover>
|
|
</div>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { listSyxjl, updateSzrw } from "@/api/yg/dike/szrw";
|
|
import { listJbxx, getJbxx } from "@/api/yg/dike/jbxx";
|
|
import listBaseInfo from "./components/listBaseInfo.vue";
|
|
import listSafetyDetection from "./components/listSafetyDetection.vue";
|
|
|
|
import listBaseInfoEm from "./components/listBaseInfo_em.vue";
|
|
import listSafetyDetectionEm from "./components/listSafetyDetection_em.vue";
|
|
|
|
export default {
|
|
name: "Szrw",
|
|
components: {
|
|
listBaseInfo,
|
|
listSafetyDetection,
|
|
listBaseInfoEm,
|
|
listSafetyDetectionEm,
|
|
},
|
|
data() {
|
|
return {
|
|
// 面包屑,路由信息
|
|
routeList: [
|
|
{
|
|
path: "/dike/safetyManage/safetyAppraisal/list",
|
|
routeName: "安全鉴定清单",
|
|
},
|
|
],
|
|
activeName: "listBaseInfo",
|
|
emActiveName: "listBaseInfoEm",
|
|
// 遮罩层
|
|
loading: true,
|
|
// 选中数组
|
|
ids: [],
|
|
// 非单个禁用
|
|
single: true,
|
|
// 非多个禁用
|
|
multiple: true,
|
|
// 显示搜索条件
|
|
showSearch: true,
|
|
// 总条数
|
|
total: 0,
|
|
// 堤防鉴定任务关联表格数据
|
|
szrwList: [],
|
|
// 弹出层标题
|
|
title: "",
|
|
emTitle: "",
|
|
// 是否显示弹出层
|
|
open: false,
|
|
emOpen: false,
|
|
// 堤防类型字典
|
|
sluiceTypeOptions: [],
|
|
taskStatusOptions: [],
|
|
// 堤防项目
|
|
dikeNameOptions: [],
|
|
// 查询参数
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
ids: null,
|
|
data: {
|
|
dikeId: null,
|
|
taskId: null,
|
|
planTime: null,
|
|
completionTime: null,
|
|
createUid: null,
|
|
updateUid: null,
|
|
owerDept: null,
|
|
relation: null,
|
|
},
|
|
// 排序方式
|
|
params: {
|
|
// 按哪个字段排序
|
|
orderBy: "create_time",
|
|
// desc降序,升序asc
|
|
sortBy: "desc",
|
|
},
|
|
},
|
|
// 表单参数
|
|
form: {},
|
|
// 表单校验
|
|
rules: {},
|
|
szrwId: "",
|
|
visible: false,
|
|
remark: "",
|
|
};
|
|
},
|
|
created() {
|
|
this.getList();
|
|
listJbxx({ data: {} }).then((res) => {
|
|
// console.log(111, res);
|
|
this.dikeNameOptions = res.records;
|
|
});
|
|
this.getDicts("sluice_type").then((response) => {
|
|
this.sluiceTypeOptions = response.data;
|
|
});
|
|
this.getDicts("task_status").then((response) => {
|
|
this.taskStatusOptions = response.data;
|
|
console.log(856464, this.taskStatusOptions);
|
|
});
|
|
},
|
|
methods: {
|
|
pass() {
|
|
this.form.status = "3";
|
|
updateSzrw(this.form).then((response) => {
|
|
if (response.code === 200) {
|
|
this.msgSuccess("审核通过成功");
|
|
this.emOpen = false;
|
|
this.getList();
|
|
}
|
|
});
|
|
},
|
|
noPass() {
|
|
this.form.status = "2";
|
|
this.form.remark = this.remark;
|
|
updateSzrw(this.form).then((response) => {
|
|
if (response.code === 200) {
|
|
this.msgSuccess("不通过成功");
|
|
this.emOpen = false;
|
|
this.visible = false;
|
|
this.remark = "";
|
|
this.getList();
|
|
}
|
|
});
|
|
},
|
|
close() {
|
|
this.activeName = "listBaseInfo";
|
|
this.emActiveName = "listBaseInfoEm";
|
|
this.getList();
|
|
},
|
|
// 堤防类型字典翻译
|
|
sluiceTypeFormat(row, column) {
|
|
return this.selectDictLabel(this.sluiceTypeOptions, row.dikeType);
|
|
},
|
|
taskStatusFormat(row, column) {
|
|
return this.selectDictLabel(this.taskStatusOptions, row.status);
|
|
},
|
|
/** 查询堤防鉴定任务关联列表 */
|
|
getList() {
|
|
this.loading = true;
|
|
listSyxjl(this.queryParams).then((response) => {
|
|
this.szrwList = response.records;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
});
|
|
},
|
|
// 取消按钮
|
|
cancel() {
|
|
this.open = false;
|
|
// this.reset();
|
|
},
|
|
// 表单重置
|
|
reset() {
|
|
this.form = {
|
|
adcd: null,
|
|
completionTime: null,
|
|
planTime: null,
|
|
status: null,
|
|
dikeName: null,
|
|
dikeType: null,
|
|
};
|
|
this.resetForm("form");
|
|
},
|
|
// 查询表单重置
|
|
resetQueryForm() {
|
|
this.queryParams = {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
data: {
|
|
id: null,
|
|
dikeId: null,
|
|
taskId: null,
|
|
planTime: null,
|
|
completionTime: null,
|
|
createUid: null,
|
|
updateUid: null,
|
|
createTime: null,
|
|
updateTime: null,
|
|
owerDept: null,
|
|
remark: null,
|
|
relation: null,
|
|
},
|
|
params: {
|
|
// 按哪个字段排序
|
|
orderBy: "create_time",
|
|
// desc降序,升序asc
|
|
sortBy: "desc",
|
|
},
|
|
};
|
|
this.resetForm("form");
|
|
},
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
this.queryParams.pageNum = 1;
|
|
this.getList();
|
|
},
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
this.resetQueryForm();
|
|
this.handleQuery();
|
|
},
|
|
|
|
/** 填按钮操作 */
|
|
fillOut(row) {
|
|
// this.reset();
|
|
this.form = row;
|
|
this.szrwId = row.id;
|
|
this.dikeName = row.dikeName;
|
|
this.open = true;
|
|
this.title = "填报安全鉴定信息";
|
|
// getSzrw(id).then((response) => {
|
|
// this.form = response.data;
|
|
// this.open = true;
|
|
// this.title = "修改堤防鉴定任务关联";
|
|
// });
|
|
},
|
|
examine(row) {
|
|
this.form = row;
|
|
this.szrwId = row.id;
|
|
this.dikeName = row.dikeName;
|
|
this.emOpen = true;
|
|
this.emTitle = "审核安全鉴定信息";
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
@import "@/assets/css/dialog.scss";
|
|
::v-deep {
|
|
.el-dialog {
|
|
margin-top: 2vh !important;
|
|
height: 900px;
|
|
overflow: auto;
|
|
position: relative;
|
|
.el-dialog__footer {
|
|
border-top: 2px solid #e6ebf5;
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
width: 100%;
|
|
justify-content: center;
|
|
.dialog-footer {
|
|
background: #f5f7fa;
|
|
width: 100%;
|
|
text-align: center;
|
|
padding: 10px 0;
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
.noPass {
|
|
// padding: 10px 0;
|
|
// display: inline;
|
|
border: 1px solid #ccc;
|
|
display: flex;
|
|
// height: 50px;
|
|
margin-bottom: 20px;
|
|
|
|
.noPassTitle {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px 10px;
|
|
background: #f0f0f0;
|
|
border-right: 1px solid #ccc;
|
|
}
|
|
.noPassContent {
|
|
flex: 1;
|
|
padding: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|