Bläddra i källkod

Merge branch 'master' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc

li.pengfei 2 år sedan
förälder
incheckning
5130f3496d
1 ändrade filer med 17 tillägg och 22 borttagningar
  1. 17 22
      src/views/Letter/Orderlist.vue

+ 17 - 22
src/views/Letter/Orderlist.vue

@@ -2309,26 +2309,21 @@ export default {
                   riskCode: "0507",
                   type: '2',//2:保单
                 }).then(res => {
-                  if (res.data && res.data[0]
-                  ) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子保单",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data[0],
-                    });
-                  }
-                })
-                this.$api.letter.HuataigetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '1',// 1:标志
-                }).then(res => {
-                  if (res.data && res.data[0]) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子标志",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data[0],
-                    });
+                  if (res.data) {
+                    if(res.data.jqxPolicyUrl){
+                      this.oldfileList.push({
+                        fileTitle: "交强电子保单",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data.jqxPolicyUrl,
+                      });
+                    }
+                    if (res.data.jqxFlagUrl) {
+                      this.oldfileList.push({
+                        fileTitle: "交强电子标志",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data.jqxFlagUrl,
+                      });
+                    }
                   }
                 })
               }
@@ -2338,11 +2333,11 @@ export default {
                   riskCode: "0510",
                   type: '2',//2:保单
                 }).then(res => {
-                  if (res.data && res.data[0]) {
+                  if (res.data && res.data.syxPolicyUrl) {
                     this.oldfileList.push({
                       fileTitle: "商业电子保单",
                       filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data[0],
+                      fileurl: res.data.syxPolicyUrl,
                     });
                   }
                 })