Commit 64e523c9 authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 2b719c05
...@@ -375,16 +375,19 @@ Page({ ...@@ -375,16 +375,19 @@ Page({
printer.printText("收银员账号:" + printLastOrder_paySuccessResp.operatorId), printer.printText("收银员账号:" + printLastOrder_paySuccessResp.operatorId),
printer.printText("订单号:" + printLastOrder_paySuccessResp.tradeNo), printer.printText("订单号:" + printLastOrder_paySuccessResp.tradeNo),
printer.printNowDate(), printer.printNowDate(),
printer.printDivide("-"),
printer.printText("活动商品"),
printer.printText("商品名称 " + " 编码 " + " 数量"),
]; ];
if (null != this.data.goodsList && this.data.goodsList.length > 0) {
cmds.push(printer.printDivide("-")),
cmds.push(printer.printText("活动商品")),
cmds.push(printer.printText("商品名称 " + " 编码 " + " 数量"))
for (var i = 0; i < printLastOrder_goodsList.length; i++) { for (var i = 0; i < printLastOrder_goodsList.length; i++) {
//循环取出商品数据 //循环取出商品数据
cmds.push(printer.setAlign(printer.ALIGN_LEFT)); cmds.push(printer.setAlign(printer.ALIGN_LEFT));
cmds.push(printer.printText(printLastOrder_goodsList[i].name)); cmds.push(printer.printText(printLastOrder_goodsList[i].name));
cmds.push(printer.printTwoText(printLastOrder_goodsList[i].barcode, printLastOrder_goodsList[i].quantity + "")); cmds.push(printer.printTwoText(printLastOrder_goodsList[i].barcode, printLastOrder_goodsList[i].quantity + ""));
} }
}
cmds.push(printer.setAlign(printer.ALIGN_LEFT)); cmds.push(printer.setAlign(printer.ALIGN_LEFT));
cmds.push(printer.printDivide("-")); cmds.push(printer.printDivide("-"));
cmds.push(printer.printText("应收金额:" + printLastOrder_orderPriceYuan)); cmds.push(printer.printText("应收金额:" + printLastOrder_orderPriceYuan));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment