浏览代码

国任保险核保、影像接口

lihongxiao 3 年之前
父节点
当前提交
bfc30deff0
共有 3 个文件被更改,包括 66 次插入0 次删除
  1. 3 0
      config/dev.env.js
  2. 16 0
      src/http/moudules/letter.js
  3. 47 0
      src/views/Letter/Letter.vue

+ 3 - 0
config/dev.env.js

@@ -10,3 +10,6 @@ module.exports = merge(prodEnv, {
   BASE_URL: '"http://192.168.0.111:8080/"' //大哥
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
 })
+
+
+

+ 16 - 0
src/http/moudules/letter.js

@@ -139,6 +139,14 @@ export const insyongchengsubmitImage = (data) => {
         data
     })
 }
+//国任提交影像
+export const insguorensubmitImage = (data) => {
+    return axios({
+        url: "/api/guoRen/uploadImage",
+        method: "post",
+        data
+    })
+}
 //恒邦提交影像
 export const hengbangsubmitImage = (data) => {
     return axios({
@@ -211,6 +219,14 @@ export const yongchengaudit = (data) => {
         data
     })
 }
+//国任核保
+export const gunrenaudit = (data) => {
+    return axios({
+        url: '/api/guoRen/audit',
+        method: 'post',
+        data
+    })
+}
 //安盛核保
 export const anshengaudit = (data) => {
     return axios({

+ 47 - 0
src/views/Letter/Letter.vue

@@ -3944,6 +3944,53 @@ export default {
             case "恒邦财险":
             case "安盛天平":
             case "众安财险":
+            case "国任财险":
+              await this.$api.letter
+                .insguorensubmitImage({
+                  companyId: this.companyId
+                })
+                .then(res => {
+                  if (res.code == "200") {
+                    var _this = this;
+                    _this.$api.letter
+                      .gunrenaudit({
+                        companyId: this.companyId
+                      })
+                      .then(res => {
+                        if (res.code == "200") {
+                          loading.close();
+                          _this.cqryCdeJq = "";
+                          _this.cqryCdeSy = "";
+                          _this.renewalCodeJq = "";
+                          _this.renewalCodeSy = "";
+                          this.$message({
+                            message: "核保成功",
+                            type: "success"
+                          });
+                          _this.$api.letter.getByCompanyId({ companyId: this.companyId }).then(res => {
+                            _this.orderstatus = res.data.orderstatus; //订单状态
+                            _this.underwritingdialogVisible = true;
+                          });
+                        } else {
+                          loading.close();
+                          this.$message({
+                            showClose: true,
+                            message: res.msg,
+                            type: "error",
+                            duration: 0
+                          });
+                        }
+                      });
+                  } else {
+                    loading.close();
+                    this.$message({
+                      message: res.msg,
+                      type: "error",
+                      duration: 7000
+                    });
+                  }
+                });
+              break;
             case "中国人寿":
               let hengbangapi = "";
               hengbangapi = this.apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"