fix(order-import): 前端改用 fileId 替代 filePath

- CreateImportTaskDTO: filePath → fileId
- CreateImportTaskModal.vue: 上传成功后使用 fileInfo.id 创建导入任务
This commit is contained in:
小蟑螂
2026-03-29 14:23:26 +08:00
parent 05d13c3f35
commit aaca8d38f1
2 changed files with 3 additions and 3 deletions
@@ -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;
} }
@@ -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),
}; };