129 lines
3.2 KiB
TypeScript
129 lines
3.2 KiB
TypeScript
import type React from 'react';
|
|
|
|
/** 默认错误图片 */
|
|
// export const BreakImgUrl = pathAddApiString('/static/images/break_img.svg');
|
|
// export const DefaultAvatar = pathAddApiString('/static/img/avatar.svg');
|
|
|
|
/** 头部高度 */
|
|
export const headerHeight = 40;
|
|
|
|
export const OSSBaseUrl = 'https://cdn.fzcfkj.com/';
|
|
|
|
/** 头部导航高度 */
|
|
export const headerTabNavHeight = 32;
|
|
|
|
export const DefaultERPName = (() => {
|
|
return '易宝赞普惠版后台系统';
|
|
})();
|
|
|
|
export const Colors = {
|
|
primary: 'rgb(22, 93, 255)',
|
|
success: 'rgb(0, 180, 42)',
|
|
successBg: 'rgb(175, 240, 181)',
|
|
black: 'rgb(0, 0, 0)',
|
|
warning: 'rgb(255, 125, 0)',
|
|
error: 'rgb(245, 63, 63)',
|
|
danger: 'rgb(245, 63, 63)',
|
|
} as const;
|
|
|
|
export const styleConfig = {
|
|
borderRadius: 2,
|
|
} as const;
|
|
|
|
export const FlexCenter: React.CSSProperties = {
|
|
display: 'flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
};
|
|
|
|
export const FlexCenterInLine: React.CSSProperties = {
|
|
display: 'inline-flex',
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
};
|
|
|
|
/** 撤回码标记 */
|
|
export const RecallCodeMarking = '-';
|
|
|
|
/** 菜单房间 */
|
|
export const RoomName = [
|
|
{ label: '主卧', value: '主卧' },
|
|
{ label: '次卧', value: '次卧' },
|
|
{ label: '老人房', value: '老人房' },
|
|
{ label: '儿童房', value: '儿童房' },
|
|
{ label: '阳台', value: '阳台' },
|
|
{ label: '客厅', value: '客厅' },
|
|
{ label: '厨房', value: '厨房' },
|
|
{ label: '卫生间', value: '卫生间' },
|
|
];
|
|
|
|
export const OrderState = {
|
|
/** 未审核 */
|
|
ERP_ORDER_STATE_NOT: 110,
|
|
/** 部分审核 */
|
|
ERP_ORDER_STATE_PART: 120,
|
|
/** 全部审核 */
|
|
ERP_ORDER_STATE_ALL: 130,
|
|
/** 已关闭 */
|
|
ERP_ORDER_STATE_CLOSE: 140,
|
|
/** 部分销售 */
|
|
ERP_ORDER_STATE_PART_SALE: 150,
|
|
/** 完成销售 */
|
|
ERP_ORDER_STATE_ALL_SALE: 160,
|
|
} as const;
|
|
|
|
export const OrderStateColors = {
|
|
/** 未审核 */
|
|
110: 'red',
|
|
/** 部分审核 */
|
|
120: 'orange',
|
|
/** 全部审核 */
|
|
130: 'green',
|
|
/** 已关闭 */
|
|
140: 'gray',
|
|
/** 部分销售 */
|
|
150: 'blue',
|
|
/** 完成销售 */
|
|
160: 'arcoblue',
|
|
} as const;
|
|
|
|
export const BonusType = { 1: '计件', 2: '计时' };
|
|
|
|
/** 生产订单状态 */
|
|
export const ProduceState = {
|
|
/** 未审核 */
|
|
PRODUCE_ORDER_STATE_NOT: 110,
|
|
/** 部分审核 */
|
|
PRODUCE_ORDER_STATE_PART: 120,
|
|
/** 全部审核 */
|
|
PRODUCE_ORDER_STATE_ALL: 130,
|
|
/** 已关闭 */
|
|
PRODUCE_ORDER_STATE_CLOSE: 140,
|
|
/** 加工中 */
|
|
PRODUCE_ORDER_STATE_WORKING: 150,
|
|
/** 已完工 */
|
|
PRODUCE_ORDER_STATE_WORKED: 160,
|
|
} as const;
|
|
|
|
export const ProduceStateObj: Record<string, { label: string; color: string }> = {
|
|
/** 未审核 */
|
|
110: { label: '未审核', color: 'red' },
|
|
/** 部分审核 */
|
|
120: { label: '部分审核', color: 'orange' },
|
|
/** 全部审核 */
|
|
130: { label: '全部审核', color: 'green' },
|
|
/** 已关闭 */
|
|
140: { label: '已关闭', color: 'gray' },
|
|
/** 加工中 */
|
|
150: { label: '加工中', color: 'blue' },
|
|
/** 已完工 */
|
|
160: { label: '已完工', color: 'arcoblue' },
|
|
} as const;
|
|
|
|
/** 工序状态 */
|
|
export const ProcessState: Record<string, { label: string; color: string }> = {
|
|
0: { label: '未开始', color: '#0fc6c2' },
|
|
1: { label: '进行中', color: '#7bc616' },
|
|
2: { label: '已完成', color: '#86909c' },
|
|
};
|