<template>
  <a-spin :spinning="uploading" size="large" tip="正在提交资料，请勿关闭当前网页...">
    <!--  客户信息-->
    <a-page-header
      style="background-color: #FFFFFF;margin-bottom:10px"
      title="特审复开资料填写"
      sub-title=""
      @back="back"
    >
      <div>
        <a-form-model
          ref="form"
          :model="infoModel"
          :rules="rules"
        >
          <a-row>
            <a-col :span="6">
              <a-form-model-item label="用户选择" prop="userOpenState" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.userLable == '0' ? '个人户' : '单位户' }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6">
              <a-form-model-item label="申请复开号码" prop="openingNumber" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.openingNumber }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6">
              <a-form-model-item label="客户名称(使用人)" prop="customerName" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.customerName }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6" v-if="infoModel.userLable == '1'">
              <a-form-model-item label="单位名称" prop="unitName" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.unitName }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6">
              <a-form-model-item label="客户经理手机号" prop="accountManagerPhone" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.accountManagerPhone }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6">
              <a-form-model-item label="最后一次关停时间" prop="shutdownTime" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.shutdownTime }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="6">
              <a-form-model-item label="申请复开原因" prop="reasonReopening" v-bind="labelCol4">
                <span class="cornflowerblue">{{ infoModel.reasonReopening }}</span>
              </a-form-model-item>
            </a-col>

            <a-col :span="24">
              <a-form-model-item label="材料标签选择" prop="userOpenState" v-bind="labelCol1">
                <a-radio-group :disabled="true" v-model="infoModel.materialLabel" button-style="solid">
                  <span class="cornflowerblue">{{ infoModel.materialLabel == '0' ? '材料不全（有特审/签报）' : '材料齐全（无特审）' }}</span>
                </a-radio-group>
              </a-form-model-item>
            </a-col>


            <a-col :span="24">
              <a-form-model-item label="关停标签选择" prop="userOpenState" v-bind="labelCol1">
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('0') > -1">安防停机（高危漫游地）</span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('1') > -1">安防关停（紫名单）</span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('2') > -1">安防停机（专班研判）</span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('3') > -1">安防停机（可复开）</span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('4') > -1">沉默移动卡保护性单停 </span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('5') > -1">集团一点停复机（单停） </span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('6') > -1">大数据保护停机单停 </span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('7') > -1">工信部断卡单停 </span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('8') > -1">实人核验未通过关停（单停）</span>
                <span class="cornflowerblue" v-if="infoModel.shutdownLabel.indexOf('999') > -1">其他 {{ infoModel.shutdownLabelOther }} </span>
              </a-form-model-item>
            </a-col>

            <div>
              <a-form-model-item label="稽核状态" prop="basicCheckState" v-bind="labelCol1">
                <a-radio-group v-model="specialResult.basicInfoState">
                  <a-radio :value="0">未通过</a-radio>
                  <a-radio :value="1">通过</a-radio>
                </a-radio-group>
              </a-form-model-item>
              <a-form-model-item label="稽核结果" prop="basicCheckNote" v-bind="labelCol1">
                <a-textarea
                  v-model="specialResult.basicInfoNote"
                  placeholder="请输入稽核结果"
                />
                <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
              </a-form-model-item>
            </div>

          </a-row>

        </a-form-model>
      </div>
    </a-page-header>

    <!--    步骤条-->
    <a-card style="margin-bottom:10px;width: 15%;float: left">
      <a-steps direction="vertical" :current="steps.current" size="small" @change="stepsClick">
        <a-step v-for="item in steps.stepsNow" :key="item.title"  :status="item.status">
          <a-icon v-if="item.solution && item.status=='error' " style='color: #faad14;'  type="solution" slot="icon"/>
          <span v-if="item.solution && item.status=='error'"  style='color: #faad14;'  slot="title">{{item.title}}</span>
          <a-icon v-if="item.solution && item.status=='finish' " style='color: #52c41a;'  type="solution" slot="icon"/>
          <span v-if="item.solution && item.status=='finish'"  style='color: #52c41a;'  slot="title">{{item.title}}</span>
          <span v-if="item.status=='error' && !item.solution" style="color: red" slot="title">{{ item.title }}</span>
          <span v-if="item.status=='finish' && !item.solution" slot="title">{{ item.title }}</span>
          <span v-if="item.status=='process' && !item.solution" slot="title">{{ item.title }}</span>
          <span v-if="item.status=='wait'" slot="title">{{ item.title }}</span>
        </a-step>
      </a-steps>
      <a-button @click="submitSpecial" style="width: 100%;position: relative;top: 10px" type="primary">提交稽核</a-button>
    </a-card>

    <!--    系统实名制截图-->
    <a-card v-if="steps.currentId == 'nameFindCompliance'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px">系统实名制截图</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.nameFindComplianceState"
                         @change="basicCheckClick(specialResult.nameFindComplianceState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.nameFindComplianceNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="实名制截图备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.nameFindComplianceRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <!--      文件上传-->
        <div class="file-div-minio-upload">
          <div class="thumb-example" style="position: relative">
            <!-- swiper1 -->
            <swiper
              class="swiper gallery-top"
              :options="swiperOptionTop"
              ref="swiperTop"
            >
              <swiper-slide class="slide-1" v-for="(item, index) in infoModel.nameFindCompliance" :key="item.id">
                <iframe
                  v-if="item.urlBase"
                  frameborder="1"
                  :src="item.urlBase"
                  ref="ifr"
                  style="position: relative;"
                  width="100%"
                  height="500px"
                  scrolling="auto">
                </iframe>
                <img style="width: 100%;height: 500px;border: 1px solid;"
                     v-if="!item.urlBase" :src="noDataPng" border="1">
                <a-button
                  style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                  v-if="infoModel.nameFindCompliance.length && item.urlBase"
                  @click="jumpUrl(item.url)">下载
                </a-button>
                <a-button
                  style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                  v-if="infoModel.nameFindCompliance.length && item.urlBase"
                  @click="jumpUrl(item.urlBase)">预览
                </a-button>

              </swiper-slide>
              <!--            <div
                            class="swiper-button-next swiper-button-white"
                            slot="button-next"
                          ></div>
                          <div
                            class="swiper-button-prev swiper-button-white"
                            slot="button-prev"
                          ></div>-->
            </swiper>
            <!-- swiper2 Thumbs -->
            <swiper
              class="swiper gallery-thumbs"
              :options="swiperOptionThumbs"
              ref="swiperThumbs"
            >
              <swiper-slide
                class="slide"
                style="width:100px;height:100px;"
                v-for="(item, index) in infoModel.nameFindCompliance"
                :key="item.id"
              >
                <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                  <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
                </div>

                <img style="width: 100%;height: 96px"
                     v-if="!item.urlBase" :src="noDataPng" border="1">

              </swiper-slide>
              <!--              点我上传文件按钮-->
              <div class="clearfix">
                <a-upload
                  listType="picture-card"
                  name="file"
                  :multiple="false"
                  :action="importMinioUploadAction"
                  :customRequest="e => selfUploadContract(e, 'nameFindCompliance')"
                  :headers="tokenHeader"
                  :showUploadList="false"
                  :beforeUpload="importBeforeUpload"
                  @change="importHandleChange"
                >

                </a-upload>

              </div>

              <div class="swiper-button-next swiper-button-white" slot="button-next">
                <div>
                  <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
                </div>
              </div>
              <div class="swiper-button-prev swiper-button-white" slot="button-prev">
                <div>
                  <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
                </div>
              </div>
            </swiper>
          </div>
        </div>

      </div>
    </a-card>

    <!--      身份证照片正反面-->
    <a-card v-if="steps.currentId == 'fileListIdCard'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px">身份证照片正反面</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.idCardState" @change="basicCheckClick(specialResult.idCardState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.idCardNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="身份证正反面备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.fileListIdCardRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.fileListIdCard" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.fileListIdCard.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.fileListIdCard.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.fileListIdCard"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'fileListIdCard')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--      手持半身照-->
    <a-card v-if="steps.currentId == 'handCertificate'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px">手持证件半身照片</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.handCertificateState"
                         @change="basicCheckClick(specialResult.handCertificateState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.handCertificateNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="手持身份证半身照片备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.handCertificateRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handCertificate" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.handCertificate.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.handCertificate.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.handCertificate"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'handCertificate')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--      防诈骗承若函-->
    <a-card v-if="steps.currentId == 'fraudPrevention'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 防诈骗承诺涵（使用人签署）</span>
      </div>
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.fraudPreventionState"
                         @change="basicCheckClick(specialResult.fraudPreventionState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.fraudPreventionNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
        <a-form-model-item style="width: 90%;" label="防诈骗承诺涵备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.fraudPreventionRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.fraudPrevention" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                style="position: relative;"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.fraudPrevention.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.fraudPrevention.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.fraudPrevention"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'fraudPrevention')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>
      <!--      附件-->

    </a-card>

    <!--      特审单-->
    <a-card v-if="steps.currentId == 'specialReviewForm'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 特审单</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.specialReviewFormState"
                         @change="basicCheckClick(specialResult.specialReviewFormState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.specialReviewFormNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
        <a-form-model-item style="width: 90%;" label="特审单备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.specialReviewFormRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.specialReviewForm" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.specialReviewForm.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.specialReviewForm.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.specialReviewForm"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'specialReviewForm')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--    单位户-使用人证件-->
    <a-card v-if="steps.currentId == 'userCertificate'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 使用人证件</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.userCertificateState"
                         @change="basicCheckClick(specialResult.userCertificateState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.userCertificateNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
        <a-form-model-item style="width: 90%;" label="使用人证件备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.userCertificateRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.userCertificate" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.userCertificate.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.userCertificate.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>


            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.userCertificate"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'userCertificate')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--    单位户-营业执照副本(盖公章)-->
    <a-card v-if="steps.currentId == 'businessLicense'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 营业执照副本(盖公章)</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.businessLicenseState"
                         @change="basicCheckClick(specialResult.businessLicenseState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.businessLicenseNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="使用人证件备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.businessLicenseRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.businessLicense" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.businessLicense.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.businessLicense.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>


            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.businessLicense"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'businessLicense')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--    单位户-介绍信-->
    <a-card v-if="steps.currentId == 'letterIntroduction'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 介绍信</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.letterIntroductionState"
                         @change="basicCheckClick(specialResult.letterIntroductionState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.letterIntroductionNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="介绍信备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.letterIntroductionRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.letterIntroduction" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.letterIntroduction.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.letterIntroduction.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.letterIntroduction"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'letterIntroduction')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

    <!--    个人户-号卡照片-->
    <a-card v-if="steps.currentId == 'numberCard'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 号卡照片</span>
      </div>
      <!--      附件-->
      <div>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.numberCardState"
                         @change="basicCheckClick(specialResult.numberCardState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.numberCardNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="号卡照片备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.numberCardRemark }}</a-tag>

          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.numberCard" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.numberCard.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.numberCard.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.numberCard"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'numberCard')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>
    <!--    个人户-手持号卡照片-->
    <a-card v-if="steps.currentId == 'handNumberCard'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 手持号卡照片</span>
      </div>
      <!--      附件-->
      <div>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.handNumberCardState"
                         @change="basicCheckClick(specialResult.handNumberCardState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.handNumberCardNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="手持号卡照片备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.handNumberCardRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handNumberCard" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.handNumberCard.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.handNumberCard.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.handNumberCard"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'handNumberCard')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>
    <!--    消费凭证-->
    <a-card v-if="steps.currentId == 'consumptionVoucher'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 消费凭证</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.consumptionVoucherState"
                         @change="basicCheckClick(specialResult.consumptionVoucherState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.consumptionVoucherNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="消费凭证备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.consumptionVoucherRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.consumptionVoucher" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.consumptionVoucher.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.consumptionVoucher.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.consumptionVoucher"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'consumptionVoucher')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>
    <!--    承诺视频-->
    <a-card v-if="steps.currentId == 'commitmentVideo'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 承诺视频</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.commitmentVideoState"
                         @change="basicCheckClick(specialResult.commitmentVideoState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.commitmentVideoNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="承诺视频备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.commitmentVideoRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.commitmentVideo" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.commitmentVideo.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.commitmentVideo.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.commitmentVideo"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'commitmentVideo')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>
    <!--    其它材料-->
    <a-card v-if="steps.currentId == 'notes'"
            style="margin-bottom:10px;
              float: left;width: 83%;left: 2%">
      <div slot="title">
        <span style="float: left;position: relative;top: 4px"> 其它资料</span>
      </div>
      <!--      附件-->
      <div>
        <a-form-model-item style="left: 0%;width: 90%;" label="稽核状态" prop="basicCheckState" v-bind="labelCol1Note">
          <a-radio-group v-model="specialResult.notesState"
                         @change="basicCheckClick(specialResult.notesState)">
            <a-radio :value=0>未通过</a-radio>
            <a-radio :value=1>通过</a-radio>
          </a-radio-group>
        </a-form-model-item>

        <a-form-model-item style="left: 0%;width: 90%;" label="稽核结果" prop="basicCheckNote" v-bind="labelCol1Note">
          <a-textarea
            v-model="specialResult.notesNote"
            placeholder="请输入稽核结果"
          />
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>

        <a-form-model-item style="width: 90%;" label="其它备注：" v-bind="labelCol1Note">
          <a-tag class="font-size-14" color="orange">{{ infoModel.notesRemark }}</a-tag>
          <!--            :auto-size="{ minRows: 3, maxRows: 5 }"-->
        </a-form-model-item>
      </div>
      <!--      文件上传-->
      <div class="file-div-minio-upload">
        <div class="thumb-example" style="position: relative">
          <!-- swiper1 -->
          <swiper
            class="swiper gallery-top"
            :options="swiperOptionTop"
            ref="swiperTop"
          >
            <swiper-slide class="slide-1" v-for="(item, index) in infoModel.notes" :key="item.id">
              <iframe
                v-if="item.urlBase"
                frameborder="1"
                :src="item.urlBase"
                ref="ifr"
                width="100%"
                height="500px"
                scrolling="auto">
              </iframe>
              <img style="width: 100%;height: 500px;border: 1px solid;"
                   v-if="!item.urlBase" :src="noDataPng" border="1">
              <a-button
                style="display: block;position: relative;float:left;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.notes.length && item.urlBase"
                @click="jumpUrl(item.url)">下载
              </a-button>
              <a-button
                style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
                v-if="infoModel.notes.length && item.urlBase"
                @click="jumpUrl(item.urlBase)">预览
              </a-button>

            </swiper-slide>
            <!--            <div
                          class="swiper-button-next swiper-button-white"
                          slot="button-next"
                        ></div>
                        <div
                          class="swiper-button-prev swiper-button-white"
                          slot="button-prev"
                        ></div>-->
          </swiper>
          <!-- swiper2 Thumbs -->
          <swiper
            class="swiper gallery-thumbs"
            :options="swiperOptionThumbs"
            ref="swiperThumbs"
          >
            <swiper-slide
              class="slide"
              style="width:100px;height:100px;"
              v-for="(item, index) in infoModel.notes"
              :key="item.id"
            >
              <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
                <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
              </div>

              <img style="width: 100%;height: 96px"
                   v-if="!item.urlBase" :src="noDataPng" border="1">

            </swiper-slide>
            <!--              点我上传文件按钮-->
            <div class="clearfix">
              <a-upload
                listType="picture-card"
                name="file"
                :multiple="false"
                :action="importMinioUploadAction"
                :customRequest="e => selfUploadContract(e, 'notes')"
                :headers="tokenHeader"
                :showUploadList="false"
                :beforeUpload="importBeforeUpload"
                @change="importHandleChange"
              >

              </a-upload>

            </div>

            <div class="swiper-button-next swiper-button-white" slot="button-next">
              <div>
                <!--                  <img src="../../../../assets/images/nextImg.png" alt=""/>-->
              </div>
            </div>
            <div class="swiper-button-prev swiper-button-white" slot="button-prev">
              <div>
                <!--                  <img src="../../../../assets/images/prevImg.png" alt=""/>-->
              </div>
            </div>
          </swiper>
        </div>
      </div>

    </a-card>

  </a-spin>


</template>

<script>
import {getAction, httpAction, postAction} from "@api/manage";
/*无数据图片*/
import noDataPng from '@/assets/nodata.png'
import Vue from "vue";
import {ACCESS_TOKEN, TENANT_ID} from "@/store/mutation-types";

let Base64 = require('js-base64').Base64
export default {
  name: 'TaskCheckAudit',
  inject: ['closeCurrent'],
  components: {
    noDataPng
  },
  data() {
    return {
      //缩略与大图数据源
      swiperId: 1,
      //轮播配置
      swiperOptionTop: {
        zoom: true,
        loop: false,
        loopedSlides: 5, // looped slides should be the same
        spaceBetween: 10,
        observer: true, //修改swiper自己或子元素时，自动初始化swiper
        observeParents: true, //修改swiper的父元素时，自动初始化swiper
        // autoplay: {  //自动轮播
        //   delay: 2000,
        //   disableOnInteraction: false
        // },
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev'
        }
      },
      swiperOptionThumbs: {
        loop: false,
        loopedSlides: 5, // looped slides should be the same
        spaceBetween: 10,
        centeredSlides: true,
        slidesPerView: 'auto',
        touchRatio: 0.2,
        slideToClickedSlide: true,
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev'
        }
      },
      /**无数据图片*/
      noDataPng: noDataPng,
      url: {
        // 获取客户信息
        "getInfoDataById": "/smsCheck/customerInfo/queryById",
        // 上传文件
        "minioUpload": "/smsCheck/customerData/uploadMinio",
        // 暂存
        "staging": "/special/examination/staging",
        // 批量暂存
        "stagingList": "/special/examination/staging/list",
        // 特审复开资料查询
        "getSpecialByinfoId": "/special/examination/find/user/id",
        // 提交
        "editInfo": "/special/examination/edit/info",
        // 批量提交
        "batchEditInfo": "/special/examination/batch/edit/info",
        // 提交稽核
        "submitSpecial": "/special/examination/check/info",
        // 获取稽核结果
        "findCheckState": "/special/examination/find/check/log",
      },
      //是否批量上传
      batchImproves: false,
      // 稽核结果
      specialResult: {
        //基础信息
        basicInfoState: null,
        basicInfoNote: "",
        //系统实名截图
        nameFindComplianceState: null,
        nameFindComplianceNote: "",
        //特审单
        specialReviewFormState: null,
        specialReviewFormNote: "",
        //身份证照片/正反面
        idCardState: null,
        idCardNote: "",
        //手持证件半身照片
        handCertificateState: null,
        handCertificateNote: "",
        //号卡照片
        numberCardState: null,
        numberCardNote: "",
        //手持号卡照片
        handNumberCardState:null,
        handNumberCardNote: "",
        //使用人证件
        userCertificateState: null,
        userCertificateNote: "",
        //营业执照
        businessLicenseState: null,
        businessLicenseNote: "",
        //介绍信
        letterIntroductionState: null,
        letterIntroductionNote: "",
        //防诈骗承诺函
        fraudPreventionState: null,
        fraudPreventionNote: "",
        //消费凭证
        consumptionVoucherState: null,
        consumptionVoucherNote: "",
        //承诺视频
        commitmentVideoState: null,
        commitmentVideoNote: "",
        // 其它资料
        notesState: null,
        notesNote: ""
      },
      // 全局是否是在加载中
      uploading: false,
      //上级传参
      query: {
        data: {},
        infoId: "",
        dataId: "",
      },
      // 客户资料信息
      infoModel: {
        // 客户经理手机号
        accountManagerPhone:"",
        // 单位名称
        unitName: "",
        // 材料补不全有特审
        materialLabel: "0",
        // 用户类型
        userLable: "0",
        // 申请复开号码
        openingNumber: "",
        // 申请复开原因
        reasonReopening: "",
        // 客户名称
        customerName: "",
        // 最后一次关停时间
        shutdownTime: "",
        // 关停标签
        shutdownLabel: ['0'],
        // 关停标签-其他
        shutdownLabelOther: "",
        // 系统实名制截图
        nameFindCompliance: [{}],
        // 实名制截图原因
        nameFindComplianceRemark: "",
        // 身份证正反面
        fileListIdCard: [{}],
        fileListIdCardRemark: "",
        // 手持证件半身照片
        handCertificate: [{}],
        handCertificateRemark: "",
        // 防诈骗承若函
        fraudPrevention: [{}],
        fraudPreventionRemark: "",
        // 有无特审单
        specialReviewForm: [{}],
        specialReviewFormRemark: "",
        // 单位户-使用人证件
        userCertificate: [{}],
        userCertificateRemark: "",
        // 单位户-营业执照副本
        businessLicense: [{}],
        businessLicenseRemark: "",
        // 单位户-介绍信
        letterIntroduction: [{}],
        letterIntroductionRemark: "",
        // 个人户-号卡照片
        numberCard: [{}],
        numberCardRemark: "",
        // 个人户-手持号卡照片
        handNumberCard: [{}],
        handNumberCardRemark: "",
        // 消费凭证
        consumptionVoucher: [{}],
        consumptionVoucherRemark: "",
        // 承诺视频
        commitmentVideo: [{}],
        commitmentVideoRemark: "",
        // 其它资料
        notes: [{}],
        notesRemark: "",

      },
      //表单验证
      rules: {
        openingNumber: [
          {required: true, message: '必须输入手机号'},
        ],

        customerName: [
          {required: true, message: '必须输入客户名称'},
        ],
        shutdownTime: [
          {required: true, message: '必须选择关停时间'},
        ]
      },
      labelCol4: {
        labelCol: {
          xs: {span: 24},
          sm: {span: 8},
        },
        wrapperCol: {
          xs: {span: 24},
          sm: {span: 14},
        }
      },
      labelCol1: {
        labelCol: {
          xs: {span: 24},
          sm: {span: 2},
        },
        wrapperCol: {
          xs: {span: 24},
          sm: {span: 22},
        }
      },
      labelCol1Note: {
        labelCol: {
          xs: {span: 24},
          sm: {span: 4},
        },
        wrapperCol: {
          xs: {span: 24},
          sm: {span: 20},
        }
      },
      // 步骤条相关
      steps: {
        // 当前所在第几部
        current: 0,
        currentId: "",
        stepsNow: {},
        steps00: [
          {
            title: '系统实名制截图',
            content: 'First-content',
            id: "nameFindCompliance",
            status: "wait"
          },
          {
            title: '身份证照片/正反面',
            content: 'First-content',
            id: "fileListIdCard",
            status: "wait"
          },
          {
            title: '手持证件半身照片',
            content: 'First-content',
            id: "handCertificate",
            status: "wait"
          },
          {
            title: ' 防诈骗承诺涵（使用人签署）',
            content: 'First-content',
            id: "fraudPrevention",
            status: "wait"
          },


        ],
        // 有特审
        stepsMaterial: [
          {
            title: '特审单',
            content: 'First-content',
            id: "specialReviewForm",
            status: "wait"
          }
        ],
        // 单位户
        stepUserLable1: [
          {
            title: '使用人证件',
            content: 'First-content',
            id: "userCertificate",
            status: "wait"
          },
          {
            title: '营业执照副本(盖公章)',
            content: 'First-content',
            id: "businessLicense",
            status: "wait"
          },
          {
            title: '介绍信',
            content: 'First-content',
            id: "letterIntroduction",
            status: "wait"
          }
        ],
        // 个人户
        stepUserLable0: [
          {
            title: '号卡照片',
            content: 'First-content',
            id: "numberCard",
            status: "wait"
          },
          {
            title: '手持号卡照片',
            content: 'First-content',
            id: "handNumberCard",
            status: "wait"
          },
        ],
        // 材料标签
        shutdownLabel0: [
          {
            title: '消费凭证',
            content: 'First-content',
            id: "consumptionVoucher",
            status: "wait"
          },
        ],
        // 承诺视频
        shutdownLabel5: [
          {
            title: '承诺视频',
            content: 'First-content',
            id: "commitmentVideo",
            status: "wait"
          },
        ],


      },

    }
  },
  computed: {
    importMinioUploadAction() {
      return window._CONFIG['domianURL'] + this.url.minioUpload;
    },
    tokenHeader() {
      let head = {'X-Access-Token': Vue.ls.get(ACCESS_TOKEN)}
      let tenantid = Vue.ls.get(TENANT_ID)
      if (tenantid) {
        head['tenant-id'] = tenantid
      }
      return head;
    }
  },
  props: {},
  watch: {},
  created() {
    // 是否批量上传
    this.batchImproves = this.$route.query.batchImproves;
    // 步骤条默认公用
    this.steps.stepsNow = this.steps.steps00;
    this.steps.currentId = this.steps.stepsNow[0].id
    if (this.batchImproves) {
      //批量上传id
      this.ids = this.$route.query.ids;
    } else {
      //客户ID
      this.query.infoId = this.$route.query.id;
      // 获取客户基础信息
      this.getInfoDataById(this.query.infoId)
    }
  },
  updated() {
    // 实现swiper双向控制
    this.$nextTick(() => {
      const swiperTop = this.$refs.swiperTop.swiper
      const swiperThumbs = this.$refs.swiperThumbs.swiper
      swiperTop.controller.control = swiperThumbs
      swiperThumbs.controller.control = swiperTop
    })
    // /**监听视频拨放*/
    // this.$refs.myVideo.addEventListener("play", () => {
    //   this.openTimer();
    // });
    // /**监听视频暂停*/
    // this.$refs.myVideo.addEventListener("pause", () => {
    //   this.closeTimer();
    // });
  },
  methods: {
    /**整改->获取稽核结果*/
    findCheckState(id) {
      let that = this;
      let model = {
        "dataId": id,
      }
      postAction(this.url.findCheckState, model)
        .then((res) => {
          if (res.success) {
            if ( res.result == null){
              return
            }
            that.specialResult = res.result;
            // 步骤条
            that.stepLoading();
            // 整改->处理步骤条状态
            for (var i in that.steps.stepsNow) {
              let id = that.steps.stepsNow[i].id;
              if (id == 'fileListIdCard') {
                id = "idCard"
              }
              let specialResultElement = that.specialResult[id + "State"];
              if (specialResultElement == 0) {
                that.steps.stepsNow[i].status = 'error'
                that.steps.stepsNow[i].solution = true
              } else if (specialResultElement == 1) {
                that.steps.stepsNow[i].status = 'finish'
              }
            }

          }
        })
    },
    /**备注监听*/
    textareaChange(name, nameRemark) {
      if (this.infoModel[nameRemark].length > 0) {
        this.steps.stepsNow[this.steps.current].status = "finish"
      } else if (this.infoModel[name].length > 0 && this.infoModel[name][0].urlBase) {
        this.steps.stepsNow[this.steps.current].status = "finish"
      } else {
        this.steps.stepsNow[this.steps.current].status = "wait"
      }
    },
    // 步骤条动态变化
    stepLoading() {
      this.steps.stepsNow = this.steps.stepsNow.splice(0, 4)
      //材料不全有特审步骤条
      this.stepsMaterialLabel()
      /**用户标签点击事件*/
      this.userLableClick()
      /**材料标签点击事件*/
      this.shutdownLabelClick()
      /**其它材料*/
      console.log(this.specialResult.notesState)
      if ((this.infoModel.notes && this.infoModel.notes != "" &&  this.infoModel.notes[0].url) || this.specialResult.notesState != null ) {
        this.steps.stepsNow.push(
          {
            title: ' 其它资料（非必传）',
            content: 'First-content',
            id: "notes",
            status: "wait"
          })
      }
    },
    //材料不全有特审步骤条
    stepsMaterialLabel() {
      if (this.infoModel.materialLabel == "0") {
        let stepsMaterial = this.steps.stepsMaterial;
        for (var i in stepsMaterial) {
          this.steps.stepsNow.push(stepsMaterial[i])
        }
      }
    },
    /**用户标签点击事件*/
    userLableClick() {
      var that = this;
      //材料不全有特审步骤条
      //that.stepsMaterialLabel();
      let userLable = that.infoModel.userLable;
      switch (userLable) {
        case "0":
          //个人户
          let stepUserLable0 = this.steps.stepUserLable0;
          for (var i in stepUserLable0) {
            this.steps.stepsNow.push(stepUserLable0[i])
          }
          break
        case "1":
          //单位户
          let stepUserLable1 = this.steps.stepUserLable1;
          for (var j in stepUserLable1) {
            this.steps.stepsNow.push(stepUserLable1[j])
          }
          break
      }
    },
    /**材料标签点击事件*/
    shutdownLabelClick() {
      var that = this;
      //材料不全有特审步骤条
      //that.stepsMaterialLabel();
      let shutdownLabel = that.infoModel.shutdownLabel;
      // 其它包含所有
      if (shutdownLabel.indexOf("0") > -1) {
        let shutdownLabel0 = this.steps.shutdownLabel0;
        for (var i in shutdownLabel0) {
          this.steps.stepsNow.push(shutdownLabel0[i])
        }
      }
    },

    /**移除文件*/
    removeFile(fileData, fileAttribute) {
      let that = this.infoModel;
      //处理轮播数据
      let swiperImg = that[fileAttribute];
      if (swiperImg) {
        let number = swiperImg.indexOf(fileData);
        swiperImg.splice(number, 1)
        if (swiperImg.length == 0) {
          swiperImg.push({})
          let textId = fileAttribute + "Remark";
          if (this.infoModel[textId].trim() > 0) {
            this.steps.stepsNow[this.steps.current].status = "finish"
          } else {
            this.steps.stepsNow[this.steps.current].status = "wait"
          }
        } else {
          this.steps.stepsNow[this.steps.current].status = "finish"
        }
        that[fileAttribute] = swiperImg
      }
    },

    /**自定义的上传文件方法*/
    selfUploadContract(data, fileAttribute) {
      var that = this;
      if (data.file) {
        let formData = new FormData();
        formData.append('file', data.file)
        postAction(this.url.minioUpload, formData).then((res) => {
          if (res.success) {
            that.swiperId = that.swiperId + 1;
            //文件链接
            let filePath = res.message;
            let swipData = {
              id: that.swiperId,
              urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
                + encodeURIComponent(
                  Base64.encode(
                    (filePath)
                  )),
              url: filePath,
              fileName: data.file.name
            }
            if (that.infoModel[fileAttribute][0].urlBase) {
              that.infoModel[fileAttribute].push(swipData)
            } else {
              that.infoModel[fileAttribute] = []
              //数据发生变化
              that.infoModel[fileAttribute][0] = swipData;
            }
            // 改变步骤条状态
            if (that.infoModel[fileAttribute].length > 0) {
              that.steps.stepsNow[that.steps.current].status = "finish"
            } else {
              that.steps.stepsNow[that.steps.current].status = "wait"
            }
          }

        })
      }
    },
    /**文件格式限制*/
    importBeforeUpload(file) {
      var fileType = file.type;
      if (fileType === 'image') {
        if (fileType.indexOf('image') < 0) {
          this.$message.warning('请上传图片');
          return false;
        }
      } else if (fileType === 'file') {
        if (fileType.indexOf('image') >= 0) {
          this.$message.warning('请上传文件');
          return false;
        }
      }
      return true
    },
    /**文件上传成功后回调*/
    importHandleChange(info) {
    },

    getDataNow() {
      let that = this
      let infoModel = that.infoModel
      var data = {
        "infoIds": that.ids,
        "infoId": that.query.infoId,
        // 用户标签
        "userLable": infoModel.userLable,
        // 关停标签
        "shutdownLabel": infoModel.shutdownLabel,
        // 关停标签其他-名称
        "shutdownLabelOther": infoModel.shutdownLabelOther,
        // 最后一次关停时间
        "shutdownTime": infoModel.shutdownTime,
        // 申请复开原因
        "reasonReopening": infoModel.reasonReopening,
        // 材料标签选择
        "materialLabel": infoModel.materialLabel,
        // 单位名称
        "unitName": infoModel.unitName,
        // 身份证正反面
        idCard: this.urlBaseJoin(infoModel.fileListIdCard, "url"),
        idCardRemark: infoModel.fileListIdCardRemark,
        // 手持证件半身照片
        handCertificate: this.urlBaseJoin(infoModel.handCertificate, "url"),
        handCertificateRemark: infoModel.handCertificateRemark,
        // 号卡照片
        numberCard: this.urlBaseJoin(infoModel.numberCard, "url"),
        numberCardRemark: infoModel.numberCardRemark,
        // 防诈骗承诺函
        fraudPrevention: this.urlBaseJoin(infoModel.fraudPrevention, "url"),
        fraudPreventionRemark: infoModel.fraudPreventionRemark,
        // 营业执照副本
        businessLicense: this.urlBaseJoin(infoModel.businessLicense, "url"),
        businessLicenseRemark: infoModel.businessLicenseRemark,
        // 介绍信
        letterIntroduction: this.urlBaseJoin(infoModel.letterIntroduction, "url"),
        letterIntroductionRemark: infoModel.letterIntroductionRemark,
        // 使用人证件
        userCertificate: this.urlBaseJoin(infoModel.userCertificate, "url"),
        userCertificateRemark: infoModel.userCertificateRemark,
        // 消费凭证
        consumptionVoucher: this.urlBaseJoin(infoModel.consumptionVoucher, "url"),
        // 消费凭证备注
        consumptionVoucherRemark: infoModel.consumptionVoucherRemark,
        // 承诺视频
        commitmentVideo: this.urlBaseJoin(infoModel.commitmentVideo, "url"),
        // 承诺视频备注
        commitmentVideoRemark: infoModel.commitmentVideoRemark,
        // 系统实名制截图
        nameFindCompliance: this.urlBaseJoin(infoModel.nameFindCompliance, "url"),
        // 系统实名制截图备注
        nameFindComplianceRemark: infoModel.nameFindComplianceRemark,
        // 特审单
        specialReviewForm: this.urlBaseJoin(infoModel.specialReviewForm, "url"),
        // 特审单备注
        specialReviewFormRemark: infoModel.specialReviewFormRemark,
      }
      return data;

    },
    /**提交申请事件*/
    submitAuditLot() {
      //材料不全有特审
      if (this.infoModel.materialLabel == '0' || this.infoModel.materialLabel == '999') {
        if ((this.infoModel.specialReviewForm.length == 0 || !this.infoModel.specialReviewForm[0].urlBase) && this.infoModel.specialReviewFormRemark.length == 0) {
          this.$warning({
            title: '提示',
            content: '材料不全请上特审单',
          })
          return;
        }
      }

      //系统实名制截图
      if ((this.infoModel.nameFindCompliance.length == 0 || !this.infoModel.nameFindCompliance[0].urlBase) && this.infoModel.nameFindComplianceRemark.length == 0) {
        this.$warning({
          title: '提示',
          content: '请上传系统实名制截图，如没有截图则填写备注信息',
        })
        return
      }

      // 有特审 不需要上传全部材料， 无特审 需要上传全部材料
      if ((this.infoModel.materialLabel == '1' || this.infoModel.materialLabel == '999') &&
        (
          ((this.infoModel.fileListIdCard.length == 0 || !this.infoModel.fileListIdCard[0].urlBase) && this.infoModel.fileListIdCardRemark.length == 0)
          ||
          ((this.infoModel.handCertificate.length == 0 || !this.infoModel.handCertificate[0].urlBase) && this.infoModel.handCertificateRemark.length == 0)
          ||
          ((this.infoModel.numberCard.length == 0 || !this.infoModel.numberCard[0].urlBase) && (this.infoModel.numberCardRemark.length == 0))
          ||
          ((this.infoModel.letterIntroduction.length == 0 || !this.infoModel.letterIntroduction[0].urlBase) && this.infoModel.letterIntroductionRemark.length == 0)
        )
      ) {
        this.$warning({
          title: '提示',
          content: '无特审，请上传全部材料',
        })
        return
      }
      let data = this.getDataNow();
      let url = this.url.editInfo;
      // 是否批量提交
      if (this.batchImproves) {
        url = this.url.batchEditInfo;
      }
      this.uploading = true;
      httpAction(url, data, "POST")
        .then((res) => {
          if (res.success) {
            this.uploading = false;
            this.$message.success("提交成功");
            this.$router.go(-1);
            this.closeCurrent();
          } else {
            this.uploading = false;
            this.$error({
              title: '提示',
              content: res.message,
            })
          }
        }).finally(() => {
        this.uploading = false;
      })


    },
    /**提交稽核*/
    submitSpecial() {
      let that = this
      let specialResult = that.specialResult;
      let materialLabel = that.infoModel.materialLabel;
      let userLable = that.infoModel.userLable;
      //必稽核项
      if (specialResult.basicInfoState == null || specialResult.nameFindComplianceState == null
        || specialResult.idCardState == null || specialResult.handCertificateState == null ||
        specialResult.fraudPreventionState == null) {
        that.$message.warn("请完成相关稽核");
        return;
      }
      if (that.infoModel.notes && that.infoModel.notes[0].url ){
        if (specialResult.notesState == null){
          that.$message.warn("请完成相关稽核");
          return;
        }
      }

      //有无特审单
      if (materialLabel == '0') {
        if (specialResult.specialReviewFormState == null) {
          that.$message.warn("请完成相关稽核");
          return;
        }
      }else {
         this.specialResult.specialReviewFormState = null
      }

      // 个人户
      if (userLable == '0') {
        if (specialResult.numberCardState == null) {
          that.$message.warn("请完成相关稽核");
          return;
        }
        if (specialResult.handNumberCardState == null) {
          that.$message.warn("请完成相关稽核");
          return;
        }
      }else {
        this.specialResult.numberCardState = null;
        this.specialResult.handNumberCardState = null;
      }

      // 单位户
      if (userLable == '1') {
        if (specialResult.userCertificateState == null || specialResult.businessLicenseState == null
          || specialResult.letterIntroductionState == null) {
          that.$message.warn("请完成相关稽核");
          return;
        }
      }else {
        this.specialResult.userCertificateState = null;
        this.specialResult.businessLicenseState = null;
        this.specialResult.letterIntroductionState = null;
      }

      // 关停标签 -> 安防停机（高危漫游地）
      if (this.infoModel.shutdownLabel.indexOf('0') > -1 && specialResult.consumptionVoucherState == null ) {
        that.$message.warn("请完成相关稽核");
        return;
      }
      if (this.infoModel.shutdownLabel.indexOf('0') == -1){
        that.specialResult.consumptionVoucherState = null
      }
      let SpecialParams = {}
      console.log(that.specialResult)
      SpecialParams = that.specialResult
      SpecialParams['dataId'] = that.query.dataId
      SpecialParams['infoId'] = that.query.infoId
      postAction(that.url.submitSpecial, SpecialParams).then(res => {
        if (res.success) {
          this.$message.success("稽核完成");
          this.$router.go(-1);
          this.closeCurrent();
        }
      }).finally(() => {

      })
    },
    /**步骤条点击事件*/
    stepsClick(current) {
      this.steps.current = current;
      this.steps.currentId = this.steps.stepsNow[current].id
      for (var i in this.steps.stepsNow) {
        if (this.steps.stepsNow[i].status == 'error' || this.steps.stepsNow[i].status == "finish") {
          continue;
        }
        if (this.steps.stepsNow[i].status != "finish") {
          this.steps.stepsNow[i].status = "wait"
        }
      }
      if (this.steps.stepsNow[current].status != "error" && this.steps.stepsNow[current].status != "finish") {
        this.steps.stepsNow[current].status = "process"
      }
    },

    /**返回上一级*/
    back() {
      this.$router.go(-1);
      //关闭当前页
      this.closeCurrent();
    },
    /**获取客户信息*/
    getInfoDataById(id) {
      var that = this;
      if (id) {
        var data = {
          "id": id,
        }
        getAction(this.url.getInfoDataById, data).then((res) => {
          if (res.success) {
            let result = res.result;
            // 复开号码
            that.infoModel.openingNumber = result.smsNumber
            // 机主姓名
            that.infoModel.customerName = result.customerName
            // 有无特殊审单
            that.infoModel.materialLabel = result.materialLabel == "无" ? "1" : "0"
            // 客户经理手机号
            that.infoModel.accountManagerPhone = result.accountManagerPhone;
            // 获取客户文件信息
            that.getInfoSpecialData(this.query.infoId);

          }

        })
      }

    },
    /**获取特审复开数据*/
    getInfoSpecialData(infoId) {
      let that = this;
      let infoModel = that.infoModel;
      postAction(that.url.getSpecialByinfoId, {infoId}).then((res) => {
        if (res.result != null) {
          let result = res.result;
          that.query.dataId = result.id;
          // 单位名称
          infoModel.unitName = result.unitName;
          // 身份证正反面
          infoModel.fileListIdCard = that.packageArr(result.idCard);
          infoModel.fileListIdCardRemark = result.idCardRemark;
          // 系统实名制截图
          infoModel.nameFindCompliance = that.packageArr(result.nameFindCompliance)
          infoModel.nameFindComplianceRemark = result.nameFindComplianceRemark;
          // 手持证件半身照片
          infoModel.handCertificate = that.packageArr(result.handCertificate)
          infoModel.handCertificateRemark = result.handCertificateRemark
          // 防诈骗承若函
          infoModel.fraudPrevention = that.packageArr(result.fraudPrevention)
          infoModel.fraudPreventionRemark = result.fraudPreventionRemark
          // 有无特审单
          infoModel.specialReviewForm = that.packageArr(result.specialReviewForm)
          infoModel.specialReviewFormRemark = result.specialReviewFormRemark
          // 使用人证件
          infoModel.userCertificate = that.packageArr(result.userCertificate)
          infoModel.userCertificateRemark = result.userCertificateRemark
          // 单位户-营业执照副本
          infoModel.businessLicense = that.packageArr(result.businessLicense)
          infoModel.businessLicenseRemark = result.businessLicenseRemark
          // 单位户-介绍信
          infoModel.letterIntroduction = that.packageArr(result.letterIntroduction)
          infoModel.letterIntroductionRemark = result.letterIntroductionRemark
          // 个人户-号卡照片
          infoModel.numberCard = that.packageArr(result.numberCard)
          infoModel.numberCardRemark = result.numberCardRemark
          // 个人户-手持号卡照片
          infoModel.handNumberCard = that.packageArr(result.handNumberCard)
          infoModel.handNumberCardRemark = result.handNumberCardRemark
          // 消费凭证
          infoModel.consumptionVoucher = that.packageArr(result.consumptionVoucher)
          infoModel.consumptionVoucherRemark = result.consumptionVoucherRemark
          // 承诺视频
          infoModel.commitmentVideo = that.packageArr(result.commitmentVideo)
          infoModel.commitmentVideoRemark = result.commitmentVideoRemark
          // 用户标签
          infoModel.userLable = result.userLable.toString()
          // 关停标签
          infoModel.shutdownLabel = result.shutdownLabel.toString()
          // 关停标签其他-名称
          infoModel.shutdownLabelOther = result.shutdownLabelOther
          // 最后一次关停时间
          infoModel.shutdownTime = result.shutdownTime
          // 申请复开原因
          infoModel.reasonReopening = result.reasonReopening
          // 其它材料
          infoModel.notes = that.packageArr(result.notes);
          infoModel.notesRemark = result.notesRemark;
          that.infoModel = infoModel
          // 步骤条
          that.stepLoading();
          that.findCheckState(result.id)

        }
      })
    },
    // 照片格式转换
    urlBaseJoin(dataArray, name) {
      let newDataArr = [];
      for (var i in dataArray) {
        let dataArrayElementElement = dataArray[i][name];
        newDataArr.push(dataArrayElementElement);
      }
      return newDataArr.toString();
    },
    /**包装轮播数据*/
    packageArr(data) {
      let id = 0;
      let newArr = []
      if (data == null || data.length == 0) {
        newArr.push({})
        return newArr;
      }
      let splice = data.split(",");
      for (var i in splice) {
        id = id + 1;
        let filePath = splice[i];
        if (filePath == "") {
          break;
        }
        let fileName = filePath.split("/");
        fileName = fileName[fileName.length - 1];
        let swipData = {
          id: id,
          urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
            + encodeURIComponent(
              Base64.encode(
                (filePath)
              )),
          url: filePath,
          fileName: fileName
        }
        newArr.push(swipData);
      }
      return newArr;
    },
    /**节点状态*/
    basicCheckClick(state) {
      let boolean = state == "1" ? true : false;
      if (boolean) {
        this.steps.stepsNow[this.steps.current]["status"] = "finish";
      } else {
        this.steps.stepsNow[this.steps.current]["status"] = "error";
      }
    },
    // 点击方法 url为传入的第三方链接或网址 如'www.baidu.com' url前面不要加协议哦！
    jumpUrl(url) {
      var a = document.createElement("a");
      a.setAttribute("href", url);
      a.setAttribute("target", "_blank");
      a.click();
    },

  }


}
</script>
<style lang="less">
.ant-input[disabled] {
  color: #1e80ff;
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 1;
}

.ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {
  color: #fff;
  background-color: #1e80ff;
  border-color: #d9d9d9;
  box-shadow: none;
}

</style>
<style lang="less">
#common-video {
  position: relative;

  .video-box {
    box-sizing: border-box;
    border: 0;
    display: block;
    width: 470px;
    height: 500px;
    outline: none !important;
  }

  .isShow {
    //进度条
    video::-webkit-media-controls-timeline {
      display: none;
    }
  }

  video::-webkit-media-controls-play-button {
    visibility: hidden;
  }

  .operate-btn {
    display: block;
    width: 60px;
    height: 60px;
    position: absolute;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
  }

  .operate-btn:hover {
    opacity: 0.8;
  }

  .fade-out {
    opacity: 0;
  }
}

.thumb-example {
  width: 80%;
  margin-top: 20px;
  // background: #000;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.gallery-top {
  // height: 80% !important;
  /*height: 600px;*/
  width: 100%;
  margin-bottom: 30px
}

.gallery-thumbs {
  height: 20% !important;
  box-sizing: border-box;
  padding: 10px 0px;
  /*  width: 864px;*/
  margin-left: 2px;

  .swiper-button-next {
    right: 0px;
  }

  .swiper-button-prev {
    left: 0px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    background: #fff;
    width: 45px;
    text-align: center;
    height: 101px;
    top: 26%;

    div {
      margin-top: 30px;
      background: rgb(207, 205, 205);
      height: 45px;
      border-radius: 50%;

      img {
        margin: 7px 0 0 2px;
        width: 30px;
      }
    }
  }

  .swiper-button-next:hover div {
    background: rgb(189, 186, 186);
  }

  .swiper-button-prev:hover div {
    background: rgb(189, 186, 186);
  }
}

.gallery-thumbs .swiper-slide {
  width: 20%;
  height: 80px;
  // opacity: 0.4;
}

.gallery-thumbs .swiper-slide-active {
  border: 2px solid red;
}

.markdown ul > li {
  color: #000000d9;
  font-size: 15px;
  line-height: 3;
  margin-left: 20px;
  padding-left: 4px;
  list-style-type: circle;
}

.file-div-minio-upload {
  height: 100%;
  position: relative;
  left: 10%
}
.cornflowerblue {
  color: cornflowerblue;
}
.font-size-14 {
  font-size:14px
}

</style>
