From f1916b183ebcff81c64bccae502a63b097c304f5 Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期日, 18 八月 2024 12:42:16 +0800 Subject: [PATCH] 钢化界面添加显示人工拿走的玻璃信息 --- UI-Project/src/views/PurchaseReturn/purchaseReturn.vue | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue index 1b332f2..df3b5a1 100644 --- a/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue +++ b/UI-Project/src/views/PurchaseReturn/purchaseReturn.vue @@ -13,6 +13,9 @@ const dialogFormVisible = ref(false) const dialogFormVisiblea = ref(true) const dialogFormVisibleb = ref(false) +const dialogFormVisibletemperingTakeGlass = ref(true) + +const temperingTakeGlassInfos=ref([]) const blind = ref(false) const width = ref(); const height = ref(); @@ -24,6 +27,10 @@ const currenttemperingFeedSequence = ref(null); const socketUrl = `ws://${WebSocketHost}:${host}/api/temperingGlass/api/talk/temperingGlass`; const handleMessage = (data) => { + if (data.temperingTakeGlassInfos != null) { + temperingTakeGlassInfos.value = data.temperingTakeGlassInfos[0]; + console.log(temperingTakeGlassInfos.value) + } // 杩涚倝涓� if(data.intoGlass!=null){ adjustedRects1.value = data.intoGlass[0].map(rect => { @@ -260,9 +267,11 @@ </script> <template> <div style="margin-top: 10px;"> + <el-button style="margin-left: 15px;" id="searchButton" type="primary" @click="dialogFormVisiblea = true;dialogFormVisible = false;dialogFormVisibleb = false;" >{{ $t('processCard.beforefurnace') }}</el-button> <el-button style="margin-left: 15px;" id="searchButton" type="primary" @click="dialogFormVisible = true;dialogFormVisiblea = false;dialogFormVisibleb = false;">{{ $t('processCard.intofurnace') }}</el-button> <el-button id="searchButton" type="success" @click="dialogFormVisibleb = true;dialogFormVisible = false;dialogFormVisiblea = false">{{ $t('processCard.outfurnace') }}</el-button> + <el-button id="searchButton" type="success" @click="dialogFormVisibletemperingTakeGlass = true;">鎷胯蛋璇︽儏</el-button> <div v-if="dialogFormVisible" > <el-card style="flex: 1;margin-left: 10px;margin-top: 10px;margin-right: 10px;height: 600px;" v-loading="loading"> <div style="width: 49%;float: left;background-color: #f4f4f5;height: 550px;"> @@ -385,6 +394,18 @@ </el-button> </el-dialog> </div> + + <el-dialog v-model="dialogFormVisibletemperingTakeGlass" top="2vh" width="97%" + :title="$t('浜哄伐鎷胯蛋淇℃伅')"> + <el-table height="200px" ref="table" @selection-change="handleSelectionChange" :data="temperingTakeGlassInfos" + :header-cell-style="{ background: '#F2F3F5 ', color: '#1D2129' }"> + <el-table-column prop="engineerId" align="center" :label="$t('宸ョ▼鍙�')" min-width="80"/> + <el-table-column prop="processId" align="center" :label="$t('娴佺▼鍗″彿')" min-width="80"/> + <el-table-column prop="technologyNumber" align="center" :label="$t('灞�')" min-width="120"/> + <el-table-column prop="orderNumber" align="center" :label="$t('璁㈠崟搴忓彿')" min-width="80"/> + <el-table-column prop="temperingLayoutId" align="center" :label="$t('閽㈠寲鐗堝浘')" min-width="150"/> + </el-table> + </el-dialog> </template> <style scoped> #boxa{ -- Gitblit v1.8.0