jiangping
2024-05-07 529d0b8982cf30f57ba7e366c0f822c1d82c0b69
wx/pages/report_details/report_details.vue
@@ -96,6 +96,9 @@
                  <view class="info_list_item_label1">1、员工关系证明资料</view>
                  <view class="info_list_item_tu" v-if="info">
                     <view class="info_list_item_tu_img" v-for="(item,index) in info.relationFileList" :key="index">
                        <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
                           <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
                        </view>
                        <image :src="item.fileurlFull" mode="widthFix" v-if="item.type == 0"></image>
                        <video :src="item.fileurlFull" v-if="item.type == 1" />
                     </view>
@@ -110,7 +113,10 @@
               <view class="info_list_item f">
                  <view class="info_list_item_label1">2、医疗资料</view>
                  <view class="info_list_item_tu" v-if="info">
                     <view class="info_list_item_tu_img" v-for="(item, index) in [].concat(info.outpatientFileList).concat(info.hospitalFileList).concat(info.disabilityFileList)" :key="index">
                     <view class="info_list_item_tu_img" v-for="(item, index) in info.outpatientFileList" :key="index">
                        <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
                           <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
                        </view>
                        <image :src="item.fileurlFull" mode="widthFix" v-if="item.type === 0"></image>
                        <video :src="item.fileurlFull" v-if="item.type === 1"></video>
                     </view> 
@@ -126,6 +132,9 @@
                  <view class="info_list_item_label1">3、赔付结案资料</view>
                  <view class="info_list_item_tu" v-if="info">
                     <view class="info_list_item_tu_img" v-for="(item, index) in info.compensationFileList" :key="index">
                        <view class="info_list_item_tu_img_dele" @click.stop="deleFile(item.id, item.objId)">
                           <image src="@/static/icon/ic_delete@2x.png" mode="widthFix"></image>
                        </view>
                        <image :src="item.fileurlFull" mode="widthFix" v-if="item.type === 0"></image>
                        <video :src="item.fileurlFull" v-if="item.type === 1"></video>
                     </view>
@@ -219,6 +228,15 @@
         ...mapState(['cookies'])
      },
      methods: {
         // 删除附件
         deleFile(id, objId) {
            this.$u.api.delFile(objId, id)
               .then(res => {
                  if (res.code === 200) {
                     this.getDetails()
                  }
               })
         },
         // 上传材料
         upload(type) {
            var that = this
@@ -282,7 +300,6 @@
            this.$u.api.settleClaimsById(this.id)
               .then(res => {
                  if (res.code === 200) {
                     console.log(res)
                     this.info = res.data
                  }
               })
@@ -566,6 +583,15 @@
                        align-items: center;
                        justify-content: center;
                        overflow: hidden;
                        position: relative;
                        .info_list_item_tu_img_dele {
                           width: 50rpx;
                           height: 50rpx;
                           position: absolute;
                           right: 0;
                           top: 0;
                           z-index: 9;
                        }
                        image {
                           width: 100%;
                           height: 100%;