|
@@ -34,8 +34,11 @@ const RulesActive = ref([
|
|
|
'NotificationMethod'
|
|
'NotificationMethod'
|
|
|
])
|
|
])
|
|
|
const OceanCheckList = ref()
|
|
const OceanCheckList = ref()
|
|
|
|
|
+const OceanCheckListCode = ref()
|
|
|
const AirCheckList = ref()
|
|
const AirCheckList = ref()
|
|
|
|
|
+const AirCheckListCode = ref()
|
|
|
const ContainerOceanList = ref()
|
|
const ContainerOceanList = ref()
|
|
|
|
|
+const ContainerOceanCode = ref()
|
|
|
const IsFirstActive = ref(true)
|
|
const IsFirstActive = ref(true)
|
|
|
const IsTwoActive = ref(true)
|
|
const IsTwoActive = ref(true)
|
|
|
const IsThreeActive = ref(true)
|
|
const IsThreeActive = ref(true)
|
|
@@ -99,15 +102,36 @@ const Initdata = () => {
|
|
|
ShipmentRangeMil.value = res.data.Milestone_Update
|
|
ShipmentRangeMil.value = res.data.Milestone_Update
|
|
|
MilestoneOceanListInit.value = res.data.Milestone_Update.OceanCheckBoxList
|
|
MilestoneOceanListInit.value = res.data.Milestone_Update.OceanCheckBoxList
|
|
|
MilestoneOceanListChecked.value = res.data.Milestone_Update.OceanCheckedList
|
|
MilestoneOceanListChecked.value = res.data.Milestone_Update.OceanCheckedList
|
|
|
- OceanCheckList.value = res.data.Milestone_Update.OceanCheckedList
|
|
|
|
|
|
|
+ OceanCheckList.value = []
|
|
|
|
|
+ // 遍历选中的value值,找到对应的label值
|
|
|
|
|
+ MilestoneOceanListChecked.value.forEach((value) => {
|
|
|
|
|
+ const option = MilestoneOceanListInit.value.find((item) => item.value === value)
|
|
|
|
|
+ if (option) {
|
|
|
|
|
+ OceanCheckList.value.push(option.label)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
MilestoneAirListInit.value = res.data.Milestone_Update.AirCheckBoxList
|
|
MilestoneAirListInit.value = res.data.Milestone_Update.AirCheckBoxList
|
|
|
MilestoneAirListChecked.value = res.data.Milestone_Update.AirCheckedList
|
|
MilestoneAirListChecked.value = res.data.Milestone_Update.AirCheckedList
|
|
|
- AirCheckList.value = res.data.Milestone_Update.AirCheckedList
|
|
|
|
|
|
|
+ AirCheckList.value = []
|
|
|
|
|
+ // 遍历选中的value值,找到对应的label值
|
|
|
|
|
+ MilestoneAirListChecked.value.forEach((value) => {
|
|
|
|
|
+ const option = MilestoneAirListInit.value.find((item) => item.value === value)
|
|
|
|
|
+ if (option) {
|
|
|
|
|
+ AirCheckList.value.push(option.label)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
createListMilestone.value = res.data.Milestone_Update.shipment_details
|
|
createListMilestone.value = res.data.Milestone_Update.shipment_details
|
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
} else if (editTablerules_type == 'Container_Status_Update') {
|
|
|
ContainerOceanListInit.value = res.data.Container_Status_Update.CtnrCheckBoxList
|
|
ContainerOceanListInit.value = res.data.Container_Status_Update.CtnrCheckBoxList
|
|
|
ContainerOceanListChecked.value = res.data.Container_Status_Update.CtnrCheckedList
|
|
ContainerOceanListChecked.value = res.data.Container_Status_Update.CtnrCheckedList
|
|
|
- ContainerOceanList.value = res.data.Container_Status_Update.CtnrCheckedList
|
|
|
|
|
|
|
+ ContainerOceanList.value = []
|
|
|
|
|
+ // 遍历选中的value值,找到对应的label值
|
|
|
|
|
+ ContainerOceanListChecked.value.forEach((value) => {
|
|
|
|
|
+ const option = ContainerOceanListInit.value.find((item) => item.value === value)
|
|
|
|
|
+ if (option) {
|
|
|
|
|
+ ContainerOceanList.value.push(option.label)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
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
|
|
@@ -158,11 +182,13 @@ const Initdata = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 给tag list赋值
|
|
// 给tag list赋值
|
|
|
-const ChangeCheckOceanRules = (val: any) => {
|
|
|
|
|
|
|
+const ChangeCheckOceanRules = (val: any, value: any) => {
|
|
|
OceanCheckList.value = val
|
|
OceanCheckList.value = val
|
|
|
|
|
+ OceanCheckListCode.value = value
|
|
|
}
|
|
}
|
|
|
-const ChangeContainerRules = (val: any) => {
|
|
|
|
|
|
|
+const ChangeContainerRules = (val: any, value: any) => {
|
|
|
ContainerOceanList.value = val
|
|
ContainerOceanList.value = val
|
|
|
|
|
+ ContainerOceanCode.value = value
|
|
|
}
|
|
}
|
|
|
// delayed赋值
|
|
// delayed赋值
|
|
|
const ChangeDeayedRules = (val: any) => {
|
|
const ChangeDeayedRules = (val: any) => {
|
|
@@ -203,8 +229,9 @@ const ChangeAirRules = (val: any) => {
|
|
|
delete savesubscribeobj.air_ata_sub_eta_unit
|
|
delete savesubscribeobj.air_ata_sub_eta_unit
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-const ChangeCheckAirRules = (val: any) => {
|
|
|
|
|
|
|
+const ChangeCheckAirRules = (val: any, value: any) => {
|
|
|
AirCheckList.value = val
|
|
AirCheckList.value = val
|
|
|
|
|
+ AirCheckListCode.value = value
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//选择create new rules
|
|
//选择create new rules
|
|
@@ -531,7 +558,6 @@ const Savesubscribe = () => {
|
|
|
createObj.Transportstr == '' ||
|
|
createObj.Transportstr == '' ||
|
|
|
createObj.Timestr == ''
|
|
createObj.Timestr == ''
|
|
|
) {
|
|
) {
|
|
|
- console.log(createObj)
|
|
|
|
|
if (createObj.Transportstr == '') {
|
|
if (createObj.Transportstr == '') {
|
|
|
missingmessage.value += 'Transport Mode, '
|
|
missingmessage.value += 'Transport Mode, '
|
|
|
}
|
|
}
|
|
@@ -553,8 +579,8 @@ const Savesubscribe = () => {
|
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
missingmessage.value = missingmessage.value.substring(0, missingmessage.value.length - 2)
|
|
|
UnableSaveVisible.value = true
|
|
UnableSaveVisible.value = true
|
|
|
} else {
|
|
} else {
|
|
|
- savesubscribeobj.ocean_milestone = OceanCheckList.value
|
|
|
|
|
- savesubscribeobj.air_milestone = AirCheckList.value
|
|
|
|
|
|
|
+ savesubscribeobj.ocean_milestone = OceanCheckListCode.value
|
|
|
|
|
+ savesubscribeobj.air_milestone = AirCheckListCode.value
|
|
|
str =
|
|
str =
|
|
|
'Ocean Milestones: ' +
|
|
'Ocean Milestones: ' +
|
|
|
OceanCheckList.value.join(',') +
|
|
OceanCheckList.value.join(',') +
|