运输周期
-
+
+ width="140">
+ width="140">
+ width="140">
+
+
+
@@ -249,9 +256,10 @@ export default {
},
// 运输周期列表
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: {
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: '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: '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 = [
- { 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.$nextTick(() => {
@@ -422,18 +432,21 @@ export default {
destination: this.formData.destination,
luyun: null,
haiyun: null,
- kongyun: null
+ kongyun: null,
+ express: null
}
this.transportList.forEach(item => {
if (item.transitDays === null || item.transitDays === '') return
- if (item.shipMethod === '陆运') {
+ if (item.shipMethod === 'Land') {
result.luyun = Number(item.transitDays)
- } else if (item.shipMethod === '海运') {
+ } else if (item.shipMethod === 'Ocean') {
result.haiyun = Number(item.transitDays)
- } else if (item.shipMethod === '空运') {
+ } else if (item.shipMethod === 'Air') {
result.kongyun = Number(item.transitDays)
+ } else if (item.shipMethod === 'Express') {
+ result.express = Number(item.transitDays)
}
})