From 5a28e6e5194ddd3727fb5411c785bef0f29152bb Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期五, 25 十一月 2022 16:15:07 +0800 Subject: [PATCH] 新增有效期限 --- src/views/selfCheck/components/supervisionDetails.vue | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/src/views/selfCheck/components/supervisionDetails.vue b/src/views/selfCheck/components/supervisionDetails.vue index a05d2f0..7fca71a 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: #409EFF" @click="toRectify(item)">去整改</span> </span> <span v-else> {{item.completeRectifyTime + '整改完成'}} @@ -134,7 +135,7 @@ <script> import {computePageCount} from "@/utils"; import { getSpotCheckRecorder, updateSpotCheckRectifyInfo } from "@/api/selfCheck"; - + import { getCheckUnitType } from "@/api/specialCheck" export default { name: "supervisionDetails", data(){ @@ -142,6 +143,7 @@ dialogVisible:false, dialogReport: false, id: null, + checkUnitType: null, unitType: null, enterpriseType: null, corpInfo:{ @@ -174,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 -- Gitblit v1.9.2