oms/frontend/src/api/externalPrintPlatform.ts
liufumingren 2b8fcc2286 外部打单平台增加「是否自带运单」
- external_print_platforms 新增 has_own_waybill(默认 0),同步接口契约与前端类型
- 自带运单的平台取号时复用平台已确认运单号(WaybillCodes),只重新拉取打印数据,不分配新面单
- 平台属性查询补齐 has_own_waybill,更新店管家取号文档并补测试

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-23 21:13:48 +08:00

23 lines
670 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { get } from '@/utils/request'
export interface ExternalPrintPlatformItem {
id: number
/** 平台标识,程序按此选择打单/取号适配逻辑 */
code: string
name: string
url: string | null
/** 是否回打单平台取号:1 是 0 否 */
fetch_waybill_no: number
/** 是否自带运单:1 是(取号时复用平台已有运单号) 0 否 */
has_own_waybill: number
sort: number
status: number
created_at?: string
updated_at?: string
}
/** 外部打单平台字典(开发者维护,前端只读) */
export function getExternalPrintPlatforms() {
return get<ExternalPrintPlatformItem[]>('/external-print-platforms')
}