<template>
  <el-dialog title="详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false">

    <el-form label-width="150px">
      <el-row class="el-row-table">
        <el-col :span="12">
          <el-form-item label="隐患唯一编码">
            <span v-if="detailInfo.fHazardUniqueCode">{{ detailInfo.fHazardUniqueCode }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="自有编号">
            <span v-if="detailInfo.fHazardOutUniqueCode">{{ detailInfo.fHazardOutUniqueCode }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="检查记录编码">
            <span v-if="detailInfo.fCheckCode">{{ detailInfo.fCheckCode }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="涉及供气企业编码">
            <span v-if="detailInfo.fInvolveEnterpriseCode">{{ detailInfo.fInvolveEnterpriseCode }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="检查对象分类">
            <span v-if="detailInfo.fObjType">{{ $parent.fObjTypeFormat(detailInfo) }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="对象编码">
            <span v-if="detailInfo.fObjCode">{{ detailInfo.fObjCode }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="行政区县级行政区">
            <span v-if="detailInfo.fObjBelongRegionId">{{ $parent.countyInfo.find(item =>item.fId = detailInfo.fObjBelongRegionId).fName }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="监督检查时间">
            <span v-if="detailInfo.fCheckTime">{{ detailInfo.fCheckTime }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="隐患分类分级编码">
            <span v-if="detailInfo.fHazardTypeLevelId">{{ $parent.hiddenData.find(item => item.fInsStaInforId == detailInfo.fHazardTypeLevelId).fHazardName }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="整改状态">
            <span v-if="detailInfo.fRectificationStatus">{{ $parent.fRectificationStatusFormat(detailInfo) }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="整改资金/万元">
            <span v-if="detailInfo.fRectificationFund">{{ detailInfo.fRectificationFund }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="整改完成日期">
            <span v-if="detailInfo.fCompletionDate">{{ detailInfo.fCompletionDate }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="整改或管控措施描述">
            <span v-if="detailInfo.fControlMeasure">{{ detailInfo.fControlMeasure }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="是否执行">
            <span v-if="detailInfo.fIsEnforcement == '1'">是</span>
            <span v-else-if="detailInfo.fIsEnforcement == '0'">否</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="隐患整改前照片">
            <el-image
              :src="detailInfo.fBeforePicture"
              :preview-src-list="[detailInfo.fBeforePicture]"
              v-if="detailInfo.fBeforePicture != '' && detailInfo.fBeforePicture != null"
              :z-index=5000
              style="width: 200px;height: 200px;"
            ></el-image>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="隐患整改后照片">
            <el-image
              :src="detailInfo.fAfterPicture"
              :preview-src-list="[detailInfo.fAfterPicture]"
              v-if="detailInfo.fAfterPicture != '' && detailInfo.fAfterPicture != null"
              :z-index=5000
              style="width: 200px;height: 200px;"
            ></el-image>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="处罚措施">
            <span v-if="detailInfo.fEnforcementType">{{ $parent.fEnforcementTypeFormat(detailInfo) }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="处罚金额/万元">
            <span v-if="detailInfo.fPenaltyAmount">{{ detailInfo.fPenaltyAmount }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="执法日期">
            <span v-if="detailInfo.fPenaltyDate">{{ detailInfo.fPenaltyDate }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="其他执法情况说明">
            <span v-if="detailInfo.fPenaltyDesc">{{ detailInfo.fPenaltyDesc }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>

        <el-col :span="12">
          <el-form-item label="更新时间">
            <span v-if="detailInfo.fLastTime">{{ detailInfo.fLastTime }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>


        <el-col :span="12">
          <el-form-item label="备注">
            <span v-if="detailInfo.fRemark">{{ detailInfo.fRemark }}</span>
            <span v-else>-</span>
          </el-form-item>
        </el-col>
      </el-row>

    </el-form>

  </el-dialog>

</template>

<script>
  export default {
    name: "ins-ref-detail-info",
    data(){
        return{
          detailInfo: {
            fDeleteFlag: 0
          },
          detailOpen: false
        }
    }
  }
</script>

<style scoped>

</style>
