|
|
<?php
|
|
|
|
|
|
class AfterSaleConst {
|
|
|
|
|
|
const tabAll = 'all';
|
|
|
const tabWaitProcessRefund = 'wait_process_refund';//未发货退款待处理
|
|
|
const tabWaitProcessedDeliveredAndOnlyRefund = 'wait_processed_delivered_and_only_refund';//已发货仅退款待处理
|
|
|
const tabWaitProcessReturnGoods = 'wait_process_return_goods';//退货待处理
|
|
|
const tabWaitSellerReceivingGoods = 'wait_seller_receiving_goods';//待商家收货
|
|
|
const tabArbitration = 'arbitration';//仲裁中
|
|
|
const tabPriceProtection = 'priceProtection';//价保
|
|
|
const tabWaitSellerExchangeAudit = 'wait_seller_exchange_audit';//换货待卖家处理
|
|
|
const tabWaitSellerResendAudit = 'wait_seller_resend_audit';//补寄待卖家处理
|
|
|
const tabFastRefund = 'fast_refund';//极速退款售后单
|
|
|
|
|
|
const aftersaleStatusPreSaleAllAudit = 2;//发货前退款待处理
|
|
|
const aftersaleStatusRefundAudit = 3;//发货后仅退款待处理
|
|
|
const aftersaleStatusReturnAudit = 4;//退货待处理
|
|
|
const aftersaleStatusExchangeAudit = 5;//换货待处理
|
|
|
const aftersaleStatusAfterSaleAudit = 6;//待商家处理
|
|
|
const aftersaleStatusWaitBuyerReturnGoods = 7;//待买家退货
|
|
|
const aftersaleStatusWaitSellerSendGoods = 8;//待卖家发货
|
|
|
const aftersaleStatusReturnReceive = 11;//待商家收货
|
|
|
const aftersaleStatusAuditRefunding = 10;//同意退款,退款中
|
|
|
const aftersaleStatusRefundSuccess = 12;//商家同意退款:发货前退款,商家同意退款|发货后仅退款,商家同意退款|发货后退货退款,商家确认收货
|
|
|
const aftersaleStatusReturnShip = 13;//(接口和抖店后台)实际已经显示 "换货,待买家收货"
|
|
|
const aftersaleStatusWaitBuyerReceive = 14;//(接口和抖店后台)实际已经显示换货成功
|
|
|
const aftersaleStatusExchangeSuccess = 15;//换货成功
|
|
|
const aftersaleStatusRefuse = 16;//拒绝售后
|
|
|
const aftersaleStatusReceiveRefuse = 17;//退货后拒绝退款
|
|
|
const aftersaleStatusUploadRefund = 18;//待商家上传退款凭证
|
|
|
const aftersaleStatusWaitResend = 21;//待商家发货,当卖家同意补寄售后申请后,售后单会流转到这—状态
|
|
|
const aftersaleStatusResendSuccess = 22;//补寄成功
|
|
|
const aftersaleStatusRefuseAfterSaleApply = 27;//拒绝售后申请
|
|
|
const aftersaleStatusClose = 28;//售后关闭
|
|
|
const aftersaleStatusSellerRefuseToReturnGoodsAfter = 29;//退货后商家拒绝
|
|
|
const aftersaleStatusSuccess = 51;//订单取消成功
|
|
|
const aftersaleStatusReverseSuccess = 53;//逆向交易已成功
|
|
|
|
|
|
const aftersaleTypeReturnGoodsAndRefund = 0;//售后退货退款
|
|
|
const aftersaleTypeAfterSaleOnlyRefund = 1;//售后仅退款
|
|
|
const aftersaleTypeRefundOnlyBeforeSale = 2;//售前仅退款
|
|
|
const aftersaleTypeExchangeGoods = 3;//换货
|
|
|
const aftersaleTypePriceProtection = 6;//价保
|
|
|
const aftersaleTypeResend = 7;//补寄
|
|
|
|
|
|
const commentTypeNoReceived = 'noReceived';//未收到货
|
|
|
const commentTypeReceived = 'received';//已收到货
|
|
|
|
|
|
const refundStatusNoNeedRefund = 0;//无需退款
|
|
|
const refundStatusWaitRefund = 1;//待退款
|
|
|
const refundStatusRefunding = 2;//退款中
|
|
|
const refundStatusSuccess = 3;//退款成功
|
|
|
const refundStatusFail = 4;//退款失败
|
|
|
|
|
|
const operateTypeAgreeReturnGoodsApply = 101;//101 同意退货申请(一次审核) Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
|
|
const operateTypeRefuseReturnGoodsApply = 102;//拒绝退货申请(一次审核)reason , evidence
|
|
|
const operateTypeAgreeReturnGoods = 111;//同意退货(二次审核)
|
|
|
const operateTypeRefuseReturnGoods = 112;//拒绝退货 (二次审核) reason , evidence
|
|
|
const operateTypeReturnGoodsToRefund = 121;//退货转退款
|
|
|
const operateTypeAgreeOnlyRefund = 201;//同意仅退款
|
|
|
const operateTypeRefuseOnlyRefund = 202;//拒绝仅退款 reason , evidence
|
|
|
const operateTypeAgreeExchangeGoodsApply = 301;//同意换货申请(一次审核)Logistics.ReceiverAddressId 或 Logistics.AfterSaleAddressDetail
|
|
|
const operateTypeRefuseExchangeGoodsApply = 302;//拒绝换货申请(一次审核)reason,evidence
|
|
|
const operateTypeAgreeExchangeGoods = 311;//同意换货(二次审核)logistics.companyCode,logistics.logisticsCode
|
|
|
const operateTypeRefuseExchangeGoods = 312;//拒绝换货(二次审核)reason,evidence
|
|
|
const operateTypeExchangeGoodsToRefund = 321;//换货转退款
|
|
|
const operateTypeAgreePreSaleApply = 401;//同意售前退申请
|
|
|
const operateTypeAgreeResendApply = 501; //同意补寄申请
|
|
|
const operateTypeRefuseResendApply = 502; //拒绝补寄申请
|
|
|
|
|
|
const aftersaleSendTypeResend = 1; //发货类型, 1-补寄
|
|
|
|
|
|
const linkTypeMobile = 0;//0-手机
|
|
|
const linkTypeGeneralLandline = 1;//1-普通座机
|
|
|
const linkTypeCompanyLandline = 2;//2-企业座机
|
|
|
|
|
|
const cancelSendGoodsReturnMoney = 'returnMoney';
|
|
|
const cancelSendGoodsReturnGoodsToWareHouse = 'returnGoodsToWareHouse';
|
|
|
const cancelSendGoodsApplyLogisticsIntercept = 'applyLogisticsIntercept';
|
|
|
|
|
|
const refundTypeFastRefund = 1;
|
|
|
const refundTypeAssistant = 2;
|
|
|
|
|
|
const warningSourcePrint = 'print';
|
|
|
const warningSourcePurchase = 'purchase';
|
|
|
const warningSourceDistribution = 'distribution';
|
|
|
|
|
|
public static function getTabTypeAndAftersaleStatusMap() {
|
|
|
return [
|
|
|
self::tabWaitProcessRefund => self::aftersaleStatusAfterSaleAudit,
|
|
|
self::tabWaitProcessedDeliveredAndOnlyRefund => self::aftersaleStatusAfterSaleAudit,
|
|
|
self::tabWaitProcessReturnGoods => self::aftersaleStatusAfterSaleAudit,
|
|
|
self::tabWaitSellerReceivingGoods => self::aftersaleStatusReturnReceive,
|
|
|
self::tabWaitSellerExchangeAudit => self::aftersaleStatusAfterSaleAudit,
|
|
|
self::tabWaitSellerResendAudit => self::aftersaleStatusAfterSaleAudit,
|
|
|
self::tabAll => '',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getTabTypeAndAftersaleTypeMap() {
|
|
|
return [
|
|
|
self::tabWaitProcessRefund => self::aftersaleTypeRefundOnlyBeforeSale,
|
|
|
self::tabWaitProcessedDeliveredAndOnlyRefund => self::aftersaleTypeAfterSaleOnlyRefund,
|
|
|
self::tabWaitProcessReturnGoods => self::aftersaleTypeReturnGoodsAndRefund,
|
|
|
self::tabPriceProtection => self::aftersaleTypePriceProtection,
|
|
|
self::tabWaitSellerExchangeAudit => self::aftersaleTypeExchangeGoods,
|
|
|
self::tabWaitSellerResendAudit => self::aftersaleTypeResend,
|
|
|
self::tabWaitSellerReceivingGoods => '',
|
|
|
self::tabAll => '',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getTabTypeAndRefundTypeMap() {
|
|
|
return [
|
|
|
self::tabFastRefund => self::refundTypeFastRefund,
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getAftersaleTypeMap() {
|
|
|
return [
|
|
|
self::aftersaleTypeReturnGoodsAndRefund => '退货退款',
|
|
|
self::aftersaleTypeAfterSaleOnlyRefund => '已发货仅退款',
|
|
|
self::aftersaleTypeRefundOnlyBeforeSale => '未发货仅退款',
|
|
|
self::aftersaleTypeExchangeGoods => '换货',
|
|
|
self::aftersaleTypePriceProtection => '价保',
|
|
|
self::aftersaleTypeResend => '补寄',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getAftersaleStatusMap() {
|
|
|
return [
|
|
|
self::aftersaleStatusPreSaleAllAudit => '发货前退款待处理',
|
|
|
self::aftersaleStatusRefundAudit => '发货后仅退款待处理',
|
|
|
self::aftersaleStatusReturnAudit => '退货待处理',
|
|
|
self::aftersaleStatusExchangeAudit => '换货待处理',
|
|
|
self::aftersaleStatusWaitBuyerReturnGoods => '待买家退货',
|
|
|
self::aftersaleStatusAfterSaleAudit => '待商家处理',
|
|
|
self::aftersaleStatusReturnReceive => '待商家收货',
|
|
|
self::aftersaleStatusAuditRefunding => '同意退款,退款中',
|
|
|
self::aftersaleStatusRefundSuccess => '同意退款,退款成功',
|
|
|
self::aftersaleStatusClose => '售后关闭',
|
|
|
self::aftersaleStatusReturnShip => '待买家收货',
|
|
|
self::aftersaleStatusWaitBuyerReceive => '换货成功',
|
|
|
self::aftersaleStatusExchangeSuccess => '换货成功',
|
|
|
self::aftersaleStatusRefuse => '拒绝售后',
|
|
|
self::aftersaleStatusReceiveRefuse => '退货后拒绝退款',
|
|
|
self::aftersaleStatusUploadRefund => '待商家上传退款凭证',
|
|
|
self::aftersaleStatusRefuseAfterSaleApply => '拒绝售后申请',
|
|
|
self::aftersaleStatusSellerRefuseToReturnGoodsAfter => '退货后商家拒绝',
|
|
|
self::aftersaleStatusWaitSellerSendGoods => '补寄待商家发货',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getSellerRefuseReceiveReturnGoodsCommentMap() {
|
|
|
return [
|
|
|
1 => '未收到货(未填写退货单号)',
|
|
|
2 => '退货与原订单不符(商品不符、退货地址不符)',
|
|
|
3 => '退回商品影响二次销售/订单超出售后时效(订单完成超7天)',
|
|
|
4 => '买家误操作/取消申请',
|
|
|
5 => '已与买家协商补偿,包括差价、赠品、额外补偿',
|
|
|
6 => '已与买家协商补发商品/已与买家协商换货',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getSellerRefuseReturnGoodsApplyCommentMap() {
|
|
|
return [
|
|
|
1 => '未收到货(未填写退货单号)',
|
|
|
2 => '退货与原订单不符(商品不符、退货地址不符)',
|
|
|
3 => '退回商品影响二次销售, 订单超出售后时效(订单完成超7天)',
|
|
|
4 => '买家误操作/取消申请',
|
|
|
5 => '已与买家协商补偿,包括差价、赠品、额外补偿',
|
|
|
6 => '已与买家协商补发商品, 已与买家协商换货',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getSellerRefuseExchangeApplyCommentMap() {
|
|
|
return [
|
|
|
1 => '买家误操作/取消申请',
|
|
|
2 => '已与买家协商补偿,包括差价、赠品、额外补偿',
|
|
|
3 => '已与买家协商补发商品',
|
|
|
4 => '已与买家协商换货',
|
|
|
5 => '运费未协商—致',
|
|
|
6 => '商品没问题,买家未举证或举证无效',
|
|
|
7 => '已在约定时间发货',
|
|
|
8 => '发票没问题,买家未举证',
|
|
|
9 => '发票已补寄',
|
|
|
10 => '买家发票信息不完整',
|
|
|
11 => '申请时间已超7天无理由退换货时间',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getSellerRefuseExchangeConfirmCommentMap() {
|
|
|
return [
|
|
|
1 => '买家上传的单号有误,商家尚未收到货,请核实正确物流单号后重新上传',
|
|
|
2 => '退货与原订单不符(商品不符、退货地址不符)',
|
|
|
3 => '退回商品影响二次销售',
|
|
|
4 => '运费未协商一致',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getSellerRefuseAfterDeliveryAndOnlyRefundApplyCommentMap() {
|
|
|
return [
|
|
|
self::commentTypeNoReceived => [
|
|
|
self::aftersaleStatusAfterSaleAudit => [
|
|
|
OrderConst::orderTypeRealGoods => [
|
|
|
1 => '商品退回后才能退款',
|
|
|
2 => '买家已签收',
|
|
|
3 => '买家误操作/取消申请',
|
|
|
4 => '问题已解决,待用户收货',
|
|
|
],
|
|
|
OrderConst::orderTypeGeneralVirtual => [
|
|
|
14 => '买家误操作/取消申请',
|
|
|
15 => '协商一致,用户取消退款',
|
|
|
],
|
|
|
],
|
|
|
],
|
|
|
self::commentTypeReceived => [
|
|
|
self::aftersaleStatusAfterSaleAudit => [
|
|
|
OrderConst::orderTypeRealGoods => [
|
|
|
5 => '商品退回后才能退款',
|
|
|
6 => '买家误操作/取消申请',
|
|
|
7 => '协商一致,用户取消退款',
|
|
|
8 => '已与买家协商补偿,包括差价、赠品、额外补偿',
|
|
|
9 => '已与买家协商补发商品',
|
|
|
10 => '已与买家协商换货',
|
|
|
],
|
|
|
OrderConst::orderTypeGeneralVirtual => [
|
|
|
16 => '买家误操作/取消申请',
|
|
|
17 => '协商一致,用户取消退款',
|
|
|
18 => '商品影响二次销售',
|
|
|
19 => '定制商品不支持七天无理由退货,定制商品不接受质量问题以外的退货',
|
|
|
],
|
|
|
],
|
|
|
self::aftersaleStatusReturnReceive => [
|
|
|
OrderConst::orderTypeRealGoods => [
|
|
|
11 => '未收到货/退货单号有误',
|
|
|
12 => '退货与原订单不符(商品不符、退货地址不符)',
|
|
|
13 => '退回商品影响二次销售',
|
|
|
20 => '定制商品不支持七天无理由退货,定制商品不接受质量问题以外的退货',
|
|
|
],
|
|
|
],
|
|
|
],
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getWaitShopProcessAftersaleStatus() {
|
|
|
return [
|
|
|
self::aftersaleStatusPreSaleAllAudit,
|
|
|
self::aftersaleStatusRefundAudit,
|
|
|
self::aftersaleStatusReturnAudit,
|
|
|
self::aftersaleStatusExchangeAudit,
|
|
|
self::aftersaleStatusWaitBuyerReturnGoods,
|
|
|
self::aftersaleStatusAfterSaleAudit,
|
|
|
self::aftersaleStatusReturnReceive,
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getAfterSaleCloseOrCancelStatusList() {
|
|
|
return [
|
|
|
self::aftersaleStatusClose,
|
|
|
self::aftersaleStatusRefuseAfterSaleApply,
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getIsPurchaseFilterAndTextMap() {
|
|
|
return [
|
|
|
1 => '已采购',
|
|
|
2 => '未采购',
|
|
|
];
|
|
|
}
|
|
|
|
|
|
public static function getOrderSortTypeMap() {
|
|
|
return array(
|
|
|
'orderApplyTimeDesc' => '按申请时间↓',
|
|
|
'orderApplyTimeAsc' => '按申请时间↑',
|
|
|
'orderUserAsc' => '按收件人排序',
|
|
|
);
|
|
|
}
|
|
|
|
|
|
public static function getIsPrintFilterAndTextMap() {
|
|
|
return [
|
|
|
OrderPrintConst::pExpressStatusPrinted => '已打印',
|
|
|
OrderPrintConst::pExpressStatusNoPrinted => '未打印',
|
|
|
// OrderPrintConst::pExpressRecycled => '已回收',
|
|
|
];
|
|
|
}
|
|
|
} |