li.pengfei пре 2 година
родитељ
комит
c5ae6117fe
2 измењених фајлова са 94 додато и 3 уклоњено
  1. 17 0
      src/http/moudules/letter.js
  2. 77 3
      src/views/Letter/Orderlist.vue

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

@@ -292,6 +292,14 @@ export const ZhongmeiverifyPayment = (data) => {
         data
     })
 }
+//华泰电子保单
+export const HuataigetPolicyPrint = (data) => {
+  return axios({
+    url: "/order/huaTaiApi/getPolicyPrint",
+    method: "post",
+    data
+  })
+}
 //中煤电子保单
 export const ZhongmeigetPolicyPrint = (data) => {
     return axios({
@@ -606,6 +614,15 @@ export const orderStatushuatai = (data) => {
     data
   })
 }
+
+//华泰见费出单结果查询
+export const updateOrderInfoHuatai = (data) => {
+  return axios({
+    url: "/order/huaTaiApi/paymentEnquiry",
+    method: "post",
+    data
+  })
+}
 //国任缴费状态查询
 export const updateOrderInfoGuoren = (data) => {
     return axios({

+ 77 - 3
src/views/Letter/Orderlist.vue

@@ -101,9 +101,12 @@
                 <el-button size="mini" type="text"
                 v-if="item.orderstatus == '1' && item.inscompany=='中煤财险'"
                 @click="updateStatus(item)" style="color:#f56c6c">更新订单</el-button>
+               <el-button size="mini" type="text"
+               v-if="item.orderstatus == '1' && item.inscompany=='华泰财险'"
+               @click="updateStatusHuatai(item)" style="color:#f56c6c">更新订单</el-button>
               <el-button size="mini" type="text"
-                         v-if="item.orderstatus == '1' && item.inscompany=='华泰财险'"
-                         @click="refreshStatusHuatai(item)" style="color:#f56c6c">更新订单</el-button>
+               v-if="item.orderstatus == '2' && item.inscompany=='华泰财险'"
+               @click="updateOrderInfoHuatai(item)" style="color:#f56c6c">状态更新</el-button>
                 <el-button size="mini" type="text"
                 v-if="item.orderstatus == '2' && item.inscompany=='国任财险'"
                 @click="refreshStatusGuoren(item)" style="color:#f56c6c">状态更新</el-button>
@@ -1930,7 +1933,7 @@ export default {
       })
     },
     //华泰刷新核保状态
-    refreshStatusHuatai(item){
+    updateStatusHuatai(item){
       this.$api.letter.orderStatushuatai( {companyId:item.id} ).then(res => {
         if(res.code==200){
           this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
@@ -1954,6 +1957,31 @@ export default {
         }
       })
     },
+    //华泰更新订单状态
+    updateOrderInfoHuatai(item){
+      this.$api.letter.updateOrderInfoHuatai( {companyId:item.id} ).then(res => {
+        if(res.code==200){
+          this.$message({ message:res.msg?res.msg:'已刷新状态', type: "success" })
+          this.loading = true;
+          this.$api.letter.queryOrders(this.pageRequest).then((res) => {
+            if (res.code == "200") {
+              this.loading = false;
+              this.pageResult = res.data.content;
+              this.pageNum = res.data.pageNum;
+              this.totalSize = res.data.totalSize;
+              this.pageResult.forEach(val => {
+                this.$set(val, "expanded", false);
+              });
+            } else {
+              this.loading = false;
+            }
+          })
+        }
+        else{
+          this.$message({ message:res.msg, type: "error" })
+        }
+      })
+    },
     //中煤查询缴费状态
     updateStatus(item){
       this.$api.letter.orderStatuszhongmei( {companyId:item.id} ).then(res => {
@@ -2268,6 +2296,52 @@ export default {
                 });
               }
               break;
+            case "华泰财险":
+              if (this.orderInfo.jqpolicyno) {
+                this.$api.letter.HuataigetPolicyPrint({
+                  companyId: item.id,
+                  riskCode: "0507",
+                  type: '2',//2:保单
+                }).then(res => {
+                  if (res.data && res.data[0]
+                  ) {
+                    this.oldfileList.push({
+                      fileTitle: "交强电子保单",
+                      filename: this.orderInfo.jqpolicyno,
+                      fileurl: res.data[0],
+                    });
+                  }
+                })
+                this.$api.letter.HuataigetPolicyPrint({
+                  companyId: item.id,
+                  riskCode: "0507",
+                  type: '1',// 1:标志
+                }).then(res => {
+                  if (res.data && res.data[0]) {
+                    this.oldfileList.push({
+                      fileTitle: "交强电子标志",
+                      filename: this.orderInfo.jqpolicyno,
+                      fileurl: res.data[0],
+                    });
+                  }
+                })
+              }
+              if (this.orderInfo.sypolicyno) {
+                this.$api.letter.HuataigetPolicyPrint({
+                  companyId: item.id,
+                  riskCode: "0510",
+                  type: '2',//2:保单
+                }).then(res => {
+                  if (res.data && res.data[0]) {
+                    this.oldfileList.push({
+                      fileTitle: "商业电子保单",
+                      filename: this.orderInfo.sypolicyno,
+                      fileurl: res.data[0],
+                    });
+                  }
+                })
+              }
+              break;
             case "中煤财险":
               if (this.orderInfo.jqpolicyno) {
                 this.$api.letter.ZhongmeigetPolicyPrint({