소스 검색

账户余额查询提现可用银行卡

yaoyao 2 년 전
부모
커밋
0cc40655a8
2개의 변경된 파일과 14개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 1
      src/http/moudules/dept.js
  2. 6 1
      src/views/FinancialManagement/AcountWithdrawal/AcountBalance.vue

+ 8 - 1
src/http/moudules/dept.js

@@ -229,7 +229,14 @@ export const unbind = (data) => {
         data
     })
 }
-
+// 可用银行卡
+export const queryUsableCard = (data) => {
+    return axios({
+        url: '/userBank/queryUsableCard',
+        method: 'post',
+        data
+    })
+}
 // 重新绑定
 export const rebind = (data) => {
     return axios({

+ 6 - 1
src/views/FinancialManagement/AcountWithdrawal/AcountBalance.vue

@@ -355,7 +355,12 @@ export default {
     withdrawButton({ index, row }) {
       this.sysUserAccountCardList = [];
       this.withdrawForm.userId = row.userId;
-      this.sysUserAccountCardList = row.sysUserAccountCardList;
+      // this.sysUserAccountCardList = row.sysUserAccountCardList;
+      this.$api.dept.queryUsableCard({
+        userId: row.userId
+      }).then((res) => {
+        this.sysUserAccountCardList = res.data;
+      })
       this.dialogVisible = !this.dialogVisible;
     },
     // 绑卡