refactor(views): update order list table and fetch logic
Simplify the order list table by removing unused templates and updating the fetch logic to use the new API endpoint. The changes improve maintainability and align with the updated API structure.
This commit is contained in:
@@ -209,6 +209,11 @@ models/kami-api-card-redeem-jd-v1-account-list-res.ts
|
||||
models/kami-api-card-redeem-jd-v1-account-status-req.ts
|
||||
models/kami-api-card-redeem-jd-v1-account-update-req.ts
|
||||
models/kami-api-card-redeem-jd-v1-cookie-info.ts
|
||||
models/kami-api-card-redeem-jd-v1-order-list-req.ts
|
||||
models/kami-api-card-redeem-jd-v1-order-list-res.ts
|
||||
models/kami-api-card-redeem-jd-v1-order-list-schema.ts
|
||||
models/kami-api-card-redeem-jd-v1-place-order-req.ts
|
||||
models/kami-api-card-redeem-jd-v1-place-order-res.ts
|
||||
models/kami-api-channel-v2-entrance-create-req.ts
|
||||
models/kami-api-channel-v2-entrance-delete-req.ts
|
||||
models/kami-api-channel-v2-entrance-list-req.ts
|
||||
@@ -316,6 +321,7 @@ models/kami-internal-model-entity-v1-card-apple-history-info.ts
|
||||
models/kami-internal-model-entity-v1-card-apple-recharge-info.ts
|
||||
models/kami-internal-model-entity-v1-card-redeem-account-group.ts
|
||||
models/kami-internal-model-entity-v1-card-redeem-account-history.ts
|
||||
models/kami-internal-model-entity-v1-card-redeem-cookie-info.ts
|
||||
models/kami-internal-model-entity-v1-card-redeem-order-history.ts
|
||||
models/kami-internal-model-entity-v1-card-redeem-order-info.ts
|
||||
models/kami-internal-model-entity-v1-merchant-hidden-record.ts
|
||||
|
||||
@@ -48,6 +48,12 @@ import type { KamiApiCardRedeemJdV1AccountListRes } from '../models';
|
||||
import type { KamiApiCardRedeemJdV1AccountStatusReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardRedeemJdV1AccountUpdateReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardRedeemJdV1OrderListRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardRedeemJdV1PlaceOrderReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardRedeemJdV1PlaceOrderRes } from '../models';
|
||||
/**
|
||||
* CkApi - axios parameter creator
|
||||
* @export
|
||||
@@ -201,12 +207,18 @@ export const CkApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
* @summary 获取京东ck列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
|
||||
* @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
|
||||
* @param {string} [name] 昵称
|
||||
* @param {string} [cookie] ck
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdAccountListGet: async (
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
|
||||
status?: ApiCookieInfoJdAccountListGetStatusEnum,
|
||||
name?: string,
|
||||
cookie?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'current' is not null or undefined
|
||||
@@ -237,6 +249,18 @@ export const CkApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
localVarQueryParameter['pageSize'] = pageSize;
|
||||
}
|
||||
|
||||
if (status !== undefined) {
|
||||
localVarQueryParameter['status'] = status;
|
||||
}
|
||||
|
||||
if (name !== undefined) {
|
||||
localVarQueryParameter['name'] = name;
|
||||
}
|
||||
|
||||
if (cookie !== undefined) {
|
||||
localVarQueryParameter['cookie'] = cookie;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
@@ -342,6 +366,127 @@ export const CkApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取订单列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
|
||||
* @param {number} [cookieId] cookieId
|
||||
* @param {string} [cookie] cookie
|
||||
* @param {string} [status] 状态
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdOrderListGet: async (
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
cookieId?: number,
|
||||
cookie?: string,
|
||||
status?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'current' is not null or undefined
|
||||
assertParamExists('apiCookieInfoJdOrderListGet', 'current', current);
|
||||
// verify required parameter 'pageSize' is not null or undefined
|
||||
assertParamExists('apiCookieInfoJdOrderListGet', 'pageSize', pageSize);
|
||||
const localVarPath = `/api/cookieInfo/jd/order/list`;
|
||||
// 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 (cookieId !== undefined) {
|
||||
localVarQueryParameter['cookieId'] = cookieId;
|
||||
}
|
||||
|
||||
if (cookie !== undefined) {
|
||||
localVarQueryParameter['cookie'] = cookie;
|
||||
}
|
||||
|
||||
if (status !== undefined) {
|
||||
localVarQueryParameter['status'] = status;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下单
|
||||
* @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdOrderPlaceOrderPost: async (
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cookieInfo/jd/order/placeOrder`;
|
||||
// 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: 'POST',
|
||||
...baseOptions,
|
||||
...options
|
||||
};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
localVarRequestOptions.data = serializeDataIfNeeded(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
@@ -458,12 +603,18 @@ export const CkApiFp = function (configuration?: Configuration) {
|
||||
* @summary 获取京东ck列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
|
||||
* @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
|
||||
* @param {string} [name] 昵称
|
||||
* @param {string} [cookie] ck
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCookieInfoJdAccountListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
|
||||
status?: ApiCookieInfoJdAccountListGetStatusEnum,
|
||||
name?: string,
|
||||
cookie?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
@@ -475,6 +626,9 @@ export const CkApiFp = function (configuration?: Configuration) {
|
||||
await localVarAxiosParamCreator.apiCookieInfoJdAccountListGet(
|
||||
current,
|
||||
pageSize,
|
||||
status,
|
||||
name,
|
||||
cookie,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
@@ -551,6 +705,86 @@ export const CkApiFp = function (configuration?: Configuration) {
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取订单列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
|
||||
* @param {number} [cookieId] cookieId
|
||||
* @param {string} [cookie] cookie
|
||||
* @param {string} [status] 状态
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCookieInfoJdOrderListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
cookieId?: number,
|
||||
cookie?: string,
|
||||
status?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<KamiApiCardRedeemJdV1OrderListRes>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCookieInfoJdOrderListGet(
|
||||
current,
|
||||
pageSize,
|
||||
cookieId,
|
||||
cookie,
|
||||
status,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap['CkApi.apiCookieInfoJdOrderListGet']?.[
|
||||
localVarOperationServerIndex
|
||||
]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下单
|
||||
* @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<KamiApiCardRedeemJdV1PlaceOrderRes>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap['CkApi.apiCookieInfoJdOrderPlaceOrderPost']?.[
|
||||
localVarOperationServerIndex
|
||||
]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -619,16 +853,29 @@ export const CkApiFactory = function (
|
||||
* @summary 获取京东ck列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
|
||||
* @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
|
||||
* @param {string} [name] 昵称
|
||||
* @param {string} [cookie] ck
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdAccountListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
|
||||
status?: ApiCookieInfoJdAccountListGetStatusEnum,
|
||||
name?: string,
|
||||
cookie?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardRedeemJdV1AccountListRes> {
|
||||
return localVarFp
|
||||
.apiCookieInfoJdAccountListGet(current, pageSize, options)
|
||||
.apiCookieInfoJdAccountListGet(
|
||||
current,
|
||||
pageSize,
|
||||
status,
|
||||
name,
|
||||
cookie,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@@ -666,6 +913,54 @@ export const CkApiFactory = function (
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取订单列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
|
||||
* @param {number} [cookieId] cookieId
|
||||
* @param {string} [cookie] cookie
|
||||
* @param {string} [status] 状态
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdOrderListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
cookieId?: number,
|
||||
cookie?: string,
|
||||
status?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardRedeemJdV1OrderListRes> {
|
||||
return localVarFp
|
||||
.apiCookieInfoJdOrderListGet(
|
||||
current,
|
||||
pageSize,
|
||||
cookieId,
|
||||
cookie,
|
||||
status,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 下单
|
||||
* @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardRedeemJdV1PlaceOrderRes> {
|
||||
return localVarFp
|
||||
.apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -736,6 +1031,9 @@ export class CkApi extends BaseAPI {
|
||||
* @summary 获取京东ck列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
|
||||
* @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
|
||||
* @param {string} [name] 昵称
|
||||
* @param {string} [cookie] ck
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CkApi
|
||||
@@ -743,10 +1041,20 @@ export class CkApi extends BaseAPI {
|
||||
public apiCookieInfoJdAccountListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
|
||||
status?: ApiCookieInfoJdAccountListGetStatusEnum,
|
||||
name?: string,
|
||||
cookie?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return CkApiFp(this.configuration)
|
||||
.apiCookieInfoJdAccountListGet(current, pageSize, options)
|
||||
.apiCookieInfoJdAccountListGet(
|
||||
current,
|
||||
pageSize,
|
||||
status,
|
||||
name,
|
||||
cookie,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
@@ -789,6 +1097,58 @@ export class CkApi extends BaseAPI {
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取订单列表
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
|
||||
* @param {number} [cookieId] cookieId
|
||||
* @param {string} [cookie] cookie
|
||||
* @param {string} [status] 状态
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CkApi
|
||||
*/
|
||||
public apiCookieInfoJdOrderListGet(
|
||||
current: number,
|
||||
pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
cookieId?: number,
|
||||
cookie?: string,
|
||||
status?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return CkApiFp(this.configuration)
|
||||
.apiCookieInfoJdOrderListGet(
|
||||
current,
|
||||
pageSize,
|
||||
cookieId,
|
||||
cookie,
|
||||
status,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 下单
|
||||
* @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof CkApi
|
||||
*/
|
||||
public apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return CkApiFp(this.configuration)
|
||||
.apiCookieInfoJdOrderPlaceOrderPost(
|
||||
kamiApiCardRedeemJdV1PlaceOrderReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -804,3 +1164,25 @@ export const ApiCookieInfoJdAccountListGetPageSizeEnum = {
|
||||
} as const;
|
||||
export type ApiCookieInfoJdAccountListGetPageSizeEnum =
|
||||
(typeof ApiCookieInfoJdAccountListGetPageSizeEnum)[keyof typeof ApiCookieInfoJdAccountListGetPageSizeEnum];
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCookieInfoJdAccountListGetStatusEnum = {
|
||||
Disable: 'disable',
|
||||
Normal: 'normal'
|
||||
} as const;
|
||||
export type ApiCookieInfoJdAccountListGetStatusEnum =
|
||||
(typeof ApiCookieInfoJdAccountListGetStatusEnum)[keyof typeof ApiCookieInfoJdAccountListGetStatusEnum];
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCookieInfoJdOrderListGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
export type ApiCookieInfoJdOrderListGetPageSizeEnum =
|
||||
(typeof ApiCookieInfoJdOrderListGetPageSizeEnum)[keyof typeof ApiCookieInfoJdOrderListGetPageSizeEnum];
|
||||
|
||||
@@ -197,6 +197,11 @@ export * from './kami-api-card-redeem-jd-v1-account-list-res';
|
||||
export * from './kami-api-card-redeem-jd-v1-account-status-req';
|
||||
export * from './kami-api-card-redeem-jd-v1-account-update-req';
|
||||
export * from './kami-api-card-redeem-jd-v1-cookie-info';
|
||||
export * from './kami-api-card-redeem-jd-v1-order-list-req';
|
||||
export * from './kami-api-card-redeem-jd-v1-order-list-res';
|
||||
export * from './kami-api-card-redeem-jd-v1-order-list-schema';
|
||||
export * from './kami-api-card-redeem-jd-v1-place-order-req';
|
||||
export * from './kami-api-card-redeem-jd-v1-place-order-res';
|
||||
export * from './kami-api-channel-v2-entrance-create-req';
|
||||
export * from './kami-api-channel-v2-entrance-delete-req';
|
||||
export * from './kami-api-channel-v2-entrance-list-req';
|
||||
@@ -304,6 +309,7 @@ export * from './kami-internal-model-entity-v1-card-apple-history-info';
|
||||
export * from './kami-internal-model-entity-v1-card-apple-recharge-info';
|
||||
export * from './kami-internal-model-entity-v1-card-redeem-account-group';
|
||||
export * from './kami-internal-model-entity-v1-card-redeem-account-history';
|
||||
export * from './kami-internal-model-entity-v1-card-redeem-cookie-info';
|
||||
export * from './kami-internal-model-entity-v1-card-redeem-order-history';
|
||||
export * from './kami-internal-model-entity-v1-card-redeem-order-info';
|
||||
export * from './kami-internal-model-entity-v1-merchant-hidden-record';
|
||||
|
||||
@@ -30,6 +30,24 @@ export interface KamiApiCardRedeemJdV1AccountListReq {
|
||||
* @memberof KamiApiCardRedeemJdV1AccountListReq
|
||||
*/
|
||||
pageSize: KamiApiCardRedeemJdV1AccountListReqPageSizeEnum;
|
||||
/**
|
||||
* 状态
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1AccountListReq
|
||||
*/
|
||||
status?: KamiApiCardRedeemJdV1AccountListReqStatusEnum;
|
||||
/**
|
||||
* 昵称
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1AccountListReq
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* ck
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1AccountListReq
|
||||
*/
|
||||
cookie?: string;
|
||||
}
|
||||
|
||||
export const KamiApiCardRedeemJdV1AccountListReqPageSizeEnum = {
|
||||
@@ -43,3 +61,10 @@ export const KamiApiCardRedeemJdV1AccountListReqPageSizeEnum = {
|
||||
|
||||
export type KamiApiCardRedeemJdV1AccountListReqPageSizeEnum =
|
||||
(typeof KamiApiCardRedeemJdV1AccountListReqPageSizeEnum)[keyof typeof KamiApiCardRedeemJdV1AccountListReqPageSizeEnum];
|
||||
export const KamiApiCardRedeemJdV1AccountListReqStatusEnum = {
|
||||
Disable: 'disable',
|
||||
Normal: 'normal'
|
||||
} as const;
|
||||
|
||||
export type KamiApiCardRedeemJdV1AccountListReqStatusEnum =
|
||||
(typeof KamiApiCardRedeemJdV1AccountListReqStatusEnum)[keyof typeof KamiApiCardRedeemJdV1AccountListReqStatusEnum];
|
||||
|
||||
@@ -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 KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
export interface KamiApiCardRedeemJdV1OrderListReq {
|
||||
/**
|
||||
* 页数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
pageSize: KamiApiCardRedeemJdV1OrderListReqPageSizeEnum;
|
||||
/**
|
||||
* cookieId
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
cookieId?: number;
|
||||
/**
|
||||
* cookie
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
cookie?: string;
|
||||
/**
|
||||
* 状态
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListReq
|
||||
*/
|
||||
status?: string;
|
||||
}
|
||||
|
||||
export const KamiApiCardRedeemJdV1OrderListReqPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
|
||||
export type KamiApiCardRedeemJdV1OrderListReqPageSizeEnum =
|
||||
(typeof KamiApiCardRedeemJdV1OrderListReqPageSizeEnum)[keyof typeof KamiApiCardRedeemJdV1OrderListReqPageSizeEnum];
|
||||
@@ -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 { KamiApiCardRedeemJdV1OrderListSchema } from './kami-api-card-redeem-jd-v1-order-list-schema';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardRedeemJdV1OrderListRes
|
||||
*/
|
||||
export interface KamiApiCardRedeemJdV1OrderListRes {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListRes
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<KamiApiCardRedeemJdV1OrderListSchema>}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListRes
|
||||
*/
|
||||
list?: Array<KamiApiCardRedeemJdV1OrderListSchema>;
|
||||
}
|
||||
@@ -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 { KamiInternalModelEntityV1CardRedeemCookieInfo } from './kami-internal-model-entity-v1-card-redeem-cookie-info';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
export interface KamiApiCardRedeemJdV1OrderListSchema {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* 订单id
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
bankOrderId?: string;
|
||||
/**
|
||||
* 订单金额
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
orderAmount?: number;
|
||||
/**
|
||||
* 支付链接
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
wxPay?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
cookieId?: number;
|
||||
/**
|
||||
*
|
||||
* @type {KamiInternalModelEntityV1CardRedeemCookieInfo}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
cookie?: KamiInternalModelEntityV1CardRedeemCookieInfo;
|
||||
/**
|
||||
* 订单编号
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
orderNo?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
jdOrderNo?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
createdAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
updatedAt?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1OrderListSchema
|
||||
*/
|
||||
deletedAt?: string;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/* 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 KamiApiCardRedeemJdV1PlaceOrderReq
|
||||
*/
|
||||
export interface KamiApiCardRedeemJdV1PlaceOrderReq {
|
||||
/**
|
||||
* 银行订单id
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderReq
|
||||
*/
|
||||
merchantOrderId: string;
|
||||
/**
|
||||
* 订单金额
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderReq
|
||||
*/
|
||||
orderAmount: number;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
/* 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 KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
export interface KamiApiCardRedeemJdV1PlaceOrderRes {
|
||||
/**
|
||||
* 微信支付
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
wxPay?: string;
|
||||
/**
|
||||
* 银行订单id
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
merchantOrder?: string;
|
||||
/**
|
||||
* 订单号
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
orderNo?: string;
|
||||
/**
|
||||
* 订单金额
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
orderAmount?: number;
|
||||
/**
|
||||
* 订单状态
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardRedeemJdV1PlaceOrderRes
|
||||
*/
|
||||
orderStatus?: string;
|
||||
}
|
||||
@@ -159,8 +159,7 @@ import { batchImportModel } from './components/component.tsx';
|
||||
import {
|
||||
ApiCookieInfoJdAccountListGetPageSizeEnum,
|
||||
KamiApiCardRedeemJdV1AccountAddReqStatusEnum,
|
||||
KamiApiCardRedeemJdV1CookieInfo,
|
||||
KamiInternalModelEntityV1CardRedeemAccountGroup
|
||||
KamiApiCardRedeemJdV1CookieInfo
|
||||
} from '@/api/generated/index.ts';
|
||||
import { apiCkClient } from '@/api/index.ts';
|
||||
|
||||
|
||||
@@ -99,73 +99,7 @@
|
||||
column-resizable:bordered="{cell:true}"
|
||||
@page-change="onPageChange"
|
||||
@page-size-change="onPageSizeChange"
|
||||
>
|
||||
<template #status="{ record }">
|
||||
<a-tag size="small" :color="statusMapper(record.status).color">
|
||||
{{ statusMapper(record.status).text }}
|
||||
</a-tag>
|
||||
</template>
|
||||
<template #orderStatus="{ record }">
|
||||
<a-tag
|
||||
v-if="record.orderStatus !== 0"
|
||||
size="small"
|
||||
:color="statusMapper(record.orderStatus).color"
|
||||
>
|
||||
{{ statusMapper(record.orderStatus).text }}
|
||||
</a-tag>
|
||||
</template>
|
||||
<template #notifyStatus="{ record }">
|
||||
<a-tag
|
||||
v-if="[1, 2].includes(record.notifyStatus)"
|
||||
size="small"
|
||||
:color="record.notifyStatus === 1 ? 'green' : 'red'"
|
||||
>
|
||||
回调{{ record.notifyStatus === 1 ? '成功' : '失败' }}
|
||||
</a-tag>
|
||||
<a-tag v-else size="small" color="gray">未回调</a-tag>
|
||||
</template>
|
||||
<template #operation="{ record }">
|
||||
<a-space size="small">
|
||||
<a-tooltip v-if="record.status === 7" content="刷新调度">
|
||||
<a-button
|
||||
size="small"
|
||||
status="warning"
|
||||
@click="resetStatus(record.orderNo)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-tooltip content="详情">
|
||||
<a-button
|
||||
size="small"
|
||||
@click="showOrderHistory(record.orderNo)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-list />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<!-- 回调 -->
|
||||
<a-tooltip content="回调">
|
||||
<a-button
|
||||
v-if="
|
||||
record.notifyStatus !== 1 &&
|
||||
[1, 100, 17].includes(record.orderStatus)
|
||||
"
|
||||
size="small"
|
||||
status="warning"
|
||||
@click="callback(record.orderNo)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-send />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
></a-table>
|
||||
</a-space>
|
||||
</a-card>
|
||||
<order-history
|
||||
@@ -176,7 +110,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { TableColumnData, Notification, Message } from '@arco-design/web-vue';
|
||||
import { TableColumnData } from '@arco-design/web-vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
@@ -184,25 +118,29 @@ import OrderHistory from './components/history.vue';
|
||||
import { checkTokenFromIframe } from '@/utils/auth';
|
||||
import { walmartCardOrderParams } from '@/api/card-walmart-order.ts';
|
||||
import {
|
||||
ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
KamiApiCardRedeemJdV1OrderListSchema,
|
||||
KamiInternalModelEntityV1CardRedeemAccountGroup,
|
||||
KamiInternalModelEntityV1CardRedeemOrderInfo
|
||||
} from '@/api/generated/index.ts';
|
||||
import { apiCkClient } from '@/api/index.ts';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 50
|
||||
};
|
||||
|
||||
const state = reactive({
|
||||
orderHistoryModalVisible: false,
|
||||
selectedOrderNo: '',
|
||||
showConfig: false,
|
||||
activeTableKey: 0
|
||||
});
|
||||
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
});
|
||||
|
||||
const groupList = ref<KamiInternalModelEntityV1CardRedeemAccountGroup[]>([]);
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
title: '序号',
|
||||
@@ -225,11 +163,7 @@ const columns: TableColumnData[] = [
|
||||
},
|
||||
{
|
||||
title: '支付链接',
|
||||
dataIndex: 'accountName'
|
||||
},
|
||||
{
|
||||
title: '产品种类',
|
||||
dataIndex: 'actualAmount'
|
||||
dataIndex: 'wxPay'
|
||||
},
|
||||
{
|
||||
title: '提取信息',
|
||||
@@ -246,10 +180,6 @@ const columns: TableColumnData[] = [
|
||||
dataIndex: 'status',
|
||||
slotName: 'status'
|
||||
},
|
||||
// {
|
||||
// title: '备注',
|
||||
// dataIndex: 'remark'
|
||||
// },
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createdAt'
|
||||
@@ -260,6 +190,7 @@ const columns: TableColumnData[] = [
|
||||
slotName: 'operation'
|
||||
}
|
||||
];
|
||||
|
||||
const generateFormModel = () => {
|
||||
return {
|
||||
merchantId: '',
|
||||
@@ -273,15 +204,8 @@ const generateFormModel = () => {
|
||||
};
|
||||
};
|
||||
|
||||
const resetStatus = (orderNo: string) => {
|
||||
// apiClient.apiCardInfoWalmartOrderStatusResetPut({ id: orderNo }).then(() => {
|
||||
// Message.success('重置成功');
|
||||
// search();
|
||||
// });
|
||||
};
|
||||
|
||||
const { loading, setLoading } = useLoading(false);
|
||||
const renderData = ref<KamiInternalModelEntityV1CardRedeemOrderInfo[]>([]);
|
||||
const renderData = ref<KamiApiCardRedeemJdV1OrderListSchema[]>([]);
|
||||
const formModel = ref<{
|
||||
merchantId: string;
|
||||
accountNickName: string;
|
||||
@@ -294,33 +218,29 @@ const formModel = ref<{
|
||||
}>(generateFormModel());
|
||||
|
||||
const fetchData = async (
|
||||
params: walmartCardOrderParams = {
|
||||
params: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 50
|
||||
}
|
||||
) => {
|
||||
// setLoading(true);
|
||||
// try {
|
||||
// const res = await apiClient.apiCardInfoWalmartOrderListGet(
|
||||
// pagination.current,
|
||||
// pagination.pageSize as ApiCardInfoWalmartOrderListGetPageSizeEnum,
|
||||
// formModel.value.giftCardPwd,
|
||||
// formModel.value.merchantId,
|
||||
// formModel.value.attach,
|
||||
// formModel.value.accountNickName,
|
||||
// formModel.value.groupId,
|
||||
// formModel.value.accountCk,
|
||||
// formModel.value.dateRange
|
||||
// );
|
||||
// renderData.value = res.data.list;
|
||||
// pagination.current = params.current;
|
||||
// pagination.pageSize = params.pageSize;
|
||||
// pagination.total = res.data.total;
|
||||
// } catch (err) {
|
||||
// console.error(err);
|
||||
// } finally {
|
||||
// setLoading(false);
|
||||
// }
|
||||
setLoading(true);
|
||||
try {
|
||||
const res = await apiCkClient.apiCookieInfoJdOrderListGet(
|
||||
pagination.current,
|
||||
pagination.pageSize as ApiCookieInfoJdOrderListGetPageSizeEnum,
|
||||
null,
|
||||
formModel.value.giftCardPwd,
|
||||
formModel.value.merchantId
|
||||
);
|
||||
renderData.value = res.data.list;
|
||||
pagination.current = params.current;
|
||||
pagination.pageSize = params.pageSize;
|
||||
pagination.total = res.data.total;
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const onPageChange = (current: number) => {
|
||||
@@ -340,54 +260,7 @@ const showOrderHistory = (orderNo: string) => {
|
||||
state.orderHistoryModalVisible = true;
|
||||
state.selectedOrderNo = orderNo;
|
||||
};
|
||||
const statusMapper = (status: number): { text: string; color: string } => {
|
||||
switch (status) {
|
||||
case 100:
|
||||
return { text: '失败', color: 'red' };
|
||||
case 1:
|
||||
return { text: '成功', color: 'green' };
|
||||
case 2:
|
||||
return { text: '待处理', color: 'orange' };
|
||||
case 3:
|
||||
return { text: '验证失败', color: 'red' };
|
||||
case 4:
|
||||
return { text: '账号失效', color: 'red' };
|
||||
case 5:
|
||||
return { text: '账号充值频繁', color: 'red' };
|
||||
case 6:
|
||||
return { text: '未知', color: 'gray' };
|
||||
case 7:
|
||||
return { text: '禁用(充值次数超限)', color: 'red' };
|
||||
case 8:
|
||||
return { text: '金额异议(充值成功)', color: 'pinkpurple' };
|
||||
case 9:
|
||||
return { text: '卡密类型错误', color: 'red' };
|
||||
case 10:
|
||||
return { text: '金额异议(充值失败)', color: 'red' };
|
||||
case 11:
|
||||
return { text: '卡密被绑定', color: 'red' };
|
||||
case 12:
|
||||
return { text: '重复绑卡', color: 'red' };
|
||||
case 13:
|
||||
return { text: '账号受限', color: 'red' };
|
||||
case 14:
|
||||
return { text: '匹配账号', color: 'orange' };
|
||||
case 15:
|
||||
return { text: '卡片无效/不存在', color: 'red' };
|
||||
case 16:
|
||||
return { text: '卡片过期', color: 'red' };
|
||||
case 17:
|
||||
return { text: '补卡成功', color: 'green' };
|
||||
case 18:
|
||||
return { text: '开始处理', color: 'green' };
|
||||
case 19:
|
||||
return { text: '订单重复上传', color: 'red' };
|
||||
case 20:
|
||||
return { text: '卡号不符合规则', color: 'red' };
|
||||
default:
|
||||
return { text: '未知', color: 'gray' };
|
||||
}
|
||||
};
|
||||
|
||||
const reset = () => {
|
||||
formModel.value = generateFormModel();
|
||||
};
|
||||
@@ -407,18 +280,7 @@ const callback = async (orderNo: string) => {
|
||||
} catch (error) {}
|
||||
};
|
||||
|
||||
const getAllGroupList = () => {
|
||||
// apiClient.apiCardInfoWalmartGroupAllListGet().then(res => {
|
||||
// groupList.value = res.data.list;
|
||||
// });
|
||||
};
|
||||
|
||||
const onChangeRadio = (value: string | number | boolean) => {
|
||||
formModel.value.groupId = value as number;
|
||||
fetchData();
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
getAllGroupList();
|
||||
fetchData({ ...pagination });
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user