fix: 修复BUG

pull/4/head
TianYu 2023-05-30 19:35:18 +08:00
parent 696b28e2d5
commit 0e0450e48c
3 changed files with 37 additions and 26 deletions

View File

@ -52,6 +52,15 @@ export function getRechargeOrderPage(query) {
}) })
} }
// 获得抽佣明细-会员充值
export function getCommissionDetailsPage(query) {
return request({
url: '/shop/recharge-order/findPromoterDrawPage',
method: 'post',
data: query
})
}
// 导出订单 Excel // 导出订单 Excel
export function exportRechargeOrderExcel(query) { export function exportRechargeOrderExcel(query) {
return request({ return request({

View File

@ -3,21 +3,21 @@
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="98px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="98px">
<el-form-item label="组织名称" prop="tenantName"> <el-form-item label="组织名称" prop="parentOrganizationName">
<el-input v-model="queryParams.tenantName" placeholder="请输入组织名称" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.parentOrganizationName" placeholder="请输入组织名称" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="订单编号" prop="orderId"> <el-form-item label="商户名称" prop="deptName">
<el-input v-model="queryParams.orderId" placeholder="请输入订单编号" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.deptName" placeholder="请输入商户名称" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="加入时间" prop="payTime"> <el-form-item label="加入时间" prop="createTime">
<el-date-picker v-model="queryParams.payTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange" <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" clearable @keyup.enter.native="handleQuery"/> range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="推广员" prop="nickname"> <el-form-item label="推广员" prop="nickname">
<el-input v-model="queryParams.nickname" placeholder="请输入推广员" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.nickname" placeholder="请输入推广员" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="手机号" prop="nickname"> <el-form-item label="手机号" prop="mobile">
<el-input v-model="queryParams.nickname" placeholder="请输入手机号" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.mobile" placeholder="请输入手机号" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
@ -31,32 +31,32 @@
<!-- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"--> <!-- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"-->
<!-- v-hasPermi="['shop:recharge-order:create']">新增</el-button>--> <!-- v-hasPermi="['shop:recharge-order:create']">新增</el-button>-->
<!-- </el-col>--> <!-- </el-col>-->
<el-col :span="1.5"> <!-- <el-col :span="1.5">-->
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading" <!-- <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"-->
v-hasPermi="['shop:recharge-order:export']">导出</el-button> <!-- v-hasPermi="['shop:recharge-order:export']">导出</el-button>-->
</el-col> <!-- </el-col>-->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="组织名称" align="center" prop="orderId" /> <el-table-column label="组织名称" align="center" prop="deptName" />
<el-table-column label="推广员" align="center" prop="parentOrganizationName" > <el-table-column label="推广员" align="center" prop="parentOrganizationName" >
<template v-slot="scope"> <template v-slot="scope">
<span>{{ scope.row.parentOrganizationName }}</span> <span>{{ scope.row.parentOrganizationName }}</span>
<span v-if="scope.row.nickname!=='' && scope.row.nickname!==null">-{{ scope.row.nickname }}</span> <span v-if="scope.row.nickname!=='' && scope.row.nickname!==null">-{{ scope.row.nickname }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="手机号" align="center" prop="orderId" /> <el-table-column label="手机号" align="center" prop="mobile" />
<el-table-column label="加入时间" align="center" prop="payTime" width="180"> <el-table-column label="加入时间" align="center" prop="createTime" width="180">
<template v-slot="scope"> <template v-slot="scope">
<span>{{ parseTime(scope.row.payTime) }}</span> <span>{{ parseTime(scope.row.createTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="成交定单数" align="center" prop="orderId" /> <el-table-column label="成交定单数" align="center" prop="orderCount" />
<el-table-column label="成交金额" align="center" prop="commissionPrice" /> <el-table-column label="成交金额" align="center" prop="dealAmount" />
<el-table-column label="累计金额" align="center" prop="tenantName" /> <el-table-column label="累计金额" align="center" prop="totalAmount" />
<el-table-column label="可提现金额" align="center" prop="tenantName" /> <el-table-column label="可提现金额" align="center" prop="drawAmount" />
</el-table> </el-table>
<!-- 分页组件 --> <!-- 分页组件 -->
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
@ -68,7 +68,7 @@
<script> <script>
import { import {
getRechargeOrderPage, getCommissionDetailsPage,
exportRechargeOrderExcel exportRechargeOrderExcel
} from '@/api/shop/rechargeOrder'; } from '@/api/shop/rechargeOrder';
import {DICT_TYPE, getDictDatas} from "@/utils/dict"; import {DICT_TYPE, getDictDatas} from "@/utils/dict";
@ -104,10 +104,11 @@ export default {
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
orderId: null, parentOrganizationName: '',
tenantName: null, deptName: '',
payTime: [], createTime: [],
nickname: null nickname: '',
mobile: ''
}, },
statusDictDatas: getDictDatas(DICT_TYPE.PAY_STATUS), statusDictDatas: getDictDatas(DICT_TYPE.PAY_STATUS),
}; };
@ -120,7 +121,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
// //
getRechargeOrderPage(this.queryParams).then(response => { getCommissionDetailsPage(this.queryParams).then(response => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
this.loading = false; this.loading = false;

View File

@ -389,6 +389,7 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.form.status = 0
this.open = true; this.open = true;
this.isLook = false; this.isLook = false;
this.title = '添加店铺'; this.title = '添加店铺';