1
This commit is contained in:
@@ -513,7 +513,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
|
|||||||
order := savedOrderInfo.order
|
order := savedOrderInfo.order
|
||||||
|
|
||||||
// 打印通知
|
// 打印通知
|
||||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder)
|
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeWayBill)
|
||||||
|
|
||||||
// 获取订单配送平台,如果是美团则需要获取门店配置的配送方式
|
// 获取订单配送平台,如果是美团则需要获取门店配置的配送方式
|
||||||
//isBlendWay := false
|
//isBlendWay := false
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package defsch
|
|||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||||
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
|
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/weixinmsg"
|
"git.rosy.net.cn/jx-callback/business/jxutils/weixinmsg"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -33,6 +34,13 @@ func (s *DefScheduler) OnAfsOrderNew(order *model.AfsOrder, isPending bool) (err
|
|||||||
msghub.OnNewWait4ApproveAfsOrder(order)
|
msghub.OnNewWait4ApproveAfsOrder(order)
|
||||||
weixinmsg.NotifyAfsOrderStatus(order)
|
weixinmsg.NotifyAfsOrderStatus(order)
|
||||||
push.NotifyAfsOrder(order)
|
push.NotifyAfsOrder(order)
|
||||||
|
|
||||||
|
// 打印通知
|
||||||
|
if handler := partner.GetPurchaseOrderHandlerFromVendorID(order.VendorID); handler != nil {
|
||||||
|
if orderObj, err2 := handler.GetOrder(order.VendorOrgCode, order.VendorOrderID, ""); err2 == nil && order != nil {
|
||||||
|
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, orderObj, model.PrintTypeOrder)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ func PrintOrderByOrder4Store(ctx *jxcontext.Context, order *model.GoodsOrder, st
|
|||||||
PrintResult: partner.PrintResultNoPrinter,
|
PrintResult: partner.PrintResultNoPrinter,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
storeDetail, _ := dao.GetStoreDetail(db, storeID, order.VendorID, order.VendorOrgCode)
|
storeDetail, _ := dao.GetStoreDetail(db, storeID, order.VendorID, order.VendorOrgCode)
|
||||||
if storeDetail == nil && order.VendorOrderID == testVendorOrderID {
|
if storeDetail == nil && order.VendorOrderID == testVendorOrderID {
|
||||||
storeDetail = &dao.StoreDetail{
|
storeDetail = &dao.StoreDetail{
|
||||||
|
|||||||
Reference in New Issue
Block a user