继续完善居家服务模块
This commit is contained in:
@@ -14,16 +14,14 @@ export function getDeliveryOrderTabs(): Array<DeliveryTabOptionType> {
|
||||
}
|
||||
|
||||
export function isHistoryStatus(status: DeliveryOrderStatus): boolean {
|
||||
return status == 'completed' || status == 'rejected' || status == 'cancelled' || status == 'abnormal' || status == 'terminated' || status == 'archived'
|
||||
return status == 'completed' || status == 'pending_acceptance' || status == 'rejected' || status == 'cancelled' || status == 'abnormal' || status == 'terminated' || status == 'archived'
|
||||
}
|
||||
|
||||
export function getDeliveryStatusLabel(status: DeliveryOrderStatus): string {
|
||||
if (status == 'pending_assignment' || status == 'pending_accept') return '待接单'
|
||||
if (status == 'accepted') return '已接单'
|
||||
if (status == 'waiting_departure') return '待出发'
|
||||
if (status == 'departed' || status == 'on_the_way') return '已出发'
|
||||
if (status == 'arrived') return '已到达'
|
||||
if (status == 'checked_in') return '已签到'
|
||||
if (status == 'in_service' || status == 'serving') return '服务中'
|
||||
if (status == 'pending_confirm' || status == 'pending_acceptance' || status == 'pending_submit') return '待确认'
|
||||
if (status == 'completed') return '已完成'
|
||||
@@ -36,12 +34,11 @@ export function getDeliveryStatusLabel(status: DeliveryOrderStatus): string {
|
||||
|
||||
export function getPrimaryActionText(status: DeliveryOrderStatus): string {
|
||||
if (status == 'pending_assignment' || status == 'pending_accept') return '接单'
|
||||
if (status == 'accepted' || status == 'waiting_departure') return '我已出发'
|
||||
if (status == 'accepted' || status == 'waiting_departure') return '前往服务'
|
||||
if (status == 'departed' || status == 'on_the_way') return '我已到达'
|
||||
if (status == 'arrived') return '签到'
|
||||
if (status == 'checked_in') return '开始服务'
|
||||
if (status == 'in_service' || status == 'serving') return '填写记录'
|
||||
if (status == 'pending_confirm' || status == 'pending_acceptance' || status == 'pending_submit') return '完成服务'
|
||||
if (status == 'pending_confirm' || status == 'pending_acceptance' || status == 'pending_submit') return '等待验收'
|
||||
if (status == 'completed') return '查看记录'
|
||||
if (status == 'abnormal' || status == 'exception_pending') return '查看异常'
|
||||
return '查看详情'
|
||||
@@ -49,12 +46,11 @@ export function getPrimaryActionText(status: DeliveryOrderStatus): string {
|
||||
|
||||
export function getNextStepText(status: DeliveryOrderStatus): string {
|
||||
if (status == 'pending_assignment' || status == 'pending_accept') return '确认是否接单'
|
||||
if (status == 'accepted' || status == 'waiting_departure') return '前往服务对象地址'
|
||||
if (status == 'accepted' || status == 'waiting_departure') return '前往服务对象地址并发起导航'
|
||||
if (status == 'departed' || status == 'on_the_way') return '到达服务地点'
|
||||
if (status == 'arrived') return '完成签到确认'
|
||||
if (status == 'checked_in') return '开始本次上门服务'
|
||||
if (status == 'in_service' || status == 'serving') return '补充服务记录'
|
||||
if (status == 'pending_confirm' || status == 'pending_acceptance' || status == 'pending_submit') return '确认并完成订单'
|
||||
if (status == 'in_service' || status == 'serving') return '补充服务记录并完成服务'
|
||||
if (status == 'pending_confirm' || status == 'pending_acceptance' || status == 'pending_submit') return '等待用户确认验收'
|
||||
if (status == 'completed') return '查看历史记录'
|
||||
if (status == 'abnormal' || status == 'exception_pending') return '跟进异常处置'
|
||||
return '查看订单详情'
|
||||
|
||||
Reference in New Issue
Block a user