<template>
|
<el-dialog
|
:visible.sync="dialogVisible"
|
append-to-body
|
:close-on-click-modal="false"
|
width="75%"
|
center
|
@open="getCheckUnitType()"
|
@close="resetForm()"
|
>
|
<div slot="title" class="dialog-title">
|
烟花爆竹{{enterpriseType==1?'批发':(enterpriseType==2?'零售':'')}}企业检查情况反馈表
|
</div>
|
<div class="table-tit">
|
<div>企业名称: <span class="m-color">{{corpInfo.enterpriseName}}</span></div>
|
<div>所属省市县: <span class="m-color">{{corpInfo.enterpriseProvince + corpInfo.enterpriseCity + corpInfo.enterpriseArea}}</span></div>
|
<div>检查层级: <span class="m-color">{{ corpInfo.checkUnitType == 1 ? '省级' : (corpInfo.checkUnitType == 2 ? '市级' : '县级') }}</span></div>
|
<div>检查单位: <span class="m-color">{{corpInfo.checkName}}</span></div>
|
</div>
|
<div class="corp-list">
|
<table class="corp-table">
|
<tr>
|
<td class="m-color w-25">检查时间</td>
|
<td class="m-color w-25">{{corpInfo.checkTime}}</td>
|
<td class="m-color w-25">是否检查出隐患问题</td>
|
<td class="m-color w-25">{{corpInfo.hiddendangerStatus==1?'是':'否'}}</td>
|
</tr>
|
<tr class="m-color b-font" style="text-align: center" v-if="corpInfo.hiddendangerStatus == 1">自查与整改情况</tr>
|
<tr v-if="corpInfo.hiddendangerStatus == 1">
|
<td class="m-color w-5">序号</td>
|
<td class="m-color w-15">检查出的隐患问题</td>
|
<td class="m-color w-10">隐患等级</td>
|
<td class="m-color w-30">整改措施</td>
|
<td class="m-color w-10">整改资金(元)</td>
|
<td class="m-color w-10">责任人</td>
|
<td class="m-color w-20">隐患状态</td>
|
</tr>
|
<tr v-for="(item,index) in corpInfo.hiddendangerInfos" :key="index" v-if="corpInfo.hiddendangerStatus == 1">
|
<td class="w-5">{{index}}</td>
|
<td class="w-15 overText">{{item.spotCheckHiddendanger}}</td>
|
<td class="w-10">{{item.hiddendangerLevel == 1 ? '一般隐患' : '重大隐患'}}</td>
|
<td class="w-30 overText">{{item.rectifyMeasure}}</td>
|
<td class="w-10">{{item.rectifyPrice}}</td>
|
<td class="w-10">{{item.chargePerson}}</td>
|
<td class="w-20 overText">
|
<span v-if="!item.rectifyStatus">
|
未整改
|
<span v-if="unitType == -1" style="cursor: pointer;color: #409EFF" @click="toRectify(item)">去整改</span>
|
</span>
|
<span v-else>
|
{{item.completeRectifyTime + '整改完成'}}
|
</span>
|
</td>
|
</tr>
|
<tr class="m-color b-font" style="text-align: center">合计</tr>
|
<tr>
|
<td class="m-color w-50">隐患总数</td>
|
<td class="m-color w-50">重大隐患数量</td>
|
</tr>
|
<tr>
|
<td class="w-50">{{corpInfo.hiddendangerSum}}</td>
|
<td class="w-50">{{corpInfo.majorHiddendangerNum}}</td>
|
</tr>
|
<tr class="m-color b-font" style="text-align: center" v-if="corpInfo.hiddendangerStatus == 1">执法处罚情况</tr>
|
<tr v-if="corpInfo.hiddendangerStatus == 1">
|
<td class="m-color w-25">罚款金额(万元)</td>
|
<td class="w-25">{{ corpInfo.amerceMoney }}</td>
|
<td class="m-color w-25">是否责令停产整顿</td>
|
<td class="w-25">
|
{{ corpInfo.stopProductionStatus == 1 ? '是': '否' }}
|
</td>
|
</tr>
|
<tr v-if="corpInfo.hiddendangerStatus == 1">
|
<td class="m-color w-25">是否吊销许可证</td>
|
<td class="w-25">
|
{{ corpInfo.revokeLicenseStatus == 1 ? '是': '否' }}
|
</td>
|
<td class="m-color w-25">是否暂扣许可证</td>
|
<td class="w-25">
|
{{ corpInfo.detainLicenseStatus == 1 ? '是': '否' }}
|
</td>
|
</tr>
|
</table>
|
<!-- <div class="table-bottom">-->
|
<!-- <div>填报人: <span class="m-color">{{corpInfo.selfcheckReportUserName}}</span></div>-->
|
<!-- </div>-->
|
<!-- <div class="table-bottom">-->
|
<!-- <div>填报人联系电话: <span class="m-color">{{corpInfo.selfcheckReportUserMobile}}</span></div>-->
|
<!-- <div>填报时间: <span class="m-color">{{corpInfo.reportModifyTime}}</span></div>-->
|
<!-- </div>-->
|
</div>
|
<span slot="footer" class="dialog-footer">
|
<el-button type="primary" @click="confirmBack()">返回</el-button>
|
</span>
|
<el-dialog
|
:visible.sync="dialogReport"
|
title="整改填报"
|
append-to-body
|
:close-on-click-modal="false"
|
width="40%"
|
center
|
@close="resetEdit()"
|
>
|
<el-form ref="reportForm" :model="reportForm" :rules="reportRule" label-width="140px">
|
<el-form-item label="当前隐患:">
|
<el-input type="textarea" readonly v-model="reportForm.info"></el-input>
|
</el-form-item>
|
|
<el-form-item label="当前完成整改日期:" prop="completeRectifyTime">
|
<el-date-picker
|
v-model="reportForm.completeRectifyTime"
|
type="datetime"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
placeholder="请选择整改日期">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="整改资金:" prop="rectifyPrice">
|
<el-input v-model="reportForm.rectifyPrice"></el-input>
|
</el-form-item>
|
<el-form-item label="整改措施:" prop="rectifyMeasure">
|
<el-input type="textarea" autosize v-model="reportForm.rectifyMeasure"></el-input>
|
</el-form-item>
|
<el-form-item label="负责人:" prop="chargePerson">
|
<el-input v-model="reportForm.chargePerson"></el-input>
|
</el-form-item>
|
</el-form>
|
<span slot="footer" class="dialog-footer">
|
<el-button @click="dialogReport = false">取消</el-button>
|
<el-button type="primary" @click="confirmReport('reportForm')">提交</el-button>
|
</span>
|
</el-dialog>
|
</el-dialog>
|
</template>
|
|
<script>
|
import {computePageCount} from "@/utils";
|
import { getSpotCheckRecorder, updateSpotCheckRectifyInfo } from "@/api/selfCheck";
|
import { getCheckUnitType } from "@/api/specialCheck"
|
export default {
|
name: "supervisionDetails",
|
data(){
|
return{
|
dialogVisible:false,
|
dialogReport: false,
|
id: null,
|
checkUnitType: null,
|
unitType: null,
|
enterpriseType: null,
|
corpInfo:{
|
enterpriseName: '',
|
enterpriseProvince: '',
|
enterpriseCity: '',
|
enterpriseArea: '',
|
checkUnitType: null,
|
checkName: '',
|
checkTime: '',
|
hiddendangerStatus: null,
|
hiddendangerInfos: [],
|
hiddendangerSum: null,
|
majorHiddendangerNum: null
|
},
|
reportForm:{
|
id: null,
|
info: '',
|
completeRectifyTime: '',
|
rectifyPrice: null,
|
rectifyMeasure: '',
|
chargePerson: ''
|
},
|
reportRule:{
|
completeRectifyTime: [{ required: true, message: '请选择完成整改日期', trigger: 'blur' }],
|
rectifyPrice: [{ required: true, message: '请输入整改资金', trigger: 'blur' }],
|
rectifyMeasure: [{ required: true, message: '请输入整改措施', trigger: 'blur' }],
|
chargePerson: [{ required: true, message: '请输入负责人', trigger: 'blur' }]
|
}
|
}
|
},
|
created() {
|
|
},
|
mounted() {
|
|
},
|
watch: {
|
},
|
methods:{
|
async getCheckUnitType(){
|
const t = this
|
let res = await getCheckUnitType()
|
if(res.data.code === "200"){
|
t.unitType = res.data.result.checkUnitType
|
}else{
|
t.unitType = -1
|
}
|
},
|
async getEnterpriseInfo(){
|
const t = this
|
const data = {id: t.id,unitType:t.checkUnitType}
|
let res = await getSpotCheckRecorder(data)
|
if(res.data.code === "200"){
|
t.corpInfo = res.data.result
|
}else{
|
t.dialogVisible = false
|
t.$message({
|
type:'warning',
|
message:res.data.message
|
})
|
}
|
},
|
toRectify(item){
|
const t = this
|
t.reportForm.info = item.spotCheckHiddendanger
|
t.reportForm.id = item.id
|
t.dialogReport = true
|
},
|
|
async confirmReport(formName){
|
const t = this
|
t.$refs[formName].validate(async (valid) => {
|
if(valid){
|
let {info,...data} = t.reportForm
|
let res = await updateSpotCheckRectifyInfo(data)
|
if(res.data.code === "200"){
|
t.$message({
|
type:'success',
|
message:res.data.message
|
})
|
}else{
|
t.$message({
|
type:'warning',
|
message:res.data.message
|
})
|
}
|
t.dialogReport = false
|
t.getEnterpriseInfo()
|
t.$parent.getSpotCheckList()
|
} else {
|
console.log('error submit!!');
|
return false;
|
}
|
})
|
},
|
resetForm(){
|
this.corpInfo ={
|
enterpriseName: '',
|
enterpriseProvince: '',
|
enterpriseCity: '',
|
enterpriseArea: '',
|
checkUnitType: null,
|
checkName: '',
|
checkTime: '',
|
hiddendangerStatus: null,
|
hiddendangerInfos: [],
|
hiddendangerSum: null,
|
majorHiddendangerNum: null
|
}
|
},
|
resetEdit(){
|
this.reportForm = {
|
id: null,
|
info: '',
|
completeRectifyTime: '',
|
rectifyPrice: null,
|
rectifyMeasure: '',
|
chargePerson: ''
|
}
|
},
|
confirmBack(){
|
this.dialogVisible = false
|
}
|
},
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.input-with-select .el-select {
|
width: 120px;
|
}
|
|
.el-date-editor.el-input{
|
width: 100%;
|
}
|
.dialog-title{
|
font-size: 22px;
|
font-weight: bolder;
|
}
|
.table-tit{
|
width: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
flex-flow: wrap;
|
background: #ecf5ff;
|
padding: 10px;
|
border-radius: 4px;
|
|
&>div{
|
width: 50%;
|
margin-bottom: 10px;
|
&:nth-of-type(3),&:nth-of-type(4){
|
margin-bottom: 0;
|
}
|
}
|
}
|
.corp-list{
|
.corp-table{
|
width: 100%;
|
border-collapse: collapse;
|
border: 1px solid #79bbff;
|
margin: 10px 0;
|
th{
|
padding: 10px 0;
|
border: 1px solid #79bbff;
|
border-bottom: 1px solid #ccc;
|
}
|
tr{
|
width: 100%;
|
height: 44px;
|
line-height: 42px;
|
border-bottom: 1px solid #ccc;
|
|
&:last-of-type{
|
border-bottom: none;
|
}
|
td{
|
border-right: 1px solid #ccc;
|
display: inline-block;
|
height: 44px;
|
vertical-align: middle;
|
text-align: center;
|
line-height: 42px;
|
|
&:last-of-type{
|
border-right: none;
|
}
|
::v-deep.el-textarea{
|
.el-textarea__inner{
|
min-height: 40px !important;
|
background-color: #ecf5ff;
|
border: 1px solid #d9ecff;
|
}
|
}
|
|
&.w-5{
|
width: 5%;
|
}
|
&.w-10{
|
width: 10%;
|
}
|
&.w-15{
|
width: 15%;
|
}
|
&.w-20{
|
width: 20%;
|
}
|
&.w-30{
|
width: 30%;
|
}
|
&.w-50{
|
width: 50%;
|
}
|
&.w-25{
|
width: 25%;
|
}
|
&.w-75{
|
width: 75%;
|
}
|
&.overText{
|
overflow: auto;
|
line-height: 1.5;
|
text-align: left;
|
padding: 10px;
|
&::-webkit-scrollbar { width: 0; height: 0; color: transparent }
|
&::scrollbar { width: 0; height: 0; color: transparent }
|
}
|
}
|
}
|
.b-font{
|
font-size: 16px;
|
font-weight: bolder;
|
}
|
::v-deep.mid{
|
.el-input__inner{
|
text-align: center;
|
background-color: #ecf5ff;
|
border: 1px solid #d9ecff;
|
}
|
}
|
}
|
.table-bottom{
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
margin-bottom: 10px;
|
}
|
}
|
</style>
|