|
@@ -146,7 +146,8 @@ const defaultListQuery = {
|
|
|
withdrawEndTime: "",
|
|
|
status: "",
|
|
|
chargeOrderNo: "",
|
|
|
- adminUserId: "",
|
|
|
+ adminUserId: null,
|
|
|
+ recordId: null
|
|
|
};
|
|
|
export default {
|
|
|
name: "records",
|
|
@@ -159,22 +160,18 @@ export default {
|
|
|
updateLoading: false,
|
|
|
listQuery: Object.assign({}, defaultListQuery),
|
|
|
list: null,
|
|
|
+ financeList: [],
|
|
|
total: null,
|
|
|
listLoading: false,
|
|
|
forbiddenDialogVisible: false,
|
|
|
- options: [
|
|
|
- {
|
|
|
- value: 0,
|
|
|
- label: "未提现",
|
|
|
- },
|
|
|
- {
|
|
|
- value: 1,
|
|
|
- label: "待结算",
|
|
|
- },
|
|
|
- {
|
|
|
- value: 2,
|
|
|
- label: "已结算",
|
|
|
- },
|
|
|
+ options: [{
|
|
|
+ value: 1,
|
|
|
+ label: "待结算",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2,
|
|
|
+ label: "已结算",
|
|
|
+ },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -190,27 +187,28 @@ export default {
|
|
|
},
|
|
|
withdrawDate(val) {
|
|
|
if (val) {
|
|
|
- this.listQuery.settleStartTime = Date.parse(val[0]);
|
|
|
- this.listQuery.settleEndTime = Date.parse(val[1]);
|
|
|
+ this.listQuery.withdrawStartTime = Date.parse(val[0]);
|
|
|
+ this.listQuery.withdrawEndTime = Date.parse(val[1]);
|
|
|
} else {
|
|
|
- this.listQuery.settleStartTime = "";
|
|
|
- this.listQuery.settleEndTime = "";
|
|
|
+ this.listQuery.withdrawStartTime = "";
|
|
|
+ this.listQuery.withdrawEndTime = "";
|
|
|
}
|
|
|
},
|
|
|
colseDate(val) {
|
|
|
if (val) {
|
|
|
- this.listQuery.withdrawStartTime = Date.parse(val[0]);
|
|
|
- this.listQuery.withdrawEndTime = Date.parse(val[1]);
|
|
|
+ this.listQuery.settleStartTime = Date.parse(val[0]);
|
|
|
+ this.listQuery.settleEndTime = Date.parse(val[1]);
|
|
|
} else {
|
|
|
- this.listQuery.withdrawStartTime = "";
|
|
|
- this.listQuery.withdrawEndTime = "";
|
|
|
+ this.listQuery.settleStartTime = "";
|
|
|
+ this.listQuery.settleEndTime = "";
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
- if(this.$route){
|
|
|
+ if (this.$route) {
|
|
|
this.listQuery.adminUserId = this.$route.query.adminUserId
|
|
|
+ this.listQuery.recordId = this.$route.query.recordId
|
|
|
}
|
|
|
},
|
|
|
filters: {
|
|
@@ -225,23 +223,36 @@ export default {
|
|
|
methods: {
|
|
|
// 更新结算状态
|
|
|
financeStatus() {
|
|
|
- this.updateLoading = true
|
|
|
- updateStatus().then((res) => {
|
|
|
- this.updateLoading = false
|
|
|
- if (res.code === 200) {
|
|
|
- this.$message({
|
|
|
- message: "更新成功",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
- this.getList();
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: "error",
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ let query = JSON.parse(JSON.stringify(this.listQuery))
|
|
|
+ query.pageSize = this.total
|
|
|
+ query.page = 0
|
|
|
+ query.status = 1
|
|
|
+ recordsList(query).then((response) => {
|
|
|
+ this.financeList.push(...response.data.list);
|
|
|
+ let updateList = Object.values(this.financeList.reduce((acc, r) => {
|
|
|
+ acc[r.settleRecordId] = r
|
|
|
+ return acc
|
|
|
+ }, {}))
|
|
|
+ this.financeList = updateList.map(item => item.chargeOrderId)
|
|
|
+ this.updateLoading = true
|
|
|
+ updateStatus(this.financeList).then((res) => {
|
|
|
+ this.updateLoading = false
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$message({
|
|
|
+ message: "更新成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ });
|
|
|
},
|
|
|
+
|
|
|
// 导出
|
|
|
exportAllExcel() {
|
|
|
this.downloadLoading = true
|
|
@@ -286,6 +297,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
handleResetSearch() {
|
|
|
+ this.completeDate=''
|
|
|
+ this.withdrawDate=''
|
|
|
+ this.colseDate=''
|
|
|
this.listQuery = Object.assign({}, defaultListQuery);
|
|
|
},
|
|
|
handleSearchList() {
|