体现页面增加用户手机号
This commit is contained in:
@@ -258,11 +258,10 @@
|
|||||||
</a-card>
|
</a-card>
|
||||||
<a-card title="换电记录" class="order-card">
|
<a-card title="换电记录" class="order-card">
|
||||||
<a-spin :spinning="loading">
|
<a-spin :spinning="loading">
|
||||||
<a-table
|
<ele-pro-table
|
||||||
:data-source="equipmentRecordList"
|
:datasource="datasource3"
|
||||||
:columns="columns3"
|
:columns="columns3"
|
||||||
ref="tableRef3"
|
ref="tableRef3"
|
||||||
:pagination="false"
|
|
||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'batteryModel'">
|
<template v-if="column.key === 'batteryModel'">
|
||||||
@@ -274,7 +273,7 @@
|
|||||||
<span class="ele-text-danger">{{ expirationDay(record) }}</span>
|
<span class="ele-text-danger">{{ expirationDay(record) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</a-table>
|
</ele-pro-table>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-card title="缴费记录" class="order-card">
|
<a-card title="缴费记录" class="order-card">
|
||||||
@@ -413,7 +412,7 @@ import {listEquipmentOrderGoods} from '@/api/apps/equipment/order/goods';
|
|||||||
import {EquipmentOrderGoods} from '@/api/apps/equipment/order/goods/model';
|
import {EquipmentOrderGoods} from '@/api/apps/equipment/order/goods/model';
|
||||||
import * as EquipmentApi from '@/api/apps/equipment';
|
import * as EquipmentApi from '@/api/apps/equipment';
|
||||||
import * as EquipmentRecordApi from '@/api/apps/equipment/record';
|
import * as EquipmentRecordApi from '@/api/apps/equipment/record';
|
||||||
import {ColumnItem} from 'ele-admin-pro/es/ele-pro-table/types';
|
import {ColumnItem, DatasourceFunction} from 'ele-admin-pro/es/ele-pro-table/types';
|
||||||
import {listOrder, listOrderPay} from '@/api/order';
|
import {listOrder, listOrderPay} from '@/api/order';
|
||||||
import {CopyOutlined} from '@ant-design/icons-vue';
|
import {CopyOutlined} from '@ant-design/icons-vue';
|
||||||
import {EquipmentRecord} from '@/api/apps/equipment/record/model';
|
import {EquipmentRecord} from '@/api/apps/equipment/record/model';
|
||||||
@@ -708,6 +707,7 @@ const getRenewOrder = () => {
|
|||||||
if (order.orderId > 28798) {
|
if (order.orderId > 28798) {
|
||||||
listOrderPay({
|
listOrderPay({
|
||||||
rentOrderId: order.orderId,
|
rentOrderId: order.orderId,
|
||||||
|
payStatus: 20,
|
||||||
sort: ' create_time asc'
|
sort: ' create_time asc'
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
renewOrderList.value = data;
|
renewOrderList.value = data;
|
||||||
@@ -726,12 +726,29 @@ const getRenewOrder = () => {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getEquipmentRecordList = () => {
|
// const getEquipmentRecordList = () => {
|
||||||
EquipmentRecordApi.listEquipmentRecord({
|
// EquipmentRecordApi.pageEquipmentRecord({
|
||||||
orderId: order.orderId,
|
// orderId: order.orderId,
|
||||||
userId: order.userId
|
// userId: order.userId
|
||||||
}).then((data) => {
|
// }).then((data) => {
|
||||||
equipmentRecordList.value = data;
|
|
||||||
|
// });
|
||||||
|
// };
|
||||||
|
|
||||||
|
// 表格数据源
|
||||||
|
const datasource3: DatasourceFunction = ({
|
||||||
|
page,
|
||||||
|
limit,
|
||||||
|
where,
|
||||||
|
orders
|
||||||
|
}) => {
|
||||||
|
where.orderId = order.orderId
|
||||||
|
where.userId = order.userId
|
||||||
|
return EquipmentRecordApi.pageEquipmentRecord({
|
||||||
|
...where,
|
||||||
|
...orders,
|
||||||
|
page,
|
||||||
|
limit
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -777,7 +794,7 @@ watch(
|
|||||||
getEquipmentOrderGoods();
|
getEquipmentOrderGoods();
|
||||||
getRenewOrder();
|
getRenewOrder();
|
||||||
getEquipment();
|
getEquipment();
|
||||||
getEquipmentRecordList();
|
// getEquipmentRecordList();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resetFields();
|
resetFields();
|
||||||
|
|||||||
@@ -148,10 +148,15 @@
|
|||||||
sorter: true
|
sorter: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '用户',
|
title: '提现用户',
|
||||||
dataIndex: 'nickname',
|
dataIndex: 'nickname',
|
||||||
key: 'nickname'
|
key: 'nickname'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '手机号',
|
||||||
|
dataIndex: 'userPhone',
|
||||||
|
key: 'userPhone'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '收入卡类型',
|
title: '收入卡类型',
|
||||||
dataIndex: 'cardTypeDis',
|
dataIndex: 'cardTypeDis',
|
||||||
|
|||||||
Reference in New Issue
Block a user