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

中国人寿报价添加折扣

lihongxiao 2 лет назад
Родитель
Сommit
9e2c44f9c1
2 измененных файлов с 21 добавлено и 6 удалено
  1. 2 2
      config/dev.env.js
  2. 19 4
      src/views/Letter/Letter.vue

+ 2 - 2
config/dev.env.js

@@ -8,12 +8,12 @@ module.exports = merge(prodEnv, {
   // 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.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8082/"',//田智
   // 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.22:8080/"',//郝宇
 })
 
 

+ 19 - 4
src/views/Letter/Letter.vue

@@ -1583,8 +1583,12 @@
             <template
               v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId"
             >
+            <div style="margin:15px 0 15px 100px">
+                <span >折扣:</span>
+                <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount" placeholder="请输入内容"></el-input>
+              </div>
               <div class="flex f-c Driving-risk">
-                <div class="dis a-c" style="margin-top:15px">
+                <div class="dis a-c" >
                   <span style="margin-right:15px;font-weight:bold">选择意外险</span>
                   <el-select
                     style="width: 250px;"
@@ -1675,7 +1679,7 @@
               v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId"
             >
               <div style="margin:15px 0 15px 100px">
-                <span  >自主定价系数</span>
+                <span  >自主定价系数:</span>
                 <el-input style="width:220px" size="small" v-model="reslistitem.coefficient" placeholder="请输入内容"></el-input>
               </div>
               <div class="flex f-c Driving-risk">
@@ -4506,6 +4510,7 @@ export default {
       businessVehicleUseoptions:[],
       outOfBusinessVehicleUseoptions:[],
       insOrderStatusoptions:[],
+      lastCompanyId:''
     };
   },
   watch: {
@@ -5353,6 +5358,9 @@ else{
           res.data.forEach((val,index)=>{
             this.$route.query.data.insAreaCompanyEditingDtos.forEach(ele=>{
               if(val.namesimple==ele.inscompany){
+               if(ele.inscompany=='中国人寿' && ele.companyId){
+                  this.lastCompanyId=ele.companyId
+                }
                 res.data[index].quoteCode=200
                 res.data[index].result=ele
               }
@@ -6098,8 +6106,6 @@ else{
         riskList: this.riskList,
         vehicleAndVesselTax:this.vehicleAndVesselTaxForm,
       };
-      console.log(param,2222222222);
-
       this.$api.letter.generateOrder(param).then(res => {
         if (res.code == "200") {
               //上传图片
@@ -6839,7 +6845,12 @@ else{
         orderNo: this.orderno,
         companyId: id,
         agreementId: this.totalCompanyList[num].agreementId,
+       
       };
+      if(namesimple=='中国人寿'&& this.lastCompanyId){
+        params.discount=this.totalCompanyList[num].discount
+        params.lastCompanyId=this.lastCompanyId
+      }
       this.$api.letter[api](params).then(res => {
         this.totalCompanyList[num].msg = res.msg;
         switch (namesimple) {
@@ -6861,6 +6872,9 @@ else{
              } 
               this.totalCompanyList[num].quoteCode = 200;
               this.totalCompanyList[num].result = res.data;
+              if(namesimple=='中国人寿'&& res.data.companyId){
+                this.lastCompanyId = res.data.companyId;
+              }
               this.QuotationHistory();
             } else {
               this.totalCompanyList[num].quoteCode = "3";
@@ -8697,6 +8711,7 @@ else{
       // this.selectedOptions3 = [];
       this.orderno = "";
       this.quoteno = "";
+      this.lastCompanyId = '';
       this.HistoryList = [];
       this.jqstartDate = this.transformTime1();
       this.jqendDate = this.oneYearPast1(this.jqstartDate);