94 lines
1.6 KiB
TypeScript
94 lines
1.6 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: 'default',
|
|
},
|
|
pending: {
|
|
text: '待审核',
|
|
status: 'warning',
|
|
},
|
|
private: {
|
|
text: '私有',
|
|
status: 'warning',
|
|
},
|
|
trash: {
|
|
text: '已删除',
|
|
status: 'error',
|
|
},
|
|
'auto-draft': {
|
|
text: '字段草稿',
|
|
status: 'default',
|
|
},
|
|
future: {
|
|
text: '定时发布',
|
|
status: 'success',
|
|
},
|
|
inherit: {
|
|
text: '继承状态',
|
|
status: 'default',
|
|
},
|
|
};
|
|
|
|
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',
|
|
},
|
|
};
|