You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.4 KiB
PHTML
80 lines
2.4 KiB
PHTML
11 months ago
|
<?php
|
||
|
|
||
|
class FulfillmentOrderConst {
|
||
|
|
||
|
/**
|
||
|
* 跨境全托管发货单状态:待发货
|
||
|
*/
|
||
|
const fulfillmentOrderStatusWaitSellerSendGoods = 1;
|
||
|
/**
|
||
|
* 跨境全托管发货单状态:已发货待签收
|
||
|
*/
|
||
|
const fulfillmentOrderStatusWaitBuyerConfirmGoods = 2;
|
||
|
/**
|
||
|
* 跨境全托管发货单状态:已签收
|
||
|
*/
|
||
|
const fulfillmentOrderStatusFinished = 3;
|
||
|
|
||
|
/**
|
||
|
* 首次发货,仅待发货订单可传入
|
||
|
*/
|
||
|
const orderLogisticsSendRedeliveryTypeFirst = 1;
|
||
|
/**
|
||
|
* 修改发货,调用成功后将会覆盖原发货信息,仅已发货订单可传入
|
||
|
*/
|
||
|
const orderLogisticsSendRedeliveryTypeModify = 2;
|
||
|
|
||
|
const orderTabAll = 'all';
|
||
|
const orderTabWaitSend = 'wait_send';
|
||
|
const orderTabHasSend = 'has_send';
|
||
|
const orderTabFinished = 'finished';
|
||
|
|
||
|
const promiseDeliverTimeOneDay = '24';
|
||
|
const promiseDeliverTimeTwoDay = '48';
|
||
|
const promiseDeliverTimeThreeDay = '72';
|
||
|
const promiseDeliverTimeOvertime = 'overtime';
|
||
|
|
||
|
const willDelaySend = 'willDelaySend';
|
||
|
const hasDelaySend = 'hasDelaySend';
|
||
|
const courierCollect = 'courierCollect';
|
||
|
|
||
|
const outstorageSourceManual = 'manual';
|
||
|
|
||
|
const goodsLabelCodePrinted = 'goodsLabelCodePrinted';
|
||
|
const goodsLabelCodeNoPrinted = 'goodsLabelCodeNoPrinted';
|
||
|
|
||
|
|
||
|
public static function getPromiseDeliverTimeFilterOptions() {
|
||
|
return [
|
||
|
'' => '全部',
|
||
|
self::promiseDeliverTimeOneDay => '24小时内需送达',
|
||
|
self::promiseDeliverTimeTwoDay => '48小时内需送达',
|
||
|
self::promiseDeliverTimeThreeDay => '72小时内需送达',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public static function getFulfillmentStatusTextByStatus($status) {
|
||
|
$text = '';
|
||
|
switch ($status) {
|
||
|
case self::fulfillmentOrderStatusWaitSellerSendGoods:
|
||
|
$text = '待发货';
|
||
|
break;
|
||
|
case self::fulfillmentOrderStatusWaitBuyerConfirmGoods:
|
||
|
$text = '已发货待签收';
|
||
|
break;
|
||
|
case self::fulfillmentOrderStatusFinished:
|
||
|
$text = '已签收';
|
||
|
break;
|
||
|
}
|
||
|
return $text;
|
||
|
}
|
||
|
|
||
|
public static function getGoodsLabelCodePrintStatusFilter() {
|
||
|
return [
|
||
|
'' => '全部',
|
||
|
self::goodsLabelCodePrinted => '已打印',
|
||
|
self::goodsLabelCodeNoPrinted => '未打印',
|
||
|
];
|
||
|
}
|
||
|
|
||
|
}
|