+
@@ -255,6 +278,7 @@ export default {
components: { withdrawal },
data() {
return {
+ value2: [],
value1: [],
userInfo: {},
tableData: [],
@@ -263,18 +287,24 @@ export default {
query: {
pageNumber: 1,
pageSize: 10,
- cashOutStatus: "",
},
formInline: {
cashOutStatus: "",
startCashOutTime: "",
endCashOutTime: "",
},
+ form: {
+ pageNumber: 1,
+ pageSize: 10,
+ },
+ formTimeData: {},
total: 0,
+ totalTwo: 0,
};
},
created() {
this.init();
+ this.getWithdrawalRecord();
},
methods: {
init() {
@@ -282,28 +312,48 @@ export default {
this.$api.wallet.myWallet().then((res) => {
this.userInfo = res.data.data;
});
- this.$api.wallet.WithdrawalRecord(this.query).then((res) => {
- this.tableData = res.data.data.data;
- });
- this.$api.wallet.totalAmount({ amountChangeType: "" }).then((res) => {
- this.TotalData = res.data.data;
- });
- this.$api.wallet.getBankInfo().then((res) => {
- console.log(res, "bull");
- this.billList = res.data.data.data;
- // this.total = res.data.data;
- });
+ this.$api.wallet
+ .totalAmount({ amountChangeType: "", ...this.formTimeData })
+ .then((res) => {
+ this.TotalData = res.data.data;
+ });
+ this.$api.wallet
+ .getBankInfo({ ...this.form, ...this.formTimeData })
+ .then((res) => {
+ console.log(res, "bull");
+ this.billList = res.data.data.data;
+ this.totalTwo = Number(res.data.data.total);
+ });
+ },
+ getWithdrawalRecord() {
+ this.$api.wallet
+ .WithdrawalRecord({ ...this.query, ...this.formInline })
+ .then((res) => {
+ this.tableData = res.data.data.data;
+ this.total = Number(res.data.data.total);
+ });
},
handleSizeChange(val) {
this.query.pageSize = val;
- this.init();
+ this.getWithdrawalRecord();
},
handleCurrentChange(val) {
this.query.pageNumber = val;
+ this.getWithdrawalRecord();
+ },
+ handleSizeChangeTwo(val) {
+ this.form.pageSize = val;
this.init();
},
- queryList() {},
- Reset() {},
+ handleCurrentChangeTwo(val) {
+ this.form.pageNumber = val;
+ this.init();
+ },
+ Reset() {
+ this.value1 = [];
+ this.formInline = {};
+ this.getWithdrawalRecord();
+ },
addWithdrawal() {
this.$api.mer_admin
.bankCardPage({
@@ -340,15 +390,24 @@ export default {
return "提现成功";
}
},
- changeTime(row) {
- if (row) {
- this.formInline.startCashOutTime = row[0];
- this.formInline.endCashOutTime = row[1];
+ changeTime(e) {
+ if (e) {
+ this.formInline.startCashOutTime = e[0];
+ this.formInline.endCashOutTime = e[1];
} else {
this.formInline.startCashOutTime = "";
this.formInline.endCashOutTime = "";
}
},
+ changeTimeTwo(e) {
+ if (e) {
+ this.formTimeData.startBillOrderTime = e[0];
+ this.formTimeData.endBillOrderTime = e[1];
+ } else {
+ this.formTimeData.startBillOrderTime = "";
+ this.formTimeData.endBillOrderTime = "";
+ }
+ },
getBillStatus(row) {
if (row == 1) {
return "待同步";