earthsitesInfo.vue 7.39 KB
<template>
  <div v-loading="loading" style="border:1px solid black;">
        <el-row class="bd_bottom" >
          <el-col :span="6" class="bd_right bd_padding">消纳场名称</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.site.name}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">证书编号</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.certificateNo}}</el-col>
        </el-row>
        <el-row class="bd_bottom" >
          <el-col :span="6" class="bd_right bd_padding">消纳场类型</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.typeName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">所在区域</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.areaName}}</el-col>
        </el-row>
        <el-row class="bd_bottom" >
          <el-col :span="6" class="bd_right bd_padding">所在地址</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.site.address}}</el-col>
            <el-col :span="6" class="bd_left bd_right bd_padding">作业区域</el-col>
            <el-col :span="6" class="bd_padding">{{infoData.workAreaCodeName}}</el-col>
        </el-row>

        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">备案方量(m³)</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.capacity}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">建筑垃圾类型</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.buildWasteTypeName}}</el-col>
        </el-row>
        <el-row class="bd_bottom" >
            <el-col :span="6" class="bd_right bd_padding">建筑单位责任人</el-col>
            <el-col :span="6" class="bd_padding">{{infoData.site.principal}}</el-col>
            <el-col :span="6" class="bd_left bd_right bd_padding">责任人联系电话</el-col>
            <el-col :span="6" class="bd_padding">{{infoData.site.principalPhoneNo}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">有效期开始时间</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.site.effectiveFrom}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">有效期结束时间</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.site.effectiveEnd}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">建设单位名称</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.buildCompany}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">建设单位地址</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.buildCompanyAddress}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">洗车平台</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.washingPlatformName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">出口道路状况</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.exitRoadConditionsName}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">安全警示</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.safetyAlertName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">洗车水枪数</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.washingGunNum}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">排水沟</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.drainageDitchName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">沉淀池</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.sedimentationTankName}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">电动栏杆</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.electricRailingsName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">水电</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.hydroelectricityName}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">工程类型</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.projectTypeName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding"></el-col>
          <el-col :span="6" class="bd_padding"></el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">其他情形</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.otherSituationsName}}</el-col>
          <el-col :span="6" class="bd_left bd_right bd_padding">填表人名称</el-col>
          <el-col :span="6" class="bd_padding">{{infoData.filledBy}}</el-col>
        </el-row>
        <el-row class="bd_bottom">
          <el-col :span="6" class="bd_right bd_padding">申请意见</el-col>
          <el-col :span="18" class="bd_padding">{{infoData.applyOpinion}}</el-col>
        </el-row>
        <el-row >
          <el-col :span="6" class="bd_right bd_padding">电子围栏</el-col>
          <el-col :span="18" class="bd_padding">{{infoData.site.coord}}</el-col>
        </el-row>
  </div>
</template>

<script>


import store from "@/store";
  import {
    getToken
  } from "@/utils/auth";


  import {
    earthsitesById,
    getArea,
    getDict
  } from "@/api/dict";


  export default {
    name: "ThreestepInfo",
    props: {
      businessKey: {
        type: String
      },
    },
    data() {
      return {
        sign: store.getters.avatar, //裁剪图片的地址
        areas: [],
        loading: null,

        infoData: {},
      }
    },
    created() {
      this.loading = true;
      this.getInfo();

    },
    methods: {
      getInfo() {
        let id;
        if (this.businessKey.split(":").length == 2) {
          id = this.businessKey.split(":")[1];
        } else {
          id = this.businessKey;
        }

        earthsitesById(id).then(response => {

           this.infoData = response.result;

           let type = {"type":"CSDisSiteType"};
           getDict(type).then(res=>{
                for(var i in res.result){

               if(this.infoData.disposalType == res.result[i].code){
                            this.infoData.disposalType = res.result[i].name;
               }
             }
           });

           type = {"type":"CSDisSiteProjectType"};
           getDict(type).then(res=>{
             for(var i in res.result){
               if(this.infoData.projectType == res.result[i].code){
                this.infoData.projectType = res.result[i].name;
               }

             }
           });

          // type = {"type":"CSDisSiteType"};
          //  getDict(type).then(res=>{
          //    for(var i in res.result){

          //      // for(let j in this.infoData.buildWasteType.split(,)){



          //      // }

          //      // if(this.infoData.buildWasteType == res.result[i].code){

          //      //   this.infoDate.buildWasteType = res.result[i].name;
          //      // }

          //    }

          //  });

          this.loading = false;
        });
      },
    }

  }
</script>