1
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
"git.rosy.net.cn/jx-callback/business/partner"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
@@ -39,9 +40,11 @@ const (
|
||||
PrintNumber = "printNumber" // 打印次数
|
||||
AppID = "appId" // 应用id
|
||||
// 状态对应打印设置的变化
|
||||
OrderStatus = "orderStatus" // 订单状态
|
||||
WayBillStatus = "wayBillStatus" // 运单状态
|
||||
StoreStatus = "storeStatus" // 门店状态
|
||||
OrderStatus = "orderStatus" // 订单状态
|
||||
WayBillStatus = "wayBillStatus" // 运单状态
|
||||
StoreStatus = "storeStatus" // 门店状态
|
||||
ReminderStatus = "reminderStatus" // 催单状态
|
||||
|
||||
RiderVendorId = "riderVendorId" // 骑手所属平台id
|
||||
RiderName = "riderName" // 骑手名称
|
||||
RiderPhone = "riderPhone" // 骑手电话
|
||||
@@ -107,6 +110,12 @@ func ManagerOrderPrint(order *model.GoodsOrder, storeTel string, storeDetail *da
|
||||
printOrder[StoreName] = order.StoreName
|
||||
printOrder[StoreTel] = storeTel
|
||||
printOrder[OfficialName] = globals.StoreName
|
||||
|
||||
bill, _ := partner.CurOrderManager.LoadWaybill(order.VendorWaybillID, order.WaybillVendorID)
|
||||
printOrder[StoreStatus] = utils.Int2Str(storeDetail.Status)
|
||||
printOrder[RiderVendorId] = utils.Int2Str(bill.WaybillVendorID)
|
||||
printOrder[RiderName] = bill.CourierName
|
||||
printOrder[RiderPhone] = bill.CourierMobile
|
||||
return printOrder
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user