小票模板信息-[printerTemplate]

小票模板信息

接口描述

小票模板信息

响应参数

参数名
类型
描述
必填
printerTemplate
object
小票模板信息
必填
labelTicket
object
贴纸/标签小票
必填
id
string
小票模板编号
必填
receiptName
string
小票模板名称
必填
receiptType
string
小票类型 0-小票 1-标签
必填
paperSize
string
小票纸张规格 0-58mm 1-80mm 3-其他
必填
isBuzz
string
是否蜂鸣 0-否 1-是
必填
tagWidth
string
标签尺寸-高
必填
tagHigh
string
标签尺寸-宽
必填
head
array
标签/小票头部信息
必填
align
string
对齐 0.左对齐 1.居中 2.右对齐
必填
content
string
内容
必填
type
string
内容类型 0.纯文本 1.二维码
必填
fontSize
string
字号 0.普通 1.大 2.超大 3.特大 标签:[12,24,48,96] 小票 [24,48,96,192]
必填
xposition
string
标签尺寸-宽
必填
yposition
string
标签尺寸-高
必填
footer
array
小票尾部信息 【格式同head】
必填
repeatHead
array
重打头部信息 【格式同head】
必填
takeoutTicket
object
外卖贴纸/标签小票 【格式同labelTicket】
必填
orderPayTicket
object
结账小票【格式同labelTicket】
必填
refundTicket
object
退单小票【格式同labelTicket】
必填
takeOutOrderTicket
object
外卖订单小票【格式同labelTicket】
必填
takeOutRefundTicket
object
外卖退单小票【格式同labelTicket】
必填
withdrawCashTicket
object
抽大钞小票【格式同labelTicket】
必填
stationTicket
object
厨房总单小票【格式同labelTicket】
必填
readyTicket
object
厨房分单小票【格式同labelTicket】
必填
shiftTicket
object
交接班小票【格式同labelTicket】
必填
revenueTicket
object
营业额统计小票【格式同labelTicket】
必填
prodSalesTicket
object
销量统计小票【格式同labelTicket】
必填

返回示例

```josn { "printerTemplate": { "labelTicket": { "id": "1417331900900921344", "receiptName": "前台贴纸/标签小票", "receiptType": "1", "prResourceType": "0", "paperSize": "1", "isBuzz": "1", "tagWidth": "60", "tagHigh": "40", "sort": "0", "head": [ { "align": "1", "content": "666@store_name@", "type": "0", "fontSize": "1", "xposition": "60", "yposition": "15" }, { "align": "0", "content": "订单尾号: @order_number_end4@", "type": "0", "fontSize": "0", "xposition": "20", "yposition": "70" }, { "align": "0", "content": "@product_name@", "type": "0", "fontSize": "0", "xposition": "20", "yposition": "120" }, { "align": "0", "content": "@dining_type@@cookmethods@", "type": "0", "fontSize": "0", "xposition": "20", "yposition": "170" }, { "align": "0", "content": "@submit_time@ (@index@/@total@)", "type": "0", "fontSize": "0", "xposition": "20", "yposition": "200" } ], "footer": [], "repeatHead": [ { "align": "1", "content": "", "type": "0", "fontSize": "1", "xposition": "0", "yposition": "0" } ] }, "takeoutTicket": { "id": "3", "receiptName": "外卖贴纸/标签小票", "receiptType": "1", "prResourceType": "2", "paperSize": "0", "isBuzz": "1", "tagWidth": "40", "tagHigh": "40", "sort": "2", "head": [], "footer": [], "repeatHead": [] }, "orderTicket": { "id": "2", "receiptName": "订单小票", "receiptType": "0", "prResourceType": "2", "paperSize": "0", "isBuzz": "1", "tagWidth": "", "tagHigh": "", "sort": "1", "head": [ { "align": "1", "content": "@store_name@", "type": "1", "fontSize": "1", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "1", "content": "桌位: @table_number@", "type": "1", "fontSize": "1", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "日期: @submit_time@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "预约时间: @expect_range@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "订单尾号: @order_number_end4@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "人数: @person_number@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "操作员: @order_employee_name@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "就餐方式: @dining_type@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "附加联系人:@ext_info_name@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "附加联系电话:@ext_info_phone@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "附加地址:@ext_info_address@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "0", "content": "附加备注:@ext_info_comment@", "type": "0", "fontSize": "0", "xposition": "0", "yposition": "0" } ], "footer": [ { "align": "1", "content": "", "type": "1", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "1", "content": "三千客智能餐饮系统", "type": "1", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "1", "content": "更多客单 轻松管理", "type": "1", "fontSize": "0", "xposition": "0", "yposition": "0" }, { "align": "1", "content": "官方网址 3000ke.cn", "type": "1", "fontSize": "0", "xposition": "0", "yposition": "0" } ], "repeatHead": [ { "align": "1", "content": "***重打***", "type": "0", "fontSize": "1", "xposition": "0", "yposition": "0" } ] }, "refundTicket": null, "takeOutOrderTicket": null, "takeOutRefundTicket": null, "withdrawCashTicket": null, "stationTicket": null, "readyTicket": null, "shiftTicket": null, "revenueTicket": null, "prodSalesTicket": null } } ```