|
@@ -69,6 +69,11 @@ const ShipmentRangeDep = ref()
|
|
|
const ShipmentRangeETD = ref()
|
|
const ShipmentRangeETD = ref()
|
|
|
|
|
|
|
|
const MonitoringList = ref()
|
|
const MonitoringList = ref()
|
|
|
|
|
+//选择create new rules
|
|
|
|
|
+const createListMilestone = ref([])
|
|
|
|
|
+const createListContainer = ref([])
|
|
|
|
|
+const createListDeparture = ref([])
|
|
|
|
|
+const createListETDChange = ref([])
|
|
|
const getInitMonitoring = () => {
|
|
const getInitMonitoring = () => {
|
|
|
$api
|
|
$api
|
|
|
.MonitoringInit({})
|
|
.MonitoringInit({})
|
|
@@ -128,7 +133,10 @@ const Initdata = () => {
|
|
|
AirCheckList.value.push(option.label)
|
|
AirCheckList.value.push(option.label)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- createListMilestone.value = res.data.Milestone_Update.shipment_details
|
|
|
|
|
|
|
+ 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]
|
|
|
|
|
+ createListMilestone.value.push(createObj.Transportstr)
|
|
|
|
|
+ createListMilestone.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
|
ContainerOceanCode.value = []
|
|
ContainerOceanCode.value = []
|
|
|
ContainerOceanListInit.value = res.data.Container_Status_Update.CtnrCheckBoxList
|
|
ContainerOceanListInit.value = res.data.Container_Status_Update.CtnrCheckBoxList
|
|
@@ -145,6 +153,10 @@ const Initdata = () => {
|
|
|
FrequencyDataCon.value = res.data.Container_Status_Update
|
|
FrequencyDataCon.value = res.data.Container_Status_Update
|
|
|
MethodsDataCon.value = res.data.Container_Status_Update
|
|
MethodsDataCon.value = res.data.Container_Status_Update
|
|
|
ShipmentRangeCon.value = res.data.Container_Status_Update
|
|
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]
|
|
|
|
|
+ createListContainer.value.push(createObj.Transportstr)
|
|
|
|
|
+ createListContainer.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'Departure/Arrival_Delay') {
|
|
} else if (editTablerules_type == 'Departure/Arrival_Delay') {
|
|
|
let OceanObj: any = {}
|
|
let OceanObj: any = {}
|
|
|
OceanObj.atd_etd = res.data['Departure/Arrival_Delay'].ocean_atd_sub_etd
|
|
OceanObj.atd_etd = res.data['Departure/Arrival_Delay'].ocean_atd_sub_etd
|
|
@@ -161,6 +173,10 @@ const Initdata = () => {
|
|
|
FrequencyDataDep.value = res.data['Departure/Arrival_Delay']
|
|
FrequencyDataDep.value = res.data['Departure/Arrival_Delay']
|
|
|
MethodsDataDep.value = res.data['Departure/Arrival_Delay']
|
|
MethodsDataDep.value = res.data['Departure/Arrival_Delay']
|
|
|
ShipmentRangeDep.value = res.data['Departure/Arrival_Delay']
|
|
ShipmentRangeDep.value = res.data['Departure/Arrival_Delay']
|
|
|
|
|
+ createObj.Transportstr = res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[0]
|
|
|
|
|
+ createObj.Timestr = res.data['Departure/Arrival_Delay'].shipment_details.split(';\r\n')[1]
|
|
|
|
|
+ createListDeparture.value.push(createObj.Transportstr)
|
|
|
|
|
+ createListDeparture.value.push(createObj.Timestr)
|
|
|
} else if (editTablerules_type == 'ETD/ETA_Change') {
|
|
} else if (editTablerules_type == 'ETD/ETA_Change') {
|
|
|
let OceanChange: any = {}
|
|
let OceanChange: any = {}
|
|
|
OceanChange.ETDradio = res.data['ETD/ETA_Change'].ocean_etd_change
|
|
OceanChange.ETDradio = res.data['ETD/ETA_Change'].ocean_etd_change
|
|
@@ -181,6 +197,10 @@ const Initdata = () => {
|
|
|
FrequencyDataETD.value = res.data['ETD/ETA_Change']
|
|
FrequencyDataETD.value = res.data['ETD/ETA_Change']
|
|
|
MethodsDataETD.value = res.data['ETD/ETA_Change']
|
|
MethodsDataETD.value = res.data['ETD/ETA_Change']
|
|
|
ShipmentRangeETD.value = res.data['ETD/ETA_Change']
|
|
ShipmentRangeETD.value = res.data['ETD/ETA_Change']
|
|
|
|
|
+ createObj.Transportstr = res.data['ETD/ETA_Change'].shipment_details.split(';\r\n')[0]
|
|
|
|
|
+ createObj.Timestr = res.data['ETD/ETA_Change'].shipment_details.split(';\r\n')[1]
|
|
|
|
|
+ createListETDChange.value.push(createObj.Transportstr)
|
|
|
|
|
+ createListETDChange.value.push(createObj.Timestr)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -244,11 +264,6 @@ const ChangeCheckAirRules = (val: any, value: any) => {
|
|
|
AirCheckListCode.value = value
|
|
AirCheckListCode.value = value
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-//选择create new rules
|
|
|
|
|
-const createListMilestone = ref()
|
|
|
|
|
-const createListContainer = ref()
|
|
|
|
|
-const createListDeparture = ref()
|
|
|
|
|
-const createListETDChange = ref()
|
|
|
|
|
|
|
|
|
|
let createObj: any = {
|
|
let createObj: any = {
|
|
|
Transportstr: '',
|
|
Transportstr: '',
|
|
@@ -479,8 +494,8 @@ const ChangeETDOceanRules = (val: any) => {
|
|
|
if (val.ETD != '') {
|
|
if (val.ETD != '') {
|
|
|
if (val.ETD.indexOf('≥') != -1) {
|
|
if (val.ETD.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.ocean_etd_change = false
|
|
savesubscribeobj.ocean_etd_change = false
|
|
|
- savesubscribeobj.ocean_etd_old_sub_new = val.ETD.split(' ')[6]
|
|
|
|
|
- savesubscribeobj.ocean_etd_old_sub_new_unit = val.ETD.split(' ')[7]
|
|
|
|
|
|
|
+ savesubscribeobj.ocean_etd_old_sub_new = val.ETD.split(' ')[7]
|
|
|
|
|
+ savesubscribeobj.ocean_etd_old_sub_new_unit = val.ETD.split(' ')[8]
|
|
|
} else {
|
|
} else {
|
|
|
savesubscribeobj.ocean_etd_change = true
|
|
savesubscribeobj.ocean_etd_change = true
|
|
|
}
|
|
}
|
|
@@ -493,8 +508,8 @@ const ChangeETDOceanRules = (val: any) => {
|
|
|
if (val.ETA != '') {
|
|
if (val.ETA != '') {
|
|
|
if (val.ETA.indexOf('≥') != -1) {
|
|
if (val.ETA.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.ocean_eta_change = false
|
|
savesubscribeobj.ocean_eta_change = false
|
|
|
- savesubscribeobj.ocean_eta_old_sub_new = val.ETA.split(' ')[6]
|
|
|
|
|
- savesubscribeobj.ocean_eta_old_sub_new_unit = val.ETA.split(' ')[7]
|
|
|
|
|
|
|
+ savesubscribeobj.ocean_eta_old_sub_new = val.ETA.split(' ')[7]
|
|
|
|
|
+ savesubscribeobj.ocean_eta_old_sub_new_unit = val.ETA.split(' ')[8]
|
|
|
} else {
|
|
} else {
|
|
|
savesubscribeobj.ocean_eta_change = true
|
|
savesubscribeobj.ocean_eta_change = true
|
|
|
}
|
|
}
|
|
@@ -516,8 +531,8 @@ const ChangeETDAirRules = (val: any) => {
|
|
|
if (val.ETD != '') {
|
|
if (val.ETD != '') {
|
|
|
if (val.ETD.indexOf('≥') != -1) {
|
|
if (val.ETD.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.air_etd_change = false
|
|
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 {
|
|
} else {
|
|
|
savesubscribeobj.air_etd_change = true
|
|
savesubscribeobj.air_etd_change = true
|
|
|
}
|
|
}
|
|
@@ -530,8 +545,8 @@ const ChangeETDAirRules = (val: any) => {
|
|
|
if (val.ETA != '') {
|
|
if (val.ETA != '') {
|
|
|
if (val.ETA.indexOf('≥') != -1) {
|
|
if (val.ETA.indexOf('≥') != -1) {
|
|
|
savesubscribeobj.air_eta_change = false
|
|
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 {
|
|
} else {
|
|
|
savesubscribeobj.air_eta_change = true
|
|
savesubscribeobj.air_eta_change = true
|
|
|
}
|
|
}
|
|
@@ -561,7 +576,6 @@ const SaveSuceessful = () => {
|
|
|
})
|
|
})
|
|
|
.then((res: any) => {
|
|
.then((res: any) => {
|
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
|
- console.log(res.data)
|
|
|
|
|
if(res.data.msg == 'Update Successful') {
|
|
if(res.data.msg == 'Update Successful') {
|
|
|
SaveedVisible.value = true
|
|
SaveedVisible.value = true
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -662,8 +676,16 @@ const Savesubscribe = () => {
|
|
|
ContainerOceanList.value == undefined ||
|
|
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 ||
|
|
|
|
|
+ createObj.Transportstr == '' ||
|
|
|
|
|
+ createObj.Timestr == ''
|
|
|
) {
|
|
) {
|
|
|
|
|
+ if (createObj.Transportstr == '') {
|
|
|
|
|
+ missingmessage.value += 'Transport Mode, '
|
|
|
|
|
+ }
|
|
|
|
|
+ if (createObj.Timestr == '') {
|
|
|
|
|
+ missingmessage.value += 'Time, '
|
|
|
|
|
+ }
|
|
|
if (ContainerOceanList.value == undefined || ContainerOceanList.value.length == 0) {
|
|
if (ContainerOceanList.value == undefined || ContainerOceanList.value.length == 0) {
|
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
|
}
|
|
}
|
|
@@ -689,8 +711,16 @@ const Savesubscribe = () => {
|
|
|
DelayedAirdList.value == undefined ||
|
|
DelayedAirdList.value == undefined ||
|
|
|
DelayedAirdList.value.length == 0 ||
|
|
DelayedAirdList.value.length == 0 ||
|
|
|
DepFrequencyList.value.length == 0 ||
|
|
DepFrequencyList.value.length == 0 ||
|
|
|
- DepMethodsList.value.length == 0
|
|
|
|
|
|
|
+ DepMethodsList.value.length == 0 ||
|
|
|
|
|
+ createObj.Transportstr == '' ||
|
|
|
|
|
+ createObj.Timestr == ''
|
|
|
) {
|
|
) {
|
|
|
|
|
+ if (createObj.Transportstr == '') {
|
|
|
|
|
+ missingmessage.value += 'Transport Mode, '
|
|
|
|
|
+ }
|
|
|
|
|
+ if (createObj.Timestr == '') {
|
|
|
|
|
+ missingmessage.value += 'Time, '
|
|
|
|
|
+ }
|
|
|
if (DelayedDeparturedList.value == undefined || DelayedDeparturedList.value.length == 0) {
|
|
if (DelayedDeparturedList.value == undefined || DelayedDeparturedList.value.length == 0) {
|
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
|
}
|
|
}
|
|
@@ -718,8 +748,16 @@ const Savesubscribe = () => {
|
|
|
ETDAirList.value == undefined ||
|
|
ETDAirList.value == undefined ||
|
|
|
ETDAirList.value.length == 0 ||
|
|
ETDAirList.value.length == 0 ||
|
|
|
ETDFrequencyList.value.length == 0 ||
|
|
ETDFrequencyList.value.length == 0 ||
|
|
|
- ETDMethodsList.value.length == 0
|
|
|
|
|
|
|
+ ETDMethodsList.value.length == 0 ||
|
|
|
|
|
+ createObj.Transportstr == '' ||
|
|
|
|
|
+ createObj.Timestr == ''
|
|
|
) {
|
|
) {
|
|
|
|
|
+ if (createObj.Transportstr == '') {
|
|
|
|
|
+ missingmessage.value += 'Transport Mode, '
|
|
|
|
|
+ }
|
|
|
|
|
+ if (createObj.Timestr == '') {
|
|
|
|
|
+ missingmessage.value += 'Time, '
|
|
|
|
|
+ }
|
|
|
if (ETDOceanList.value == undefined || ETDOceanList.value.length == 0) {
|
|
if (ETDOceanList.value == undefined || ETDOceanList.value.length == 0) {
|
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
missingmessage.value += 'Ocean Shipments, '
|
|
|
}
|
|
}
|