This commit is contained in:
邹宗楠
2022-08-08 10:24:05 +08:00
parent ebc91d3e0f
commit 763c31a5e4
3 changed files with 6 additions and 8 deletions

View File

@@ -241,9 +241,9 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
return
}
printData := ManagerOrderAndStore(order, store.Tel1, storeDetail)
printData[BigFont] = false
printData[BigFont] = "small"
if store.PrinterFontSize == partner.PrinterFontSizeBig || store.PrinterFontSize == partner.PrinterFontSizeBig2 {
printData[BigFont] = true
printData[BigFont] = "big"
}
// 打印次数
printData[PrintNumber] = utils.Int2Str(model.YES)

View File

@@ -48,8 +48,8 @@ type SkuListPrintOrder struct {
}
// ManagerOrderAndStore 京西云参数组装
func ManagerOrderAndStore(order *model.GoodsOrder, storeTel string, storeDetail *dao.StoreDetail) map[string]interface{} {
printOrder := make(map[string]interface{}, 0)
func ManagerOrderAndStore(order *model.GoodsOrder, storeTel string, storeDetail *dao.StoreDetail) map[string]string {
printOrder := make(map[string]string, 0)
skuList := make([]*SkuListPrintOrder, 0, 0)
// 获取品牌名称
if storeDetail != nil && storeDetail.BrandIsPrint == model.NO {