@dongkboy 3 lat temu
rodzic
commit
9eee13fa48

+ 1 - 5
src/http/moudules/letter.js

@@ -377,12 +377,10 @@ export const ycgainAccidentSchemeList = (data) => {
         data
     })
 }
-
 /***
     爬虫统一调用模块
- * 
+ *
  */
-
 // 报价
 export const pythonquote = (data) => {
     return axios({
@@ -399,7 +397,6 @@ export const pythonaudit=(data)=>{
         data
     })
 }
-
 //提交影像
 export const pythonsubmitImage=(data)=>{
     return axios({
@@ -416,7 +413,6 @@ export const pychonverifyPayment=(data)=>{
         data
     })
 }
-
 //电子保单
 export const pythongetPolicyPrint=(data)=>{
     return axios({

+ 5 - 16
src/views/Esm/Esmcompany.vue

@@ -6,25 +6,22 @@
           <el-form label-position="left" ref="searchForm" size="small" :model="searchForm" label-width="100px">
             <el-row>
               <el-col :span="6">
-                <el-form-item label="供应商名称:" prop="classname">
-                  <el-input clearable v-model="searchForm.classname" placeholder="请输入供应商名称"
+                <el-form-item label="供应商名称:" >
+                  <el-input clearable v-model="searchForm.name" placeholder="请输入供应商名称"
                     style="width: 250px;"></el-input>
                 </el-form-item>
-
               </el-col>
               <el-col :span="6">
-                <el-form-item label="供应商类型:" prop="classname">
+                <el-form-item label="供应商类型:" >
                   <el-select v-model="searchForm.type" placeholder="请选择供应商" style="width: 250px;">
                     <el-option label="保司" value="1"></el-option>
                     <el-option label="渠道" value="2"></el-option>
                   </el-select>
                 </el-form-item>
               </el-col>
-              <el-col :span="4" style="margin-top: 2px">
+              <el-col :span="4" >
                 <el-button size="small" type="primary" style="background-color: #00bc70; border: 1px solid #00bc70"
                   @click="searchInfor()">搜索</el-button>
-                <el-button size="small" style="background-color: #ffffff; border: 1px solid c6e2ff"
-                  @click="resetfrom()">重置</el-button>
               </el-col>
             </el-row>
           </el-form>
@@ -160,14 +157,6 @@
             </el-form-item>
           </el-col>
         </el-row>
-        <!-- <el-row>
-          <el-col :span="24">
-            <el-form-item label="报价开关">
-              <el-switch v-model="value" @change="companyChange" active-color="#13ce66">
-              </el-switch>
-            </el-form-item>
-          </el-col>
-        </el-row> -->
         <el-row>
           <el-col :span="24">
             <el-form-item label="备注" style="width: 100%">
@@ -319,7 +308,7 @@ export default {
         expandTrigger: "hover",
       },
       searchForm: {
-        classname: "",
+        name: "",
         type: "",
       },
       isshow: false,

+ 69 - 446
src/views/Letter/Letter.vue

@@ -57,6 +57,7 @@
                 <el-option v-for="(item, index) in continuousCompanyList" :key="index" :label="item.namesimple"
                   :value="item.id"></el-option>
               </el-select>
+
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="8" :span="8"
@@ -519,7 +520,7 @@
             <div class="flex j-s">
               <div style="width:15%;font-weight: bold;" class="flex j-s a-c">
                 <div class="flex j-c a-c" style="width:50%">
-                  <el-checkbox class="checkbox"
+                  <el-checkbox class="checkbox" v-model="reslistitem.checked"
                     @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
                 </div>
                 <div class="flex f-c a-c" style="width:50%">
@@ -1405,15 +1406,15 @@
       <div>
         <img src="../../../src/icon/car.png" alt class="icon-img" @click="handleScroll('Car')" />
       </div>
-      <div>
-        <img src="../../../src/icon/chezhu.png" alt class="icon-img" @click="handleScroll('CheZhu')" />
-      </div>
       <div>
         <img src="../../../src/icon/salesman.png" alt class="icon-img" @click="handleScroll('insurance')" />
       </div>
       <div>
         <img src="../../../src/icon/more.png" alt class="icon-img" @click="handleScroll('more')" />
       </div>
+      <div>
+        <img src="../../../src/icon/company.png" alt class="icon-img" @click="handleScroll('company')" />
+      </div>
     </div>
     <el-dialog title="核保信息" :visible.sync="underwritingdialogVisible" width="30%">
       <div class="flex j-s f-c">
@@ -2325,7 +2326,7 @@ export default {
   },
   watch: {
     "carInfo.licenseNo": {
-      handler(val, oldVal) {
+      handler(val) {
         if (val) {
           this.carInfo.licenseNo = val.toUpperCase();
         }
@@ -2334,7 +2335,7 @@ export default {
       deep: true
     },
     "carInfo.frameNo": {
-      handler(val, oldVal) {
+      handler(val) {
         if (val) {
           this.carInfo.frameNo = val.toUpperCase();
 
@@ -2343,7 +2344,7 @@ export default {
       deep: true
     },
     "carInfo.engineNo": {
-      handler(val, oldVal) {
+      handler(val) {
         if (val) {
           this.carInfo.engineNo = val.toUpperCase();
         }
@@ -2351,7 +2352,7 @@ export default {
       deep: true
     },
     "carInfo.seatCount": {
-      handler(val, oldVal) {
+      handler(val) {
         if (val) {
           this.sumseatCount = val - 1;
         }
@@ -2578,6 +2579,7 @@ export default {
         });
       }
     },
+    //勾选保险公司
     initchange(e, code, name, index) {
       this.totalCompanyList[index].agreementId = "";
       this.totalCompanyList[index].checked = e;
@@ -2599,8 +2601,7 @@ export default {
     },
     //身份证有效期长期
     insureLongterm(e) {
-      this[e].identifyValidEndDate = "9999-12-31";
-      this[e].identifyValidEndDate = "9999-12-31";
+      console.log(e)
       this[e].identifyValidEndDate = "9999-12-31";
     },
     //较强起保日期事件
@@ -2616,6 +2617,7 @@ export default {
       this.insureMore = false;
       this.insureLength = leg;
     },
+    //收起
     packup() {
       this.insureMore = true;
       this.insureLength = 5;
@@ -2648,24 +2650,6 @@ export default {
     all() {
       this.quotedetailsdialogVisible = true;
     },
-    jqpdf() {
-      let baodan = {
-        orderno: this.orderno,
-        policytype: "jq"
-      };
-      this.$api.letter.getPolicyPrint(baodan).then(res => {
-        this.viewPdf(res.data);
-      });
-    },
-    sypdf() {
-      let baodan = {
-        orderno: this.orderno,
-        policytype: "sy"
-      };
-      this.$api.letter.getPolicyPrint(baodan).then(res => {
-        this.viewPdf(res.data);
-      });
-    },
     base64ToBlob(code) {
       code = code.replace(/[\n\r]/g, "");
       // atob() 方法用于解码使用 base-64 编码的字符串。
@@ -2884,10 +2868,10 @@ export default {
       this.imageIdList4 = this.bbtbcarShow ? this.imageIdList3 : this.imageIdList4; //被保人同投保人
       //上传图片
       Promise.all([
-        this.$api.letter.uploadImages({imageIdList: this.imageIdList1,imageType: "C01",quoteNo: this.quoteno}),
-        this.$api.letter.uploadImages({imageIdList: this.imageIdList2,imageType: "C02",quoteNo: this.quoteno}),
-        this.$api.letter.uploadImages({imageIdList: this.imageIdList3,imageType: "C03",quoteNo: this.quoteno}),
-        this.$api.letter.uploadImages({imageIdList: this.imageIdList4,imageType: "C04",quoteNo: this.quoteno})
+        this.$api.letter.uploadImages({ imageIdList: this.imageIdList1, imageType: "C01", quoteNo: this.quoteno }),
+        this.$api.letter.uploadImages({ imageIdList: this.imageIdList2, imageType: "C02", quoteNo: this.quoteno }),
+        this.$api.letter.uploadImages({ imageIdList: this.imageIdList3, imageType: "C03", quoteNo: this.quoteno }),
+        this.$api.letter.uploadImages({ imageIdList: this.imageIdList4, imageType: "C04", quoteNo: this.quoteno })
       ])
         .then(responses => {
           this.imageEcho(this.quoteno); // 获取图片
@@ -2943,7 +2927,8 @@ export default {
     yongan(num, id) {
       let params = {
         orderNo: this.orderno,
-        companyId: id
+        companyId: id,
+        agreementId: this.totalCompanyList[num].agreementId,
       };
       this.$api.letter.yonganquote(params).then(res => {
         this.totalCompanyList[num].msg = res.msg;
@@ -3032,65 +3017,6 @@ export default {
         }
       }
     },
-    //人保报价
-    renbao(num) {
-      let params = {
-        orderNo: this.orderno
-      };
-      this.$api.letter.renbaoquote(params).then(res => {
-        this.totalCompanyList[num].msg = res.msg;
-        if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
-          this.totalCompanyList[num].quoteCode = "4";
-          this.totalCompanyList[num].msg = res.msg;
-          return;
-        } else if (
-          res.data == null &&
-          res.msg.indexOf("交强险平台返回") > -1 &&
-          res.msg.indexOf(";终保日期") > -1
-        ) {
-          let time =
-            res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
-          let Aortime = this.transformTime2(time); //终保日期的后一天
-          this.jqstartDate = Aortime;
-          this.jqendDate = this.oneYearPast(Aortime);
-          this.systartDate = Aortime;
-          this.syendDate = this.oneYearPast(Aortime);
-          if (this.riskList.length > 0) {
-            for (let i = 0; i < this.riskList.length; i++) {
-              if (this.riskList[i].riskCode == "0507") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              } else if (this.riskList[i].riskCode == "0510") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              }
-            }
-          }
-          let param = {
-            userId: this.userId,
-            quoteno: this.quoteno,
-            orderNo: this.orderno,
-            carInfo: this.carInfo,
-            insuredPersonInfo: this.insuredPersonInfo,
-            ownerInfo: this.ownerInfo,
-            policyHolderInfo: this.policyHolderInfo,
-            kindList: this.kindList,
-            riskList: this.riskList
-          };
-          return this.$api.letter.generateOrder(param).then(res => {
-            this.renbao(num);
-          });
-        } else if (!!res.data) {
-          this.totalCompanyList[num].quoteCode = 200;
-          this.totalCompanyList[num].result = res.data;
-        } else {
-          this.totalCompanyList[num].quoteCode = "3";
-          this.totalCompanyList[num].msg = res.msg;
-
-          return;
-        }
-      });
-    },
     //中煤报价
     zhongmei(num, id) {
       let params = {
@@ -3152,132 +3078,6 @@ export default {
         }
       });
     },
-    //安盛天平报价
-    ansheng(num, id) {
-      let api = '';
-      api = this.totalCompanyList[num].apiType == 2 ? "pythonquote" : "anshengquote";
-      let params = {
-        orderNo: this.orderno,
-        companyId: id,
-        agreementId: this.totalCompanyList[num].agreementId,
-      };
-      this.$api.letter[api](params).then(res => {
-        this.totalCompanyList[num].msg = res.msg;
-        if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
-          this.totalCompanyList[num].quoteCode = "4";
-          this.totalCompanyList[num].msg = res.msg;
-          return;
-        } else if (
-          res.data == null &&
-          res.msg.indexOf("交强险平台返回") > -1 &&
-          res.msg.indexOf(";终保日期") > -1
-        ) {
-          let time =
-            res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
-          let Aortime = this.transformTime2(time); //终保日期的后一天
-          this.jqstartDate = Aortime;
-          this.jqendDate = this.oneYearPast(Aortime);
-          this.systartDate = Aortime;
-          this.syendDate = this.oneYearPast(Aortime);
-          if (this.riskList.length > 0) {
-            for (let i = 0; i < this.riskList.length; i++) {
-              if (this.riskList[i].riskCode == "0507") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              } else if (this.riskList[i].riskCode == "0510") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              }
-            }
-          }
-          let param = {
-            userId: this.userId,
-            quoteno: this.quoteno,
-            orderNo: this.orderno,
-            carInfo: this.carInfo,
-            insuredPersonInfo: this.insuredPersonInfo,
-            ownerInfo: this.ownerInfo,
-            policyHolderInfo: this.policyHolderInfo,
-            kindList: this.kindList,
-            riskList: this.riskList
-          };
-          return this.$api.letter.generateOrder(param).then(res => {
-            this.ansheng(num, id);
-          });
-        } else if (!!res.data) {
-          this.totalCompanyList[num].quoteCode = 200;
-          this.totalCompanyList[num].result = res.data;
-          this.QuotationHistory();
-        } else {
-          this.totalCompanyList[num].quoteCode = "3";
-          this.totalCompanyList[num].msg = res.msg;
-          return;
-        }
-      });
-    },
-    //众安报价
-    zhongan(num, id) {
-      let api = '';
-      api = this.totalCompanyList[num].apiType == 2 ? "pythonquote" : "anshengquote";
-      let params = {
-        orderNo: this.orderno,
-        companyId: id,
-        agreementId: this.totalCompanyList[num].agreementId,
-      };
-      this.$api.letter[api](params).then(res => {
-        this.totalCompanyList[num].msg = res.msg;
-        if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
-          this.totalCompanyList[num].quoteCode = "4";
-          this.totalCompanyList[num].msg = res.msg;
-          return;
-        } else if (
-          res.data == null &&
-          res.msg.indexOf("交强险平台返回") > -1 &&
-          res.msg.indexOf(";终保日期") > -1
-        ) {
-          let time =
-            res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
-          let Aortime = this.transformTime2(time); //终保日期的后一天
-          this.jqstartDate = Aortime;
-          this.jqendDate = this.oneYearPast(Aortime);
-          this.systartDate = Aortime;
-          this.syendDate = this.oneYearPast(Aortime);
-          if (this.riskList.length > 0) {
-            for (let i = 0; i < this.riskList.length; i++) {
-              if (this.riskList[i].riskCode == "0507") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              } else if (this.riskList[i].riskCode == "0510") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              }
-            }
-          }
-          let param = {
-            userId: this.userId,
-            quoteno: this.quoteno,
-            orderNo: this.orderno,
-            carInfo: this.carInfo,
-            insuredPersonInfo: this.insuredPersonInfo,
-            ownerInfo: this.ownerInfo,
-            policyHolderInfo: this.policyHolderInfo,
-            kindList: this.kindList,
-            riskList: this.riskList
-          };
-          return this.$api.letter.generateOrder(param).then(res => {
-            this.zhongan(num, id);
-          });
-        } else if (!!res.data) {
-          this.totalCompanyList[num].quoteCode = 200;
-          this.totalCompanyList[num].result = res.data;
-          this.QuotationHistory();
-        } else {
-          this.totalCompanyList[num].quoteCode = "3";
-          this.totalCompanyList[num].msg = res.msg;
-          return;
-        }
-      });
-    },
     //永诚报价
     yongcheng(num, id) {
       let accidentalDrivingVo = {};
@@ -3368,40 +3168,33 @@ export default {
         }
       });
     },
-    //恒邦报价
-    hengbang(num) {
+    // 爬虫对接
+    quoteInsurance(num, id, apiType) {
+      let api = apiType === 2 ? "pythonquote" : "anshengquote";
       let params = {
-        orderNo: this.orderno
+        orderNo: this.orderno,
+        companyId: id,
+        agreementId: this.totalCompanyList[num].agreementId,
       };
-      this.$api.letter.hengbangquote(params).then(res => {
+
+      this.$api.letter[api](params).then(res => {
         this.totalCompanyList[num].msg = res.msg;
+
         if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
           this.totalCompanyList[num].quoteCode = "4";
-          this.totalCompanyList[num].msg = res.msg;
           return;
         } else if (
           res.data == null &&
           res.msg.indexOf("交强险平台返回") > -1 &&
           res.msg.indexOf(";终保日期") > -1
         ) {
-          let time =
-            res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
-          let Aortime = this.transformTime2(time); //终保日期的后一天
+          let time = res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
+          let Aortime = this.transformTime2(time);
           this.jqstartDate = Aortime;
           this.jqendDate = this.oneYearPast(Aortime);
           this.systartDate = Aortime;
           this.syendDate = this.oneYearPast(Aortime);
-          if (this.riskList.length > 0) {
-            for (let i = 0; i < this.riskList.length; i++) {
-              if (this.riskList[i].riskCode == "0507") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              } else if (this.riskList[i].riskCode == "0510") {
-                this.riskList[i].startDate = Aortime;
-                this.riskList[i].endDate = this.oneYearPast(Aortime);
-              }
-            }
-          }
+          // ... 更新日期和列表
           let param = {
             userId: this.userId,
             quoteno: this.quoteno,
@@ -3413,19 +3206,37 @@ export default {
             kindList: this.kindList,
             riskList: this.riskList
           };
+
           return this.$api.letter.generateOrder(param).then(res => {
-            this.hengbang(num, id);
+            this.quoteInsurance(num, id, apiType);
           });
         } else if (!!res.data) {
           this.totalCompanyList[num].quoteCode = 200;
           this.totalCompanyList[num].result = res.data;
+          this.QuotationHistory();
         } else {
           this.totalCompanyList[num].quoteCode = "3";
-          this.totalCompanyList[num].msg = res.msg;
           return;
         }
       });
     },
+    //安盛天平
+    ansheng(num, id) {
+      this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
+    },
+    //众安
+    zhongan(num, id) {
+      this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
+    },
+    //人寿
+    renshou(num, id) {
+      this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
+    },
+    //恒邦
+    hengbang(num, id) {
+      this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
+    },
+    // 爬虫对接
     qoutedetail(companyId) {
       let params = {
         companyId: companyId
@@ -3470,7 +3281,6 @@ export default {
             this.imageIdList3 = [];
             this.imageIdList4 = [];
             this.imageIdList5 = [];
-
             Object.keys(res.data).forEach((keys) => {
               res.data[keys].forEach((ele) => {
                 ele.url = process.env.BASE_URL + ele.url;
@@ -3492,6 +3302,7 @@ export default {
                     this.imageIdList5.push(ele.imageId);
                     break;
                   default:
+                    break;
                 }
                 return ele;
               });
@@ -3575,39 +3386,6 @@ export default {
                 });
 
               break;
-            case "人保财险":
-              await this.$api.letter
-                .renbaoaudit({
-                  companyId: companyId,
-                  jqappoint: "",
-                  syappoint: ""
-                })
-                .then(res => {
-                  var _this = this;
-                  if (res.code == "200") {
-                    loading.close();
-                    this.$message({
-                      message: "核保成功",
-                      type: "success"
-                    });
-                    let params = {
-                      companyId: companyId
-                    };
-                    _this.$api.letter.getByCompanyId(params).then(res => {
-                      _this.orderstatus = res.data.orderstatus; //订单状态
-                      _this.underwritingdialogVisible = true;
-                    });
-                  } else {
-                    loading.close();
-                    this.$message({
-                      showClose: true,
-                      message: res.msg,
-                      type: "error",
-                      duration: 0
-                    });
-                  }
-                });
-              break;
             case "中煤财险":
               await this.$api.letter
                 .insZhongmeisubmitImage({
@@ -3663,19 +3441,25 @@ export default {
                 });
               break;
             case "恒邦财险":
-              await this.$api.letter
-                .hengbangsubmitImage({
-                  orderNo: this.orderno
-                })
+            case "安盛天平":
+            case "众安财险":
+            case "中国人寿":
+              let hengbangapi = "";
+              hengbangapi = apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"
+              await this.$api.letter[hengbangapi]({
+                orderNo: this.orderno
+              })
                 .then(res => {
                   if (res.code == "200") {
                     var _this = this;
+                    let hengbangapi1 = "";
+                    hengbangapi1 = apiType == 2 ? "pythonaudit" : "anshengaudit"
                     _this.$api.letter
-                      .hengbangaudit({
-                        companyId: companyId,
-                        jqappoint: "",
-                        syappoint: ""
-                      })
+                    [hengbangapi1]({
+                      companyId: companyId,
+                      jqappoint: "",
+                      syappoint: ""
+                    })
                       .then(res => {
                         if (res.code == "200") {
                           loading.close();
@@ -3701,12 +3485,12 @@ export default {
                         }
                       });
                   } else {
+                    loading.close();
                     this.$message({
                       message: res.msg,
                       type: "error",
                       duration: 7000
                     });
-                    loading.close();
                   }
                 });
               break;
@@ -3752,112 +3536,6 @@ export default {
                       });
                   } else {
                     loading.close();
-
-                    this.$message({
-                      message: res.msg,
-                      type: "error",
-                      duration: 7000
-                    });
-                  }
-                });
-              break;
-            case "安盛财险":
-              let anshengapi = "";
-              anshengapi = apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"
-              await this.$api.letter[anshengapi]({
-                orderNo: this.orderno
-              })
-                .then(res => {
-                  if (res.code == "200") {
-                    var _this = this;
-                    let anshengapi1 = "";
-                    anshengapi1 = apiType == 2 ? "pythonaudit" : "anshengaudit"
-                    _this.$api.letter
-                    [anshengapi1]({
-                      companyId: companyId,
-                      jqappoint: "",
-                      syappoint: ""
-                    })
-                      .then(res => {
-                        if (res.code == "200") {
-                          loading.close();
-
-                          this.$message({
-                            message: "核保成功",
-                            type: "success"
-                          });
-                          let params = {
-                            companyId: companyId
-                          };
-                          _this.$api.letter.getByCompanyId(params).then(res => {
-                            _this.orderstatus = res.data.orderstatus; //订单状态
-                            _this.underwritingdialogVisible = true;
-                          });
-                        } else {
-                          loading.close();
-                          this.$message({
-                            showClose: true,
-                            message: res.msg,
-                            type: "error",
-                            duration: 0
-                          });
-                        }
-                      });
-                  } else {
-                    loading.close();
-
-                    this.$message({
-                      message: res.msg,
-                      type: "error",
-                      duration: 7000
-                    });
-                  }
-                });
-              break;
-              case "众安财险":
-              let zhonganapi = "";
-              zhonganapi = apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"
-              await this.$api.letter[zhonganapi]({
-                orderNo: this.orderno
-              })
-                .then(res => {
-                  if (res.code == "200") {
-                    var _this = this;
-                    let zhonganapi1 = "";
-                    zhonganapi1 = apiType == 2 ? "pythonaudit" : "anshengaudit"
-                    _this.$api.letter
-                    [zhonganapi1]({
-                      companyId: companyId,
-                      jqappoint: "",
-                      syappoint: ""
-                    })
-                      .then(res => {
-                        if (res.code == "200") {
-                          loading.close();
-
-                          this.$message({
-                            message: "核保成功",
-                            type: "success"
-                          });
-                          let params = {
-                            companyId: companyId
-                          };
-                          _this.$api.letter.getByCompanyId(params).then(res => {
-                            _this.orderstatus = res.data.orderstatus; //订单状态
-                            _this.underwritingdialogVisible = true;
-                          });
-                        } else {
-                          loading.close();
-                          this.$message({
-                            showClose: true,
-                            message: res.msg,
-                            type: "error",
-                            duration: 0
-                          });
-                        }
-                      });
-                  } else {
-                    loading.close();
                     this.$message({
                       message: res.msg,
                       type: "error",
@@ -3972,42 +3650,6 @@ export default {
         strYear + "-" + strMonth + "-" + strDay + " " + hh + ":00:00";
       return datastr;
     },
-    // oneYearPast1(time) {
-    //   if (time.substr(11, 8) == '00:00:00') {
-    //     var date = new Date(time);
-    //     date.setFullYear(date.getFullYear() + 1); //一年后
-    //     date.setTime(date.getTime() - 24 * 60 * 60 * 1000); //一年后的前一天
-    //     var strYear = date.getFullYear();
-    //     var strDay = date.getDate();
-    //     var strMonth = date.getMonth() + 1;
-    //     if (strMonth < 10) {
-    //       strMonth = "0" + strMonth;
-    //     }
-    //     if (strDay < 10) {
-    //       strDay = "0" + strDay;
-    //     }
-    //     var datastr = strYear + "-" + strMonth + "-" + strDay;
-    //     console.log(datastr)
-    //     return datastr;
-    //   } else {
-    //     var date = new Date(time);
-    //     date.setFullYear(date.getFullYear() + 1); //一年后
-    //     date.setTime(date.getTime() - 24 * 60 * 60 * 1000); //一年后的前一天
-    //     var strYear = date.getFullYear();
-    //     var strDay = date.getDate();
-    //     var strMonth = date.getMonth() + 1;
-    //     if (strMonth < 10) {
-    //       strMonth = "0" + strMonth;
-    //     }
-    //     if (strDay < 10) {
-    //       strDay = "0" + strDay;
-    //     }
-    //     var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
-    //     console.log(datastr)
-    //     return datastr;
-
-    //   }
-    // },
     tbczcarShowChange() {
       //投保人同车主
       switch (this.tbczcarShow) {
@@ -4463,7 +4105,6 @@ export default {
 
         default:
       }
-
     },
     bjdpreview(companyId) {
       let params = {
@@ -4510,11 +4151,8 @@ export default {
               });
               break;
             case "人保财险":
-              this.$nextTick(() => {
-                this.creatQrCode(res.data.paymentLink);
-              });
-              break;
             case "中煤财险":
+            case "永诚财险":
               this.$nextTick(() => {
                 this.creatQrCode(res.data.paymentLink);
               });
@@ -4522,11 +4160,6 @@ export default {
             case "恒邦财险":
               this.paycodeimg = res.data.paymentLink;
               break;
-            case "永诚财险":
-              this.$nextTick(() => {
-                this.creatQrCode(res.data.paymentLink);
-              });
-              break;
             default:
               this.$message({
                 message: "识别不到保险公司,请检查",
@@ -4565,20 +4198,10 @@ export default {
       this.systartDate = this.transformTime1();
       this.syendDate = this.oneYearPast(this.jqstartDate);
       this.commpanyList(); // 获取保险公司
-
     },
     toChinesNum(num) {
       let changeNum = [
-        "零",
-        "一",
-        "二",
-        "三",
-        "四",
-        "五",
-        "六",
-        "七",
-        "八",
-        "九"
+        "零","一","二","三","四","五","六","七","八","九"
       ];
       let unit = ["", "十", "百", "千", "万"];
       num = parseInt(num);

+ 5 - 2
src/views/Letter/Orderlist.vue

@@ -1431,8 +1431,11 @@ export default {
                             }
                             break;
                         case "恒邦财险":
+                        case "安盛天平":
+                        case "中国人寿":
+                        case "众安财险":
                             if (this.orderInfo.jqpolicyno) {
-                                this.$api.letter.hengbanggetPolicyPrint({
+                                this.$api.letter.pythongetPolicyPrint({
                                     orderno: this.orderInfo.orderno,
                                 }).then(res => {
                                     if (res.data) {
@@ -1910,4 +1913,4 @@ export default {
     padding: 10px 50px;
     font-size: 14px;
 }
-</style>
+</style>