Ver código fonte

众安,需要验车的怎讲提示语

lihongxiao 2 anos atrás
pai
commit
202cf19ea2
2 arquivos alterados com 31 adições e 9 exclusões
  1. 2 2
      config/dev.env.js
  2. 29 7
      src/views/Letter/Letter.vue

+ 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.111:8080/"' //大哥
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
 })

+ 29 - 7
src/views/Letter/Letter.vue

@@ -4333,6 +4333,19 @@ export default {
             break;
           case '众安财险':
             if (!!res.data) {
+              if(res.data.tips=='需要验车'){
+                this.$notify.error({
+                  title: '错误',
+                  duration: 0,
+                  dangerouslyUseHTMLString: true,
+                  message: `<div> ${ 
+                    res.data.warnMessageList.map(item=>{ 
+                        return `<p>${ 
+                      item}</p>`
+                    }).join('')}
+                    </div>`
+                });
+              }
               this.totalCompanyList[num].quoteCode = 200;
               this.totalCompanyList[num].result = res.data;
               this.QuotationHistory();
@@ -4504,16 +4517,25 @@ export default {
       this.companyId = data.result.companyId;
       this.apiType = data.apiType;
       this.hbsubmitdialogVisible = true;
-      switch (data.namesimple) {
-        case "紫金财险":
-          this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
+      console.log(data.namesimple,1111111111)
+      if(data.namesimple=='紫金财险'){
+        this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
             this.zijinengageListData = res.data;
           });
-          break;
-        default:
-
-          break;
       }
+      else{
+        this.zijinengageListData = []
+      }
+      // switch (data.namesimple) {
+      //   case "紫金财险":
+      //     this.$api.letter.zijinqueryClauseData({ companyId: this.companyId }).then(res => {
+      //       this.zijinengageListData = res.data;
+      //     });
+      //     break;
+      //   default:
+
+      //     break;
+      // }
 
     },
     hbsubmit() {