This commit is contained in:
richboo111
2023-03-28 18:21:22 +08:00
parent b4bc4f7fc5
commit 419d0164fb

View File

@@ -317,22 +317,23 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
}
title := ``
if printType == model.YES { // 取消订单
title = `<font# bolder=1 height=2 width=2>取消订单详情</font#>`
title = "取消订单详情"
} else { // 售后订单
title = `<font# bolder=1 height=2 width=2>退款订单详情</font#>`
title = "退货订单详情"
}
orderFmt += `<font# bolder=0 height=1 width=1>--------------------------------</font#>`
orderFmt += `
<font# bolder=0 height=1 width=1>--------------------------------</font#>
<LEFT><font# bolder=1 height=1 width=1>下单时间: %s</font#></LEFT>
<LEFT><font# bolder=0 height=2 width=1>订单编号: %s</font#></LEFT><BR>
<font# bolder=1 height=2 width=2>%s#%d</font#>
` + title
<font# bolder=1 height=2 width=2>%s</font#>
<font# bolder=0 height=1 width=1>--------------------------------</font#>`
orderParams = append(orderParams,
utils.Time2Str(order.OrderCreatedAt),
order.VendorOrderID,
jxutils.GetVendorName(order.VendorID),
order.OrderSeq,
title,
)
orderFmt += `
<font# bolder=0 height=1 width=1>--------------------------------</font#><LEFT><font# bolder=1 height=2 width=1>共%d种%d件商品</font#></LEFT>