From 34ec919649adfefeecd0418284dd7b02e9ed49b8 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期三, 23 四月 2025 15:42:17 +0800 Subject: [PATCH] 添加批发仓库监测预警 --- src/views/selfCheck/components/supervisionDetails.vue | 109 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 96 insertions(+), 13 deletions(-) diff --git a/src/views/selfCheck/components/supervisionDetails.vue b/src/views/selfCheck/components/supervisionDetails.vue index 6afdea9..40da571 100644 --- a/src/views/selfCheck/components/supervisionDetails.vue +++ b/src/views/selfCheck/components/supervisionDetails.vue @@ -5,24 +5,26 @@ :close-on-click-modal="false" width="75%" center + @open="getCheckUnitType()" @close="resetForm()" > <div slot="title" class="dialog-title"> - 烟花爆竹批发企业自查情况信息报送表 + 烟花爆竹{{enterpriseType==1?'批发':(enterpriseType==2?'零售':'')}}企业检查情况反馈表 + <div v-if="corpInfo.hiddendangerStatus==0">应急检查无隐患</div> </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.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> + <tr class="special-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> + <td class="m-color w-25 spe"><div><span>是否检查出隐患问题</span><p>(如与其他单位共同检查,检查次数计入本单位,但隐患问题不计入本单位,亦选“否”)</p></div></td> + <td class="m-color w-25" :class="corpInfo.hiddendangerStatus==1?'warning':'normal'">{{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"> @@ -42,9 +44,9 @@ <td class="w-10">{{item.rectifyPrice}}</td> <td class="w-10">{{item.chargePerson}}</td> <td class="w-20 overText"> - <span v-if="item.rectifyStatus == 0"> + <span v-if="!item.rectifyStatus"> 未整改 - <el-button type="text" @click="toRectify(item)">去整改</el-button> + <span v-if="unitType == -1" style="cursor: pointer;color: #034ea2" @click="toRectify(item)">去整改</span> </span> <span v-else> {{item.completeRectifyTime + '整改完成'}} @@ -59,6 +61,25 @@ <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">--> @@ -115,7 +136,7 @@ <script> import {computePageCount} from "@/utils"; import { getSpotCheckRecorder, updateSpotCheckRectifyInfo } from "@/api/selfCheck"; - + import { getCheckUnitType } from "@/api/specialCheck" export default { name: "supervisionDetails", data(){ @@ -123,7 +144,9 @@ dialogVisible:false, dialogReport: false, id: null, - unitType: 1, + checkUnitType: null, + unitType: null, + enterpriseType: null, corpInfo:{ enterpriseName: '', enterpriseProvince: '', @@ -154,15 +177,26 @@ } }, created() { - const t = this - // t.getEnterpriseInfo() + + }, + 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.unitType} + const data = {id: t.id,unitType:t.checkUnitType} let res = await getSpotCheckRecorder(data) if(res.data.code === "200"){ t.corpInfo = res.data.result @@ -190,7 +224,7 @@ if(res.data.code === "200"){ t.$message({ type:'success', - message:res.data.message + message: '提交成功' }) }else{ t.$message({ @@ -250,6 +284,21 @@ .dialog-title{ font-size: 22px; font-weight: bolder; + position: relative; + + div{ + position: absolute; + background: #67C23A; + color: #fff; + right: 40px; + top: 50%; + font-size: 16px; + padding: 6px 15px; + border-radius: 2px; + letter-spacing: 1px; + font-weight: normal; + transform: translateY(-50%); + } } .table-tit{ width: 100%; @@ -341,6 +390,40 @@ &::scrollbar { width: 0; height: 0; color: transparent } } } + .warning{ + color: red; + } + .normal{ + color: #67C23A; + } + } + .special-tr{ + height: 84px; + td{ + height: 84px; + line-height: 84px; + + &.spe{ + line-height: 16px !important; + div{ + height: 84px; + display: flex; + flex-direction: column; + justify-content: center; + + span{ + margin-bottom: 6px; + } + p{ + color: red; + margin: 0; + line-height: 16px !important; + } + } + + } + + } } .b-font{ font-size: 16px; -- Gitblit v1.9.2