Prechádzať zdrojové kódy

诚泰api、太平洋、特约设置、特约新列表

yaoyao 1 rok pred
rodič
commit
fdb14fd8e6

+ 2 - 2
config/dev.env.js

@@ -17,8 +17,8 @@ module.exports = merge(prodEnv, {
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.0.250:8080/"',//
   //  BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
-  BASE_URL: '"http://192.168.0.52:8080/"',//贺礼霄
-  // BASE_URL: '"http:///192.168.0.55:8080/"',// 董鑫
+  // BASE_URL: '"http://192.168.0.52:8080/"',//贺礼霄
+  BASE_URL: '"http:///192.168.0.55:8080/"',// 董鑫
   CONSOLE_BASE_URL: '"http://localhost:8080/"', //控制台测试服务器
   // CONSOLE_BASE_URL: '"https://test.baoxianzhanggui.com/console-api"' //控制台正式服务器
   APP_BASE_URL: '"https://pre.baoxianzhanggui.com/web-api"',    // app打包上传地址

+ 3 - 3
package-lock.json

@@ -2688,7 +2688,7 @@
     },
     "crypto-js": {
       "version": "4.2.0",
-      "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
+      "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz",
       "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
     },
     "css-color-names": {
@@ -13972,7 +13972,7 @@
     },
     "vue-tree-to-table": {
       "version": "1.0.4",
-      "resolved": "https://registry.npmjs.org/vue-tree-to-table/-/vue-tree-to-table-1.0.4.tgz",
+      "resolved": "https://registry.npmmirror.com/vue-tree-to-table/-/vue-tree-to-table-1.0.4.tgz",
       "integrity": "sha512-uHVjc8Vu45JkIZEYexZDnuONSn+1IjWknIhDlkk4Qoo2LpGUcR+DaYQROGcIziAXULcUS94ye8Fzooy2KKFH3w==",
       "requires": {
         "element-ui": "^2.15.1",
@@ -13981,7 +13981,7 @@
       "dependencies": {
         "vue": {
           "version": "2.7.16",
-          "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.16.tgz",
+          "resolved": "https://registry.npmmirror.com/vue/-/vue-2.7.16.tgz",
           "integrity": "sha512-4gCtFXaAA3zYZdTp5s4Hl2sozuySsgz4jy1EnpBHNfpMa9dK1ZCG7viqBPCwXtmgc8nHqUsAu3G4gtmXkkY3Sw==",
           "requires": {
             "@vue/compiler-sfc": "2.7.16",

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

@@ -224,6 +224,16 @@ export const anshengsubmitImage = (data) => {
     data
   })
 }
+
+//诚泰提交影像
+export const chengtaisubmitImage = (data) => {
+  return axios({
+    url: "/api/chengTai/submitImage",
+    method: "post",
+    data
+  })
+}
+
 //大家提交影像
 export const dajiasubmitImage = (data) => {
   return axios({
@@ -313,6 +323,16 @@ export const anshengaudit = (data) => {
     data
   })
 }
+
+//诚泰核保
+export const chengtaiaudit = (data) => {
+  return axios({
+    url: '/api/chengTai/audit',
+    method: 'post',
+    data
+  })
+}
+
 //大家核保
 export const dajiaaudit = (data) => {
   return axios({
@@ -618,6 +638,16 @@ export const zijincancelorder = (data) => {
     data
   })
 }
+
+// 诚泰撤单
+export const chengtaicancelorder = (data) => {
+  return axios({
+    url: "/api/chengTai/cancel",
+    method: "post",
+    data
+  })
+}
+
 /***
     爬虫统一调用模块
  *
@@ -717,6 +747,14 @@ export const paymentEnquiry = (data) => {
     data
   })
 }
+// 诚泰状态更新查询
+export const getOrderDetailchengtai = (data) => {
+  return axios({
+    url: "/api/chengTai/getOrderDetail",
+    method: "post",
+    data
+  })
+}
 //华泰核保状态查询
 export const orderStatushuatai = (data) => {
   return axios({
@@ -725,6 +763,15 @@ export const orderStatushuatai = (data) => {
     data
   })
 }
+// 诚泰核保状态查询
+export const orderStatuschengtai = (data) => {
+  return axios({
+    url: "/api/chengTai/auditStatusQuery",
+    method: "post",
+    data
+  })
+}
+
 
 //华泰缴费状态查询
 export const updateOrderInfoHuatai = (data) => {
@@ -1383,4 +1430,13 @@ export const queryBySuborderDetails = (suborder) => {
     url: "/insurance/track/queryBySuborderDetails?suborder=" + suborder,
     method: "get",
   })
-}
+}
+
+  // 新获取特约 
+  export const getClauseByCompanyId = (data) => {
+    return axios({
+     url: '/clause/getClauseByCompanyId',
+     method: 'post',
+     data
+    })
+   }

+ 28 - 0
src/http/moudules/task.js

@@ -1934,3 +1934,31 @@ export const sysPartnerConfiEdit= (data) => {
 }
 
 
+// 特约列表
+export const getClausePage= (data) => {
+  return axios({
+    url: "/clause/getClausePage",
+    method: "post",
+    data
+  })
+}
+
+
+// 获取属性列表
+export const getInfoMaps= (data) => {
+  return axios({
+    url: "/clause/getInfoMaps",
+    method: "post",
+    data
+  })
+}
+
+
+// 修改特约
+export const updateClause= (data) => {
+  return axios({
+    url: "/clause/updateClause",
+    method: "post",
+    data
+  })
+}

+ 152 - 0
src/views/ProductManage/SpecialAgreement/SpecialAgreement.vue

@@ -0,0 +1,152 @@
+<template>
+  <div class="InvoicedAndSettled">
+    <templateTable :formList="formList" :searchData.sync="searchData" :tableConfig="tableConfig" :data="tableData"
+      @getList="getList" @handleSearchList="handleSearchList" :pagination="pageData">
+    </templateTable>
+
+    <el-dialog title="特约信息" :visible.sync="showEditDialog" width="40%" :before-close="handleClose">
+      <div>
+        <p>{{ editData.clauseContent }}</p>
+        <el-row v-for="(item, index) in optionList" :key="index" style="margin-bottom: 10px;">
+          <el-col :span="4">需要替换的字符</el-col>
+          <el-col :span="4">{{ item.replaceSymbol }}</el-col>
+          <el-col :span="6">
+            <el-select v-model="item.fieldId" placeholder="请选择" size="mini" clearable filterable>
+              <el-option v-for="(item1, index1) in infoMapsList" :key="index1" :label="item1.modelName" :value="item1.id"></el-option>
+            </el-select>
+          </el-col>
+        </el-row>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button size="small" @click="handleClose">取 消</el-button>
+        <el-button size="small" type="primary" @click="handleSubmit">确 定</el-button>
+      </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+
+import templateTable from "@/components/TemplateTable/index.vue";
+
+export default {
+  components: { templateTable },
+  data() {
+    return {
+      formList: [],
+      searchData: {},
+      tableConfig: {
+        columns: [
+          {
+            prop: "clauseName",
+            label: "名称",
+            type: "text",
+          },
+          {
+            prop: "clauseCode",
+            label: "CODE",
+            type: "text",
+            selectionWidth: '300'
+          },
+          {
+            prop: "clauseContent",
+            label: "内容",
+            type: "text",
+          },
+        ],
+        loading: true,
+        isPaginationShow: true,
+        tableHeight: '680px',
+        optBtns: [
+          {
+            type: "primary",
+            label: "修改",
+            click: (row, index) => {
+              return this.handleEdit(row);
+            },
+          },
+        ],
+      },
+      tableData: [],
+      pageData: {
+        pageNum: 1,
+        pageSize: 20,
+      },
+      editData: {},
+      showEditDialog: false,
+      infoMapsList: [],
+      optionList: [],   // 编辑详情
+    }
+  },
+  created() {
+    this.getList();
+    this.getInfoList()
+  },
+  methods: {
+    // 修改
+    handleSubmit() {
+      const data = {
+        clauseId: this.editData.id,
+        clauseContent: this.editData.clauseContent,
+        replaces: this.optionList
+      }
+      this.$api.task.updateClause(data).then((res) => {
+        if (res.code == 200) {
+          this.getList()
+          this.handleClose()
+        }
+      })
+    },
+    // 获取设置列表
+    getInfoList() {
+      this.$api.task.getInfoMaps().then((res) => {
+        this.infoMapsList = res.data
+      })
+    },
+    handleClose() {
+      this.showEditDialog = false
+    },
+    // 修改
+    handleEdit(row, index) {
+      this.editData = row
+      this.optionList = []
+      this.editData.replaces.forEach(val => {
+        val.newValue = this.editData.infoMap.find((ele) => {
+          return ele.id == val.fieldId
+        })
+        this.optionList.push({
+          fieldId: val.newValue.id,
+          replaceSymbol: val.replaceSymbol,
+          sort: val.sort
+        })
+      });
+      // 
+      this.showEditDialog = true
+    },
+    //列表数据
+    getList(data) {
+      console.log(data)
+      this.tableConfig.loading = true;
+      this.$api.task.getClausePage({ ...this.pageData, ...data }).then((res) => {
+        this.tableConfig.loading = false;
+        if (res.code == 200) {
+          this.tableData = res.data.records;
+          this.pageData.pageNum = res.data.current;
+          this.pageData.pageSize = res.data.size;
+          this.pageData.totalSize = res.data.total;
+        } else {
+          this.$message.error(res.msg);
+        }
+      });
+    },
+    // 查询
+    handleSearchList(data) {
+      this.getList(data);
+    },
+  },
+}
+</script>
+
+<style>
+
+</style>

+ 214 - 45
src/views/Task/daikeComponents/KtLetter1.vue

@@ -1036,22 +1036,24 @@
                           <div class="flex-1">产品名称</div>
                           <div class="w-60">保额(元)</div>
                         </div>
-                        <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
-                          <div class="flex-1">
-                            <img src="@/icon/icon-chengse.png">
-                            <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
-                             <span>{{ kinds.kindName }}</span>
+                        <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.main" :key="kindIndex + 'main'">
+                          <div class="table-list-content" v-if="kinds.amount != 0">
+                            <div class="flex-1">
+                              <img src="@/icon/icon-chengse.png">
+                              <span>{{ kinds.kindName }}</span>
+                            </div>
+                            <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
+                            <div v-else class="w-60">{{ toWan(kinds.amount) }}</div>
                           </div>
-                          <div v-if="kinds.kindCode != 'A'" class="w-60"> {{ toWan(kinds.amount) }}</div>
-                          <div v-else class="w-60">&nbsp;</div>
                         </div>
-                        <div class="table-list-content" v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
-                          <div class="flex-1">
-                            <img src="@/icon/icon-chengse.png">
-                            <!-- <span>{{ kinds.alias || kinds.kindName }}</span> -->
-                            <span>{{ kinds.kindName }}</span>
+                        <div v-for="(kinds, kindIndex) in reslistitem.programme.kinds.additional" :key="kindIndex">
+                          <div class="table-list-content" v-if="kinds.amount != 0">
+                            <div class="flex-1">
+                              <img src="@/icon/icon-chengse.png">
+                              <span>{{ kinds.kindName }}</span>
+                            </div>
+                            <div class="w-60"> {{ toWan(kinds.amount) }}</div>
                           </div>
-                          <div class="w-60"> {{ toWan(kinds.amount) }}</div>
                         </div>
                         <div class="table-list-content" v-if="reslistitem.programme && reslistitem.programme.kinds && !reslistitem.programme.kinds.main.length && !reslistitem.programme.kinds.additional.length">暂无</div>
                       </div>
@@ -2452,7 +2454,7 @@
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                 scope.row.orderstatus == '2' ||
                 scope.row.orderstatus == '4') &&
-                ['紫金财险'].includes(scope.row.inscompany)
+                ['紫金财险', '诚泰财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
               <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'"
                 @click="revokeCode(scope.row.id)">撤销二维码</el-button>
@@ -2910,10 +2912,11 @@
         }">
         <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column prop="clauseCode" :width="80" label="特约代码" align="center"></el-table-column>
-        <el-table-column v-if="contributingState" :width="100" prop="riskName" label="特约险种"
+        <el-table-column v-if="contributingState" :width="100" prop="riskCode" label="特约险种"
           align="center"></el-table-column>
         <el-table-column prop="clauseName" label="特约名称" align="center"></el-table-column>
-        <el-table-column prop="clauseContent" label="特约内容">
+        <el-table-column prop="replaceContent" label="特约内容" align="center"></el-table-column>
+        <!-- <el-table-column prop="clauseContent" label="特约内容">
           <template slot-scope="scope">
             <el-input @blur="hideInput" size="small" type="textarea" :ref="scope.row.index + ',' + scope.column.index"
               v-model="scope.row.clauseContent" v-if="scope.row.index + ',' + scope.column.index == currentCell &&
@@ -2921,7 +2924,7 @@
                 "></el-input>
             <span v-else>{{ scope.row.clauseContent }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
       </el-table>
       <span slot="footer" class="dialog-footer">
         <el-button size="small" @click="hbsubmitdialogVisible = false">取 消</el-button>
@@ -4286,7 +4289,11 @@ export default {
       hengbangtemplateSelection: "", //恒邦
       hengbangInsuranceData: [], //恒邦驾意险
       hengbangInsuranceDataTable: [],
-      hengbangaccidentalDrivingVo: {}, //恒邦驾意险
+      hengbangaccidentalDrivingVo: {}, //太平洋驾意险
+      taipingyangtemplateSelection: "", //太平洋
+      taipingyangInsuranceData: [], //太平洋驾意险
+      taipingyangInsuranceDataTable: [],
+      taipingyangaccidentalDrivingVo: {}, //太平洋驾意险
       insuranceHN: "", //华农
       huanongInsuranceData: [], //华农驾意险
       huanongInsuranceDataTable: [],
@@ -4386,11 +4393,13 @@ export default {
       renbaochecked: false, //人保驾意险
       zhongmeichecked: false, //中煤驾意险
       hengbangchecked: false, //恒邦驾意险
+      taipingyangchecked: false, //太平洋驾意险
       yongchengchecked: false, //永诚驾意险
       yonganDrivinglist: [],
       renbaoDrivinglist: [],
       zhongmeiDrivinglist: [],
       hengbangDrivinglist: [],
+      taipingyangDrivinglist: [],
       yongchengDrivinglist: [],
       tbczcarShow: true, //投保人同车主
       bbczcarShow: false, //被保人同车主
@@ -5810,6 +5819,8 @@ export default {
         } else {
           return (num / 10000).toFixed(4) + '万'
         }
+      } else if (num == 1) {
+        return '投保'
       } else {
         return num
       }
@@ -6849,6 +6860,17 @@ export default {
         );
       }
     },
+    taipingyangInsuranceChange(index) {
+      this.taipingyangInsuranceDataTable = this.taipingyangInsuranceData.find(
+        (val) => val.projectCode == index
+      ).son;
+      this.taipingyangtemplateSelection = index;
+      if (this.taipingyangInsuranceDataTable.length) {
+        this.taipingyangaccidentalDrivingVo = this.taipingyangInsuranceData.find(
+          (val) => val.projectCode == index
+        );
+      }
+    },
     huanongInsuranceChange(index) {
       this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
         (val) => val.projectCode == index
@@ -7373,6 +7395,7 @@ export default {
                 case "安盛天平":
                 case "华农财险":
                 case "众安财险":
+                case "太平洋财险":
                   res.data.map((ele) => {
                     ele.quantity = 1;
                     return ele;
@@ -7655,6 +7678,46 @@ export default {
     ZADrivingRadio(row) {
       this.ZADrivingChange(row);
     },
+    // 获取特约
+    getClauseData(id, index) {
+      this.ownerInfo.owner = this.tbczcarShow;
+      this.insuredPersonInfo.owner = this.bbczcarShow;
+      this.insuredPersonInfo.insuranceHolder = this.bbtbcarShow;
+      let data = {
+        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,
+        isExternal: "1",
+        vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
+      };
+      console.log(data,this.productId, this.totalCompanyList[index].id, '1111111111111111111111')
+      console.log(id, index)
+      // this.typeDialogIndex = index
+      // this.zijinengageListData = [];
+      // this.contributingLoading = true;
+      // this.contributingState = true;
+      // this.hbsubmitdialogVisible = true;
+      this.$api.letter.getClauseByCompanyId({
+        productCode: this.productId,
+        companyId: this.totalCompanyList[index].id,
+        quoteInfoVo: data
+      }).then((res) => {
+        this.contributingLoading = false;
+        if (res.data) {
+          // res.data.forEach((val) => {
+          //   val.clauseName = val.clauses;
+          //   val.clauseContent = val.clausesContext;
+          // });
+          this.zijinengageListData = res.data;
+        }
+      })
+    },
     // 国任特约选择
     contributingGuoRen(id, index) {
       this.typeDialogIndex = index
@@ -7662,6 +7725,8 @@ export default {
       this.contributingLoading = true;
       this.contributingState = true;
       this.hbsubmitdialogVisible = true;
+      this.getClauseData(id, index)
+      return
       this.$api.letter
         .guorenqueryClauseData({ agreementId: id })
         .then((res) => {
@@ -7699,7 +7764,7 @@ export default {
         this.zijinengageList.push({
           clauseCode: val.clauseCode,
           clauseName: val.clauseName,
-          clauses: val.clauseContent,
+          clauses: val.replaceContent,
           riskCode: val.riskCode,
         });
         this.totalCompanyList[this.typeDialogIndex].zxProgramme.teyue = this.zijinengageList
@@ -7825,6 +7890,7 @@ export default {
                   case "华农财险":
                   case "安盛天平":
                   case "众安财险":
+                  case "太平洋财险":
                     res.data.map((ele) => {
                       ele.quantity = 1;
                       return ele;
@@ -9992,6 +10058,7 @@ export default {
           case "恒邦财险":
           case "华农财险":
           case "太平财险":
+          case "太平洋财险":
             if (!!res.data) {
               if (
                 res.data.warnMessageList &&
@@ -10101,6 +10168,15 @@ export default {
         this.totalCompanyList[num].apiType
       );
     },
+    //太平洋
+    taipingyang(num, id, namesimple) {
+      this.quoteInsurance(
+        num,
+        id,
+        namesimple,
+        this.totalCompanyList[num].apiType
+      );
+    },
     //诚泰
     chengtai(num, id, namesimple) {
       this.quoteInsurance(
@@ -10496,7 +10572,8 @@ export default {
       this.policyUploaddialogVisible = true;
     },
     cancelorder(item) {
-      this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
+      if (item.inscompany == '紫金财险') {
+        this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
         if (res.code == 200) {
           this.$message({
             message: res.msg,
@@ -10505,6 +10582,17 @@ export default {
           this.QuotationHistory();
         }
       });
+      } else if (item.inscompany == '诚泰财险') {
+        this.$api.letter.chengtaicancelorder({ companyId: item.id }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.findPage();
+          }
+        });
+      }
     },
 
     hbsubmitdialog(data, index) {
@@ -10518,33 +10606,35 @@ export default {
       this.hbsubmitdialogVisible = true;
       this.contributingState = false;
       if (data.namesimple == "紫金财险") {
-        this.$api.letter
-          .zijinqueryClauseData({ companyId: this.companyId })
-          .then((res) => {
-            this.zijinengageListData = res.data;
-          });
+        this.getClauseData(this.companyId, index)
+        // this.$api.letter
+        //   .zijinqueryClauseData({ companyId: this.companyId })
+        //   .then((res) => {
+        //     this.zijinengageListData = res.data;
+        //   });
       }
       if (data.namesimple == "华泰财险") {
         this.zijinengageList = [];
-        this.$api.letter
-          .huataiqueryClauseData({ companyId: this.companyId })
-          .then((res) => {
-            res.data.forEach((val) => {
-              val.clauseCode = val.engageCode;
-              val.clauseName = val.engageTitle;
-              val.clauseContent = val.engageDetail;
-              val.clauses = val.engageDetail;
-            });
-            this.zijinengageListData = res.data;
-            this.zijinengageListData.forEach((val) => {
-              this.$nextTick(() => {
-                if (val.optType == "2") {
-                  this.zijinengageList.push(val);
-                  this.$refs.expandTablePro.toggleRowSelection(val, true);
-                }
-              });
-            });
-          });
+        this.getClauseData(this.companyId, index)
+        // this.$api.letter
+        //   .huataiqueryClauseData({ companyId: this.companyId })
+        //   .then((res) => {
+        //     res.data.forEach((val) => {
+        //       val.clauseCode = val.engageCode;
+        //       val.clauseName = val.engageTitle;
+        //       val.clauseContent = val.engageDetail;
+        //       val.clauses = val.engageDetail;
+        //     });
+        //     this.zijinengageListData = res.data;
+        //     this.zijinengageListData.forEach((val) => {
+        //       this.$nextTick(() => {
+        //         if (val.optType == "2") {
+        //           this.zijinengageList.push(val);
+        //           this.$refs.expandTablePro.toggleRowSelection(val, true);
+        //         }
+        //       });
+        //     });
+        //   });
       } else {
         this.zijinengageListData = [];
       }
@@ -10714,6 +10804,82 @@ export default {
                     }
                   });
                 break;
+                case "诚泰财险":
+                let CtApiImage = "";
+                CtApiImage =
+                  this.apiType == 2
+                    ? "pythonsubmitImage"
+                    : "chengtaisubmitImage";
+                await this.$api.letter[CtApiImage]({
+                  [this.apiType == 2 ? "subOrderNo" : "companyId"]:
+                    this.companyId,
+                }).then((res) => {
+                  if (res.code == "200") {
+                    var _this = this;
+                    let CtApiaudit = "";
+                    CtApiaudit =
+                    this.apiType == 2 ? "pythonaudit" : "chengtaiaudit";
+                    let engageList = [];
+                    this.zijinengageList.forEach((val) => {
+                      engageList.push({
+                        engageCode: val.clauseCode,
+                        engageDetail: val.clauses,
+                        engageTitle: val.clauseName,
+                        riskCode: val.riskCode,
+                      });
+                    });
+                    _this.$api.letter[CtApiaudit]({
+                      [this.apiType == 2 ? "subOrderNo" : "companyId"]:
+                        this.companyId,
+                      engageList,
+                    }).then((res) => {
+                      if (res.code == "200") {
+                        loading.close();
+                        _this.$message({
+                          message: "核保成功",
+                          type: "success",
+                        });
+                        this.QuotationHistory();
+                        _this.$api.letter
+                          .getByCompanyId({ companyId: this.companyId })
+                          .then((res) => {
+                            _this.orderstatus = res.data.orderstatus; //订单状态
+                            _this.underwritingdialogVisible = true;
+                            let indexid = this.totalCompanyList.findIndex(
+                              (item) =>
+                                item.namesimple == this.queryOrders.inscompany
+                            );
+                            this.totalCompanyList[indexid].orderstatus =
+                              res.data.orderstatus;
+                          });
+                      } else {
+                        loading.close();
+                        _this.$message({
+                          showClose: true,
+                          message:
+                            this.queryOrders.inscompany + "提核--:" + res.msg,
+                          type: "error",
+                          duration: 0,
+                        });
+                        _this.$api.letter
+                          .getByCompanyId({ companyId: this.companyId })
+                          .then((res) => {
+                            _this.orderstatus = res.data.orderstatus; //订单状态
+                          });
+                      }
+                    });
+                  } else {
+                    this.$message({
+                      message:
+                        this.queryOrders.inscompany + "影像--:" + res.msg,
+                      type: "error",
+                      duration: 7000,
+                    });
+                    loading.close();
+                  }
+                });
+                break;
+              
               case "华泰财险":
                 let HtApiImage = "";
                 HtApiImage =
@@ -10974,7 +11140,8 @@ export default {
               case "安盛天平":
               case "众安财险":
               case "中国人寿":
-              case "诚泰财险":
+              case "太平洋财险":
+              // case "诚泰财险":
               case "泰康财险":
                 let hengbangapi = "";
                 hengbangapi =
@@ -12435,6 +12602,7 @@ export default {
       this.zijintemplateSelection = "";
       this.zhongantemplateSelection = "";
       this.hengbangtemplateSelection = "";
+      this.taipingyangtemplateSelection = "";
       this.taipingtemplateSelection = "";
       this.insuranceHN = "";
       this.renshoutemplateSelection = "";
@@ -12449,6 +12617,7 @@ export default {
       };
       this.productId = ''
       this.hengbangaccidentalDrivingVo = {};
+      this.taipingyangaccidentalDrivingVo = {};
       this.huanongaccidentalDrivingVo = {};
       this.taipingaccidentalDrivingVo = {};
       this.zhongmeiaccidentalDrivingVo = {};

+ 75 - 13
src/views/Task/daikeComponents/KtOrder.vue

@@ -149,6 +149,7 @@
                   '渤海财险',
                   '泰康财险',
                   '华泰财险',
+                  '太平洋财险',
                 ].includes(item.inscompany)
                 " @click="refreshStatus(item)" class="red_color">更新订单</el-button>
               <el-button size="mini" type="text" v-if="item.orderstatus == '4' && item.inscompany == '华泰财险'"
@@ -156,7 +157,7 @@
               <el-button size="mini" type="text" v-if="(item.orderstatus == '1' ||
                 item.orderstatus == '2' ||
                 item.orderstatus == '4') &&
-                ['紫金财险'].includes(item.inscompany)
+                ['紫金财险', '诚泰财险'].includes(item.inscompany)
                 " @click="cancelorder(item)" class="red_color">撤单</el-button>
               <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(item)"
                 class="red_color">二维码</el-button>
@@ -181,6 +182,7 @@
                   '渤海财险',
                   '泰康财险',
                   '平安财险',
+                  '太平洋财险',
                 ].includes(item.inscompany)
                 " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
               <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"
@@ -465,7 +467,7 @@
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                 scope.row.orderstatus == '2' ||
                 scope.row.orderstatus == '4') &&
-                ['紫金财险'].includes(scope.row.inscompany)
+                ['紫金财险', '诚泰财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
               <el-button type="text" size="mini" style="color: #2d4d89"
                 v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
@@ -488,6 +490,7 @@
                   '渤海财险',
                   '泰康财险',
                   '平安财险',
+                  '太平洋财险',
                 ].includes(scope.row.inscompany)
                 " @click="querystatus(scope.row, 'history')">状态更新</el-button>
             </template>
@@ -1458,10 +1461,10 @@ export default {
         泰康财险: "auditStatusQuery",
         华农财险: "auditStatusQuery",
         恒邦财险: "auditStatusQuery",
+        太平洋财险: "auditStatusQuery",
         众安财险: "auditStatusQuery",
         中国人寿: "auditStatusQuery",
         安盛天平: "auditStatusQuery",
-        诚泰财险: "auditStatusQuery",
         紫金财险: "auditStatusQueryZijin",
         渤海财险: "orderStatusbohai",
       };
@@ -1550,6 +1553,30 @@ export default {
           }
         });
       }
+      
+      // 诚泰财险: "auditStatusQuery",
+      if (item.inscompany == "诚泰财险") {
+        let ZMApiType =
+          item.apiType == 2 ? "auditStatusQuery" : "orderStatuschengtai";
+        this.$api.letter[ZMApiType]({ companyId: item.id }).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,
+            });
+          }
+        });
+      }
+
       // 中煤财险: "orderStatuszhongmei",
       if (item.inscompany == "中煤财险") {
         let ZMApiType =
@@ -1685,7 +1712,29 @@ export default {
           }
         });
       }
+        // item.inscompany == "诚泰财险" ||
+        if (item.inscompany == "诚泰财险") {
+        // 中煤财险: "paymentEnquiry",
+        let CtApiType =
+          item.apiType == 2 ? "pychonverifyPayment" : "getOrderDetailchengtai";
 
+        this.$api.letter[CtApiType]({
+          [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
+        }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg ? res.msg : "已刷新状态",
+              type: "success",
+            });
+            this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
+            this.findPage();
+            this.querystatusLoaing = false;
+          } else {
+            this.querystatusLoaing = false;
+            this.$message({ message: res.msg, type: "error" });
+          }
+        });
+      }
       if (item.inscompany == "中煤财险") {
         // 中煤财险: "paymentEnquiry",
         let ZMApiType =
@@ -1710,8 +1759,8 @@ export default {
       }
 
       if (
-        item.inscompany == "诚泰财险" ||
         item.inscompany == "恒邦财险" ||
+        item.inscompany == "太平洋财险" ||
         item.inscompany == "众安财险" ||
         item.inscompany == "中国人寿" ||
         item.inscompany == "安盛天平" ||
@@ -1740,15 +1789,28 @@ export default {
       }
     },
     cancelorder(item) {
-      this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
-        if (res.code == 200) {
-          this.$message({
-            message: res.msg,
-            type: "success",
-          });
-          this.findPage();
-        }
-      });
+      if (item.inscompany == '紫金财险') {
+        this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.findPage();
+          }
+        });
+      } else if (item.inscompany == '诚泰财险') {
+        this.$api.letter.chengtaicancelorder({ companyId: item.id }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.findPage();
+          }
+        });
+      }
+      
     },
     //二维码
     carcode(item) {