This commit is contained in:
richboo111
2023-03-20 15:28:52 +08:00
parent 2606015f57
commit a5dd2174cb

View File

@@ -229,7 +229,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
<L>实际支付: %s</L>
`
orderFmt += `<BR>`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完" + xpyunapi.StrRepeat("-", 14)
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完" + xpyunapi.StrRepeat("-", 14) + `<BR>`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...)
}
@@ -297,7 +297,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
<L>实际支付: %s</L>
`
orderFmt += `<BR>`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14)
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14) + `<BR>`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...)
}
@@ -320,14 +320,11 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
}
}
}
// 加载用户取消订单售后单
title := ``
if printType == model.YES { // 取消订单
title = `<C><B>取消订单详情</B><C>`
title = `<CB>取消订单详情</CB>`
} else { // 售后订单
title = `<C><B>退款订单详情</B><C>`
title = `<CB>退款订单详情</CB>`
}
orderFmt +=