|
@@ -9,13 +9,13 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="提现状态" prop="state">
|
|
|
<el-select v-model="queryParams.state" placeholder="提现状态" clearable style="width: 117px">
|
|
|
- <el-option value="0" label="待确认"></el-option>
|
|
|
- <el-option value="1" label="已确认"></el-option>
|
|
|
- <el-option value="2" label="提现无效"></el-option>
|
|
|
+ <el-option value="0" label="待提现"></el-option>
|
|
|
+ <el-option value="1" label="提现成功"></el-option>
|
|
|
+ <el-option value="2" label="提现失败"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="时间范围">
|
|
|
- <el-date-picker v-model="dateRange" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
+ <el-date-picker v-model="dateRange" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :clearable="false"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
@@ -24,6 +24,7 @@
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-button type="success" icon="el-icon-edit" :disabled="ids.length != 1" @click="op('edit', ids)" v-hasPermi="['work:out:edit']">审核</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-download" @click="handleExport" v-hasPermi="['work:out:export']">导出</el-button>
|
|
|
<el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:out:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
@@ -34,10 +35,13 @@
|
|
|
<el-table-column label="提现金额(元)" align="center" prop="money" width="130" />
|
|
|
<el-table-column label="提现状态" align="center" width="110">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-tag type="danger" v-if="scope.row.state == 0">待确认</el-tag>
|
|
|
- <el-tag type="success" v-if="scope.row.state == 1">已确认</el-tag>
|
|
|
+ <el-tag type="danger" v-if="scope.row.state == 0">待提现</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.state == 1">提现成功</el-tag>
|
|
|
<el-popover placement="top-start" v-if="scope.row.state == 2" title="原因" width="200" trigger="hover" :content="scope.row.msg">
|
|
|
- <el-tag type="danger" slot="reference">提现无效</el-tag>
|
|
|
+ <div slot="reference">
|
|
|
+ <el-tag type="info">提现失败</el-tag>
|
|
|
+ <i class="el-icon-warning"></i>
|
|
|
+ </div>
|
|
|
</el-popover>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -45,7 +49,7 @@
|
|
|
<el-table-column label="申请人" align="center" prop="opBy" width="130" />
|
|
|
<el-table-column label="操作" align="center" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:out:list']">查看</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:out:list']">详情</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:out:edit']" :disabled="scope.row.state != 0">审核</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:out:remove']">删除</el-button>
|
|
|
</template>
|
|
@@ -98,15 +102,20 @@ export default {
|
|
|
},
|
|
|
resetQuery() {
|
|
|
this.resetForm('queryForm');
|
|
|
+ this.dateRange = [];
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
selects(rows) {
|
|
|
this.ids = rows.map((item) => item.id);
|
|
|
},
|
|
|
op(tag, row) {
|
|
|
+ if (tag == 'detail') {
|
|
|
+ const id = row.id || this.ids[0];
|
|
|
+ this.iframe({ obj: audit, param: { id: id, detail: true, companyName: row.companyName }, title: '提现详情', width: '40%', height: '50%' });
|
|
|
+ }
|
|
|
if (tag == 'edit') {
|
|
|
const id = row.id || this.ids[0];
|
|
|
- this.iframe({ obj: audit, param: { id: id }, title: '提现确认', width: '45%', height: '65%' });
|
|
|
+ this.iframe({ obj: audit, param: { id: id }, title: '提现确认', width: '40%', height: '50%' });
|
|
|
}
|
|
|
},
|
|
|
del(row) {
|
|
@@ -116,6 +125,10 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
});
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download('/work/out/export', { ...this.queryParams }, '充值明细.xlsx');
|
|
|
}
|
|
|
}
|
|
|
};
|