修改飞鹅打印售后单
This commit is contained in:
@@ -291,10 +291,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContent(order *model.GoodsOrder,
|
|||||||
jxutils.GetVendorName(order.VendorID),
|
jxutils.GetVendorName(order.VendorID),
|
||||||
order.OrderSeq,
|
order.OrderSeq,
|
||||||
)
|
)
|
||||||
orderFmt += `
|
//orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||||
--------------------------------\n
|
|
||||||
`
|
|
||||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
|
||||||
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -327,9 +324,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
|||||||
orderFmt += `--------------------------------<BR>
|
orderFmt += `--------------------------------<BR>
|
||||||
<B>下单时间: %s</B><BR>
|
<B>下单时间: %s</B><BR>
|
||||||
<B>订单编号: %s</B><BR>
|
<B>订单编号: %s</B><BR>
|
||||||
\n
|
|
||||||
<B>%s <B>#%d</B></B><BR>
|
<B>%s <B>#%d</B></B><BR>
|
||||||
\n
|
|
||||||
` + title + `
|
` + title + `
|
||||||
--------------------------------\n`
|
--------------------------------\n`
|
||||||
orderParams = append(orderParams,
|
orderParams = append(orderParams,
|
||||||
@@ -343,7 +338,7 @@ func (c *PrinterHandler) getCancelOrRefundOrderContentBig(order *model.GoodsOrde
|
|||||||
orderFmt += `
|
orderFmt += `
|
||||||
--------------------------------<BR>
|
--------------------------------<BR>
|
||||||
`
|
`
|
||||||
orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
//orderParams = append(orderParams, order.SkuCount, order.GoodsCount, jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice))
|
||||||
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
return strings.Replace(fmt.Sprintf(strings.Replace(orderFmt, "\n", "", -1), orderParams...), "\\n", "\r\n", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user