121 lines
2.1 KiB
TypeScript
121 lines
2.1 KiB
TypeScript
import { ProSchemaValueEnumObj } from '@ant-design/pro-components';
|
|
|
|
export const DEFAULT_NAME = 'YOONE';
|
|
|
|
export const PRODUCT_STATUS_ENUM: ProSchemaValueEnumObj = {
|
|
publish: {
|
|
text: '已发布',
|
|
status: 'success',
|
|
},
|
|
draft: {
|
|
text: '草稿',
|
|
status: 'draft',
|
|
},
|
|
pending: {
|
|
text: '待审核',
|
|
status: 'pending',
|
|
},
|
|
private: {
|
|
text: '私有',
|
|
status: 'private',
|
|
},
|
|
trash: {
|
|
text: '已删除',
|
|
status: 'error',
|
|
},
|
|
'auto-draft': {
|
|
text: '自动草稿',
|
|
status: 'auto-draft',
|
|
},
|
|
future: {
|
|
text: '定时发布',
|
|
status: 'success',
|
|
},
|
|
inherit: {
|
|
text: '继承状态',
|
|
status: 'inherit',
|
|
},
|
|
};
|
|
|
|
export const PRODUCT_STOCK_STATUS_ENUM: ProSchemaValueEnumObj = {
|
|
instock: {
|
|
text: '上架',
|
|
status: 'instock',
|
|
},
|
|
outofstock: {
|
|
text: 'out of stock',
|
|
status: 'outofstock',
|
|
},
|
|
onbackorder: {
|
|
text: 'on back order',
|
|
status: 'onbackorder',
|
|
},
|
|
};
|
|
|
|
export const Purchase_Order_STATUS_ENUM: ProSchemaValueEnumObj = {
|
|
draft: {
|
|
text: '草稿',
|
|
status: 'default',
|
|
},
|
|
submitted: {
|
|
text: '已发货',
|
|
status: 'warning',
|
|
},
|
|
received: {
|
|
text: '已到达',
|
|
status: 'success',
|
|
disabled: true,
|
|
},
|
|
};
|
|
|
|
export const ORDER_STATUS_ENUM: ProSchemaValueEnumObj = {
|
|
pending: {
|
|
text: '待确认',
|
|
status: 'default',
|
|
},
|
|
processing: {
|
|
text: '待发货',
|
|
status: 'success',
|
|
},
|
|
completed: {
|
|
text: '已完成',
|
|
status: 'success',
|
|
},
|
|
cancelled: {
|
|
text: '已取消',
|
|
status: 'error',
|
|
},
|
|
refunded: {
|
|
text: '已退款',
|
|
status: 'warning',
|
|
},
|
|
failed: {
|
|
text: '失败',
|
|
status: 'error',
|
|
},
|
|
after_sale_pending: {
|
|
text: '售后处理中',
|
|
status: 'warning',
|
|
},
|
|
pending_reshipment: {
|
|
text: '待补发',
|
|
status: 'warning',
|
|
},
|
|
pending_refund: {
|
|
text: '待退款',
|
|
status: 'warning',
|
|
},
|
|
refund_requested: {
|
|
text: '已申请退款',
|
|
status: 'refund_approved',
|
|
},
|
|
refund_approved: {
|
|
text: '退款申请已通过',
|
|
status: 'refund_approved',
|
|
},
|
|
refund_cancelled: {
|
|
text: '已取消退款',
|
|
status: 'refund_cancelled',
|
|
}
|
|
};
|