69 lines
1.5 KiB
TypeScript
69 lines
1.5 KiB
TypeScript
export const ORDER_STATUS_LABELS: Record<string, string> = {
|
|
PENDING_PAY: '待付款',
|
|
PENDING_SHIP: '待发货',
|
|
OUT_WAREHOUSE: '已出库',
|
|
SHIPPING: '配送中',
|
|
PENDING_RECEIVE: '待收货',
|
|
COMPLETED: '已完成',
|
|
CANCELLED: '已取消',
|
|
REFUNDING: '退款中',
|
|
REFUNDED: '已退款',
|
|
};
|
|
|
|
export const STORE_STATUS_LABELS: Record<string, string> = {
|
|
OPEN: '营业中',
|
|
PAUSED: '暂停',
|
|
CLOSED: '已关闭',
|
|
};
|
|
|
|
export const ACCOUNT_STATUS_LABELS: Record<string, string> = {
|
|
ACTIVE: '正常',
|
|
DISABLED: '停用',
|
|
};
|
|
|
|
export const COUPON_STATUS_LABELS: Record<string, string> = {
|
|
ACTIVE: '可用',
|
|
USED_UP: '已用完',
|
|
VOID: '已作废',
|
|
};
|
|
|
|
export const CITY_STATUS_LABELS: Record<string, string> = {
|
|
PENDING: '待开城',
|
|
ACTIVE: '已开城',
|
|
PAUSED: '已暂停',
|
|
};
|
|
|
|
export const PARTNER_BILL_STATUS_LABELS: Record<string, string> = {
|
|
DRAFT: '草稿',
|
|
CONFIRMED: '已确认',
|
|
PAID: '已结算',
|
|
};
|
|
|
|
export const MEDIA_TYPE_LABELS: Record<string, string> = {
|
|
IMAGE: '图片',
|
|
VIDEO: '视频',
|
|
};
|
|
|
|
export const PRODUCT_STATUS_LABELS: Record<string, string> = {
|
|
DRAFT: '草稿',
|
|
ON_SALE: '在售',
|
|
OFF_SALE: '下架',
|
|
};
|
|
|
|
export const AROMA_TYPE_LABELS: Record<string, string> = {
|
|
QINGXIANG: '清香型',
|
|
JIANGXIANG: '酱香型',
|
|
NONGXIANG: '浓香型',
|
|
};
|
|
|
|
export const LEDGER_TYPE_LABELS: Record<string, string> = {
|
|
GRANT: '发放',
|
|
REDEEM: '核销',
|
|
REFUND_VOID: '退款作废',
|
|
ADJUST: '调整',
|
|
};
|
|
|
|
export function fmtTime(v?: string | null) {
|
|
return v ? new Date(v).toLocaleString('zh-CN') : '—';
|
|
}
|