Merge branch 'develop' into production
This commit is contained in:
@@ -164,15 +164,20 @@ 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-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
|
||||
models/kami-api-card-info-walmart-v1-account-refresh-status-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-summary-download-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-update-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-update-status-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-wallet-list-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-wallet-list-res.ts
|
||||
models/kami-api-card-info-walmart-v1-card-redeem-account-summary.ts
|
||||
models/kami-api-card-info-walmart-v1-list-req.ts
|
||||
models/kami-api-card-info-walmart-v1-list-res.ts
|
||||
models/kami-api-card-info-walmart-v1-order-callback-req.ts
|
||||
@@ -256,6 +261,7 @@ models/kami-api-sys-user-login-v1-user-login-res.ts
|
||||
models/kami-api-sys-user-login-v1-user-menus.ts
|
||||
models/kami-api-sys-user-v1-channel-type.ts
|
||||
models/kami-api-sys-user-v1-login-user-record.ts
|
||||
models/kami-api-sys-user-v1-sys-user-record.ts
|
||||
models/kami-api-sys-user-v1-sys-user-role-dept-res.ts
|
||||
models/kami-api-sys-user-v1-sys-user-simple-res.ts
|
||||
models/kami-api-sys-user-v1-totp-image-get-req.ts
|
||||
|
||||
@@ -241,6 +241,8 @@ import type { KamiApiCardInfoWalmartV1AccountCookieCheckRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountCreateReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountDailySummaryRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountListRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountRefreshStatusReq } from '../models';
|
||||
@@ -4706,6 +4708,87 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 每日汇总
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountDailySummaryGet: async (
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'current' is not null or undefined
|
||||
assertParamExists(
|
||||
'apiCardInfoWalmartAccountDailySummaryGet',
|
||||
'current',
|
||||
current
|
||||
);
|
||||
// verify required parameter 'pageSize' is not null or undefined
|
||||
assertParamExists(
|
||||
'apiCardInfoWalmartAccountDailySummaryGet',
|
||||
'pageSize',
|
||||
pageSize
|
||||
);
|
||||
const localVarPath = `/api/cardInfo/walmart/account/dailySummary`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = {
|
||||
method: 'GET',
|
||||
...baseOptions,
|
||||
...options
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (current !== undefined) {
|
||||
localVarQueryParameter['current'] = current;
|
||||
}
|
||||
|
||||
if (pageSize !== undefined) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
if (username !== undefined) {
|
||||
localVarQueryParameter['username'] = username;
|
||||
}
|
||||
|
||||
if (accountId !== undefined) {
|
||||
localVarQueryParameter['accountId'] = accountId;
|
||||
}
|
||||
|
||||
if (date !== undefined) {
|
||||
localVarQueryParameter['date'] = date;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除沃尔玛充值卡
|
||||
@@ -5041,6 +5124,87 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountSummaryDownloadGet: async (
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'current' is not null or undefined
|
||||
assertParamExists(
|
||||
'apiCardInfoWalmartAccountSummaryDownloadGet',
|
||||
'current',
|
||||
current
|
||||
);
|
||||
// verify required parameter 'pageSize' is not null or undefined
|
||||
assertParamExists(
|
||||
'apiCardInfoWalmartAccountSummaryDownloadGet',
|
||||
'pageSize',
|
||||
pageSize
|
||||
);
|
||||
const localVarPath = `/api/cardInfo/walmart/account/summaryDownload`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = {
|
||||
method: 'GET',
|
||||
...baseOptions,
|
||||
...options
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (current !== undefined) {
|
||||
localVarQueryParameter['current'] = current;
|
||||
}
|
||||
|
||||
if (pageSize !== undefined) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
if (username !== undefined) {
|
||||
localVarQueryParameter['username'] = username;
|
||||
}
|
||||
|
||||
if (accountId !== undefined) {
|
||||
localVarQueryParameter['accountId'] = accountId;
|
||||
}
|
||||
|
||||
if (date !== undefined) {
|
||||
localVarQueryParameter['date'] = date;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 修改沃尔玛账户
|
||||
@@ -12545,6 +12709,52 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 每日汇总
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<KamiApiCardInfoWalmartV1AccountDailySummaryRes>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap[
|
||||
'DefaultApi.apiCardInfoWalmartAccountDailySummaryGet'
|
||||
]?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除沃尔玛充值卡
|
||||
@@ -12752,6 +12962,49 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap[
|
||||
'DefaultApi.apiCardInfoWalmartAccountSummaryDownloadGet'
|
||||
]?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 修改沃尔玛账户
|
||||
@@ -17403,6 +17656,36 @@ export const DefaultApiFactory = function (
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 每日汇总
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardInfoWalmartV1AccountDailySummaryRes> {
|
||||
return localVarFp
|
||||
.apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 删除沃尔玛充值卡
|
||||
@@ -17519,6 +17802,36 @@ export const DefaultApiFactory = function (
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object> {
|
||||
return localVarFp
|
||||
.apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 修改沃尔玛账户
|
||||
@@ -20852,6 +21165,38 @@ export class DefaultApi extends BaseAPI {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 每日汇总
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DefaultApi
|
||||
*/
|
||||
public apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoWalmartAccountDailySummaryGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 删除沃尔玛充值卡
|
||||
@@ -20978,6 +21323,38 @@ export class DefaultApi extends BaseAPI {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 下载充值账户
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户
|
||||
* @param {string} [accountId] 用户
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DefaultApi
|
||||
*/
|
||||
public apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum,
|
||||
username?: string,
|
||||
accountId?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
accountId,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 修改沃尔玛账户
|
||||
@@ -22893,6 +23270,19 @@ export type ApiCardInfoOriginalJDCardAccountGetWalletListGetPageSizeEnum =
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
export type ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum =
|
||||
(typeof ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum)[keyof typeof ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum];
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartAccountGetListGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
@@ -22919,6 +23309,19 @@ export type ApiCardInfoWalmartAccountGetWalletListGetPageSizeEnum =
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
export type ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum =
|
||||
(typeof ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum)[keyof typeof ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum];
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartOrderListGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
|
||||
@@ -153,15 +153,20 @@ 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-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';
|
||||
export * from './kami-api-card-info-walmart-v1-account-refresh-status-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-summary-download-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-update-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-update-status-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-wallet-list-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-wallet-list-res';
|
||||
export * from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
|
||||
export * from './kami-api-card-info-walmart-v1-list-req';
|
||||
export * from './kami-api-card-info-walmart-v1-list-res';
|
||||
export * from './kami-api-card-info-walmart-v1-order-callback-req';
|
||||
@@ -245,6 +250,7 @@ export * from './kami-api-sys-user-login-v1-user-login-res';
|
||||
export * from './kami-api-sys-user-login-v1-user-menus';
|
||||
export * from './kami-api-sys-user-v1-channel-type';
|
||||
export * from './kami-api-sys-user-v1-login-user-record';
|
||||
export * from './kami-api-sys-user-v1-sys-user-record';
|
||||
export * from './kami-api-sys-user-v1-sys-user-role-dept-res';
|
||||
export * from './kami-api-sys-user-v1-sys-user-simple-res';
|
||||
export * from './kami-api-sys-user-v1-totp-image-get-req';
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
/* 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 { KamiApiCardInfoWalmartV1CardRedeemAccountSummary } from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { KamiApiSysUserV1SysUserRecord } from './kami-api-sys-user-v1-sys-user-record';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountDailySummaryRecord {
|
||||
/**
|
||||
*
|
||||
* @type {KamiApiCardInfoWalmartV1CardRedeemAccountSummary}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
dailySummary?: KamiApiCardInfoWalmartV1CardRedeemAccountSummary;
|
||||
/**
|
||||
*
|
||||
* @type {KamiApiSysUserV1SysUserRecord}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
uploadUser?: KamiApiSysUserV1SysUserRecord;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 京东用户ID
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* 创建人
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
createUserId?: string;
|
||||
/**
|
||||
* 账户类型
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
category?: string;
|
||||
/**
|
||||
* 余额
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
balance?: number;
|
||||
/**
|
||||
* 状态 1.正常 0.禁用
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
status?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
remark?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
createdAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
updatedAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
|
||||
*/
|
||||
deletedAt?: string;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountDailySummaryReq {
|
||||
/**
|
||||
* 页数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
pageSize: KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum;
|
||||
/**
|
||||
* 用户
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* 用户
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* 日期
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
|
||||
*/
|
||||
date?: string;
|
||||
}
|
||||
|
||||
export const KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
|
||||
export type KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum =
|
||||
(typeof KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum)[keyof typeof KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum];
|
||||
@@ -0,0 +1,37 @@
|
||||
/* 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 { KamiApiCardInfoWalmartV1CardRedeemAccountSummary } from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1AccountDailySummaryRes
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountDailySummaryRes {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRes
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<KamiApiCardInfoWalmartV1CardRedeemAccountSummary>}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRes
|
||||
*/
|
||||
list?: Array<KamiApiCardInfoWalmartV1CardRedeemAccountSummary>;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountSummaryDownloadReq {
|
||||
/**
|
||||
* 页数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
pageSize: KamiApiCardInfoWalmartV1AccountSummaryDownloadReqPageSizeEnum;
|
||||
/**
|
||||
* 用户
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* 用户
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
* 日期
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountSummaryDownloadReq
|
||||
*/
|
||||
date?: string;
|
||||
}
|
||||
|
||||
export const KamiApiCardInfoWalmartV1AccountSummaryDownloadReqPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
|
||||
export type KamiApiCardInfoWalmartV1AccountSummaryDownloadReqPageSizeEnum =
|
||||
(typeof KamiApiCardInfoWalmartV1AccountSummaryDownloadReqPageSizeEnum)[keyof typeof KamiApiCardInfoWalmartV1AccountSummaryDownloadReqPageSizeEnum];
|
||||
@@ -0,0 +1,91 @@
|
||||
/* 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 { KamiApiCardInfoWalmartV1AccountInfo } from './kami-api-card-info-walmart-v1-account-info';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1CardRedeemAccountSummary {
|
||||
/**
|
||||
*
|
||||
* @type {KamiApiCardInfoWalmartV1AccountInfo}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
accountInfo?: KamiApiCardInfoWalmartV1AccountInfo;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
accountId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
amountTotalSum?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
amountTodaySum?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
amountTotalCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
amountTodayCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
date?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
createdAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
updatedAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1CardRedeemAccountSummary
|
||||
*/
|
||||
deletedAt?: string;
|
||||
}
|
||||
@@ -36,6 +36,18 @@ export interface KamiApiSysPaymentV1PaymentSummaryRecord {
|
||||
* @memberof KamiApiSysPaymentV1PaymentSummaryRecord
|
||||
*/
|
||||
totalConsumeAmount?: object;
|
||||
/**
|
||||
*
|
||||
* @type {object}
|
||||
* @memberof KamiApiSysPaymentV1PaymentSummaryRecord
|
||||
*/
|
||||
totalReturnAmount?: object;
|
||||
/**
|
||||
*
|
||||
* @type {object}
|
||||
* @memberof KamiApiSysPaymentV1PaymentSummaryRecord
|
||||
*/
|
||||
totalActualConsumeAmount?: object;
|
||||
/**
|
||||
*
|
||||
* @type {object}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiSysUserV1SysUserRecord
|
||||
*/
|
||||
export interface KamiApiSysUserV1SysUserRecord {
|
||||
/**
|
||||
* 主键
|
||||
* @type {string}
|
||||
* @memberof KamiApiSysUserV1SysUserRecord
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* 账号
|
||||
* @type {string}
|
||||
* @memberof KamiApiSysUserV1SysUserRecord
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* 昵称
|
||||
* @type {string}
|
||||
* @memberof KamiApiSysUserV1SysUserRecord
|
||||
*/
|
||||
nickName?: string;
|
||||
}
|
||||
@@ -1,176 +1,176 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<Breadcrumb :items="['充值账户管理', '沃尔玛Cookie']" />
|
||||
<a-card class="general-card" title="沃尔玛Cookie管理">
|
||||
<a-row>
|
||||
<a-col :flex="1">
|
||||
<a-form
|
||||
:model="formModel"
|
||||
:label-col-props="{ span: 6 }"
|
||||
:wrapper-col-props="{ span: 18 }"
|
||||
label-align="left"
|
||||
>
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="8">
|
||||
<a-form-item field="cookie" label="cookie">
|
||||
<a-input
|
||||
v-model="formModel.cookie"
|
||||
placeholder="请输入Cookie"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="name" label="名称">
|
||||
<a-input v-model="formModel.name" placeholder="请输入名称" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="nickname" label="沃尔玛昵称">
|
||||
<a-input
|
||||
v-model="formModel.nickname"
|
||||
placeholder="请输入沃尔玛账户昵称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="createdUserName" label="用户昵称">
|
||||
<a-input
|
||||
v-model="formModel.createdUserName"
|
||||
placeholder="请输入上传用户昵称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-col>
|
||||
<a-divider style="height: 42px" direction="vertical" />
|
||||
<a-col flex="172px" style="text-align: right">
|
||||
<a-space direction="horizontal" :size="18">
|
||||
<a-button type="primary" @click="search">
|
||||
<template #icon>
|
||||
<icon-search />
|
||||
</template>
|
||||
搜索
|
||||
</a-button>
|
||||
<a-button @click="reset">
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
</template>
|
||||
重置
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider style="margin-top: 0" />
|
||||
<a-row style="margin-bottom: 16px">
|
||||
<a-space>
|
||||
<a-button
|
||||
v-if="checkTokenFromLogin()"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showAddModel({ id: '', ...generateFormModel() })"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-plus />
|
||||
</template>
|
||||
添加
|
||||
</a-button>
|
||||
<a-button @click="download">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
</template>
|
||||
导出
|
||||
</a-button>
|
||||
<batchImportModel @close="() => search()" />
|
||||
</a-space>
|
||||
</a-row>
|
||||
<a-table
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
current: pagination.current,
|
||||
pageSize: pagination.pageSize,
|
||||
total: pagination.total,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true
|
||||
}"
|
||||
:columns="columns"
|
||||
:data="renderData"
|
||||
:scroll="{ x: 1080 }"
|
||||
@page-change="onPageChange"
|
||||
@page-size-change="onPageSizeChange"
|
||||
>
|
||||
<template #status="{ record }">
|
||||
<a-space size="small">
|
||||
<a-switch
|
||||
v-if="[0, 1].includes(record.status)"
|
||||
v-model="record.status"
|
||||
size="small"
|
||||
:checked-value="1"
|
||||
:unchecked-value="0"
|
||||
:beforeChange="newValue => updateCurrentStatus(record, newValue)"
|
||||
/>
|
||||
<a-tag
|
||||
v-else
|
||||
size="small"
|
||||
:color="statusMapper(record.status).color"
|
||||
<a-space direction="vertical" fill>
|
||||
<a-card class="general-card" title="沃尔玛Cookie管理">
|
||||
<a-row>
|
||||
<a-col :flex="1">
|
||||
<a-form
|
||||
:model="formModel"
|
||||
:label-col-props="{ span: 6 }"
|
||||
:wrapper-col-props="{ span: 18 }"
|
||||
label-align="left"
|
||||
>
|
||||
{{ statusMapper(record.status).text }}
|
||||
</a-tag>
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="8">
|
||||
<a-form-item field="cookie" label="cookie">
|
||||
<a-input
|
||||
v-model="formModel.cookie"
|
||||
placeholder="请输入Cookie"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="name" label="名称">
|
||||
<a-input
|
||||
v-model="formModel.name"
|
||||
placeholder="请输入名称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="nickname" label="沃尔玛昵称">
|
||||
<a-input
|
||||
v-model="formModel.nickname"
|
||||
placeholder="请输入沃尔玛账户昵称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-col>
|
||||
<a-divider style="height: 42px" direction="vertical" />
|
||||
<a-col flex="172px" style="text-align: right">
|
||||
<a-space direction="horizontal" :size="18">
|
||||
<a-button type="primary" @click="search">
|
||||
<template #icon>
|
||||
<icon-search />
|
||||
</template>
|
||||
搜索
|
||||
</a-button>
|
||||
<a-button @click="reset">
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
</template>
|
||||
重置
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider style="margin-top: 0" />
|
||||
<a-row style="margin-bottom: 16px">
|
||||
<a-space>
|
||||
<a-button
|
||||
v-if="checkTokenFromLogin()"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="showAddModel({ id: '', ...generateFormModel() })"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-plus />
|
||||
</template>
|
||||
添加
|
||||
</a-button>
|
||||
<a-button @click="download">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
</template>
|
||||
导出
|
||||
</a-button>
|
||||
<batchImportModel @close="() => search()" />
|
||||
</a-space>
|
||||
</template>
|
||||
<template #operations="{ record }">
|
||||
<a-space size="small">
|
||||
<a-tooltip content="修改">
|
||||
<a-button
|
||||
</a-row>
|
||||
<a-table
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
current: pagination.current,
|
||||
pageSize: pagination.pageSize,
|
||||
total: pagination.total,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true
|
||||
}"
|
||||
:columns="columns"
|
||||
:data="renderData"
|
||||
:scroll="{ x: 1080 }"
|
||||
@page-change="onPageChange"
|
||||
@page-size-change="onPageSizeChange"
|
||||
>
|
||||
<template #status="{ record }">
|
||||
<a-space size="small">
|
||||
<a-switch
|
||||
v-if="[0, 1].includes(record.status)"
|
||||
v-model="record.status"
|
||||
size="small"
|
||||
status="warning"
|
||||
@click="showAddModel(record)"
|
||||
:checked-value="1"
|
||||
:unchecked-value="0"
|
||||
:beforeChange="
|
||||
newValue => updateCurrentStatus(record, newValue)
|
||||
"
|
||||
/>
|
||||
<a-tag
|
||||
v-else
|
||||
size="small"
|
||||
:color="statusMapper(record.status).color"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-pen />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip content="详情">
|
||||
<a-button size="small" @click="showDetailModel(record)">
|
||||
<template #icon>
|
||||
<icon-list />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-popconfirm
|
||||
type="warning"
|
||||
content="确认刷新账号状态嘛?"
|
||||
@ok="refreshButton(record)"
|
||||
>
|
||||
<a-tooltip content="刷新">
|
||||
{{ statusMapper(record.status).text }}
|
||||
</a-tag>
|
||||
</a-space>
|
||||
</template>
|
||||
<template #operations="{ record }">
|
||||
<a-space size="small">
|
||||
<a-tooltip content="修改">
|
||||
<a-button
|
||||
v-if="record.status === 3"
|
||||
size="small"
|
||||
status="success"
|
||||
status="warning"
|
||||
@click="showAddModel(record)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
<icon-pen />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-popconfirm>
|
||||
<a-tooltip content="删除">
|
||||
<a-button
|
||||
v-if="checkTokenFromIframe()"
|
||||
size="small"
|
||||
status="danger"
|
||||
@click="deleteOne(record.id)"
|
||||
<a-tooltip content="详情">
|
||||
<a-button size="small" @click="showDetailModel(record)">
|
||||
<template #icon>
|
||||
<icon-list />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-popconfirm
|
||||
type="warning"
|
||||
content="确认刷新账号状态嘛?"
|
||||
@ok="refreshButton(record)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-delete />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-card>
|
||||
<a-tooltip content="刷新">
|
||||
<a-button
|
||||
v-if="record.status === 3"
|
||||
size="small"
|
||||
status="success"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-popconfirm>
|
||||
<a-tooltip content="删除">
|
||||
<a-button
|
||||
v-if="checkTokenFromIframe()"
|
||||
size="small"
|
||||
status="danger"
|
||||
@click="deleteOne(record.id)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-delete />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-card>
|
||||
<summary-card />
|
||||
</a-space>
|
||||
<add-modal
|
||||
:id="state.accountId"
|
||||
v-model:visible="state.addModalVisible"
|
||||
@@ -190,6 +190,7 @@ import { checkTokenFromIframe, checkTokenFromLogin } from '@/utils/auth';
|
||||
import { onMounted, reactive, ref, watchEffect } from 'vue';
|
||||
import { Notification, TableColumnData } from '@arco-design/web-vue';
|
||||
import AddModal from './components/add-modal.vue';
|
||||
import summaryCard from './summary.tsx';
|
||||
import AccountDetail from './components/detail.vue';
|
||||
import {
|
||||
deleteWalmartCard,
|
||||
|
||||
214
src/views/card-walmart-info/account/summary.tsx
Normal file
214
src/views/card-walmart-info/account/summary.tsx
Normal file
@@ -0,0 +1,214 @@
|
||||
import { apiClient } from '@/api';
|
||||
import type {
|
||||
KamiApiCardInfoWalmartV1CardRedeemAccountSummary,
|
||||
ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum
|
||||
} from '@/api/generated';
|
||||
import { handleDownLoadFile } from '@/api/utils';
|
||||
import type { Pagination } from '@/types/global';
|
||||
import {
|
||||
Button,
|
||||
Card,
|
||||
Col,
|
||||
DatePicker,
|
||||
Divider,
|
||||
Form,
|
||||
FormItem,
|
||||
Input,
|
||||
Message,
|
||||
Row,
|
||||
Space,
|
||||
Table,
|
||||
type TableColumnData
|
||||
} from '@arco-design/web-vue';
|
||||
import { defineComponent, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
interface IformData {
|
||||
accountId: string;
|
||||
username: string;
|
||||
date: string;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'walmartSummary',
|
||||
setup() {
|
||||
const generateFormModel = (): IformData => {
|
||||
return {
|
||||
username: '',
|
||||
accountId: '',
|
||||
date: null
|
||||
};
|
||||
};
|
||||
|
||||
const formModel = ref(generateFormModel());
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
});
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
title: '序号',
|
||||
render(data) {
|
||||
return data.rowIndex + 1;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '用户名',
|
||||
dataIndex: 'accountInfo.name'
|
||||
},
|
||||
{
|
||||
title: '余额',
|
||||
dataIndex: 'accountInfo.balance'
|
||||
},
|
||||
{
|
||||
title: '今日充值金额',
|
||||
dataIndex: 'amountTodaySum'
|
||||
},
|
||||
{
|
||||
title: '今日充值次数',
|
||||
dataIndex: 'amountTodayCount'
|
||||
},
|
||||
{
|
||||
title: '累计充值金额',
|
||||
dataIndex: 'amountTotalSum'
|
||||
},
|
||||
{
|
||||
title: '累计充值次数',
|
||||
dataIndex: 'amountTotalCount'
|
||||
},
|
||||
{
|
||||
title: '上传人',
|
||||
dataIndex: 'accountInfo.uploadUser.username'
|
||||
},
|
||||
{
|
||||
title: '日期',
|
||||
dataIndex: 'date'
|
||||
}
|
||||
];
|
||||
const tableData = ref<KamiApiCardInfoWalmartV1CardRedeemAccountSummary[]>(
|
||||
[]
|
||||
);
|
||||
|
||||
const downloadExcel = () => {
|
||||
apiClient
|
||||
.apiCardInfoWalmartAccountSummaryDownloadGet(
|
||||
pagination.current,
|
||||
pagination.pageSize as ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
formModel.value.username,
|
||||
formModel.value.accountId,
|
||||
formModel.value.date,
|
||||
{
|
||||
responseType: 'blob'
|
||||
}
|
||||
)
|
||||
.then(res => {
|
||||
// 判断是不是blob类型
|
||||
if (!res.data) {
|
||||
Message.error('下载账户统计明细失败');
|
||||
return;
|
||||
}
|
||||
handleDownLoadFile(res.data as any, '沃尔玛账户统计明细.xlsx');
|
||||
});
|
||||
};
|
||||
const fetchData = (
|
||||
page: Pagination = pagination,
|
||||
params: IformData = formModel.value
|
||||
) => {
|
||||
apiClient
|
||||
.apiCardInfoWalmartAccountDailySummaryGet(
|
||||
page.current,
|
||||
page.pageSize as ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
|
||||
params.username,
|
||||
params.accountId,
|
||||
params.date
|
||||
)
|
||||
.then(res => {
|
||||
tableData.value = res.data.list;
|
||||
pagination.total = res.data.total;
|
||||
});
|
||||
};
|
||||
const reset = () => {
|
||||
formModel.value = generateFormModel();
|
||||
};
|
||||
onMounted(() => {
|
||||
fetchData();
|
||||
});
|
||||
return () => (
|
||||
<Card class='general-card' title='核销统计'>
|
||||
<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>
|
||||
<Row>
|
||||
<Col>
|
||||
<Button
|
||||
type='primary'
|
||||
onClick={() => downloadExcel()}
|
||||
v-slots={{
|
||||
icon: () => <icon-download />
|
||||
}}
|
||||
>
|
||||
下载
|
||||
</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Space>
|
||||
</Row>
|
||||
<Table
|
||||
columns={columns}
|
||||
data={tableData.value}
|
||||
pagination={pagination}
|
||||
onPageChange={(current: number) => {
|
||||
pagination.current = current;
|
||||
fetchData();
|
||||
}}
|
||||
/>
|
||||
</Space>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -1,7 +1,8 @@
|
||||
import {
|
||||
queryUserPaymentSummaryList,
|
||||
type UserPaymentListParams
|
||||
} from '@/api/sys-user-payment';
|
||||
import { apiClient } from '@/api';
|
||||
import type {
|
||||
ApiSysUserPaymentSummaryListGetPageSizeEnum,
|
||||
KamiApiSysPaymentV1PaymentSummaryRecord
|
||||
} from '@/api/generated';
|
||||
import type { Pagination } from '@/types/global';
|
||||
import {
|
||||
Button,
|
||||
@@ -19,10 +20,15 @@ import {
|
||||
} from '@arco-design/web-vue';
|
||||
import { defineComponent, onMounted, reactive, ref } from 'vue';
|
||||
|
||||
interface IformData {
|
||||
username: string;
|
||||
date: string;
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
name: 'userManagementSummary',
|
||||
setup() {
|
||||
const generateFormModel = () => {
|
||||
const generateFormModel = (): IformData => {
|
||||
return {
|
||||
username: '',
|
||||
date: ''
|
||||
@@ -48,34 +54,47 @@ export default defineComponent({
|
||||
dataIndex: 'username'
|
||||
},
|
||||
{
|
||||
title: '充值金额',
|
||||
dataIndex: 'totalDepositAmount'
|
||||
title: '消费金额',
|
||||
dataIndex: 'totalActualConsumeAmount'
|
||||
},
|
||||
{
|
||||
title: '消耗金额',
|
||||
dataIndex: 'totalConsumeAmount'
|
||||
title: '充值金额',
|
||||
dataIndex: 'totalDepositAmount'
|
||||
},
|
||||
{
|
||||
title: '处理金额',
|
||||
dataIndex: 'totalManualHandleAmount'
|
||||
},
|
||||
{
|
||||
title: '消耗金额(未扣减)',
|
||||
dataIndex: 'totalConsumeAmount'
|
||||
},
|
||||
{
|
||||
title: '扣减金额',
|
||||
dataIndex: 'totalReturnAmount'
|
||||
},
|
||||
{
|
||||
title: '处理日期',
|
||||
dataIndex: 'createdAt'
|
||||
}
|
||||
];
|
||||
const tableData = ref();
|
||||
const tableData = ref<KamiApiSysPaymentV1PaymentSummaryRecord[]>([]);
|
||||
|
||||
const fetchData = async (
|
||||
params: UserPaymentListParams = {
|
||||
...pagination,
|
||||
...formModel.value
|
||||
}
|
||||
const fetchData = (
|
||||
page: Pagination = pagination,
|
||||
params: IformData = formModel.value
|
||||
) => {
|
||||
await queryUserPaymentSummaryList(params).then(res => {
|
||||
tableData.value = res.data.list;
|
||||
pagination.total = res.data.total;
|
||||
});
|
||||
apiClient
|
||||
.apiSysUserPaymentSummaryListGet(
|
||||
page.current,
|
||||
page.pageSize as ApiSysUserPaymentSummaryListGetPageSizeEnum,
|
||||
params.username,
|
||||
params.date
|
||||
)
|
||||
.then(res => {
|
||||
tableData.value = res.data.list;
|
||||
pagination.total = res.data.total;
|
||||
});
|
||||
};
|
||||
const reset = () => {
|
||||
formModel.value = generateFormModel();
|
||||
|
||||
Reference in New Issue
Block a user