peixh před 3 roky
rodič
revize
87b5a9345c
1 změnil soubory, kde provedl 16 přidání a 3 odebrání
  1. 16 3
      front-vue/src/views/service/credit/goFinance.vue

+ 16 - 3
front-vue/src/views/service/credit/goFinance.vue

@@ -1290,18 +1290,31 @@ export default {
                                   recvAccNm: "",
                                   tranAmt: self.needPay,
                                   businessId: self.zciId,
+                                  type: "00",
                                 };
                                 transfer(map)
                                   .then((response) => {
                                     loading.close();
-                                    self.msgSuccess("缴费成功");
                                     setTimeout(() => {
-                                      if (response.data.status == "AAAAAAA") {
-                                        updateChargeStatus(zfrId).then(
+                                      if (response.data.status == "1") {
+                                        self.msgSuccess("缴费成功");
+                                        updateChargeStatus(zfrId, "02").then(
                                           (res) => {
                                             self.getContractFile();
                                           }
                                         );
+                                      } else if (response.data.status == "0") {
+                                        self.message("正在缴费中,请稍后再试");
+                                        updateChargeStatus(zfrId, "01").then(
+                                          (res) => {}
+                                        );
+                                      } else if (response.data.status == "2") {
+                                        self.msgError(
+                                          "缴费失败,前去费用管理再次缴费"
+                                        );
+                                        updateChargeStatus(zfrId, "05").then(
+                                          (res) => {}
+                                        );
                                       }
                                     }, 1000);
                                   })