cba2ad3b3b
2、调整运单
55 lines
1.9 KiB
JavaScript
55 lines
1.9 KiB
JavaScript
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: '配载管理',
|
|
exportColumns: [
|
|
{ prop: 'loadingNo', label: '配载单号' },
|
|
{ prop: 'loadingSubNos', label: '配载子单号' },
|
|
{ prop: 'vehicleNo', label: '车牌号/航班号/船号/班列号' },
|
|
{ prop: 'driverName', label: '司机' },
|
|
{ prop: 'driverPhone', label: '联系电话' },
|
|
{ prop: 'carrierType', label: '承运类型' },
|
|
{ prop: 'departureAddress', label: '发货地' },
|
|
{ prop: 'transitAddress', label: '途经地' },
|
|
{ prop: 'arrivalAddress', label: '到货地' },
|
|
{ prop: 'carrierName', label: '承运商' },
|
|
{ prop: 'transportType', label: '运输方式' },
|
|
{ prop: 'dataSource', label: '数据来源' },
|
|
{ prop: 'createTime', label: '创建时间' },
|
|
{ prop: 'updateTime', label: '更新时间' },
|
|
{ prop: 'currentProcessNode', label: '过程节点' },
|
|
{ prop: 'businessStatus', label: '状态' },
|
|
],
|
|
createText: '新建配载',
|
|
batchCompleteText: '批量完成',
|
|
statusProp: 'businessStatus',
|
|
statusTextProp: 'businessStatusName',
|
|
dataSourceOptions,
|
|
};
|