1
This commit is contained in:
@@ -319,7 +319,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
||||
orderFmt := ``
|
||||
if storeDetail != nil {
|
||||
if storeDetail.BrandIsPrint == model.NO {
|
||||
orderFmt += `<CB>%s</CB>`
|
||||
orderFmt += `<C><B>%s</B></C>`
|
||||
if order.VendorOrgCode == "34665" {
|
||||
orderParams = append(orderParams, globals.StoreNameEbai2)
|
||||
} else {
|
||||
@@ -329,16 +329,16 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
||||
}
|
||||
title := ``
|
||||
if printType == model.YES { // 取消订单
|
||||
title = `<CB>取消订单详情</CB>`
|
||||
title = `<HB><C>取消订单详情</HB></C>`
|
||||
} else { // 售后订单
|
||||
title = `<CB>退款订单详情</CB>`
|
||||
title = `<HB><C>退款订单详情</HB></C>`
|
||||
}
|
||||
|
||||
orderFmt +=
|
||||
xpyunapi.StrRepeat("-", 32) + `
|
||||
<L>下单时间: %s
|
||||
<HB>订单编号: %s</HB>
|
||||
<CB>%s#%d</CB>
|
||||
<C><B>%s#%d</C></B>
|
||||
` + title
|
||||
orderParams = append(orderParams,
|
||||
utils.Time2Str(order.OrderCreatedAt),
|
||||
@@ -347,7 +347,10 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
||||
order.OrderSeq,
|
||||
)
|
||||
orderFmt += xpyunapi.StrRepeat("-", 32)
|
||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
orderFmt += `<L>共%d种%d件商品</L>
|
||||
实际支付:¥%d`
|
||||
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...)
|
||||
}
|
||||
|
||||
@@ -361,7 +364,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
orderFmt := ``
|
||||
if storeDetail != nil {
|
||||
if storeDetail.BrandIsPrint == model.NO {
|
||||
orderFmt += `<C><B>%s</B><C>`
|
||||
orderFmt += `<C><B>%s</B></C>`
|
||||
if order.VendorOrgCode == "34665" {
|
||||
orderParams = append(orderParams, globals.StoreNameEbai2)
|
||||
} else {
|
||||
@@ -369,21 +372,18 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 加载用户取消订单售后单
|
||||
|
||||
title := ``
|
||||
if printType == model.YES { // 取消订单
|
||||
title = `<C><B>取消订单详情</B><C>`
|
||||
title = `<HB><C>取消订单详情</HB></C>`
|
||||
} else { // 售后订单
|
||||
title = `<C><B>退款订单详情</B><C>`
|
||||
title = `<HB><C>退款订单详情</HB></C>`
|
||||
}
|
||||
|
||||
orderFmt +=
|
||||
xpyunapi.StrRepeat("-", 32) + `
|
||||
<HB><L>下单时间: %s<HB>
|
||||
<HB2>订单编号: %s</HB2><BR>
|
||||
<CB>%s#%d</CB>
|
||||
<L><HB>下单时间: %s</HB>
|
||||
<HB>订单编号: %s</HB>
|
||||
<C><B>%s#%d</C></B>
|
||||
` + title
|
||||
orderParams = append(orderParams,
|
||||
utils.Time2Str(order.OrderCreatedAt),
|
||||
@@ -392,6 +392,9 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
order.OrderSeq,
|
||||
)
|
||||
orderFmt += xpyunapi.StrRepeat("-", 32)
|
||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||
orderFmt += `<L><HB>共%d种%d件商品</L>
|
||||
实际支付:¥%d</HB>`
|
||||
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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user