You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
892 B
45 lines
892 B
12 months ago
|
export const MAX_PAGE_SIZE = 10000000
|
||
|
|
||
|
export const ASSET_STATUS = [
|
||
|
{ label: '闲置', value: 0 },
|
||
|
{ label: '在用', value: 1 },
|
||
|
{ label: '借用中', value: 2 },
|
||
|
{ label: '维修中', value: 3 },
|
||
|
{ label: '调拨中', value: 4 },
|
||
|
{ label: '待报废', value: 5 },
|
||
|
{ label: '已处置', value: 6 },
|
||
|
{ label: '库存', value: 7 },
|
||
|
{ label: '已报废', value: 8 },
|
||
|
]
|
||
|
|
||
|
export const ASSET_STATUS_MAP = () => {
|
||
|
return ASSET_STATUS.reduce(
|
||
|
(map, item) => {
|
||
|
map[item.value] = item.label
|
||
|
return map
|
||
|
},
|
||
|
{} as Record<number, string>,
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const ASSET_SOURCE_MAP = new Map([
|
||
|
[0, '捐赠'],
|
||
|
[1, '赠送'],
|
||
|
[2, '其他'],
|
||
|
[3, '采购'],
|
||
|
[4, '自建'],
|
||
|
[4, '自购'],
|
||
|
])
|
||
|
|
||
|
export const MAINTENANCE_STATUS = new Map([
|
||
|
[0, '不需要'],
|
||
|
[1, '脱保'],
|
||
|
[2, '在保'],
|
||
|
[3, '未知'],
|
||
|
])
|
||
|
|
||
|
export const MAINTENANCE_TYPE = new Map([
|
||
|
[0, '原厂'],
|
||
|
[1, '第三方'],
|
||
|
])
|