feat: 大屏新增虚拟工位滚动栏与多订单轮播,附件表增加删除原因及彻底清除留痕字段
This commit is contained in:
@@ -109,8 +109,11 @@
|
||||
<el-form :model="dlg" label-width="90px">
|
||||
<el-form-item label="工位号" required>
|
||||
<el-input-number v-model="dlg.stationNo" :min="0" :max="999" :disabled="!dlg.isAdd" style="width:100%" />
|
||||
<div v-if="dlg.isAdd && dlg.stationNo >= 1 && dlg.stationNo <= 12" style="color:#F56C6C;font-size:12px;line-height:1.5;margin-top:4px">
|
||||
物理工位 1~12 为硬件锁定,不可新增
|
||||
</div>
|
||||
<div v-if="dlg.isAdd" style="color:#909399;font-size:12px;line-height:1.5;margin-top:4px">
|
||||
自定义工位号,可与现有工位不连续(如 14、15…);工位号须为正整数,创建后不可修改。
|
||||
1~12 为物理产线工位(已锁定),0 为虚拟工位,≥13 为扩展工位。创建后不可修改。
|
||||
</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="工位名称" required>
|
||||
@@ -125,7 +128,7 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button @click="dlg.show = false">取消</el-button>
|
||||
<el-button v-if="can('produce.station:edit')" type="primary" @click="save">保存</el-button>
|
||||
<el-button v-if="can('produce.station:edit')" type="primary" :disabled="dlg.isAdd && dlg.stationNo >= 1 && dlg.stationNo <= 12" @click="save">保存</el-button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<!-- 终端可见页签配置 -->
|
||||
@@ -264,6 +267,9 @@ function openName(row) {
|
||||
|
||||
async function save() {
|
||||
if (!dlg.name) return ElMessage.warning('请输入工位名称')
|
||||
if (dlg.isAdd && dlg.stationNo >= 1 && dlg.stationNo <= 12) {
|
||||
return ElMessage.warning('物理工位 1~12 为硬件锁定,不可新增')
|
||||
}
|
||||
if (dlg.isAdd && stations.value.some((s) => s.stationNo === dlg.stationNo)) {
|
||||
return ElMessage.warning(`工位${dlg.stationNo} 已存在,请换一个工位号`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user