Prechádzať zdrojové kódy

判断状态为已承保,调取电子保单接口

lihongxiao 2 rokov pred
rodič
commit
b5f30b1747

+ 2 - 2
config/dev.env.js

@@ -5,8 +5,8 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
-  // BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
+  // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
+  BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.253:8082/"',//田智
   // BASE_URL: '"http:///192.168.0.36:8080/"',//靖燕龙

+ 4 - 0
src/assets/css/global.css

@@ -95,4 +95,8 @@ html, body, #app {
 .el-message-box__wrapper {
   top: -120px !important;
   left: 9px !important;
+}
+.customNotifyClass {
+  word-break: break-all;
+  width: 600px;
 }

+ 6 - 5
src/views/Letter/Letter.vue

@@ -216,6 +216,7 @@
           <el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
             <el-form-item label="整备质量:" prop="completeKerbMass">
               <el-input v-model="carInfo.completeKerbMass" placeholder="请输入整备质量">
+                <el-button slot="append">千克(KG)</el-button>
               </el-input>
             </el-form-item>
           </el-col>
@@ -6831,7 +6832,6 @@ else{
                   title: '通融单',
                   duration: 0,
                   dangerouslyUseHTMLString: true,
-                  customClass: "customStyle",
                   message: `<div> ${
                     res.data.warnMessageList.map(item=>{
                         return `<p>${
@@ -8668,14 +8668,15 @@ else{
 };
 </script>
 <style>
-.customNotifyClass {
+/* .customNotifyClass {
   word-break: break-all;
   width: 600px;
-}
+} */
+
 </style>
 <style lang="scss" scoped>
-.customStyle{
-  width: 330px;
+.el-notification{
+  width: 600px;
 }
 .styleB .el-upload--picture-card {
   // display: none;

+ 418 - 415
src/views/Letter/Orderlist.vue

@@ -1618,513 +1618,516 @@ export default {
           this.pic4Control = false;
           this.pic5Control = false;
           this.oldfileList = [];
-          switch (res.data.inscompany) {
-            case "永安财险":
-              if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.getPolicyPrint({
-                  companyId: item.id,
-                  policytype: "jq"
-                }).then((res) => {//交强保单
-                  if (res.data) {
-                    let result = res.data.replace(/[\r\n]/g, "");
-                    let pdfBase64 = `data:application/pdf;base64,${result}`;
-                    base64ToPath(pdfBase64).then((path) => {
-                      if(path){
+          if(res.data.orderstatus=='3'){
+            switch (res.data.inscompany) {
+              case "永安财险":
+                if (this.orderInfo.jqpolicyno) {
+                  this.$api.letter.getPolicyPrint({
+                    companyId: item.id,
+                    policytype: "jq"
+                  }).then((res) => {//交强保单
+                    if (res.data) {
+                      let result = res.data.replace(/[\r\n]/g, "");
+                      let pdfBase64 = `data:application/pdf;base64,${result}`;
+                      base64ToPath(pdfBase64).then((path) => {
+                        if(path){
+                          this.oldfileList.push({
+                            fileTitle: "交强电子保单",
+                            filename: this.orderInfo.jqpolicyno,
+                            fileurl: path,
+                          });
+                        }
+
+                      });
+                    }
+                  });
+                  this.$api.letter.getPolicyPrint2({
+                    companyId: item.id,
+                    policytype: "jq"
+                  }).then((res) => {//交强保单
+                    if (res.data) {
+                      let result = res.data.replace(/[\r\n]/g, "");
+                      let pdfBase64 = `data:application/pdf;base64,${result}`;
+                      base64ToPath(pdfBase64).then((path) => {
+                        if(path){
+                          this.oldfileList.push({
+                            fileTitle: "交强电子标志",
+                            filename: this.orderInfo.jqpolicyno,
+                            fileurl: path,
+                          });
+                        }
+
+                      });
+                    }
+                  });
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.getPolicyPrint({
+                    companyId: item.id,
+                    policytype: "sy"
+                  }).then((res) => {//商业保单
+                    if (res.data) {
+                      let result = res.data.replace(/[\r\n]/g, "");
+                      let pdfBase64 = `data:application/pdf;base64,${result}`;
+                      base64ToPath(pdfBase64).then((path) => {
+                        if(path){
+                          this.oldfileList.push({
+                            fileTitle: "商业电子保单",
+                            filename: this.orderInfo.sypolicyno,
+                            fileurl: path,
+                          });
+                        }
+
+                      });
+                    }
+                  });
+                }
+                break;
+              case "华泰财险":
+                if (this.orderInfo.jqpolicyno) {
+                  this.$api.letter.HuataigetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data) {
+                      if(res.data.jqxPolicyUrl){
                         this.oldfileList.push({
                           fileTitle: "交强电子保单",
                           filename: this.orderInfo.jqpolicyno,
-                          fileurl: path,
+                          fileurl: res.data.jqxPolicyUrl,
                         });
                       }
-
-                    });
-                  }
-                });
-                this.$api.letter.getPolicyPrint2({
-                  companyId: item.id,
-                  policytype: "jq"
-                }).then((res) => {//交强保单
-                  if (res.data) {
-                    let result = res.data.replace(/[\r\n]/g, "");
-                    let pdfBase64 = `data:application/pdf;base64,${result}`;
-                    base64ToPath(pdfBase64).then((path) => {
-                      if(path){
+                      if (res.data.jqxFlagUrl) {
                         this.oldfileList.push({
                           fileTitle: "交强电子标志",
                           filename: this.orderInfo.jqpolicyno,
-                          fileurl: path,
+                          fileurl: res.data.jqxFlagUrl,
                         });
                       }
-
-                    });
-                  }
-                });
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.getPolicyPrint({
-                  companyId: item.id,
-                  policytype: "sy"
-                }).then((res) => {//商业保单
-                  if (res.data) {
-                    let result = res.data.replace(/[\r\n]/g, "");
-                    let pdfBase64 = `data:application/pdf;base64,${result}`;
-                    base64ToPath(pdfBase64).then((path) => {
-                      if(path){
-                        this.oldfileList.push({
-                          fileTitle: "商业电子保单",
-                          filename: this.orderInfo.sypolicyno,
-                          fileurl: path,
-                        });
+                    }
+                    else{
+                        this.$message.error(res.msg);
                       }
-
-                    });
-                  }
-                });
-              }
-              break;
-            case "华泰财险":
-              if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.HuataigetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data) {
-                    if(res.data.jqxPolicyUrl){
+                  })
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.HuataigetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0510",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data && res.data.syxPolicyUrl) {
                       this.oldfileList.push({
-                        fileTitle: "交强电子保单",
-                        filename: this.orderInfo.jqpolicyno,
-                        fileurl: res.data.jqxPolicyUrl,
+                        fileTitle: "商业电子保单",
+                        filename: this.orderInfo.sypolicyno,
+                        fileurl: res.data.syxPolicyUrl,
                       });
                     }
-                    if (res.data.jqxFlagUrl) {
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                break;
+              case "中煤财险":
+                if (this.orderInfo.jqpolicyno) {
+                  this.$api.letter.ZhongmeigetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data && res.data[0]
+                    ) {
                       this.oldfileList.push({
-                        fileTitle: "交强电子标志",
+                        fileTitle: "交强电子保单",
                         filename: this.orderInfo.jqpolicyno,
-                        fileurl: res.data.jqxFlagUrl,
+                        fileurl: res.data[0],
                       });
                     }
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.HuataigetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0510",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data && res.data.syxPolicyUrl) {
-                    this.oldfileList.push({
-                      fileTitle: "商业电子保单",
-                      filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data.syxPolicyUrl,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              break;
-            case "中煤财险":
-              if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.ZhongmeigetPolicyPrint({
-                  companyId: item.id,
-                  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],
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-                this.$api.letter.ZhongmeigetPolicyPrint({
-                  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],
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.ZhongmeigetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0510",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data && res.data[0]) {
-                    this.oldfileList.push({
-                      fileTitle: "商业电子保单",
-                      filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data[0],
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              break;
-            case "永诚财险":
-              if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.yongchenggetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.code==200 && res.data) {
-                    if(res.data.jqUrl){
-                        this.oldfileList.push({
-                          fileTitle: "交强电子保单",
-                          filename: this.orderInfo.jqpolicyno,
-                          fileurl: res.data.jqUrl,
-                        });
-                    }
-                    if (res.data.jqFlagUrl) {
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                  this.$api.letter.ZhongmeigetPolicyPrint({
+                    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.jqFlagUrl,
+                        fileurl: res.data[0],
                       });
                     }
-                  }
-                  else{
-                    this.$message.error(res.msg);
-                  }
-                })
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.yongchenggetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0510",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data && res.data.syUrl) {
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.ZhongmeigetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0510",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data && res.data[0]) {
                       this.oldfileList.push({
                         fileTitle: "商业电子保单",
                         filename: this.orderInfo.sypolicyno,
-                        fileurl: res.data.syUrl,
+                        fileurl: res.data[0],
                       });
-                  }
-                  else{
-                    this.$message.error(res.msg);
-                  }
-                })
-              }
-              if (this.orderInfo.crossInsurance.length > 0) {
-                this.orderInfo.crossInsurance.map(ele => {
+                    }
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                break;
+              case "永诚财险":
+                if (this.orderInfo.jqpolicyno) {
                   this.$api.letter.yongchenggetPolicyPrint({
                     companyId: item.id,
-                    policyNumber: ele.policyNumber,
-                    riskCode: "0513",
+                    riskCode: "0507",
                     type: '2',//2:保单
                   }).then(res => {
                     if (res.code==200 && res.data) {
-                      this.oldfileList.push({
-                        fileTitle: "驾意险保单",
-                        filename: ele.policyNumber,
-                        fileurl: res.data.jyUrl,
-                      });
+                      if(res.data.jqUrl){
+                          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,
+                        });
+                      }
                     }
                     else{
                       this.$message.error(res.msg);
                     }
                   })
-                })
-              }
-              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,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-                this.$api.letter.guoRengetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '1',//1:标志
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子标志",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.yongchenggetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0510",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data && res.data.syUrl) {
+                        this.oldfileList.push({
+                          fileTitle: "商业电子保单",
+                          filename: this.orderInfo.sypolicyno,
+                          fileurl: res.data.syUrl,
+                        });
                     }
-                })
-              }
-              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,
-                    });
-                  }
-                  else{
+                    else{
                       this.$message.error(res.msg);
                     }
-                })
-              }
-              if (this.orderInfo.crossInsurance.length > 0) {
-                this.orderInfo.crossInsurance.map(ele => {
+                  })
+                }
+                if (this.orderInfo.crossInsurance.length > 0) {
+                  this.orderInfo.crossInsurance.map(ele => {
+                    this.$api.letter.yongchenggetPolicyPrint({
+                      companyId: item.id,
+                      policyNumber: ele.policyNumber,
+                      riskCode: "0513",
+                      type: '2',//2:保单
+                    }).then(res => {
+                      if (res.code==200 && res.data) {
+                        this.oldfileList.push({
+                          fileTitle: "驾意险保单",
+                          filename: ele.policyNumber,
+                          fileurl: res.data.jyUrl,
+                        });
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
+                    })
+                  })
+                }
+                break;
+              case "国任财险":
+                if (this.orderInfo.jqpolicyno) {
                   this.$api.letter.guoRengetPolicyPrint({
                     companyId: item.id,
-                    policyNumber: ele.policyNumber,
-
-                    riskCode: "0513",
+                    riskCode: "0507",
                     type: '2',//2:保单
                   }).then(res => {
                     if (res.data) {
                       this.oldfileList.push({
-                        fileTitle: "驾意险保单",
-                        filename: ele.policyNumber,
+                        fileTitle: "交强电子保单",
+                        filename: this.orderInfo.jqpolicyno,
                         fileurl: res.data,
                       });
                     }
                     else{
-                      this.$message.error(res.msg);
-                    }
+                        this.$message.error(res.msg);
+                      }
                   })
-                })
-              }
-              break;
-            case "紫金财险":
-              if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.zijingetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子保单",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-                this.$api.letter.zijingetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '1',//1:标志
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子标志",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.zijingetPolicyPrint({
-                  companyId: item.id,
-                  riskCode: "0510",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "商业电子保单",
-                      filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
+                  this.$api.letter.guoRengetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '1',//1:标志
+                  }).then(res => {
+                    if (res.data) {
+                      this.oldfileList.push({
+                        fileTitle: "交强电子标志",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data,
+                      });
                     }
-                })
-              }
-              if (this.orderInfo.crossInsurance.length > 0) {
-                this.orderInfo.crossInsurance.map(ele => {
-                  this.$api.letter.zijingetPolicyPrint({
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.guoRengetPolicyPrint({
                     companyId: item.id,
-                    policyNumber: ele.policyNumber,
-                    riskCode: "0513",
+                    riskCode: "0510",
                     type: '2',//2:保单
                   }).then(res => {
                     if (res.data) {
                       this.oldfileList.push({
-                        fileTitle: "驾意险保单",
-                        filename: ele.policyNumber,
+                        fileTitle: "商业电子保单",
+                        filename: this.orderInfo.sypolicyno,
                         fileurl: res.data,
                       });
                     }
                     else{
-                      this.$message.error(res.msg);
-                    }
+                        this.$message.error(res.msg);
+                      }
                   })
-                })
-              }
-              break;
-            case "恒邦财险":
-            case "安盛天平":
-            case "中国人寿":
-            case "众安财险":
-              if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
-                this.$api.letter.pythongetPolicyPrint({
-                  subOrderNo: item.id,
-                }).then(res => {
-                  if (res.data) {
-                    if (res.data.jqxPolicyUrl) {
+                }
+                if (this.orderInfo.crossInsurance.length > 0) {
+                  this.orderInfo.crossInsurance.map(ele => {
+                    this.$api.letter.guoRengetPolicyPrint({
+                      companyId: item.id,
+                      policyNumber: ele.policyNumber,
+
+                      riskCode: "0513",
+                      type: '2',//2:保单
+                    }).then(res => {
+                      if (res.data) {
+                        this.oldfileList.push({
+                          fileTitle: "驾意险保单",
+                          filename: ele.policyNumber,
+                          fileurl: res.data,
+                        });
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
+                    })
+                  })
+                }
+                break;
+              case "紫金财险":
+                if (this.orderInfo.jqpolicyno) {
+                  this.$api.letter.zijingetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data) {
                       this.oldfileList.push({
                         fileTitle: "交强电子保单",
                         filename: this.orderInfo.jqpolicyno,
-                        fileurl: res.data.jqxPolicyUrl,
+                        fileurl: res.data,
                       });
                     }
-                    if (res.data.jqxFlagUrl) {
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                  this.$api.letter.zijingetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '1',//1:标志
+                  }).then(res => {
+                    if (res.data) {
                       this.oldfileList.push({
                         fileTitle: "交强电子标志",
                         filename: this.orderInfo.jqpolicyno,
-                        fileurl: res.data.jqxFlagUrl,
+                        fileurl: res.data,
                       });
                     }
-                    if (res.data.syxPolicyUrl) {
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.zijingetPolicyPrint({
+                    companyId: item.id,
+                    riskCode: "0510",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data) {
                       this.oldfileList.push({
                         fileTitle: "商业电子保单",
                         filename: this.orderInfo.sypolicyno,
-                        fileurl: res.data.syxPolicyUrl,
+                        fileurl: res.data,
                       });
                     }
-                    if (res.data.jyxInfoList && res.data.jyxInfoList.length>0) {
-                      res.data.jyxInfoList.forEach(val=>{
+                    else{
+                        this.$message.error(res.msg);
+                      }
+                  })
+                }
+                if (this.orderInfo.crossInsurance.length > 0) {
+                  this.orderInfo.crossInsurance.map(ele => {
+                    this.$api.letter.zijingetPolicyPrint({
+                      companyId: item.id,
+                      policyNumber: ele.policyNumber,
+                      riskCode: "0513",
+                      type: '2',//2:保单
+                    }).then(res => {
+                      if (res.data) {
                         this.oldfileList.push({
-                        fileTitle: "驾意险保单",
-                        filename: 'xxxxxxxxxxxxxxxxxxxxxx',
-                        fileurl: val.jyx_policy_url,
-                      });
-                      })
+                          fileTitle: "驾意险保单",
+                          filename: ele.policyNumber,
+                          fileurl: res.data,
+                        });
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
+                    })
+                  })
+                }
+                break;
+              case "恒邦财险":
+              case "安盛天平":
+              case "中国人寿":
+              case "众安财险":
+                if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
+                  this.$api.letter.pythongetPolicyPrint({
+                    subOrderNo: item.id,
+                  }).then(res => {
+                    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,
+                        });
+                      }
+                      if (res.data.syxPolicyUrl) {
+                        this.oldfileList.push({
+                          fileTitle: "商业电子保单",
+                          filename: this.orderInfo.sypolicyno,
+                          fileurl: res.data.syxPolicyUrl,
+                        });
+                      }
+                      if (res.data.jyxInfoList && res.data.jyxInfoList.length>0) {
+                        res.data.jyxInfoList.forEach(val=>{
+                          this.oldfileList.push({
+                          fileTitle: "驾意险保单",
+                          filename: 'xxxxxxxxxxxxxxxxxxxxxx',
+                          fileurl: val.jyx_policy_url,
+                        });
+                        })
 
-                    }
-                    }
-                    else{
-                      this.$message.error(res.msg);
-                    }
+                      }
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
 
-                })
-              }
-              break;
-            case "大家财险":
-            if (this.orderInfo.jqpolicyno) {
-                this.$api.letter.obtainWarranty({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子保单",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-                this.$api.letter.obtainWarranty({
-                  companyId: item.id,
-                  riskCode: "0507",
-                  type: '1',//1:标志
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子标志",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                  else{
-                      this.$message.error(res.msg);
-                    }
-                })
-              }
-              if (this.orderInfo.sypolicyno) {
-                this.$api.letter.obtainWarranty({
-                  companyId: item.id,
-                  riskCode: "0510",
-                  type: '2',//2:保单
-                }).then(res => {
-                  if (res.data) {
-                    this.oldfileList.push({
-                      fileTitle: "商业电子保单",
-                      filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data,
-                    });
-                  }
-                })
-              }
-              if (this.orderInfo.crossInsurance.length > 0) {
-                this.orderInfo.crossInsurance.map(ele => {
-                  this.$api.letter.zijingetPolicyPrint({
+                  })
+                }
+                break;
+              case "大家财险":
+              if (this.orderInfo.jqpolicyno) {
+                  this.$api.letter.obtainWarranty({
                     companyId: item.id,
-                    policyNumber: ele.policyNumber,
-                    riskCode: "0513",
+                    riskCode: "0507",
                     type: '2',//2:保单
                   }).then(res => {
                     if (res.data) {
                       this.oldfileList.push({
-                        fileTitle: "驾意险保单",
-                        filename: ele.policyNumber,
+                        fileTitle: "交强电子保单",
+                        filename: this.orderInfo.jqpolicyno,
                         fileurl: res.data,
                       });
                     }
                     else{
-                      this.$message.error(res.msg);
+                        this.$message.error(res.msg);
+                      }
+                  })
+                  this.$api.letter.obtainWarranty({
+                    companyId: item.id,
+                    riskCode: "0507",
+                    type: '1',//1:标志
+                  }).then(res => {
+                    if (res.data) {
+                      this.oldfileList.push({
+                        fileTitle: "交强电子标志",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data,
+                      });
                     }
+                    else{
+                        this.$message.error(res.msg);
+                      }
                   })
-                })
-              }
-              break;
-            default:
+                }
+                if (this.orderInfo.sypolicyno) {
+                  this.$api.letter.obtainWarranty({
+                    companyId: item.id,
+                    riskCode: "0510",
+                    type: '2',//2:保单
+                  }).then(res => {
+                    if (res.data) {
+                      this.oldfileList.push({
+                        fileTitle: "商业电子保单",
+                        filename: this.orderInfo.sypolicyno,
+                        fileurl: res.data,
+                      });
+                    }
+                  })
+                }
+                if (this.orderInfo.crossInsurance.length > 0) {
+                  this.orderInfo.crossInsurance.map(ele => {
+                    this.$api.letter.zijingetPolicyPrint({
+                      companyId: item.id,
+                      policyNumber: ele.policyNumber,
+                      riskCode: "0513",
+                      type: '2',//2:保单
+                    }).then(res => {
+                      if (res.data) {
+                        this.oldfileList.push({
+                          fileTitle: "驾意险保单",
+                          filename: ele.policyNumber,
+                          fileurl: res.data,
+                        });
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
+                    })
+                  })
+                }
+                break;
+              default:
+            }
           }
+
           this.showInsureList = false;
           this.quotedetailsdialogVisible = true; //在页面上显示订单
         } else {