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

Merge branch 'dev' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc into dev

lihongxiao 2 лет назад
Родитель
Сommit
68d8f3ecf0

BIN
src/assets/image/detailsDialog_cph.png


BIN
src/assets/image/detailsDialog_gs.png


BIN
src/assets/image/detailsDialog_ly.png


+ 49 - 0
src/http/moudules/sys.js

@@ -176,4 +176,53 @@ export const deleteSwitch = (params) => {
         url: '/sys/switch/' + params,
         method: 'delete',
     })
+}
+
+// 新增车型查询
+export const vehicleConfig = (data) => {
+    return axios({
+        url: '/sys/vehicleConfig',
+        method: 'post',
+        data
+    })
+}
+
+// 车型查询列表
+export const vehicleConfigInquire = (data) => {
+    return axios({
+        url: '/sys/vehicleConfig/inquire',
+        method: 'post',
+        data
+    })
+}
+
+// 车型查询详情
+export const vehicleConfigDetail = (id) => {
+    return axios({
+        url: '/sys/vehicleConfig/' + id,
+        method: 'get',
+    })
+}
+// 修改车型查询
+export const vehicleConfigEdit = (data) => {
+    return axios({
+        url: '/sys/vehicleConfig/' + data.sysQueryVehicleConfigDTO.id,
+        method: 'put',
+        data
+    })
+}
+
+// 删除车型查询
+export const vehicleConfigDelete = (params) => {
+    return axios({
+        url: '/sys/vehicleConfig/' + params,
+        method: 'delete',
+    })
+}
+// 修改车型开关
+export const vehicleConfigOpen = (id) => {
+    return axios({
+        url: '/sys/vehicleConfig/open/' + id,
+        method: 'put',
+    })
 }

Разница между файлами не показана из-за своего большого размера
+ 510 - 562
src/views/Core/components/detailsDialog.vue


+ 145 - 156
src/views/Core/components/detailsDialogPro.vue

@@ -28,39 +28,15 @@
             :class="{ 'li-selected': selectedItem === 'fymx' }" @click="selectItem('fymx')">费用明细</li>
           <li v-if="orderInfo.feeOrderNewVo && orderInfo.feeOrderNewVo.deptManagerFee.length > 0"
             :class="{ 'li-selected': selectedItem === 'jgglf' }" @click="selectItem('jgglf')">机构管理费</li>
-          <li v-if="orderInfo.distributionLevelVoList && orderInfo.distributionLevelVoList.length > 0"
+          <li v-if="orderInfo.feeOrderNewVo && orderInfo.feeOrderNewVo.retailFee && orderInfo.feeOrderNewVo.retailFee.length > 0"
             :class="{ 'li-selected': selectedItem === 'fxmx1' }" @click="selectItem('fxmx1')">分销明细</li>
           <li v-if="orderInfo && orderInfo.orderstatus == 4 && orderInfo.auditopinion"
             :class="{ 'li-selected': selectedItem === 'shyj' }" @click="selectItem('shyj')">审核意见</li>
 
         </ul>
       </div>
-      <div style="margin:20px;height: 60vh;width: 100%;">
-        <ul class="fixedTop">
-            <li>
-              <div class="title">
-                <div class="img"><img src="@/assets/image/detailsDialog_cph.png" alt=""></div>
-                <p>车牌号:</p>
-              </div>
-              <p>{{ orderInfo.licenseno }}</p>
-            </li>
-            <li>
-              <div class="title">
-                <div class="img"><img src="@/assets/image/detailsDialog_gs.png" alt=""></div>
-                <p>保险公司:</p>
-              </div>
-              <p>{{ orderInfo.inscompany }}</p>
-            </li>
-            <li>
-              <div class="title">
-                <div class="img"><img src="@/assets/image/detailsDialog_ly.png" alt=""></div>
-                <p>业务来源:</p>
-              </div>
-              <p>{{ orderInfo.source }}</p>
-            </li>
-        </ul>
-        <div style="height: 46vh;overflow-y: auto;width: 100%;  position: relative;">
-          <OpenCloseBox id="gsxx">
+      <div style="margin:20px;height: 60vh;overflow-y: auto;width: 100%;">
+        <OpenCloseBox id="gsxx">
           <span slot="title">归属信息</span>
           <div slot="boby">
             <el-row class="premium-style " :gutter="20" >
@@ -229,30 +205,35 @@
           </div>
         </OpenCloseBox>
         <OpenCloseBox id="bfys">
-          <span slot="title">保费因素</span>
-          <div slot="boby">
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score }}</el-col>
-              <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
-              <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
-              <el-col :span="6"><span>出险信息:</span>{{ orderInfo.extendInfo.accidentInfoStr }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
-              <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
-              <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20">
-              <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
-              <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
-              <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
-            </el-row>
-            <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
-              <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
-            </el-row>
-          </div>
-        </OpenCloseBox>
-
+            <span slot="title">保费因素</span>
+            <div slot="boby">
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>评分:</span>{{ orderInfo.extendInfo.score ? orderInfo.extendInfo.score : ''
+                }}</el-col>
+                <el-col :span="6"><span>总赔付率:</span>{{ orderInfo.extendInfo.lossRation }}</el-col>
+                <el-col :span="6"><span>总折扣率:</span>{{ orderInfo.extendInfo.totalAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强类型评分:</span>{{ orderInfo.extendInfo.jqScore }}</el-col>
+                <el-col :span="6"><span>交强赔付率:</span>{{ orderInfo.extendInfo.jqLossRation }}</el-col>
+                <el-col :span="6"><span>交强险折扣:</span>{{ orderInfo.extendInfo.jqAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>商业类型评分:</span>{{ orderInfo.extendInfo.syScore }}</el-col>
+                <el-col :span="6"><span>商业赔付率:</span>{{ orderInfo.extendInfo.syLossRation }}</el-col>
+                <el-col :span="6"><span>商业险折扣:</span>{{ orderInfo.extendInfo.syAdjustRate }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20">
+                <el-col :span="6"><span>交强续保:</span>{{ orderInfo.extendInfo.jqRenewal }}</el-col>
+                <el-col :span="6"><span>商业续保:</span>{{ orderInfo.extendInfo.syRenewal }}</el-col>
+                <el-col :span="6"><span>交强出险次数:</span>{{ orderInfo.extendInfo.jqClaims }}</el-col>
+                <el-col :span="6"><span>商业出险次数:</span>{{ orderInfo.extendInfo.syClaims }}</el-col>
+              </el-row>
+              <el-row class="premium-style " :gutter="20" v-if="orderInfo.ubiPredictedInfoScore">
+                <el-col :span="6"><span>紫金能源车(鼎然-车辆风险评分):</span>{{ orderInfo.ubiPredictedInfoScore }}</el-col>
+              </el-row>
+            </div>
+          </OpenCloseBox>
         <OpenCloseBox id="xzxx" v-if="orderInfo.kindinfo && orderInfo.kindinfo.length > 0">
           <span slot="title">险种信息</span>
           <div slot="boby">
@@ -378,9 +359,9 @@
           <span slot="title">保单信息</span>
           <div slot="boby">
             <el-row class="premium-style " :gutter="20">
-              <el-col :span="12"><span>交强险投保单号:</span>{{ orderInfo.jqapplyno }}</el-col>
-              <el-col :span="12"><span>交强险保单号:</span>{{ orderInfo.jqpolicyno }}</el-col>
-              <el-col v-if="orderInfo.syapplyno" :span="12"><span>商业险投保单号:</span>{{ orderInfo.syapplyno }}</el-col>
+              <!-- <el-col :span="12"><span>交强险投保单号:</span>{{ orderInfo.jqapplyno }}</el-col> -->
+              <el-col :span="12" v-if="orderInfo.jqpolicyno"><span>交强险保单号:</span>{{ orderInfo.jqpolicyno }}</el-col>
+              <!-- <el-col v-if="orderInfo.syapplyno" :span="12"><span>商业险投保单号:</span>{{ orderInfo.syapplyno }}</el-col> -->
               <el-col v-if="orderInfo.sypolicyno" :span="12"><span>商业险保单号:</span>{{ orderInfo.sypolicyno }}</el-col>
               <el-col :span="12" v-for="(oldfileItem, oldfileIndex) in warrantObj.oldfileList" :key="oldfileIndex">
                 <div>
@@ -528,6 +509,18 @@
                   <span >¥{{ scope.row.deptPremiumsLevelFive }}</span>
                 </template>
               </el-table-column>
+              <el-table-column prop="externalProportion" label="代客录单扣减比例">
+                <template slot-scope="scope" >
+                  <span v-if="scope.row.externalProportion">{{ scope.row.externalProportion }}%</span>
+                  <span v-else>-</span>
+                </template>
+              </el-table-column>
+              <el-table-column prop="externalPremiums" label="代客录单扣减金额">
+                <template slot-scope="scope" >
+                  <span v-if="scope.row.externalPremiums">¥{{ scope.row.externalPremiums }}</span>
+                  <span v-else>-</span>
+                </template>
+              </el-table-column>
               <el-table-column prop="profitMarginPremiums" label="利润差值">
                 <template slot-scope="scope" >
                   <span >¥{{ scope.row.profitMarginPremiums }}</span>
@@ -536,25 +529,50 @@
             </el-table>
           </div>
         </OpenCloseBox>
-        <OpenCloseBox id="fxmx1" v-if="orderInfo.distributionLevelVoList">
-          <span slot="title">分销明细</span>
+        <OpenCloseBox id="fxmx1" v-if="feeOrderNewVoList.retailFee">
+              <span slot="title">分销明细</span>
           <div slot="boby" style="font-size:12px;width: 100%" class="FeeEnclosure">
-            <el-table :data="orderInfo.distributionLevelVoList" :border="true" width="100%" :stripe="true" size="mini"
+            <el-table :data="feeOrderNewVoList.retailFee" :border="true" width="100%" :stripe="true" size="mini"
               :header-cell-style="{
                 background: '#F7F7F9',
                 fontWeight: '700',
                 color: '#606266',
               }">
-              <el-table-column prop="distributionLevel" label="等级"></el-table-column>
+              <el-table-column prop="insuranceType" label="等级"></el-table-column>
               <el-table-column prop="userName" label="接收人"></el-table-column>
-              <el-table-column prop="distributionRatio" label="比例">
+              <el-table-column prop="jqRetailProportion" label="交强分销比例">
+                <template slot-scope="scope" >
+                  <span>{{ scope.row.jqRetailProportion }}%</span>
+                </template>
+              </el-table-column>
+              <el-table-column prop="jqRetailPremiums" label="交强分销费">
                 <template slot-scope="scope" >
-                  <span>{{ scope.row.distributionRatio }}%</span>
+                  <span>¥{{ scope.row.jqRetailPremiums }}</span>
                 </template>
               </el-table-column>
+              <el-table-column prop="syRetailProportion" label="商业分销比例">
+                <template slot-scope="scope" >
+                  <span>{{ scope.row.syRetailProportion }}%</span>
+                </template>  
+              </el-table-column>
+              <el-table-column prop="syRetailPremiums" label="商业险分销费">
+                <template slot-scope="scope" >
+                  <span>¥{{ scope.row.syRetailPremiums }}</span>
+                </template>
+              </el-table-column>
+              <el-table-column prop="noRetailProportion" label="非车分销比例">
+                <template slot-scope="scope" >
+                  <span>{{ scope.row.noRetailProportion }}%</span>
+                </template>    
+              </el-table-column>
+              <el-table-column prop="noRetailPremiums" label="非车险分销费">
+                <template slot-scope="scope" >
+                  <span>¥{{ scope.row.noRetailPremiums }}</span>
+                </template>  
+              </el-table-column>
               <el-table-column prop="amount" label="金额">
                 <template slot-scope="scope" >
-                  <span>¥{{ scope.row.amount }}</span>
+                  <span>¥{{ scope.row.totalRetailPremiums }}</span>
                 </template>
               </el-table-column>
             </el-table>
@@ -568,7 +586,6 @@
             </p>
           </div>
         </OpenCloseBox>
-        </div>
       </div>
     </div>
     <span slot="footer" class="dialog-footer">
@@ -577,15 +594,18 @@
       <el-button size="small" type="primary" style="background-color: #0EC216; border: 1px solid #0EC216"
         @click="adjustFee"><span v-if="isAuditing">取消调整</span><span v-if="!isAuditing">调整费用</span></el-button>
       <el-button size="small" type="primary"
-        style="background-color: #0EC216;border: 1px solid #0EC216;margin-right: 30px;"
+        style="background-color: #0EC216;border: 1px solid #0EC216"
         @click="adusitFUn">审核通过</el-button>
+        <el-button size="small" type="primary" v-if="isrejection"
+        style="background-color: #0EC216;border: 1px solid #0EC216;"
+        @click="rejectionFUn">审核驳回</el-button>
       </template>
       <el-button size="small" type="primary" plain @click="dialogVisible = false">关闭</el-button>
     </span>
   </el-dialog>
 </template>
 <script>
-import OpenCloseBox from "./openclose.vue";
+import OpenCloseBox from './openclose.vue'
 
 export default {
   name: "detailsDialog",
@@ -595,7 +615,7 @@ export default {
       obj: {},
       warrantObj: {},
       selectedItem: null,
-      isAuditing: false
+      isAuditing: false,
     };
   },
   props: {
@@ -603,8 +623,12 @@ export default {
       type: Object,
       default: {}
     },
-    auditStatus: String,
-    feeOrderNewVoList: Object
+    auditStatus:String,
+    isrejection:{
+      type: Boolean,
+      default: false
+    },
+    feeOrderNewVoList: Object,
   },
   components: { OpenCloseBox },
   methods: {
@@ -612,29 +636,25 @@ export default {
       this.isAuditing = !this.isAuditing;
     },
     adusitFUn() {
-      this.$emit("adusitFUn");
+      this.$emit('adusitFUn')
+    },
+    rejectionFUn() {
+      this.$emit('rejectionFUn')
     },
     updatedCost() {
       let newCost = {
-        deptManagerFee: this.feeOrderNewVoList.deptManagerFee,
-        feeOrder: this.feeOrderNewVoList.list
-      };
-      this.$emit("updatedCost", newCost);
-      this.isAuditing = false;
+        deptManagerFee : this.feeOrderNewVoList.deptManagerFee,
+        feeOrder : this.feeOrderNewVoList.list,
+        retailFee: this.feeOrderNewVoList.retailFee
+      }
+      this.$emit('updatedCost',newCost)
+      this.isAuditing=false;
     },
     feeOrderNewVomergeRows({ row, column, rowIndex, columnIndex }) {
       if (columnIndex === 0) {
-        if (
-          rowIndex === 0 ||
-          this.feeOrderNewVoList.list[rowIndex].type !==
-            this.feeOrderNewVoList.list[rowIndex - 1].type
-        ) {
+        if (rowIndex === 0 || this.feeOrderNewVoList.list[rowIndex].type !== this.feeOrderNewVoList.list[rowIndex - 1].type) {
           let rowSpan = 1;
-          for (
-            let i = rowIndex + 1;
-            i < this.feeOrderNewVoList.list.length;
-            i++
-          ) {
+          for (let i = rowIndex + 1; i < this.feeOrderNewVoList.list.length; i++) {
             if (this.feeOrderNewVoList.list[i].type === row.type) {
               rowSpan++;
             } else {
@@ -652,15 +672,16 @@ export default {
       this.selectedItem = item;
       document.getElementById(item).scrollIntoView({ behavior: "smooth" });
     },
-    setBackupVisible: function(backupVisible) {
-      this.selectedItem = "gsxx";
-      this.dialogVisible = backupVisible;
+    setBackupVisible: function (backupVisible) {
+      this.selectedItem = 'gsxx'
+      this.dialogVisible = backupVisible
     },
     imageFun(param) {
-      this.obj = param;
+      this.obj = param
     },
     warrantyFun(param) {
-      this.warrantObj = param;
+      this.warrantObj = param
+
     },
     saveAs(blob, filename) {
       var link = document.createElement("a");
@@ -671,17 +692,33 @@ export default {
     },
     //预览文件
     viewfile(index) {
-      let name = index.fileurl.lastIndexOf("/");
-      fetch(index.fileurl)
-        .then(response => response.blob())
-        .then(blob => {
-          this.saveAs(
-            blob,
-            index.fileurl.substring(name + 1, index.fileurl.length)
-          );
-        })
-        .catch(error => {});
-    }
+      if(this.orderInfo.isExternal==1){
+        let url = process.env.BASE_URL +index.fileurl; // 3.创建一个临时的url指向blob对象
+      fetch(url)
+          .then((response) => response.blob())
+          .then((blob) => {
+            this.saveAs(
+              blob,
+              index.fileurl.substring(name + 1, index.fileurl.length)
+            );
+          })
+          .catch((error) => { });
+
+      }
+      else{
+        let name = index.fileurl.lastIndexOf("/");
+        fetch(index.fileurl)
+          .then((response) => response.blob())
+          .then((blob) => {
+            this.saveAs(
+              blob,
+              index.fileurl.substring(name + 1, index.fileurl.length)
+            );
+          })
+          .catch((error) => { });
+        }
+
+    },
   }
 };
 </script>
@@ -710,62 +747,12 @@ export default {
     color: var(--themeColor);
     background-color: rgba(212, 36, 38, 0.06);
   }
-  .fixedTop {
-    width: 100%;
-    height: auto;
-    // position: absolute;
-    // top: 10px;
-    background: linear-gradient(#fbe8e8, #fff 50%);
-    border-radius: 5px;
-    margin-bottom: 20px;
-    list-style-type: none;
-    padding: 20px;
-    box-sizing: border-box;
-    display: flex;
-    justify-content: space-between;
-
-    li {
-      width: auto;
-      height: auto;
-
-      .title {
-        width: 100%;
-        height: auto;
-        display: flex;
-        justify-content: flex-start;
-
-        p {
-          font-size: 16px;
-          color: #666;
-          margin: 0 0 0 10px;
-        }
-
-        .img {
-          width: 24px;
-          height: 24px;
-
-          img {
-            width: 100%;
-            height: 100%;
-          }
-        }
-
-        margin-bottom: 5px;
-      }
-
-      p {
-        margin: 10px 0 0 0;
-        font-size: 20px;
-        color: #333;
-      }
-    }
-  }
 }
 
 .icon-img {
   width: 30px;
   height: 30px;
-  vertical-align: bottom;
+  vertical-align: bottom
 }
 
 .details-title {
@@ -777,7 +764,7 @@ export default {
   font-size: 0;
 
   b {
-    background: #f7f7f9;
+    background: #F7F7F9;
     font-size: 14px;
   }
 
@@ -788,7 +775,7 @@ export default {
     width: 25%;
     text-align: center;
     line-height: 40px;
-    border: 1px solid #eef1f6;
+    border: 1px solid #EEF1F6;
     font-size: 14px;
   }
 }
@@ -799,7 +786,7 @@ export default {
   }
 
   span {
-    color: #868b98;
+    color: #868B98;
   }
 }
 
@@ -819,6 +806,7 @@ export default {
 }
 
 .tax-arrears {
+
   b,
   span {
     width: 25%;
@@ -826,6 +814,7 @@ export default {
 }
 
 .kind-arrears {
+
   b,
   span {
     width: 33.33%;
@@ -838,8 +827,8 @@ export default {
   height: 120px;
   // box-shadow: #ddd 0px 0px 5px;
   margin-right: 86px;
-  border: 1px dashed #ced4da;
-  background: #f7f7f9;
+  border: 1px dashed #CED4DA;
+  background: #F7F7F9;
 }
 
 .FeeEnclosure {
@@ -858,7 +847,7 @@ export default {
 
 /deep/ .el-dialog__body {
   padding-top: 0;
-  border-bottom: 1px solid #eef1f6;
+  border-bottom: 1px solid #EEF1F6;
   background-color: rgb(242, 242, 242);
   padding: 0;
 }

Разница между файлами не показана из-за своего большого размера
+ 1022 - 768
src/views/FinancialManagement/CarInsurance/Verifytasks/Verifyuntasks.vue


+ 440 - 0
src/views/Sys/CarType.vue

@@ -0,0 +1,440 @@
+<template>
+  <div>
+    <div>
+      <templateTable :formList="formList" :searchData.sync="queryFrom" :tableConfig="tableConfig" :btnGroup="btnGroup"
+        :data="pageResult" @getList="findPage" @handleSearchList="handleSearchList" :pagination="pageData">
+        <template slot="companyId">
+          <el-select
+            filterable
+            v-model="queryFrom.companyId"
+            clearable
+            size="small"
+          >
+            <el-option
+              v-for="(item, index) in companyselect"
+              :key="index.id"
+              :label="item.namesimple"
+              :value="item.id"
+            ></el-option>
+          </el-select>
+        </template>
+        <template slot="enabled" slot-scope="scope">
+          <el-switch
+            v-model="scope.row.enabled"
+            active-text="启动"
+            inactive-text="关闭"
+            :inactive-value="0"
+            :active-value="1"
+            @change="switchChange(scope.row)"
+            >
+          </el-switch>
+        </template>
+      </templateTable>
+    </div>
+
+    <!-- 新增修改界面 -->
+    <el-dialog :title="dialogTitle" width="40%" :visible.sync="dialogVisible" :close-on-click-modal="false"
+      :before-close="handleDialogBefore" @close="closeDialog" v-dialogDrag>
+      <el-form :model="formData" :rules="rules" ref="formData" :inline="true" label-width="110px" size="small">
+        <el-row>
+          <el-col :span="12">
+            <el-form-item label="保险公司编号" prop="companyId">
+              <el-input v-model="formData.companyId" disabled placeholder="请选择保险公司"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="保险公司" prop="companyId">
+              <el-select
+                class="widths1"
+                filterable
+                v-model="formData.companyId"
+                clearable
+              >
+                <el-option
+                  v-for="(item, index) in companyselect"
+                  :key="index.id"
+                  :label="item.namesimple"
+                  :value="item.id"
+                ></el-option>
+              </el-select>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="请求地址" prop="url">
+              <el-input v-model="formData.url"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="是否开启" prop="enabled">
+              <el-radio-group v-model="formData.enabled" style="line-height: 32px;">
+                <el-radio :label="0">关闭</el-radio>
+                <el-radio :label="1">启动</el-radio>
+              </el-radio-group>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="核心用户名" prop="username">
+              <el-input v-model="formData.username"></el-input>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="核心密码" prop="password">
+              <el-input v-model="formData.password"></el-input>
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <p>链接</p>
+        <div class="edit-list">
+          <div>{{ sysQueryVehicleUrlDTOList[0].type }}</div>
+          <div style="width: 100px;">车架号查询</div>
+          <div>
+            <el-input v-model="sysQueryVehicleUrlDTOList[0].link" size="small" style="width: 200px;"></el-input>
+          </div>
+        </div>
+        <div class="edit-list">
+          <div>{{ sysQueryVehicleUrlDTOList[1].type }}</div>
+          <div style="width: 100px;">车型查询</div>
+          <div>
+            <el-input v-model="sysQueryVehicleUrlDTOList[1].link" size="small" style="width: 200px;"></el-input>
+          </div>
+        </div>
+      </el-form>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="dialogVisible = false">取 消</el-button>
+        <el-button type="primary" size="small" @click="submitForm">提交</el-button>
+      </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import templateTable from "@/components/TemplateTable/index.vue";
+export default {
+  components: {
+    templateTable,
+  },
+  data() {
+    return {
+      formList: [
+      {
+          label: "保险公司",
+          name: "companyId",
+          type: "slot",
+        },
+        {
+          label: "是否启动",
+          prop: "enabled",
+          type: "select",
+          options: [
+            {
+              label: "启动",
+              value: '1',
+            },
+            {
+              label: "关闭",
+              value: '0',
+            },
+          ],
+        },
+      ],
+      btnGroup: [
+        {
+          name: "新增",
+          click: (row, index) => { return this.handleAddButton() },
+
+        },
+      ],
+      tableConfig: {
+        columns: [
+          // 数据列
+          { prop: "companyId", label: "保险公司编号", type: "text" },
+          { prop: "companyName", label: "保险公司", type: "text" },
+          { name: "enabled", label: "是否开启", type: "slot" },
+          { prop: "username", label: "核心用户名", type: "text" },
+          { prop: "password", label: "核心账号密码", type: "text" },
+        ],
+        loading: true,
+        isPaginationShow: true,
+        isShowIndex: true,
+        optBtns: [
+          {
+            type: "primary",
+            label: "编辑",
+            perm: "sys:agent:edit",
+            icon: "fa fa-edit",
+            click: (row, index) => {
+              return this.handleTableEdit(row);
+            },
+          },
+          {
+            type: "primary",
+            label: "删除",
+            icon: "el-icon-delete",
+            click: (row, index) => {
+              return this.handleTableDeleteFlag(row);
+            },
+          },
+        ],
+      },
+      rules: {
+        companyId: [
+          { required: true, message: '请选择保险公司', trigger: ['blur', 'change'] },
+        ],
+        password: [
+          { required: true, message: '请输入保险公司核心密码', trigger: 'blur' }
+        ],
+        url: [
+          { required: true, message: '请输入请求地址', trigger: 'blur' }
+        ],
+        username: [
+          { required: true, message: '请输入保险公司核心用户名', trigger: 'blur' }
+        ]
+      },
+      sysQueryVehicleUrlDTOList: [
+        {
+          type: 1,
+          link: '',
+        },
+        {
+          type: 2,
+          link: '',
+        }
+      ],    // 新增编辑列表
+      pageData: {
+        pageNum: 1,
+        pageSize: 10,
+        totalSize: 0,
+      },
+      formData: {
+        enabled: 0,
+        companyId: '',
+        companyName: '',
+        password: '',
+        url: '',
+        username: '',
+      },
+      queryFrom: {},
+      pageResult: [],
+      dialogTitle: "",
+      dialogVisible: false, // 新增编辑界面是否显示
+      companyselect: [],
+    };
+  },
+  created() {
+    this.$api.insCompany.gainTopList("1").then((res) => {
+      this.companyselect = res.data;
+    });
+    this.findPage()
+  },
+  methods: {
+    // 开关
+    switchChange(data) {
+      this.$api.sys
+        .vehicleConfigOpen(data.id)
+        .then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: "设置成功",
+              type: "success",
+            });
+            this.findPage();
+          } else {
+            this.$message({
+              message: `设置失败,(${res.msg})`,
+              type: "error",
+            });
+          }
+        });
+    },
+    // 右侧列表的方法Start
+    findPage(data) {
+      this.tableConfig.loading = true;
+      this.$api.sys
+        .vehicleConfigInquire({
+          ...this.pageData,
+          ...data,
+        })
+        .then((res) => {
+          this.tableConfig.loading = false;
+          this.pageResult = res.data.content;
+          this.pageData.pageNum = res.data.pageNum;
+          this.pageData.pageSize = res.data.pageSize;
+          this.pageData.totalSize = res.data.totalSize;
+        });
+    },
+    handleSearchList(data) {
+      this.findPage({...data, ...this.queryFrom});
+    },
+    //编辑
+    async handleTableEdit(params) {
+      this.dialogTitle = "编辑";
+      // this.formData = {...params}
+      this.$api.sys.vehicleConfigDetail(params.id).then((res) => {
+        if (res.code == 200) {
+          this.formData = res.data.sysQueryVehicleConfig
+          this.sysQueryVehicleUrlDTOList = res.data.sysQueryVehicleUrlList
+          this.dialogVisible = true
+        } else {
+          this.$message.error
+        }
+      })
+    },
+    // 删除
+    handleTableDeleteFlag(data) {
+      this.$confirm("确认删除?")
+        .then(() => {
+          this.$api.sys.vehicleConfigDelete(data.id).then((res) => {
+            if (res.code == 200) {
+              this.$message({
+                message: "删除成功",
+                type: "success",
+              });
+              this.findPage();
+            } else {
+              this.$message.error(res.msg);
+            }
+          });
+        })
+        .catch(() => { });
+    },
+    //添加人员
+    handleAddButton() {
+      this.dialogTitle = "新增";
+      this.formData = {
+        enabled: 0,
+        companyId: '',
+        companyName: '',
+        password: '',
+        url: '',
+        username: '',
+      }
+      if (this.$refs["formData"]) {
+        this.$refs["formData"].resetFields();
+      }
+      this.dialogVisible = true;
+    },
+    handleDialogBefore(done) {
+      // 退出对话框之前确认提示
+      this.$confirm("确认关闭?")
+        .then((_) => {
+          done();
+        })
+        .catch((_) => { });
+    },
+    closeDialog() {
+      // 清空数据
+      this.deptInfo = {};
+      this.dialogVisible = false;
+    },
+    // 提交
+    submitForm() {
+      this.$refs.formData.validate((valid) => {
+        if (valid) {
+          this.$confirm("确认提交吗?", "提示", {}).then(() => {
+            this.companyselect.forEach((val) => {
+              if (val.id == this.formData.companyId) {
+                this.formData.companyName = val.namesimple
+              }
+            })
+            if (this.dialogTitle == "新增") {
+              this.$api.sys
+                .vehicleConfig({
+                  sysQueryVehicleConfigDTO: {...this.formData},
+                  sysQueryVehicleUrlDTOList: this.sysQueryVehicleUrlDTOList
+                })
+                .then((res) => {
+                  if (res.code == 200) {
+                    this.$message({
+                      message: "保存成功",
+                      type: "success",
+                    });
+                    this.dialogVisible = false;
+                    this.$refs["formData"].resetFields();
+                    this.findPage();
+                  } else {
+                    this.$message({
+                      message: `保存失败,请重新添加,(${res.msg})`,
+                      type: "error",
+                    });
+                  }
+                });
+            } else {
+              this.$api.sys
+                .vehicleConfigEdit({
+                  sysQueryVehicleConfigDTO: {...this.formData},
+                  sysQueryVehicleUrlDTOList: this.sysQueryVehicleUrlDTOList
+                })
+                .then((res) => {
+                  if (res.code == 200) {
+                    this.$message({
+                      message: "编辑成功",
+                      type: "success",
+                    });
+                    this.dialogVisible = false;
+                    this.$refs["formData"].resetFields();
+                    this.findPage();
+                  } else {
+                    this.$message({
+                      message: `编辑失败,请重新添加,(${res.msg})`,
+                      type: "error",
+                    });
+                  }
+                });
+            }
+          });
+        }
+      });
+    },
+    // 下一步
+
+  },
+};
+</script>
+
+<style scoped lang="scss">
+.el-divider--horizontal {
+  margin: 4px 0;
+}
+
+/* 顶部查询条件样式Start */
+.queryFrom .el-row {
+  margin: 10px 0px;
+}
+
+.queryFrom .el-form-item {
+  margin-bottom: 0px;
+}
+
+.queryFrom .queryButton .el-form-item__content {
+  margin-left: 0px !important;
+}
+
+.disc {
+  -webkit-text-security: disc;
+  position: relative;
+}
+
+.none {
+  -webkit-text-security: none;
+  position: relative;
+}
+
+.icon {
+  color: #ccc;
+  position: absolute;
+  right: 0;
+  top: 10px;
+  text-align: center;
+}
+
+.edit-list {
+  padding: 0 30px;
+  display: flex;
+  text-align: center;
+  margin-bottom: 10px;
+  > div {
+    line-height: 32px;
+    margin-right: 20px;
+  }
+}
+</style>

+ 208 - 151
src/views/Task/mixin.js

@@ -118,27 +118,47 @@ export const mixin = { // 导出混入对象
           type: 'date',
           list: 'attachList'
         },
-        {
-          name: 'managementSource',
-          label: '机构来源',
-          type: 'select',
-          options: []
-        },
       ],
       loading: false,
       queryFrom: {},
       pageResult: {},
       columns: [
         { prop: "subOrderId", label: "订单号", minWidth: 180 },
-        { prop: "userid", label: "业务员", minWidth: 160, formatter: this.useridFormatter },
-        { prop: "managementSource", label: "机构来源", minWidth: 160, formatter: this.managementSourceFormatter },
-        { prop: "insCompany", label: "保险公司", minWidth: 120 },
+        { prop: "userid", label: "业务员工号", minWidth: 180 },
+        { prop: "username", label: "业务员姓名", minWidth: 180 },
+        // { prop: "userid", label: "业务员", minWidth: 160, formatter: this.useridFormatter },
+        { prop: "managementSource", label: "业务来源", minWidth: 160, formatter: this.managementSourceFormatter },
+        // { prop: "insCompany", label: "保险公司", minWidth: 120 },
         { prop: "partnerCompaniesName", label: "合作公司", minWidth: 120 },
-        { prop: "agreementName", label: "协议", minWidth: 160 },
+        // { prop: "agreementName", label: "协议", minWidth: 160 },
         { prop: "licenseno", label: "车牌号", minWidth: 160 },
         { prop: "insuredname", label: "投保人姓名", minWidth: 120 },
         { prop: "product", label: "投保险种", minWidth: 100 },
-        { prop: "createtime", label: "录单日期", minWidth: 160 },
+        { prop: "createtime", label: "录单日期", minWidth: 160},
+      ],
+      columns1: [
+        { prop: "subOrderId", label: "订单号", minWidth: 180 },
+        { prop: "userid", label: "业务员工号", minWidth: 180 },
+        { prop: "username", label: "业务员姓名", minWidth: 180 },
+        // { prop: "userid", label: "业务员", minWidth: 160, formatter: this.useridFormatter },
+        { prop: "managementSource", label: "业务来源", minWidth: 160, formatter: this.managementSourceFormatter },
+        // { prop: "insCompany", label: "保险公司", minWidth: 120 },
+        { prop: "partnerCompaniesName", label: "已承保公司", minWidth: 120 },
+        { prop: "licenseno", label: "车牌号", minWidth: 160 },
+        { prop: "jqpremium", label: "交强险保费", minWidth: 160 },
+        { prop: "sypremium", label: "商业险保费", minWidth: 160 },
+
+
+        // { prop: "agreementName", label: "协议", minWidth: 160 },
+        { prop: "taxamount", label: "车船税", minWidth: 160 },
+        { prop: "jypremium", label: "驾意险保费", minWidth: 160 },
+
+      
+        
+        // { prop: "isExternal", label: "外部订单", formatter: this.isExternalFormatter},
+        { prop: "insuredname", label: "投保人姓名", minWidth: 120 },
+        { prop: "product", label: "投保险种", minWidth: 100 },
+        { prop: "createtime", label: "录单日期", minWidth: 160},
       ],
       statusoptions: "",
       dialogVisible: false,
@@ -157,24 +177,24 @@ export const mixin = { // 导出混入对象
       quoteno: "",
       oldfileList: [],
       orderInfo: {},
-      forwardingRecordsdialogVisible: false,
-      gridData: [],
+      forwardingRecordsdialogVisible:false,
+      gridData:[],
       natureOfVehicleUseoptions: [],
-      businessVehicleUseoptions: [],
-      energyTypeoptions: [],
-      vehicleTypeoptions: [],
-      trafficManagementVehicleTypeoptions: [],
+      businessVehicleUseoptions:[],
+      energyTypeoptions:[],
+      vehicleTypeoptions:[],
+      trafficManagementVehicleTypeoptions:[],
       outOfBusinessVehicleUseoptions: [],
-      isAuditing: {
-        adjustFeeFlag: false,
+      isAuditing:{
+        adjustFeeFlag:false,
       },
-      feeOrderNewVoList: {},
-      dialogVisibleOrder: false,
-      formDataOrder: {
-        carinfo: {},
-        ownerinfo: {},
-        applyinfo: {},
-        insureinfo: {},
+      feeOrderNewVoList:{},
+      dialogVisibleOrder:false,
+      formDataOrder:{
+        carinfo:{},
+        ownerinfo:{},
+        applyinfo:{},
+        insureinfo:{},
       },
       formvehicleList: [
         { prop: "licenseNo", label: "车牌号" },
@@ -191,7 +211,7 @@ export const mixin = { // 导出混入对象
       ],
       formownersList: [
         { prop: "name", label: "车主姓名" },
-        { prop: "identifyType", label: "证件类型", type: 'select' },
+        { prop: "identifyType", label: "证件类型" ,type:'select'},
         { prop: "identifyNumber", label: "身份证号" },
         { prop: "mobile", label: "手机号" },
         { prop: "email", label: "电子邮箱" },
@@ -199,7 +219,7 @@ export const mixin = { // 导出混入对象
       ],
       formPolicyholderList: [
         { prop: "name", label: "投保人姓名" },
-        { prop: "identifyType", label: "证件类型", type: 'select' },
+        { prop: "identifyType", label: "证件类型" ,type:'select'},
         { prop: "identifyNumber", label: "身份证号" },
         { prop: "mobile", label: "手机号" },
         { prop: "email", label: "电子邮箱" },
@@ -207,7 +227,7 @@ export const mixin = { // 导出混入对象
       ],
       forminsureinfoList: [
         { prop: "name", label: "被保人姓名" },
-        { prop: "identifyType", label: "证件类型", type: 'select' },
+        { prop: "identifyType", label: "证件类型" ,type:'select'},
         { prop: "identifyNumber", label: "身份证号" },
         { prop: "mobile", label: "手机号" },
         { prop: "email", label: "电子邮箱" },
@@ -218,13 +238,13 @@ export const mixin = { // 导出混入对象
           return time.getTime() > Date.now();
         }
       },
-      whetheroptions: [
+      whetheroptions:[
         {
-          label: '是',
-          value: false
+          label:'是',
+          value:false
         }, {
-          label: '否',
-          value: true
+          label:'否',
+          value:true
         },
       ]
     }
@@ -244,8 +264,8 @@ export const mixin = { // 导出混入对象
     }
   },
   created() {
-    this.pageRequest.quoteStartDateStr = this.currentDate;
-    this.pageRequest.quoteEndDateStr = this.currentDate;
+    this.pageRequest.quoteStartDateStr=this.currentDate;
+    this.pageRequest.quoteEndDateStr=this.currentDate;
     this.$api.letter.gainTopList().then(res => {
       this.companyList = res.data;
     });
@@ -256,7 +276,6 @@ export const mixin = { // 导出混入对象
     this.CompanyList();
     this.agrmentlist();
     this.getDicType("productsType"); //车船税类型
-    this.getManagementSource('business_source')//来源
     this.getDicTypePro("natureOfVehicleUse"); //车辆使用性质
     this.getDicTypePro("vehicleType"); //车辆种类
     this.getDicTypePro("trafficManagementVehicleType"); //车辆类型
@@ -265,25 +284,25 @@ export const mixin = { // 导出混入对象
     this.getDicTypePro("outOfBusinessVehicleUse"); //(车辆用途)非营业
   },
   methods: {
-    submitOrder() {
-      let data = {
-        ownerInfo: this.formDataOrder.ownerinfo,
-        carInfo: this.formDataOrder.carinfo,
-        applyInfo: this.formDataOrder.applyinfo,
-        insureInfo: this.formDataOrder.insureinfo,
-        subOrderNo: this.formDataOrder.id
+    submitOrder(){
+      let data={
+        ownerInfo:this.formDataOrder.ownerinfo,
+        carInfo:this.formDataOrder.carinfo,
+        applyInfo:this.formDataOrder.applyinfo,
+        insureInfo:this.formDataOrder.insureinfo,
+        subOrderNo:this.formDataOrder.id
       }
       this.$api.task.batchOrder(data).then(res => {
         if (res.code == 200) {
-          this.findPage();
-          this.dialogVisibleOrder = false
+      this.findPage();
+      this.dialogVisibleOrder=false
 
           this.$message({
-            message: res.msg || '操作成功',
+            message: res.msg ||'操作成功',
             type: 'success'
           });
         }
-        else {
+        else{
           this.$message.error(res.msg);
         }
       });
@@ -298,8 +317,8 @@ export const mixin = { // 导出混入对象
         this.formDataOrder.carinfo.vehicleUse = "";
       }
     },
-    handleCloseOrder() {
-      this.dialogVisibleOrder = false
+    handleCloseOrder(){
+      this.dialogVisibleOrder=false
     },
     getDicTypePro(type) {
       this.$api.insCompany.dicType(type).then(res => {
@@ -308,23 +327,23 @@ export const mixin = { // 导出混入对象
         }
       });
     },
-    capTypedictTag(val, option) {
-      if (option.find(item => item.dictValue == val)) {
-        return option.find(item => item.dictValue == val).dictTag;
-      }
-      else {
+    capTypedictTag(val,option) {
+      if(option.find(item =>  item.dictValue == val)){
+        return option.find(item =>  item.dictValue == val).dictTag;
+        }
+      else{
         return '-'
       }
     },
-    forwardingRecords(row) {
-      let id = row.row.subOrderId;
+    forwardingRecords(row){
+      let id=row.row.subOrderId;
       this.forwardingRecordsQuery(id);
     },
     forwardingRecordsQuery(id) {
       this.$api.letter.findForwardingListBySubOrderId(id).then((res) => {
         if (res.code == '200' && res.data.length) {
-          this.gridData = res.data;
-          this.forwardingRecordsdialogVisible = true;
+          this.gridData=res.data;
+          this.forwardingRecordsdialogVisible=true;
         } else {
           this.$message({
             type: 'error',
@@ -374,37 +393,36 @@ export const mixin = { // 导出混入对象
               return val;
             })
             this.feeOrderNewVoList = {
-              list: [...data1.entranceFee, ...data1.exportFee],
+              list: [...data1.entranceFee,...data1.exportFee],
             }
           }
-          if (data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业') {
-            data.carinfo.vehicleUse = this.capTypedictTag(data.carinfo.vehicleUse, this.outOfBusinessVehicleUseoptions)
-          } else {
-            data.carinfo.vehicleUse = this.capTypedictTag(data.carinfo.vehicleUse, this.businessVehicleUseoptions)
+          if(data.carinfo.carnature &&  data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业'){
+            data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
+          }else{
+            data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.businessVehicleUseoptions)
           }
-          data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature, this.natureOfVehicleUseoptions);
-          data.carinfo.cartype = data.carinfo.cartype ? this.capTypedictTag(data.carinfo.cartype, this.trafficManagementVehicleTypeoptions) : ''
-          data.carinfo.cimodelclass = data.carinfo.cimodelclass ? this.capTypedictTag(data.carinfo.cimodelclass, this.vehicleTypeoptions) : ''
-          data.carinfo.energyType = data.carinfo.energyType ? this.capTypedictTag(data.carinfo.energyType, this.energyTypeoptions) : ''
-          data.source = row.row.managementSource
+          data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature,this.natureOfVehicleUseoptions);
+          data.carinfo.cartype=data.carinfo.cartype?this.capTypedictTag(data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
+          data.carinfo.cimodelclass=data.carinfo.cimodelclass?this.capTypedictTag(data.carinfo.cimodelclass,this.vehicleTypeoptions):''
+          data.carinfo.energyType=data.carinfo.energyType?this.capTypedictTag(data.carinfo.energyType,this.energyTypeoptions):''
           this.queryOrders = data;
         }
-        else {
+        else{
           this.$message.error(res.msg)
         }
       });
       this.$refs.detailsDialog.setBackupVisible(true);
     },
-    batchOrder(row) {
-      this.dialogVisibleOrder = true
+    batchOrder(row){
+      this.dialogVisibleOrder=true
       let params = {
         companyId: row.row.subOrderId
       };
       this.$api.letter.getTaskByCompanyId(params).then(res => {
-        if (res.code == 200) {
+        if(res.code==200){
           this.formDataOrder = res.data;
         }
-        else {
+        else{
           this.$message.error(res.msg)
         }
       })
@@ -454,22 +472,50 @@ export const mixin = { // 导出混入对象
         }
       });
     },
-    getManagementSource(type) {
-      this.$api.dict.findByLableName(type).then(res => {
-        if (res.code == 200) {
-          for (let i = 0; i < res.data.length; i++) {
-            res.data[i].name = res.data[i].label
-            res.data[i].id = Number(res.data[i].value)
-          }
-          this.selectDataMatching(this.retrievalFields, 'managementSource', res.data);
-        }
-      });
-    },
     cpolicy() {
       if (this.orderInfo.orderstatus == "3") {
         this.oldfileList = [];
         let businessList = []
         let accidentList = []
+        if(this.orderInfo.isExternal==1){
+          this.$api.letter
+          .getPolicyPrintexternalOrder(this.orderInfo.id).then(res1=>{
+            if(res1.code==200){
+              if (res1.data.jqPolicy) {
+                  this.oldfileList.push({
+                    fileTitle: "交强电子保单",
+                    filename: this.orderInfo.jqpolicyno,
+                    fileurl: res1.data.jqPolicy
+                  });
+                }
+                if (res1.data.jqSign) {
+                  this.oldfileList.push({
+                    fileTitle: "交强电子标志",
+                    filename: this.orderInfo.jqpolicyno,
+                    fileurl: res1.data.jqSign
+                  });
+                  }
+                if (res1.data.jqSign) {
+                  accidentList.push({
+                    fileTitle: "商业电子保单",
+                    filename: this.orderInfo.sypolicyno,
+                    fileurl: res1.data.jqSign
+                  });
+                }
+                if (res1.data.noPolicy) {
+                  accidentList.push({
+                    fileTitle: "驾意险保单",
+                    filename: "驾意险保单",
+                    fileurl: res1.data.noPolicy
+                  });
+                }
+              }
+            else{
+              this.$message.error(res1.msg)
+            }
+          })
+        }
+        else{
         switch (this.orderInfo.inscompany) {
           case "永安财险":
             if (this.orderInfo.jqpolicyno) {
@@ -1077,6 +1123,7 @@ export const mixin = { // 导出混入对象
             break;
           default:
         }
+      }
         let obj = {
           oldfileList: this.oldfileList,
           businessList,
@@ -1172,7 +1219,17 @@ export const mixin = { // 导出混入对象
         default:
       }
     },
-    trajectory(row) {
+    isExternalFormatter(row, column) {
+      let isExternal = row.isExternal;
+      switch (isExternal) {
+        case 1:
+          return  '是'
+        case 0:
+          return  '否'
+        default:
+      }
+    },
+    trajectory(row){
       this.$api.letter.queryBySuborder(row.subOrderId).then((res) => {
         if (res.code == 200 && res.data.length > 0) {
           this.ddgjdialogVisible = true;
@@ -1194,13 +1251,13 @@ export const mixin = { // 导出混入对象
           });
           this.findPage();
         }
-        else {
+        else{
           this.$message.error(res.msg)
         }
       });
     },
-    // 撤销二维码
-    revokeCode(row) {
+     // 撤销二维码
+     revokeCode(row) {
       this.$api.letter.getRevokeQrCode(row.subOrderId).then(res => {
         if (res.code == 200) {
           this.$message({
@@ -1212,46 +1269,25 @@ export const mixin = { // 导出混入对象
       });
     },
     //查询缴费状态
-    refreshStatus(item) {
-      let inscompany = {
-        国任财险: "updateOrderInfoGuoren",
-        华泰财险: "orderStatushuatai",
-        大家财险: "updateOrderInfoDajia",
-        中煤财险: "orderStatuszhongmei",
-        太平财险: "auditStatusQuery",
-        华农财险: "auditStatusQuery",
-        恒邦财险: "auditStatusQuery",
-        众安财险: "auditStatusQuery",
-        中国人寿: "auditStatusQuery",
-        安盛天平: "auditStatusQuery",
-        紫金财险: "auditStatusQueryZijin",
-        渤海财险: "orderStatusbohai"
-      };
-      Object.keys(inscompany).forEach(val => {
-        if (val == item.insCompany) {
-          this.$api.letter[inscompany[val]]({ companyId: item.subOrderId }).then(
-            res => {
-              if (res.code == 200) {
-                this.$message({
-                  message: res.msg ? res.msg : "已刷新状态",
-                  type: "success"
-                });
-                this.findPage();
-              } else {
-                this.$message({
-                  showClose: true,
-                  dangerouslyUseHTMLString: true,
-                  message: res.msg.replace(/\n/g, "<br><br>"),
-                  type: "error",
-                  duration: 7000
-                });
-              }
-            }
-          );
-        }
-      });
-      if (item.insCompany == "永诚财险") {
-        this.$api.letter.orderStatusyongcheng(item.subOrderId).then(res => {
+ refreshStatus(item) {
+  let inscompany = {
+    国任财险: "updateOrderInfoGuoren",
+    华泰财险: "orderStatushuatai",
+    大家财险: "updateOrderInfoDajia",
+    中煤财险: "orderStatuszhongmei",
+    太平财险: "auditStatusQuery",
+    华农财险: "auditStatusQuery",
+    恒邦财险: "auditStatusQuery",
+    众安财险: "auditStatusQuery",
+    中国人寿: "auditStatusQuery",
+    安盛天平: "auditStatusQuery",
+    紫金财险: "auditStatusQueryZijin",
+    渤海财险: "orderStatusbohai"
+  };
+  Object.keys(inscompany).forEach(val => {
+    if (val == item.insCompany) {
+      this.$api.letter[inscompany[val]]({ companyId: item.subOrderId }).then(
+        res => {
           if (res.code == 200) {
             this.$message({
               message: res.msg ? res.msg : "已刷新状态",
@@ -1267,31 +1303,52 @@ export const mixin = { // 导出混入对象
               duration: 7000
             });
           }
+        }
+      );
+    }
+  });
+  if (item.insCompany == "永诚财险") {
+    this.$api.letter.orderStatusyongcheng(item.subOrderId).then(res => {
+      if (res.code == 200) {
+        this.$message({
+          message: res.msg ? res.msg : "已刷新状态",
+          type: "success"
+        });
+        this.findPage();
+      } else {
+        this.$message({
+          showClose: true,
+          dangerouslyUseHTMLString: true,
+          message: res.msg.replace(/\n/g, "<br><br>"),
+          type: "error",
+          duration: 7000
         });
       }
-      if (item.insCompany == "华泰财险") {
-        let HtApiType =
-          item.apiType == 2
-            ? "auditStatusQuery"
-            : "orderStatushuatai";
-        this.$api.letter[HtApiType](item.subOrderId).then(res => {
-          if (res.code == 200) {
-            this.$message({
-              message: res.msg ? res.msg : "已刷新状态",
-              type: "success"
-            });
-            this.findPage();
-          } else {
-            this.$message({
-              showClose: true,
-              dangerouslyUseHTMLString: true,
-              message: res.msg.replace(/\n/g, "<br><br>"),
-              type: "error",
-              duration: 7000
-            });
-          }
+    });
+  }
+  if (item.insCompany == "华泰财险") {
+    let HtApiType =
+      item.apiType == 2
+        ? "auditStatusQuery"
+        : "orderStatushuatai";
+    this.$api.letter[HtApiType](item.subOrderId).then(res => {
+      if (res.code == 200) {
+        this.$message({
+          message: res.msg ? res.msg : "已刷新状态",
+          type: "success"
+        });
+        this.findPage();
+      } else {
+        this.$message({
+          showClose: true,
+          dangerouslyUseHTMLString: true,
+          message: res.msg.replace(/\n/g, "<br><br>"),
+          type: "error",
+          duration: 7000
         });
       }
-    },
+    });
+  }
+},
   }
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов