|
@@ -8,6 +8,12 @@ import MoreFilters from '@/components/MoreFilters'
|
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
import { ref, reactive, onMounted } from 'vue'
|
|
|
import { useCalculatingHeight } from '@/hooks/calculatingHeight'
|
|
import { useCalculatingHeight } from '@/hooks/calculatingHeight'
|
|
|
import { useHeaderSearch } from '@/stores/modules/headerSearch'
|
|
import { useHeaderSearch } from '@/stores/modules/headerSearch'
|
|
|
|
|
+import { useUserStore } from '@/stores/modules/user'
|
|
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
+
|
|
|
|
|
+const userStore = useUserStore()
|
|
|
|
|
+const formatDate = userStore.dateFormat
|
|
|
|
|
+const valueFormatDate = 'MM/DD/YYYY'
|
|
|
|
|
|
|
|
const headerSearch = useHeaderSearch()
|
|
const headerSearch = useHeaderSearch()
|
|
|
|
|
|
|
@@ -33,18 +39,18 @@ const handleClose = (tag: any) => {
|
|
|
sessionStorage.getItem('reportList') != null ||
|
|
sessionStorage.getItem('reportList') != null ||
|
|
|
sessionStorage.getItem('reportList') != '{}'
|
|
sessionStorage.getItem('reportList') != '{}'
|
|
|
) {
|
|
) {
|
|
|
- const reportlist = JSON.parse(sessionStorage.getItem('reportList') as string) || {}
|
|
|
|
|
|
|
+ const reportList = JSON.parse(sessionStorage.getItem('reportList') as string) || {}
|
|
|
let data = JSON.parse(sessionStorage.getItem('tagsList') as string) || {}
|
|
let data = JSON.parse(sessionStorage.getItem('tagsList') as string) || {}
|
|
|
if (tag.includes('Transport')) {
|
|
if (tag.includes('Transport')) {
|
|
|
- delete reportlist.transport_mode
|
|
|
|
|
|
|
+ delete reportList.transport_mode
|
|
|
} else if (tag.includes('Day') || tag.includes('CO2e')) {
|
|
} else if (tag.includes('Day') || tag.includes('CO2e')) {
|
|
|
- delete reportlist._reportRef
|
|
|
|
|
- delete reportlist._reportType
|
|
|
|
|
- delete reportlist._reportRefe_date
|
|
|
|
|
- delete reportlist._reportRefb_date
|
|
|
|
|
- delete reportlist._reportStationType
|
|
|
|
|
- delete reportlist._reportDataType
|
|
|
|
|
- delete reportlist._reportStationType
|
|
|
|
|
|
|
+ delete reportList._reportRef
|
|
|
|
|
+ delete reportList._reportType
|
|
|
|
|
+ delete reportList._reportRefe_date
|
|
|
|
|
+ delete reportList._reportRefb_date
|
|
|
|
|
+ delete reportList._reportStationType
|
|
|
|
|
+ delete reportList._reportDataType
|
|
|
|
|
+ delete reportList._reportStationType
|
|
|
filterData.dashboardData = []
|
|
filterData.dashboardData = []
|
|
|
data = {}
|
|
data = {}
|
|
|
} else if (tag.includes('ETD')) {
|
|
} else if (tag.includes('ETD')) {
|
|
@@ -53,24 +59,24 @@ const handleClose = (tag: any) => {
|
|
|
filterData.daterangeData.splice(index, 1)
|
|
filterData.daterangeData.splice(index, 1)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- delete reportlist.etd_start
|
|
|
|
|
- delete reportlist.etd_end
|
|
|
|
|
|
|
+ delete reportList.etd_start
|
|
|
|
|
+ delete reportList.etd_end
|
|
|
} else if (tag.includes('ETA')) {
|
|
} else if (tag.includes('ETA')) {
|
|
|
filterData.daterangeData.forEach((item: any, index: any) => {
|
|
filterData.daterangeData.forEach((item: any, index: any) => {
|
|
|
if (item.includes('ETA')) {
|
|
if (item.includes('ETA')) {
|
|
|
filterData.daterangeData.splice(index, 1)
|
|
filterData.daterangeData.splice(index, 1)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- delete reportlist.eta_start
|
|
|
|
|
- delete reportlist.eta_end
|
|
|
|
|
|
|
+ delete reportList.eta_start
|
|
|
|
|
+ delete reportList.eta_end
|
|
|
} else if (tag.includes('Origin')) {
|
|
} else if (tag.includes('Origin')) {
|
|
|
- delete reportlist.shipper_city
|
|
|
|
|
- delete reportlist._city_name
|
|
|
|
|
|
|
+ delete reportList.shipper_city
|
|
|
|
|
+ delete reportList._city_name
|
|
|
filterData.dashboardData = []
|
|
filterData.dashboardData = []
|
|
|
} else if (tag.includes('Destination')) {
|
|
} else if (tag.includes('Destination')) {
|
|
|
- delete reportlist.consignee_city
|
|
|
|
|
|
|
+ delete reportList.consignee_city
|
|
|
}
|
|
}
|
|
|
- sessionStorage.setItem('reportList', JSON.stringify(reportlist))
|
|
|
|
|
|
|
+ sessionStorage.setItem('reportList', JSON.stringify(reportList))
|
|
|
sessionStorage.setItem('tagsList', JSON.stringify(data))
|
|
sessionStorage.setItem('tagsList', JSON.stringify(data))
|
|
|
}
|
|
}
|
|
|
if (tag.includes('Transport')) {
|
|
if (tag.includes('Transport')) {
|
|
@@ -142,14 +148,16 @@ const handleClose = (tag: any) => {
|
|
|
} else if (tag.includes('Voyage')) {
|
|
} else if (tag.includes('Voyage')) {
|
|
|
delete searchTableQeuryTracking['f_voyage/voyage']
|
|
delete searchTableQeuryTracking['f_voyage/voyage']
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
// 筛选框查询
|
|
// 筛选框查询
|
|
|
const FiltersSeach = (val: any, value: any) => {
|
|
const FiltersSeach = (val: any, value: any) => {
|
|
|
searchTableQeuryTracking[val] = value
|
|
searchTableQeuryTracking[val] = value
|
|
|
|
|
+
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
//TransportSearch
|
|
//TransportSearch
|
|
|
const TransportSearch = (val: any) => {
|
|
const TransportSearch = (val: any) => {
|
|
@@ -179,36 +187,33 @@ const defaultTransport = (val: any, value: any) => {
|
|
|
searchTableQeuryTracking = value
|
|
searchTableQeuryTracking = value
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-//defaultDate
|
|
|
|
|
-const defaultDate = (val: any, value: any, data: any) => {
|
|
|
|
|
|
|
+const setFilterData = (dateRangeData: any) => {
|
|
|
filterData.daterangeData = []
|
|
filterData.daterangeData = []
|
|
|
- if (Object.keys(val).length) {
|
|
|
|
|
- for (const key in val) {
|
|
|
|
|
- let str = `${key}:${val[key]}`
|
|
|
|
|
- filterData.daterangeData.push(str)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ for (const key in dateRangeData) {
|
|
|
|
|
+ const startEnd = dateRangeData[key].data[0] + ' To ' + dateRangeData[key].data[1]
|
|
|
|
|
+ let str = `${key}:${startEnd}`
|
|
|
|
|
+ filterData.daterangeData.push(str)
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
+//defaultDate
|
|
|
|
|
+const defaultDate = (dateRangeData: any, data: any) => {
|
|
|
|
|
+ setFilterData(dateRangeData)
|
|
|
|
|
|
|
|
if (sessionStorage.getItem('searchTableQeuryTracking') == null) {
|
|
if (sessionStorage.getItem('searchTableQeuryTracking') == null) {
|
|
|
if (
|
|
if (
|
|
|
sessionStorage.getItem('clickParams') === null ||
|
|
sessionStorage.getItem('clickParams') === null ||
|
|
|
sessionStorage.getItem('clickParams') === '{}'
|
|
sessionStorage.getItem('clickParams') === '{}'
|
|
|
) {
|
|
) {
|
|
|
- if (Object.keys(value).length == 0) {
|
|
|
|
|
|
|
+ if (Object.keys(dateRangeData).length == 0) {
|
|
|
delete searchTableQeuryTracking.etd_start
|
|
delete searchTableQeuryTracking.etd_start
|
|
|
delete searchTableQeuryTracking.etd_end
|
|
delete searchTableQeuryTracking.etd_end
|
|
|
}
|
|
}
|
|
|
- for (const key in value) {
|
|
|
|
|
- searchTableQeuryTracking.etd_start = value[key].data[0]
|
|
|
|
|
- searchTableQeuryTracking.etd_end = value[key].data[1]
|
|
|
|
|
|
|
+ for (const key in dateRangeData) {
|
|
|
|
|
+ searchTableQeuryTracking.etd_start = dateRangeData[key].data[0]
|
|
|
|
|
+
|
|
|
|
|
+ searchTableQeuryTracking.etd_end = dateRangeData[key].data[1]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- // else {
|
|
|
|
|
- // for (const key in value) {
|
|
|
|
|
- // searchTableQeuryTracking.etd_start = value[key].data[0]
|
|
|
|
|
- // searchTableQeuryTracking.etd_end = value[key].data[1]
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
} else {
|
|
} else {
|
|
|
searchTableQeuryTracking = data
|
|
searchTableQeuryTracking = data
|
|
|
if (searchTableQeuryTracking._textSearch) {
|
|
if (searchTableQeuryTracking._textSearch) {
|
|
@@ -221,22 +226,16 @@ const defaultDate = (val: any, value: any, data: any) => {
|
|
|
if (trackingData) {
|
|
if (trackingData) {
|
|
|
// 根据顶部搜索框的搜索结果赋值
|
|
// 根据顶部搜索框的搜索结果赋值
|
|
|
initDataByHeaderSearch()
|
|
initDataByHeaderSearch()
|
|
|
- } else {
|
|
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ } else if (!trackingData && !sessionStorage.getItem('clickParams')) {
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
}
|
|
}
|
|
|
//DateRangeSearch
|
|
//DateRangeSearch
|
|
|
-const DateRangeSearch = (val: any, value: any) => {
|
|
|
|
|
- filterData.daterangeData = []
|
|
|
|
|
- if (Object.keys(val).length) {
|
|
|
|
|
- for (const key in val) {
|
|
|
|
|
- let str = `${key}:${val[key]}`
|
|
|
|
|
- filterData.daterangeData.push(str)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (Object.keys(value).length == 0) {
|
|
|
|
|
|
|
+const DateRangeSearch = (dateRangeData: any) => {
|
|
|
|
|
+ setFilterData(dateRangeData)
|
|
|
|
|
+ if (Object.keys(dateRangeData).length == 0) {
|
|
|
delete searchTableQeuryTracking.etd_start
|
|
delete searchTableQeuryTracking.etd_start
|
|
|
delete searchTableQeuryTracking.etd_end
|
|
delete searchTableQeuryTracking.etd_end
|
|
|
delete searchTableQeuryTracking.eta_start
|
|
delete searchTableQeuryTracking.eta_start
|
|
@@ -244,20 +243,35 @@ const DateRangeSearch = (val: any, value: any) => {
|
|
|
delete searchTableQeuryTracking.created_time_start
|
|
delete searchTableQeuryTracking.created_time_start
|
|
|
delete searchTableQeuryTracking.created_time_end
|
|
delete searchTableQeuryTracking.created_time_end
|
|
|
}
|
|
}
|
|
|
- for (const key in value) {
|
|
|
|
|
|
|
+ const fieldList = [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: 'ETD',
|
|
|
|
|
+ keys: ['etd_start', 'etd_end']
|
|
|
|
|
+ },
|
|
|
|
|
+ { title: 'ETA', keys: ['eta_start', 'eta_end'] },
|
|
|
|
|
+ { title: 'Creation Time', keys: ['created_time_start', 'created_time_end'] }
|
|
|
|
|
+ ]
|
|
|
|
|
+ fieldList.forEach((item) => {
|
|
|
|
|
+ if (!dateRangeData.hasOwnProperty(item.title)) {
|
|
|
|
|
+ // 删除不存在的字段
|
|
|
|
|
+ searchTableQeuryTracking[item.keys[0]] = undefined
|
|
|
|
|
+ searchTableQeuryTracking[item.keys[1]] = undefined
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ for (const key in dateRangeData) {
|
|
|
if (key == 'ETD') {
|
|
if (key == 'ETD') {
|
|
|
- searchTableQeuryTracking.etd_start = value[key].data[0]
|
|
|
|
|
- searchTableQeuryTracking.etd_end = value[key].data[1]
|
|
|
|
|
|
|
+ searchTableQeuryTracking.etd_start = dateRangeData[key].data[0]
|
|
|
|
|
+ searchTableQeuryTracking.etd_end = dateRangeData[key].data[1]
|
|
|
} else if (key == 'ETA') {
|
|
} else if (key == 'ETA') {
|
|
|
- searchTableQeuryTracking.eta_start = value[key].data[0]
|
|
|
|
|
- searchTableQeuryTracking.eta_end = value[key].data[1]
|
|
|
|
|
|
|
+ searchTableQeuryTracking.eta_start = dateRangeData[key].data[0]
|
|
|
|
|
+ searchTableQeuryTracking.eta_end = dateRangeData[key].data[1]
|
|
|
} else {
|
|
} else {
|
|
|
- searchTableQeuryTracking.created_time_start = value[key].data[0]
|
|
|
|
|
- searchTableQeuryTracking.created_time_end = value[key].data[1]
|
|
|
|
|
|
|
+ searchTableQeuryTracking.created_time_start = dateRangeData[key].data[0]
|
|
|
|
|
+ searchTableQeuryTracking.created_time_end = dateRangeData[key].data[1]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
}
|
|
}
|
|
|
//MoreFiltersSearch
|
|
//MoreFiltersSearch
|
|
@@ -325,7 +339,7 @@ const MoreFiltersSearch = (val: any, value: any) => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
}
|
|
}
|
|
|
const defaultMorefilters = (val: any, value: any, data: any) => {
|
|
const defaultMorefilters = (val: any, value: any, data: any) => {
|
|
@@ -417,19 +431,18 @@ const clearfilters = () => {
|
|
|
sessionStorage.getItem('reportList') != null ||
|
|
sessionStorage.getItem('reportList') != null ||
|
|
|
sessionStorage.getItem('reportList') != '{}'
|
|
sessionStorage.getItem('reportList') != '{}'
|
|
|
) {
|
|
) {
|
|
|
- let reportlist = JSON.parse(sessionStorage.getItem('reportList') as string) || {}
|
|
|
|
|
- let data = JSON.parse(sessionStorage.getItem('tagsList') as string) || {}
|
|
|
|
|
- reportlist = {}
|
|
|
|
|
- data = {}
|
|
|
|
|
- sessionStorage.setItem('reportList', JSON.stringify(reportlist))
|
|
|
|
|
- sessionStorage.setItem('tagsList', JSON.stringify(data))
|
|
|
|
|
- } else {
|
|
|
|
|
- searchTableQeuryTracking.filterTag = ['All']
|
|
|
|
|
|
|
+ // sessionStorage.removeItem('reportList')
|
|
|
|
|
+ sessionStorage.removeItem('tagsList')
|
|
|
}
|
|
}
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
}
|
|
}
|
|
|
const renderTagsData = () => {
|
|
const renderTagsData = () => {
|
|
|
|
|
+ const data = JSON.parse(sessionStorage.getItem('tagsList') as string) || {}
|
|
|
|
|
+ if (Object.keys(data).length != 0) {
|
|
|
|
|
+ let str = `${data.title}:${data.name}`
|
|
|
|
|
+ !filterData.dashboardData.includes(str) && filterData.dashboardData.push(str)
|
|
|
|
|
+ }
|
|
|
tagsData.value = []
|
|
tagsData.value = []
|
|
|
if (filterData.transportData.length) {
|
|
if (filterData.transportData.length) {
|
|
|
tagsData.value.push(filterData.transportData[0])
|
|
tagsData.value.push(filterData.transportData[0])
|
|
@@ -496,6 +509,7 @@ const initDataByHeaderSearch = () => {
|
|
|
sessionStorage.removeItem('searchTableQeuryTracking')
|
|
sessionStorage.removeItem('searchTableQeuryTracking')
|
|
|
searchTableQeuryTracking._textSearch = TrackingSearch.value
|
|
searchTableQeuryTracking._textSearch = TrackingSearch.value
|
|
|
searchTableQeuryTracking.filterTag = ['All']
|
|
searchTableQeuryTracking.filterTag = ['All']
|
|
|
|
|
+
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
emitter.emit('clearTag', 'Shipment status')
|
|
emitter.emit('clearTag', 'Shipment status')
|
|
@@ -549,7 +563,22 @@ interface ListItem {
|
|
|
const TagsList = ref<ListItem[]>([])
|
|
const TagsList = ref<ListItem[]>([])
|
|
|
const filterTag = ref(['All'])
|
|
const filterTag = ref(['All'])
|
|
|
const isShowAlertIcon = ref(false)
|
|
const isShowAlertIcon = ref(false)
|
|
|
-const Gettrackingdata = () => {
|
|
|
|
|
|
|
+const getTrackingData = () => {
|
|
|
|
|
+ const dateRangeKeys = [
|
|
|
|
|
+ 'etd_start',
|
|
|
|
|
+ 'etd_end',
|
|
|
|
|
+ 'eta_start',
|
|
|
|
|
+ 'eta_end',
|
|
|
|
|
+ 'created_time_start',
|
|
|
|
|
+ 'created_time_end'
|
|
|
|
|
+ ]
|
|
|
|
|
+ const curRangeData = {}
|
|
|
|
|
+ for (const key of dateRangeKeys) {
|
|
|
|
|
+ if (searchTableQeuryTracking[key]) {
|
|
|
|
|
+ curRangeData[key] = dayjs(searchTableQeuryTracking[key], formatDate).format(valueFormatDate)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
tableLoadingTableData.value = true
|
|
tableLoadingTableData.value = true
|
|
|
TrackingTable_ref.value.getLoadingData(tableLoadingTableData.value)
|
|
TrackingTable_ref.value.getLoadingData(tableLoadingTableData.value)
|
|
|
$api
|
|
$api
|
|
@@ -558,7 +587,8 @@ const Gettrackingdata = () => {
|
|
|
ps: TrackingTable_ref.value.pageInfo.pageSize,
|
|
ps: TrackingTable_ref.value.pageInfo.pageSize,
|
|
|
rc: -1,
|
|
rc: -1,
|
|
|
other_filed: '',
|
|
other_filed: '',
|
|
|
- ...searchTableQeuryTracking
|
|
|
|
|
|
|
+ ...searchTableQeuryTracking,
|
|
|
|
|
+ ...curRangeData
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -594,28 +624,64 @@ const Gettrackingdata = () => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ .finally(() => {
|
|
|
|
|
+ sessionStorage.removeItem('clickParams')
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
if (
|
|
if (
|
|
|
sessionStorage.getItem('clickParams') != null &&
|
|
sessionStorage.getItem('clickParams') != null &&
|
|
|
sessionStorage.getItem('clickParams') != '{}'
|
|
sessionStorage.getItem('clickParams') != '{}'
|
|
|
) {
|
|
) {
|
|
|
- if (sessionStorage.getItem('searchTableQeuryTracking') != null) {
|
|
|
|
|
- searchTableQeuryTracking = {}
|
|
|
|
|
- }
|
|
|
|
|
- const data = JSON.parse(sessionStorage.getItem('tagsList') as string) || {}
|
|
|
|
|
- const reportlist = JSON.parse(sessionStorage.getItem('reportList') as string) || {}
|
|
|
|
|
- for (const key in reportlist) {
|
|
|
|
|
- searchTableQeuryTracking[key] = reportlist[key]
|
|
|
|
|
- }
|
|
|
|
|
- if (reportlist._city_name == '' || reportlist._city_name == undefined) {
|
|
|
|
|
- if (Object.keys(data).length != 0) {
|
|
|
|
|
- let str = `${data.title}:${data.name}`
|
|
|
|
|
- filterData.dashboardData.push(str)
|
|
|
|
|
|
|
+ const reportList = JSON.parse(sessionStorage.getItem('reportList') as string) || {}
|
|
|
|
|
+ for (const key in reportList) {
|
|
|
|
|
+ let str = ''
|
|
|
|
|
+ switch (key) {
|
|
|
|
|
+ case 'etd_start':
|
|
|
|
|
+ const startDate = dayjs(reportList['etd_start'], valueFormatDate).format(formatDate)
|
|
|
|
|
+ searchTableQeuryTracking['etd_start'] = startDate
|
|
|
|
|
+ const endDate = dayjs(reportList['etd_end'], valueFormatDate).format(formatDate)
|
|
|
|
|
+ searchTableQeuryTracking['etd_end'] = endDate
|
|
|
|
|
+ const startEnd = startDate + ' To ' + endDate
|
|
|
|
|
+ str = `ETD:${startEnd}`
|
|
|
|
|
+ // filterData.daterangeData.push(str)
|
|
|
|
|
+ break
|
|
|
|
|
+
|
|
|
|
|
+ case 'etd_end':
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'eta_start':
|
|
|
|
|
+ const etaStart = dayjs(reportList['eta_start'], valueFormatDate).format(formatDate)
|
|
|
|
|
+ searchTableQeuryTracking['eta_start'] = etaStart
|
|
|
|
|
+ const etaEnd = dayjs(reportList['eta_end'], valueFormatDate).format(formatDate)
|
|
|
|
|
+ searchTableQeuryTracking['eta_end'] = etaEnd
|
|
|
|
|
+ str = `ETA:${etaStart} To ${etaEnd}`
|
|
|
|
|
+ // filterData.daterangeData.push(str)
|
|
|
|
|
+ break
|
|
|
|
|
+
|
|
|
|
|
+ case 'eta_end':
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'created_time_start':
|
|
|
|
|
+ const createdTimeStart = dayjs(reportList['created_time_start'], valueFormatDate).format(
|
|
|
|
|
+ formatDate
|
|
|
|
|
+ )
|
|
|
|
|
+ searchTableQeuryTracking['created_time_start'] = createdTimeStart
|
|
|
|
|
+ const createdTimeEnd = dayjs(reportList['created_time_end'], valueFormatDate).format(
|
|
|
|
|
+ formatDate
|
|
|
|
|
+ )
|
|
|
|
|
+ searchTableQeuryTracking['created_time_end'] = createdTimeEnd
|
|
|
|
|
+ str = `Creation Time:${createdTimeStart} To ${createdTimeEnd}`
|
|
|
|
|
+ // filterData.daterangeData.push(str)
|
|
|
|
|
+ break
|
|
|
|
|
+ case 'created_time_end':
|
|
|
|
|
+ break
|
|
|
|
|
+ default:
|
|
|
|
|
+ searchTableQeuryTracking[key] = reportList[key]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ // sessionStorage.removeItem('reportList')
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
})
|
|
})
|
|
@@ -625,17 +691,19 @@ const changeTag = (val: any, boolean: any) => {
|
|
|
let str = 'Shipment status: ' + val
|
|
let str = 'Shipment status: ' + val
|
|
|
filterData.filtersTagData.push(str)
|
|
filterData.filtersTagData.push(str)
|
|
|
filterTag.value = val
|
|
filterTag.value = val
|
|
|
|
|
+
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
if (boolean) {
|
|
if (boolean) {
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
renderTagsData()
|
|
renderTagsData()
|
|
|
}
|
|
}
|
|
|
// 点击search按钮
|
|
// 点击search按钮
|
|
|
const SearchInput = () => {
|
|
const SearchInput = () => {
|
|
|
searchTableQeuryTracking._textSearch = TrackingSearch.value
|
|
searchTableQeuryTracking._textSearch = TrackingSearch.value
|
|
|
|
|
+
|
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
sessionStorage.setItem('searchTableQeuryTracking', JSON.stringify(searchTableQeuryTracking))
|
|
|
- Gettrackingdata()
|
|
|
|
|
|
|
+ getTrackingData()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
import TrackingGuide from './components/TrackingGuide.vue'
|
|
import TrackingGuide from './components/TrackingGuide.vue'
|