@dongkboy 1 год назад
Родитель
Сommit
85344f1f67

+ 46 - 147
src/views/Sys/Inscommanytemplate.vue

@@ -1,13 +1,7 @@
 <template>
 <template>
   <div class="page">
   <div class="page">
-    <el-form
-      :inline="true"
-      :model="formInline"
-      class="demo-form-inline"
-      size="small"
-      label-width="130px"
-      style="text-align: center"
-    >
+    <el-form :inline="true" :model="formInline" class="demo-form-inline" size="small" label-width="130px"
+      style="text-align: center">
       <el-row style="padding: 20px">
       <el-row style="padding: 20px">
         <el-col :span="6">
         <el-col :span="6">
           <el-form-item label="请求类型:">
           <el-form-item label="请求类型:">
@@ -19,117 +13,51 @@
         </el-col>
         </el-col>
         <el-col :span="6">
         <el-col :span="6">
           <el-form-item label="保险公司:">
           <el-form-item label="保险公司:">
-            <el-select
-              class="widths1"
-              filterable
-              v-model="formInline.insCompanyId"
-              @change="companyChange"
-              clearable
-            >
-              <el-option
-                v-for="(item, index) in companyselect"
-                :key="index.id"
-                :label="item.namesimple"
-                :value="item.id"
-              ></el-option>
+            <el-select class="widths1" filterable v-model="formInline.insCompanyId" @change="companyChange" clearable>
+              <el-option v-for="(item, index) in companyselect" :key="index.id" :label="item.namesimple"
+                :value="item.id"></el-option>
             </el-select>
             </el-select>
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
         <el-col :span="6">
         <el-col :span="6">
-          <el-button type="primary" size="small" @click="querySearch"
-            >查询</el-button
-          >
+          <el-button type="primary" size="small" @click="querySearch">查询</el-button>
           <el-button type="danger" size="small" @click="add()">新增</el-button>
           <el-button type="danger" size="small" @click="add()">新增</el-button>
         </el-col>
         </el-col>
       </el-row>
       </el-row>
     </el-form>
     </el-form>
 
 
-    <el-table
-      size="small"
-      :data="pageResult"
-      height="690"
-      border
-      style="width: 100%"
-      v-loading="loading"
-      highlight-current-row
-      stripe
-      :header-cell-style="{
+    <el-table size="small" :data="pageResult" height="690" border style="width: 100%" v-loading="loading"
+      highlight-current-row stripe :header-cell-style="{
         background: '#F2F7FC',
         background: '#F2F7FC',
         fontWeight: '700',
         fontWeight: '700',
         color: '#606266',
         color: '#606266',
-      }"
-    >
-      <el-table-column
-        prop="id"
-        label="ID"
-        width="200"
-        align="center"
-      ></el-table-column>
-      <el-table-column
-        prop="insCompanyId"
-        label="保险公司ID"
-        width="100"
-        align="center"
-      ></el-table-column>
-      <el-table-column
-        prop="insCompanyName"
-        label="保险公司简称"
-        width="100"
-        align="center"
-      ></el-table-column>
-      <el-table-column
-        prop="fields"
-        label="配置参数"
-        align="center"
-        :formatter="configureformatter"
-      ></el-table-column>
+      }">
+      <el-table-column prop="id" label="ID" width="200" align="center"></el-table-column>
+      <el-table-column prop="insCompanyId" label="保险公司ID" width="100" align="center"></el-table-column>
+      <el-table-column prop="insCompanyName" label="保险公司简称" width="100" align="center"></el-table-column>
+      <el-table-column prop="fields" label="配置参数" align="center" :formatter="configureformatter"></el-table-column>
       <el-table-column label="操作" align="center" width="200" fixed="right">
       <el-table-column label="操作" align="center" width="200" fixed="right">
         <template slot-scope="scope">
         <template slot-scope="scope">
-          <el-button
-            size="mini"
-            type="text"
-            @click="CloseEdit(scope.$index, scope.row)"
-            >编辑</el-button
-          >
-          <el-button
-            size="mini"
-            type="text"
-            style="color: #f78989"
-            @click="empowerBtn(scope.$index, scope.row)"
-            >删除</el-button
-          >
+          <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button>
+          <el-button size="mini" type="text" style="color: #f78989"
+            @click="empowerBtn(scope.$index, scope.row)">删除</el-button>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
     </el-table>
     </el-table>
 
 
     <!-- 分页功能 -->
     <!-- 分页功能 -->
     <div class="block">
     <div class="block">
-      <el-pagination
-        @size-change="applyhandleSizeChange"
-        @current-change="applyhandleCurrentChange"
-        :current-page="pageNum"
-        :page-size="pageSize"
-        :page-sizes="[10, 20, 50, 100]"
-        layout="total, sizes, prev, pager, next, jumper"
-        :total="totalSize"
-      ></el-pagination>
+      <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
+        :current-page="pageNum" :page-size="pageSize" :page-sizes="[10, 20, 50, 100]"
+        layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
     </div>
     </div>
     <el-dialog :title="dilogtitle" :visible.sync="dialogVisible" width="1000px">
     <el-dialog :title="dilogtitle" :visible.sync="dialogVisible" width="1000px">
-      <el-form
-        class="demo-ruleForm wrap-scrollbar scroll-style"
-        :model="attributionform"
-        ref="attributionform"
-        label-width="130px"
-        size="small"
-      >
+      <el-form class="demo-ruleForm wrap-scrollbar scroll-style" :model="attributionform" ref="attributionform"
+        label-width="130px" size="small">
         <el-row>
         <el-row>
           <el-col :span="12">
           <el-col :span="12">
             <el-form-item label="请求类型:">
             <el-form-item label="请求类型:">
-              <el-select
-                class="widths1"
-                v-model="attributionform.apiType"
-                @change="apiChange"
-              >
+              <el-select class="widths1" v-model="attributionform.apiType" @change="apiChange">
                 <el-option label="API" :value="1"></el-option>
                 <el-option label="API" :value="1"></el-option>
                 <el-option label="python" :value="2"></el-option>
                 <el-option label="python" :value="2"></el-option>
               </el-select>
               </el-select>
@@ -137,18 +65,9 @@
           </el-col>
           </el-col>
           <el-col :span="12">
           <el-col :span="12">
             <el-form-item label="保险公司:">
             <el-form-item label="保险公司:">
-              <el-select
-                class="widths1"
-                filterable
-                v-model="attributionform.insCompanyId"
-                @change="companyChange"
-              >
-                <el-option
-                  v-for="(item, index) in companyselect"
-                  :key="index.id"
-                  :label="item.namesimple"
-                  :value="item.id"
-                ></el-option>
+              <el-select class="widths1" filterable v-model="attributionform.insCompanyId" @change="companyChange">
+                <el-option v-for="(item, index) in companyselect" :key="index.id" :label="item.namesimple"
+                  :value="item.id"></el-option>
               </el-select>
               </el-select>
             </el-form-item>
             </el-form-item>
           </el-col>
           </el-col>
@@ -158,16 +77,9 @@
                 <h4>URL配置</h4>
                 <h4>URL配置</h4>
               </div>
               </div>
             </el-col>
             </el-col>
-            <el-col
-              :span="12"
-              v-for="(apiitem, apiindex) in attributionform.api"
-              :key="apiindex"
-            >
+            <el-col :span="12" v-for="(apiitem, apiindex) in attributionform.api" :key="apiindex">
               <el-form-item :label="apiitem.apiName + ':'">
               <el-form-item :label="apiitem.apiName + ':'">
-                <el-input
-                  v-model="apiitem.url"
-                  placeholder="请输入指定链接"
-                ></el-input>
+                <el-input v-model="apiitem.url" placeholder="请输入指定链接"></el-input>
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
           </div>
           </div>
@@ -176,24 +88,13 @@
               <h4>配置参数</h4>
               <h4>配置参数</h4>
             </div>
             </div>
           </el-col>
           </el-col>
-          <el-col
-            v-for="(configureitem, configureindex) in attributionform.fields"
-            :key="configureindex"
-          >
+          <el-col v-for="(configureitem, configureindex) in attributionform.fields" :key="configureindex">
             <el-col :span="10">
             <el-col :span="10">
               <el-form-item label="字段名:">
               <el-form-item label="字段名:">
-                <el-input
-                  v-model="configureitem.field"
-                  class="widths1"
-                  placeholder="请输入字段名"
-                ></el-input>
+                <el-input v-model="configureitem.field" class="widths1" placeholder="请输入字段名"></el-input>
               </el-form-item>
               </el-form-item>
               <el-form-item label="标签:">
               <el-form-item label="标签:">
-                <el-input
-                  v-model="configureitem.label"
-                  class="widths1"
-                  placeholder="标签名"
-                ></el-input>
+                <el-input v-model="configureitem.label" class="widths1" placeholder="标签名"></el-input>
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
             <el-col :span="10">
             <el-col :span="10">
@@ -204,19 +105,12 @@
                 </el-radio-group>
                 </el-radio-group>
               </el-form-item>
               </el-form-item>
               <el-form-item label="是否可修改:">
               <el-form-item label="是否可修改:">
-                <el-switch
-                  v-model="configureitem.isEdit"
-                  @change="(event) => isEditchange(event, configureindex)"
-                  class="widths1"
-                ></el-switch>
+                <el-switch v-model="configureitem.isEdit" @change="(event) => isEditchange(event, configureindex)"
+                  class="widths1"></el-switch>
               </el-form-item>
               </el-form-item>
             </el-col>
             </el-col>
             <el-col :span="4">
             <el-col :span="4">
-              <el-button
-                @click.prevent="removeDomain(configureitem)"
-                size="small"
-                >删除</el-button
-              >
+              <el-button @click.prevent="removeDomain(configureitem)" size="small">删除</el-button>
             </el-col>
             </el-col>
           </el-col>
           </el-col>
         </el-row>
         </el-row>
@@ -224,12 +118,7 @@
       <span slot="footer" class="dialog-footer">
       <span slot="footer" class="dialog-footer">
         <el-button size="small" @click="configuration">新增配置</el-button>
         <el-button size="small" @click="configuration">新增配置</el-button>
         <el-button size="small" @click="dialogVisible = false">取 消</el-button>
         <el-button size="small" @click="dialogVisible = false">取 消</el-button>
-        <el-button
-          size="small"
-          type="primary"
-          @click="submitForm('attributionform')"
-          >提 交</el-button
-        >
+        <el-button size="small" type="primary" @click="submitForm('attributionform')">提 交</el-button>
       </span>
       </span>
     </el-dialog>
     </el-dialog>
   </div>
   </div>
@@ -317,6 +206,16 @@ export default {
           apiType: 11,
           apiType: 11,
           url: "",
           url: "",
         },
         },
+        {
+          apiName: "客户信息确认验证码配置",
+          apiType: 12,
+          url: "",
+        },
+        {
+          apiName: "客户信息校验验证码配置",
+          apiType: 13,
+          url: "",
+        },
       ],
       ],
       pageRequest: {
       pageRequest: {
         pageNum: 1,
         pageNum: 1,
@@ -411,7 +310,7 @@ export default {
       this.attributionform.fields[id].isEdit = val;
       this.attributionform.fields[id].isEdit = val;
     },
     },
     //选择保险公司获取归属模板
     //选择保险公司获取归属模板
-    companyChange(e) {},
+    companyChange(e) { },
     apiChange(e) {
     apiChange(e) {
       e == 2 ? (this.attributionform["api"] = this.pythonApi) : "";
       e == 2 ? (this.attributionform["api"] = this.pythonApi) : "";
     },
     },
@@ -493,7 +392,7 @@ export default {
   },
   },
 };
 };
 </script>
 </script>
-<style scoped >
+<style scoped>
 .widths1 {
 .widths1 {
   width: 250px;
   width: 250px;
 }
 }

+ 17 - 10
src/views/Task/daikeComponents/KtLetter1.vue

@@ -9907,11 +9907,12 @@ export default {
     yongan(num, id) {
     yongan(num, id) {
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let params = {
       let params = {
+        accidentalDrivingVo:{},
         orderNo: this.orderno,
         orderNo: this.orderno,
         companyId: id,
         companyId: id,
         agreementId: this.totalCompanyList[num].agreementId,
         agreementId: this.totalCompanyList[num].agreementId,
-        kindList: this.totalCompanyList[num].kindList,
-        riskList: this.riskList,
+        kinds: this.totalCompanyList[num].kindList,
+        risks: this.riskList,
         productId: this.productId
         productId: this.productId
       };
       };
       this.$api.letter.yonganquote(params).then(res => {
       this.$api.letter.yonganquote(params).then(res => {
@@ -11559,14 +11560,14 @@ export default {
                     ? "pythonsubmitImage"
                     ? "pythonsubmitImage"
                     : "insyongansubmitImage";
                     : "insyongansubmitImage";
                 await this.$api.letter[api]({
                 await this.$api.letter[api]({
-                  companyId: this.companyId
+                  [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                 }).then(res => {
                 }).then(res => {
                   if (res.code == "200") {
                   if (res.code == "200") {
                     var _this = this;
                     var _this = this;
                     let api1 = "";
                     let api1 = "";
                     api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
                     api1 = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
                     this.$api.letter[api1]({
                     this.$api.letter[api1]({
-                      companyId: this.companyId
+                      [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                     }).then(res => {
                     }).then(res => {
                       var _this = this;
                       var _this = this;
                       if (res.code == "200") {
                       if (res.code == "200") {
@@ -11838,19 +11839,25 @@ export default {
                 });
                 });
                 break;
                 break;
               case "紫金财险":
               case "紫金财险":
-                await this.$api.letter
-                  .zijinsubmitImage({
-                    companyId: this.companyId
+              let zjApiImage = "";
+              zjApiImage =
+                  this.apiType == 2
+                    ? "pythonsubmitImage"
+                    : "zijinsubmitImage";
+                await this.$api.letter[zjApiImage]({
+                  [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                   })
                   })
                   .then(res => {
                   .then(res => {
                     if (res.code == "200") {
                     if (res.code == "200") {
                       var _this = this;
                       var _this = this;
+                      let zjApiaudit = "";
+                      zjApiaudit =
+                      this.apiType == 2 ? "pythonaudit" : "zijinaudit";
                       _this.$api.letter
                       _this.$api.letter
-                        .zijinaudit({
-                          companyId: this.companyId,
+                        [zjApiaudit]({
+                          [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
                           engageList: this.zijinengageList
                           engageList: this.zijinengageList
                         })
                         })
-
                         .then(res => {
                         .then(res => {
                           if (res.code == "200") {
                           if (res.code == "200") {
                             loading.close();
                             loading.close();

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

@@ -1675,6 +1675,27 @@ export default {
           }
           }
         });
         });
       }
       }
+      if (item.inscompany == "紫金财险") {
+        let ZJApiType =
+          item.apiType == 2 ? "auditStatusQuery" : "auditStatusQueryZijin";
+        this.$api.letter[ZJApiType]({ 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,
+            });
+          }
+        });
+      }
     },
     },
     //华泰刷新核保状态
     //华泰刷新核保状态
     updateStatusHuatai(item) {
     updateStatusHuatai(item) {
@@ -1834,7 +1855,28 @@ export default {
           }
           }
         });
         });
       }
       }
+      if (item.inscompany == "紫金财险") {
+        // 中煤财险: "paymentEnquiry",
+        let ZJApiType =
+          item.apiType == 2 ? "pychonverifyPayment" : "getOrderDetail";
 
 
+        this.$api.letter[ZJApiType]({
+          [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 (
       if (
         item.inscompany == "恒邦财险" ||
         item.inscompany == "恒邦财险" ||
         item.inscompany == "太平洋财险" ||
         item.inscompany == "太平洋财险" ||