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.
451 lines
11 KiB
451 lines
11 KiB
<template>
|
|
<!-- <div class="app-container"> -->
|
|
<div>
|
|
<el-form
|
|
:model="queryParams"
|
|
ref="queryForm"
|
|
:inline="true"
|
|
v-show="showSearch"
|
|
label-width="68px"
|
|
>
|
|
<el-form-item label="水闸名称" prop="wagaName">
|
|
<el-select
|
|
v-model="queryParams.data.wagaId"
|
|
placeholder="请选择水闸名称"
|
|
style="width: 100%"
|
|
filterable
|
|
clearable
|
|
@change="handleQuery"
|
|
>
|
|
<el-option
|
|
v-for="dict in wagaNameOptions"
|
|
:key="dict.id"
|
|
:label="dict.wagaName"
|
|
: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="wagaName"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="行政划区"
|
|
align="center"
|
|
prop="adcd"
|
|
:formatter="$formatAdcd"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="水闸类型"
|
|
align="center"
|
|
prop="wagaType"
|
|
:formatter="sluiceTypeFormat"
|
|
min-width="120"
|
|
/>
|
|
<el-table-column
|
|
label="任务状态"
|
|
align="center"
|
|
prop="status"
|
|
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']"
|
|
>填报</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"
|
|
>
|
|
<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"
|
|
:wagaName="wagaName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="安全检测" name="listSafetyDetection" :lazy="true">
|
|
<listSafetyDetection
|
|
:szrwId="szrwId"
|
|
:wagaName="wagaName"
|
|
@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"
|
|
:wagaName="wagaName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="安全检测" name="listSafetyDetectionEm" :lazy="true">
|
|
<listSafetyDetectionEm
|
|
:szrwId="szrwId"
|
|
:wagaName="wagaName"
|
|
@cancelParent="cancel"
|
|
/>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary">通 过66</el-button>
|
|
<el-button>不通过</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { listSyxjl } from "@/api/yg/szrw";
|
|
import { listJbxx, getJbxx } from "@/api/yg/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 {
|
|
activeName: "listBaseInfo",
|
|
emActiveName: "listBaseInfoEm",
|
|
// 遮罩层
|
|
loading: true,
|
|
// 选中数组
|
|
ids: [],
|
|
// 非单个禁用
|
|
single: true,
|
|
// 非多个禁用
|
|
multiple: true,
|
|
// 显示搜索条件
|
|
showSearch: true,
|
|
// 总条数
|
|
total: 0,
|
|
// 水闸鉴定任务关联表格数据
|
|
szrwList: [],
|
|
// 弹出层标题
|
|
title: "",
|
|
emTitle: "",
|
|
// 是否显示弹出层
|
|
open: false,
|
|
emOpen: false,
|
|
// 水闸类型字典
|
|
sluiceTypeOptions: [],
|
|
// 水闸项目
|
|
wagaNameOptions: [],
|
|
// 查询参数
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
ids: null,
|
|
data: {
|
|
wagaId: 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: "",
|
|
};
|
|
},
|
|
created() {
|
|
this.getList();
|
|
listJbxx({}).then((res) => {
|
|
// console.log(111, res);
|
|
this.wagaNameOptions = res.records;
|
|
});
|
|
this.getDicts("sluice_type").then((response) => {
|
|
this.sluiceTypeOptions = response.data;
|
|
});
|
|
},
|
|
methods: {
|
|
close() {
|
|
this.activeName = "listBaseInfo";
|
|
this.emActiveName = "listBaseInfoEm";
|
|
},
|
|
// 水闸类型字典翻译
|
|
sluiceTypeFormat(row, column) {
|
|
return this.selectDictLabel(this.sluiceTypeOptions, row.wagaType);
|
|
},
|
|
/** 查询水闸鉴定任务关联列表 */
|
|
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,
|
|
wagaName: null,
|
|
wagaType: null,
|
|
};
|
|
this.resetForm("form");
|
|
},
|
|
// 查询表单重置
|
|
resetQueryForm() {
|
|
this.queryParams = {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
data: {
|
|
id: null,
|
|
wagaId: 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.szrwId = row.id;
|
|
this.wagaName = row.wagaName;
|
|
this.open = true;
|
|
this.title = "填报安全鉴定信息";
|
|
// getSzrw(id).then((response) => {
|
|
// this.form = response.data;
|
|
// this.open = true;
|
|
// this.title = "修改水闸鉴定任务关联";
|
|
// });
|
|
},
|
|
examine(row) {
|
|
this.szrwId = row.id;
|
|
this.wagaName = row.wagaName;
|
|
this.emOpen = true;
|
|
this.emTitle = "审核安全鉴定信息";
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
@import "@/assets/css/dialog.scss";
|
|
::v-deep {
|
|
.el-dialog {
|
|
margin-top: 8vh !important;
|
|
height: 800px;
|
|
overflow: auto;
|
|
}
|
|
}
|
|
</style>
|
|
|