1
This commit is contained in:
@@ -246,9 +246,9 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
|
|||||||
printData[BigFont] = true
|
printData[BigFont] = true
|
||||||
}
|
}
|
||||||
// 打印次数
|
// 打印次数
|
||||||
printData[PrintNumber] = 1
|
printData[PrintNumber] = utils.Int2Str(model.YES)
|
||||||
if store.PrinterFontSize == partner.PrinterFontSizeBig2 || store.PrinterFontSize == partner.PrinterFontSizeNormal2 {
|
if store.PrinterFontSize == partner.PrinterFontSizeBig2 || store.PrinterFontSize == partner.PrinterFontSizeNormal2 {
|
||||||
printData[PrintNumber] = 2
|
printData[PrintNumber] = utils.Int2Str(2)
|
||||||
}
|
}
|
||||||
|
|
||||||
orderPrint, err := json.Marshal(printData)
|
orderPrint, err := json.Marshal(printData)
|
||||||
|
|||||||
@@ -59,16 +59,16 @@ func ManagerOrderAndStore(order *model.GoodsOrder, storeTel string, storeDetail
|
|||||||
}
|
}
|
||||||
// 是否为预定单
|
// 是否为预定单
|
||||||
if order.BusinessType == model.BusinessTypeDingshida {
|
if order.BusinessType == model.BusinessTypeDingshida {
|
||||||
printOrder[BusinessType] = model.BusinessTypeDingshida
|
printOrder[BusinessType] = utils.Int2Str(model.BusinessTypeDingshida)
|
||||||
} else {
|
} else {
|
||||||
printOrder[BusinessType] = model.BusinessTypeImmediate
|
printOrder[BusinessType] = utils.Int2Str(model.BusinessTypeImmediate)
|
||||||
}
|
}
|
||||||
|
|
||||||
printOrder[PayOrderTime] = utils.Time2Str(order.OrderCreatedAt)
|
printOrder[PayOrderTime] = utils.Time2Str(order.OrderCreatedAt)
|
||||||
printOrder[TrySendTime] = utils.Time2Str(order.ExpectedDeliveredTime)
|
printOrder[TrySendTime] = utils.Time2Str(order.ExpectedDeliveredTime)
|
||||||
printOrder[OrderNo] = order.VendorOrderID
|
printOrder[OrderNo] = order.VendorOrderID
|
||||||
printOrder[VendorName] = jxutils.GetVendorName(order.VendorID)
|
printOrder[VendorName] = jxutils.GetVendorName(order.VendorID)
|
||||||
printOrder[VendorOrderNo] = order.OrderSeq
|
printOrder[VendorOrderNo] = utils.Int2Str(order.OrderSeq)
|
||||||
printOrder[QRCOrder] = order.VendorOrderID
|
printOrder[QRCOrder] = order.VendorOrderID
|
||||||
printOrder[ConsigneeName] = order.ConsigneeName
|
printOrder[ConsigneeName] = order.ConsigneeName
|
||||||
printOrder[ConsigneeMobile] = order.ConsigneeMobile
|
printOrder[ConsigneeMobile] = order.ConsigneeMobile
|
||||||
@@ -86,9 +86,9 @@ func ManagerOrderAndStore(order *model.GoodsOrder, storeTel string, storeDetail
|
|||||||
}
|
}
|
||||||
skuListByte, _ := json.Marshal(skuList)
|
skuListByte, _ := json.Marshal(skuList)
|
||||||
printOrder[SkuList] = string(skuListByte)
|
printOrder[SkuList] = string(skuListByte)
|
||||||
printOrder[AllSkuTypeCount] = order.SkuCount
|
printOrder[AllSkuTypeCount] = utils.Int2Str(order.SkuCount)
|
||||||
printOrder[AllSkuCount] = order.GoodsCount
|
printOrder[AllSkuCount] = utils.Int2Str(order.GoodsCount)
|
||||||
printOrder[UserPayMoney] = order.ActualPayPrice
|
printOrder[UserPayMoney] = utils.Int64ToStr(order.ActualPayPrice)
|
||||||
printOrder[StoreName] = order.StoreName
|
printOrder[StoreName] = order.StoreName
|
||||||
printOrder[StoreTel] = storeTel
|
printOrder[StoreTel] = storeTel
|
||||||
printOrder[OfficialName] = globals.StoreName
|
printOrder[OfficialName] = globals.StoreName
|
||||||
|
|||||||
Reference in New Issue
Block a user