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