feat: 重构 AGV 对接与在制品查询,新增 PLC 手动监控功能
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<el-card>
|
||||
<el-form inline>
|
||||
<el-form-item label="当前工位">
|
||||
<el-form-item label="位置">
|
||||
<el-select v-model="stationNo" clearable placeholder="全部工位" style="width:180px" @change="load">
|
||||
<el-option label="上线位(虚拟)" :value="0" />
|
||||
<el-option label="待流转" value="pending" />
|
||||
<el-option v-for="s in stations" :key="s.stationNo" :label="`${s.name || ('工位' + s.stationNo)}`" :value="s.stationNo" />
|
||||
<el-option label="下线位(虚拟)" :value="13" />
|
||||
<el-option label="末端待取件" value="end-pending" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工单号">
|
||||
@@ -112,7 +112,12 @@ async function load() {
|
||||
loading.value = true
|
||||
try {
|
||||
const params = {}
|
||||
if (stationNo.value !== '' && stationNo.value !== null) params.stationNo = stationNo.value
|
||||
// 位置口径:'pending'/'end-pending' 走 scope(业务语义);数字工位号走 stationNo
|
||||
if (stationNo.value === 'pending' || stationNo.value === 'end-pending') {
|
||||
params.scope = stationNo.value
|
||||
} else if (stationNo.value !== '' && stationNo.value !== null) {
|
||||
params.stationNo = stationNo.value
|
||||
}
|
||||
if (orderNo.value.trim()) params.orderNo = orderNo.value.trim()
|
||||
list.value = (await request.get('/workpieces/in-process', { params })) || []
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user