This commit is contained in:
yyy 2025-03-19 09:36:08 +08:00
parent 12b13dfee9
commit 3399d9d3bb
2 changed files with 46 additions and 27 deletions

View File

@ -7,7 +7,7 @@
class="equipment-form-dialog" class="equipment-form-dialog"
@close="dialogClose" @close="dialogClose"
> >
<el-form :model="form" label-width="110" ref="ruleFormRef"> <el-form :model="form" label-width="110" ref="ruleFormRef" :rules="rules">
<el-form-item label="物料区域名称" prop="skuInfo" required> <el-form-item label="物料区域名称" prop="skuInfo" required>
<el-input v-model="form.skuInfo" placeholder="请输入物料区域名称" /> <el-input v-model="form.skuInfo" placeholder="请输入物料区域名称" />
</el-form-item> </el-form-item>

View File

@ -161,6 +161,7 @@
trigger="click" trigger="click"
v-else-if="item.switchType === 'marker'" v-else-if="item.switchType === 'marker'"
width="220" width="220"
:visible="state.popoverVisible"
> >
<template #reference> <template #reference>
<div <div
@ -201,6 +202,12 @@
<el-input v-model="state.markForm.originalNode" style="width: 240px" disabled /> <el-input v-model="state.markForm.originalNode" style="width: 240px" disabled />
</el-form-item> </el-form-item>
<div style="text-align: right"> <div style="text-align: right">
<el-button
size="small"
style="width: 64px; height: 30px; background: #efefef"
@click="markFormCancel()"
>取消</el-button
>
<el-button <el-button
size="small" size="small"
style="width: 64px; height: 30px; background: #00329f" style="width: 64px; height: 30px; background: #00329f"
@ -1254,7 +1261,8 @@ const state = reactive({
originalNode: '', // originalNode: '', //
robotNo: '' //AGV robotNo: '' //AGV
}, // }, //
mapMarkCarList: [] // mapMarkCarList: [], //
popoverVisible: false //
}) })
const toolbarClick = async (item) => { const toolbarClick = async (item) => {
@ -1600,6 +1608,7 @@ const mapMark = async () => {
state.markForm.markProperty = '' state.markForm.markProperty = ''
state.markForm.originalNode = '' state.markForm.originalNode = ''
} }
state.popoverVisible = true
} }
// //
const macAddressChange = (e) => { const macAddressChange = (e) => {
@ -1608,6 +1617,15 @@ const macAddressChange = (e) => {
state.markForm.robotNo = targetItem.robotNo state.markForm.robotNo = targetItem.robotNo
} }
} }
//
const markFormCancel = () => {
state.popoverVisible = false
state.markForm.markProperty = ''
state.markForm.originalNode = ''
state.markForm.macAddress = ''
state.markForm.robotNo = ''
}
//
const markFormSubmit = async () => { const markFormSubmit = async () => {
if (!state.markForm.macAddress) { if (!state.markForm.macAddress) {
message.warning('请选择车辆') message.warning('请选择车辆')
@ -1649,34 +1667,35 @@ const markFormSubmit = async () => {
addEditHistory() addEditHistory()
} else { } else {
message.warning('未采集到该AGV点位信息') //
state.allMapPointInfo.push({
positionMapId: imgBgObj.positionMapId, //id
layerSelectionShow: true,
locationX: pointPx.x,
locationY: pointPx.y,
actualLocationX: actualPoint.actualLocationX,
actualLocationY: actualPoint.actualLocationY,
locationDeep: 40,
locationWide: 40,
locationDeepPx: 8,
locationWidePx: 8,
angle: 0,
draggable: true,
resizable: true,
rotatable: false,
lockAspectRatio: false, //
mapImageUrl: '',
type: 1, //1
dataList: [], //
dataObj: {}, //
locationYaw: 0 //
})
addEditHistory()
} }
} else { } else {
// message.warning('未采集到该AGV点位信息')
state.allMapPointInfo.push({
positionMapId: imgBgObj.positionMapId, //id
layerSelectionShow: true,
locationX: pointPx.x,
locationY: pointPx.y,
actualLocationX: actualPoint.actualLocationX,
actualLocationY: actualPoint.actualLocationY,
locationDeep: 40,
locationWide: 40,
locationDeepPx: 8,
locationWidePx: 8,
angle: 0,
draggable: true,
resizable: true,
rotatable: false,
lockAspectRatio: false, //
mapImageUrl: '',
type: 1, //1
dataList: [], //
dataObj: {}, //
locationYaw: 0 //
})
addEditHistory()
} }
state.popoverVisible = false
} }
// //