<template>
  <div>
    <div>
      <el-tabs v-model="xiangTab">
        <el-tab-pane label="申请内容" name="first">
          <div style="margin-top: 30px;" class="editcss">
            <TitleWithCircle title="租赁信息" />
            <div style="padding: 20px;margin-top: 10px;">
              <el-form :model="info" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="经营用途" prop="businessPurpose">
                      <div class="duiqi">{{info.businessPurpose}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="租期" prop="intendedLeaseTerm">
                      <div class="duiqi">{{info.intendedLeaseTerm}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <!-- <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="开店名称" prop="sectionNumber">
                      <div class="duiqi">{{info.sectionNumber}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="品牌名称" prop="contractName">
                      <div class="duiqi">{{info.contractName}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="租金方案" prop="contractSigningDate">
                      <div class="duiqi">{{info.contractSigningDate}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="租金" prop="earnestMoney">
                      <div class="duiqi">{{info.earnestMoney}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-form-item label="付款日" prop="leaseStartDate">
                  <div class="duiqi">{{info.leaseStartDate}}</div>
                </el-form-item>
                <el-form-item label="优惠政策" prop="contractTerminationDate">
                  <div class="duiqi">{{info.contractTerminationDate}}</div>
                </el-form-item>
                <el-form-item label="其他说明" prop="contractTerminationDate">
                  <div class="duiqi">{{info.contractTerminationDate}}</div>
                </el-form-item> -->
              </el-form>
            </div>
            <TitleWithCircle title="营业执照信息" />
            <div style="padding: 20px;margin-top: 10px;">
              <el-form :model="info" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="主体名称" prop="entityName">
                      <div class="duiqi">{{info.entityName}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
                      <div class="duiqi">{{info.unifiedSocialCreditCode}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="类型" prop="entityType">
                      <div class="duiqi">{{info.entityType}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="法定代表人" prop="legalRepresentative">
                      <div class="duiqi">{{info.legalRepresentative}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-form-item label="经营范围" prop="businessScope">
                  <div class="duiqi">{{info.businessScope}}</div>
                </el-form-item>
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="注册资本" prop="registeredCapital">
                      <div class="duiqi">{{info.registeredCapital}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="成立日期" prop="establishmentDate">
                      <div class="duiqi">{{info.establishmentDate}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-form-item label="住所" prop="residence">
                  <div class="duiqi">{{info.residence}}</div>
                </el-form-item>
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="邮箱地址" prop="emailAddress">
                      <div class="duiqi">{{info.emailAddress}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="营业期限" prop="businessStartDate">
                      <div class="duiqi">{{info.businessStartDate}} - {{info.businessEndDate}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-form-item label="营业执照" prop="businessLicense">
                  <!-- <div class="duiqi">{{info.businessLicense}}</div> -->
                  <!-- <el-image style="width: 200px;" :src="$baseURL+info.businessLicense" fit="contain"></el-image> -->
                  <div style="display: flex;">
                    <allimg v-if="item" :src="item" fit="contain"  v-for="item in info.businessLicense.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                  </div>
                </el-form-item>
              </el-form>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="商家信息" name="second">
          <div style="margin-top: 30px;" class="editcss">
            <TitleWithCircle title="基础信息" />
            <div style="padding: 20px;margin-top: 10px;">
              <el-form :model="shopMsg" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="姓名" prop="name">
                      <div class="duiqi">{{shopMsg.name}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="手机号" prop="phone">
                      <div class="duiqi">{{shopMsg.phone}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="9">
                    <el-form-item label="证件类型" prop="idCardType">
                      <div class="duiqi">{{shopMsg.idCardType}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="9">
                    <el-form-item label="身份证号码" prop="idCardNumber">
                      <div class="duiqi">{{shopMsg.idCardNumber}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-form-item label="身份证照片（正）" prop="idCardFrontImage">
                  <!-- <div style="margin-top: 10px;">
                    <el-image style="width: 200px;height:200px" :src="$baseURL+shopMsg.idCardFrontImage" fit="contain"></el-image>
                  </div> -->
                  <div style="display: flex;">
                    <allimg  :src="shopMsg.idCardFrontImage" fit="contain" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                  </div>
                </el-form-item>
                <el-form-item label="身份证照片（反）" prop="idCardBackImage">
                  <!-- <div style="margin-top: 10px;">
                    <el-image style="width: 200px;height:200px" :src="$baseURL+shopMsg.idCardBackImage" fit="contain"></el-image>
                  </div> -->
                  <div style="display: flex;">
                    <allimg  :src="shopMsg.idCardBackImage" fit="contain" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                  </div>
                </el-form-item>
              </el-form>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="资源信息" name="third">
          <div style="margin-top: 30px;" class="editcss">
            <TitleWithCircle title="基础信息" />
            <div style="padding: 20px;" v-if="info.cereBasicInformationShop.id">
              <el-form :model="info.cereBasicInformationShop" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="商铺名称" prop="shopName">
                      <div class="duiqi">{{info.cereBasicInformationShop.shopName}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="编号" prop="venueNumber">
                      <div class="duiqi">{{info.cereBasicInformationShop.venueNumber}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="商铺类型" prop="shopType">
                      <div class="duiqi">{{info.cereBasicInformationShop.shopType=='1'?'移动铺位':info.cereBasicInformationShop.shopType=='2'?'固定铺位':'无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="测绘面积" prop="surveyingArea">
                      <div class="duiqi">{{info.cereBasicInformationShop.surveyingArea?info.cereBasicInformationShop.surveyingArea+' ㎡': '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="产权面积" prop="propertyArea">
                      <div class="duiqi">{{info.cereBasicInformationShop.propertyArea?info.cereBasicInformationShop.propertyArea+' ㎡':'无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="实际使用面积" prop="actualUsableArea">
                      <div class="duiqi">{{info.cereBasicInformationShop.actualUsableArea?info.cereBasicInformationShop.actualUsableArea+' ㎡':'无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="所属区域" prop="belongingRegion">
                      <div class="duiqi">{{info.cereBasicInformationShop.belongingRegion || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="所属绿道段" prop="belongingGreenwaySection">
                      <div class="duiqi">{{getLvdaoNameByCode(info.cereBasicInformationShop.belongingGreenwaySection)|| '无'}}</div>
					  
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="门牌号" prop="houseNumber">
                      <div class="duiqi">{{info.cereBasicInformationShop.houseNumber || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="归属部门" prop="belongingDepartment">
                      <div class="duiqi">{{info.cereBasicInformationShop.belongingDepartment || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="负责人" prop="head">
                      <div class="duiqi">{{info.cereBasicInformationShop.head ||  info.cereBasicInformationVenue.responsiblePerson|| '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="联系人" prop="contacts">
                      <div class="duiqi">{{info.cereBasicInformationShop.contacts || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="联系方式" prop="telephone">
                      <div class="duiqi">{{info.cereBasicInformationShop.telephone || '无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>


                <el-form-item label="详细位置" prop="detailedLocation">
                  <div class="duiqi">{{info.cereBasicInformationShop.detailedLocation || '无'}}</div>
                </el-form-item>
                <el-form-item label="地图标点" prop="mapPunctuation">
                  <div style="width: 100%;height: 300px;">
                    <!-- :edit='edit' :sendMap='getChildDate' -->
                    <newmap :isx="false" :message="info.cereBasicInformationShop.mapPunctuation"></newmap>
                  </div>
                </el-form-item>
                <el-form-item label="建筑图纸" prop="architecturalDrawings">
                  <div v-if="info.cereBasicInformationShop.architecturalDrawings">
                    <!-- <img :src="$baseURL+item" alt="" style="width:140px;height:140px;margin-left: 15px;"
                      v-for="item in info.cereBasicInformationShop.architecturalDrawings.split(',')"> -->
                      <div style="display: flex;">
                        <allimg v-if="item" :src="item" fit="contain"  v-for="item in info.cereBasicInformationShop.architecturalDrawings.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                      </div>
                  </div>
                  <div  class="duiqi" v-else>无</div>
                </el-form-item>
                <el-form-item label="商铺描述" prop="shopDescription">
                  <div class="duiqi">{{info.cereBasicInformationShop.shopDescription || '无'}}</div>
                </el-form-item>
                <el-form-item label="展示主图" prop="displayMainImage">
                  <div style="display: flex;">
                    <allimg v-if="item" :src="item" fit="contain"  v-for="item in info.cereBasicInformationShop.displayMainImage.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                  </div>
                 
                  <!-- <BaseImage :src="file.address" fit="contain" class="card-img" :code="options.reqParams.code"
          :filePath="filePath" @handleDelete="handleDeleteImg(file, i)"
          @handleSetCover="handleSetCover(file, i)" :isSetCover="cmpOption.isSetCover" :forIndex="i" :onforIndex="onforIndex"/> -->
                  <!-- <img  v-for="item in info.cereBasicInformationShop.displayMainImage.split(',')" :src="$baseURL+item" alt="" style="width:140px;height:140px;margin-left: 15px;"> -->
                </el-form-item>
                <el-form-item label="其他视频" prop="otherImageVideos"  >
                  <div class="duiqi" :class="info.cereBasicInformationShop.otherImageVideos?'greens':''" @click ="info.cereBasicInformationShop.otherImageVideos?openfile(info.cereBasicInformationShop.otherImageVideos):''">{{info.cereBasicInformationShop.otherImageVideos?'查看详情':'无'}}</div>
                  <!-- <div class="duiqi" v-for="item in info.cereBasicInformationShop.otherImageVideos.split(',')">{{$baseURL+item}}</div> -->
                </el-form-item>
              </el-form>
            </div>
            <div style="padding: 20px;" v-if="info.cereBasicInformationVenue.id">
              <el-form :model="info.cereBasicInformationVenue" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="场地名称" prop="venueName">
                      <div class="duiqi">{{info.cereBasicInformationVenue.venueName  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="场地类型" prop="venueType">
                      <div class="duiqi">{{info.cereBasicInformationVenue.venueType  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="实际使用面积" prop="actualArea">
                      <div class="duiqi">{{info.cereBasicInformationVenue.actualArea  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="所属区域" prop="district">
                      <div  class="duiqi">{{info.cereBasicInformationVenue.district  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="归属部门" prop="department">
                      <div  class="duiqi">{{info.cereBasicInformationVenue.department  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
                    <el-form-item label="负责人" prop="responsiblePerson">
                      <div  class="duiqi">{{info.cereBasicInformationVenue.responsiblePerson  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="8">
                    <el-form-item label="联系人" prop="contact">
                      <div  class="duiqi">{{info.cereBasicInformationVenue.contact  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                  <el-col :span="8">
					  <el-form-item label="所属绿道段" prop="belongingGreenwaySection">
		<div class="duiqi">{{getLvdaoNameByCode(info.cereBasicInformationVenue.belongingGreenwaySection)|| '无'}}</div>
					  </el-form-item>
					    </el-col>
						 <el-col :span="8">
                    <el-form-item label="联系电话" prop="phoneNumber">
                      <div  class="duiqi">{{info.cereBasicInformationVenue.phoneNumber  || '无'}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
                <!-- <el-form-item label="详细位置" prop="detailedLocation">
                    <div  class="duiqi">{{info.cereBasicInformationVenue.detailedLocation  || '无'}}</div>
                </el-form-item> -->
                <el-form-item label="地图标点" prop="mapMarker" v-if="false">
                  <div style="width: 100%;height: 300px;">
                    <newmap :isx="false" :message="editbgid.detailedLocation"></newmap>
                    <!-- <indexall :isx="false" :message="info.cereBasicInformationVenue.detailedLocation?info.cereBasicInformationVenue.detailedLocation:''"></indexall> -->
                  </div>
                </el-form-item>
                <el-form-item label="场地描述" prop="description">
                  <!-- <div  class="duiqi">{{info.cereBasicInformationVenue.description  || '无'}}</div> -->
                  <div v-if="info.cereBasicInformationVenue.description"  class="duiqi" v-html="info.cereBasicInformationVenue.description"></div>
                  <div class="duiqi" v-else>无</div>
                </el-form-item>
                <el-form-item label="规划图纸" prop="planningDrawing">
                  <div v-if="info.cereBasicInformationVenue.planningDrawing">
                    <!-- <img :src="$baseURL+item" alt="" style="width:140px;height:140px;"
                      v-for="item in info.cereBasicInformationVenue.planningDrawing.split(',')"> -->
                      <div style="display: flex;">
                        <allimg v-if="item" :src="item" fit="contain"  v-for="item in info.cereBasicInformationVenue.planningDrawing.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                      </div>
                  </div>
                  <div  class="duiqi" v-else>无</div>
                </el-form-item>
                <el-form-item label="展示主图" prop="displayImage">
                  <!-- <div >
                    <img :src="$baseURL+item" alt="" style="width:140px;height:140px;"
                      v-for="item in info.cereBasicInformationVenue.displayImage.split(',')">
                  </div> -->
                  <div style="display: flex;">
                    <allimg v-if="item" :src="item" fit="contain"  v-for="item in info.cereBasicInformationVenue.displayImage.split(',')" style="width: 112px;height: 112px;border: 1px dotted #dcdfe6;border-radius: 2px;overflow: hidden;margin: 0 10px 10px 0;"/>
                  </div>
                </el-form-item>
                <el-form-item label="其他视频" prop="otherMedia"  >
                  <div class="duiqi" :class="info.cereBasicInformationVenue.otherMedia?'greens':''" @click ="info.cereBasicInformationVenue.otherMedia?openfile(info.cereBasicInformationVenue.otherMedia):''">{{info.cereBasicInformationVenue.otherMedia?'查看详情':'无'}}</div>
                </el-form-item>
              </el-form>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
    <!-- v-if='info.auditStatus == 1' -->
    <div v-if="info.auditStatus == 1  && issp == '2'">
      <!-- <div style="padding-left: 130px;margin: 25px 0;">
        <el-radio v-model="radio" label="2">同意</el-radio>
        <el-radio v-model="radio" label="3">拒绝</el-radio>
      </div> -->
      <TitleWithCircle title="审核情况"/>
      <div style="padding: 20px;">
        <el-form :model="info" label-width="130px" class="demo-ruleForm">
          <el-form-item label="状态">
            <el-radio v-model="radio" label="2">同意</el-radio>
            <el-radio v-model="radio" label="3">拒绝</el-radio>
          </el-form-item>
          <el-form-item label="审核意见">
            <el-input maxlength="200" show-word-limit rows="4" v-model="info.auditSuggestions" placeholder="请输入审核意见"
              type="textarea" />
          </el-form-item>
        </el-form>
      </div>
    </div>
    <div v-if="(info.auditStatus == '2' || info.auditStatus == '3') && xiangTab == 'first'">
      <TitleWithCircle title="审核结果"/>
      <div style="padding: 20px;">
        <el-form :model="info" label-width="100px" class="demo-ruleForm">
          <el-form-item label="状态">
            <div class="duiqi">{{info.auditStatus=='2'?'已通过':info.auditStatus=='3'?'不通过':'无'}}</div>
          </el-form-item>
          <el-form-item label="审核意见">
            <div class="duiqi">{{info.auditSuggestions || '无'}}</div>
          </el-form-item>
        </el-form>
      </div>
    </div>
    <div>
      <el-button v-if="info.auditStatus == 1 && issp == '2'" @click="minSev"
        style="background-color: #3F9B6A;color: #fff;">确定</el-button>
      <el-button class="buttonHover"
        style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
        @click="changetype">返回</el-button>
    </div>
  </div>
</template>

<script>
  import {
    queryByContractcontractNumber
  } from '../../api/commodityLease.js'
  import {
    businessListGetById
  } from '../../api/business.js'
  import TitleWithCircle from '@/components/top/index';
  import MapXian from "@/components/MapContainer/MapXian";
  import {
    cerePlatformMerchant
  } from '@/api/newly.js'
  import {
    msgedit,

  } from '@/api/cereBusinessInfo'
  import allimg from '@/components/chakan/allimg.vue';
  import newmap from "@/components/newmap/index";
  import indexall from "@/components/newmap/indexall";
  import {
  	gongyuan,
  	parkTrails,
  	lvdaoduan,
  } from '@/api/information.js';
  export default {
    components: {
      TitleWithCircle,
      MapXian,
      newmap,
      allimg,
      indexall
    },
    props: {
      info: {
        type: Object,
        default: function() {
          return {}; // 返回一个空数组作为默认值
        },
      },
      issp: {
        type: String,
        default: function() {
          return '1';
        },
      },
    },
    data() {
      return {
        radio: '2',
        ontype: '线上广告位',
        url: '',
        type: '1',
        tableData: [],
        xiangTab: 'first',
        siteIds: [],
        list: [],
        advIds: [],
        shopIds: [],
        shop: {},
        newshop: {},
        newinfo: {},
        parentMessage: {},
        pagequery: {
          pageNumber: 0,
          pageSize: 10,
          checkState:'2',
          phone: '',
        },
        shopMsg:{},
		lvdaoList:[]
      }
    },
    created() {
      console.log(this.info)
      this.pagequery.phone = this.info.applicant
      cerePlatformMerchant(this.pagequery).then(res=>{
         this.shopMsg = res.data.content[0]
      })
      if (this.info.cereAdvertisingInformation) {
        this.ontype = this.info.cereAdvertisingInformation.advertisingType
      }
	  this.getAll()
    },
    computed: {

    },
    methods: {
		async	getAll(){
			const lvdao = await lvdaoduan()
			const gongyua  = await parkTrails() 
			const budao = await gongyuan()
			const lvList = lvdao.data.concat(gongyua.data)
			
			this.lvdaoList = lvList.concat(budao.data)
		},
		getLvdaoNameByCode(code) {
		    // 若传入的 code 为空，直接返回空字符串
		    if (!code) {
		        return '';
		    }
		    // 遍历 this.lvdaoList 数组
		    for (let i = 0; i < this.lvdaoList.length; i++) {
		        const item = this.lvdaoList[i];
		        // 当传入的 code 等于 item 的 code 时，返回 item 的 name
		        if (item.code === code) {
		            return item.name;
		        }
		    }
		    // 若遍历完数组都没找到匹配的 code，返回空字符串
		    return '无';
		},
      minSev() {
        console.error(this.info)
        console.error(this.radio)

        msgedit({
          id: this.info.id,
          'auditStatus': this.radio,
          auditSuggestions: this.info.auditSuggestions,
          rentalResourcesId:this.info.rentalResourcesId
        }).then(res => {
          console.error(res)
          if (res.code == 200) {
            this.$message({
              message: '处理成功',
              type: 'success'
            })
            this.setmsg()
            this.info.auditStatus = this.radio
			  this.$emit('removeonaction', '1')
          } else {
            this.$message({
              message: '处理失败',
              type: 'error'
            })
          }
        })
      },
      async setmsg() {
        let t4 = this.info.auditSuggestions?this.info.auditSuggestions:'暂无'
        let t1 = this.info.cereBasicInformationShop.id?this.info.cereBasicInformationShop.shopName:this.info.cereBasicInformationVenue.id?this.info.cereBasicInformationVenue.venueName:'资源'
        let t2 = '很抱歉，您的'+t1+'申请未通过审核。原因说明：'+t4+'。请您根据审核意见修改资料后重新提交申请，感谢您的配合。'
        let t3 = '您申请的'+t1+'资源申请已通过，请前往“我的-我租赁的资产”中设置您的店铺信息。'
        let info = {
          type: '通知消息',
          phone: this.shopMsg.phone,
          content: {
            type: '1',
            title: this.radio == '2' ?'租赁审核申请已通过': this.radio == '3' ?'租赁审核申请未通过': '-',
            content: this.radio == '2' ?t3: this.radio == '3' ?t2: '-'
          },
        }
        await this.$setmsg(info);
      },
      openfile(e) {
        if (e) {
          const fullUrl = this.$baseURL + e;
		  console.log(fullUrl,'fullUrlfullUrlfullUrl')
          try {
            window.open(fullUrl, '_blank'); // 在新标签页中打开文件
          } catch (error) {
            console.error('打开文件失败:', error);
          }
        } else {
          console.error('无文件可查看');
        }
      },
      changetype() {
        this.xiangTab = 'first'
        if (this.type == '1') {
          this.$emit('removeonaction', '1')
        } else {
          this.type = '1'
        }
      },
      open(row) {
        console.error(row)
        this.type = '2'
        this.newinfo = row
        businessListGetById({
          shopId: row.relatedMerchants
        }).then(res => {
          console.log(res)
          this.newshop = res.data
        })
      },
      closeFn() {
        this.$emit('change', false);
      },
    }
  }
</script>
<style>
  .el-form-item__label {
    color: #a2a2a2;
  }

  .greens {
    color: #3F9B6A;
  }
</style>
