This commit is contained in:
richboo111
2023-03-20 16:31:32 +08:00
parent fd9689cccc
commit ee6e86ff51

View File

@@ -329,15 +329,15 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
} }
title := `` title := ``
if printType == model.YES { // 取消订单 if printType == model.YES { // 取消订单
title = `<HB><C>取消订单详情</HB></C>` title = `<HB><C>取消订单详情</HB></C><BR>`
} else { // 售后订单 } else { // 售后订单
title = `<HB><C>退款订单详情</HB></C>` title = `<HB><C>退款订单详情</HB></C><BR>`
} }
orderFmt += orderFmt +=
xpyunapi.StrRepeat("-", 32) + ` xpyunapi.StrRepeat("-", 32) + `
<L>下单时间: %s <L>下单时间: %s
<HB>订单编号: %s</HB> <HB>订单编号: %s</HB><BR>
<C><B>%s#%d</C></B> <C><B>%s#%d</C></B>
` + title ` + title
orderParams = append(orderParams, orderParams = append(orderParams,
@@ -348,7 +348,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
) )
orderFmt += xpyunapi.StrRepeat("-", 32) orderFmt += xpyunapi.StrRepeat("-", 32)
orderFmt += `<L>共%d种%d件商品</L> orderFmt += `<L>共%d种%d件商品</L>
实际支付:¥%d` 实际支付:¥%s<BR>`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14) + `<BR>` orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14) + `<BR>`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq) orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...) return fmt.Sprintf(orderFmt, orderParams...)
@@ -374,15 +374,15 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
} }
title := `` title := ``
if printType == model.YES { // 取消订单 if printType == model.YES { // 取消订单
title = `<HB><C>取消订单详情</HB></C>` title = `<HB><C>取消订单详情</HB></C><BR>`
} else { // 售后订单 } else { // 售后订单
title = `<HB><C>退款订单详情</HB></C>` title = `<HB><C>退款订单详情</HB></C><BR>`
} }
orderFmt += orderFmt +=
xpyunapi.StrRepeat("-", 32) + ` xpyunapi.StrRepeat("-", 32) + `
<L><HB>下单时间: %s</HB> <L><HB>下单时间: %s</HB>
<HB>订单编号: %s</HB> <HB>订单编号: %s</HB><BR>
<C><B>%s#%d</C></B> <C><B>%s#%d</C></B>
` + title ` + title
orderParams = append(orderParams, orderParams = append(orderParams,
@@ -393,7 +393,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
) )
orderFmt += xpyunapi.StrRepeat("-", 32) orderFmt += xpyunapi.StrRepeat("-", 32)
orderFmt += `<L><HB>共%d种%d件商品</L> orderFmt += `<L><HB>共%d种%d件商品</L>
实际支付:¥%d</HB>` 实际支付:¥%s</HB><BR>`
orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14) + `<BR>` orderFmt += xpyunapi.StrRepeat("-", 14) + "#%d完</HB>" + xpyunapi.StrRepeat("-", 14) + `<BR>`
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq) orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice), order.OrderSeq)
return fmt.Sprintf(orderFmt, orderParams...) return fmt.Sprintf(orderFmt, orderParams...)