This commit is contained in:
SunYF
2026-10-26 16:32:35 +08:00
parent 4b14f9540a
commit f86feb2271
99 changed files with 1652 additions and 521 deletions
+6 -12
View File
@@ -1,7 +1,7 @@
<template>
<el-card>
<el-alert type="info" :closable="false" style="margin-bottom:12px"
title="工位数以数据库为准。本页可新增工位与改名;每个工位在下方下拉选择启用的工艺即完成绑定;一个工位只能绑定一个工艺;内置工位不允许删除。" />
title="工位数以数据库为准。本页可新增工位与编辑;每个工位在下方下拉选择启用的工艺即完成绑定;一个工位只能绑定一个工艺;内置工位不允许删除。" />
<div style="margin-bottom:12px">
<el-button v-if="can('produce.station:add')" type="primary" @click="openAdd">新增工位</el-button>
@@ -89,7 +89,7 @@
<el-table-column label="操作" width="120" align="center" fixed="right">
<template #default="{ row }">
<div style="display:flex;align-items:center;justify-content:center;gap:8px">
<el-button v-if="can('produce.station:edit')" link type="primary" size="small" @click="openName(row)">改名</el-button>
<el-button v-if="can('produce.station:edit')" link type="primary" size="small" @click="openName(row)">编辑</el-button>
<el-dropdown trigger="click" @command="(c) => stationCommand(row, c)">
<el-button link type="primary" size="small">更多 ▾</el-button>
<template #dropdown>
@@ -117,16 +117,10 @@
<el-input v-model="dlg.name" placeholder="如 一号装配工位" />
</el-form-item>
<el-form-item label="工位类型">
<span v-if="dlg.isAdd">线下位(虚拟,不连 PLC,仅记录上下线)</span>
<template v-else>
<el-radio-group v-model="dlg.stationType" :disabled="dlg.isBuiltin">
<el-radio label="LINE">线上位(连 PLC)</el-radio>
<el-radio label="OFFLINE">线下位(虚拟,不连 PLC)</el-radio>
</el-radio-group>
<div v-if="dlg.isBuiltin" style="color:#909399;font-size:12px;line-height:1.5;margin-top:4px">
内置工位需与 PLC 通讯并按顺序流转,工位类型不可修改。
</div>
</template>
<span>{{ dlg.stationType === 'OFFLINE' ? '线下位(虚拟,不连 PLC)' : '线上位(连 PLC)' }}</span>
<div style="color:#909399;font-size:12px;line-height:1.5;margin-top:4px">
工位类型由系统按产线初始配置固定,不可修改。
</div>
</el-form-item>
</el-form>
<template #footer>