Răsfoiți Sursa

外部订单保单下载修改

lihongxiao 2 ani în urmă
părinte
comite
1fc8bfb926

+ 26 - 10
src/views/Core/components/detailsDialogPro.vue

@@ -639,16 +639,32 @@ export default {
     },
     //预览文件
     viewfile(index) {
-      let name = index.fileurl.lastIndexOf("/");
-      fetch(index.fileurl)
-        .then((response) => response.blob())
-        .then((blob) => {
-          this.saveAs(
-            blob,
-            index.fileurl.substring(name + 1, index.fileurl.length)
-          );
-        })
-        .catch((error) => { });
+      if(this.orderInfo.isExternal==1){
+        let url = process.env.BASE_URL +index.fileurl; // 3.创建一个临时的url指向blob对象
+      fetch(url)
+          .then((response) => response.blob())
+          .then((blob) => {
+            this.saveAs(
+              blob,
+              index.fileurl.substring(name + 1, index.fileurl.length)
+            );
+          })
+          .catch((error) => { });
+
+      }
+      else{
+        let name = index.fileurl.lastIndexOf("/");
+        fetch(index.fileurl)
+          .then((response) => response.blob())
+          .then((blob) => {
+            this.saveAs(
+              blob,
+              index.fileurl.substring(name + 1, index.fileurl.length)
+            );
+          })
+          .catch((error) => { });
+        }
+      
     },
   }
 };

+ 4 - 4
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue

@@ -77,8 +77,8 @@
         <el-steps direction="vertical" :active="trajectoryTable.length - 1" finish-status="success">
           <el-step :title=" auditstatusCap(item.auditstatus)" :key="item.id" v-for="item in trajectoryTable">
             <template slot="description">
-              <div>保险公司:{{ item.insCompany }}</div>
-              <div>创建用户:{{ item.operator }}</div>
+              <div>保险公司:{{ item.insCompany }} <span style="margin-left:15px">创建用户:{{ item.operator }}</span></div>
+              <div>创建时间:{{item.operatorTime}}</div>
             </template>
           </el-step>
         </el-steps>
@@ -742,11 +742,11 @@ export default {
                         fileurl: res1.data.jqSign
                       });
                       }
-                    if (res1.data.jqSign) {
+                    if (res1.data.syPolicy) {
                       accidentList.push({
                         fileTitle: "商业电子保单",
                         filename: this.orderInfo.sypolicyno,
-                        fileurl: res1.data.jqSign
+                        fileurl: res1.data.syPolicy
                       });
                     }
                     if (res1.data.noPolicy) {