mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 05:09:21 +08:00
fix: 修复导入文件编码检测及上传区域样式
This commit is contained in:
@@ -8,6 +8,8 @@ export enum ImportMappingType {
|
||||
ORDER = 'ORDER',
|
||||
/** 订单状态 */
|
||||
ORDER_STATUS = 'ORDER_STATUS',
|
||||
/** 推广费 */
|
||||
PROMOTION_FEE = 'PROMOTION_FEE',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -17,6 +19,7 @@ export const IMPORT_MAPPING_TYPE_OPTIONS = [
|
||||
{ label: '商品', value: ImportMappingType.PRODUCT },
|
||||
{ label: '订单', value: ImportMappingType.ORDER },
|
||||
{ label: '订单状态', value: ImportMappingType.ORDER_STATUS },
|
||||
{ label: '推广费', value: ImportMappingType.PROMOTION_FEE },
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
import type { PageQueryDTO, PageResultVO } from '#/types/common';
|
||||
import type { PromotionFeeDTO, PromotionFeeVO } from './types';
|
||||
import type { PromotionFeeDTO, PromotionFeeVO, PromotionFeeFieldVO } from './types';
|
||||
|
||||
/**
|
||||
* 推广费管理API
|
||||
@@ -41,3 +41,10 @@ export async function deletePromotionFeeApi(id: number) {
|
||||
export async function getPromotionFeeByIdApi(id: number) {
|
||||
return requestClient.get<PromotionFeeVO.Info>(`/ec/promotion-fee/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取推广费导入字段定义
|
||||
*/
|
||||
export async function getPromotionFeeFieldsApi() {
|
||||
return requestClient.get<PromotionFeeFieldVO.Info[]>('/ec/promotion-fee/fields');
|
||||
}
|
||||
|
||||
@@ -45,3 +45,15 @@ export namespace PromotionFeeVO {
|
||||
updateBy?: number;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PromotionFeeFieldVO {
|
||||
/** 推广费导入字段信息 */
|
||||
export interface Info {
|
||||
fieldName: string;
|
||||
fieldLabel: string;
|
||||
fileFieldName?: string;
|
||||
required: boolean;
|
||||
sort?: number;
|
||||
dataType?: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user