Prechádzať zdrojové kódy

Merge branch 'dev' of http://www.baoxianzhanggui.com:8090/sxzgd/vue-insagent-pc into dev

lihongxiao 2 rokov pred
rodič
commit
7666f60be9

+ 2 - 2
src/views/Task/daikeComponents/KtLetter.vue

@@ -6662,7 +6662,7 @@ export default {
                     ? "pythonsubmitImage"
                     : "insHuataisubmitImage";
                 await this.$api.letter[HtApiImage]({
-                    companyId: this.companyId
+                  [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
                   })
                   .then(res => {
                     if (res.code == "200") {
@@ -6679,7 +6679,7 @@ export default {
                         });
                       });
                       _this.$api.letter[HtApiaudit]({
-                          companyId: this.companyId,
+                        [this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
                           engageList
                         })
                         .then(res => {

+ 10 - 9
src/views/Task/daikeComponents/KtOrder.vue

@@ -937,7 +937,8 @@ export default {
           item.apiType == 2
             ? "pychonverifyPayment"
             : "updateOrderInfoHuatai";
-        this.$api.letter[HtApiType](item.id).then(res => {
+
+        this.$api.letter[HtApiType](item.apiType == 2 ? { subOrderNo: item.id } : item.id).then(res => {
           if (res.code == 200) {
             this.$message({
               message: res.msg ? res.msg : "已刷新状态",
@@ -1345,10 +1346,10 @@ export default {
                     : "HuataigetPolicyPrint";
                 if (this.orderInfo.jqpolicyno) {
                   this.$api.letter[HtApiType]({
-                      companyId: item.id,
-                      riskCode: "0507",
-                      type: "2" //2:保单
-                    })
+                    [this.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
+                    riskCode: "0507",
+                    type: "2" //2:保单
+                  })
                     .then(res => {
                       if (res.data) {
                         if (res.data.jqxPolicyUrl) {
@@ -1372,10 +1373,10 @@ export default {
                 }
                 if (this.orderInfo.sypolicyno) {
                   this.$api.letter[HtApiType]({
-                      companyId: item.id,
-                      riskCode: "0510",
-                      type: "2" //2:保单
-                    })
+                    [this.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
+                    riskCode: "0510",
+                    type: "2" //2:保单
+                  })
                     .then(res => {
                       if (res.data && res.data.syxPolicyUrl) {
                         businessList.push({