|
|
@@ -8,22 +8,22 @@ import SelectTable from '@/components/SelectTable/src/SelectTable.vue'
|
|
|
|
|
|
onMounted(() => {
|
|
|
emitter.on('clearTag', (tag: any) => {
|
|
|
- if (tag.includes('shippername')) {
|
|
|
- clearname(InputForm.value, 'parties', 'shippername')
|
|
|
- } else if (tag.includes('consigneename')) {
|
|
|
- clearname(InputForm.value, 'parties', 'consigneename')
|
|
|
+ if (tag.includes('Shippername')) {
|
|
|
+ clearname(InputForm.value, 'parties', 'Shippername')
|
|
|
+ } else if (tag.includes('Consigneename')) {
|
|
|
+ clearname(InputForm.value, 'parties', 'Consigneename')
|
|
|
} else if (tag.includes('Incoterms')) {
|
|
|
clearname(InputForm.value, 'General', 'Incoterms')
|
|
|
} else if (tag.includes('Service')) {
|
|
|
clearname(InputForm.value, 'General', 'Service')
|
|
|
- } else if (tag.includes('vessel')) {
|
|
|
- clearname(InputForm.value, 'transportation', 'vessel')
|
|
|
- } else if (tag.includes('voyage')) {
|
|
|
- clearname(InputForm.value, 'transportation', 'voyage')
|
|
|
- } else if (tag.includes('origin')) {
|
|
|
- clearname(InputForm.value, 'palces', 'origin')
|
|
|
- } else if (tag.includes('destination')) {
|
|
|
- clearname(InputForm.value, 'palces', 'destination')
|
|
|
+ } else if (tag.includes('Vessel')) {
|
|
|
+ clearname(InputForm.value, 'transportation', 'Vessel')
|
|
|
+ } else if (tag.includes('Voyage')) {
|
|
|
+ clearname(InputForm.value, 'transportation', 'Voyage')
|
|
|
+ } else if (tag.includes('Origin')) {
|
|
|
+ clearname(InputForm.value, 'palces', 'Origin')
|
|
|
+ } else if (tag.includes('Destination')) {
|
|
|
+ clearname(InputForm.value, 'palces', 'Destination')
|
|
|
} else if (tag.includes('Origin Agent')) {
|
|
|
AddDateType.value = AddDateType.value.filter((item: any) => item.partyType !== 'Origin Agent')
|
|
|
delete MoreFiltersObj['Origin Agent']
|
|
|
@@ -226,16 +226,16 @@ selectedPlacesTypeIndex.value = []
|
|
|
|
|
|
const InputForm = ref({
|
|
|
parties: {
|
|
|
- shippername: [],
|
|
|
- consigneename: []
|
|
|
+ Shippername: [],
|
|
|
+ Consigneename: []
|
|
|
},
|
|
|
transportation: {
|
|
|
- vessel: [],
|
|
|
- voyage: []
|
|
|
+ Vessel: [],
|
|
|
+ Voyage: []
|
|
|
},
|
|
|
palces: {
|
|
|
- origin: [],
|
|
|
- destination: []
|
|
|
+ Origin: [],
|
|
|
+ Destination: []
|
|
|
},
|
|
|
General: {
|
|
|
Incoterms: '',
|
|
|
@@ -343,18 +343,18 @@ const changeAutoSelect = (Array: any, val: any, value: any, arraykey1: any, arra
|
|
|
}
|
|
|
}
|
|
|
const changeAutoSelectshippername = (val: any) => {
|
|
|
- changeAutoSelect(InputForm.value, val, 'InputForm', 'parties', 'shippername')
|
|
|
+ changeAutoSelect(InputForm.value, val, 'InputForm', 'parties', 'Shippername')
|
|
|
}
|
|
|
const changeAutoSelectconsigneename = (val: any) => {
|
|
|
- changeAutoSelect(InputForm.value, val, 'InputForm', 'parties', 'consigneename')
|
|
|
+ changeAutoSelect(InputForm.value, val, 'InputForm', 'parties', 'Consigneename')
|
|
|
}
|
|
|
const changeAutoSelectvessel = (val: any) => {
|
|
|
- changeAutoSelect(InputForm.value, val, 'InputForm', 'transportation', 'vessel')
|
|
|
+ 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')
|
|
|
+ MoreFiltersObj.Voyage = val
|
|
|
+ MoreFiltersObj2.Voyage = val
|
|
|
}
|
|
|
const check = (row: any, value: any, key1: any, key2: any) => {
|
|
|
value[key1][key2] = row
|
|
|
@@ -363,12 +363,12 @@ const check = (row: any, value: any, key1: any, key2: any) => {
|
|
|
//选择origin
|
|
|
const checkorigin = (row: any) => {
|
|
|
if (row) {
|
|
|
- check(row, InputForm.value, 'palces', 'origin')
|
|
|
+ check(row, InputForm.value, 'palces', 'Origin')
|
|
|
}
|
|
|
}
|
|
|
const checkdestination = (row: any) => {
|
|
|
if (row) {
|
|
|
- check(row, InputForm.value, 'palces', 'destination')
|
|
|
+ check(row, InputForm.value, 'palces', 'Destination')
|
|
|
}
|
|
|
}
|
|
|
const delSelect = (i: any, val: any) => {
|
|
|
@@ -502,16 +502,16 @@ const clearrest = () => {
|
|
|
emit('clearMoreFiltersTags')
|
|
|
InputForm.value = {
|
|
|
parties: {
|
|
|
- shippername: [],
|
|
|
- consigneename: []
|
|
|
+ Shippername: [],
|
|
|
+ Consigneename: []
|
|
|
},
|
|
|
transportation: {
|
|
|
- vessel: [],
|
|
|
- voyage: []
|
|
|
+ Vessel: [],
|
|
|
+ Voyage: []
|
|
|
},
|
|
|
palces: {
|
|
|
- origin: [],
|
|
|
- destination: []
|
|
|
+ Origin: [],
|
|
|
+ Destination: []
|
|
|
},
|
|
|
General: {
|
|
|
Incoterms: 'Please Select Date Range',
|
|
|
@@ -636,7 +636,7 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
@changeAutoSelect="changeAutoSelectshippername"
|
|
|
- :ASValue="InputForm.parties.shippername"
|
|
|
+ :ASValue="InputForm.parties.Shippername"
|
|
|
ASPlaceholder="Please input shipper name"
|
|
|
>
|
|
|
</AutoSelect>
|
|
|
@@ -646,7 +646,7 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<AutoSelect
|
|
|
ASType="contanct"
|
|
|
@changeAutoSelect="changeAutoSelectconsigneename"
|
|
|
- :ASValue="InputForm.parties.consigneename"
|
|
|
+ :ASValue="InputForm.parties.Consigneename"
|
|
|
ASPlaceholder="Please input consignee name"
|
|
|
>
|
|
|
</AutoSelect>
|
|
|
@@ -667,7 +667,7 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
@click="AddType('party')"
|
|
|
v-if="AddDateType.length != PartyTypeoptions.length"
|
|
|
>
|
|
|
- + More Party Type
|
|
|
+ <el-button class="el-button--noborder moretype">+ More Party Type</el-button>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
<!-- Places -->
|
|
|
@@ -678,11 +678,11 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
></template>
|
|
|
<div class="ETD">
|
|
|
<div class="ETD_title">Origin</div>
|
|
|
- <SelectTable :searchInput="InputForm.palces.origin" @check="checkorigin" />
|
|
|
+ <SelectTable :searchInput="InputForm.palces.Origin" @check="checkorigin" />
|
|
|
</div>
|
|
|
<div class="ETA">
|
|
|
<div class="ETD_title">Destination</div>
|
|
|
- <SelectTable :searchInput="InputForm.palces.destination" @check="checkdestination" />
|
|
|
+ <SelectTable :searchInput="InputForm.palces.Destination" @check="checkdestination" />
|
|
|
</div>
|
|
|
<SelectTableSelect
|
|
|
ref="placeSelectTableSelectRef"
|
|
|
@@ -701,7 +701,7 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
@click="AddType('place')"
|
|
|
v-if="AddDatePlaceType.length != PlaceTypeoptions.length"
|
|
|
>
|
|
|
- + More Place Type
|
|
|
+ <el-button class="el-button--noborder moretype">+ More Place Type</el-button>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
<!-- Transportation -->
|
|
|
@@ -716,7 +716,7 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<AutoSelect
|
|
|
ASType="vessel"
|
|
|
@changeAutoSelect="changeAutoSelectvessel"
|
|
|
- :ASValue="InputForm.transportation.vessel"
|
|
|
+ :ASValue="InputForm.transportation.Vessel"
|
|
|
ASPlaceholder="Please input vessel name or code"
|
|
|
>
|
|
|
</AutoSelect>
|
|
|
@@ -725,14 +725,14 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
<div class="ETD_title">Voyage/Flight</div>
|
|
|
<el-input
|
|
|
placeholder="Please input voyage or flight no."
|
|
|
- @change="changeAutoSelectvoyage(InputForm.transportation.voyage)"
|
|
|
- v-model="InputForm.transportation.voyage"
|
|
|
+ @change="changeAutoSelectvoyage(InputForm.transportation.Voyage)"
|
|
|
+ v-model="InputForm.transportation.Voyage"
|
|
|
></el-input>
|
|
|
<!-- <AutoSelect
|
|
|
- ASType="vessel"
|
|
|
+ ASType="voyage"
|
|
|
@changeAutoSelect="changeAutoSelectvoyage"
|
|
|
- :ASValue="InputForm.transportation.voyage"
|
|
|
- ASPlaceholder="Please input voyage or flight no."
|
|
|
+ :ASValue="InputForm.transportation.Voyage"
|
|
|
+ ASPlaceholder="Please input Voyage or flight no."
|
|
|
></AutoSelect> -->
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
@@ -915,4 +915,9 @@ const ServiceSearch = (val: any, value: any) => {
|
|
|
:deep(.el-drawer__close-btn) {
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
+.moretype {
|
|
|
+ background-color: transparent;
|
|
|
+ padding: 0 4px;
|
|
|
+ height: 24px;
|
|
|
+}
|
|
|
</style>
|