|
|
@@ -47,10 +47,10 @@ const UnableSaveVisible = ref(false)
|
|
|
const SaveVisibleError = ref(false)
|
|
|
const SaveVisibleDetected = ref(false)
|
|
|
const SaveedVisible = ref(false)
|
|
|
-const DelayedDeparturedList = ref()
|
|
|
-const DelayedAirdList = ref()
|
|
|
-const ETDOceanList = ref()
|
|
|
-const ETDAirList = ref()
|
|
|
+const DelayedDeparturedList = ref([])
|
|
|
+const DelayedAirdList = ref([])
|
|
|
+const ETDOceanList = ref([])
|
|
|
+const ETDAirList = ref([])
|
|
|
const FrequencyDataMil = ref()
|
|
|
const FrequencyDataCon = ref()
|
|
|
const FrequencyDataDep = ref()
|
|
|
@@ -74,6 +74,11 @@ const createListMilestone = ref([])
|
|
|
const createListContainer = ref([])
|
|
|
const createListDeparture = ref([])
|
|
|
const createListETDChange = ref([])
|
|
|
+
|
|
|
+let createObj: any = {
|
|
|
+ Transportstr: '',
|
|
|
+ Timestr: ''
|
|
|
+}
|
|
|
const getInitMonitoring = () => {
|
|
|
$api
|
|
|
.MonitoringInit({})
|
|
|
@@ -155,6 +160,7 @@ const Initdata = () => {
|
|
|
ShipmentRangeCon.value = res.data.Container_Status_Update
|
|
|
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]
|
|
|
+ console.log(res.data.Container_Status_Update.shipment_details.split(';\r\n')[1])
|
|
|
createListContainer.value.push(createObj.Transportstr)
|
|
|
createListContainer.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'Departure/Arrival_Delay') {
|
|
|
@@ -263,12 +269,6 @@ const ChangeCheckAirRules = (val: any, value: any) => {
|
|
|
AirCheckList.value = val
|
|
|
AirCheckListCode.value = value
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-let createObj: any = {
|
|
|
- Transportstr: '',
|
|
|
- Timestr: ''
|
|
|
-}
|
|
|
const changecheckCreateRulesMilestone = (val: any, value: any) => {
|
|
|
createListMilestone.value = []
|
|
|
createObj.Transportstr = val
|
|
|
@@ -636,7 +636,7 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
|
if (OceanCheckList.value.length == 0 && AirCheckList.value.length == 0 ) {
|
|
|
- missingmessage.value += 'Select Milstones, '
|
|
|
+ missingmessage.value += 'Select Milestone, '
|
|
|
}
|
|
|
if (MilFrequencyList.value.length == 0) {
|
|
|
missingmessage.value += 'Notification Frequency, '
|
|
|
@@ -702,9 +702,7 @@ const Savesubscribe = () => {
|
|
|
}
|
|
|
} else if (props.TitleType == 'Departure') {
|
|
|
savesubscribeobj.rules_type = 'Departure/Arrival_Delay'
|
|
|
- if (
|
|
|
- DelayedDeparturedList.value == undefined &&
|
|
|
- DelayedAirdList.value == undefined ||
|
|
|
+ if (
|
|
|
DelayedDeparturedList.value.length == 0 &&
|
|
|
DelayedAirdList.value.length == 0 ||
|
|
|
DepFrequencyList.value.length == 0 ||
|
|
|
@@ -719,7 +717,7 @@ const Savesubscribe = () => {
|
|
|
if (createObj.Timestr == '') {
|
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
|
- if (DelayedDeparturedList.value.length == 0 && DelayedAirdList.value.length == 0 || DelayedDeparturedList.value == undefined && DelayedAirdList.value == undefined) {
|
|
|
+ if (DelayedDeparturedList.value.length == 0 && DelayedAirdList.value.length == 0) {
|
|
|
missingmessage.value += 'Select Delayed Shipments, '
|
|
|
}
|
|
|
if (DepFrequencyList.value.length == 0) {
|
|
|
@@ -753,11 +751,10 @@ const Savesubscribe = () => {
|
|
|
} else {
|
|
|
savesubscribeobj.rules_type = 'ETD/ETA_Change'
|
|
|
if (
|
|
|
- ETDOceanList.value == undefined ||
|
|
|
- ETDAirList.value == undefined &&
|
|
|
- ETDOceanList.value.length == 0 ||
|
|
|
- ETDAirList.value.length == 0 &&
|
|
|
+ ETDOceanList.value.length == 0 &&
|
|
|
+ ETDAirList.value.length == 0 ||
|
|
|
ETDFrequencyList.value.length == 0 ||
|
|
|
+ ETDMethodsList.value == undefined ||
|
|
|
ETDMethodsList.value.length == 0 ||
|
|
|
createObj.Transportstr == '' ||
|
|
|
createObj.Timestr == ''
|
|
|
@@ -768,7 +765,7 @@ const Savesubscribe = () => {
|
|
|
if (createObj.Timestr == '') {
|
|
|
missingmessage.value += 'Time, '
|
|
|
}
|
|
|
- if (ETDOceanList.value == undefined && ETDAirList.value == undefined || ETDOceanList.value.length == 0 && ETDAirList.value.length) {
|
|
|
+ if (ETDOceanList.value.length == 0 && ETDAirList.value.length) {
|
|
|
missingmessage.value += 'Select Time Type, '
|
|
|
}
|
|
|
if (ETDFrequencyList.value.length == 0) {
|