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"
@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-input v-model="form.skuInfo" placeholder="请输入物料区域名称" />
</el-form-item>

View File

@ -161,6 +161,7 @@
trigger="click"
v-else-if="item.switchType === 'marker'"
width="220"
:visible="state.popoverVisible"
>
<template #reference>
<div
@ -201,6 +202,12 @@
<el-input v-model="state.markForm.originalNode" style="width: 240px" disabled />
</el-form-item>
<div style="text-align: right">
<el-button
size="small"
style="width: 64px; height: 30px; background: #efefef"
@click="markFormCancel()"
>取消</el-button
>
<el-button
size="small"
style="width: 64px; height: 30px; background: #00329f"
@ -1254,7 +1261,8 @@ const state = reactive({
originalNode: '', //
robotNo: '' //AGV
}, //
mapMarkCarList: [] //
mapMarkCarList: [], //
popoverVisible: false //
})
const toolbarClick = async (item) => {
@ -1600,6 +1608,7 @@ const mapMark = async () => {
state.markForm.markProperty = ''
state.markForm.originalNode = ''
}
state.popoverVisible = true
}
//
const macAddressChange = (e) => {
@ -1608,6 +1617,15 @@ const macAddressChange = (e) => {
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 () => {
if (!state.markForm.macAddress) {
message.warning('请选择车辆')
@ -1649,34 +1667,35 @@ const markFormSubmit = async () => {
addEditHistory()
} 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 {
//
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()
message.warning('未采集到该AGV点位信息')
}
state.popoverVisible = false
}
//