import { dataSourceOptions } from './common'; export const transportTypeDict = { dicUrl: '/blade-system/dict-biz/dictionary?code=transport_type', props: { label: 'dictValue', value: 'dictKey', }, }; export const carrierTypeOptions = ['承运商', '自运', '网签平台']; export const loadingStatusOptions = [ { label: '草稿', value: 'draft' }, { label: '待执行', value: 'pending' }, { label: '进行中', value: 'running' }, { label: '已完成', value: 'completed' }, { label: '已取消', value: 'cancelled' }, ]; export const loadingStatusMap = loadingStatusOptions.reduce((result, item) => { result[item.value] = item.label; return result; }, {}); export const loadingManageConfig = { title: '配载管理', permission: 'loading_manage', exportUrl: '/blade-transport/loading-manage/export-loading-manage', exportName: '配载管理', createText: '新建配载', batchCompleteText: '批量完成', statusProp: 'businessStatus', statusTextProp: 'businessStatusName', dataSourceOptions, };