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

华农财险报价时添加quantity字段

lihongxiao 2 лет назад
Родитель
Сommit
f4aae4cfea
2 измененных файлов с 10 добавлено и 4 удалено
  1. 2 2
      config/dev.env.js
  2. 8 2
      src/views/Task/daikeComponents/KtLetter.vue

+ 2 - 2
config/dev.env.js

@@ -7,13 +7,13 @@ module.exports = merge(prodEnv, {
 
 
   ENV_CONFIG:'"dev"',
-  // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
   // BASE_URL:'"https://sxzgkj.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.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http:///192.168.0.22:8080/"',//郝宇
   // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮

+ 8 - 2
src/views/Task/daikeComponents/KtLetter.vue

@@ -2285,7 +2285,8 @@ export default {
         premium: 0
       }, //永诚意外险内容
       accidentFormHN: {
-        allQuantity: "1"
+        allQuantity: "1",
+        quantity:'1'
       }, //华农意外险内容
       accidentDataList: [], //永诚意外险
       guoRenaccidentDataList: [], //国任意外险
@@ -4099,9 +4100,10 @@ export default {
         val => val.planCode == index
       ).planSubInfo[0].riskInfo;
       this.huanongaccidentalDrivingVo = Object.assign(
+        this.huanongInsuranceData.find(val => val.planCode == index),
         this.accidentFormHN,
-        this.huanongInsuranceData.find(val => val.planCode == index)
       );
+
     },
     taipingInsuranceChange(index) {
       this.TPInsuranceData = this.taipingInsuranceData.find(val => val.rationType == index).fCkindConfigList
@@ -5983,6 +5985,9 @@ export default {
         params.discount = this.totalCompanyList[num].discount;
         params.lastCompanyId = this.lastCompanyId;
       }
+      if (namesimple == "华农财险" ) {
+        params.accidentalDrivingVo.quantity = params.accidentalDrivingVo.allQuantity;
+      }
       this.$api.letter[api](params).then(res => {
         this.totalCompanyList[num].msg = res.msg;
         switch (namesimple) {
@@ -8038,6 +8043,7 @@ export default {
       };
       this.accidentFormHN = {
         allQuantity: "1",
+        quantity:'1'
       };
 
       this.hengbangaccidentalDrivingVo = {};