f0b99ea9da
批量删除用户 模板上传图片数量限制改成30 小飞侠接口配置
110 lines
2.5 KiB
TypeScript
110 lines
2.5 KiB
TypeScript
/** 与后端 PaginationQueryDto @Max(100) 一致,下拉选项拉取勿超过此值 */
|
|
export const ADMIN_OPTIONS_PAGE_SIZE = 100;
|
|
|
|
export const DELIVERY_PROVIDER_LABELS: Record<string, string> = {
|
|
XFX: '小飞侠',
|
|
LOGISTICS: '物流快递',
|
|
MANUAL: '手动',
|
|
};
|
|
|
|
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: '视频',
|
|
FILE: '文件',
|
|
};
|
|
|
|
export const RESOURCE_OWNER_TYPE_LABELS: Record<string, string> = {
|
|
PRODUCT: '商品',
|
|
STORE: '门店',
|
|
PARTNER: '合伙人',
|
|
USER: '用户',
|
|
ORDER: '订单',
|
|
HQ: '总部',
|
|
};
|
|
|
|
export const RESOURCE_BIZ_TYPE_LABELS: Record<string, string> = {
|
|
COVER: '封面',
|
|
ENV: '环境图',
|
|
CONTRACT: '合同',
|
|
CAROUSEL: '轮播',
|
|
DETAIL: '详情',
|
|
AVATAR: '头像',
|
|
QRCODE: '二维码',
|
|
SIGN_PHOTO: '签收照',
|
|
VIDEO: '视频',
|
|
};
|
|
|
|
export const RESOURCE_STATUS_LABELS: Record<string, string> = {
|
|
ACTIVE: '有效',
|
|
DELETED: '已删除',
|
|
};
|
|
|
|
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 DETAIL_TEMPLATE_STATUS_LABELS: Record<string, string> = {
|
|
ACTIVE: '启用',
|
|
DISABLED: '停用',
|
|
};
|
|
|
|
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') : '—';
|
|
}
|