ERPTurbo_Client/packages/app-client/src/services/poster/poster.ts
shenyifei 3f8c6d962a feat(purchase): 优化采购模块人工费用和车辆信息处理逻辑
- 调整API域名配置,区分h5和小程序环境
- 重构OrderCost组件,支持多种费用类型筛选和展示
- 优化OrderVehicle组件,简化经销商信息赋值逻辑
- Weigh组件新增西瓜品种选择功能,包含弹窗和校验逻辑
- 重写LaborInfoSection组件,支持新增和编辑人工费用项
- 改进费用承担方和工头信息的处理流程
- 优化UI布局和交互体验
2025-11-16 19:14:15 +08:00

39 lines
933 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.

// @ts-ignore
/* eslint-disable */
import request from "../poster-request";
/** 生成海报 从网页URL或HTML内容生成海报图像 POST /api/v1/poster */
export async function postApiV1Poster(
body: {
/** 要生成海报的网页URL */
webpage?: string;
/** 要生成海报的HTML内容可选优先级高于webpage */
html?: string;
/** 设备缩放因子 */
device?: number;
/** 海报宽度 */
width?: number;
/** 海报高度 */
height?: number;
/** 输出图像类型 */
type?: string;
/** 编码类型 */
encoding?: string;
},
options?: { [key: string]: any },
) {
return request<{
success?: boolean;
data?: { name?: string; path?: string };
message?: string;
code?: number;
}>("/api/v1/poster", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}