lihongxiao hace 2 años
padre
commit
04c69ca79a
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      src/views/Task/daikeComponents/KtLetter.vue

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

@@ -4129,7 +4129,7 @@ export default {
       // ];
       // ];
       this.RSInsuranceData = this.renshouInsuranceData.find(val => val.projectCode == index).son
       this.RSInsuranceData = this.renshouInsuranceData.find(val => val.projectCode == index).son
       if (index) {
       if (index) {
-        this.RSDrivingChange(this.RSInsuranceData[0]);
+        this.RSDrivingChange(this.renshouInsuranceData.find(val => val.projectCode == index));
       }
       }
     },
     },
     async dajiaInsuranceChange(index) {
     async dajiaInsuranceChange(index) {
@@ -4607,6 +4607,11 @@ export default {
       //     break;
       //     break;
       // }
       // }
     },
     },
+    nonVehicle(data,type){
+      if( data.some(e=>e.isDefault)){
+        this[type]=res.data.find(ele=>ele.isDefault).projectCode
+        }
+    },
     CheckboxChange(select, row) {
     CheckboxChange(select, row) {
       this.accidentalDrivingVo = [];
       this.accidentalDrivingVo = [];
       select.map(val => {
       select.map(val => {
@@ -4747,8 +4752,8 @@ export default {
                     case "中国人寿":
                     case "中国人寿":
                     case "恒邦财险":
                     case "恒邦财险":
                     case "太平财险":
                     case "太平财险":
-                    case "安盛天平":
                     case "华农财险":
                     case "华农财险":
+                    case "安盛天平":
                     case "众安财险":
                     case "众安财险":
                     res.data.map(ele => {
                     res.data.map(ele => {
                         ele.quantity = 1;
                         ele.quantity = 1;
@@ -4896,6 +4901,7 @@ export default {
       } else {
       } else {
       }
       }
     },
     },
+   
     clearAccidentForm() {
     clearAccidentForm() {
       this.accidentForm = {};
       this.accidentForm = {};
       this.accidentForm.fen = 1;
       this.accidentForm.fen = 1;