1
This commit is contained in:
@@ -38,8 +38,16 @@ const (
|
||||
BigFont = "bigFont" // 是否为大字体
|
||||
PrintNumber = "printNumber" // 打印次数
|
||||
AppID = "appId" // 应用id
|
||||
OrderStatus = "orderStatus" // 订单状态
|
||||
WayBillStatus = "wayBillStatus" // 运单状态
|
||||
// 状态对应打印设置的变化
|
||||
OrderStatus = "orderStatus" // 订单状态
|
||||
WayBillStatus = "wayBillStatus" // 运单状态
|
||||
StoreStatusPrint = "storeStatus" // 门店状态
|
||||
RiderVendorIdPrint = "riderVendorId" // 骑手所属平台id
|
||||
RiderNamePrint = "riderName" // 骑手名称
|
||||
RiderPhonePrint = "riderPhone" // 骑手电话
|
||||
RejectionReasonPrint = "rejectionReason" // 拒收原因
|
||||
CustcareRefundReasonPrint = "custcareRefundReason" // 客服退款理由
|
||||
EnterTheStorePrint = "enterTheStore" // 进店
|
||||
)
|
||||
|
||||
type SkuListPrintOrder struct {
|
||||
@@ -50,7 +58,27 @@ type SkuListPrintOrder struct {
|
||||
Upc string `json:"upc"` // 条形码
|
||||
}
|
||||
|
||||
// ManagerOrderAndStore 京西云参数组装
|
||||
// ManagerStore 送达提示数据组装
|
||||
func ManagerStore(order *model.GoodsOrder, storeTel string, storeDetail *dao.StoreDetail) map[string]string {
|
||||
printOrder := make(map[string]string, 0)
|
||||
// 获取品牌名称
|
||||
if storeDetail != nil && storeDetail.BrandIsPrint == model.NO {
|
||||
if order.VendorOrgCode == "34665" {
|
||||
printOrder[EBailOrderNo] = globals.StoreNameEbai2
|
||||
} else {
|
||||
printOrder[EBailOrderNo] = storeDetail.BrandName
|
||||
}
|
||||
}
|
||||
|
||||
printOrder[VendOrID] = utils.Int2Str(order.VendorID)
|
||||
printOrder[VendorName] = jxutils.GetVendorName(order.VendorID)
|
||||
printOrder[StoreName] = order.StoreName
|
||||
printOrder[StoreTel] = storeTel
|
||||
printOrder[OfficialName] = globals.StoreName
|
||||
return printOrder
|
||||
}
|
||||
|
||||
// ManagerOrderAndStore 京西云参数组装(订单参数)
|
||||
func ManagerOrderAndStore(order *model.GoodsOrder, storeTel string, storeDetail *dao.StoreDetail) map[string]string {
|
||||
printOrder := make(map[string]string, 0)
|
||||
skuList := make([]*SkuListPrintOrder, 0, 0)
|
||||
|
||||
Reference in New Issue
Block a user