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

View File

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

View File

@ -840,8 +840,7 @@ const resizeEnd = (locationX, locationY, w, h, item, index) => {
route.endPointY = y route.endPointY = y
route.endHigh = Number(item.locationDeepPx) route.endHigh = Number(item.locationDeepPx)
route.endWidth = Number(item.locationWidePx) route.endWidth = Number(item.locationWidePx)
route.actualEndPointX = actualPoint.actualLocationX route.actualEndPointX = actualPoint.route.actualEndPointY = actualPoint.actualLocationY
route.actualEndPointY = actualPoint.actualLocationY
} }
}) })
addEditHistory() addEditHistory()
@ -2336,7 +2335,7 @@ const editMapRouteDialogSubmit = (form) => {
item.locationX = form.endPointX item.locationX = form.endPointX
item.locationY = form.endPointY item.locationY = form.endPointY
item.actualLocationX = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX 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 <el-input-number
v-model="state.rotationForm.angle" v-model="state.rotationForm.angle"
:min="0" :min="0"
:max="360" :max="259"
controls-position="right" controls-position="right"
/> />
</el-form-item> </el-form-item>
@ -2375,7 +2375,7 @@ const editMapRouteDialogSubmit = (form) => {
item.locationX = form.endPointX item.locationX = form.endPointX
item.locationY = form.endPointY item.locationY = form.endPointY
item.actualLocationX = disposeEventPoint(form.endPointX, form.endPointY).actualLocationX 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" :disabled="montageNumberDisable"
class="!w-220px" class="!w-220px"
v-model="formData.montageNumber" v-model="formData.montageNumber"
:min="1" :min="0"
:max="10" :max="10"
@change="montageNumberChange" @change="montageNumberChange"
/> />
@ -155,7 +155,6 @@
:rules="{ required: true, message: '任务类型不能为空', trigger: 'change' }" :rules="{ required: true, message: '任务类型不能为空', trigger: 'change' }"
> >
<el-select <el-select
:disabled="formData.doCycle == 1 || formData.doMoveAll == 1"
v-model="detailItem.taskType" v-model="detailItem.taskType"
placeholder="请选择" placeholder="请选择"
@change="taskTypeChange(detailItem, index)" @change="taskTypeChange(detailItem, index)"
@ -969,29 +968,53 @@ const montageNumberChange = (currentValue: number, oldValue: number) => {
let addLength = currentValue - formData.value.taskDetailList.length let addLength = currentValue - formData.value.taskDetailList.length
let taskTypeList let taskTypeList
if (oldItem.taskType === 1) { //线
taskTypeList = [ if (formData.value.doMoveAll === 1) {
{ label: '取放货', value: 1 }, taskTypeList = [{ label: '取放货', value: 1 }]
{ label: '移动', value: 4 }, } else {
{ label: '仅取货', value: 5 } //
] if (formData.value.doCycle === 1) {
} else if (oldItem.taskType === 4) { taskTypeList = [
taskTypeList = [ { label: '取放货', value: 1 },
{ label: '取放货', value: 1 }, { label: '移动', value: 4 }
{ label: '移动', value: 4 }, ]
{ label: '仅取货', value: 5 } } else {
] if (oldItem) {
} else if (oldItem.taskType === 5) { if (oldItem.taskType === 1) {
taskTypeList = [ taskTypeList = [
{ label: '移动', value: 4 }, { label: '取放货', value: 1 },
{ label: '仅放货', value: 6 } { label: '移动', value: 4 },
] { label: '仅取货', value: 5 }
} else if (oldItem.taskType === 6) { ]
taskTypeList = [ } else if (oldItem.taskType === 4) {
{ label: '取放货', value: 1 }, taskTypeList = [
{ label: '移动', value: 4 }, { label: '取放货', value: 1 },
{ label: '仅取货', value: 5 } { 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++) { for (let index = 0; index < addLength; index++) {
@ -1031,7 +1054,7 @@ const doCycleChange = () => {
resolve(true) resolve(true)
} else { } else {
try { try {
ElMessageBox.confirm('开启循环任务,任务类型只能选择取放货,是否切换?', '提示', { ElMessageBox.confirm('开启循环任务,任务类型只能选择取放货和移动,是否切换?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -1040,7 +1063,7 @@ const doCycleChange = () => {
resolve(true) resolve(true)
formData.value.cycleNumber = 1 // formData.value.cycleNumber = 1 //
formData.value.taskDetailList = formData.value.taskDetailList.filter( 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 // formData.value.montageNumber = formData.value.taskDetailList.length //
}) })