This commit is contained in:
2026-04-03 15:23:06 +08:00
parent 0ada3a0466
commit 9ddfeaf1b9

View File

@@ -184,7 +184,7 @@ public interface PrinterImpl {
.append(getFormatLabel("交班小票", signLabelInfo.s, signLabelInfo.center)).append(signLabelInfo.br)
.append(getFormatLabel("交班时间: " + DateUtil.format(handoverRecord.getHandoverTime(), "yyyy/MM/dd HH:mm:ss"), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("收银员: " + handoverRecord.getStaffName(), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("交班周期: " + DateUtil.format(handoverRecord.getLoginTime(), "MM/dd HH:mm") + "--" +
.append(getFormatLabel("周期:" + DateUtil.format(handoverRecord.getLoginTime(), "MM/dd HH:mm") + "-" +
DateUtil.format(handoverRecord.getHandoverTime(), "MM/dd HH:mm"), signLabelInfo.s)).append(signLabelInfo.br)
.append(signLabelInfo.br)
@@ -206,7 +206,7 @@ public interface PrinterImpl {
.append(getFormatLabel(leftRightAlign(" 退菜数量:", "", 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("--------------------------------", signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(leftRightAlign("订单(数量/订单总额)", handoverRecord.getOrderCount() + "/" + handoverRecord.getHandAmount(), 32), signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("----------- 销售数据 ------------", signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel("----------- 销售数据 -----------", signLabelInfo.s)).append(signLabelInfo.br)
.append(getFormatLabel(formatItemLine("商品分类", "数量", "总计", 18, 9), signLabelInfo.s))
.append(signLabelInfo.br);
@@ -216,11 +216,11 @@ public interface PrinterImpl {
String categoryName = info.getString("categoryName");
Integer quantity = info.getInteger("quantity");
BigDecimal amount = info.getBigDecimal("amount");
builder.append(formatItemLine(categoryName, quantity.toString(), amount.toPlainString(), 18, 9)).append(signLabelInfo.br);
builder.append(getFormatLabel(formatItemLine(categoryName, quantity.toString(), amount.toPlainString(), 18, 9), signLabelInfo.s)).append(signLabelInfo.br);
});
}
builder
.append("打印时间: ").append(DateUtil.format(DateUtil.date(), "yyyy/MM/dd HH:mm:ss")).append(signLabelInfo.br)
.append(getFormatLabel("打印时间: " + DateUtil.format(DateUtil.date(), "yyyy/MM/dd HH:mm:ss"), signLabelInfo.s)).append(signLabelInfo.br)
.append(signLabelInfo.getOut(180))
.append(signLabelInfo.cut)
;