wip: 开发订单导入功能

This commit is contained in:
ah--desktop
2025-11-24 00:33:54 +08:00
parent 0921ff9fc5
commit 6776a5badc
26 changed files with 687 additions and 36 deletions
@@ -45,7 +45,7 @@ export async function deleteImportFieldDefApi(id: number) {
*/
export async function getFieldDefsByTypeApi(type: string) {
return requestClient.get<ImportFieldDefVO.ImportFieldDefInfoVO[]>(
`/ec/import-field-def/list-by-type/all/${type}`,
`/ec/import-field-def/all/${type}`,
);
}
@@ -11,6 +11,8 @@ export namespace ImportFieldDefDTO {
fieldName: string;
/** 中文字段名,如 商品名称 */
fieldLabel: string;
/** 文件字段名,如 商品名称 */
fileFieldName?: string;
/** 是否必填 */
required: boolean;
/** 排序 */
@@ -23,6 +25,8 @@ export namespace ImportFieldDefDTO {
export interface UpdateImportFieldDefDTO {
/** 中文字段名,如 商品名称 */
fieldLabel: string;
/** 文件字段名,如 商品名称 */
fileFieldName?: string;
/** 是否必填 */
required: boolean;
/** 排序 */
@@ -13,6 +13,8 @@ export namespace ImportFieldDefVO {
fieldName: string;
/** 中文字段名,如 商品名称 */
fieldLabel: string;
/** 文件字段名,如 商品名称 */
fileFieldName?: string;
/** 是否必填 */
required: boolean;
/** 排序 */
@@ -5,6 +5,8 @@
export namespace ImportTaskDTO {
/** 创建导入任务参数 */
export interface CreateImportTaskDTO {
/** 所属店铺ID */
shopId: number;
/** 导入类型(product-商品 order-订单) */
type: string;
/** 原始文件名 */
@@ -17,6 +19,8 @@ export namespace ImportTaskDTO {
/** 导入任务过滤条件 */
export interface ImportTaskFilterDTO {
/** 所属店铺ID */
shopId?: number;
/** 导入类型(product-商品 order-订单) */
type?: string;
/** 任务状态 */
@@ -9,6 +9,8 @@ export namespace ImportTaskVO {
id: number;
/** 所属公司ID */
companyId?: number;
/** 所属店铺ID */
shopId?: number;
/** 导入类型(product-商品 order-订单) */
type: string;
/** 原始文件名 */