feat(shipping-notice): 新增货代客户管理功能,支持客户导入、识别证据管理与客户确认
This commit is contained in:
1 parent
b595e157e9
commit
4fbaed2b4c
176 files changed
+14011
-994
No files matched your search
@@ -20,6 +20,7 @@ import type {
|
||||
ShippingTaskCreateResponse,
|
||||
ShippingTaskDetail,
|
||||
ShippingTaskSummary,
|
||||
ShippingCustomerOption,
|
||||
ShippingTaskUiState,
|
||||
} from '../types/shipping.api.types';
|
||||
|
||||
@@ -154,6 +155,20 @@ export async function confirmWorkspaceShippingInventorySource(taskNo: string, so
|
||||
return assertShippingOk(body);
|
||||
}
|
||||
|
||||
/** 搜索可供业务用户确认的启用标准客户。 */
|
||||
export const listWorkspaceShippingCustomerOptions = (query = '') => {
|
||||
const params = new URLSearchParams({ limit: '200' });
|
||||
if (query.trim()) params.set('q', query.trim());
|
||||
return requestJson<ShippingCustomerOption[]>(`/api/workspace/shipping-customers?${params.toString()}`);
|
||||
};
|
||||
|
||||
/** 为任务确认标准客户;确认成功后响应包含正式业务编号。 */
|
||||
export const confirmWorkspaceShippingCustomer = (taskNo: string, customerId: number) =>
|
||||
requestJson<ShippingTaskDetail>(
|
||||
`/api/workspace/shipping-tasks/${encodeURIComponent(taskNo)}/confirm-customer`,
|
||||
jsonPost({ customer_id: customerId }),
|
||||
);
|
||||
|
||||
/**
|
||||
* 提交库存字段映射。
|
||||
* @param taskNo - 发货任务编号
|
||||
|
||||
Reference in new issue
Block a user