This commit is contained in:
邹宗楠
2025-08-07 16:55:20 +08:00
parent b15f7ac442
commit 99ad4b5f97
8 changed files with 157 additions and 33 deletions

View File

@@ -196,6 +196,11 @@ func (c *PrinterHandler) getOrderContentV2(order *model.GoodsOrder, storeTel str
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><font# bolder=0 height=2 width=2>预订单</font#>`
} else {
orderFmt += `<C><font# bolder=0 height=2 width=2>立即送达</font#>`
}
orderFmt += `
<font# bolder=0 height=1 width=1>--------------------------------</font#>
<LEFT>下单时间: %s</LEFT>
@@ -261,6 +266,11 @@ func (c *PrinterHandler) getOrderContentBigV2(order *model.GoodsOrder, storeTel
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><font# bolder=0 height=2 width=2>预订单</font#>`
} else {
orderFmt += `<C><font# bolder=0 height=2 width=2>立即送达</font#>`
}
orderFmt += `
<font# bolder=0 height=2 width=1>--------------------------------</font#>
<LEFT>下单时间: %s</LEFT>
@@ -328,6 +338,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><font# bolder=0 height=2 width=2>预订单</font#>`
} else {
orderFmt += `<C><font# bolder=0 height=2 width=2>立即送达</font#>`
}
orderFmt += `
<font# bolder=0 height=1 width=1>--------------------------------</font#>
<LEFT>下单时间: %s</LEFT>
@@ -397,6 +412,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
}
}
}
if order.BusinessType == model.BusinessTypeDingshida {
orderFmt += `<C><font# bolder=0 height=2 width=2>预订单</font#>`
} else {
orderFmt += `<C><font# bolder=0 height=2 width=2>立即送达</font#>`
}
orderFmt += `
<font# bolder=0 height=1 width=1>--------------------------------</font#>
<LEFT><font# bolder=0 height=2 width=1>下单时间: %s</font#></LEFT>