# 餐饮订单模板(麦当劳风格) name: "餐饮订单" id: "food-order-simple" width: 80mm description: "外带餐饮订单小票" defaults: fontSize: normal lineHeight: 1.0 marginBottom: 0 page: marginTop: 2 marginBottom: 3 blocks: # 顶部信息 - type: row marginBottom: 0 columns: - content: "{{orderType}}" align: left fontSize: normal - content: "订单编号: {{orderId}}" align: right fontSize: normal # 分隔线 - type: divider char: "-" marginBottom: 1 # 商品列表(带备注) - type: list data: "{{items}}" itemTemplate: - type: text content: "{{quantity}} {{name}}" marginBottom: 0 - type: list data: "{{notes}}" itemTemplate: - type: text content: " 不要 {{.}}" fontSize: small - type: divider char: "-" marginBottom: 0 # 取餐信息 - type: text content: "取餐柜取餐" align: center fontSize: normal marginTop: 1 marginBottom: 0 - type: text content: "{{pickupNumber}}" align: center fontSize: xlarge bold: true marginBottom: 1 # 条码 - type: barcode format: "CODE128" data: "{{pickupNumber}}" align: center height: 64 marginBottom: 1 # 分隔线 - type: divider char: "-" marginBottom: 0 # 底部信息 - type: row marginBottom: 0 columns: - content: "MOBILE" align: left fontSize: small - content: "{{timestamp}}" align: right fontSize: small