|
|
@ -95,7 +95,7 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<!-- 表格区域 --> |
|
|
<!-- 表格区域 --> |
|
|
<div class="table-area"> |
|
|
|
|
|
|
|
|
<div class="table-area" > |
|
|
<div class="table-title" style="font-size: 13px; font-weight: 450; color: #606266;">运输周期</div> |
|
|
<div class="table-title" style="font-size: 13px; font-weight: 450; color: #606266;">运输周期</div> |
|
|
|
|
|
|
|
|
<el-table |
|
|
<el-table |
|
|
@ -122,7 +122,7 @@ |
|
|
align="center" |
|
|
align="center" |
|
|
width="239" |
|
|
width="239" |
|
|
> |
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
|
<template slot-scope="scope" class="rq"> |
|
|
<input |
|
|
<input |
|
|
v-model.number="scope.row.transitDays" |
|
|
v-model.number="scope.row.transitDays" |
|
|
type="number" |
|
|
type="number" |
|
|
@ -180,23 +180,30 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="luyun" |
|
|
prop="luyun" |
|
|
label="陆运周期" |
|
|
|
|
|
|
|
|
label="Land Transit" |
|
|
align="center" |
|
|
align="center" |
|
|
width="150"> |
|
|
|
|
|
|
|
|
width="140"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="haiyun" |
|
|
prop="haiyun" |
|
|
label="海运周期" |
|
|
|
|
|
|
|
|
label="Ocean Transit" |
|
|
align="center" |
|
|
align="center" |
|
|
width="150"> |
|
|
|
|
|
|
|
|
width="140"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="kongyun" |
|
|
prop="kongyun" |
|
|
label="空运周期" |
|
|
|
|
|
|
|
|
label="Air Transit" |
|
|
align="center" |
|
|
align="center" |
|
|
width="160"> |
|
|
|
|
|
|
|
|
width="140"> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="express" |
|
|
|
|
|
label="Express Transit" |
|
|
|
|
|
align="center" |
|
|
|
|
|
width="150"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -249,9 +256,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 运输周期列表 |
|
|
// 运输周期列表 |
|
|
transportList: [ |
|
|
transportList: [ |
|
|
{ shipMethod: '陆运', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: '海运', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: '空运', transitDays: 0 } |
|
|
|
|
|
|
|
|
{ shipMethod: 'Land', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Ocean', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Air', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Express', transitDays: 0 } |
|
|
], |
|
|
], |
|
|
formRules: { |
|
|
formRules: { |
|
|
departureName: [{ required: true, message: '请输入始发港名称', trigger: 'blur' }], |
|
|
departureName: [{ required: true, message: '请输入始发港名称', trigger: 'blur' }], |
|
|
@ -267,9 +275,10 @@ export default { |
|
|
{ columnProp: 'departureName', headerAlign: 'center', align: 'left', columnLabel: '始发港', columnWidth: 150, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'departureName', headerAlign: 'center', align: 'left', columnLabel: '始发港', columnWidth: 150, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'destination', headerAlign: 'center', align: 'left', columnLabel: '目的港口ID', columnWidth: 120, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'destination', headerAlign: 'center', align: 'left', columnLabel: '目的港口ID', columnWidth: 120, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'destinationName', headerAlign: 'center', align: 'left', columnLabel: '目的港口名称', columnWidth: 150, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'destinationName', headerAlign: 'center', align: 'left', columnLabel: '目的港口名称', columnWidth: 150, fixed: '', columnHidden: false, columnSortable: false, showOverflowTooltip: true }, |
|
|
{ columnProp: 'luyun', headerAlign: 'center', align: 'center', columnLabel: '陆运周期', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'haiyun', headerAlign: 'center', align: 'center', columnLabel: '海运周期', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'kongyun', headerAlign: 'center', align: 'center', columnLabel: '空运周期', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true } |
|
|
|
|
|
|
|
|
{ columnProp: 'luyun', headerAlign: 'center', align: 'center', columnLabel: 'Land Transit', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'haiyun', headerAlign: 'center', align: 'center', columnLabel: 'Ocean Transit', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'kongyun', headerAlign: 'center', align: 'center', columnLabel: 'Air Transit', columnWidth: 100, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true }, |
|
|
|
|
|
{ columnProp: 'express', headerAlign: 'center', align: 'center', columnLabel: 'Express Transit', columnWidth: 120, fixed: '', columnHidden: false, columnSortable: true, showOverflowTooltip: true } |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -373,9 +382,10 @@ export default { |
|
|
} |
|
|
} |
|
|
// 重置运输周期列表 |
|
|
// 重置运输周期列表 |
|
|
this.transportList = [ |
|
|
this.transportList = [ |
|
|
{ shipMethod: '陆运', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: '海运', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: '空运', transitDays: 0 } |
|
|
|
|
|
|
|
|
{ shipMethod: 'Land', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Ocean', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Air', transitDays: 0 }, |
|
|
|
|
|
{ shipMethod: 'Express', transitDays: 0 } |
|
|
] |
|
|
] |
|
|
this.dialogVisible = true |
|
|
this.dialogVisible = true |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
@ -422,18 +432,21 @@ export default { |
|
|
destination: this.formData.destination, |
|
|
destination: this.formData.destination, |
|
|
luyun: null, |
|
|
luyun: null, |
|
|
haiyun: null, |
|
|
haiyun: null, |
|
|
kongyun: null |
|
|
|
|
|
|
|
|
kongyun: null, |
|
|
|
|
|
express: null |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.transportList.forEach(item => { |
|
|
this.transportList.forEach(item => { |
|
|
if (item.transitDays === null || item.transitDays === '') return |
|
|
if (item.transitDays === null || item.transitDays === '') return |
|
|
|
|
|
|
|
|
if (item.shipMethod === '陆运') { |
|
|
|
|
|
|
|
|
if (item.shipMethod === 'Land') { |
|
|
result.luyun = Number(item.transitDays) |
|
|
result.luyun = Number(item.transitDays) |
|
|
} else if (item.shipMethod === '海运') { |
|
|
|
|
|
|
|
|
} else if (item.shipMethod === 'Ocean') { |
|
|
result.haiyun = Number(item.transitDays) |
|
|
result.haiyun = Number(item.transitDays) |
|
|
} else if (item.shipMethod === '空运') { |
|
|
|
|
|
|
|
|
} else if (item.shipMethod === 'Air') { |
|
|
result.kongyun = Number(item.transitDays) |
|
|
result.kongyun = Number(item.transitDays) |
|
|
|
|
|
} else if (item.shipMethod === 'Express') { |
|
|
|
|
|
result.express = Number(item.transitDays) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|