Explorar el Código

华泰添加特约

lihongxiao hace 2 años
padre
commit
987a3b7394
Se han modificado 3 ficheros con 30 adiciones y 4 borrados
  1. 2 2
      config/dev.env.js
  2. 8 0
      src/http/moudules/letter.js
  3. 20 2
      src/views/Letter/Letter.vue

+ 2 - 2
config/dev.env.js

@@ -7,8 +7,8 @@ module.exports = merge(prodEnv, {
   ENV_CONFIG:'"dev"',
   // BASE_URL: '"http://39.98.239.48/web-api"',//测试服务器
   // BASE_URL:'"http://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
-  // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
-  BASE_URL: '"http:///192.168.0.253:8080/"',//田智
+  BASE_URL: '"http://192.168.0.115:8080/"' //凯森
+  // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
 })
 
 

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

@@ -560,6 +560,14 @@ export const zijinqueryClauseData = (data) => {
       data
   })
 }
+//华泰特约查询
+export const huataiqueryClauseData = (data) => {
+    return axios({
+        url: "/order/huaTaiApi/queryClauseData",
+        method: "post",
+        data
+    })
+  }
 //紫金撤单
 export const zijincancelorder = (data) => {
   return axios({

+ 20 - 2
src/views/Letter/Letter.vue

@@ -5487,6 +5487,16 @@ export default {
             this.zijinengageListData = res.data;
           });
       }
+      if(data.namesimple=='华泰财险'){
+        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
+          })
+            this.zijinengageListData = res.data;
+          });
+      }
       else{
         this.zijinengageListData = []
       }
@@ -5675,11 +5685,19 @@ export default {
                 .then(res => {
                   if (res.code == "200") {
                     var _this = this;
+                    let engageList=[]
+                    this.zijinengageList.forEach(val=>{
+                      engageList.push({
+                        engageCode:val.clauseCode,
+                        engageDetail:val.clauses,
+                        engageTitle:val.clauseName,
+                        riskCode:val.riskCode
+                      })
+                    })
                     _this.$api.letter
                       .huataiaudit({
                         companyId: this.companyId,
-                        jqappoint: "",
-                        syappoint: ""
+                        engageList
                       })
                       .then(res => {
                         if (res.code == "200") {