Explorar o código

渤海人工核保接口改爬虫

@dongkboy hai 3 meses
pai
achega
5f4605c102
Modificáronse 1 ficheiros con 21 adicións e 2 borrados
  1. 21 2
      src/views/Task/daikeComponents/KtOrder.vue

+ 21 - 2
src/views/Task/daikeComponents/KtOrder.vue

@@ -1579,7 +1579,6 @@ export default {
         人保财险: "auditStatusQuery",
         安盛天平: "auditStatusQuery",
         紫金财险: "auditStatusQueryZijin",
-        渤海财险: "orderStatusbohai",
         阳光财险: "yangGuangproposalStatusQuery",
         大地财险: "auditStatusQuery",
         申能财险: "auditStatusQuery",
@@ -1670,7 +1669,27 @@ export default {
           }
         });
       }
-
+      if (item.inscompany == "渤海财险") {
+        let BHApiType =
+          item.apiType == 2 ? "auditStatusQuery" : "orderStatusbohai";
+        this.$api.letter[BHApiType]({ 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,
+            });
+          }
+        });
+      }
       // 诚泰财险: "auditStatusQuery",
       if (item.inscompany == "诚泰财险") {
         let ZMApiType =