Просмотр исходного кода

国任财险电子保单下载

lihongxiao 3 лет назад
Родитель
Сommit
e5e74c8de1
2 измененных файлов с 47 добавлено и 0 удалено
  1. 8 0
      src/http/moudules/letter.js
  2. 39 0
      src/views/Letter/Orderlist.vue

+ 8 - 0
src/http/moudules/letter.js

@@ -275,6 +275,14 @@ export const yongchenggetPolicyPrint = (data) => {
         data
     })
 }
+//国任电子保单
+export const guoRengetPolicyPrint = (data) => {
+    return axios({
+        url: "/api/guoRen/policyPrint",
+        method: "post",
+        data
+    })
+}
 //恒邦电子保单
 export const hengbanggetPolicyPrint = (data) => {
     return axios({

+ 39 - 0
src/views/Letter/Orderlist.vue

@@ -1523,6 +1523,45 @@ export default {
                 })
               }
               break;
+              case "国任财险":
+              if (this.orderInfo.jqpolicyno) {
+                this.$api.letter.guoRengetPolicyPrint({
+                  companyId: item.id,
+                  riskCode: "0507",
+                  type: '2',//2:保单
+                }).then(res => {
+                  if (res.data) {
+                    this.oldfileList.push({
+                      fileTitle: "交强电子保单",
+                      filename: this.orderInfo.jqpolicyno,
+                      fileurl: res.data.jqUrl,
+                    });
+                    if (res.data.jqFlagUrl) {
+                      this.oldfileList.push({
+                        fileTitle: "交强电子标志",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data.jqFlagUrl,
+                      });
+                    }
+                  }
+                })
+              }
+              if (this.orderInfo.sypolicyno) {
+                this.$api.letter.guoRengetPolicyPrint({
+                  companyId: item.id,
+                  riskCode: "0510",
+                  type: '2',//2:保单
+                }).then(res => {
+                  if (res.data) {
+                    this.oldfileList.push({
+                      fileTitle: "商业电子保单",
+                      filename: this.orderInfo.sypolicyno,
+                      fileurl: res.data.syUrl,
+                    });
+                  }
+                })
+              }
+              break;
             case "紫金财险":
               if (this.orderInfo.jqpolicyno) {
                 this.$api.letter.zijingetPolicyPrint({