import { requestClient } from '#/api/request';

const prefix = 'delivery-warehouse-order/';

/**
 * 配送仓库订单列表
 */
export async function getDeliveryWarehouseOrderList(data: any) {
  return requestClient.get<any>(`${prefix}list`, { params: data });
}

/**
 * 配送仓库订单详情（本仓药品 + 收货/物流基础字段）
 */
export async function getDeliveryWarehouseOrderDetail(id: number | string) {
  return requestClient.get<any>(`${prefix}detail`, { params: { id } });
}

/**
 * 配送仓库订单发货
 */
export async function sendDeliveryWarehouseOrder(data: Record<string, any>) {
  return requestClient.post<any>(`${prefix}ware-send`, data);
}
