feat: 更新Walmart账户信息和分组展示,修改下载文件名称
This commit is contained in:
@@ -28,6 +28,12 @@ export interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary {
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
groupId?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
groupName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {KamiApiCardInfoWalmartV1AccountInfo}
|
||||
@@ -76,4 +82,22 @@ export interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary {
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
createdAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
updatedAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
deletedAt?: string;
|
||||
}
|
||||
|
||||
@@ -263,8 +263,8 @@ func main() {
|
||||
| cardNo | string | 卡号 | |
|
||||
| cardPwd | string | 卡密 | |
|
||||
| status | string | 订单状态 | success,fail, wait |
|
||||
| faceVal | float | 面额 | |
|
||||
| amount | string | 实际面额 | |
|
||||
| faceVal | float | 卡面面额 | |
|
||||
| amount | string | 实际充值金额 | |
|
||||
| CardReturnData | string | 充值失败原因 | |
|
||||
|
||||
## 4.创建订单(新)
|
||||
|
||||
@@ -146,7 +146,7 @@ const downloadDataList = async () => {
|
||||
const response = await apiClient.apiCardInfoCTripAccountDownloadGet({
|
||||
responseType: 'blob'
|
||||
});
|
||||
handleDownLoadFile(response.data as any, '沃尔玛账号下载数据.xlsx');
|
||||
handleDownLoadFile(response.data as any, '携程下载数据.xlsx');
|
||||
};
|
||||
|
||||
export const batchImportModel = defineComponent({
|
||||
|
||||
@@ -56,6 +56,10 @@ export default defineComponent({
|
||||
return data.rowIndex + 1;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '分组',
|
||||
dataIndex: 'groupName'
|
||||
},
|
||||
{
|
||||
title: '用户名',
|
||||
dataIndex: 'accountInfo.name'
|
||||
@@ -87,6 +91,13 @@ export default defineComponent({
|
||||
{
|
||||
title: '日期',
|
||||
dataIndex: 'date'
|
||||
},
|
||||
{
|
||||
title: '是否还在',
|
||||
dataIndex: 'accountInfo.isActive',
|
||||
render({ record }) {
|
||||
return record.deletedAt ? '❌' : '✅';
|
||||
}
|
||||
}
|
||||
];
|
||||
const tableData = ref<KamiApiCardInfoWalmartV1CardRedeemAccountSummary[]>(
|
||||
|
||||
@@ -78,6 +78,7 @@
|
||||
<a-button
|
||||
type="secondary"
|
||||
status="warning"
|
||||
size="mini"
|
||||
@click="handleEdit(record)"
|
||||
>
|
||||
<template #icon>
|
||||
@@ -88,6 +89,7 @@
|
||||
<a-button
|
||||
type="secondary"
|
||||
status="danger"
|
||||
size="mini"
|
||||
@click="handleDelete(record)"
|
||||
>
|
||||
<template #icon>
|
||||
|
||||
@@ -134,7 +134,7 @@ export default defineComponent({
|
||||
Message.error('下载账户统计明细失败');
|
||||
return;
|
||||
}
|
||||
handleDownLoadFile(res.data as any, '沃尔玛账户统计明细.xlsx');
|
||||
handleDownLoadFile(res.data as any, '沃尔玛分组统计.xlsx');
|
||||
});
|
||||
};
|
||||
const fetchData = (page: Pagination = pagination) => {
|
||||
|
||||
@@ -482,7 +482,7 @@ const exportData = () => {
|
||||
}
|
||||
)
|
||||
.then(res => {
|
||||
handleDownLoadFile(res.data as Blob, '沃尔玛账号下载数据.xlsx');
|
||||
handleDownLoadFile(res.data as Blob, '沃尔玛订单统计.xlsx');
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user