@dongkboy 2 rokov pred
rodič
commit
b1f488011c
1 zmenil súbory, kde vykonal 44 pridanie a 43 odobranie
  1. 44 43
      src/views/Task/daikeComponents/KtLetter1.vue

+ 44 - 43
src/views/Task/daikeComponents/KtLetter1.vue

@@ -992,7 +992,7 @@
                 <!-- 险种明细 -->
                 <el-col :span="8" class="card-bg" style="padding-left: 0;" v-if="reslistitem.programme && reslistitem.programme.kinds">
                   <div class="card-mingxi">
-                    <div class="card-mingxi-title">险种明细: 
+                    <div class="card-mingxi-title">险种明细:
                       <span v-show="reslistitem.checkedProgramme != 99" @click="showDetailJiaYi(reslistitem, reslistindex)">查看详情</span>
                       <span v-show="reslistitem.checkedProgramme == 99" @click="showTypeDialog(reslistitem, reslistindex)">调整险种</span>
                     </div>
@@ -1209,7 +1209,7 @@
                             </div>
                           </div>
                           <div class="w-60 w-66">{{ (
-                            (reslistitem.result.jqInput ? reslistitem.result.jqPremium * (reslistitem.result.jqInput / 100) : 0) + 
+                            (reslistitem.result.jqInput ? reslistitem.result.jqPremium * (reslistitem.result.jqInput / 100) : 0) +
                             (reslistitem.result.syInput ? reslistitem.result.syPremium * (reslistitem.result.syInput / 100) : 0 ) +
                             (reslistitem.result.jyInput ? reslistitem.result.jyPremium * (reslistitem.result.jyInput / 100) : 0)
                           ).toFixed(2)
@@ -1364,7 +1364,7 @@
                                 reslistitem.namesimple == '中国人寿'
                                 "></i>
                           </el-tooltip>
-                          
+
                         </div>
                       </div>
                     </div>
@@ -1557,7 +1557,7 @@
                     </div>
                   </div> -->
                 </el-col>
-                
+
                 <!-- <el-col :gutter="20" :span="24" class="company-checked-left">
                   <div class="company-checked-card" v-if="reslistitem.programme">
                     <div>
@@ -1622,7 +1622,7 @@
               </el-row>
             </div>
 
-            <!-- 
+            <!--
               <div class="flex j-s offer-time" v-if="reslistitem.quoteCode == '200'">
 
               <div style="line-height: 25px">
@@ -2811,7 +2811,7 @@
         <el-button type="primary" @click="userOCRconfirm()" size="small">确 认</el-button>
       </span>
     </el-dialog>
-    
+
     <el-dialog :visible.sync="pinganDataDetailVisible" width="40%"  title="责任明细">
       <el-table
       :data="pinganDataDetail"
@@ -3596,7 +3596,7 @@
         <!-- <div class="typedialog-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险详情:</div> -->
         <div class="typedialog-style">
           <div class="flex a-c" style="margin-bottom: 20px;">
-            <div class="typedialog-title addyiwai-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险方案配置:</div>
+            <div class="typedialog-title addyiwai-title"><i class="el-icon-circle-check" style="color: #D42426; font-size: 20px; margin-right: 10px;"></i>驾意险方案配置123:</div>
             <div v-if="false" class="addyiwai-title-btn">添加配置</div>
           </div>
           <div v-if="true">
@@ -3724,7 +3724,7 @@
         </div>
       </div>
       <span slot="footer" class="dialog-footer">
-        <el-button size="small" @click="typeDialogVisible">取 消</el-button>
+        <el-button size="small" @click="typeDialogVisible=false">取 消</el-button>
         <el-button size="small" type="primary" @click="subTypeDialog">确 定</el-button>
       </span>
     </el-dialog>
@@ -4179,7 +4179,7 @@ export default {
           name: "上年商业险保单",
           scroll: "snbaodan",
         },
-        
+
       ],
       packageValue: "",
       packageOptions: [],
@@ -5356,7 +5356,7 @@ export default {
       systartdate: "", //商业时间
       mobile: "", //投保人手机号
       //影像回显列表
-     
+
       // 是否禁用上传
       uploadDisabled: false,
       href: "",
@@ -5708,7 +5708,7 @@ export default {
     toWan(num, type) {
       if (type == 'fw') {
         return num + '次'
-      } 
+      }
       if (num > 10000) {
         if (num % 10000 == 0) {
           return (num / 10000) + '万'
@@ -5769,7 +5769,7 @@ export default {
               } else {
                 // this.policyHolderInfo = {}
               }
-              
+
               console.log('校验成功,获取列表')
               let res = {};
               // res = await this.$api.letter.getAllAgreement();
@@ -5803,7 +5803,7 @@ export default {
                       });
                     }
                   });
-                  
+
                   if (data) {
                     this.productId =  data.productid
                     res.data.forEach((val, index) => {
@@ -5970,17 +5970,18 @@ export default {
     // 确认驾意
     handleAddYiWai() {
       let arr = []
+      console.log(this.checkList,"驾意险")
       this.checkList.forEach((val) => {
         if (this.totalCompanyList[this.typeDialogIndex].cnName == 'zijin') {
-          arr.push(...val.tableData)
+          if(val.tableData ) arr.push(...val.tableData)
+
         // } else if (this.totalCompanyList[this.typeDialogIndex].cnName == 'guoRen' || this.totalCompanyList[this.typeDialogIndex].cnName == 'ansheng') {
         //   arr.push({...val.tableData, select: val.select})
         } else {
-          arr.push(val.tableData)
+          if(val.tableData ) arr.push(val.tableData)
         }
       })
-      console.log(arr, 'arr')
-      this.totalCompanyList[this.typeDialogIndex].zxProgramme.drivingList = arr
+      this.totalCompanyList[this.typeDialogIndex].zxProgramme.drivingList = arr;
       this.totalCompanyList[this.typeDialogIndex].programme.drivingList = arr
       this.handleCloseAddYiwai()
     },
@@ -6026,7 +6027,7 @@ export default {
       //   })
       } else {
         this.checkList[index].detail.forEach((val) => {
-          if (val.projectName == this.checkList[index].select) {
+          if (val.alias == this.checkList[index].select) {
             this.checkList[index].tableData = val
           }
         })
@@ -6054,7 +6055,7 @@ export default {
           })
         })
       }
-      
+
     },
     showDetailJiaYi(item, index) {
       this.showDetailtable = []
@@ -6640,9 +6641,9 @@ export default {
       if (!index) {
         return;
       }
-      
+
       this.accidentFormPA[index1].pingantemplateSelection = index;
-     
+
       this.accidentFormPA[index1].projectName=index
         val.map(val1=>{
           if(val1.projectName == index){
@@ -6653,7 +6654,7 @@ export default {
             this.accidentFormPA[index1].projectCode= val1.projectCode
           }
         })
-      
+
       // this.accidentFormPA[index1].projectCode=this.pinganInsuranceData.find(val1=>{
       //   // val1.map(
       //   //   (val) => val.projectName == index
@@ -7184,20 +7185,20 @@ export default {
         })
         return
       }
-        this.$api.letter 
+        this.$api.letter
           .getDrivingInsuranceRule({
             companyCode: item.id,
             agreementId: item.agreementId,
             seatNum:
               item.namesimple == "永诚财险" || item.namesimple == "中煤财险"
-                ? Number(this.carInfo.seatCount)  
+                ? Number(this.carInfo.seatCount)
                 : "",
             ruleUseNature: this.carInfo.carnature,
             ruleSeatNum: Number(this.carInfo.seatCount),
             risk: this.riskList,
             kind: this.kindList,
             ruleThirdPartyInsurance: this.insureList[1].amount,
-          
+
           })
           .then((res) => {
             if (res.code == 200) {
@@ -7404,7 +7405,7 @@ export default {
     RSDrivingRadio(row) {
       this.RSDrivingChange(row);
     },
-    
+
     //安盛驾意险选择
     ASDrivingRadio(row) {
       this.anshengInsurancetype = row.projectCode;
@@ -7477,7 +7478,7 @@ export default {
     },
     //平安驾意险选择
     PADrivingRadio(row,agreementId,index) {
-    
+
       // this.accidentPremiumPA = row.premium;
       this.accidentFormPA[index].quantity = '1';
       this.accidentFormPA[index].sellListSize =Number(row.sellListSize) ;
@@ -7831,7 +7832,7 @@ export default {
       //   quantity: 1,
       //   premium: 0,
       //   pingantemplateSelection:'',
-      //   pinganInsuranceDataTable:[], 
+      //   pinganInsuranceDataTable:[],
       //   pinganInsurancetype:'',
       // }
         this.pinganaccidentalDrivingVo[index] = {};
@@ -7990,7 +7991,7 @@ export default {
           //   element.removeChild(element.firstChild);
           // }
           // this.signaturecode = new QRCode("signaturecode", {
-          //   text:  resultMessage, 
+          //   text:  resultMessage,
           //   width: 180,
           //   height: 180,
           //   colorDark: "#000000",
@@ -8006,15 +8007,15 @@ export default {
       //       element.removeChild(element.firstChild);
       //     }
       //     this.signaturecode = new QRCode("signaturecode", {
-      //       text:  res.data.resultMessage, 
+      //       text:  res.data.resultMessage,
       //       width: 180,
       //       height: 180,
       //       colorDark: "#000000",
       //       colorLight: "#ffffff",
       //       correctLevel: QRCode.CorrectLevel.H,
       //     });
-        } else { 
-          this.$message({ 
+        } else {
+          this.$message({
             message: res.msg || "暂无数据!",
             type: "warning",
           });
@@ -8379,7 +8380,7 @@ export default {
                     startDate: _this.systartDate,
                     instantFlag: "0",
                   });
-                  
+
                   // _this.totalCompanyList.forEach((val) => {
                   //   if (val.checked) {
                   //     console.log(val.programme, 'programmeeeeeeee')
@@ -8439,7 +8440,7 @@ export default {
                 } else {
                   _this.kindList = [];
                 }
-                
+
                 // if (_this.orderno) {
                 this.OrderStageProcessing(index);
                 // } else {
@@ -8557,7 +8558,7 @@ export default {
                     startDate: _this.systartDate,
                     instantFlag: "0",
                   });
-                  
+
                 } else {
                   _this.kindList = [];
                 }
@@ -10300,7 +10301,7 @@ export default {
         }
       });
     },
-  
+
     hbsubmitdialog(data) {
       if (this.imageList1.length == 0 && this.imageList2.length == 0) {
         this.$message({ message: "影像不全,先上传影像", type: "error" });
@@ -10861,7 +10862,7 @@ export default {
                               customClass: "customNotifyClass",
                               type: "error",
                               duration: 0,
-                            }); 
+                            });
                           }
                         });
 
@@ -11209,7 +11210,7 @@ export default {
           }}
         })
       }
-    }, 
+    },
     //VIN查询
     toChooseVin(cartype) {
       if (cartype == "" || cartype == null) {
@@ -13304,7 +13305,7 @@ export default {
     background: #F7F7F9;
     color: #333333;
   }
-  
+
   .el-checkbox-group {
     font-size: 16px;
     color: #333;
@@ -13430,7 +13431,7 @@ export default {
       background: linear-gradient( 90deg, #F6734A 0%, #F14B3A 100%);
       color: #FFF;
     }
-    
+
     >>> .is-checked, >>> .is-indeterminate{
       .el-checkbox__inner {
         background: #F96646 !important;
@@ -13475,7 +13476,7 @@ export default {
       border-radius: 4px 0 0 4px;
     }
   }
-  
+
   .synchronous {
     width: 75px;
     height: 45px;
@@ -13484,7 +13485,7 @@ export default {
     position: relative;
     img {
       position: absolute;
-      top: 0; 
+      top: 0;
       left: 0;
       width: 75px;
       height: 45px;
@@ -13614,4 +13615,4 @@ export default {
     text-align: center;
   }
 }
-</style>
+</style>