Explorar o código

1、永城清除驾意险后,不能报价问题
2、查看详情-使用性质字段不显示内容问题

lihongxiao %!s(int64=2) %!d(string=hai) anos
pai
achega
d7aa9dc0fb
Modificáronse 3 ficheiros con 22 adicións e 4 borrados
  1. 2 2
      config/dev.env.js
  2. 2 0
      src/views/Letter/Letter.vue
  3. 18 2
      src/views/Letter/Orderlist.vue

+ 2 - 2
config/dev.env.js

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

+ 2 - 0
src/views/Letter/Letter.vue

@@ -5873,6 +5873,7 @@ else{
 
 
     },
     },
     clearAccidentForm() {
     clearAccidentForm() {
+      this.accidentForm={}
       this.accidentForm.fen=1
       this.accidentForm.fen=1
       this.accidentForm.premium=0
       this.accidentForm.premium=0
     },
     },
@@ -6687,6 +6688,7 @@ else{
         let data = this.accidentDataList.find(
         let data = this.accidentDataList.find(
           val => val.code == this.accidentForm.accidentType
           val => val.code == this.accidentForm.accidentType
         );
         );
+
         accidentalDrivingVo = {
         accidentalDrivingVo = {
           rideRiskCode: data.code ? data.code : "",
           rideRiskCode: data.code ? data.code : "",
           rideRiskName: data.name ? data.name : "",
           rideRiskName: data.name ? data.name : "",

+ 18 - 2
src/views/Letter/Orderlist.vue

@@ -685,7 +685,7 @@
             orderInfo.carinfo.purchasePrice
             orderInfo.carinfo.purchasePrice
           }}</el-descriptions-item>
           }}</el-descriptions-item>
           <el-descriptions-item label="使用性质">
           <el-descriptions-item label="使用性质">
-            {{ orderInfo.carinfo.carnature == "8A" ? "家庭自用" : "" }}
+            {{orderInfo.carinfo.carnature  }}
           </el-descriptions-item>
           </el-descriptions-item>
           <el-descriptions-item label="注册日期">{{
           <el-descriptions-item label="注册日期">{{
             orderInfo.carinfo.registerDate
             orderInfo.carinfo.registerDate
@@ -1537,9 +1537,11 @@ export default {
       querystatusLoaing: false,
       querystatusLoaing: false,
       quotationhistorydialogVisible: false, //报价历史显示状态
       quotationhistorydialogVisible: false, //报价历史显示状态
       HistoryList: [], //报价历史数据
       HistoryList: [], //报价历史数据
+      natureOfVehicleUseoptions:[],
     };
     };
   },
   },
   created() {
   created() {
+    this.getDicType("natureOfVehicleUse");//车辆使用性质
     this.$api.letter.gainTopList().then((res) => {
     this.$api.letter.gainTopList().then((res) => {
       this.companyList = res.data;
       this.companyList = res.data;
     });
     });
@@ -1572,6 +1574,7 @@ export default {
         return item.dictValue === ele;
         return item.dictValue === ele;
       }).dictTag;
       }).dictTag;
     },
     },
+  
   },
   },
   unmounted() {
   unmounted() {
     window.removeEventListener("resize", this.getDimensions);
     window.removeEventListener("resize", this.getDimensions);
@@ -1627,6 +1630,14 @@ export default {
         this.HistoryList = res.data;
         this.HistoryList = res.data;
       });
       });
     },
     },
+    getDicType(type) {
+      this.$api.insCompany.dicType(type).then(res => {
+        if (res.code == 200) {
+            this[type + 'options'] = res.data.ddList;
+        }
+      })
+
+    },
     capType(val) {
     capType(val) {
       if (val == "0") {
       if (val == "0") {
         return "success";
         return "success";
@@ -2096,6 +2107,11 @@ export default {
         }
         }
       });
       });
     },
     },
+    natureOfVehicleUseCap(ele) {
+      return this.natureOfVehicleUseoptions.find((item) => {
+        return item.dictValue === ele;
+      }).dictTag;
+    },
     //应用详情
     //应用详情
     OrderDetails(dy, item) {
     OrderDetails(dy, item) {
       this.carImageList = [];
       this.carImageList = [];
@@ -2108,7 +2124,6 @@ export default {
       this.pic2Control = false;
       this.pic2Control = false;
       this.pic3Control = false;
       this.pic3Control = false;
       this.pic4Control = false;
       this.pic4Control = false;
-
       this.pic5Control = false;
       this.pic5Control = false;
 
 
       for (let i = 0; i < this.global.insureList.length; i++) {
       for (let i = 0; i < this.global.insureList.length; i++) {
@@ -2122,6 +2137,7 @@ export default {
         if (res.code == 200) {
         if (res.code == 200) {
           this.licenseNo = res.data.licenseno; //车牌号
           this.licenseNo = res.data.licenseno; //车牌号
           this.inscompany = res.data.inscompany; //保险公司
           this.inscompany = res.data.inscompany; //保险公司
+          res.data.carinfo.carnature= this.natureOfVehicleUseCap(res.data.carinfo.carnature)
           if (res.data.accidentInfo) {
           if (res.data.accidentInfo) {
             res.data.accidentInfo.constructor === Object
             res.data.accidentInfo.constructor === Object
               ? [res.data.accidentInfo]
               ? [res.data.accidentInfo]