新增客服一键交接功能
This commit is contained in:
@@ -23,6 +23,12 @@ func adminActionsForOrder(order model.RentalOrder) *AdminActionsDTO {
|
||||
Label: "客服代交接",
|
||||
}
|
||||
}
|
||||
if canAdminForceHandoff(order) {
|
||||
actions.ForceHandoff = &AdminActionDTO{
|
||||
Enabled: true,
|
||||
Label: "客服一键交接",
|
||||
}
|
||||
}
|
||||
if canAdminPlatformCheckoutConfirm(order) {
|
||||
actions.PlatformCheckoutConfirm = &AdminActionDTO{
|
||||
Enabled: true,
|
||||
@@ -43,7 +49,7 @@ func adminActionsForOrder(order model.RentalOrder) *AdminActionsDTO {
|
||||
Label: "确认线下结算",
|
||||
}
|
||||
}
|
||||
if actions.ResetHandoff == nil && actions.PlatformHandoff == nil &&
|
||||
if actions.ResetHandoff == nil && actions.PlatformHandoff == nil && actions.ForceHandoff == nil &&
|
||||
actions.PlatformCheckoutConfirm == nil && actions.PlatformCheckoutCounter == nil &&
|
||||
actions.PlatformCheckoutDispute == nil && actions.PlatformOfflineSettlement == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user