<script lang="ts" setup>
|
import {Search} from "@element-plus/icons-vue";
|
import {reactive} from "vue";
|
import {useRouter} from "vue-router"
|
const router = useRouter()
|
|
import { ref } from 'vue'
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
const dialogFormVisible = ref(false)
|
const dialogFormVisiblea = ref(false)
|
const dialogFormVisibleb = ref(false)
|
|
const currentPage4 = ref(4)
|
const pageSize4 = ref(100)
|
// const tableData = [
|
// {
|
// id: '1',
|
// long: '1005',
|
// wide: '183.6',
|
// thick: '1991',
|
// type: '1234567',
|
// typea: '1',
|
// },
|
// ]
|
// const tableDatab = [
|
// {
|
// idb: '2',
|
// longb: '105',
|
// wideb: '183',
|
// typeb: '123456',
|
// }
|
// ]
|
const tableDataa = [
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
{
|
ida: '3',
|
typea: '1991',
|
},
|
]
|
|
const dialogForm = () => {
|
ElMessageBox.confirm(
|
'确定要急停吗?',
|
'提示',
|
{
|
confirmButtonText: '是',
|
cancelButtonText: '否',
|
type: 'warning',
|
}
|
)
|
.then(() => {
|
ElMessage({
|
type: 'success',
|
message: '急停成功!',
|
})
|
})
|
.catch(() => {
|
ElMessage({
|
type: 'info',
|
message: '急停失败',
|
})
|
})
|
}
|
const getTableRow = (row,type) =>{
|
switch (type) {
|
case 'edit' :{
|
//alert('我接收到子组件传送的编辑信息')
|
router.push({path: '/main/returns/createReturns', query: { ReturnID: 'TH24010101' }})
|
break
|
}
|
case 'delete':{
|
alert('我接收到子组件传送的删除信息')
|
break
|
}
|
}
|
}
|
|
const gridOptions = reactive({
|
border: "full",//表格加边框
|
keepSource: true,//保持源数据
|
align: 'center',//文字居中
|
stripe:true,//斑马纹
|
rowConfig: {isCurrent: true, isHover: true,height: 50},//鼠标移动或选择高亮
|
id: 'OrderList',
|
showFooter: true,//显示脚
|
printConfig: {},
|
importConfig: {},
|
exportConfig: {},
|
scrollY:{ enabled: true },//开启虚拟滚动
|
showOverflow:true,
|
columnConfig: {
|
resizable: true,
|
useKey: true
|
},
|
filterConfig: { //筛选配置项
|
remote: true
|
},
|
customConfig: {
|
storage: true
|
},
|
editConfig: {
|
trigger: 'click',
|
mode: 'row',
|
showStatus: true
|
},
|
data: [
|
{
|
'id': '1',
|
'long': '5',
|
'wide': '1005',
|
'thick': '183.6',
|
}
|
],
|
})
|
</script>
|
|
<template>
|
<div style="height: 700px;">
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="primary" @click="dialogFormVisible = true">手动进片</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="primary" @click="dialogFormVisiblea = true">订单信息</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="success" @click="dialogFormVisibleb = true">出片队列</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger">终止进片</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger">终止出片</el-button>
|
<el-button style="margin-top: 5px;margin-left: 10px;" id="searchButton" type="danger" @click="dialogForm">软急停</el-button>
|
|
<el-card style="flex: 1;margin-left: 10px;margin-top: 5px;" v-loading="loading">
|
<div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 100px;">
|
<el-table height="100%" ref="table"
|
@selection-change="handleSelectionChange"
|
:data="tableData" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="id" align="center" label="出片玻璃ID" min-width="80" />
|
<el-table-column prop="long" align="center" label="笼子" min-width="120" />
|
<el-table-column prop="wide" align="center" label="格子" min-width="120" />
|
<el-table-column prop="type" align="center" label="订单编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="列表编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="箱子编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="尺寸" min-width="120" />
|
<el-table-column prop="type" align="center" label="结束任务" min-width="120" />
|
</el-table>
|
</div>
|
</el-card>
|
<el-card style="flex: 1;margin-left: 10px;margin-top: 3px;" v-loading="loading">
|
<div style="width: 98%; height: calc(100% - 35px); overflow-y: auto;max-height: 100px;">
|
<el-table height="100%" ref="table"
|
@selection-change="handleSelectionChange"
|
:data="tableDatab" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="idb" align="center" label="进片玻璃ID" min-width="80" />
|
<el-table-column prop="longb" align="center" label="笼子" min-width="120" />
|
<el-table-column prop="wideb" align="center" label="格子" min-width="120" />
|
<el-table-column prop="typeb" align="center" label="订单编号" min-width="120" />
|
<el-table-column prop="typeb" align="center" label="列表编号" min-width="120" />
|
<el-table-column prop="typeb" align="center" label="箱子编号" min-width="120" />
|
<el-table-column prop="typeb" align="center" label="尺寸" min-width="120" />
|
<el-table-column prop="typeb" align="center" label="结束任务" min-width="120" />
|
</el-table>
|
</div>
|
</el-card>
|
<div style="padding: 10px;display: flex;height:110px;">
|
<div v-for="n in 9" :key="n" id="occupy">
|
<el-col style="text-align:left;font-weight: bold;">#1</el-col>
|
<el-col style="text-align:left;display:flex;justify-content: space-between;align-items: center;">
|
<span id="biao">使用率</span><span id="zhi">33%</span>
|
</el-col>
|
<hr style="width:80%;margin: 0 auto;" />
|
<el-col style="text-align:left;display:flex;justify-content: space-between;align-items: center;">
|
<span id="biao">空间(片数)</span><span id="zhi">555</span>
|
</el-col>
|
</div>
|
</div>
|
<div id="awatch">
|
<img src="../../../assets/xmjc.png" alt="" style="width: 70%;height: 100%;margin-left: 160px;">
|
</div>
|
</div>
|
<el-dialog v-model="dialogFormVisible" top="12vh" width="85%" title="请确认玻璃信息" >
|
<div style="margin-left: 50px;margin-bottom: 10px;">
|
<div style="display: flex;">
|
<p style="margin-top: 4px;">确认状态:</p>
|
<el-button style="margin-left: 10px;size: mini;" type="success">允许</el-button>
|
<el-button style="margin-left: 10px;size: mini;" type="danger">不允许</el-button>
|
<p style="margin-left: 60px;margin-top: 4px;">当前状态:</p>
|
<div style="margin-top: 4px; margin-left: 10px;">手动</div>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">切换</el-button>
|
<el-input placeholder="请输入玻璃id" style="width: 180px;size: mini;margin-left: 60px;"></el-input>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">添加</el-button>
|
<p style="margin-left: 60px;margin-top: 4px;">玻璃id:</p>
|
<el-input style="width: 180px;size: mini;margin-left: 30px;"></el-input>
|
</div>
|
<div style="display: flex;">
|
<p style="margin-left: 290px;margin-top: 20px;font-weight: bold;">上片位</p>
|
<p style="margin-left: 630px;margin-top: 20px;font-weight: bold;">扫码位</p>
|
</div>
|
<div style="display: flex;">
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">当前信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">修改信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">修改信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
<div style="margin-top: 20px;">
|
<p style="margin-top: 10px;margin-left: 100px;margin-bottom: 20px;">当前信息</p>
|
<el-form label-position="right" label-width="90px">
|
<el-form-item style="width: 20vw" label="玻璃id:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入玻璃id"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="订单编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入订单编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="列表编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入列表编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="箱子编号:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入箱子编号"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="长:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入长"></el-input>
|
</el-form-item>
|
<el-form-item style="width: 20vw" label="宽:">
|
<el-input style="width: 180px" size="mini" placeholder="请输入宽"></el-input>
|
</el-form-item>
|
</el-form>
|
</div>
|
</div>
|
</div>
|
<template #footer>
|
<div id="dialog-footer">
|
<el-button type="primary" @click="dialogFormVisible = false">
|
确认
|
</el-button>
|
<el-button @click="dialogFormVisible = false">取消</el-button>
|
</div>
|
</template>
|
</el-dialog>
|
<el-dialog v-model="dialogFormVisiblea" top="10vh" width="85%" title="订单信息" >
|
<el-input placeholder="请输入订单id" style="width: 180px;size: mini;"></el-input>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">查询</el-button>
|
<el-table ref="table" style="margin-top: 20px;height: 500px;"
|
@selection-change="handleSelectionChange"
|
:data="tableDataa" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="ida" align="center" label="玻璃id" min-width="80" />
|
<el-table-column prop="typea" align="center" label="订单编号" min-width="120" />
|
<el-table-column prop="typea" align="center" label="列表编号" min-width="120" />
|
<el-table-column prop="typea" align="center" label="箱子编号" min-width="120" />
|
<el-table-column prop="ida" align="center" label="铝框id" min-width="120" />
|
<el-table-column prop="typea" align="center" label="长" min-width="120" />
|
<el-table-column prop="typea" align="center" label="宽" min-width="120" />
|
</el-table>
|
<div id="demo-pagination-block">
|
<el-pagination
|
style="margin-left: 850px;"
|
v-model:current-page="currentPage4"
|
v-model:page-size="pageSize4"
|
:page-sizes="[100, 200, 300, 400]"
|
:small="small"
|
:disabled="disabled"
|
:background="background"
|
layout="total, sizes, prev, pager, next, jumper"
|
:total="400"
|
@size-change="handleSizeChange"
|
@current-change="handleCurrentChange"
|
/>
|
</div>
|
</el-dialog>
|
<el-dialog v-model="dialogFormVisibleb" top="10vh" width="85%" title="订单信息" >
|
<div style="display: flex;">
|
<p style="margin-top: 4px;">队列状态:</p>
|
<p style="margin-top: 4px;">开始</p>
|
<el-button style="margin-left: 10px;size: mini;" type="danger">停止</el-button>
|
<el-button style="margin-left: 10px;size: mini;" type="primary">添加</el-button>
|
</div>
|
<el-table ref="table" style="margin-top: 20px;height: 500px;"
|
@selection-change="handleSelectionChange"
|
:data="tableDatab" :header-cell-style="{background:'#F2F3F5 ',color:'#1D2129'}">
|
<el-table-column prop="id" align="center" label="铝框id" min-width="80" />
|
<el-table-column prop="type" align="center" label="玻璃id" min-width="120" />
|
<el-table-column prop="type" align="center" label="订单编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="列表编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="箱子编号" min-width="120" />
|
<el-table-column prop="type" align="center" label="长" min-width="120" />
|
<el-table-column prop="type" align="center" label="宽" min-width="120" />
|
<el-table-column prop="type" align="center" label="玻璃状态" min-width="120" />
|
<el-table-column prop="type" align="center" label="顺序" min-width="120" />
|
<el-table-column prop="type" align="center" label="完成" min-width="120" />
|
<el-table-column prop="type" align="center" label="操作" min-width="120" />
|
</el-table>
|
</el-dialog>
|
|
</template>
|
<style scoped>
|
|
#dt { display:block; float:left;line-height: 20px;margin-left: 100px;}
|
#dta { display:block; float:left;line-height: 20px;margin-left: 80%;}
|
#dialog-footer{
|
text-align: center;
|
margin-top: -15px;
|
}
|
#message{
|
text-align: center;
|
align-items: center;
|
color: black;
|
width: 200px;
|
height: 100px;
|
background-color: #337ecc;
|
margin-left: 28%;
|
}
|
#awatch{
|
height: 450px;
|
}
|
#occupy {
|
height: 100%;
|
width: 10%;
|
background-color: white;
|
margin: 0px 8px 0px 8px;
|
border: 1px #EBEEF5 solid;
|
text-align: center;
|
padding: 5px;
|
}
|
#biao {
|
font-size: 12px;
|
}
|
#zhi {
|
font-size: 18px;
|
font-weight: bold;
|
}
|
#demo-pagination-block + #demo-pagination-block {
|
margin-top: 10px;
|
}
|
#demo-pagination-block #demonstration {
|
margin-bottom: 16px;
|
}
|
::-webkit-scrollbar {
|
width: 0 !important;
|
}
|
::-webkit-scrollbar {
|
width: 0 !important;height: 0;
|
}
|
</style>
|