@dongkboy 2 лет назад
Родитель
Сommit
068e477f70
1 измененных файлов с 19 добавлено и 20 удалено
  1. 19 20
      src/views/FinancialManagement/AcountWithdrawal/AcountBalance.vue

+ 19 - 20
src/views/FinancialManagement/AcountWithdrawal/AcountBalance.vue

@@ -368,26 +368,25 @@ export default {
     },
     //体现操作
     handleConfirm() {
-      console.log(this.withdrawForm)
-      // this.dialogVisible = false;
-      // this.$api.dept.withdraw(this.withdrawForm).then((res) => {
-      //   if (res.code == 200) {
-      //     this.queryBalance();
-      //     this.$message({
-      //       message:'success',
-      //       message: "提现成功",
-      //     });
-      //   } else {
-      //     this.$message({
-      //       message: res.msg,
-      //       type: 'error'
-      //     });
-      //   }
-      //   (this.userId = ""),
-      //     (this.selectedValue = ""),
-      //     (this.amount = ""),
-      //     (this.fromBankCardId = "");
-      // });
+      this.dialogVisible = false;
+      this.$api.dept.withdraw(this.withdrawForm).then((res) => {
+        if (res.code == 200) {
+          this.queryBalance();
+          this.$message({
+            message:'success',
+            message: "提现成功",
+          });
+        } else {
+          this.$message({
+            message: res.msg,
+            type: 'error'
+          });
+        }
+        (this.userId = ""),
+          (this.selectedValue = ""),
+          (this.amount = ""),
+          (this.fromBankCardId = "");
+      });
     },
     //提现条件
     withdrawButton({ index, row }) {