jiangping
2024-06-18 eb4335eb25d8235ef2048c91181d004c27192688
提交一把
已修改1个文件
12 ■■■■■ 文件已修改
company/src/components/business/detailsEntrustedInsurance.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company/src/components/business/detailsEntrustedInsurance.vue
@@ -403,7 +403,7 @@
    <el-dialog
      :title="fileTitle"
      :visible.sync="visibleFile"
      width="500px"
      width="800px"
      :modal="true"
      :show-close="true"
      :close-on-click-modal="false"
@@ -412,7 +412,11 @@
      <div class="desc_item_from" v-for="(item, index) in fileData" :key="index"  style="margin-bottom: 15px">
        <span v-if="index ==0">{{item.name}}:</span>
        <span v-if="index >0">被保险人({{item.name}})服务费:{{item.serverCost || 0}}元/人 {{fileFlag=== 0?"投保单":"保险单"}}:</span>
        <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">在线预览</a><span v-if="!item.file || !item.file.fileurl">未上传</span>
        <a  style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">在线预览</a>
        <a   style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 &&fileFlag=== 0" @click="openFile(item.file.fileurlFull,'被保险人('+item.name+')投保单')">在线预览</a>
        <a   style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 &&fileFlag!= 0" @click="openFile(item.file.fileurlFull,'被保险人('+item.name+')保险单')">在线预览</a>
        <span v-if="!item.file || !item.file.fileurl">未上传</span>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="visibleFile=false">关 闭</el-button>
@@ -787,9 +791,9 @@
        this.$tip.apiFailed(err)
      })
    },
    openFile (url) {
    openFile (url,title) {
      setTimeout(() => {
        this.$refs.OperaPdfViewerWindow.open('商户投保单',url)
        this.$refs.OperaPdfViewerWindow.open(title ||'在线预览',url)
        // window.open(url)
      }, 500)
    },