1、调整凭证
2、调整运单
This commit is contained in:
@@ -8,7 +8,7 @@ export const transportTypeDict = {
|
||||
},
|
||||
};
|
||||
|
||||
export const carrierTypeOptions = ['承运商', '自运', '网货平台'];
|
||||
export const carrierTypeOptions = ['承运商', '自运'];
|
||||
|
||||
export const loadingStatusOptions = [
|
||||
{ label: '草稿', value: 'draft' },
|
||||
|
||||
@@ -377,6 +377,8 @@ export const config = {
|
||||
title: '运单管理',
|
||||
permission: 'waybill_manage',
|
||||
importUrl: '/blade-transport/waybill-manage/import-waybill-manage',
|
||||
exportUrl: '/blade-transport/waybill-manage/export-waybill-manage',
|
||||
exportName: '运单管理',
|
||||
defaultForm: {
|
||||
carrierType: '承运商',
|
||||
transportType: 'road',
|
||||
@@ -444,8 +446,16 @@ export const config = {
|
||||
return isDriverRejectedWaybill(row);
|
||||
},
|
||||
canEdit(row) {
|
||||
// 进行中的运单不允许编辑
|
||||
if (isInProgressStatus(row, row.businessStatusName)) {
|
||||
return false;
|
||||
}
|
||||
return !isDriverRejectedWaybill(row);
|
||||
},
|
||||
canCancel(row) {
|
||||
// 进行中的运单不允许取消
|
||||
return !isInProgressStatus(row, row.businessStatusName);
|
||||
},
|
||||
deleteStatus: ['draft'],
|
||||
editStatus: ['draft', 'pending'],
|
||||
};
|
||||
@@ -637,7 +647,7 @@ export const option = {
|
||||
viewDisplay: false,
|
||||
},
|
||||
{
|
||||
label: '单价(计价单位)',
|
||||
label: '单价',
|
||||
prop: 'unitPrice',
|
||||
formatter: row => formatUnitPrice(row),
|
||||
minWidth: 140,
|
||||
|
||||
@@ -18,7 +18,7 @@ export const transportReconciliationTableColumns = [
|
||||
export const internalColumns = [
|
||||
{ prop: 'documentNo', label: '单据号', minWidth: 150 },
|
||||
{ prop: 'waybillNo', label: '运单号', minWidth: 120 },
|
||||
{ prop: 'matchedExternalLineNo', label: '匹配外部账单行号', minWidth: 140 },
|
||||
{ prop: 'matchedExternalLineNo', label: '匹配外部账单行号', minWidth: 180 },
|
||||
{ prop: 'vehicleNo', label: '车号', minWidth: 100 },
|
||||
{ prop: 'departureAddress', label: '发货地址', minWidth: 180 },
|
||||
{ prop: 'arrivalAddress', label: '到货地址', minWidth: 180 },
|
||||
@@ -66,9 +66,9 @@ export const externalCargoColumns = [
|
||||
{ prop: 'cargoType', label: '货物类型', minWidth: 120 },
|
||||
{ prop: 'specification', label: '规格', minWidth: 100 },
|
||||
{ prop: 'model', label: '型号', minWidth: 100 },
|
||||
{ prop: 'transportQuantity', label: '运输量', minWidth: 100, number: true },
|
||||
{ prop: 'transportQuantity', label: '运输总量', minWidth: 100, number: true },
|
||||
{ prop: 'unitPrice', label: '运输单价', minWidth: 110, money: true },
|
||||
{ prop: 'mileage', label: '里程(KM)', minWidth: 120, number: true },
|
||||
{ prop: 'freightAmount', label: '运输费', minWidth: 110, money: true },
|
||||
{ prop: 'settlementAmount', label: '结算金额', minWidth: 120, money: true },
|
||||
{ prop: 'settlementAmount', label: '结算费用合计', minWidth: 130, money: true },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user