wuguojie před 1 rokem
rodič
revize
9c8ed779e7

+ 8 - 0
src/http/moudules/letter.js

@@ -889,6 +889,14 @@ export const bohaiquote = (data) => {
     data
     data
   })
   })
 }
 }
+// dadi报价
+export const dadiquote = (data) => {
+  return axios({
+    url: '/quote/quote',
+    method: 'post',
+    data
+  })
+}
 // 渤海影像
 // 渤海影像
 export const insbohaisubmitImage = (data) => {
 export const insbohaisubmitImage = (data) => {
   return axios({
   return axios({

+ 35 - 14
src/views/Task/daikeComponents/KtLetter1.vue

@@ -6335,7 +6335,6 @@ export default {
     this.getCompanyList(this.$route.query.data);
     this.getCompanyList(this.$route.query.data);
     this.onScroll();
     this.onScroll();
     this.initVerificationDict();
     this.initVerificationDict();
-    console.log('地址栏里的数据', this.$route.query.data)
     if (this.$route.query.data) {
     if (this.$route.query.data) {
       if (this.isDateBeforeToday(this.$route.query.data.jqstartdate)) {
       if (this.isDateBeforeToday(this.$route.query.data.jqstartdate)) {
         this.jqstartDate = this.transformTime1();
         this.jqstartDate = this.transformTime1();
@@ -6524,9 +6523,9 @@ export default {
                     ele["apiType"] = "";
                     ele["apiType"] = "";
                     ele["orderstatus"] = 0;
                     ele["orderstatus"] = 0;
                     ele.coefficient = "";
                     ele.coefficient = "";
-                    ele.pricingCoefficient = ''
-                    ele.pricingCoefficientUpper = ''
-                    ele.pricingCoefficientLower = ''
+                    // ele.pricingCoefficient = data.insAreaCompanyEditingDtos.find(item => ele.namesimple === item.namesimple).pricingCoefficient
+                    // ele.pricingCoefficientUpper = data.insAreaCompanyEditingDtos.find(item => ele.namesimple === item.namesimple).pricingCoefficientUpper
+                    // ele.pricingCoefficientLower = data.insAreaCompanyEditingDtos.find(item => ele.namesimple === item.namesimple).pricingCoefficientLower
                     ele.underwritingDescription =
                     ele.underwritingDescription =
                       ele.agreement[0].underwritingDescription;
                       ele.agreement[0].underwritingDescription;
                     if (
                     if (
@@ -6581,6 +6580,11 @@ export default {
                           }
                           }
                           res.data[index].quoteCode = 200;
                           res.data[index].quoteCode = 200;
                           res.data[index].result = ele;
                           res.data[index].result = ele;
+                          if(ele.inscompany == '阳光财险') {
+                              res.data[index].pricingCoefficient = ele.pricingCoefficient
+                              res.data[index].pricingCoefficientUpper = ele.pricingCoefficientUpper
+                              res.data[index].pricingCoefficientLower = ele.pricingCoefficientLower
+                          }
                         }
                         }
                       });
                       });
                     });
                     });
@@ -6627,7 +6631,6 @@ export default {
                 }
                 }
                 this.totalCompanyList = res.data;
                 this.totalCompanyList = res.data;
                 this.showLoading = false;
                 this.showLoading = false;
-                console.log(123123123, this.totalCompanyList)
               });
               });
             } else {
             } else {
               document.getElementById("CheZhu").scrollIntoView();
               document.getElementById("CheZhu").scrollIntoView();
@@ -10706,6 +10709,11 @@ export default {
           }
           }
           this.totalCompanyList[num].quoteCode = 200;
           this.totalCompanyList[num].quoteCode = 200;
           this.totalCompanyList[num].result = res.data;
           this.totalCompanyList[num].result = res.data;
+            console.log('报价结果', res.data)
+            console.log('报价公司', this.totalCompanyList[num])
+          this.totalCompanyList[num].pricingCoefficient = res.data.pricingCoefficient
+          this.totalCompanyList[num].pricingCoefficientUpper = res.data.pricingCoefficientUpper
+          this.totalCompanyList[num].pricingCoefficientLower = res.data.pricingCoefficientLower
           this.jqstartDate = res.data.startDateJq;
           this.jqstartDate = res.data.startDateJq;
           this.jqendDate = res.data.endDateJq;
           this.jqendDate = res.data.endDateJq;
           this.systartDate = res.data.startDateSy;
           this.systartDate = res.data.startDateSy;
@@ -10968,6 +10976,7 @@ export default {
     },
     },
     //渤海报价
     //渤海报价
     bohai(num, id) {
     bohai(num, id) {
+
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let accidentalDrivingVo = {};
       let accidentalDrivingVo = {};
       if (this.boHaiaccidentForm.projectCode) {
       if (this.boHaiaccidentForm.projectCode) {
@@ -11130,6 +11139,8 @@ export default {
         this.totalCompanyList[num].msg = res.msg;
         this.totalCompanyList[num].msg = res.msg;
         switch (namesimple) {
         switch (namesimple) {
           case "申能财险":
           case "申能财险":
+          case "渤海财险":
+          case "大地财险":
           case "安盛天平":
           case "安盛天平":
           case "诚泰财险":
           case "诚泰财险":
           case "泰康财险":
           case "泰康财险":
@@ -11218,15 +11229,24 @@ export default {
         }
         }
       });
       });
     },
     },
-    // 申能财险
-    shenneng(num, id, namesimple) {
-      this.quoteInsurance(
-        num,
-        id,
-        namesimple,
-        this.totalCompanyList[num].apiType
-      );
-    },
+      // 申能财险
+      shenneng(num, id, namesimple) {
+          this.quoteInsurance(
+              num,
+              id,
+              namesimple,
+              this.totalCompanyList[num].apiType
+          );
+      },
+      // 大地财险
+      dadi(num, id, namesimple) {
+          this.quoteInsurance(
+              num,
+              id,
+              namesimple,
+              this.totalCompanyList[num].apiType
+          );
+      },
     //安盛天平
     //安盛天平
     ansheng(num, id, namesimple) {
     ansheng(num, id, namesimple) {
       this.quoteInsurance(
       this.quoteInsurance(
@@ -12377,6 +12397,7 @@ export default {
               case "华安财险":
               case "华安财险":
               case "泰山财险":
               case "泰山财险":
               case "申能财险":
               case "申能财险":
+              case "大地财险":
               case "太平财险":
               case "太平财险":
               case "安盛天平":
               case "安盛天平":
               case "众安平安":
               case "众安平安":

+ 2 - 0
src/views/Task/daikeComponents/KtOrder.vue

@@ -198,6 +198,8 @@
                   '太平洋财险',
                   '太平洋财险',
                   '阳光财险',
                   '阳光财险',
                   '永安财险',
                   '永安财险',
+                  '申能财险',
+                  '大地财险'
                 ].includes(item.inscompany)
                 ].includes(item.inscompany)
               " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
               " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
               <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"
               <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"