earthsitesInfo.vue 5.92 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.site.address}}</el-col>
           <el-col :span="6" class="bd_right bd_padding bd_lefts">工程类型</el-col>
           <el-col :span="6" class="bd_padding">{{infoData.projectTypeName}}</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.workAreaCodeName}}</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_padding">建设单位名称</el-col>
         <el-col :span="6" class="bd_padding bd_right bd_left">{{infoData.buildCompany}}</el-col>
             <el-col :span="6" class="bd_padding">建筑单位责任人</el-col>
             <el-col :span="6" class="bd_padding bd_left">{{infoData.site.principal}}</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.principalPhoneNo}}</el-col>
         <el-col :span="6" class="bd_right bd_padding bd_left">审批方量(m3)</el-col>
         <el-col :span="6" class="bd_padding ">{{infoData.capacity}}</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.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.lightingName}}</el-col>
         <el-col :span="6" class="bd_left bd_right bd_padding">视频监控设施</el-col>
         <el-col :span="6" class="bd_padding">{{infoData.monitorName}}</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.filledBy}}</el-col>
       </el-row>
       
       <el-row class="">
         <el-col :span="6" class="bd_right bd_padding">申请意见</el-col>
         <el-col :span="18" class="bd_padding">{{infoData.applyOpinion}}</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>