Browse Source
# Conflicts: # jwtech-admin-page/src/views/building/projectInfo/projectProcess/index.vue # jwtech-admin-page/src/views/building/projectInfo/projectProcess/preparationConstruction/index.vue # jwtech-admin-page/src/views/building/projectInfo/projectProcess/preparationConstruction/options/startUpDocument.vue # jwtech-admin-page/src/views/marketSupervision/enterpriseInformation/options/index.vueInitial-inspection
34 changed files with 6167 additions and 292 deletions
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询 风险隐患台账列表
|
||||
|
export function listLedger(query) { |
||||
|
return request({ |
||||
|
url: '/build/ledger/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询 风险隐患台账详细
|
||||
|
export function getLedger(id) { |
||||
|
return request({ |
||||
|
url: '/build/ledger/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增 风险隐患台账
|
||||
|
export function addLedger(data) { |
||||
|
return request({ |
||||
|
url: '/build/ledger', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改 风险隐患台账
|
||||
|
export function updateLedger(data) { |
||||
|
return request({ |
||||
|
url: '/build/ledger', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除 风险隐患台账
|
||||
|
export function delLedger(id) { |
||||
|
return request({ |
||||
|
url: '/build/ledger/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出 风险隐患台账
|
||||
|
export function exportLedger(query) { |
||||
|
return request({ |
||||
|
url: '/build/ledger/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询工程目标信息列表
|
||||
|
export function listObjective(query) { |
||||
|
return request({ |
||||
|
url: '/build/objective/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询工程目标信息详细
|
||||
|
export function getObjective(id) { |
||||
|
return request({ |
||||
|
url: '/build/objective/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增工程目标信息
|
||||
|
export function addObjective(data) { |
||||
|
return request({ |
||||
|
url: '/build/objective', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改工程目标信息
|
||||
|
export function updateObjective(data) { |
||||
|
return request({ |
||||
|
url: '/build/objective', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除工程目标信息
|
||||
|
export function delObjective(id) { |
||||
|
return request({ |
||||
|
url: '/build/objective/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出工程目标信息
|
||||
|
export function exportObjective(query) { |
||||
|
return request({ |
||||
|
url: '/build/objective/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询隐患整改台账列表
|
||||
|
export function listRectification(query) { |
||||
|
return request({ |
||||
|
url: '/build/rectification/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询隐患整改台账详细
|
||||
|
export function getRectification(id) { |
||||
|
return request({ |
||||
|
url: '/build/rectification/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增隐患整改台账
|
||||
|
export function addRectification(data) { |
||||
|
return request({ |
||||
|
url: '/build/rectification', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改隐患整改台账
|
||||
|
export function updateRectification(data) { |
||||
|
return request({ |
||||
|
url: '/build/rectification', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除隐患整改台账
|
||||
|
export function delRectification(id) { |
||||
|
return request({ |
||||
|
url: '/build/rectification/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出隐患整改台账
|
||||
|
export function exportRectification(query) { |
||||
|
return request({ |
||||
|
url: '/build/rectification/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询资产状况信息列表
|
||||
|
export function listAsset(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询资产状况信息详细
|
||||
|
export function getAsset(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增资产状况信息
|
||||
|
export function addAsset(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改资产状况信息
|
||||
|
export function updateAsset(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除资产状况信息
|
||||
|
export function delAsset(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出资产状况信息
|
||||
|
export function exportAsset(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/asset/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询人员不良行为信息列表
|
||||
|
export function listBadBehavior(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询人员不良行为信息详细
|
||||
|
export function getBadBehavior(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增人员不良行为信息
|
||||
|
export function addBadBehavior(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改人员不良行为信息
|
||||
|
export function updateBadBehavior(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除人员不良行为信息
|
||||
|
export function delBadBehavior(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出人员不良行为信息
|
||||
|
export function exportBadBehavior(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/badBehavior/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
|
||||
|
// 查询人员良好行为信息列表
|
||||
|
export function listGoodBehavior(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior/list', |
||||
|
method: 'post', |
||||
|
data: query |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询人员良好行为信息详细
|
||||
|
export function getGoodBehavior(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior/' + id, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 新增人员良好行为信息
|
||||
|
export function addGoodBehavior(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior', |
||||
|
method: 'post', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 修改人员良好行为信息
|
||||
|
export function updateGoodBehavior(data) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior', |
||||
|
method: 'put', |
||||
|
data: data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 删除人员良好行为信息
|
||||
|
export function delGoodBehavior(id) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior/' + id, |
||||
|
method: 'delete' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 导出人员良好行为信息
|
||||
|
export function exportGoodBehavior(query) { |
||||
|
return request({ |
||||
|
url: '/enterprise/goodBehavior/export', |
||||
|
method: 'get', |
||||
|
params: query |
||||
|
}) |
||||
|
} |
@ -0,0 +1,544 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<!-- <el-form |
||||
|
:model="queryParams" |
||||
|
ref="queryForm" |
||||
|
:inline="true" |
||||
|
v-show="showSearch" |
||||
|
> |
||||
|
<el-form-item label="项目名称" prop="sctionName"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.sctionName" |
||||
|
placeholder="请输入项目名称" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="项目名称" prop="proNo"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.proNo" |
||||
|
placeholder="请输入项目名称" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="安全目标" prop="safetyObjectives"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.safetyObjectives" |
||||
|
placeholder="请输入安全目标" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="附件" prop="attachment"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.attachment" |
||||
|
placeholder="请输入附件" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</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="['build:objective: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="['build:objective: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="['build:objective:remove']" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<!-- <el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="warning" |
||||
|
icon="el-icon-download" |
||||
|
size="mini" |
||||
|
@click="handleExport" |
||||
|
v-hasPermi="['build:objective:export']" |
||||
|
>导出</el-button |
||||
|
> |
||||
|
</el-col> --> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table |
||||
|
v-loading="loading" |
||||
|
:data="objectiveList" |
||||
|
@selection-change="handleSelectionChange" |
||||
|
> |
||||
|
<el-table-column type="selection" width="55" align="center" fixed /> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="50" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="项目名称" |
||||
|
align="center" |
||||
|
prop="sctionName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="安全目标" |
||||
|
align="center" |
||||
|
prop="safetyObjectives" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="附件" |
||||
|
align="center" |
||||
|
prop="attachment" |
||||
|
min-width="150" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<div |
||||
|
v-for="(item, index) in JSON.parse(scope.row.attachment)" |
||||
|
:key="item + index" |
||||
|
> |
||||
|
<i class="el-icon-document"></i> |
||||
|
{{ item.name }} |
||||
|
<i |
||||
|
class="el-icon-download" |
||||
|
@click="downloadFile2(scope, index)" |
||||
|
style="cursor: pointer" |
||||
|
></i> |
||||
|
</div> |
||||
|
</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="handleUpdate(scope.row)" |
||||
|
v-hasPermi="['build:objective:edit']" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
v-hasPermi="['build:objective: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" |
||||
|
> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
||||
|
<el-form-item label="项目名称" prop="sctionName"> |
||||
|
<el-input v-model="form.sctionName" placeholder="请输入项目名称" /> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="安全目标" prop="safetyObjectives"> |
||||
|
<el-input |
||||
|
v-model="form.safetyObjectives" |
||||
|
placeholder="请输入安全目标" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="附件" prop="attachment"> |
||||
|
<el-upload |
||||
|
class="upload-demo" |
||||
|
action="thinking/common/upload" |
||||
|
:headers="headers" |
||||
|
:before-upload="(file) => $fileBeforeUpload(file, 'fileList')" |
||||
|
:on-preview="handlePreview" |
||||
|
:on-remove="handleRemove1" |
||||
|
:before-remove="beforeRemove" |
||||
|
multiple |
||||
|
:on-success="submitUpload1" |
||||
|
:file-list="fileList" |
||||
|
> |
||||
|
<el-button size="small" type="primary" plain> |
||||
|
<i class="el-icon-upload el-icon--right"></i> |
||||
|
点击上传 |
||||
|
</el-button> |
||||
|
<div slot="tip" class="el-upload__tip"> |
||||
|
支持jpg/png/pdf/word/excel文件等,不超过200M |
||||
|
</div> |
||||
|
</el-upload> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listObjective, |
||||
|
getObjective, |
||||
|
delObjective, |
||||
|
addObjective, |
||||
|
updateObjective, |
||||
|
exportObjective, |
||||
|
} from "@/api/build/objective"; |
||||
|
import { getToken } from "@/utils/auth"; |
||||
|
|
||||
|
export default { |
||||
|
name: "Objective", |
||||
|
props: ["proNo", "proCode"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 工程目标信息表格数据 |
||||
|
objectiveList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
sctionName: null, |
||||
|
proNo: null, |
||||
|
safetyObjectives: null, |
||||
|
attachment: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: {}, |
||||
|
fileList: [], |
||||
|
// 请求头 |
||||
|
headers: { |
||||
|
jianwei: "jwtech " + getToken(), |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
/** 查询工程目标信息列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.proNo = this.proNo; |
||||
|
listObjective(this.queryParams).then((response) => { |
||||
|
this.objectiveList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.fileList = []; |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
sctionName: null, |
||||
|
proNo: null, |
||||
|
safetyObjectives: null, |
||||
|
attachment: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
id: null, |
||||
|
sctionName: null, |
||||
|
proNo: null, |
||||
|
safetyObjectives: null, |
||||
|
attachment: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加工程目标信息"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getObjective(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
if (this.form.attachment) { |
||||
|
this.dynamicTags1 = JSON.parse(this.form.attachment); |
||||
|
} |
||||
|
this.open = true; |
||||
|
this.title = "修改工程目标信息"; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.form.attachment = this.fileList.length |
||||
|
? JSON.stringify(this.fileList) |
||||
|
: null; |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.proNo = this.proNo; |
||||
|
if (this.form.id != null) { |
||||
|
updateObjective(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addObjective(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delObjective(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
/** 导出按钮操作 */ |
||||
|
handleExport() { |
||||
|
const queryParams = this.queryParams; |
||||
|
let message = "是否确认导出所有的数据项?"; |
||||
|
if (this.ids) { |
||||
|
message = "是否确认导出选中的数据项?"; |
||||
|
queryParams.ids = this.ids; |
||||
|
} |
||||
|
this.$confirm(message, "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return exportObjective(queryParams); |
||||
|
}) |
||||
|
.then((response) => { |
||||
|
this.downloadFile(response, true, response.msg); |
||||
|
// this.download(response.msg); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
}, |
||||
|
submitUpload1(_, fileList) { |
||||
|
this.fileList.push({ |
||||
|
name: fileList.name, |
||||
|
fileName: fileList.response.fileName, |
||||
|
url: fileList.response.url, |
||||
|
uid: fileList.uid, |
||||
|
}); |
||||
|
}, |
||||
|
handleRemove1(file, fileList) { |
||||
|
let index = this.fileList.findIndex((item) => item.uid === file.uid); |
||||
|
// 删除文件 |
||||
|
this.fileList.splice(index, 1); |
||||
|
}, |
||||
|
downloadFile2(info, index) { |
||||
|
console.log(info); |
||||
|
this.handlePreview(info); |
||||
|
}, |
||||
|
// 点击预览的文件进行下载 |
||||
|
handlePreview(file) { |
||||
|
getFileStream({ fileName: file.fileName }).then((res) => { |
||||
|
const blob = new Blob([res], { |
||||
|
// type类型后端返回来的数据中会有,根据自己实际进行修改 |
||||
|
// 表格下载为 application/xlsx,压缩包为 application/zip等, |
||||
|
type: "application/xlsx", |
||||
|
}); //excel,pdf等 |
||||
|
const href = URL.createObjectURL(blob); //创建新的URL表示指定的blob对象 |
||||
|
const a = document.createElement("a"); //创建a标签 |
||||
|
a.style.display = "none"; |
||||
|
a.href = href; // 指定下载链接 |
||||
|
a.download = file.name; //指定下载文件名 |
||||
|
a.click(); //触发下载 |
||||
|
URL.revokeObjectURL(a.href); //释放URL对象 |
||||
|
}); |
||||
|
}, |
||||
|
beforeRemove(file, fileList) { |
||||
|
return this.$confirm(`确定移除 ${file.name}?`); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
//::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
//} |
||||
|
</style> |
@ -0,0 +1,20 @@ |
|||||
|
<template> |
||||
|
<div> |
||||
|
<riskAndHiddenDangerLedger :proNo="proNo" :proCode="proCode" /> |
||||
|
<hiddenDangerRectificationLedger :proNo="proNo" :proCode="proCode" /> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import riskAndHiddenDangerLedger from "./riskAndHiddenDangerLedger.vue"; |
||||
|
import hiddenDangerRectificationLedger from "./hiddenDangerRectificationLedger.vue"; |
||||
|
|
||||
|
export default { |
||||
|
name: "DangerLedger", |
||||
|
props: ["proNo", "proCode"], |
||||
|
components: { riskAndHiddenDangerLedger, hiddenDangerRectificationLedger }, |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,728 @@ |
|||||
|
<template> |
||||
|
<!-- 竣工验收--> |
||||
|
<div class="app-container"> |
||||
|
<el-form |
||||
|
:model="queryParams" |
||||
|
ref="queryForm" |
||||
|
:inline="true" |
||||
|
v-show="showSearch" |
||||
|
> |
||||
|
<el-form-item label="隐患名称" prop="hazardName"> |
||||
|
<el-input |
||||
|
v-model="queryParams.cv.value" |
||||
|
placeholder="请输入隐患名称" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item> |
||||
|
<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="['build:projectAcceptance: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="['build:projectAcceptance: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="['build:projectAcceptance:remove']" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table |
||||
|
v-loading="loading" |
||||
|
:data="accList" |
||||
|
@selection-change="handleSelectionChange" |
||||
|
tooltip-effect="dark myTooltips" |
||||
|
> |
||||
|
<el-table-column type="selection" width="55" align="center" fixed /> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="50" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患名称" |
||||
|
align="center" |
||||
|
prop="hazardName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="项目名称" |
||||
|
align="center" |
||||
|
prop="entryName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="排查计划" |
||||
|
align="center" |
||||
|
prop="investigationPlan" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="检查单位" |
||||
|
align="center" |
||||
|
prop="inspectionUnit" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="检查责任人" |
||||
|
align="center" |
||||
|
prop="personCgeInspection" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="检查周期" |
||||
|
align="center" |
||||
|
prop="inspectionCycle" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="检查人列表信息" |
||||
|
align="center" |
||||
|
prop="checkerListInfo" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患描述" |
||||
|
align="center" |
||||
|
prop="hazardDescription" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患类型" |
||||
|
align="center" |
||||
|
prop="hazardType" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患等级" |
||||
|
align="center" |
||||
|
prop="hazardLevel" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="整改期限" |
||||
|
align="center" |
||||
|
prop="rectificationDeadline" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="整改责任单位" |
||||
|
align="center" |
||||
|
prop="rectificationResponsibleUnit" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="操作" |
||||
|
align="center" |
||||
|
class-name="small-padding fixed-width" |
||||
|
min-width="180" |
||||
|
fixed="right" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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" |
||||
|
> |
||||
|
<el-row :gutter="15"> |
||||
|
<el-form |
||||
|
ref="form" |
||||
|
:model="form" |
||||
|
:rules="rules" |
||||
|
label-width="110px" |
||||
|
label-position="top" |
||||
|
> |
||||
|
<el-row :gutter="15" class="pad12"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="隐患名称" prop="hazardName"> |
||||
|
<el-input |
||||
|
v-model="form.hazardName" |
||||
|
placeholder="请输入隐患名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="项目名称" prop="entryName"> |
||||
|
<el-input |
||||
|
v-model="form.entryName" |
||||
|
placeholder="请输入项目名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="排查计划" prop="investigationPlan"> |
||||
|
<el-input |
||||
|
v-model="form.investigationPlan" |
||||
|
placeholder="请输入排查计划" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检查单位" prop="inspectionUnit"> |
||||
|
<el-input |
||||
|
v-model="form.inspectionUnit" |
||||
|
placeholder="请输入检查单位" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检查责任人" prop="personCgeInspection"> |
||||
|
<el-input |
||||
|
v-model="form.personCgeInspection" |
||||
|
placeholder="请输入检查责任人" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检查周期" prop="inspectionCycle"> |
||||
|
<el-input |
||||
|
v-model="form.inspectionCycle" |
||||
|
placeholder="请输入检查周期" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="检查人列表信息" prop="checkerListInfo"> |
||||
|
<el-input |
||||
|
v-model="form.checkerListInfo" |
||||
|
placeholder="请输入检查人列表信息" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="隐患描述" prop="hazardDescription"> |
||||
|
<el-input |
||||
|
v-model="form.hazardDescription" |
||||
|
placeholder="请输入隐患描述" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="隐患所在区域" prop="hazardLocationArea"> |
||||
|
<el-input |
||||
|
v-model="form.hazardLocationArea" |
||||
|
placeholder="请输入隐患所在区域" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="隐患类型" prop="hazardType"> |
||||
|
<el-input |
||||
|
v-model="form.hazardType" |
||||
|
placeholder="请输入隐患类型" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="隐患等级" prop="hazardLevel"> |
||||
|
<el-input |
||||
|
v-model="form.hazardLevel" |
||||
|
placeholder="请输入隐患等级" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="整改期限" prop="rectificationDeadline"> |
||||
|
<el-input |
||||
|
v-model="form.rectificationDeadline" |
||||
|
placeholder="请输入整改期限" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="整改责任单位" |
||||
|
prop="rectificationResponsibleUnit" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.rectificationResponsibleUnit" |
||||
|
placeholder="请输入整改责任单位" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-form> |
||||
|
</el-row> |
||||
|
<div class="dialog-footer" slot="footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listRecord, |
||||
|
getRecord, |
||||
|
addRecord, |
||||
|
updateRecord, |
||||
|
delRecord, |
||||
|
exportRecord, |
||||
|
} from "@/api/build/hazardRecord"; |
||||
|
import { |
||||
|
listAcc, |
||||
|
getAcc, |
||||
|
delAcc, |
||||
|
addAcc, |
||||
|
updateAcc, |
||||
|
exportAcc, |
||||
|
} from "@/api/build/comAcc"; |
||||
|
import { getToken } from "@/utils/auth"; |
||||
|
import { getFileStream } from "@/api/system/upload"; |
||||
|
|
||||
|
export default { |
||||
|
name: "Acc", |
||||
|
props: ["projectName", "proNo", "proCode", "projectLegalPerson"], |
||||
|
data() { |
||||
|
return { |
||||
|
dynamicTags1: [], |
||||
|
dynamicTags2: [], |
||||
|
inputVisible1: false, |
||||
|
inputVisible2: false, |
||||
|
inputValue1: "", |
||||
|
inputValue2: "", |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 竣工验收表格数据 |
||||
|
accList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
viewTitle: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
viewOpen: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: {}, |
||||
|
cv: { |
||||
|
name: "hazardName", |
||||
|
type: "like", |
||||
|
value: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
projectAcceptanceMsg: {}, |
||||
|
// 表单校验 |
||||
|
rules: {}, |
||||
|
// 附件 |
||||
|
fileList1: [], |
||||
|
fileList2: [], |
||||
|
fileList3: [], |
||||
|
fileList4: [], |
||||
|
fileList5: [], |
||||
|
fileList6: [], |
||||
|
fileList7: [], |
||||
|
fileList8: [], |
||||
|
fileList9: [], |
||||
|
fileList10: [], |
||||
|
// 请求头 |
||||
|
headers: { |
||||
|
jianwei: "jwtech " + getToken(), |
||||
|
}, |
||||
|
// 是否字典 |
||||
|
whetherOptions: [], |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
this.getDicts("whether").then((response) => { |
||||
|
this.whetherOptions = response.data; |
||||
|
}); |
||||
|
}, |
||||
|
methods: { |
||||
|
whetherFarmet(key) { |
||||
|
if (key == 0) { |
||||
|
return "否"; |
||||
|
} else if (key == 1) { |
||||
|
return "是"; |
||||
|
} else { |
||||
|
return ""; |
||||
|
} |
||||
|
}, |
||||
|
acceptancePersonFarmat(data) { |
||||
|
if (data) { |
||||
|
// console.log(data); |
||||
|
let arr = JSON.parse(data); |
||||
|
if (arr.length == 0) { |
||||
|
return ""; |
||||
|
} else { |
||||
|
// console.log(1111, arr); |
||||
|
return arr.join("、"); |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
// 合同工程完工验收管理---验收人员 |
||||
|
handleClose1(tag) { |
||||
|
this.dynamicTags1.splice(this.dynamicTags1.indexOf(tag), 1); |
||||
|
this.form.acceptancePerson = this.dynamicTags1.length |
||||
|
? JSON.stringify(this.dynamicTags1) |
||||
|
: null; |
||||
|
this.$refs.form.validateField("acceptancePerson"); |
||||
|
}, |
||||
|
|
||||
|
showInput1() { |
||||
|
this.inputVisible1 = true; |
||||
|
this.$nextTick((_) => { |
||||
|
this.$refs.saveTagInput1.$refs.input.focus(); |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
handleInputConfirm1() { |
||||
|
let inputValue1 = this.inputValue1; |
||||
|
if (inputValue1) { |
||||
|
this.dynamicTags1.push(inputValue1); |
||||
|
} |
||||
|
this.form.acceptancePerson = this.dynamicTags1.length |
||||
|
? JSON.stringify(this.dynamicTags1) |
||||
|
: null; |
||||
|
this.$refs.form.validateField("acceptancePerson"); |
||||
|
this.inputVisible1 = false; |
||||
|
this.inputValue1 = ""; |
||||
|
}, |
||||
|
// 竣工验收---验收人员 |
||||
|
handleClose2(tag) { |
||||
|
this.dynamicTags2.splice(this.dynamicTags2.indexOf(tag), 1); |
||||
|
this.form.acceptancePersonnel = this.dynamicTags2.length |
||||
|
? JSON.stringify(this.dynamicTags2) |
||||
|
: null; |
||||
|
this.$refs.form.validateField("acceptancePersonnel"); |
||||
|
}, |
||||
|
|
||||
|
showInput2() { |
||||
|
this.inputVisible2 = true; |
||||
|
this.$nextTick((_) => { |
||||
|
this.$refs.saveTagInput2.$refs.input.focus(); |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
handleInputConfirm2() { |
||||
|
let inputValue2 = this.inputValue2; |
||||
|
if (inputValue2) { |
||||
|
this.dynamicTags2.push(inputValue2); |
||||
|
} |
||||
|
this.form.acceptancePersonnel = this.dynamicTags2.length |
||||
|
? JSON.stringify(this.dynamicTags2) |
||||
|
: null; |
||||
|
this.$refs.form.validateField("acceptancePersonnel"); |
||||
|
this.inputVisible2 = false; |
||||
|
this.inputValue2 = ""; |
||||
|
}, |
||||
|
/** 查询竣工验收列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.projectAcceptanceMsg.projectName = this.projectName; |
||||
|
this.projectAcceptanceMsg.proNo = this.proNo; |
||||
|
this.projectAcceptanceMsg.proCode = this.proCode; |
||||
|
this.projectAcceptanceMsg.projectLegal = this.projectLegalPerson; |
||||
|
this.queryParams.data.proNo = this.proNo; |
||||
|
this.queryParams.data.proCode = this.proCode; |
||||
|
listRecord(this.queryParams).then((response) => { |
||||
|
this.accList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getRecord(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
}); |
||||
|
this.open = true; |
||||
|
this.title = "修改项目验收信息"; |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.dynamicTags1 = []; |
||||
|
this.dynamicTags2 = []; |
||||
|
this.fileList1 = []; |
||||
|
this.fileList2 = []; |
||||
|
this.fileList3 = []; |
||||
|
this.fileList4 = []; |
||||
|
this.fileList5 = []; |
||||
|
this.fileList6 = []; |
||||
|
this.fileList7 = []; |
||||
|
this.fileList8 = []; |
||||
|
this.fileList9 = []; |
||||
|
this.fileList10 = []; |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
hazardName: null, |
||||
|
entryName: null, |
||||
|
investigationPlan: null, |
||||
|
inspectionUnit: null, |
||||
|
personCgeInspection: null, |
||||
|
inspectionCycle: null, |
||||
|
checkerListInfo: null, |
||||
|
hazardDescription: null, |
||||
|
hazardType: null, |
||||
|
hazardLevel: null, |
||||
|
rectificationDeadline: null, |
||||
|
rectificationResponsibleUnit: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: {}, |
||||
|
cv: { |
||||
|
name: "hazardName", |
||||
|
type: "like", |
||||
|
value: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sortBy: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
|
||||
|
this.open = true; |
||||
|
this.title = "添加项目完工验收"; |
||||
|
}, |
||||
|
viewInfo(row) { |
||||
|
this.viewTitle = "查看完工验收"; |
||||
|
this.projectAcceptanceMsg = row; |
||||
|
console.log("projectAcceptanceMsg", row); |
||||
|
this.viewOpen = true; |
||||
|
}, |
||||
|
// 关闭弹窗 |
||||
|
closeView() { |
||||
|
this.projectAcceptanceMsg = {}; |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.proNo = this.proNo; |
||||
|
this.form.proCode = this.proCode; |
||||
|
|
||||
|
console.log("this.formthis.form", this.form); |
||||
|
if (this.form.id != null) { |
||||
|
updateRecord(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addRecord(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delRecord(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss"> |
||||
|
.myTooltips { |
||||
|
max-width: 60vw; |
||||
|
} |
||||
|
</style> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
::v-deep { |
||||
|
.el-dialog { |
||||
|
margin-top: 2vh !important; |
||||
|
} |
||||
|
} |
||||
|
.pad12 { |
||||
|
padding: 0 12.5px; |
||||
|
} |
||||
|
.el-tag + .el-tag { |
||||
|
margin-left: 10px; |
||||
|
} |
||||
|
.button-new-tag { |
||||
|
margin-right: 10px; |
||||
|
height: 32px; |
||||
|
line-height: 30px; |
||||
|
padding-top: 0; |
||||
|
padding-bottom: 0; |
||||
|
} |
||||
|
.input-new-tag { |
||||
|
width: 180px; |
||||
|
margin-left: 10px; |
||||
|
vertical-align: bottom; |
||||
|
} |
||||
|
|
||||
|
.listTitle { |
||||
|
font-size: 14px; |
||||
|
padding-left: 10px; |
||||
|
padding-right: 30px; |
||||
|
margin: 20px 0; |
||||
|
border-left: 2px solid #36b29e; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
span:nth-child(1) { |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
.addBtn { |
||||
|
color: #36b29e; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
.addBtn:hover { |
||||
|
color: #31a08e; |
||||
|
} |
||||
|
} |
||||
|
.listTitle:nth-child(1) { |
||||
|
margin-top: 0; |
||||
|
// border-left: 0; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,348 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div class="listTitle"> |
||||
|
<span>隐患整改台账</span> |
||||
|
<span class="addBtn" @click="handleAdd(2)"> |
||||
|
<i class="el-icon-plus"></i> |
||||
|
添加 |
||||
|
</span> |
||||
|
</div> |
||||
|
<el-table v-loading="loading" :data="filingsList"> |
||||
|
<el-table-column label="序号" type="index" width="50" align="center" /> |
||||
|
<el-table-column |
||||
|
label="整改状态" |
||||
|
align="center" |
||||
|
prop="rectificationStatus" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患描述" |
||||
|
align="center" |
||||
|
prop="hazardDescription" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="整改措施" |
||||
|
align="center" |
||||
|
prop="rectificationMeasures" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="所在工区" |
||||
|
align="center" |
||||
|
prop="hazardLocationArea" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="整改日期" |
||||
|
align="center" |
||||
|
prop="rectificationDate" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="整改后审核意见" |
||||
|
align="center" |
||||
|
prop="reviewOpinionsAfterRectification" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<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="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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="closeDialog" |
||||
|
:close-on-click-modal="false" |
||||
|
> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
||||
|
<el-form-item label="整改状态" prop="rectificationStatus"> |
||||
|
<el-input |
||||
|
v-model="form.rectificationStatus" |
||||
|
type="textarea" |
||||
|
placeholder="请输入整改状态" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="隐患描述" prop="hazardDescription"> |
||||
|
<el-input |
||||
|
v-model="form.hazardDescription" |
||||
|
type="textarea" |
||||
|
placeholder="请输入隐患描述" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="整改措施" prop="rectificationMeasures"> |
||||
|
<el-input |
||||
|
v-model="form.rectificationMeasures" |
||||
|
type="textarea" |
||||
|
placeholder="请输入整改措施" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="所在工区" prop="hazardLocationArea"> |
||||
|
<el-input |
||||
|
v-model="form.hazardLocationArea" |
||||
|
type="textarea" |
||||
|
placeholder="请输入所在工区" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="整改日期" prop="rectificationDate"> |
||||
|
<el-date-picker |
||||
|
v-model="form.rectificationDate" |
||||
|
type="year" |
||||
|
placeholder="请选择整改日期" |
||||
|
style="width: 100%" |
||||
|
value-format="yyyy" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item |
||||
|
label="整改后审核意见" |
||||
|
prop="reviewOpinionsAfterRectification" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.reviewOpinionsAfterRectification" |
||||
|
type="textarea" |
||||
|
placeholder="请输入整改后审核意见" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listRectification, |
||||
|
getRectification, |
||||
|
addRectification, |
||||
|
updateRectification, |
||||
|
delRectification, |
||||
|
exportRectification, |
||||
|
} from "@/api/build/rectification"; |
||||
|
|
||||
|
export default { |
||||
|
name: "Filings", |
||||
|
props: ["proNo", "proCode"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: {}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: {}, |
||||
|
|
||||
|
filingsList: [], |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
closeDialog() {}, |
||||
|
/** 查询安全备案列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.proNo = this.proNo; |
||||
|
this.queryParams.data.proCode = this.proCode; |
||||
|
listRectification(this.queryParams).then((response) => { |
||||
|
this.filingsList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: {}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd(type) { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.form.type = type; |
||||
|
if (this.form.type == 1) { |
||||
|
this.title = "添加整体措施方案"; |
||||
|
} else { |
||||
|
this.title = "添加度汛方案"; |
||||
|
} |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getRectification(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
this.open = true; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.proNo = this.proNo; |
||||
|
this.form.proCode = this.proCode; |
||||
|
if (this.form.id != null) { |
||||
|
updateRectification(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addRectification(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delRectification(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
// ::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
// } |
||||
|
.listTitle { |
||||
|
font-size: 14px; |
||||
|
padding-left: 10px; |
||||
|
padding-right: 30px; |
||||
|
margin: 20px 0; |
||||
|
border-left: 2px solid #36b29e; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
span:nth-child(1) { |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
.addBtn { |
||||
|
color: #36b29e; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
.addBtn:hover { |
||||
|
color: #31a08e; |
||||
|
} |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,40 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-tabs v-model="activeName" style="margin-bottom: 20px"> |
||||
|
<el-tab-pane label="隐患登记" name="dangerRegistration"> |
||||
|
<dangerRegistration |
||||
|
v-if="activeName === 'dangerRegistration'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
:projectName="projectName" |
||||
|
:projectLegalPerson="projectLegalPerson" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
|
||||
|
<el-tab-pane label="隐患台账" name="dangerLedger"> |
||||
|
<dangerLedger |
||||
|
v-if="activeName === 'dangerLedger'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import dangerLedger from "./dangerLedger.vue"; |
||||
|
|
||||
|
import dangerRegistration from "./dangerRegistration.vue"; |
||||
|
export default { |
||||
|
props: ["projectName", "proNo", "proCode", "projectLegalPerson"], |
||||
|
components: { dangerRegistration, dangerLedger }, |
||||
|
data() { |
||||
|
return { |
||||
|
activeName: "dangerRegistration", |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"></style> |
@ -0,0 +1,668 @@ |
|||||
|
<template> |
||||
|
<!-- 项目开工文件--> |
||||
|
|
||||
|
<div class="app-container"> |
||||
|
<el-form |
||||
|
:model="queryParams" |
||||
|
ref="queryForm" |
||||
|
:inline="true" |
||||
|
v-show="showSearch" |
||||
|
label-width="68px" |
||||
|
> |
||||
|
<el-form-item label="开工备案编号" prop="constructionRegistrationNumber"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.constructionRegistrationNumber" |
||||
|
placeholder="请输入开工备案编号" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="开工时间" prop="commencementTime"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
v-model="queryParams.commencementTime" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择开工时间" |
||||
|
> |
||||
|
</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="['build:commen: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="['build:commen: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="['build:commen:remove']" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="warning" |
||||
|
icon="el-icon-download" |
||||
|
size="mini" |
||||
|
@click="handleExport" |
||||
|
v-hasPermi="['build:commen:export']" |
||||
|
>导出</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table |
||||
|
v-loading="loading" |
||||
|
:data="commenList" |
||||
|
@selection-change="handleSelectionChange" |
||||
|
> |
||||
|
<el-table-column type="selection" width="120" align="center" /> |
||||
|
<el-table-column label="序号" type="index" width="50" align="center" /> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="开工备案编号" |
||||
|
align="center" |
||||
|
prop="constructionRegistrationNumber" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="开工时间" |
||||
|
align="center" |
||||
|
prop="commencementTime" |
||||
|
width="180" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span>{{ |
||||
|
parseTime(scope.row.commencementTime, "{y}-{m}-{d}") |
||||
|
}}</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="开工备案受理单位" |
||||
|
align="center" |
||||
|
prop="commencementAcceptanceUnit" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="初步设计批文" |
||||
|
align="center" |
||||
|
prop="preliminaryDesignApproval" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="竣工验收主持单位" |
||||
|
align="center" |
||||
|
prop="completionAcceptanceHostUnit" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="开工文件附件" |
||||
|
align="center" |
||||
|
prop="projectCommencementFiles" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="上报时间" |
||||
|
align="center" |
||||
|
prop="reportingTime" |
||||
|
width="180" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span>{{ parseTime(scope.row.reportingTime, "{y}-{m}-{d}") }}</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="审批时间" |
||||
|
align="center" |
||||
|
prop="approvalTime" |
||||
|
width="180" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span>{{ parseTime(scope.row.approvalTime, "{y}-{m}-{d}") }}</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="批复意见" |
||||
|
align="center" |
||||
|
prop="approvalOpinions" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="操作" |
||||
|
align="center" |
||||
|
class-name="small-padding fixed-width" |
||||
|
min-width="180" |
||||
|
fixed="right" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="开工备案编号" |
||||
|
prop="constructionRegistrationNumber" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.constructionRegistrationNumber" |
||||
|
placeholder="请输入开工备案编号" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="开工时间" prop="commencementTime"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
v-model="form.commencementTime" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择开工时间" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="开工备案受理单位" |
||||
|
prop="commencementAcceptanceUnit" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.commencementAcceptanceUnit" |
||||
|
placeholder="请输入开工备案受理单位" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="初步设计批文" prop="preliminaryDesignApproval"> |
||||
|
<el-input |
||||
|
v-model="form.preliminaryDesignApproval" |
||||
|
placeholder="请输入初步设计批文" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="竣工验收主持单位" |
||||
|
prop="completionAcceptanceHostUnit" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.completionAcceptanceHostUnit" |
||||
|
placeholder="请输入竣工验收主持单位" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="施工详图设计是否满足主体工程施工需要" |
||||
|
prop="isMeetTheConstructionNeeds" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.isMeetTheConstructionNeeds" |
||||
|
placeholder="请输入施工详图设计是否满足主体工程施工需要" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="施工详图文件" prop="constructionDetailFile"> |
||||
|
<el-input |
||||
|
v-model="form.constructionDetailFile" |
||||
|
placeholder="请输入施工详图文件" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="建设资金是否已落实" prop="isFundsBeenImplemented"> |
||||
|
<el-input |
||||
|
v-model="form.isFundsBeenImplemented" |
||||
|
placeholder="请输入建设资金是否已落实" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="建设资金文件" prop="constructionFundDocuments"> |
||||
|
<el-input |
||||
|
v-model="form.constructionFundDocuments" |
||||
|
placeholder="请输入建设资金文件" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="主要设备和材料是否落实" |
||||
|
prop="isMaterialsImplemented" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.isMaterialsImplemented" |
||||
|
placeholder="请输入主要设备和材料是否落实" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="落实文件" prop="implementDocuments"> |
||||
|
<el-input |
||||
|
v-model="form.implementDocuments" |
||||
|
placeholder="请输入落实文件" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="施工准备和征地工作是否满足开工需要" |
||||
|
prop="isMeetTheNeedsCommencement" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.isMeetTheNeedsCommencement" |
||||
|
placeholder="请输入施工准备和征地工作是否满足开工需要" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="满足开工需要文件" |
||||
|
prop="documentsThatMeetTheRequirements" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.documentsThatMeetTheRequirements" |
||||
|
type="textarea" |
||||
|
placeholder="请输入内容" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item |
||||
|
label="质量监督安全手续是否办理" |
||||
|
prop="isSafetyProceduresBeenCompleted" |
||||
|
> |
||||
|
<el-input |
||||
|
v-model="form.isSafetyProceduresBeenCompleted" |
||||
|
placeholder="请输入质量监督安全手续是否办理" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="办理文件" prop="handlingDocuments"> |
||||
|
<el-input |
||||
|
v-model="form.handlingDocuments" |
||||
|
placeholder="请输入办理文件" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="开工文件附件" prop="projectCommencementFiles"> |
||||
|
<el-input |
||||
|
v-model="form.projectCommencementFiles" |
||||
|
placeholder="请输入开工文件附件" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="上报时间" prop="reportingTime"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
v-model="form.reportingTime" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择上报时间" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="审批时间" prop="approvalTime"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 200px" |
||||
|
v-model="form.approvalTime" |
||||
|
type="date" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
placeholder="选择审批时间" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="批复意见" prop="approvalOpinions"> |
||||
|
<el-input |
||||
|
v-model="form.approvalOpinions" |
||||
|
placeholder="请输入批复意见" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listCommen, |
||||
|
getCommen, |
||||
|
delCommen, |
||||
|
addCommen, |
||||
|
updateCommen, |
||||
|
exportCommen, |
||||
|
} from "@/api/build/commen"; |
||||
|
|
||||
|
export default { |
||||
|
name: "Commen", |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 项目开工文件表格数据 |
||||
|
commenList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
constructionRegistrationNumber: null, |
||||
|
commencementTime: null, |
||||
|
commencementAcceptanceUnit: null, |
||||
|
preliminaryDesignApproval: null, |
||||
|
completionAcceptanceHostUnit: null, |
||||
|
isMeetTheConstructionNeeds: null, |
||||
|
constructionDetailFile: null, |
||||
|
isFundsBeenImplemented: null, |
||||
|
constructionFundDocuments: null, |
||||
|
isMaterialsImplemented: null, |
||||
|
implementDocuments: null, |
||||
|
isMeetTheNeedsCommencement: null, |
||||
|
documentsThatMeetTheRequirements: null, |
||||
|
isSafetyProceduresBeenCompleted: null, |
||||
|
handlingDocuments: null, |
||||
|
projectCommencementFiles: null, |
||||
|
reportingTime: null, |
||||
|
approvalTime: null, |
||||
|
approvalOpinions: null, |
||||
|
proCode: null, |
||||
|
proNo: null, |
||||
|
createUid: null, |
||||
|
createTime: null, |
||||
|
updateUid: null, |
||||
|
updateTime: null, |
||||
|
owerDept: null, |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: {}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
/** 查询项目开工文件列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
listCommen(this.queryParams).then((response) => { |
||||
|
this.commenList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
constructionRegistrationNumber: null, |
||||
|
commencementTime: null, |
||||
|
commencementAcceptanceUnit: null, |
||||
|
preliminaryDesignApproval: null, |
||||
|
completionAcceptanceHostUnit: null, |
||||
|
isMeetTheConstructionNeeds: null, |
||||
|
constructionDetailFile: null, |
||||
|
isFundsBeenImplemented: null, |
||||
|
constructionFundDocuments: null, |
||||
|
isMaterialsImplemented: null, |
||||
|
implementDocuments: null, |
||||
|
isMeetTheNeedsCommencement: null, |
||||
|
documentsThatMeetTheRequirements: null, |
||||
|
isSafetyProceduresBeenCompleted: null, |
||||
|
handlingDocuments: null, |
||||
|
projectCommencementFiles: null, |
||||
|
reportingTime: null, |
||||
|
approvalTime: null, |
||||
|
approvalOpinions: null, |
||||
|
proCode: null, |
||||
|
proNo: null, |
||||
|
createUid: null, |
||||
|
createTime: null, |
||||
|
updateUid: null, |
||||
|
updateTime: null, |
||||
|
owerDept: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
id: null, |
||||
|
constructionRegistrationNumber: null, |
||||
|
commencementTime: null, |
||||
|
commencementAcceptanceUnit: null, |
||||
|
preliminaryDesignApproval: null, |
||||
|
completionAcceptanceHostUnit: null, |
||||
|
isMeetTheConstructionNeeds: null, |
||||
|
constructionDetailFile: null, |
||||
|
isFundsBeenImplemented: null, |
||||
|
constructionFundDocuments: null, |
||||
|
isMaterialsImplemented: null, |
||||
|
implementDocuments: null, |
||||
|
isMeetTheNeedsCommencement: null, |
||||
|
documentsThatMeetTheRequirements: null, |
||||
|
isSafetyProceduresBeenCompleted: null, |
||||
|
handlingDocuments: null, |
||||
|
projectCommencementFiles: null, |
||||
|
reportingTime: null, |
||||
|
approvalTime: null, |
||||
|
approvalOpinions: null, |
||||
|
proCode: null, |
||||
|
proNo: null, |
||||
|
createUid: null, |
||||
|
createTime: null, |
||||
|
updateUid: null, |
||||
|
updateTime: null, |
||||
|
owerDept: null, |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加项目开工文件"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getCommen(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
this.open = true; |
||||
|
this.title = "修改项目开工文件"; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
if (this.form.id != null) { |
||||
|
updateCommen(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addCommen(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delCommen(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
/** 导出按钮操作 */ |
||||
|
handleExport() { |
||||
|
const queryParams = this.queryParams; |
||||
|
let message = "是否确认导出所有的数据项?"; |
||||
|
if (this.ids) { |
||||
|
message = "是否确认导出选中的数据项?"; |
||||
|
queryParams.ids = this.ids; |
||||
|
} |
||||
|
this.$confirm(message, "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return exportCommen(queryParams); |
||||
|
}) |
||||
|
.then((response) => { |
||||
|
this.downloadFile(response, true, response.msg); |
||||
|
// this.download(response.msg); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
@ -0,0 +1,345 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div class="listTitle"> |
||||
|
<span>风险隐患台账列表</span> |
||||
|
<span class="addBtn" @click="handleAdd(2)"> |
||||
|
<i class="el-icon-plus"></i> |
||||
|
添加 |
||||
|
</span> |
||||
|
</div> |
||||
|
<el-table v-loading="loading" :data="filingsList"> |
||||
|
<el-table-column label="序号" type="index" width="50" align="center" /> |
||||
|
<el-table-column |
||||
|
label="整改状态" |
||||
|
align="center" |
||||
|
prop="rectificationStatus" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="隐患描述" |
||||
|
align="center" |
||||
|
prop="hazardDescription" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="整改措施" |
||||
|
align="center" |
||||
|
prop="rectificationMeasures" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="所在工区" |
||||
|
align="center" |
||||
|
prop="hazardLocationArea" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="检查日期" |
||||
|
align="center" |
||||
|
prop="inspectionDate" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="其他隐患详情信息" |
||||
|
align="center" |
||||
|
prop="hazardDetailsInformation" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<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="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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="closeDialog" |
||||
|
:close-on-click-modal="false" |
||||
|
> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
||||
|
<el-form-item label="整改状态" prop="rectificationStatus"> |
||||
|
<el-input |
||||
|
v-model="form.rectificationStatus" |
||||
|
type="textarea" |
||||
|
placeholder="请输入整改状态" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
|
||||
|
<el-form-item label="隐患描述" prop="hazardDescription"> |
||||
|
<el-input |
||||
|
v-model="form.hazardDescription" |
||||
|
type="textarea" |
||||
|
placeholder="请输入隐患描述" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="整改措施" prop="rectificationMeasures"> |
||||
|
<el-input |
||||
|
v-model="form.rectificationMeasures" |
||||
|
type="textarea" |
||||
|
placeholder="请输入整改措施" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="所在工区" prop="hazardLocationArea"> |
||||
|
<el-input |
||||
|
v-model="form.hazardLocationArea" |
||||
|
type="textarea" |
||||
|
placeholder="请输入所在工区" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="检查日期" prop="inspectionDate"> |
||||
|
<el-date-picker |
||||
|
v-model="form.inspectionDate" |
||||
|
type="year" |
||||
|
placeholder="请选择检查日期" |
||||
|
style="width: 100%" |
||||
|
value-format="yyyy" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="其他隐患详情信息" prop="hazardDetailsInformation"> |
||||
|
<el-input |
||||
|
v-model="form.hazardDetailsInformation" |
||||
|
type="textarea" |
||||
|
placeholder="请输入所在工区" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listLedger, |
||||
|
getLedger, |
||||
|
addLedger, |
||||
|
updateLedger, |
||||
|
delLedger, |
||||
|
exportLedger, |
||||
|
} from "@/api/build/ledger"; |
||||
|
|
||||
|
export default { |
||||
|
name: "Filings", |
||||
|
props: ["proNo", "proCode"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: {}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: {}, |
||||
|
|
||||
|
filingsList: [], |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
closeDialog() {}, |
||||
|
/** 查询安全备案列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.proNo = this.proNo; |
||||
|
this.queryParams.data.proCode = this.proCode; |
||||
|
listLedger(this.queryParams).then((response) => { |
||||
|
this.filingsList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: {}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd(type) { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.form.type = type; |
||||
|
if (this.form.type == 1) { |
||||
|
this.title = "添加整体措施方案"; |
||||
|
} else { |
||||
|
this.title = "添加度汛方案"; |
||||
|
} |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getLedger(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
this.open = true; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.proNo = this.proNo; |
||||
|
this.form.proCode = this.proCode; |
||||
|
if (this.form.id != null) { |
||||
|
updateLedger(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addLedger(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delLedger(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
// ::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
// } |
||||
|
.listTitle { |
||||
|
font-size: 14px; |
||||
|
padding-left: 10px; |
||||
|
padding-right: 30px; |
||||
|
margin: 20px 0; |
||||
|
border-left: 2px solid #36b29e; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
span:nth-child(1) { |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
.addBtn { |
||||
|
color: #36b29e; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
.addBtn:hover { |
||||
|
color: #31a08e; |
||||
|
} |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,65 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-tabs v-model="activeName" style="margin-bottom: 20px"> |
||||
|
<el-tab-pane label="安全目标信息" name="man"> |
||||
|
<man |
||||
|
v-if="activeName === 'man'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
:projectName="projectName" |
||||
|
:projectLegalPerson="projectLegalPerson" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
|
||||
|
<el-tab-pane label="参建评价" name="score"> |
||||
|
<score |
||||
|
v-if="activeName === 'score'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
|
||||
|
<el-tab-pane label="项目安全生产管理机构信息" name="institution"> |
||||
|
<institution |
||||
|
v-if="activeName === 'institution'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
|
||||
|
<el-tab-pane label="项目安全生产管理机构人员信息" name="person"> |
||||
|
<person |
||||
|
v-if="activeName === 'person'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="工程目标信息" name="objective"> |
||||
|
<objective |
||||
|
v-if="activeName === 'objective'" |
||||
|
:proNo="proNo" |
||||
|
:proCode="proCode" |
||||
|
/> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import man from "@/views/build/man/index.vue"; |
||||
|
import score from "@/views/build/score/index.vue"; |
||||
|
import institution from "@/views/build/institution/index.vue"; |
||||
|
import person from "@/views/build/person/index.vue"; |
||||
|
import objective from "@/views/build/objective/index.vue"; |
||||
|
export default { |
||||
|
props: ["projectName", "proNo", "proCode", "projectLegalPerson"], |
||||
|
components: { man, score, institution, person, objective }, |
||||
|
data() { |
||||
|
return { |
||||
|
activeName: "man", |
||||
|
}; |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"></style> |
@ -0,0 +1,750 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<!-- <el-form |
||||
|
:model="queryParams" |
||||
|
ref="queryForm" |
||||
|
:inline="true" |
||||
|
v-show="showSearch" |
||||
|
> |
||||
|
<el-form-item label="项目名称" prop="projectName"> |
||||
|
<el-input |
||||
|
v-model="queryParams.data.projectName" |
||||
|
placeholder="请输入项目名称" |
||||
|
clearable |
||||
|
size="small" |
||||
|
@keyup.enter.native="handleQuery" |
||||
|
> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
slot="append" |
||||
|
icon="el-icon-search" |
||||
|
size="small" |
||||
|
@click="handleQuery" |
||||
|
></el-button> |
||||
|
</el-input> |
||||
|
</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" |
||||
|
>新增</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="success" |
||||
|
icon="el-icon-edit" |
||||
|
size="mini" |
||||
|
:disabled="single" |
||||
|
@click="handleUpdate" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="danger" |
||||
|
icon="el-icon-delete" |
||||
|
size="mini" |
||||
|
:disabled="multiple" |
||||
|
@click="handleDelete" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-table |
||||
|
v-loading="loading" |
||||
|
:data="performanceRecordList" |
||||
|
@selection-change="handleSelectionChange" |
||||
|
> |
||||
|
<el-table-column type="selection" width="55" align="center" fixed /> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="50" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="财务信息" |
||||
|
align="center" |
||||
|
prop="financialInformation" |
||||
|
min-width="180" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<div |
||||
|
v-for="(item, index) in JSON.parse(scope.row.financialInformation)" |
||||
|
:key="item + index" |
||||
|
> |
||||
|
<i class="el-icon-document"></i> |
||||
|
{{ item.name }} |
||||
|
<i |
||||
|
class="el-icon-download" |
||||
|
@click="downloadFile(scope, index)" |
||||
|
style="cursor: pointer" |
||||
|
></i> |
||||
|
</div> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="设备资产信息" |
||||
|
align="center" |
||||
|
prop="equipmentAssetInformation" |
||||
|
min-width="180" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<div |
||||
|
v-for="(item, index) in JSON.parse( |
||||
|
scope.row.equipmentAssetInformation |
||||
|
)" |
||||
|
:key="item + index" |
||||
|
> |
||||
|
<i class="el-icon-document"></i> |
||||
|
{{ item.name }} |
||||
|
<i |
||||
|
class="el-icon-download" |
||||
|
@click="downloadFile(scope, index)" |
||||
|
style="cursor: pointer" |
||||
|
></i> |
||||
|
</div> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="年份" |
||||
|
align="center" |
||||
|
prop="year" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<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-view" |
||||
|
@click="viewInfo(scope.row)" |
||||
|
>查看</el-button |
||||
|
> --> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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" |
||||
|
> |
||||
|
<el-row :gutter="15"> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="财务信息" prop="financialInformation"> |
||||
|
<!-- <el-input v-model="form.attachment" placeholder="请输入附件" /> --> |
||||
|
<el-upload |
||||
|
class="upload-demo" |
||||
|
action="thinking/common/upload" |
||||
|
:headers="headers" |
||||
|
:before-upload="(file) => $fileBeforeUpload(file, 'fileList')" |
||||
|
:on-preview="handlePreview" |
||||
|
:on-remove="(file) => handleRemove(file, 'fileList')" |
||||
|
:before-remove="beforeRemove" |
||||
|
multiple |
||||
|
:on-exceed="handleExceed" |
||||
|
:on-success=" |
||||
|
(_, fileList) => submitUpload(fileList, 'fileList') |
||||
|
" |
||||
|
:file-list="fileList" |
||||
|
> |
||||
|
<el-button size="small" type="primary" plain> |
||||
|
<i class="el-icon-upload el-icon--right"></i> |
||||
|
点击上传 |
||||
|
</el-button> |
||||
|
<div slot="tip" class="el-upload__tip"> |
||||
|
支持jpg/png/pdf/word/excel文件等,不超过200M |
||||
|
</div> |
||||
|
</el-upload> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="设备资产信息" prop="equipmentAssetInformation"> |
||||
|
<!-- <el-input v-model="form.attachment" placeholder="请输入附件" /> --> |
||||
|
<el-upload |
||||
|
class="upload-demo" |
||||
|
action="thinking/common/upload" |
||||
|
:headers="headers" |
||||
|
:before-upload="(file) => $fileBeforeUpload(file, 'fileList1')" |
||||
|
:on-preview="handlePreview" |
||||
|
:on-remove="(file) => handleRemove(file, 'fileList1')" |
||||
|
:before-remove="beforeRemove" |
||||
|
multiple |
||||
|
:on-exceed="handleExceed" |
||||
|
:on-success=" |
||||
|
(_, fileList) => submitUpload(fileList, 'fileList1') |
||||
|
" |
||||
|
:file-list="fileList1" |
||||
|
> |
||||
|
<el-button size="small" type="primary" plain> |
||||
|
<i class="el-icon-upload el-icon--right"></i> |
||||
|
点击上传 |
||||
|
</el-button> |
||||
|
<div slot="tip" class="el-upload__tip"> |
||||
|
支持jpg/png/pdf/word/excel文件等,不超过200M |
||||
|
</div> |
||||
|
</el-upload> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="年份" prop="year"> |
||||
|
<el-date-picker |
||||
|
clearable |
||||
|
size="small" |
||||
|
style="width: 100%" |
||||
|
v-model="form.year" |
||||
|
type="year" |
||||
|
value-format="yyyy" |
||||
|
placeholder="选择年份" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-form> |
||||
|
</el-row> |
||||
|
<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="viewTitle" |
||||
|
:visible.sync="viewOpen" |
||||
|
width="1200px" |
||||
|
append-to-body |
||||
|
@close="closeView" |
||||
|
:close-on-click-modal="false" |
||||
|
> |
||||
|
<!-- 工程业绩记录 --> |
||||
|
<div class="infoTitle">工程业绩记录</div> |
||||
|
<div class="draLine"></div> |
||||
|
<div class="content"> |
||||
|
<el-descriptions |
||||
|
class="margin-top" |
||||
|
:column="2" |
||||
|
border |
||||
|
:labelStyle="{ |
||||
|
'text-align': 'left', |
||||
|
width: '180px', |
||||
|
height: '50px', |
||||
|
}" |
||||
|
:contentStyle="{ minWidth: '350px' }" |
||||
|
> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 项目名称 </template> |
||||
|
{{ this.performanceRecordMsg.projectName }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 建设单位 </template> |
||||
|
{{ this.performanceRecordMsg.constructingUnits }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 项目负责人 </template> |
||||
|
{{ this.performanceRecordMsg.projectLeader }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 项目所在地 </template> |
||||
|
{{ formatProjectLocation(this.performanceRecordMsg) }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 项目状态 </template> |
||||
|
{{ projectStatusFormat(this.performanceRecordMsg) }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 开工日期 </template> |
||||
|
{{ this.performanceRecordMsg.commencementDate }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 竣工日期 </template> |
||||
|
{{ this.performanceRecordMsg.completionDate }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 合同价(万元) </template> |
||||
|
{{ this.performanceRecordMsg.contractPrice }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 项目获奖情况 </template> |
||||
|
{{ this.performanceRecordMsg.projectAwardSituation }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 质量评定结果 </template> |
||||
|
{{ this.performanceRecordMsg.qualityAssessmentResults }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 备注 </template> |
||||
|
{{ this.performanceRecordMsg.remark }} |
||||
|
</el-descriptions-item> |
||||
|
<el-descriptions-item> |
||||
|
<template slot="label"> 附件 </template> |
||||
|
<template v-if="this.performanceRecordMsg.attachment"> |
||||
|
<div |
||||
|
v-for="(item, index) in JSON.parse( |
||||
|
this.performanceRecordMsg.attachment |
||||
|
)" |
||||
|
:key="item + index" |
||||
|
> |
||||
|
{{ item.name }} |
||||
|
|
||||
|
<i |
||||
|
class="el-icon-download" |
||||
|
@click="downloadFile2(item, index)" |
||||
|
style="cursor: pointer" |
||||
|
></i> |
||||
|
</div> |
||||
|
</template> |
||||
|
</el-descriptions-item> |
||||
|
</el-descriptions> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listAsset, |
||||
|
getAsset, |
||||
|
addAsset, |
||||
|
updateAsset, |
||||
|
delAsset, |
||||
|
exportAsset, |
||||
|
} from "@/api/enterprise/asset"; |
||||
|
import { |
||||
|
listPerformanceRecord, |
||||
|
getPerformanceRecord, |
||||
|
delPerformanceRecord, |
||||
|
addPerformanceRecord, |
||||
|
updatePerformanceRecord, |
||||
|
exportPerformanceRecord, |
||||
|
} from "@/api/enterprise/performanceRecord"; |
||||
|
import { getParentQualifications } from "@/api/enterprise/qualifications"; |
||||
|
import { getAreasData } from "@/api/areas/index"; |
||||
|
import { regionData, codeToText, TextToCode } from "element-china-area-data"; |
||||
|
import { getToken } from "@/utils/auth"; |
||||
|
import { getFileStream } from "@/api/system/upload"; |
||||
|
|
||||
|
export default { |
||||
|
name: "assetCondition", |
||||
|
props: ["enterpriseId"], |
||||
|
data() { |
||||
|
return { |
||||
|
areasOptionProps: { |
||||
|
emitPath: false, //value返回最后一级的 |
||||
|
checkStrictly: true, //选择任意一级 |
||||
|
}, |
||||
|
areasOptions: [], |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 工程业绩记录表格数据 |
||||
|
performanceRecordList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
viewTitle: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
viewOpen: false, |
||||
|
// 项目状态字典 |
||||
|
projectStatusOptions: [], |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
enterpriseId: null, |
||||
|
projectName: null, |
||||
|
constructingUnits: null, |
||||
|
proCode: null, |
||||
|
projectLeader: null, |
||||
|
projectLocation: null, |
||||
|
projectStatus: null, |
||||
|
commencementDate: null, |
||||
|
completionDate: null, |
||||
|
contractPrice: null, |
||||
|
projectAwardSituation: null, |
||||
|
qualityAssessmentResults: null, |
||||
|
attachment: null, |
||||
|
createUid: null, |
||||
|
updateUid: null, |
||||
|
owerDept: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: { |
||||
|
id: null, |
||||
|
enterpriseId: null, |
||||
|
financialInformation: null, |
||||
|
equipmentAssetInformation: null, |
||||
|
year: null, |
||||
|
}, |
||||
|
// 表单校验 |
||||
|
rules: { |
||||
|
projectName: [ |
||||
|
{ |
||||
|
required: true, |
||||
|
message: "请输入项目名称", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
constructingUnits: [ |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
projectLeader: [ |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
contractPrice: [ |
||||
|
{ |
||||
|
pattern: |
||||
|
/(^[1-9]([0-9]{0,6})?(\.[0-9]{1,2})?$|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$))/, |
||||
|
message: "请输入数字,整数7位,可保留两位小数", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
projectAwardSituation: [ |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
qualityAssessmentResults: [ |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
remark: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
||||
|
}, |
||||
|
// 请求头 |
||||
|
headers: { |
||||
|
jianwei: "jwtech " + getToken(), |
||||
|
}, |
||||
|
fileList: [], |
||||
|
fileList1: [], |
||||
|
performanceRecordMsg: {}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
formatProjectLocation(row) { |
||||
|
if (row.projectLocation) { |
||||
|
let provinceCode = row.projectLocation.slice(0, 2); |
||||
|
let cityCode = row.projectLocation.slice(2, 4); |
||||
|
let areaCode = row.projectLocation.slice(4, 6); |
||||
|
if (areaCode != "00") { |
||||
|
return ( |
||||
|
codeToText[provinceCode] + |
||||
|
"-" + |
||||
|
codeToText[provinceCode + cityCode] + |
||||
|
"-" + |
||||
|
codeToText[provinceCode + cityCode + areaCode] |
||||
|
); |
||||
|
} else if (cityCode != "00") { |
||||
|
return ( |
||||
|
codeToText[provinceCode] + "-" + codeToText[provinceCode + cityCode] |
||||
|
); |
||||
|
} else { |
||||
|
return codeToText[provinceCode]; |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
/** 查询工程业绩记录列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.enterpriseId = this.enterpriseId; |
||||
|
listAsset(this.queryParams).then((response) => { |
||||
|
this.performanceRecordList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 项目状态字典翻译 |
||||
|
projectStatusFormat(row, column) { |
||||
|
return this.selectDictLabel(this.projectStatusOptions, row.projectStatus); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.fileList = []; |
||||
|
this.form = { |
||||
|
id: null, |
||||
|
enterpriseId: null, |
||||
|
financialInformation: null, |
||||
|
equipmentAssetInformation: null, |
||||
|
year: null, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
id: null, |
||||
|
enterpriseId: null, |
||||
|
projectName: null, |
||||
|
constructingUnits: null, |
||||
|
proCode: null, |
||||
|
projectLeader: null, |
||||
|
projectLocation: null, |
||||
|
projectStatus: null, |
||||
|
commencementDate: null, |
||||
|
completionDate: null, |
||||
|
contractPrice: null, |
||||
|
projectAwardSituation: null, |
||||
|
qualityAssessmentResults: null, |
||||
|
remark: null, |
||||
|
attachment: null, |
||||
|
createUid: null, |
||||
|
updateUid: null, |
||||
|
createTime: null, |
||||
|
updateTime: null, |
||||
|
owerDept: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查看信息 |
||||
|
viewInfo(row) { |
||||
|
// this.viewTitle = row.projectName.slice(0, row.projectName.indexOf("[")); |
||||
|
this.viewTitle = row.projectName; |
||||
|
this.performanceRecordMsg = row; |
||||
|
console.log("performanceRecordMsg", row); |
||||
|
this.viewOpen = true; |
||||
|
}, |
||||
|
// 关闭弹窗 |
||||
|
closeView() { |
||||
|
this.performanceRecordMsg = {}; |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length !== 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加工程业绩记录"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
getAsset(id).then((response) => { |
||||
|
this.form = response.data; |
||||
|
if (this.form.financialInformation) { |
||||
|
this.fileList = JSON.parse(this.form.financialInformation); |
||||
|
} |
||||
|
if (this.form.equipmentAssetInformation) { |
||||
|
this.fileList1 = JSON.parse(this.form.equipmentAssetInformation); |
||||
|
} |
||||
|
this.open = true; |
||||
|
this.title = "修改工程业绩记录"; |
||||
|
}); |
||||
|
}, |
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.enterpriseId = this.enterpriseId; |
||||
|
this.form.financialInformation = JSON.stringify(this.fileList); |
||||
|
this.form.equipmentAssetInformation = JSON.stringify(this.fileList1); |
||||
|
if (this.form.id != null) { |
||||
|
updateAsset(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addAsset(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delAsset(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
submitUpload(fileList, name) { |
||||
|
console.log(name, fileList); |
||||
|
this[name].push({ |
||||
|
name: fileList.name, |
||||
|
fileName: fileList.response.fileName, |
||||
|
url: fileList.response.url, |
||||
|
uid: fileList.uid, |
||||
|
}); |
||||
|
console.log(name, this[name]); |
||||
|
}, |
||||
|
handleRemove(file, name) { |
||||
|
// console.log(file, fileList1); |
||||
|
let index = this[name].findIndex((item) => item.uid === file.uid); |
||||
|
// 删除文件 |
||||
|
this[name].splice(index, 1); |
||||
|
}, |
||||
|
downloadFile(scope, index) { |
||||
|
// console.log(scope); |
||||
|
let file = JSON.parse(scope.row.attachment)[index]; |
||||
|
this.handlePreview(file); |
||||
|
}, |
||||
|
downloadFile2(info, index) { |
||||
|
console.log(info); |
||||
|
this.handlePreview(info); |
||||
|
}, |
||||
|
|
||||
|
// 点击预览的文件进行下载 |
||||
|
handlePreview(file) { |
||||
|
// console.log(file); |
||||
|
getFileStream({ fileName: file.fileName }).then((res) => { |
||||
|
const blob = new Blob([res], { |
||||
|
// type类型后端返回来的数据中会有,根据自己实际进行修改 |
||||
|
// 表格下载为 application/xlsx,压缩包为 application/zip等, |
||||
|
type: "application/xlsx", |
||||
|
}); //excel,pdf等 |
||||
|
const href = URL.createObjectURL(blob); //创建新的URL表示指定的blob对象 |
||||
|
const a = document.createElement("a"); //创建a标签 |
||||
|
a.style.display = "none"; |
||||
|
a.href = href; // 指定下载链接 |
||||
|
a.download = file.name; //指定下载文件名 |
||||
|
a.click(); //触发下载 |
||||
|
URL.revokeObjectURL(a.href); //释放URL对象 |
||||
|
}); |
||||
|
}, |
||||
|
handleExceed(files, fileList) { |
||||
|
this.$message.warning( |
||||
|
`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${ |
||||
|
files.length + fileList.length |
||||
|
} 个文件` |
||||
|
); |
||||
|
}, |
||||
|
beforeRemove(file, fileList) { |
||||
|
return this.$confirm(`确定移除 ${file.name}?`); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
</style> |
@ -0,0 +1,405 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-table v-loading="loading" :data="creditList"> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="100" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="企业名称" |
||||
|
align="center" |
||||
|
prop="enterpriseName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="人员名称" |
||||
|
align="center" |
||||
|
prop="personnelName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="不良行为" |
||||
|
align="center" |
||||
|
prop="badBehavior" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="等级" |
||||
|
align="center" |
||||
|
prop="grade" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="说明" |
||||
|
align="center" |
||||
|
prop="explainPeople" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="行政处理" |
||||
|
align="center" |
||||
|
prop="administrativeProcessing" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="扣除值" |
||||
|
align="center" |
||||
|
prop="deductionValue" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="扣分有效期" |
||||
|
align="center" |
||||
|
prop="deductionValuePeriod" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="公告有效期" |
||||
|
align="center" |
||||
|
prop="announcementValuePeriod" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<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="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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" |
||||
|
> |
||||
|
<el-row :gutter="15"> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="企业名称" prop="enterpriseName"> |
||||
|
<el-input |
||||
|
v-model="form.enterpriseName" |
||||
|
placeholder="请输入企业名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="人员名称" prop="personnelName"> |
||||
|
<el-input |
||||
|
v-model="form.personnelName" |
||||
|
placeholder="请输入人员名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="不良行为" prop="badBehavior"> |
||||
|
<el-input |
||||
|
v-model="form.badBehavior" |
||||
|
placeholder="请输入不良行为" |
||||
|
/> |
||||
|
<template #label></template> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
|
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="等级" prop="grade"> |
||||
|
<el-input v-model="form.grade" placeholder="请输入等级" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
|
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="说明" prop="explainPeople"> |
||||
|
<el-input v-model="form.explainPeople" placeholder="请输入说明" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="行政处理" prop="administrativeProcessing"> |
||||
|
<el-input |
||||
|
v-model="form.administrativeProcessing" |
||||
|
placeholder="请输入行政处理" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="扣除值" prop="deductionValue"> |
||||
|
<el-input |
||||
|
v-model="form.deductionValue" |
||||
|
placeholder="请输入扣除值" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="扣分有效期" prop="deductionValuePeriod"> |
||||
|
<el-date-picker |
||||
|
style="width: 100%" |
||||
|
v-model="form.deductionValuePeriod" |
||||
|
type="date" |
||||
|
placeholder="选择日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="公告有效期" prop="announcementValuePeriod"> |
||||
|
<el-date-picker |
||||
|
style="width: 100%" |
||||
|
v-model="form.announcementValuePeriod" |
||||
|
type="date" |
||||
|
placeholder="选择日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-form> |
||||
|
</el-row> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listBadBehavior, |
||||
|
getBadBehavior, |
||||
|
addBadBehavior, |
||||
|
updateBadBehavior, |
||||
|
delBadBehavior, |
||||
|
exportBadBehavior, |
||||
|
} from "@/api/enterprise/badBehavior"; |
||||
|
|
||||
|
export default { |
||||
|
name: "badBehavior", |
||||
|
props: ["enterpriseId"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 动态信用表格数据 |
||||
|
creditList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
viewTitle: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 资质类别字典 |
||||
|
qualificationCategoryOptions: [], |
||||
|
// 审核状态字典 |
||||
|
statusOptions: [], |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
enterpriseId: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: { |
||||
|
projectName: [ |
||||
|
{ required: true, message: "请选择项目名称", trigger: "blur" }, |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
behavior: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
||||
|
bonusPoints: [ |
||||
|
{ required: true, message: "请输入扣分值", trigger: "blur" }, |
||||
|
{ |
||||
|
pattern: |
||||
|
/(^[1-9]([0-9]{0,6})?(\.[0-9]{1,2})?$|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$))/, |
||||
|
message: "请输入数字,整数7位,可保留两位小数", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
chooseProjectName(data) { |
||||
|
this.form.recordId = data.id; |
||||
|
this.form.qualificationCategory = data.qualificationCategory; |
||||
|
}, |
||||
|
/** 查询动态信用列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.enterpriseId = this.enterpriseId; |
||||
|
listBadBehavior(this.queryParams).then((response) => { |
||||
|
this.creditList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = {}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
enterpriseId: this.enterpriseId, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
|
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加不良行为"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
const id = row.id || this.ids; |
||||
|
|
||||
|
getBadBehavior(id).then((res) => { |
||||
|
console.log(res); |
||||
|
this.form = res.data; |
||||
|
this.open = true; |
||||
|
this.title = "修改不良行为"; |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.enterpriseId = this.enterpriseId; |
||||
|
|
||||
|
if (this.form.id != null) { |
||||
|
updateBadBehavior(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addBadBehavior(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delBadBehavior(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
//::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
//} |
||||
|
</style> |
@ -0,0 +1,405 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<el-table v-loading="loading" :data="creditList"> |
||||
|
<el-table-column |
||||
|
label="序号" |
||||
|
type="index" |
||||
|
width="100" |
||||
|
align="center" |
||||
|
fixed |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="企业名称" |
||||
|
align="center" |
||||
|
prop="enterpriseName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="人员名称" |
||||
|
align="center" |
||||
|
prop="personnelName" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<el-table-column |
||||
|
label="不良行为" |
||||
|
align="center" |
||||
|
prop="badBehavior" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="等级" |
||||
|
align="center" |
||||
|
prop="grade" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="说明" |
||||
|
align="center" |
||||
|
prop="explainPeople" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="行政处理" |
||||
|
align="center" |
||||
|
prop="administrativeProcessing" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="扣除值" |
||||
|
align="center" |
||||
|
prop="deductionValue" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="扣分有效期" |
||||
|
align="center" |
||||
|
prop="deductionValuePeriod" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
<el-table-column |
||||
|
label="公告有效期" |
||||
|
align="center" |
||||
|
prop="announcementValuePeriod" |
||||
|
min-width="120" |
||||
|
/> |
||||
|
|
||||
|
<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="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</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" |
||||
|
> |
||||
|
<el-row :gutter="15"> |
||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="企业名称" prop="enterpriseName"> |
||||
|
<el-input |
||||
|
v-model="form.enterpriseName" |
||||
|
placeholder="请输入企业名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="人员名称" prop="personnelName"> |
||||
|
<el-input |
||||
|
v-model="form.personnelName" |
||||
|
placeholder="请输入人员名称" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="不良行为" prop="badBehavior"> |
||||
|
<el-input |
||||
|
v-model="form.badBehavior" |
||||
|
placeholder="请输入不良行为" |
||||
|
/> |
||||
|
<template #label></template> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
|
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="等级" prop="grade"> |
||||
|
<el-input v-model="form.grade" placeholder="请输入等级" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
|
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="说明" prop="explainPeople"> |
||||
|
<el-input v-model="form.explainPeople" placeholder="请输入说明" /> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="行政处理" prop="administrativeProcessing"> |
||||
|
<el-input |
||||
|
v-model="form.administrativeProcessing" |
||||
|
placeholder="请输入行政处理" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="扣除值" prop="deductionValue"> |
||||
|
<el-input |
||||
|
v-model="form.deductionValue" |
||||
|
placeholder="请输入扣除值" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="扣分有效期" prop="deductionValuePeriod"> |
||||
|
<el-date-picker |
||||
|
style="width: 100%" |
||||
|
v-model="form.deductionValuePeriod" |
||||
|
type="date" |
||||
|
placeholder="选择日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="12"> |
||||
|
<el-form-item label="公告有效期" prop="announcementValuePeriod"> |
||||
|
<el-date-picker |
||||
|
style="width: 100%" |
||||
|
v-model="form.announcementValuePeriod" |
||||
|
type="date" |
||||
|
placeholder="选择日期" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
</el-col> |
||||
|
</el-form> |
||||
|
</el-row> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
listGoodBehavior, |
||||
|
getGoodBehavior, |
||||
|
addGoodBehavior, |
||||
|
updateGoodBehavior, |
||||
|
delGoodBehavior, |
||||
|
exportGoodBehavior, |
||||
|
} from "@/api/enterprise/goodBehavior"; |
||||
|
|
||||
|
export default { |
||||
|
name: "goodBehavior", |
||||
|
props: ["enterpriseId"], |
||||
|
data() { |
||||
|
return { |
||||
|
// 遮罩层 |
||||
|
loading: true, |
||||
|
// 选中数组 |
||||
|
ids: [], |
||||
|
// 非单个禁用 |
||||
|
single: true, |
||||
|
// 非多个禁用 |
||||
|
multiple: true, |
||||
|
// 显示搜索条件 |
||||
|
showSearch: true, |
||||
|
// 总条数 |
||||
|
total: 0, |
||||
|
// 动态信用表格数据 |
||||
|
creditList: [], |
||||
|
// 弹出层标题 |
||||
|
title: "", |
||||
|
viewTitle: "", |
||||
|
// 是否显示弹出层 |
||||
|
open: false, |
||||
|
// 资质类别字典 |
||||
|
qualificationCategoryOptions: [], |
||||
|
// 审核状态字典 |
||||
|
statusOptions: [], |
||||
|
// 查询参数 |
||||
|
queryParams: { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
ids: null, |
||||
|
data: { |
||||
|
enterpriseId: null, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}, |
||||
|
// 表单参数 |
||||
|
form: {}, |
||||
|
// 表单校验 |
||||
|
rules: { |
||||
|
projectName: [ |
||||
|
{ required: true, message: "请选择项目名称", trigger: "blur" }, |
||||
|
{ max: 250, message: "字符长度最大为250", trigger: "blur" }, |
||||
|
], |
||||
|
behavior: [{ max: 250, message: "字符长度最大为250", trigger: "blur" }], |
||||
|
bonusPoints: [ |
||||
|
{ required: true, message: "请输入扣分值", trigger: "blur" }, |
||||
|
{ |
||||
|
pattern: |
||||
|
/(^[1-9]([0-9]{0,6})?(\.[0-9]{1,2})?$|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$))/, |
||||
|
message: "请输入数字,整数7位,可保留两位小数", |
||||
|
trigger: "blur", |
||||
|
}, |
||||
|
], |
||||
|
}, |
||||
|
}; |
||||
|
}, |
||||
|
created() { |
||||
|
this.getList(); |
||||
|
}, |
||||
|
methods: { |
||||
|
chooseProjectName(data) { |
||||
|
this.form.recordId = data.id; |
||||
|
this.form.qualificationCategory = data.qualificationCategory; |
||||
|
}, |
||||
|
/** 查询动态信用列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
this.queryParams.data.enterpriseId = this.enterpriseId; |
||||
|
listGoodBehavior(this.queryParams).then((response) => { |
||||
|
this.creditList = response.records; |
||||
|
this.total = response.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.form = {}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
// 查询表单重置 |
||||
|
resetQueryForm() { |
||||
|
this.queryParams = { |
||||
|
pageNum: 1, |
||||
|
pageSize: 10, |
||||
|
data: { |
||||
|
enterpriseId: this.enterpriseId, |
||||
|
}, |
||||
|
// 排序方式 |
||||
|
params: { |
||||
|
// 按哪个字段排序 |
||||
|
orderBy: "create_time", |
||||
|
// desc降序,升序asc |
||||
|
sort: "desc", |
||||
|
}, |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.resetQueryForm(); |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
|
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "添加不良行为"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.reset(); |
||||
|
|
||||
|
const id = row.id || this.ids; |
||||
|
|
||||
|
getGoodBehavior(id).then((res) => { |
||||
|
this.form = res.data; |
||||
|
this.open = true; |
||||
|
this.title = "修改不良行为扣分记录"; |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
/** 提交按钮 */ |
||||
|
submitForm() { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
this.form.enterpriseId = this.enterpriseId; |
||||
|
|
||||
|
if (this.form.id != null) { |
||||
|
updateGoodBehavior(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} else { |
||||
|
addGoodBehavior(this.form).then((response) => { |
||||
|
if (response.code === 200) { |
||||
|
this.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const ids = row.id || this.ids; |
||||
|
if (ids) { |
||||
|
this.$confirm("是否删除选中的数据?", "警告", { |
||||
|
confirmButtonText: "确定", |
||||
|
cancelButtonText: "取消", |
||||
|
type: "warning", |
||||
|
}) |
||||
|
.then(function () { |
||||
|
return delGoodBehavior(ids); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(function () {}); |
||||
|
} else { |
||||
|
this.$message.warning("请选择要删除的数据!!"); |
||||
|
} |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
//::v-deep { |
||||
|
// .el-dialog { |
||||
|
// margin-top: 10vh !important; |
||||
|
// } |
||||
|
//} |
||||
|
</style> |
@ -0,0 +1,76 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<!-- 良好行为--> |
||||
|
<div class="listTitle"> |
||||
|
<span>良好行为</span> |
||||
|
<span class="addBtn" @click="handleAdd('0')"> |
||||
|
<i class="el-icon-plus"></i> |
||||
|
添加 |
||||
|
</span> |
||||
|
</div> |
||||
|
<goodBehavior ref="goodBehavior" :enterpriseId="enterpriseId" /> |
||||
|
|
||||
|
<!-- 不良行为 --> |
||||
|
<div class="listTitle"> |
||||
|
<span>不良行为</span> |
||||
|
<span class="addBtn" @click="handleAdd('1')"> |
||||
|
<i class="el-icon-plus"></i> |
||||
|
添加 |
||||
|
</span> |
||||
|
</div> |
||||
|
<badBehavior ref="badBehavior" :enterpriseId="enterpriseId" /> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import goodBehavior from "./components/goodBehavior.vue"; |
||||
|
import badBehavior from "./components/badBehavior.vue"; |
||||
|
export default { |
||||
|
name: "personnelBehavior", |
||||
|
props: ["enterpriseId"], |
||||
|
components: { |
||||
|
badBehavior, |
||||
|
goodBehavior, |
||||
|
}, |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
created() {}, |
||||
|
methods: { |
||||
|
handleAdd(key) { |
||||
|
if (key == 0) this.$refs.goodBehavior.handleAdd(); |
||||
|
if (key == 1) this.$refs.badBehavior.handleAdd(); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
|
</script> |
||||
|
|
||||
|
<style lang="scss" scoped> |
||||
|
@import "@/assets/css/dialog.scss"; |
||||
|
|
||||
|
.listTitle { |
||||
|
font-size: 14px; |
||||
|
padding-left: 10px; |
||||
|
padding-right: 30px; |
||||
|
margin: 20px 0; |
||||
|
border-left: 2px solid #36b29e; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
|
||||
|
span:nth-child(1) { |
||||
|
font-weight: bold; |
||||
|
} |
||||
|
|
||||
|
.addBtn { |
||||
|
color: #36b29e; |
||||
|
cursor: pointer; |
||||
|
} |
||||
|
|
||||
|
.addBtn:hover { |
||||
|
color: #31a08e; |
||||
|
} |
||||
|
} |
||||
|
.listTitle:nth-child(1) { |
||||
|
margin-top: 0; |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue