|
@@ -33,11 +33,11 @@ const RulesActive = ref([
|
|
|
'NotificationFrequency',
|
|
'NotificationFrequency',
|
|
|
'NotificationMethod'
|
|
'NotificationMethod'
|
|
|
])
|
|
])
|
|
|
-const OceanCheckList = ref()
|
|
|
|
|
|
|
+const OceanCheckList = ref([])
|
|
|
const OceanCheckListCode = ref()
|
|
const OceanCheckListCode = ref()
|
|
|
-const AirCheckList = ref()
|
|
|
|
|
|
|
+const AirCheckList = ref([])
|
|
|
const AirCheckListCode = ref()
|
|
const AirCheckListCode = ref()
|
|
|
-const ContainerOceanList = ref()
|
|
|
|
|
|
|
+const ContainerOceanList = ref([])
|
|
|
const ContainerOceanCode = ref()
|
|
const ContainerOceanCode = ref()
|
|
|
const IsFirstActive = ref(true)
|
|
const IsFirstActive = ref(true)
|
|
|
const IsTwoActive = ref(true)
|
|
const IsTwoActive = ref(true)
|
|
@@ -133,8 +133,8 @@ const Initdata = () => {
|
|
|
AirCheckList.value.push(option.label)
|
|
AirCheckList.value.push(option.label)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- createObj.Transportstr = res.data.Container_Status_Update.shipment_details.split(';\r\n')[0]
|
|
|
|
|
- createObj.Timestr = res.data.Container_Status_Update.shipment_details.split(';\r\n')[1]
|
|
|
|
|
|
|
+ createObj.Transportstr = res.data.Milestone_Update.shipment_details.split(';\r\n')[0]
|
|
|
|
|
+ createObj.Timestr = res.data.Milestone_Update.shipment_details.split(';\r\n')[1]
|
|
|
createListMilestone.value.push(createObj.Transportstr)
|
|
createListMilestone.value.push(createObj.Transportstr)
|
|
|
createListMilestone.value.push(createObj.Timestr)
|
|
createListMilestone.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
@@ -622,8 +622,6 @@ const Savesubscribe = () => {
|
|
|
if (props.TitleType == 'Milestone') {
|
|
if (props.TitleType == 'Milestone') {
|
|
|
savesubscribeobj.rules_type = 'Milestone_Update'
|
|
savesubscribeobj.rules_type = 'Milestone_Update'
|
|
|
if (
|
|
if (
|
|
|
- OceanCheckList.value == undefined &&
|
|
|
|
|
- AirCheckList.value == undefined ||
|
|
|
|
|
OceanCheckList.value.length == 0 &&
|
|
OceanCheckList.value.length == 0 &&
|
|
|
AirCheckList.value.length == 0 ||
|
|
AirCheckList.value.length == 0 ||
|
|
|
MilFrequencyList.value.length == 0 ||
|
|
MilFrequencyList.value.length == 0 ||
|
|
@@ -637,7 +635,7 @@ const Savesubscribe = () => {
|
|
|
if (createObj.Timestr == '') {
|
|
if (createObj.Timestr == '') {
|
|
|
missingmessage.value += 'Time, '
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
}
|
|
|
- if (OceanCheckList.value == undefined && AirCheckList.value == undefined || OceanCheckList.value.length == 0 && AirCheckList.value.length == 0 ) {
|
|
|
|
|
|
|
+ if (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0 ) {
|
|
|
missingmessage.value += 'Select Milstone, '
|
|
missingmessage.value += 'Select Milstone, '
|
|
|
}
|
|
}
|
|
|
if (MilFrequencyList.value.length == 0) {
|
|
if (MilFrequencyList.value.length == 0) {
|
|
@@ -673,7 +671,6 @@ const Savesubscribe = () => {
|
|
|
} else if (props.TitleType == 'Container') {
|
|
} else if (props.TitleType == 'Container') {
|
|
|
savesubscribeobj.rules_type = 'Container_Status_Update'
|
|
savesubscribeobj.rules_type = 'Container_Status_Update'
|
|
|
if (
|
|
if (
|
|
|
- ContainerOceanList.value == undefined ||
|
|
|
|
|
ContainerOceanList.value.length == 0 ||
|
|
ContainerOceanList.value.length == 0 ||
|
|
|
ConFrequencyList.value.length == 0 ||
|
|
ConFrequencyList.value.length == 0 ||
|
|
|
ConMethodsList.value.length == 0 ||
|
|
ConMethodsList.value.length == 0 ||
|
|
@@ -686,7 +683,7 @@ const Savesubscribe = () => {
|
|
|
if (createObj.Timestr == '') {
|
|
if (createObj.Timestr == '') {
|
|
|
missingmessage.value += 'Time, '
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
}
|
|
|
- if (ContainerOceanList.value == undefined || ContainerOceanList.value.length == 0) {
|
|
|
|
|
|
|
+ if (ContainerOceanList.value.length == 0) {
|
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
|
}
|
|
}
|
|
|
if (ConFrequencyList.value.length == 0) {
|
|
if (ConFrequencyList.value.length == 0) {
|