|
|
@@ -1,315 +1,397 @@
|
|
|
<template>
|
|
|
- <div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ size="small"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
+ <el-form-item label="手机号" prop="cPhone">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.cPhone"
|
|
|
+ placeholder="请输入手机号"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="姓名" prop="cName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.cName"
|
|
|
+ placeholder="请输入姓名"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-search"
|
|
|
+ size="mini"
|
|
|
+ @click="handleQuery"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
+ >重置</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table
|
|
|
+ v-loading="loading"
|
|
|
+ :data="recordList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ >
|
|
|
+ <!-- <el-table-column type="selection" width="55" align="center" /> -->
|
|
|
+ <!-- <el-table-column label="${comment}" align="center" prop="cId" /> -->
|
|
|
+ <el-table-column label="提现单号" align="center" prop="cashNo" />
|
|
|
+ <el-table-column label="提现金额" align="center" prop="dPrice" />
|
|
|
+ <el-table-column label="开户行" align="center" prop="openingBank" />
|
|
|
+ <el-table-column label="银行账户" align="center" prop="bankAccount" />
|
|
|
+ <el-table-column label="手机号" align="center" prop="cPhone" />
|
|
|
+ <el-table-column label="姓名" align="center" prop="cName" />
|
|
|
+ <!-- <el-table-column label="提现图片" align="center" prop="cImage" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <image-preview :src="scope.row.cImage" :width="50" :height="50"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ label="是否审核"
|
|
|
+ align="center"
|
|
|
+ prop="nStatus"
|
|
|
+ width="100"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{
|
|
|
+ scope.row.nStatus === 1
|
|
|
+ ? "审核通过"
|
|
|
+ : scope.row.nStatus === 2
|
|
|
+ ? "驳回"
|
|
|
+ : "审核中"
|
|
|
+ }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="创建时间"
|
|
|
+ align="center"
|
|
|
+ prop="dtCreateTime"
|
|
|
+ width="180"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ parseTime(scope.row.dtCreateTime, "{y}-{m}-{d}") }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ :disabled="scope.row.nStatus === 1 || scope.row.nStatus === 2"
|
|
|
+ @click="auditIn(scope.row)"
|
|
|
+ >审核</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ :disabled="scope.row.nStatus === 1 || scope.row.nStatus === 2"
|
|
|
+ @click="turn(scope.row)"
|
|
|
+ >驳回</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <el-pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ background
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :current-page="queryParams.current"
|
|
|
+ :page-size="queryParams.size"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="total"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
+ <!-- 添加或修改提现对话框 -->
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-form-item label="提现用户" prop="cOpenId">
|
|
|
+ <el-input v-model="form.cOpenId" placeholder="请输入提现用户" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="提现金额" prop="dPrice">
|
|
|
+ <el-input v-model="form.dPrice" placeholder="请输入提现金额" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="提现时间" prop="cTime">
|
|
|
+ <el-input v-model="form.cTime" placeholder="请输入提现时间" />
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="手机号" prop="cPhone">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.cPhone"
|
|
|
- placeholder="请输入手机号"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="form.cPhone" placeholder="请输入手机号" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="姓名" prop="cName">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.cName"
|
|
|
- placeholder="请输入姓名"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
- />
|
|
|
+ <el-input v-model="form.cName" placeholder="请输入姓名" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
+ <el-form-item label="提现图片" prop="cImage">
|
|
|
+ <image-upload v-model="form.cImage" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="创建时间" prop="dtCreateTime">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ v-model="form.dtCreateTime"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ placeholder="请选择创建时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table v-loading="loading" :data="recordList" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center" />
|
|
|
- <!-- <el-table-column label="${comment}" align="center" prop="cId" /> -->
|
|
|
- <el-table-column label="提现单号" align="center" prop="cashNo" />
|
|
|
- <el-table-column label="提现金额" align="center" prop="dPrice" />
|
|
|
- <el-table-column label="开户行" align="center" prop="openingBank" />
|
|
|
- <el-table-column label="银行账户" align="center" prop="bankAccount" />
|
|
|
- <el-table-column label="手机号" align="center" prop="cPhone" />
|
|
|
- <el-table-column label="姓名" align="center" prop="cName" />
|
|
|
- <!-- <el-table-column label="提现图片" align="center" prop="cImage" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <image-preview :src="scope.row.cImage" :width="50" :height="50"/>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
-
|
|
|
- <el-table-column label="是否审核" align="center" prop="nStatus" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ scope.row.nStatus ===1?'审核通过' : scope.row.nStatus ===2?'驳回':'审核中'}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="创建时间" align="center" prop="dtCreateTime" width="180">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.dtCreateTime, '{y}-{m}-{d}') }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- :disabled="scope.row.nStatus ===1 || scope.row.nStatus ===2"
|
|
|
- @click="auditIn(scope.row)"
|
|
|
- >审核</el-button>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- :disabled="scope.row.nStatus ===1 || scope.row.nStatus ===2"
|
|
|
- @click="turn(scope.row)"
|
|
|
- >驳回</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
-
|
|
|
- <el-pagination
|
|
|
- v-show="total>0"
|
|
|
- background
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="queryParams.current"
|
|
|
- :page-size="queryParams.size"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
- <!-- 添加或修改提现对话框 -->
|
|
|
- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="提现用户" prop="cOpenId">
|
|
|
- <el-input v-model="form.cOpenId" placeholder="请输入提现用户" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="提现金额" prop="dPrice">
|
|
|
- <el-input v-model="form.dPrice" placeholder="请输入提现金额" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="提现时间" prop="cTime">
|
|
|
- <el-input v-model="form.cTime" placeholder="请输入提现时间" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="手机号" prop="cPhone">
|
|
|
- <el-input v-model="form.cPhone" placeholder="请输入手机号" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="姓名" prop="cName">
|
|
|
- <el-input v-model="form.cName" placeholder="请输入姓名" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="提现图片" prop="cImage">
|
|
|
- <image-upload v-model="form.cImage"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="创建时间" prop="dtCreateTime">
|
|
|
- <el-date-picker clearable
|
|
|
- v-model="form.dtCreateTime"
|
|
|
- type="date"
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
- placeholder="请选择创建时间">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
|
|
|
<script>
|
|
|
- import { listRecord, getRecord, delRecord, addRecord, updateRecord,auditRecord } from "@/api/system/record";
|
|
|
-
|
|
|
- export default {
|
|
|
- name: "Record",
|
|
|
- data() {
|
|
|
- return {
|
|
|
- // 遮罩层
|
|
|
- loading: true,
|
|
|
- // 选中数组
|
|
|
- ids: [],
|
|
|
- // 非单个禁用
|
|
|
- single: true,
|
|
|
- // 非多个禁用
|
|
|
- multiple: true,
|
|
|
- // 显示搜索条件
|
|
|
- showSearch: true,
|
|
|
- // 总条数
|
|
|
- total: 0,
|
|
|
- // 提现表格数据
|
|
|
- recordList: [],
|
|
|
- // 弹出层标题
|
|
|
- title: "",
|
|
|
- // 是否显示弹出层
|
|
|
- open: false,
|
|
|
- // 查询参数
|
|
|
- queryParams: {
|
|
|
- current: 1,
|
|
|
- size: 10,
|
|
|
- cOpenId: null,
|
|
|
- dPrice: null,
|
|
|
- cTime: null,
|
|
|
- cPhone: '',
|
|
|
- cName: null,
|
|
|
- cImage: null,
|
|
|
- nStatus: null,
|
|
|
- dtCreateTime: null
|
|
|
- },
|
|
|
- // 表单参数
|
|
|
- form: {},
|
|
|
- // 表单校验
|
|
|
- rules: {
|
|
|
- }
|
|
|
- };
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- methods: {
|
|
|
- auditIn(e){
|
|
|
- console.log(e.cId,"wwwwwwwwww")
|
|
|
- var ids= {
|
|
|
- cId:e.cId,
|
|
|
- nStatus:1
|
|
|
- }
|
|
|
- auditRecord(ids).then(res =>{
|
|
|
- // console.log(res.data,"eeeeeeeeeeeeeeeeeeee")
|
|
|
- if(res.code == 200){
|
|
|
- this.$modal.msgSuccess("审核成功");
|
|
|
- this.getList();
|
|
|
- }else{
|
|
|
- this.$modal.msgError(res.data.msg);
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
+import {
|
|
|
+ listRecord,
|
|
|
+ getRecord,
|
|
|
+ delRecord,
|
|
|
+ addRecord,
|
|
|
+ updateRecord,
|
|
|
+ auditRecord,
|
|
|
+} from "@/api/system/record";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "Record",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 提现表格数据
|
|
|
+ recordList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ current: 1,
|
|
|
+ size: 10,
|
|
|
+ cOpenId: null,
|
|
|
+ dPrice: null,
|
|
|
+ cTime: null,
|
|
|
+ cPhone: "",
|
|
|
+ cName: null,
|
|
|
+ cImage: null,
|
|
|
+ nStatus: null,
|
|
|
+ dtCreateTime: null,
|
|
|
},
|
|
|
- turn(e){
|
|
|
- var ids= {
|
|
|
- cId:e.cId,
|
|
|
- nStatus:2
|
|
|
- }
|
|
|
- auditRecord(ids).then(res =>{
|
|
|
- // console.log(res.data,"eeeeeeeeeeeeeeeeeeee")
|
|
|
- if(res.code == 200){
|
|
|
- this.$modal.msgSuccess("驳回成功");
|
|
|
- this.getList();
|
|
|
- }else{
|
|
|
- this.$modal.msgError(res.data.msg);
|
|
|
- }
|
|
|
-
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {},
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ auditIn(e) {
|
|
|
+ var ids = {
|
|
|
+ cId: e.cId,
|
|
|
+ nStatus: 1,
|
|
|
+ };
|
|
|
+ this.$confirm("确定通过单号为" + e.cashNo + "的审核?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ auditRecord(ids).then((res) => {
|
|
|
+ // console.log(res.data,"eeeeeeeeeeeeeeeeeeee")
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$modal.msgSuccess("审核成功");
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.$modal.msgError(res.data.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
})
|
|
|
- },
|
|
|
- handleSizeChange(val){
|
|
|
- // console.log(val,"handleSizeChange")
|
|
|
- this.queryParams.size = val
|
|
|
- this.getList()
|
|
|
- },
|
|
|
- handleCurrentChange(val){
|
|
|
- this.queryParams.current = val
|
|
|
- this.getList()
|
|
|
- // console.log(val,"val")
|
|
|
- },
|
|
|
- /** 查询提现列表 */
|
|
|
- getList() {
|
|
|
- this.loading = true;
|
|
|
- listRecord(this.queryParams).then(response => {
|
|
|
- this.recordList = response.data.records;
|
|
|
- this.total = response.data.total;
|
|
|
- this.loading = false;
|
|
|
- });
|
|
|
- },
|
|
|
- // 取消按钮
|
|
|
- cancel() {
|
|
|
- this.open = false;
|
|
|
- this.reset();
|
|
|
- },
|
|
|
- // 表单重置
|
|
|
- reset() {
|
|
|
- this.form = {
|
|
|
- cId: null,
|
|
|
- cOpenId: null,
|
|
|
- dPrice: null,
|
|
|
- cTime: null,
|
|
|
- cPhone: null,
|
|
|
- cName: null,
|
|
|
- cImage: null,
|
|
|
- nStatus: null,
|
|
|
- dtCreateTime: null
|
|
|
- };
|
|
|
- this.resetForm("form");
|
|
|
- },
|
|
|
- /** 搜索按钮操作 */
|
|
|
- handleQuery() {
|
|
|
- this.queryParams.pageNum = 1;
|
|
|
- this.getList();
|
|
|
- },
|
|
|
- /** 重置按钮操作 */
|
|
|
- resetQuery() {
|
|
|
- this.resetForm("queryForm");
|
|
|
- this.handleQuery();
|
|
|
- },
|
|
|
- // 多选框选中数据
|
|
|
- handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.cId)
|
|
|
- this.single = selection.length!==1
|
|
|
- this.multiple = !selection.length
|
|
|
- },
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- this.reset();
|
|
|
- this.open = true;
|
|
|
- this.title = "添加提现";
|
|
|
- },
|
|
|
- /** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
- const cId = row.cId || this.ids
|
|
|
- getRecord(cId).then(response => {
|
|
|
- this.form = response.data;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改提现";
|
|
|
+ .catch((e) => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消",
|
|
|
+ });
|
|
|
});
|
|
|
- },
|
|
|
- /** 提交按钮 */
|
|
|
- submitForm() {
|
|
|
- this.$refs["form"].validate(valid => {
|
|
|
- if (valid) {
|
|
|
- if (this.form.cId != null) {
|
|
|
- updateRecord(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
+ },
|
|
|
+ turn(e) {
|
|
|
+
|
|
|
+
|
|
|
+ var ids = {
|
|
|
+ cId: e.cId,
|
|
|
+ nStatus: 2,
|
|
|
+ };
|
|
|
+ this.$confirm("确定驳回单号为" + e.cashNo + "的审核?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ auditRecord(ids).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$modal.msgSuccess("驳回成功");
|
|
|
+ this.getList();
|
|
|
} else {
|
|
|
- addRecord(this.form).then(response => {
|
|
|
- this.$modal.msgSuccess("新增成功");
|
|
|
- this.open = false;
|
|
|
- this.getList();
|
|
|
- });
|
|
|
+ this.$modal.msgError(res.data.msg);
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch((e) => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "已取消",
|
|
|
+ });
|
|
|
});
|
|
|
- },
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
- const cIds = row.cId || this.ids;
|
|
|
- this.$modal.confirm('是否确认删除提现编号为"' + cIds + '"的数据项?').then(function() {
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ // console.log(val,"handleSizeChange")
|
|
|
+ this.queryParams.size = val;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.queryParams.current = val;
|
|
|
+ this.getList();
|
|
|
+ // console.log(val,"val")
|
|
|
+ },
|
|
|
+ /** 查询提现列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listRecord(this.queryParams).then((response) => {
|
|
|
+ this.recordList = response.data.records;
|
|
|
+ this.total = response.data.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.form = {
|
|
|
+ cId: null,
|
|
|
+ cOpenId: null,
|
|
|
+ dPrice: null,
|
|
|
+ cTime: null,
|
|
|
+ cPhone: null,
|
|
|
+ cName: null,
|
|
|
+ cImage: null,
|
|
|
+ nStatus: null,
|
|
|
+ dtCreateTime: null,
|
|
|
+ };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map((item) => item.cId);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleAdd() {
|
|
|
+ this.reset();
|
|
|
+ this.open = true;
|
|
|
+ this.title = "添加提现";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(row) {
|
|
|
+ this.reset();
|
|
|
+ const cId = row.cId || this.ids;
|
|
|
+ getRecord(cId).then((response) => {
|
|
|
+ this.form = response.data;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改提现";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ if (this.form.cId != null) {
|
|
|
+ updateRecord(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ addRecord(this.form).then((response) => {
|
|
|
+ this.$modal.msgSuccess("新增成功");
|
|
|
+ this.open = false;
|
|
|
+ this.getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDelete(row) {
|
|
|
+ const cIds = row.cId || this.ids;
|
|
|
+ this.$modal
|
|
|
+ .confirm('是否确认删除提现编号为"' + cIds + '"的数据项?')
|
|
|
+ .then(function () {
|
|
|
return delRecord(cIds);
|
|
|
- }).then(() => {
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
this.getList();
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
- }).catch(() => {});
|
|
|
- },
|
|
|
- /** 导出按钮操作 */
|
|
|
- handleExport() {
|
|
|
- this.download('system/record/export', {
|
|
|
- ...this.queryParams
|
|
|
- }, `record_${new Date().getTime()}.xlsx`)
|
|
|
- }
|
|
|
- }
|
|
|
- };
|
|
|
- </script>
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download(
|
|
|
+ "system/record/export",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `record_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
<style scoped>
|
|
|
- .el-pagination{
|
|
|
- float: right;
|
|
|
- padding: 30px 0;
|
|
|
- }
|
|
|
+.el-pagination {
|
|
|
+ float: right;
|
|
|
+ padding: 30px 0;
|
|
|
+}
|
|
|
</style>
|