|
|
@@ -3,7 +3,7 @@ import emitter from '@/utils/bus'
|
|
|
import AutoSelect from '@/components/AutoSelect'
|
|
|
import SelectAutoSelect from '@/components/SelectAutoSelect'
|
|
|
import SelectTableSelect from '@/components/SelectTableSelect'
|
|
|
-import { ref, onMounted, onBeforeMount, computed } from 'vue'
|
|
|
+import { ref, onMounted, onBeforeMount, computed, watch } from 'vue'
|
|
|
import SelectTable from '@/components/SelectTable/src/SelectTable.vue'
|
|
|
|
|
|
onMounted(() => {
|
|
|
@@ -41,7 +41,6 @@ onMounted(() => {
|
|
|
clearname(InputForm.value, 'General', 'Service')
|
|
|
} else if (tag.includes('Origin Agent')) {
|
|
|
AddDateType.value = AddDateType.value.filter((item: any) => item.partyType !== 'Origin Agent')
|
|
|
- console.log(AddDateType.value)
|
|
|
delete MoreFiltersObj['Origin Agent']
|
|
|
selectedPartyTypeoptions.value = selectedPartyTypeoptions.value.filter(
|
|
|
(item: any) => item !== 'Origin Agent'
|
|
|
@@ -771,9 +770,7 @@ const changeAutoSelectvessel = (val: any) => {
|
|
|
changeAutoSelect(InputForm.value, val, 'InputForm', 'transportation', 'Vessel')
|
|
|
}
|
|
|
const changeAutoSelectvoyage = (val: any) => {
|
|
|
- // changeAutoSelect(InputForm.value, val, 'InputForm', 'transportation', 'Voyage')
|
|
|
- MoreFiltersObj.Voyage = val
|
|
|
- MoreFiltersObj2.Voyage = val
|
|
|
+ changeAutoSelect(InputForm.value, val, 'InputForm', 'transportation', 'Voyage')
|
|
|
}
|
|
|
const check = (row: any, value: any, key1: any, key2: any) => {
|
|
|
value[key1][key2] = row
|
|
|
@@ -1003,6 +1000,13 @@ const clickmorefilters = () => {
|
|
|
SeiviceList.value = incotermsList.ServiceList
|
|
|
}
|
|
|
}
|
|
|
+const searchTableQeurytest = ref(props.searchTableQeury)
|
|
|
+watch(
|
|
|
+ () => props.searchTableQeury,
|
|
|
+ (current) => {
|
|
|
+ searchTableQeurytest.value = current
|
|
|
+ }
|
|
|
+)
|
|
|
</script>
|
|
|
<template>
|
|
|
<div>
|
|
|
@@ -1056,7 +1060,7 @@ const clickmorefilters = () => {
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
ASSearchFiled="Shipper Name"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectshippername"
|
|
|
:ASValue="InputForm.parties.Shippername"
|
|
|
@@ -1069,7 +1073,7 @@ const clickmorefilters = () => {
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
ASSearchFiled="Consignee Name"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectconsigneename"
|
|
|
:ASValue="InputForm.parties.Consigneename"
|
|
|
@@ -1082,7 +1086,7 @@ const clickmorefilters = () => {
|
|
|
:AddDateType="AddDateType"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
:DateTypeoptions="PartyTypeoptions"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
@changeAutoSelectAddType="changeAutoSelectAddType"
|
|
|
@changeAutoSelect="changeAutoSelectVal"
|
|
|
:selectedPartyTypeoptions="selectedPartyTypeoptions"
|
|
|
@@ -1108,7 +1112,7 @@ const clickmorefilters = () => {
|
|
|
<div class="ETD_title">Origin</div>
|
|
|
<SelectTable
|
|
|
ASSearchFiled="Origin"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
:searchInput="InputForm.palces.Origin"
|
|
|
@check="checkorigin"
|
|
|
@@ -1118,14 +1122,14 @@ const clickmorefilters = () => {
|
|
|
<div class="ETD_title">Destination</div>
|
|
|
<SelectTable
|
|
|
ASSearchFiled="Destination"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
:searchInput="InputForm.palces.Destination"
|
|
|
@check="checkdestination"
|
|
|
/>
|
|
|
</div>
|
|
|
<SelectTableSelect
|
|
|
- :TablesearchTableQeury="props.searchTableQeury"
|
|
|
+ :TablesearchTableQeury="searchTableQeurytest"
|
|
|
:TablesearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
ref="placeSelectTableSelectRef"
|
|
|
:AddDateType="AddDatePlaceType"
|
|
|
@@ -1158,7 +1162,7 @@ const clickmorefilters = () => {
|
|
|
<AutoSelect
|
|
|
ASType="vessel"
|
|
|
ASSearchFiled="Vessel"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectvessel"
|
|
|
:ASValue="InputForm.transportation.Vessel"
|
|
|
@@ -1170,7 +1174,7 @@ const clickmorefilters = () => {
|
|
|
<div class="ETD_title">Voyage/Flight</div>
|
|
|
<AutoSelect
|
|
|
ASType="voyage"
|
|
|
- :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchObj="searchTableQeurytest"
|
|
|
:ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
ASSearchFiled="Voyage/Flight"
|
|
|
@changeAutoSelect="changeAutoSelectvoyage"
|