feat(shipping-notice): 新增发货批次和任务管理功能,支持批次创建与任务处理
This commit is contained in:
1 parent
457f0f4e5e
commit
634dee4b81
81 files changed
+9088
-3625
No files matched your search
@@ -1,5 +1,8 @@
|
||||
/**
|
||||
* 出货聊天:库存列映射表单(打开、应用、重传)。
|
||||
/**
|
||||
* features/chat/shipping/useChatShippingMappingForm.ts
|
||||
* 用途:管理库存列映射表单的打开、提交和重新上传交互。
|
||||
* 依赖:shipping.api、shippingMapping、chat.types、Vue nextTick。
|
||||
* 逻辑:由 useChatShipping 调用本文件;本文件负责把 schema preview 渲染成聊天卡片,并把表单提交回后端映射接口。
|
||||
*/
|
||||
import { nextTick } from 'vue';
|
||||
import {
|
||||
@@ -25,6 +28,13 @@ export interface ShippingMappingFormContext {
|
||||
msg: { warning: (text: string) => void };
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建库存列映射表单处理器。
|
||||
*
|
||||
* 核心逻辑:按任务号打开或复用映射卡片,提交 map_json 到后端,并在成功后刷新动作按钮。
|
||||
* @param ctx - 库存映射表单上下文
|
||||
* @returns 打开、应用和重传库存映射表单的处理函数
|
||||
*/
|
||||
export function createShippingMappingFormHandlers(ctx: ShippingMappingFormContext) {
|
||||
const scrollToLastShippingInventoryMapping = async (): Promise<boolean> => {
|
||||
const container = ctx.chatScrollContainer.value;
|
||||
|
||||
Reference in new issue
Block a user