mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 01:49:19 +08:00
fix(order-import): 前端改用 fileId 替代 filePath
- CreateImportTaskDTO: filePath → fileId - CreateImportTaskModal.vue: 上传成功后使用 fileInfo.id 创建导入任务
This commit is contained in:
@@ -11,8 +11,8 @@ export namespace ImportTaskDTO {
|
|||||||
type: string;
|
type: string;
|
||||||
/** 原始文件名 */
|
/** 原始文件名 */
|
||||||
fileName: string;
|
fileName: string;
|
||||||
/** 存储路径 */
|
/** 关联文件ID */
|
||||||
filePath: string;
|
fileId: number;
|
||||||
/** 字段映射记录(JSON字符串) */
|
/** 字段映射记录(JSON字符串) */
|
||||||
mapping?: string;
|
mapping?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -793,7 +793,7 @@ const handleCreateTask = async () => {
|
|||||||
shopId: selectedShopId.value!,
|
shopId: selectedShopId.value!,
|
||||||
type: 'order',
|
type: 'order',
|
||||||
fileName: selectedFile.value.name,
|
fileName: selectedFile.value.name,
|
||||||
filePath: fileInfo.storagePath,
|
fileId: fileInfo.id,
|
||||||
mapping: JSON.stringify(fullMapping),
|
mapping: JSON.stringify(fullMapping),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user