bug修改

This commit is contained in:
yyy 2025-04-03 17:07:54 +08:00
parent ec136afa6c
commit 85a2f227d5
5 changed files with 58 additions and 35 deletions

View File

@ -127,7 +127,6 @@ const props = defineProps({
const locationTypeNumber = ref(1)
const open = (locationTypeNum) => {
console.log(props.positionMapId)
dialogFormVisible.value = true
currentItem.value = null
locationTypeNumber.value = locationTypeNum
@ -280,6 +279,8 @@ const getAllNodeList = async () => {
}
allMapPointInfo.value.push(item)
}
item.dataList = item.dataList.reverse()
})
}
//cmpx

View File

@ -317,9 +317,9 @@ const submitForm = async (formEl) => {
)
let actualEndControl = disposeEventPoint(form.value.endControlX, form.value.endControlY)
form.value.actualBeginControlX = actualBeginControl.actualLocationX //x
form.value.actualBeginControlY = actualBeginControl.actualLocationX //y
form.value.actualBeginControlY = actualBeginControl.actualLocationY //y
form.value.actualEndControlX = actualEndControl.actualLocationX //x
form.value.actualEndControlY = actualEndControl.actualLocationX //y
form.value.actualEndControlY = actualEndControl.actualLocationY //y
} else {
form.value.beginControlX = 0
form.value.beginControlY = 0

View File

@ -840,8 +840,7 @@ const resizeEnd = (locationX, locationY, w, h, item, index) => {
route.endPointY = y
route.endHigh = Number(item.locationDeepPx)
route.endWidth = Number(item.locationWidePx)
route.actualEndPointX = actualPoint.actualLocationX
route.actualEndPointY = actualPoint.actualLocationY
route.actualEndPointX = actualPoint.route.actualEndPointY = actualPoint.actualLocationY
}
})
addEditHistory()
@ -2336,7 +2335,7 @@ const editMapRouteDialogSubmit = (form) => {
item.locationX = form.endPointX
item.locationY = form.endPointY
item.actualLocationX = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX
item.actualLocationY = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX
item.actualLocationY = disposeEventPoint(form.endPointX, form.endPointY).actualLocationY
}
})
//

View File

@ -60,7 +60,7 @@
<el-input-number
v-model="state.rotationForm.angle"
:min="0"
:max="360"
:max="259"
controls-position="right"
/>
</el-form-item>
@ -2375,7 +2375,7 @@ const editMapRouteDialogSubmit = (form) => {
item.locationX = form.endPointX
item.locationY = form.endPointY
item.actualLocationX = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX
item.actualLocationY = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX
item.actualLocationY = disposeEventPoint(form.endPointX, form.endPointY).actualLocationY
}
})
//

View File

@ -48,7 +48,7 @@
:disabled="montageNumberDisable"
class="!w-220px"
v-model="formData.montageNumber"
:min="1"
:min="0"
:max="10"
@change="montageNumberChange"
/>
@ -155,7 +155,6 @@
:rules="{ required: true, message: '任务类型不能为空', trigger: 'change' }"
>
<el-select
:disabled="formData.doCycle == 1 || formData.doMoveAll == 1"
v-model="detailItem.taskType"
placeholder="请选择"
@change="taskTypeChange(detailItem, index)"
@ -969,29 +968,53 @@ const montageNumberChange = (currentValue: number, oldValue: number) => {
let addLength = currentValue - formData.value.taskDetailList.length
let taskTypeList
if (oldItem.taskType === 1) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
} else if (oldItem.taskType === 4) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
} else if (oldItem.taskType === 5) {
taskTypeList = [
{ label: '移动', value: 4 },
{ label: '仅放货', value: 6 }
]
} else if (oldItem.taskType === 6) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
//线
if (formData.value.doMoveAll === 1) {
taskTypeList = [{ label: '取放货', value: 1 }]
} else {
//
if (formData.value.doCycle === 1) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 }
]
} else {
if (oldItem) {
if (oldItem.taskType === 1) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
} else if (oldItem.taskType === 4) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
} else if (oldItem.taskType === 5) {
taskTypeList = [
{ label: '移动', value: 4 },
{ label: '仅放货', value: 6 }
]
} else if (oldItem.taskType === 6) {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 }
]
}
} else {
taskTypeList = [
{ label: '取放货', value: 1 },
{ label: '停车', value: 2 },
{ label: '充电', value: 3 },
{ label: '移动', value: 4 },
{ label: '仅取货', value: 5 },
{ label: '仅放货', value: 6 }
]
}
}
}
for (let index = 0; index < addLength; index++) {
@ -1031,7 +1054,7 @@ const doCycleChange = () => {
resolve(true)
} else {
try {
ElMessageBox.confirm('开启循环任务,任务类型只能选择取放货,是否切换?', '提示', {
ElMessageBox.confirm('开启循环任务,任务类型只能选择取放货和移动,是否切换?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@ -1040,7 +1063,7 @@ const doCycleChange = () => {
resolve(true)
formData.value.cycleNumber = 1 //
formData.value.taskDetailList = formData.value.taskDetailList.filter(
(item, index) => item.taskType === 1
(item, index) => item.taskType === 1 || item.taskType === 4
)
formData.value.montageNumber = formData.value.taskDetailList.length //
})