lihongxiao 2 лет назад
Родитель
Сommit
d13d2a0615
2 измененных файлов с 23 добавлено и 2 удалено
  1. 2 2
      config/dev.env.js
  2. 21 0
      src/views/Letter/Orderlist.vue

+ 2 - 2
config/dev.env.js

@@ -6,8 +6,8 @@ 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://192.168.0.115:8080/"' //凯森
+  // 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/"',//靖燕龙
 })

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

@@ -1783,6 +1783,27 @@ export default {
                       }
                   })
                 }
+                if (this.orderInfo.crossInsurance.length > 0) {
+                  this.orderInfo.crossInsurance.map(ele => {
+                    this.$api.letter.ZhongmeigetPolicyPrint({
+                      ridePolicyNo: ele.ridePolicyNo,
+                      companyId: item.id,
+                      riskCode: "0513",
+                      type: '2',//2:保单
+                    }).then(res => {
+                      if (res.code==200 && res.data) {
+                        this.oldfileList.push({
+                          fileTitle: "驾意险保单",
+                          filename: this.orderInfo.sypolicyno,
+                          fileurl:  res.data[0],
+                        });
+                      }
+                      else{
+                        this.$message.error(res.msg);
+                      }
+                    })
+                  })
+                }
                 break;
               case "永诚财险":
                 if (this.orderInfo.jqpolicyno) {