feat: 地区选择器改走接口、订单市价重算与资金流水、同步日志内容复用
region-address-picker 接 region-picker API;订单支持按进价重算 market_price、追踪页资金流水;MES/ERP/中台同步日志共用内容查看组件;地区管理支持 pid 下钻与拼音检索。
This commit is contained in:
@@ -70,11 +70,13 @@ export const desktop = {
|
||||
async getPrinters(): Promise<DesktopPrinter[]> {
|
||||
return (await api()?.getPrinters()) ?? [];
|
||||
},
|
||||
/** 静默打印:传入拼好的完整 HTML,由主进程隐藏窗口出纸 */
|
||||
/** 静默打印:传入拼好的完整 HTML,由主进程隐藏窗口出纸;可带 pageSize 指定热敏纸宽 */
|
||||
async printHTML(options: {
|
||||
deviceName?: string;
|
||||
html: string;
|
||||
silent?: boolean;
|
||||
pageSize?: { height: number; width: number } | string;
|
||||
preferCSSPageSize?: boolean;
|
||||
}): Promise<{ message?: string; ok: boolean }> {
|
||||
return (
|
||||
(await api()?.printHTML(options)) ?? {
|
||||
|
||||
Reference in New Issue
Block a user