|
|
@@ -123,7 +123,8 @@ const AddDateType = ref<TypeItem[]>([])
|
|
|
const AddDatePlaceType = ref<PlacesTypeItem[]>([])
|
|
|
|
|
|
const props = defineProps({
|
|
|
- isShipment: Boolean
|
|
|
+ isShipment: Boolean,
|
|
|
+ searchTableQeury: Object
|
|
|
})
|
|
|
const PartyTypeoptions = computed(() => {
|
|
|
if (props.isShipment) {
|
|
|
@@ -635,6 +636,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<div class="ETD_title">Shipper Name</div>
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
+ ASSearchFiled="Shipper Name"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectshippername"
|
|
|
:ASValue="InputForm.parties.Shippername"
|
|
|
ASPlaceholder="Please input shipper name"
|
|
|
@@ -645,6 +649,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<div class="ETD_title">Consignee Name</div>
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
+ ASSearchFiled="Consignee Name"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectconsigneename"
|
|
|
:ASValue="InputForm.parties.Consigneename"
|
|
|
ASPlaceholder="Please input consignee name"
|
|
|
@@ -654,7 +661,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<SelectAutoSelect
|
|
|
ref="partSelectTableSelectRef"
|
|
|
:AddDateType="AddDateType"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
:DateTypeoptions="PartyTypeoptions"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
@changeAutoSelectAddType="changeAutoSelectAddType"
|
|
|
@changeAutoSelect="changeAutoSelectVal"
|
|
|
:selectedPartyTypeoptions="selectedPartyTypeoptions"
|
|
|
@@ -678,13 +687,27 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
></template>
|
|
|
<div class="ETD">
|
|
|
<div class="ETD_title">Origin</div>
|
|
|
- <SelectTable :searchInput="InputForm.palces.Origin" @check="checkorigin" />
|
|
|
+ <SelectTable
|
|
|
+ ASSearchFiled="Origin"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
+ :searchInput="InputForm.palces.Origin"
|
|
|
+ @check="checkorigin"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="ETA">
|
|
|
<div class="ETD_title">Destination</div>
|
|
|
- <SelectTable :searchInput="InputForm.palces.Destination" @check="checkdestination" />
|
|
|
+ <SelectTable
|
|
|
+ ASSearchFiled="Destination"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
+ :searchInput="InputForm.palces.Destination"
|
|
|
+ @check="checkdestination"
|
|
|
+ />
|
|
|
</div>
|
|
|
<SelectTableSelect
|
|
|
+ :TablesearchTableQeury="props.searchTableQeury"
|
|
|
+ :TablesearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
ref="placeSelectTableSelectRef"
|
|
|
:AddDateType="AddDatePlaceType"
|
|
|
:DateTypeoptions="PlaceTypeoptions"
|
|
|
@@ -715,6 +738,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<div class="ETD_title">Vessel</div>
|
|
|
<AutoSelect
|
|
|
ASType="vessel"
|
|
|
+ ASSearchFiled="Vessel"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment ? 'tracking' : 'booking'"
|
|
|
@changeAutoSelect="changeAutoSelectvessel"
|
|
|
:ASValue="InputForm.transportation.Vessel"
|
|
|
ASPlaceholder="Please input vessel name or code"
|
|
|
@@ -730,6 +756,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
></el-input>
|
|
|
<!-- <AutoSelect
|
|
|
ASType="voyage"
|
|
|
+ :ASSearchObj="props.searchTableQeury"
|
|
|
+ :ASSearchMode="props.isShipment? 'tracking': 'booking'"
|
|
|
+ ASSearchFiled="Voyage/Flight"
|
|
|
@changeAutoSelect="changeAutoSelectvoyage"
|
|
|
:ASValue="InputForm.transportation.Voyage"
|
|
|
ASPlaceholder="Please input Voyage or flight no."
|