<template>
|
<el-container>
|
<el-card shadow="hover" :body-style="{ paddingBottom: '0', padding: '10px' }" style="width: 100%;display: flex;align-items: center;justify-content: center;">
|
<div class="card-page">
|
<el-button type="primary" :plain="isPlain1" @click="floorTogglePlain(1)">1号码垛机器人</el-button>
|
<el-button type="primary" :plain="isPlain2" @click="floorTogglePlain(2)">2号码垛机器人</el-button>
|
<el-button type="primary" :plain="isPlain3" @click="floorTogglePlain(3)">3号码垛机器人</el-button>
|
</div>
|
</el-card>
|
</el-container>
|
<el-container>
|
<div class="card-container">
|
<el-card class="other-box-card" v-for="deviceInfo in deviceList" :key="deviceInfo.id">
|
<div slot="header" class="linefix">
|
<span>{{ deviceInfo.name }}</span>
|
<div :class="['lineStatus', { 'device-status-0': deviceInfo.status === 0 }, { 'device-status-1': deviceInfo.status === 1 }]"></div>
|
</div>
|
<div class="otherValuefix" >
|
<el-form label-position="left" label-width="90px">
|
<el-form-item label="WMS明细单号">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="任务号">
|
<el-input v-model="deviceInfo.taskNumber"></el-input>
|
</el-form-item>
|
<el-form-item label="物料编码">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="物料名称">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="包装名称">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="状态">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="抓箱品种">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="DB记录箱数">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="托盘号">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="码垛箱数">
|
<el-input></el-input>
|
</el-form-item>
|
<el-form-item label="WMS下发数量">
|
<el-input></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div class="otherButtonfix">
|
<el-form label-position="left">
|
<el-form-item>
|
<el-button type="primary">绑定</el-button>
|
<el-button>结批</el-button>
|
</el-form-item>
|
</el-form>
|
</div>
|
</el-card>
|
</div>
|
</el-container>
|
</template>
|
|
<script lang="ts" setup>
|
import { ref, reactive } from 'vue';
|
|
const stackList=[
|
|
];
|
const isPlain1 = ref(false);//一层
|
const isPlain2 = ref(true);//二层
|
const isPlain3 = ref(true);//三层
|
//切换层平面
|
function floorTogglePlain(buttonNumber) {
|
if (buttonNumber === 1) {
|
isPlain1.value = !isPlain1.value;
|
isPlain2.value =true;
|
isPlain3.value =true;
|
|
} else if (buttonNumber === 2) {
|
isPlain2.value = !isPlain2.value;
|
isPlain1.value =true;
|
isPlain3.value =true;
|
|
} else if (buttonNumber === 3) {
|
isPlain3.value = !isPlain3.value;
|
isPlain1.value =true;
|
isPlain2.value =true;
|
}
|
}
|
|
const deviceList=[
|
{
|
id: 1,
|
name: '1号码垛机器人',
|
taskNumber: 'T000001',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 0
|
},
|
{
|
id: 2,
|
name: '2号码垛机器人',
|
taskNumber: '',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 1
|
},
|
{
|
id: 3,
|
name: '3号码垛机器人',
|
taskNumber: '',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 0
|
},{
|
id: 4,
|
name: '4号码垛机器人',
|
taskNumber: '',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 1
|
},{
|
id: 5,
|
name: '5号码垛机器人',
|
taskNumber: '',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 0
|
},{
|
id: 6,
|
name: '6号码垛机器人',
|
taskNumber: '',
|
taskType: '',
|
plc: '',
|
wcs: '',
|
status: 0
|
}
|
]
|
</script>
|
|
<style scoped>
|
.card-container {
|
display: grid;
|
grid-template-columns: repeat(6, 1fr);
|
gap: 10px;
|
}
|
.other-box-card {
|
box-sizing: border-box;
|
}
|
.lineStatus{
|
position: absolute;
|
right: 0;
|
float: right;
|
height: 20px;
|
width: 20px;
|
border-radius: 20px;
|
background-color: #67C23A;
|
}
|
.linefix{
|
border-bottom: 1px solid rgb(197, 195, 195);
|
display: flex;
|
align-items: center;
|
height: 40px;
|
position: relative;
|
}
|
.otherValuefix{
|
width: 100%;
|
height: 550px;
|
padding: 10px;
|
border-bottom: 1px solid rgb(197, 195, 195);
|
}
|
.otherButtonfix{
|
width: 100%;
|
height: 100px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
padding: 0;
|
}
|
.device-status-0{
|
background-color: #67C23A;
|
}
|
.device-status-1{
|
background-color: red;
|
}
|
</style>
|
|