<template>
  <div style="background-color:#f7f7f7;padding:10px 10px;">
    <div class="zhuti">
      <div style="height:58px;line-height:58px;">
        <div style="color:#0006"> <span>商铺租赁服务</span>   <span style="padding:0 5px;">></span>  <span style="color:#000000e6">出租管理</span></div>
      </div>
      <!-- 线上 -->
      <div>
        <!-- 搜索 -->
        <div class="formSearch">
          <el-form :inline="true" :model="formSel">
            <el-form-item label="商户名称">
              <el-input v-model="formSel.shopName" placeholder="请输入" style="width:168px;"/>
            </el-form-item>
            <el-form-item label="承租人">
              <el-input v-model="formSel.search" placeholder="请输入" style="width:168px;"/>
            </el-form-item>
<el-form-item label="租赁类型">
            <el-select v-model="formSel.createUser" placeholder="请选择"
              style="width:168px;margin-right: 15px">
              <el-option label="商铺" value="商铺" />
              <el-option label="场地" value="场地" />
              <el-option label="广告位" value="广告位" />
            </el-select>
            </el-form-item>
            <el-form-item label="资源名称">
              <el-input v-model="formSel.search" placeholder="请输入" style="width:168px;"/>
            </el-form-item>
            <el-form-item label="租赁起租日期">
             <el-input v-model="formSel.search" placeholder="请输入" style="width:168px;"/>
               </el-form-item>
          </el-form>
          <div>
            <el-button  @click="onSubmit"  style="background-color: #3F9B6A;color: #fff">查询
            </el-button>
            <el-button  @click="resetting"  class="buttonHover"
              style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
            </el-button>
          </div>
        </div>
        <!-- <div style="margin-bottom: 20px;">
          <div>
            <el-button
              style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">批量导出</el-button>
            <el-button
              style="background-color: #3F9B6A;color: #fff;padding:8px 15px;">导出</el-button>
          </div>
        </div> -->
        <!-- 表格 -->

        <el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
         :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
 >
          <el-table-column label="订单编号" min-width="150" prop="id">

          </el-table-column>
          <el-table-column label="商户名称"  min-width="150" prop="shopName">

          </el-table-column>
          <el-table-column label="承租人" prop="contractSigningDate"  min-width="200">
            <template slot-scope="scope">
              {{scope.row.contractSigningDate}}
            </template>
          </el-table-column>
          <el-table-column label="租赁类型" prop="associatedEvents" min-width="100">
          <template slot-scope="scope">
            {{scope.row.associatedEvents}}
          </template>
          </el-table-column>
          <el-table-column label="编号" prop="relatedMerchants" min-width="150">
          <template slot-scope="scope">
            {{scope.row.relatedMerchants}}
          </template>
          </el-table-column>
          <el-table-column label="资源名称" prop="contractName" min-width="200">
            <template slot-scope="scope">
              {{scope.row.contractName}}
            </template>
          </el-table-column>
          <el-table-column prop="contractType" label="租金"  min-width="80">
          <template slot-scope="scope">
            {{scope.row.contractType }}
          </template>
          </el-table-column>
          <el-table-column label="合同编号" prop="telephone"  min-width="150">
            <template slot-scope="scope">
              {{scope.row.telephone }}
            </template>
          </el-table-column>
          <el-table-column label="租赁起止时间" prop="leaseStartDate"  min-width="300">
            <template slot-scope="scope">
              {{scope.row.leaseStartDate }}
            </template>
          </el-table-column>
          <el-table-column prop="contractTerminationDate" label="租赁状态"  min-width="150">
            <template slot-scope="scope">
              {{scope.row.contractTerminationDate}}
            </template>
          </el-table-column>
          <el-table-column label="操作"  min-width="400">
            <template slot-scope="scope">
              <div @click="outlook(scope.row)" class="tableBtn greens">出租单查看</div>
               <div @click="details(1,scope.row)" class="tableBtn greens">编辑</div>
               <div @click="addbuss(3,scope.row)" class="tableBtn greens">发送入驻单</div>
               <!-- <div @click="addbuss(3,scope.row)" class="tableBtn greens">出租状态更改</div> -->
               <div class="tableBtn greens" @click="delList(scope.row)">删除</div>
            </template>
          </el-table-column>
        </el-table>
        <div class="fenye">
          <el-pagination :hide-on-single-page='flag' background small size="mini" :current-page="currentPage"
            :page-sizes="[10, 20, 50, 100]"  layout="prev, pager, next,total"
            :total="total " @size-change="handleSizeChange" @current-change="handleCurrentChange" />
        </div>
      </div>

      </div>
        <!-- 详情框 -->
            <el-dialog  :visible.sync="detbox" custom-class='bian_css' style="padding: 0;" width="75%"
                    center :close-on-click-modal="false"  :show-close="false">
                    <div style="padding:20px;">
                                       <div style="font-size: 14px;padding-bottom: 20px;color: #000;">租赁信息</div>
                                       <div style="margin-bottom: 10px;">
                                         <el-descriptions class="margin-top" :column="3"  border labelStyle="width:150px;height:42px;" contentStyle="width:20%;height:42px;">
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 租赁人
                                               </template>
                                               <span v-if="bianZt">{{formInline.tenant}}</span>
                                          <el-input v-model="formInline.tenant" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 意向租期
                                               </template>
                                               <span v-if="bianZt">{{formInline.intendedLeaseTerm}}</span>
                                               <el-input v-model="formInline.intendedLeaseTerm" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 意向租金
                                               </template>
                                               <span v-if="bianZt">{{formInline.intentionalRent}}</span>
                                               <el-input v-model="formInline.intentionalRent" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 租赁主体
                                               </template>
                                               <span v-if="bianZt">{{formInline.leasingEntity}}</span>
                                               <el-input v-model="formInline.leasingEntity" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 经营者
                                               </template>
                                               <span v-if="bianZt">{{formInline.operator}}</span>
                                               <el-input v-model="formInline.operator" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 状态
                                               </template>
                                               <span v-if="bianZt">{{formInline.state}}</span>
                                               <el-input v-model="formInline.state" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                           </el-descriptions>
                                       </div>
                                       <div style="">
                                          <el-descriptions class="margin-top" :column="3"  border labelStyle="width:150px;height:42px;" contentStyle="width:20%;height:42px;">
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 租赁类型
                                               </template>
                                               <span v-if="bianZt">{{formInline.leaseType}}</span>
                                               <el-input v-model="formInline.leaseType" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 编号
                                               </template>
                                               <span v-if="bianZt">{{formInline.leaseCode}}</span>
                                               <el-input v-model="formInline.leaseCode" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 名称
                                               </template>
                                             <span v-if="bianZt">{{formInline.leaseName}}</span>
                                             <el-input v-model="formInline.leaseName" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 行政区
                                               </template>
                                               <span v-if="bianZt">{{formInline.administrativeRegion}}</span>
                                               <el-input v-model="formInline.administrativeRegion" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 地址
                                               </template>
                                               <span v-if="bianZt">{{formInline.leaseAddress}}</span>
                                               <el-input v-model="formInline.leaseAddress" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 所属主体
                                               </template>
                                               <span v-if="bianZt">{{formInline.owner}}</span>
                                               <el-input v-model="formInline.owner" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 负责人
                                               </template>
                                               <span v-if="bianZt">{{formInline.commander}}</span>
                                               <el-input v-model="formInline.commander" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 联系电话
                                               </template>
                                               <span v-if="bianZt">{{formInline.telephone}}</span>
                                               <el-input v-model="formInline.telephone" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 范围
                                               </template>
                                               <span v-if="bianZt">{{formInline.scope}}</span>
                                               <el-input v-model="formInline.scope" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 面积
                                               </template>
                                               <span v-if="bianZt">{{formInline.area}}</span>
                                               <el-input v-model="formInline.area" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 建成时间
                                               </template>
                                               <span v-if="bianZt">{{formInline.completionTime}}</span>
                                               <el-input v-model="formInline.completionTime" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 房屋类型
                                               </template>
                                               <span v-if="bianZt">{{formInline.houseType}}</span>
                                               <el-input v-model="formInline.houseType" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 主要设施
                                               </template>
                                               <span v-if="bianZt">{{formInline.mainFacilities}}</span>
                                               <el-input v-model="formInline.mainFacilities" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 平面图
                                               </template>
                                               <span v-if="bianZt">{{formInline.planeFigure}}</span>
                                               <el-input v-model="formInline.planeFigure" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 收费标准
                                               </template>
                                               <span v-if="bianZt">{{formInline.feeStandards}}</span>
                                               <el-input v-model="formInline.feeStandards" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 标签
                                               </template>
                                               <span v-if="bianZt">{{formInline.label}}</span>
                                               <el-input v-model="formInline.label" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>

                                             <el-descriptions-item>
                                               <template slot="label">
                                                 宣传视频
                                               </template>
                                               <span v-if="bianZt">{{formInline.promotionVideo}}</span>
                                               <el-input v-model="formInline.promotionVideo" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 宣传图片
                                               </template>
                                               <span v-if="bianZt">{{formInline.promotionImage}}</span>
                                               <el-input v-model="formInline.promotionImage" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 备注信息
                                               </template>
                                               <span v-if="bianZt">{{formInline.notes}}</span>
                                               <el-input v-model="formInline.notes" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                           </el-descriptions>
                                       </div>
                                       <div style="font-size: 14px;padding: 20px 0;color: #000;">合同信息</div>
                                       <div>
                                          <el-descriptions class="margin-top" :column="3"  border labelStyle="width:150px;height:42px;" contentStyle="width:20%;height:42px;">
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同编号
                                               </template>
                                               <span v-if="bianZt">{{formInline.contractNumber}}</span>
                                               <el-input v-model="formInline.contractNumber" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 标段号
                                               </template>
                                               <span v-if="bianZt">{{formInline.sectionNumber}}</span>
                                               <el-input v-model="formInline.sectionNumber" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同名称
                                               </template>
                                               <span v-if="bianZt">232132</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同金额
                                               </template>
                                               <span v-if="bianZt">232132</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 保证金
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同签订日期
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同终止日期
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 起租日期
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 出租人名称
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                联系电话
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 银行账号
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 承租人名称
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 承租人联系电话
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 承租人银行账号
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 商铺编号
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 商铺名称
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 商铺地址
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 商铺面积
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 商品业态
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 经营项目
                                               </template>
                                               <span v-if="bianZt">1</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 合同附件
                                               </template>
                                               <span v-if="bianZt">点击上传</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                           </el-descriptions>
                                       </div>

                                       <div style="padding-top:20px;display:flex;justify-content: flex-end;">
                     <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"  @click="closeFn(2)">返回</el-button>
                     <!-- <el-button class="buttonHover" style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;" >删除</el-button> -->
                              <!-- <el-button  @click="bianZt = false"  style="background-color: #3F9B6A;color: #fff">编辑</el-button> -->
                              <!-- <el-button  @click="addbuss(2)"  style="background-color: #3F9B6A;color: #fff">发送入驻手续单</el-button> -->
                              <el-button  @click="addbuss(2)"  style="background-color: #3F9B6A;color: #fff">确认</el-button>

                                                   </div>
                    </div>

        </el-dialog>

        <!-- 入驻单 -->
                <el-dialog title="入驻申请"  :visible.sync="ggXin" custom-class="diaslog_zhong" style="padding: 0;" width="60%" class="dialog_css_Xq"  center :close-on-click-modal="false" :show-close="false"	>
                            <div>
                                  <div style="margin-bottom: 20px;">
                                  <el-form ref="form" :model="zhong" label-width="120px">
                                    <el-form-item label="甲方">
                                      <el-input v-model="zhong.name" disabled placeholder="张三"></el-input>
                                    </el-form-item>
                                    <el-form-item label="乙方">
                                      <el-input v-model="zhong.name"  disabled placeholder="成都火星科技有限公司"></el-input>
                                    </el-form-item>
                                    <el-form-item label="商铺名称">
                                      <el-input v-model="zhong.name" disabled placeholder="星空步道纪念品"></el-input>
                                    </el-form-item>
                                    <el-form-item label="商铺地址">
                                      <el-input v-model="zhong.name"  disabled placeholder="成都市金牛区万达广场1585号"></el-input>
                                    </el-form-item>
                                    <el-form-item label="商铺面积" >
                                      <el-input v-model="zhong.name"  disabled placeholder="104.2"></el-input>
                                    </el-form-item>
                                    <el-form-item label="起租日期">
                                      <el-input v-model="zhong.name"  disabled placeholder="2024-10-2"></el-input>
                                    </el-form-item>
                                    <el-form-item label="租赁期限">
                                      <el-input v-model="zhong.name"  disabled placeholder="3年"></el-input>
                                    </el-form-item>
                                      <el-form-item label="租金金额">
                                        <el-input v-model="zhong.name"  disabled placeholder="6000"></el-input>
                                      </el-form-item>
                                      <el-form-item label="租金支付方式">
                                        <el-input v-model="zhong.name"  disabled placeholder="微信"></el-input>
                                      </el-form-item>
                                      <el-form-item label="租金支付日期">
                                        <el-input v-model="zhong.name"  disabled placeholder="2024-10-3"></el-input>
                                      </el-form-item>
                                      <el-form-item label="押金金额">
                                        <el-input v-model="zhong.name"  disabled></el-input>
                                      </el-form-item>
                                      <el-form-item label="其他费用">
                                        <el-input v-model="zhong.name"  disabled></el-input>
                                      </el-form-item>
                                      <el-form-item label="使用用途">
                                        <el-input v-model="zhong.name"  disabled></el-input>
                                      </el-form-item>
                                      <el-form-item label="装修与改造规定">
                                        <wang-editor v-model="zhong.summary" ref="editor" :height="200"></wang-editor>
                                      </el-form-item>
                                      <el-form-item label="其他备注信息">
                                        <wang-editor v-model="zhong.summary" ref="editor" :height="200"></wang-editor>
                                      </el-form-item>
                                  </el-form>

                                  </div>
                                  <div style="display: flex;justify-content: flex-end;">
                                    <el-button  @click="closeFn(1)" class="buttonHover"
                      style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">返回</el-button>
                                  <el-button  @click="addCheck(4)" style="background-color: #3F9B6A;color: #fff">保存</el-button>
                                  <el-button  @click="yulan =true" style="background-color: #3F9B6A;color: #fff">预览</el-button>
                                    </div>
                            </div>
                            <el-dialog :visible.sync="yulan" custom-class="actSpye_dialog" style="padding: 0;" width="50%"   center :close-on-click-modal="false" 	append-to-body>
                                    <div style="padding:20px 0">
                                          <div class="form-container" ref="contentToConvert" style="background-color:#fff;">
                                                  <div class="form-header">入驻单</div>
                                                  <div class="form-group">
                                                      <label for="partyA">甲方：</label>
                                                      <input type="text" id="partyA" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="partyB">乙方：</label>
                                                      <input type="text" id="partyB" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="shopName">商铺名称：</label>
                                                      <input type="text" id="shopName" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="shopAddress">商铺地址：</label>
                                                      <input type="text" id="shopAddress" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="shopArea">商铺面积：</label>
                                                      <input type="text" id="shopArea" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label>起租日期：</label>
                                                      <input type="text" id="startDate">
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="leaseTerm">租赁期限：</label>
                                                      <input type="text" id="leaseTerm" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="rentAmount">租金金额：</label>
                                                      <input type="text" id="rentAmount" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="paymentMethod">租金支付方式：</label>
                                                      <input type="text" id="paymentMethod" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label>租金支付日期：</label>
                                                      <input type="text" id="paymentDate">
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="depositAmount">押金金额：</label>
                                                      <input type="text" id="depositAmount" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="otherFees">其他费用：</label>
                                                      <textarea id="otherFees" ></textarea>
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="usePurpose">使用用途：</label>
                                                      <input type="text" id="usePurpose" >
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="renovationRules">装修与改造规定：</label>
                                                      <div style="padding:20px;width:100%;border: 1px solid #ccc;" v-html="zhong.summary"></div>
                                                  </div>
                                                  <div class="form-group">
                                                      <label for="remarks">其他备注信息：</label>
                                                      <div style="padding:20px;width:100%;border: 1px solid #ccc;" v-html="zhong.summary"></div>
                                                  </div>
                                              </div>

                                          <div style="justify-content:flex-end;margin:20px 20px 0 0;display:flex;">
                                            <el-button @click="downloadPdf" style="background-color: #3F9B6A;color: #fff">下载</el-button>
                                            <!-- <el-button  style="background-color: #3F9B6A;color: #fff">打印</el-button> -->
                                            <!-- <el-button  style="background-color: #3F9B6A;color: #fff">发送</el-button> -->

                                          </div>
                                    </div>
                                                </el-dialog>
                </el-dialog>
                <!-- 出租单查看 -->
                <el-dialog  :visible.sync="outdan" custom-class="tongyong_css" style="padding: 0;" width="60%"
                  class="dialog_css_Xq" center :close-on-click-modal="false" :show-close="false">
                  <div style="padding:20px;">
                    <div style="font-size: 14px;padding-bottom: 20px;color: #000;">出租单</div>
                    <div>
                      <el-tabs v-model="xiangTabs">
                        <el-tab-pane label="商户档案信息" name="first">
                          <div style="width: 100%">
                          <el-form ref="ruleForm" :model="ruleForm" label-width="130px">
                            <el-form-item label="商家类型" prop="intentCustomerName">
                              <el-select v-model="ruleForm.entityType" placeholder="线上商家" style="width:100%" disabled>
                                <el-option label="线上商家" value="线上商家" />
                                <el-option label="实体商家" value="实体商家" />
                              </el-select>
                            </el-form-item>
                            <el-form-item label="经营主体" prop="entityType">
                              <el-select v-model="ruleForm.entityType" placeholder="企业" style="width:100%" disabled>
                                <el-option label="企业" value="企业" />
                                <el-option label="个人" value="个人" />
                              </el-select>
                            </el-form-item>
                            <el-form-item label="经营范围" prop="玩偶的设计、生产、销售及网上销售;玩偶相关配件及服饰的设计、生产与销售;玩偶的定制服务玩偶的进出口业务;玩偶文化的推广与传播,:以及与玩偶相关的技术咨询、技术服务">
                              <el-input v-model="ruleForm.contactPhone" placeholder="请输入" disabled/>
                            </el-form-item>
                            <el-form-item label="开店名称" prop="成都火星">
                              <el-input v-model="ruleForm.contactPhone" placeholder="请输入" disabled/>
                            </el-form-item>
                            <el-form-item label="地址" prop="contactPhone">
                              <el-input v-model="ruleForm.contactPhone" placeholder="成都市金牛区万达广场1585号" disabled/>
                            </el-form-item>
                            <el-form-item label="主体名称" prop="contactPhone">
                              <el-input v-model="ruleForm.contactPhone" placeholder="成都火星科技有限公司" disabled/>
                            </el-form-item>
                            <el-form-item label="统一社会信用代码" prop="contactPhone">
                              <el-input v-model="ruleForm.contactPhone" placeholder="321564545" disabled/>
                            </el-form-item>
                            <el-form-item label="类型" prop="entityType">
                              <el-select v-model="ruleForm.entityType" placeholder="有限责任公司" style="width:100%" disabled>
                                <el-option label="有限责任公司" value="有限责任公司" />
                              </el-select>
                            </el-form-item>
                            <el-form-item label="法定代表人" prop="contactPhone">
                              <el-input v-model="ruleForm.contactPhone" placeholder="张三" disabled/>
                            </el-form-item>
                            <el-form-item label="注册资本" prop="registeredCapital">
                              <el-input v-model="ruleForm.registeredCapital" placeholder="请输入" disabled/>

                            </el-form-item>
                            <el-form-item label="成立日期" prop="establishmentDate">
                              <el-input v-model="ruleForm.establishmentDate" placeholder="请输入" disabled/>
                            </el-form-item>
                            <el-form-item label="住所" prop="address">
                              <el-input v-model="ruleForm.address" placeholder="请输入" disabled/>
                            </el-form-item>
                            <el-form-item label="邮箱地址" prop="emailAddress">
                              <el-input v-model="ruleForm.emailAddress" placeholder="请输入" disabled/>
                            </el-form-item>
                            <el-form-item label="营业期限" prop="idCardPhotoBack">
                              <el-date-picker v-model="businessStartTime" type="daterange" range-separator="至" disabled
                                start-placeholder="开始时间" end-placeholder="结束时间" value-format="yyyy-MM-dd" />
                            </el-form-item>
                            <el-form-item label="营业执照" prop="businessLicense">
                              <!-- <upimg v-model="ruleForm.businessLicense" :limit="1" :fileSize="1"></upimg> -->
                              <img :src="ruleForm.businessLicense" alt="">
                            </el-form-item>
                            <el-form-item label="经营者姓名" prop="registeredCapital">
                              <el-input v-model="ruleForm.registeredCapital" placeholder="请输入" disabled/>

                            </el-form-item>
                          <el-form-item label="证件类型" prop="idCardType">
                            <el-select v-model="ruleForm.idCardType" placeholder="请选择" style="width:100%" disabled>
                              <el-option label="身份证" value="身份证" />
                            </el-select>
                          </el-form-item>
                            <el-form-item label="身份证号" prop="idCardNumber">
                              <el-input v-model="ruleForm.idCardNumber" placeholder="请输入" disabled/>
                            </el-form-item>

                            <el-form-item label="身份证有效期" prop="idCardNumber">
                              <el-date-picker v-model="idCardValidStart" type="daterange" range-separator="至" start-placeholder="开始时间" disabled
                                end-placeholder="结束时间" value-format="yyyy-MM-dd" />
                            </el-form-item>
                            <el-form-item label="身份证照片(正面)" prop="idCardPhotoFront">
                              <!-- <upimg v-model="ruleForm.idCardPhotoFront" :limit="1" :fileSize="1"></upimg> -->
                              <img :src="ruleForm.idCardPhotoFront" alt="">
                            </el-form-item>
                            <el-form-item label="身份证照片(反面)" prop="idCardPhotoBack">
                              <!-- <upimg v-model="ruleForm.idCardPhotoBack" :limit="1" :fileSize="1"></upimg> -->
                              <img :src="ruleForm.idCardPhotoBack" alt="">
                            </el-form-item>
                            <el-form-item label="是否为法人" prop="isLegalPerson">
                              <el-select v-model="ruleForm.isLegalPerson" placeholder="请选择" style="width:100%" disabled>
                                <el-option label="否" value="0" />
                                <el-option label="是" value="1" />

                              </el-select>
                            </el-form-item>
                            <el-form-item label="企业授权书" prop="enterpriseAuthorization">
                              <!-- <upimg v-model="ruleForm.enterpriseAuthorization" :limit="1" :fileSize="1"></upimg> -->
                              <img :src="ruleForm.enterpriseAuthorization" alt="">
                            </el-form-item>
                          </el-form>

                            </div>
                        </el-tab-pane>
                        <el-tab-pane label="商铺租赁信息" name="second">
                          <div style="width: 100%">
                          <div class="editcss">
                               <div class="titles">
                                   资源类型
                               </div>
                               <div style="padding: 20px;">
                                       <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                                         <el-form-item label="商铺名称" prop="shopName">
                                           <el-input v-model="ruleForm.shopName" placeholder="请输入"  style="margin-top: 5px;" :disabled="edit"></el-input>
                                         </el-form-item>
                                         <el-form-item label="场地编号" prop="venueNumber">
                                           <el-input v-model="ruleForm.venueNumber" disabled  placeholder="将根据类型自动为资源编号"  style="margin-top:5px;" disabled></el-input>
                                         </el-form-item>
                                         <el-form-item label="门牌号" prop="houseNumber">
                                           <el-input v-model="ruleForm.houseNumber" placeholder="请输入"  style="margin-top:5px;" :disabled="edit"></el-input>
                                         </el-form-item>

                                         <el-form-item label="建筑形式" prop="architecturalForm">
                                           <el-select v-model="ruleForm.architecturalForm" placeholder="请选择"  style="margin-top:5px;width: 100%;" :disabled="edit">
                                             <el-option label="框剪结构" value="框剪结构"></el-option>
                                             <el-option label="区域二" value="区域二"></el-option>
                                           </el-select>
                                         </el-form-item>
                                         <el-form-item label="所属绿道段" prop="belongingGreenwaySection">
                          <el-select v-model="ruleForm.belongingGreenwaySection" placeholder="请选择"  style="margin-top:5px;width: 100%;" :disabled="edit" @change="lvdaoBian">
                                        <el-option :label="item.name" :value="item.code" v-for="(item,index) in lvdaoList" :key="index"></el-option>

                                      </el-select>
                                         </el-form-item>
                                         <el-form-item label="所属公园/步道" prop="belongingParkTrail">
                                           <el-select v-model="ruleForm.belongingParkTrail" placeholder="请选择"  style="margin-top:5px;width: 100%;" :disabled="edit">
                                           <el-option :label="item.name" :value="item.code" v-for="(item,index) in biangongyuanList"></el-option>
                                           </el-select>
                                         </el-form-item>
                                         <el-form-item label="建筑面积" prop="floorSpace">
                                           <el-input v-model="ruleForm.floorSpace"   placeholder="请输入"  style="margin-top:5px;" :disabled="edit">
                                               <template slot="append">M<sup>2</sup></template>
                                           </el-input>
                                         </el-form-item>
                                           <el-form-item label="实际使用面积" prop="actualUsableArea">
                                             <el-input v-model="ruleForm.actualUsableArea"   placeholder="请输入"  style="margin-top:5px;" :disabled="edit">
                                                 <template slot="append">M<sup>2</sup></template>
                                             </el-input>
                                           </el-form-item>
                                           <el-form-item label="所属区域" prop="belongingRegion">
                                           <el-select v-model="ruleForm.belongingRegion" placeholder="请选择"  style="margin-top:5px;width: 100%;" :disabled="edit">
                                             <el-option label="成华区" value="成华区"></el-option>
                                             <el-option label="武侯区" value="武侯区"></el-option>
                                             <el-option label="锦江区" value="锦江区"></el-option>
                                             <el-option label="青羊区" value="青羊区"></el-option>
                                             <el-option label="金牛区" value="金牛区"></el-option>
                                             <el-option label="双流区" value="双流区"></el-option>
                                           </el-select>
                                         </el-form-item>
                                         <el-form-item label="归属部门" prop="belongingDepartment">
                                           <el-input v-model="ruleForm.belongingDepartment"   placeholder="请输入"  style="margin-top:5px;" :disabled="edit">
                                           </el-input>
                                         </el-form-item>
                                         <el-form-item label="负责人" prop="head">
                                            <el-input v-model="ruleForm.head"   placeholder="请输入"  style="margin-top:5px;" :disabled="edit">
                                              </el-input>
                                         </el-form-item>
                                         <el-form-item label="详细位置" prop="detailedLocation">
                                           <el-input v-model="ruleForm.detailedLocation"   placeholder="请输入"  style="margin-top:5px;" :disabled="edit">
                                           </el-input>
                                         </el-form-item>
                                         <el-form-item label="地图标点" prop="mapPunctuation">
                                             <div style="width: 100%;height: 100px;border: 1px solid #3F9B6A;">
                                               <MapXian :message="parentMessage"  :edit='edit' :sendMap='getChildDate'></MapXian>
                                             </div>
                                         </el-form-item>
                                         <el-form-item label="建筑图纸" prop="architecturalDrawings">
                               <!-- <upimg v-model="ruleForm.architecturalDrawings" :limit="5" :fileSize="1" v-if="edit==false"></upimg> -->
                               <img :src="ruleForm.architecturalDrawings" alt="" style="width:140px;height:140px;">
                                         </el-form-item>
                                          <el-form-item label="商铺描述" prop="shopDescription">
                                             <el-input type="textarea" v-model="ruleForm.shopDescription"  style="margin-top:5px;" placeholder="请输入" :disabled="edit" ></el-input>
                                           </el-form-item>
                                         <el-form-item label="展示主图" prop="displayMainImage">
                                          <!-- <upimg v-model="ruleForm.displayMainImage" :limit="1" :fileSize="1" v-if="edit==false"></upimg> -->
                                          <img :src="ruleForm.displayMainImage" alt="" style="width:140px;height:140px;">
                                         </el-form-item>
                                         <el-form-item label="其他图片/视频" prop="displayMainVidio">
                                            <!-- <upvidio v-model="ruleForm.displayMainVidio" :limit="3" v-if="edit==false"></upvidio> -->
                                            <img :src="ruleForm.displayMainVidio" alt="" style="width:140px;height:140px;">
                                         </el-form-item>
                                       </el-form>
                                    </div>
                             </div>

                                  <div class="editcss">
                                       <div class="titles">
                                        租赁信息
                                       </div>
                                       <div style="padding: 20px;">
                                         <el-descriptions class="margin-top" :column="3"  border labelStyle="width:150px;height:42px;" contentStyle="width:20%;height:42px;">
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 租赁人
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                          <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 意向租期
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 意向租金
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 租赁主体
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 经营者
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                             <el-descriptions-item>
                                               <template slot="label">
                                                 状态
                                               </template>
                                               <span v-if="bianZt">qweqw</span>
                                               <el-input v-model="formInline.search" placeholder="请输入" style="width:100%;" v-else/>
                                             </el-descriptions-item>
                                           </el-descriptions>
                                          </div>
                                           </div>
                                           <div class="editcss">
                                                <div class="titles">
                                                 合同信息
                                                </div>
                                                <div style="padding: 20px;">
                                                  <el-descriptions class="margin-top" :column="3"  border labelStyle="width:150px;height:42px;" contentStyle="width:20%;height:42px;">
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同编号
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         标段号
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同名称
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同金额
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         保证金
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同签订日期
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同终止日期
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         起租日期
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         出租人名称
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                        联系电话
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         银行账号
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         承租人名称
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         承租人联系电话
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         承租人银行账号
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         商铺编号
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         商铺名称
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         商铺地址
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         商铺面积
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         商品业态
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         经营项目
                                                       </template>

                                                     </el-descriptions-item>
                                                     <el-descriptions-item>
                                                       <template slot="label">
                                                         合同附件
                                                       </template>

                                                     </el-descriptions-item>
                                                   </el-descriptions>
                                                   </div>
                                                    </div>
                            </div>
                        </el-tab-pane>
                        <div style="margin-top: 20px;display: flex;justify-content: flex-end;">
                          <el-button  @click="outdan =false"  class="buttonHover"
                               style="color: #000;border: 1px solid #DBDBDB;background-color: #fff;">返回</el-button>
                          <!-- <el-button  @click="bianji"  style="background-color: #3F9B6A;color: #fff;">编辑</el-button> -->

                        </div>
                      </el-tabs>
                    </div>
                  </div>


                </el-dialog>
      </div>


</template>

<script>
  import {
    async
  } from 'q'
  import axios from 'axios'
  import {
  rentalGetAll,
  rentalDel,
  rentalAdd
  } from '../../../api/rentalMan.js'
import {
  businessListGetAll,
  businessListSave,
  businessListGetById,
  businessListUpdate,
  businessListStart,
  delBusinessById
} from '@/api/business'
  import upimg from "@/components/ImageUpload/index"
  import wangEditor from "@/components/editor/index"
  import html2canvas from 'html2canvas'
  import jsPDF from 'jspdf'
  export default {
    components: { wangEditor,upimg},
    data() {
      return {
        hetongBox:false,//合同
        detbox:false,//详情
        leixing:true,//切换
        yulan:false,//预览
        index:1,
        currentPage: 1,
        total: 100,
        flag: false,
        pageSize: 10,
        ggXin: false,
        formInline: {
         contractNumber:'',
         sectionNumber:'',
         contractName:'',
         contractAmount:'',
         earnestMoney:'',
         contractSigningDate:'',
         contractTerminationDate:'',
         leaseStartDate:'',
         lessorName:'',
         telephone:'',
         bankAccount:'',
         tenantName:'',
         tenantTelephone:'',
         tenantBankAccount:'',
         shopNumber:'',
         shopName:'',
         shopAddress:'',
         shopArea:'',
         storeFormats:'',
         businessProjects:'',
         appendicesContract:'',
        },
        tableData: [],
        formSel: {
          shopName:'',
          search:'',
          createUser:'',
        page: '1', // 当前页
        pageSize: '10' // 每页记录数
        },
        pageindex: {
          pageNumber: 1,
          pageSize: 10,
        },
        zhong:{
                  Num:'',
                  Name:'',
                  Time:'',
                  Data:'',
                  textarea:''
                },
                detaiList:{},
                bianZt:true,//编辑切换
                outdan:false,
                xiangTabs:'first',
                ruleForm:{},
                edit:true,
      }
    },
    created() {
        this.getAll()
    },
    computed: {

    },
    methods: {
      chenge(val){
        this.formSel={
          shopName:'',
          search:'',
          createUser:'',
        page: '1', // 当前页
        pageSize: '10' // 每页记录数
        }
        this.leixing  = !this.leixing

      },
      async getAll(val) {
        // const res = await rentalGetAll(this.pageindex)
        // console.log(res.data.content)
        // this.tableData = res.data.content
        // this.total = res.data.content.length
      },

      // 新增确定按钮
      async addCheck(val) {

            this.ggXin = false
             this.getAll()
      },
       // 获取时间
     currentTime(){
     let date = new Date();
     let year = date.getFullYear();//月份从0~11，所以加一
     let month= date.getMonth();
     let dateArr = [date.getMonth()+1,date.getDate(),date.getHours()]
     for(let i=0;i<dateArr.length;i++){
       if(dateArr[i] >=1 &&dateArr[i]<=9){
         dateArr[i] = '0' + dateArr[i]
       }
     }
     let strDate= year +'-' + dateArr[0] +'-' + dateArr[1]
     return strDate
     },

      //详情
      async details(val,item){
        if(val == 1){
          this.bianZt = false
        }else{
          this.bianZt = true
        }

          this.detbox = true

      },
      addbuss(val,item) {
        this.index = val
        this.detbox = false
        this.ggXin = true
      },
      handleSizeChange(val) {
        this.pageSize = val
      },
      handleCurrentChange(val) {
        this.currentPage = val
      },

      closeFn(val) {

       if(val == 1){
          this.ggXin = false
       }else{
         this.detbox = false
       }
      },
      // 详情编辑
     async bianji(){

          this.detbox = false
      },
      //查看合同
      lookHetong(val){
       this.hetongBox = true
      },
      // 查询按钮
    async  onSubmit() {
      const res = await businessListGetAll(this.formSel)
      this.total = res.data.total
      this.tableData = res.data.list
      },
      //重置按钮
      resetting(){
        this.formSel={
          shopName:'',
          search:'',
          createUser:'',
        page: '1', // 当前页
        pageSize: '10' // 每页记录数
        },
          this.tableData = []
      },
// 下载
 async downloadPdf() {
      const content = this.$refs.contentToConvert;

      // 使用 html2canvas 将 div 渲染为画布
      const canvas = await html2canvas(content);

      // 获取画布的图像数据
      const imgData = canvas.toDataURL('image/png');

      // 创建一个新的 PDF 文档
      const pdf = new jsPDF('p', 'mm', 'a4');

      // 添加图像到 PDF，第二个参数是图像格式，第三个参数是缩放比例
      const imgWidth = 190; // 图像的宽度（mm）
      const imgHeight = (canvas.height * imgWidth) / canvas.width; // 保持图像的宽高比

      pdf.addImage(imgData, 'PNG', 10, 10, imgWidth, imgHeight); // 10, 10 是图像在 PDF 中的位置（mm）

      // 保存 PDF 文件
      pdf.save('downloaded.pdf');
    },
    // 出租单查看
    outlook(item){
      this.outdan = true
    },
    delList(){

              const h = this.$createElement;
                      this.$msgbox({
                        title: '消息',
                        message: h('p', null, [
                          h('span', null, '是否删除当前记录 '),
                        ]),
                        showCancelButton: true,
                        showClose:false,
                        confirmButtonText: '确定',
                        cancelButtonText: '取消',
                        customClass:'oe-dialog-btn',
                        beforeClose: (action, instance, done) => {
                          if (action === 'confirm') {

                          done();
                          } else {
                            done();
                          }
            }
            })

    },
    }
  }
</script>

<style scoped>
  .zhuti {
    padding: 0  20px 20px 20px;
    min-height: calc(100vh - 50px - 20px);
    background-color: #Fff;

  }
  .chengeXia{
    border-bottom: 6px solid #3F9B6A;padding-bottom: 4px;color: #3F9B6A;
  }

  /deep/ .el-form-item__content {
    line-height: 0;
  }

  .tableBtn {
    display: inline-block;
    margin-right: 10px;
    color:#ACACAC;
  }

  .formSearch {
    display: flex;
    width: 100%;
    font-size: 14px;
    justify-content: space-between;
  }

  .greens {
    color: #3F9B6A;
  }

  /deep/ .el-table__row {
    font-size: 14px;
    color:#000000e6;
    height:42px;
  }

  .fenye {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
  }

  /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #3F9B6A;
  }

  .el-row {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .el-col {
    border-radius: 4px;
  }

  .bg-purple-dark {
    background: #99a9bf;
  }

  .bg-purple {
    background: #d3dce6;
  }

  .bg-purple-light {
    background: #e5e9f2;
  }

  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }

  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }

  /deep/ .bg-purple[data-v-0e3fe4ec] {
    background: #fff;
    height: 50px;
  }
    /deep/ .bg-purple[data-v-3bebae82]{
    background: #fff;
    height: 50px;
  }

::v-deep .bg-purple{
    background: #fff;
    height: 50px;
  }
  /deep/ .el-form--label-top .el-form-item__label {
    padding: 0;
  }
::v-deep .el-form-item{
  margin-bottom:16px;
}
  .device-form .el-form-item__label::after {
    content: "*";
    color: #1A1A1A;
    margin-left: 5px;
    font-size: 16px;
  }


  ::v-deep .el-dialog__wrapper {
    .el-dialog__header {
      background-color: #FAFAFA;
    }
  }
 ::v-deep .el-input__inner:focus {
      border: #3F9B6A 1px solid;
   }
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    border-top: solid rgba(209, 209, 209, 0.2) 2px;
    padding-top: 20px;
  }
 ::v-deep .el-input__inner:focus {
      border: #3F9B6A 1px solid;
   }
   ::v-deep .el-input__inner:hover {
        border: #3F9B6A 1px solid;
     }
     ::v-deep .el-select .el-input.is-focus .el-input__inner{
         border-color:#3F9B6A
     }

.el-select-dropdown__item.selected{
    color: #3F9B6A;
}

.el-pagination__sizes .el-input .el-input__inner:hover{
    border-color: #3F9B6A;
}
::v-deep .el-dialog__wrapper{

  .dialog_css{
      margin-right: 12px;
      margin-top:61px !important;
      .el-dialog__title {
        font-size: 16px !important;
        font-weight: 600;
        color: #000;
      }
  }
  .diaslog_zhong{
     margin-left: 20%;
     margin-top:61px !important;

  }

}
 ::v-deep .diaslog_zhong{
     margin-left: 20%;
     margin-top:61px !important;
     max-height:600px;
     overflow-y: auto;
     .el-dialog__header{
       background-color:#fff;
       border-bottom:1px solid #EFEFEF;
       .el-dialog__title{
         font-size: 14px;
          color: #000000e6;
       }
     }
     .el-dialog__body{
       padding:10px 20px 30px 20px
     }
  }

 /deep/ .el-table_1_column_8 .hetong{
   color:#7DBB9A;
   text-decoration: underline;
}
/deep/ .first-column-bg {
    background-color: #FAFAFA !important;
  }

::v-deep .textarea{
  width: 85%;
   .el-textarea__inner{
    width: 100%;
  }
}

::v-deep .pass_input{
    width: 100%;
    .el-input__inner {
      border: none;
       padding:0;
       }
  }
::v-deep .pass_select{
  width: 100%;
 .el-input__inner {
   border: none;
   padding:0;
    }
  .el-icon-arrow-up:before{
    content:''
  }

}
 /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{
  background-color: #fff;
}
  .form-container {
            max-width: 600px;
            margin: 0px auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 5px;
            background-color:#fff;
        }
        .form-group {
            margin-bottom: 15px;
            display:flex;
            align-items: center
        }
        .form-group label {
            display: block;
            font-weight: bold;
            margin-bottom: 5px;
            width: 152px;
        }
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .form-group textarea {
            resize: vertical;
        }
        .form-header {
            text-align: center;
            margin-bottom: 20px;
            font-size: 1.5em;
            font-weight: bold;
        }
        .jianju{
          margin-bottom:10px;
        }
        .titles{
          position: relative;
          padding-left: 10px;

        }

        .titles::before{
          content: '';
          width: 2px;
          height: 10px;
          background-color: #3F9B6A;
            position: absolute;
            top: 2px;
            left: 0;
        }
</style>
<style lang="scss" scoped>
  ::v-deep .bian_css{
    .el-dialog__header{
      padding:0px;
    }
    .el-input__inner{
       height: 18px;
       border: 0px;
       margin-top:0px;
     }
     .el-input__inner:hover{
       border: 0px;
     }
    .el-input__inner:focus {
      border: 0px;
    }
  }
  ::v-deep .buttonHover:hover{
    color:#3f9b6a !important;
    border-color: #c5e1d2 !important;
    background-color: #ecf5f0 !important;
    outline: none;
  }
  ::v-deep .el-pagination__total{
        position: absolute;
        left: 33px;
  }
  ::v-deep .diaslog_zhong{
    .el-dialog__body{
      padding:10px 20px 20px 20px;
    }
    .el-upload--picture-card{
      width:130px;
      height:130px;
    }
  }
::v-deep .editcss{
  font-size: 14px;
     .el-form-item__label{
       // color: #AEAEAE;
     }
}
</style>
