feat: 修改订单关联

This commit is contained in:
danial
2025-03-16 00:11:03 +08:00
parent 44bcc35eaa
commit b3c3d57f5c
6 changed files with 168 additions and 59 deletions

View File

@@ -164,10 +164,10 @@ models/kami-api-card-info-walmart-v1-account-cookie-batch-info.ts
models/kami-api-card-info-walmart-v1-account-cookie-check-req.ts
models/kami-api-card-info-walmart-v1-account-cookie-check-res.ts
models/kami-api-card-info-walmart-v1-account-create-req.ts
models/kami-api-card-info-walmart-v1-account-daily-summary-record.ts
models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts
models/kami-api-card-info-walmart-v1-account-daily-summary-res.ts
models/kami-api-card-info-walmart-v1-account-delete-req.ts
models/kami-api-card-info-walmart-v1-account-info.ts
models/kami-api-card-info-walmart-v1-account-list-record.ts
models/kami-api-card-info-walmart-v1-account-list-req.ts
models/kami-api-card-info-walmart-v1-account-list-res.ts

View File

@@ -153,10 +153,10 @@ export * from './kami-api-card-info-walmart-v1-account-cookie-batch-info';
export * from './kami-api-card-info-walmart-v1-account-cookie-check-req';
export * from './kami-api-card-info-walmart-v1-account-cookie-check-res';
export * from './kami-api-card-info-walmart-v1-account-create-req';
export * from './kami-api-card-info-walmart-v1-account-daily-summary-record';
export * from './kami-api-card-info-walmart-v1-account-daily-summary-req';
export * from './kami-api-card-info-walmart-v1-account-daily-summary-res';
export * from './kami-api-card-info-walmart-v1-account-delete-req';
export * from './kami-api-card-info-walmart-v1-account-info';
export * from './kami-api-card-info-walmart-v1-account-list-record';
export * from './kami-api-card-info-walmart-v1-account-list-req';
export * from './kami-api-card-info-walmart-v1-account-list-res';

View File

@@ -14,7 +14,7 @@
// May contain unused imports in some cases
// @ts-ignore
import type { KamiApiCardInfoWalmartV1AccountDailySummaryRecord } from './kami-api-card-info-walmart-v1-account-daily-summary-record';
import type { KamiApiCardInfoWalmartV1CardRedeemAccountSummary } from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
/**
*
@@ -30,8 +30,8 @@ export interface KamiApiCardInfoWalmartV1AccountDailySummaryRes {
total?: number;
/**
*
* @type {Array<KamiApiCardInfoWalmartV1AccountDailySummaryRecord>}
* @type {Array<KamiApiCardInfoWalmartV1CardRedeemAccountSummary>}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRes
*/
list?: Array<KamiApiCardInfoWalmartV1AccountDailySummaryRecord>;
list?: Array<KamiApiCardInfoWalmartV1CardRedeemAccountSummary>;
}

View File

@@ -0,0 +1,97 @@
/* tslint:disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { KamiApiSysUserV1SysUserRecord } from './kami-api-sys-user-v1-sys-user-record';
/**
*
* @export
* @interface KamiApiCardInfoWalmartV1AccountInfo
*/
export interface KamiApiCardInfoWalmartV1AccountInfo {
/**
*
* @type {KamiApiSysUserV1SysUserRecord}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
uploadUser?: KamiApiSysUserV1SysUserRecord;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
id?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
name?: string;
/**
* 京东用户ID
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
username?: string;
/**
* 创建人
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
createUserId?: string;
/**
* 账户类型
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
category?: string;
/**
* 余额
* @type {number}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
balance?: number;
/**
* 状态 1.正常 0.禁用
* @type {number}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
status?: number;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
remark?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountInfo
*/
deletedAt?: string;
}

View File

@@ -12,12 +12,22 @@
* Do not edit the class manually.
*/
// May contain unused imports in some cases
// @ts-ignore
import type { KamiApiCardInfoWalmartV1AccountInfo } from './kami-api-card-info-walmart-v1-account-info';
/**
*
* @export
* @interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary
*/
export interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary {
/**
*
* @type {KamiApiCardInfoWalmartV1AccountInfo}
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
*/
accountInfo?: KamiApiCardInfoWalmartV1AccountInfo;
/**
*
* @type {number}

View File

@@ -1,6 +1,6 @@
import { apiClient } from '@/api';
import type {
KamiApiCardInfoWalmartV1AccountDailySummaryRecord,
KamiApiCardInfoWalmartV1CardRedeemAccountSummary,
ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum
} from '@/api/generated';
import { handleDownLoadFile } from '@/api/utils';
@@ -87,7 +87,7 @@ export default defineComponent({
dataIndex: 'dailySummary.datete'
}
];
const tableData = ref<KamiApiCardInfoWalmartV1AccountDailySummaryRecord[]>(
const tableData = ref<KamiApiCardInfoWalmartV1CardRedeemAccountSummary[]>(
[]
);
@@ -137,66 +137,68 @@ export default defineComponent({
});
return () => (
<Card class='general-card' title='核销统计'>
<Row>
<Col flex={1}>
<Form model={formModel}>
<Row gutter={16}>
<Col span={8}>
<FormItem field='username' label='用户名'>
<Input
v-model={formModel.value.username}
placeholder='请输入用户名'
/>
</FormItem>
</Col>
<Col span={16}>
<FormItem field='date' label='查询日期'>
<DatePicker v-model={formModel.value.date} />
</FormItem>
<Space direction='vertical' fill>
<Row>
<Col flex={1}>
<Form model={formModel}>
<Row gutter={16}>
<Col span={8}>
<FormItem field='username' label='用户名'>
<Input
v-model={formModel.value.username}
placeholder='请输入用户名'
/>
</FormItem>
</Col>
<Col span={16}>
<FormItem field='date' label='查询日期'>
<DatePicker v-model={formModel.value.date} />
</FormItem>
</Col>
</Row>
</Form>
</Col>
<Divider style='height: 42px' direction='vertical' />
<Space direction='vertical' fill>
<Row>
<Col flex='172px' style='text-align: right'>
<Space direction='horizontal' size={18}>
<Button
type='primary'
onClick={() => fetchData()}
v-slots={{
icon: () => <icon-search />
}}
>
</Button>
<Button
onClick={reset}
v-slots={{
icon: () => <icon-refresh />
}}
>
</Button>
</Space>
</Col>
</Row>
</Form>
</Col>
<Divider style='height: 42px' direction='vertical' />
<Space direction='vertical' fill>
<Row>
<Col flex='172px' style='text-align: right'>
<Space direction='horizontal' size={18}>
<Row>
<Col>
<Button
type='primary'
onClick={() => fetchData()}
onClick={() => downloadExcel()}
v-slots={{
icon: () => <icon-search />
icon: () => <icon-download />
}}
>
</Button>
<Button
onClick={reset}
v-slots={{
icon: () => <icon-refresh />
}}
>
</Button>
</Space>
</Col>
</Row>
<Row>
<Col>
<Button
type='primary'
onClick={() => downloadExcel()}
v-slots={{
icon: () => <icon-download />
}}
>
</Button>
</Col>
</Row>
</Space>
</Row>
</Col>
</Row>
</Space>
</Row>
</Space>
<Table
columns={columns}
data={tableData.value}