mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59: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;
|
||||
/** 原始文件名 */
|
||||
fileName: string;
|
||||
/** 存储路径 */
|
||||
filePath: string;
|
||||
/** 关联文件ID */
|
||||
fileId: number;
|
||||
/** 字段映射记录(JSON字符串) */
|
||||
mapping?: string;
|
||||
}
|
||||
|
||||
+1
-1
@@ -793,7 +793,7 @@ const handleCreateTask = async () => {
|
||||
shopId: selectedShopId.value!,
|
||||
type: 'order',
|
||||
fileName: selectedFile.value.name,
|
||||
filePath: fileInfo.storagePath,
|
||||
fileId: fileInfo.id,
|
||||
mapping: JSON.stringify(fullMapping),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user