1
This commit is contained in:
@@ -42,9 +42,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
||||
orderFmt := ``
|
||||
if storeDetail != nil {
|
||||
if storeDetail.BrandIsPrint == model.NO {
|
||||
orderFmt += `
|
||||
<CB>%s</CB><BR><BR>
|
||||
`
|
||||
orderFmt += `<CB>%s</CB><BR>`
|
||||
if order.VendorOrgCode == "34665" {
|
||||
orderParams = append(orderParams, globals.StoreNameEbai2)
|
||||
} else {
|
||||
@@ -53,8 +51,8 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
||||
}
|
||||
}
|
||||
orderFmt += `
|
||||
<CB>%s#%d</CB><BR><BR>
|
||||
<C><BOLD>%s:%s</BOLD><BR></C><BR>
|
||||
<CB>%s#%d</CB><BR>
|
||||
<C><BOLD>%s:%s</BOLD></C><BR>
|
||||
--------------------------------<BR>
|
||||
下单时间: %s<BR>
|
||||
预计送达: %s<BR>
|
||||
@@ -70,8 +68,6 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
||||
`
|
||||
}
|
||||
orderFmt += `
|
||||
<BR>
|
||||
|
||||
<QR>%s</QR><BR>
|
||||
` + getCode +
|
||||
`客户: %s<BR>
|
||||
@@ -80,8 +76,6 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
||||
<BR>
|
||||
客户备注: <BR>
|
||||
<BOLD>%s</BOLD><BR>
|
||||
<BR>
|
||||
|
||||
<BR>
|
||||
商品明细: <BR>
|
||||
`
|
||||
@@ -137,10 +131,8 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
||||
<BOLD>共%d种%d件商品</BOLD><BR>
|
||||
<BOLD>实付:%s</BOLD><BR>
|
||||
--------------------------------<BR>
|
||||
<C><BOLD>商品质量问题请联系:</BOLD><BR></C>
|
||||
<C><BOLD>商品质量问题请联系:</BOLD></C><BR>
|
||||
更多信息请关注官方微信: %s<BR>
|
||||
<BR>
|
||||
--------------------------------<BR>
|
||||
--------------------------------<BR>
|
||||
`
|
||||
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
|
||||
@@ -161,9 +153,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
||||
orderFmt := ``
|
||||
if storeDetail != nil {
|
||||
if storeDetail.BrandIsPrint == model.NO {
|
||||
orderFmt += `
|
||||
<CB>%s</CB><BR><BR>
|
||||
`
|
||||
orderFmt += `<CB>%s</CB><BR>`
|
||||
if order.VendorOrgCode == "34665" {
|
||||
orderParams = append(orderParams, globals.StoreNameEbai2)
|
||||
} else {
|
||||
@@ -171,9 +161,8 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
||||
}
|
||||
}
|
||||
}
|
||||
orderFmt += `
|
||||
<CB>%s#%d</CB><BR><BR>
|
||||
<BOLD>%s:%s</BOLD><BR><BR>
|
||||
orderFmt += `<CB>%s#%d</CB><BR>
|
||||
<BOLD>%s:%s</BOLD><BR>
|
||||
--------------------------------<BR>
|
||||
下单时间: %s<BR>
|
||||
预计送达: %s<BR>
|
||||
@@ -192,17 +181,14 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
||||
|
||||
orderFmt += `<QR>%s</QR><BR>
|
||||
` + getCode +
|
||||
`<B>客户: %s<BR></B>
|
||||
`<B>客户: %s</B><BR>
|
||||
电话: %s<BR>
|
||||
地址: %s<BR>
|
||||
<BR>
|
||||
<BOLD>客户备注: <BR></BOLD>
|
||||
<BOLD>客户备注: </BOLD><BR>
|
||||
<BOLD>%s</BOLD><BR>
|
||||
<BR>
|
||||
|
||||
<BR>
|
||||
<B>商品明细: <BR></B>
|
||||
<B>品名数量单价小计<BR></B>
|
||||
<B>商品明细: </B><BR>
|
||||
<B>品名数量单价小计</B><BR>
|
||||
--------------------------------<BR>`
|
||||
// <B><BOLD>实际支付:</BOLD></B><B>%s<BR></B>
|
||||
orderParams = append(orderParams,
|
||||
@@ -222,7 +208,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
||||
|
||||
for _, sku := range order.Skus {
|
||||
if sku.Count > 1 {
|
||||
orderFmt += `<B>%s <RIGHT><BOLD>%s</BOLD></RIGHT></B><BR>`
|
||||
orderFmt += `<B>%s <RIGHT>%s</RIGHT></B><BR>`
|
||||
} else {
|
||||
orderFmt += `<B>%s <RIGHT>%s</RIGHT></B><BR>`
|
||||
}
|
||||
@@ -245,14 +231,12 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
||||
orderParams = append(orderParams, sku.Upc)
|
||||
}
|
||||
}
|
||||
orderFmt += `<BR>
|
||||
orderFmt += `
|
||||
<BOLD>共%d种%d件商品</BOLD>
|
||||
<BOLD>实付:%s</BOLD><BR>
|
||||
--------------------------------<BR>
|
||||
<C><BOLD>商品质量问题请联系:</BOLD><BR></C>
|
||||
<C><BOLD>商品质量问题请联系:</BOLD></C><BR>
|
||||
更多信息请关注官方微信: %s<BR>
|
||||
<BR>
|
||||
--------------------------------<BR>
|
||||
--------------------------------<BR>
|
||||
`
|
||||
// <QR>http://weixin.qq.com/r/tkkDGzTERmk5rXB49xyk</QR>
|
||||
@@ -298,7 +282,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
||||
|
||||
orderFmt += `
|
||||
\n
|
||||
<B>%s <B>#%d</B></B><BR><BR>
|
||||
<B>%s <B>#%d</B></B><BR>
|
||||
` + title + `
|
||||
--------------------------------\n`
|
||||
orderParams = append(orderParams,
|
||||
@@ -341,10 +325,10 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
||||
title = `<CB>售后订单详情</CB><BR>`
|
||||
}
|
||||
orderFmt += `--------------------------------<BR>
|
||||
<B>下单时间: %s<BR></B>
|
||||
<B>订单编号: %s<BR></B>
|
||||
<B>下单时间: %s</B><BR>
|
||||
<B>订单编号: %s</B><BR>
|
||||
\n
|
||||
<B>%s <B>#%d</B></B><BR><BR>
|
||||
<B>%s <B>#%d</B></B><BR>
|
||||
\n
|
||||
` + title + `
|
||||
--------------------------------\n`
|
||||
|
||||
Reference in New Issue
Block a user