1
This commit is contained in:
@@ -257,7 +257,7 @@ func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store,
|
||||
printData[WayBillStatus] = order.VendorStatus // 运单状态
|
||||
case "store":
|
||||
printData[StoreStatus] = utils.Int2Str(store.Status) // 运单状态
|
||||
case "reminder":
|
||||
case "enter":
|
||||
printData[ReminderStatus] = "1" // 催单
|
||||
}
|
||||
orderPrint, err := json.Marshal(printData)
|
||||
|
||||
@@ -50,7 +50,7 @@ const (
|
||||
RiderPhone = "riderPhone" // 骑手电话
|
||||
RejectionReason = "rejectionReason" // 拒收原因
|
||||
CustcareRefundReason = "custcareRefundReason" // 客服退款理由
|
||||
EnterTheStore = "enterTheStore" // 进店
|
||||
EnterTheStore = "enterTheStore" // 催单
|
||||
)
|
||||
|
||||
type SkuListPrintOrder struct {
|
||||
@@ -112,7 +112,7 @@ func ManagerOrderPrint(order *model.GoodsOrder, storeTel string, storeDetail *da
|
||||
printOrder[OfficialName] = globals.StoreName
|
||||
|
||||
bill, _ := partner.CurOrderManager.LoadWaybill(order.VendorWaybillID, order.WaybillVendorID)
|
||||
printOrder[StoreStatus] = utils.Int2Str(storeDetail.Status)
|
||||
//printOrder[StoreStatus] = utils.Int2Str(storeDetail.Status)
|
||||
printOrder[RiderVendorId] = utils.Int2Str(bill.WaybillVendorID)
|
||||
printOrder[RiderName] = bill.CourierName
|
||||
printOrder[RiderPhone] = bill.CourierMobile
|
||||
|
||||
@@ -562,7 +562,7 @@ func OnPayFinished(orderPay *model.OrderPay) (err error) {
|
||||
if order.OrderType != model.OrderTypeNormal {
|
||||
// if order.FromStoreID != 0 {
|
||||
if order.OrderType != model.OrderTypeDefendPrice {
|
||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder)
|
||||
}
|
||||
PickupGoods(order, false, "jxadmin")
|
||||
// }
|
||||
@@ -605,7 +605,7 @@ func OnPayFinished(orderPay *model.OrderPay) (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, storeBrandId, storeOrder.ActualPayPrice, model.BrandBillFeeTypeSys, model.BrandBillFeeTypeSys, "","")
|
||||
partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, storeBrandId, storeOrder.ActualPayPrice, model.BrandBillFeeTypeSys, model.BrandBillFeeTypeSys, "", "")
|
||||
}
|
||||
}
|
||||
case model.PayTypeTL_BrandBillCharge:
|
||||
@@ -616,7 +616,7 @@ func OnPayFinished(orderPay *model.OrderPay) (err error) {
|
||||
brandOrder.OrderFinishedAt = time.Now()
|
||||
brandOrder.Status = model.OrderStatusFinished
|
||||
if _, err = dao.UpdateEntity(dao.GetDB(), brandOrder, "OrderFinishedAt", "Status"); err == nil {
|
||||
partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, brandOrder.BrandID, brandOrder.ActualPayPrice, model.BrandBillTypeIncome, model.BrandBillFeeTypeCharge, orderPay.VendorOrderID,"")
|
||||
partner.CurStoreAcctManager.InsertBrandBill(jxcontext.AdminCtx, brandOrder.BrandID, brandOrder.ActualPayPrice, model.BrandBillTypeIncome, model.BrandBillFeeTypeCharge, orderPay.VendorOrderID, "")
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user