Эх сурвалжийг харах

渤海核保、影像接口加爬虫

@dongkboy 3 сар өмнө
parent
commit
462d1cabd2

+ 8 - 6
src/views/Task/daikeComponents/KtLetter1.vue

@@ -12440,16 +12440,18 @@ export default {
                 });
                 break;
               case "渤海财险":
-                await this.$api.letter
-                  .insbohaisubmitImage({
-                    companyId: this.companyId
+              let BHApiImage = "";
+                BHApiImage =
+                  this.apiType == 2 ? "pythonsubmitImage" : "insbohaisubmitImage";
+                await this.$api.letter[BHApiImage]({
+                  [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                   })
                   .then(res => {
                     if (res.code == "200") {
                       var _this = this;
-                      _this.$api.letter
-                        .bohaiaudit({
-                          companyId: this.companyId
+                        let auditType = this.apiType == 2 ? 'pythonaudit' : 'bohaiaudit'
+                      _this.$api.letter[auditType]({
+                          [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                         })
                         .then(res => {
                           if (res.code == "200") {