From 6de39d0cc846f2e827a6536ce1e4493de14f7b33 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期一, 28 十一月 2022 15:41:44 +0800 Subject: [PATCH] 修改 --- src/views/selfCheck/components/supervisionDetails.vue | 46 +++++++++++++++++++++++++++++++++++++++------- 1 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/views/selfCheck/components/supervisionDetails.vue b/src/views/selfCheck/components/supervisionDetails.vue index bd9355d..f08b203 100644 --- a/src/views/selfCheck/components/supervisionDetails.vue +++ b/src/views/selfCheck/components/supervisionDetails.vue @@ -5,6 +5,7 @@ :close-on-click-modal="false" width="75%" center + @open="getCheckUnitType()" @close="resetForm()" > <div slot="title" class="dialog-title"> @@ -42,9 +43,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 +60,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 +135,7 @@ <script> import {computePageCount} from "@/utils"; import { getSpotCheckRecorder, updateSpotCheckRectifyInfo } from "@/api/selfCheck"; - + import { getCheckUnitType } from "@/api/specialCheck" export default { name: "supervisionDetails", data(){ @@ -123,6 +143,7 @@ dialogVisible:false, dialogReport: false, id: null, + checkUnitType: null, unitType: null, enterpriseType: null, corpInfo:{ @@ -155,15 +176,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 @@ -191,7 +223,7 @@ if(res.data.code === "200"){ t.$message({ type:'success', - message:res.data.message + message: '提交成功' }) }else{ t.$message({ -- Gitblit v1.9.2