|
|
@@ -153,8 +153,8 @@ const ChangeDeayedRules = (val: any) => {
|
|
|
DelayedDeparturedList.value = []
|
|
|
if (val.Departure != '') {
|
|
|
DelayedDeparturedList.value.push(val.Departure)
|
|
|
- savesubscribeobj.ocean_atd_sub_etd = val.Departure.split(' ')[3]
|
|
|
- savesubscribeobj.ocean_atd_sub_etd_unit = val.Departure.split(' ')[4]
|
|
|
+ savesubscribeobj.ocean_atd_sub_etd = val.Departure.split(' ')[4]
|
|
|
+ savesubscribeobj.ocean_atd_sub_etd_unit = val.Departure.split(' ')[5]
|
|
|
} else {
|
|
|
delete savesubscribeobj.ocean_atd_sub_etd
|
|
|
delete savesubscribeobj.ocean_atd_sub_etd_unit
|
|
|
@@ -172,8 +172,8 @@ const ChangeAirRules = (val: any) => {
|
|
|
DelayedAirdList.value = []
|
|
|
if (val.Departure != '') {
|
|
|
DelayedAirdList.value.push(val.Departure)
|
|
|
- savesubscribeobj.air_atd_sub_etd = val.Departure.split(' ')[3]
|
|
|
- savesubscribeobj.air_atd_sub_etd_unit = val.Departure.split(' ')[4]
|
|
|
+ savesubscribeobj.air_atd_sub_etd = val.Departure.split(' ')[4]
|
|
|
+ savesubscribeobj.air_atd_sub_etd_unit = val.Departure.split(' ')[5]
|
|
|
} else {
|
|
|
delete savesubscribeobj.air_atd_sub_etd
|
|
|
delete savesubscribeobj.air_atd_sub_etd_unit
|
|
|
@@ -321,8 +321,8 @@ const ChangeETDAirRules = (val: any) => {
|
|
|
if (val.ETD != '') {
|
|
|
if (val.ETD.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.air_etd_change = false
|
|
|
- savesubscribeobj.air_etd_old_sub_new = val.ETD.split(' ')[6]
|
|
|
- savesubscribeobj.air_etd_old_sub_new_unit = val.ETD.split(' ')[7]
|
|
|
+ savesubscribeobj.air_etd_old_sub_new = val.ETD.split(' ')[7]
|
|
|
+ savesubscribeobj.air_etd_old_sub_new_unit = val.ETD.split(' ')[8]
|
|
|
} else {
|
|
|
savesubscribeobj.air_etd_change = true
|
|
|
}
|
|
|
@@ -335,8 +335,8 @@ const ChangeETDAirRules = (val: any) => {
|
|
|
if (val.ETA != '') {
|
|
|
if (val.ETA.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.air_eta_change = false
|
|
|
- savesubscribeobj.air_eta_old_sub_new = val.ETA.split(' ')[6]
|
|
|
- savesubscribeobj.air_eta_old_sub_new_unit = val.ETA.split(' ')[7]
|
|
|
+ savesubscribeobj.air_eta_old_sub_new = val.ETA.split(' ')[7]
|
|
|
+ savesubscribeobj.air_eta_old_sub_new_unit = val.ETA.split(' ')[8]
|
|
|
} else {
|
|
|
savesubscribeobj.air_eta_change = true
|
|
|
}
|
|
|
@@ -392,7 +392,7 @@ const Savesubscribe = () => {
|
|
|
MilMethodsList.value.length == 0
|
|
|
) {
|
|
|
if (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0) {
|
|
|
- missingmessage.value += 'Select Milstone, '
|
|
|
+ missingmessage.value += 'Select Milstones, '
|
|
|
}
|
|
|
if (MilFrequencyList.value.length == 0) {
|
|
|
missingmessage.value += 'Notification Frequency, '
|
|
|
@@ -452,19 +452,16 @@ const Savesubscribe = () => {
|
|
|
} else if (props.TitleType == 'Departure') {
|
|
|
savesubscribeobj.rules_type = 'Departure/Arrival_Delay'
|
|
|
if (
|
|
|
- DelayedDeparturedList.value == undefined ||
|
|
|
- DelayedDeparturedList.value.length == 0 ||
|
|
|
- DelayedAirdList.value == undefined ||
|
|
|
+ DelayedDeparturedList.value == undefined &&
|
|
|
+ DelayedAirdList.value == undefined ||
|
|
|
+ DelayedDeparturedList.value.length == 0 &&
|
|
|
DelayedAirdList.value.length == 0 ||
|
|
|
DepFrequencyList.value.length == 0 ||
|
|
|
DepMethodsList.value == undefined ||
|
|
|
DepMethodsList.value.length == 0
|
|
|
) {
|
|
|
- if (DelayedDeparturedList.value == undefined || DelayedDeparturedList.value.length == 0) {
|
|
|
- missingmessage.value += 'Ocean Shipments, '
|
|
|
- }
|
|
|
- if (DelayedAirdList.value == undefined || DelayedAirdList.value.length == 0) {
|
|
|
- missingmessage.value += 'Air Shipments, '
|
|
|
+ if (DelayedDeparturedList.value.length == 0 && DelayedAirdList.value.length == 0 || DelayedDeparturedList.value == undefined && DelayedAirdList.value == undefined) {
|
|
|
+ missingmessage.value += 'Select Delayed Type, '
|
|
|
}
|
|
|
if (DepFrequencyList.value.length == 0) {
|
|
|
missingmessage.value += 'Notification Frequency, '
|
|
|
@@ -475,7 +472,22 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
|
UnableSaveVisible.value = true
|
|
|
} else {
|
|
|
- str = DelayedDeparturedList.value.join(';\n') + ';\n' + DelayedAirdList.value.join(';\n')
|
|
|
+ if(DelayedDeparturedList.value.length == 0) {
|
|
|
+ str =
|
|
|
+ 'Air: ' +
|
|
|
+ DelayedAirdList.value.join(',')
|
|
|
+ } else if(DelayedAirdList.value.length == 0) {
|
|
|
+ str =
|
|
|
+ 'Ocean: ' +
|
|
|
+ DelayedDeparturedList.value.join(',')
|
|
|
+ } else {
|
|
|
+ str =
|
|
|
+ 'Ocean: ' +
|
|
|
+ DelayedDeparturedList.value.join(',') +
|
|
|
+ ';\nAir: ' +
|
|
|
+ DelayedAirdList.value.join(',') +
|
|
|
+ ';'
|
|
|
+ }
|
|
|
savesubscribeobj.event_details = str
|
|
|
SaveSuceessful()
|
|
|
}
|
|
|
@@ -483,18 +495,15 @@ const Savesubscribe = () => {
|
|
|
savesubscribeobj.rules_type = 'ETD/ETA_Change'
|
|
|
if (
|
|
|
ETDOceanList.value == undefined ||
|
|
|
+ ETDAirList.value == undefined &&
|
|
|
ETDOceanList.value.length == 0 ||
|
|
|
- ETDAirList.value == undefined ||
|
|
|
- ETDAirList.value.length == 0 ||
|
|
|
+ ETDAirList.value.length == 0 &&
|
|
|
ETDFrequencyList.value.length == 0 ||
|
|
|
ETDMethodsList.value == undefined ||
|
|
|
ETDMethodsList.value.length == 0
|
|
|
) {
|
|
|
- if (ETDOceanList.value == undefined || ETDOceanList.value.length == 0) {
|
|
|
- missingmessage.value += 'Ocean Shipments, '
|
|
|
- }
|
|
|
- if (ETDAirList.value == undefined || ETDAirList.value.length == 0) {
|
|
|
- missingmessage.value += 'Air Shipments, '
|
|
|
+ if (ETDOceanList.value == undefined && ETDAirList.value == undefined || ETDOceanList.value.length == 0 && ETDAirList.value.length) {
|
|
|
+ missingmessage.value += 'Select Time Type, '
|
|
|
}
|
|
|
if (ETDFrequencyList.value.length == 0) {
|
|
|
missingmessage.value += 'Notification Frequency, '
|
|
|
@@ -505,7 +514,22 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
|
UnableSaveVisible.value = true
|
|
|
} else {
|
|
|
- str = ETDOceanList.value.join(';\n') + ';\n' + ETDAirList.value.join(';\n')
|
|
|
+ if(ETDOceanList.value.length == 0) {
|
|
|
+ str =
|
|
|
+ '[Air]' +
|
|
|
+ ETDAirList.value.join(',')
|
|
|
+ } else if(ETDAirList.value.length == 0) {
|
|
|
+ str =
|
|
|
+ '[Ocean]' +
|
|
|
+ ETDOceanList.value.join(',')
|
|
|
+ } else {
|
|
|
+ str =
|
|
|
+ '[Ocean]' +
|
|
|
+ ETDOceanList.value.join(',') +
|
|
|
+ ';\n[Air]' +
|
|
|
+ ETDAirList.value.join(',') +
|
|
|
+ ';'
|
|
|
+ }
|
|
|
savesubscribeobj.event_details = str
|
|
|
SaveSuceessful()
|
|
|
}
|
|
|
@@ -594,7 +618,7 @@ defineExpose({
|
|
|
</template>
|
|
|
<div>
|
|
|
<RulesShipments
|
|
|
- Title="Ocean shipments"
|
|
|
+ Title="Ocean Shipments"
|
|
|
ref="MilOceanref"
|
|
|
@ChangeCheckRules="ChangeCheckOceanRules"
|
|
|
:CheckboxList="MilestoneOceanListInit"
|
|
|
@@ -603,7 +627,7 @@ defineExpose({
|
|
|
</div>
|
|
|
<div>
|
|
|
<RulesShipments
|
|
|
- Title="Air shipments"
|
|
|
+ Title="Air Shipments"
|
|
|
ref="MilAirref"
|
|
|
@ChangeCheckRules="ChangeCheckAirRules"
|
|
|
:CheckboxList="MilestoneAirListInit"
|
|
|
@@ -632,7 +656,7 @@ defineExpose({
|
|
|
</template>
|
|
|
<div>
|
|
|
<RulesShipments
|
|
|
- Title="Ocean shipments"
|
|
|
+ Title="Ocean Shipments"
|
|
|
ref="ContainerOcean"
|
|
|
@ChangeCheckRules="ChangeContainerRules"
|
|
|
:CheckboxList="ContainerOceanListInit"
|
|
|
@@ -661,7 +685,7 @@ defineExpose({
|
|
|
</template>
|
|
|
<div>
|
|
|
<DelayedType
|
|
|
- Title="Ocean shipments"
|
|
|
+ Title="Ocean Shipments"
|
|
|
ref="OceanDelayed"
|
|
|
:DelayedData="DelayedDataInit"
|
|
|
@ChangeCheckRules="ChangeDeayedRules"
|
|
|
@@ -669,7 +693,7 @@ defineExpose({
|
|
|
</div>
|
|
|
<div>
|
|
|
<DelayedType
|
|
|
- Title="Air shipments"
|
|
|
+ Title="Air Shipments"
|
|
|
ref="AirDelayed"
|
|
|
:DelayedData="DelayedDataInitAir"
|
|
|
@ChangeCheckRules="ChangeAirRules"
|
|
|
@@ -692,12 +716,12 @@ defineExpose({
|
|
|
></use>
|
|
|
</svg>
|
|
|
</span>
|
|
|
- <span class="stars_red">*</span>Select Delayed Type
|
|
|
+ <span class="stars_red">*</span>Select Time Type
|
|
|
</div>
|
|
|
</template>
|
|
|
<div>
|
|
|
<ETDShipments
|
|
|
- Title="Ocean shipments"
|
|
|
+ Title="Ocean Shipments"
|
|
|
ref="OceanETD"
|
|
|
:ETDData="OceanETDInit"
|
|
|
@ChangeCheckRules="ChangeETDOceanRules"
|
|
|
@@ -705,7 +729,7 @@ defineExpose({
|
|
|
</div>
|
|
|
<div>
|
|
|
<ETDShipments
|
|
|
- Title="Air shipments"
|
|
|
+ Title="Air Shipments"
|
|
|
ref="AirETD"
|
|
|
:ETDData="AirETDInit"
|
|
|
@ChangeCheckRules="ChangeETDAirRules"
|
|
|
@@ -1016,9 +1040,12 @@ defineExpose({
|
|
|
width: 0 !important;
|
|
|
height: 0 !important;
|
|
|
}
|
|
|
-:deep(.el-icon svg) {
|
|
|
+:deep(.Ocean_collapse .el-icon svg) {
|
|
|
width: 0 !important;
|
|
|
}
|
|
|
+:deep(.arrivalselect .el-icon svg) {
|
|
|
+ width: 1em !important;
|
|
|
+}
|
|
|
:deep(.el-collapse-item__header.is-active) {
|
|
|
background-color: transparent !important;
|
|
|
border-color: transparent !important;
|