lilei 1 年間 前
コミット
029cf2678f
1 ファイル変更4 行追加1 行削除
  1. 4 1
      src/views/salesReturnManagement/billOfLading/detail.vue

+ 4 - 1
src/views/salesReturnManagement/billOfLading/detail.vue

@@ -121,7 +121,7 @@
               <a-form-model-item style="margin-bottom:10px" label="附件" :label-col="{span:2}" :wrapper-col="{span:22}">
                 <div style="line-height:26px;">
                   <div v-for="item in form.attachmentList" :key="item.id">
-                    <a :href="item.filePath" target="_blank" dowload>{{ item.fileName }}</a>
+                    <a href="javascript:;" @click="openLink(item.filePath)">{{ item.fileName }}</a>
                   </div>
                 </div>
               </a-form-model-item>
@@ -242,6 +242,9 @@ export default {
     }
   },
   methods: {
+    openLink (url) {
+      window.open(url)
+    },
     // 打印预览/快捷打印
     handlePrint (type) {
       const _this = this