出入库
This commit is contained in:
@@ -551,7 +551,7 @@ public interface PrinterImpl {
|
|||||||
builder.append(getFormatLabel(StrUtil.format("IN".equals(record.getType()) ? "入库时间: {}" : "出库时间: {}", DateUtil.format(record.getInStockTime(), "yyyy/MM/dd HH:mm:ss")), signLabelInfo.s)).append(signLabelInfo.br);
|
builder.append(getFormatLabel(StrUtil.format("IN".equals(record.getType()) ? "入库时间: {}" : "出库时间: {}", DateUtil.format(record.getInStockTime(), "yyyy/MM/dd HH:mm:ss")), signLabelInfo.s)).append(signLabelInfo.br);
|
||||||
builder.append(getDividingLine()).append(signLabelInfo.br);
|
builder.append(getDividingLine()).append(signLabelInfo.br);
|
||||||
builder.append(getFormatLabel(key4("耗材名称", "库存单位", "IN".equals(record.getType()) ? "入库数量" : "出库数量", "金额",
|
builder.append(getFormatLabel(key4("耗材名称", "库存单位", "IN".equals(record.getType()) ? "入库数量" : "出库数量", "金额",
|
||||||
8, 8, 8), signLabelInfo.s)).append(signLabelInfo.br);
|
10, 10, 10), signLabelInfo.s)).append(signLabelInfo.br);
|
||||||
|
|
||||||
// 遍历耗材明细,逐行打印
|
// 遍历耗材明细,逐行打印
|
||||||
List<StockPrintDTO.InStockItem> items = record.getItems();
|
List<StockPrintDTO.InStockItem> items = record.getItems();
|
||||||
@@ -560,7 +560,7 @@ public interface PrinterImpl {
|
|||||||
String stockNumber = item.getStockNumber().stripTrailingZeros().toPlainString();
|
String stockNumber = item.getStockNumber().stripTrailingZeros().toPlainString();
|
||||||
String amount = item.getAmount().stripTrailingZeros().toPlainString();
|
String amount = item.getAmount().stripTrailingZeros().toPlainString();
|
||||||
// 左对齐排版,保证列对齐
|
// 左对齐排版,保证列对齐
|
||||||
String itemLine = key4(item.getConsName(), item.getUnit(), stockNumber, amount, 11, 9, 9);
|
String itemLine = key4(item.getConsName(), item.getUnit(), stockNumber, amount, 11, 9, 7);
|
||||||
builder.append(getFormatLabel(itemLine, signLabelInfo.s)).append(signLabelInfo.br);
|
builder.append(getFormatLabel(itemLine, signLabelInfo.s)).append(signLabelInfo.br);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user