From 7956f09935a708f17b0f1b29a6625475f53c7509 Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期三, 16 十月 2024 09:52:15 +0800 Subject: [PATCH] 版本整合03 --- UI-Project/src/views/UnLoadGlass/loadmachinerack.vue | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue b/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue index 5a918af..cb55ff6 100644 --- a/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue +++ b/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue @@ -1,18 +1,14 @@ <script setup> -import { onBeforeUnmount, onMounted, onUnmounted, reactive, ref } from "vue"; -import { useRouter } from "vue-router" -import { useI18n } from 'vue-i18n' -import { ElMessage } from 'element-plus' +import {onBeforeUnmount, onMounted, onUnmounted, reactive, ref} from "vue"; +import {useRouter} from "vue-router" +import {useI18n} from 'vue-i18n' +import {ElMessage} from 'element-plus' import request from "@/utils/request"; -import { closeWebSocket, initializeWebSocket } from '@/utils/WebSocketService'; -import { host, WebSocketHost } from '@/utils/constants' -import PrintFlow from "@/views/UnLoadGlass/PrintFlow.vue"; -import Landingindication from "./Landingindication.vue"; -import Landingindicationtwo from "./Landingindicationtwo.vue"; -import PrintLabel from "@/views/UnLoadGlass/PrintCustomLabelSemi1.vue"; +import {closeWebSocket, initializeWebSocket} from '@/utils/WebSocketService'; +import {host, WebSocketHost} from '@/utils/constants' const router = useRouter() -const { t } = useI18n() +const {t} = useI18n() let language = ref(localStorage.getItem('lang') || 'zh') const printLoading = ref(true) const fullFlowCard = ref('') @@ -44,6 +40,7 @@ const dialogTableVisible1 = ref(false) const printFlowCardId = ref('') const printLayer = ref('') +const printGlassId = ref('') const now = new Date(); const timeRange = ref([]) const browser = ref(false) @@ -234,6 +231,9 @@ scanGlass.value.width = height; scanGlass.value.height = width; } + if (autoPrint.value == true && browser.value == true) { + open1(scanGlass); + } } //鑷姩鎵撳嵃 @@ -338,6 +338,7 @@ printFlowCardId.value = row.flowCardId; printLayer.value = row.layer + printGlassId.value = row.glassId dialogTableVisible1.value = true; setTimeout(() => { printFlowCard1(); @@ -536,6 +537,9 @@ </div> <div style="font-size: 50px; text-align: center;position: absolute;top:0px;left:170px;"> <div>浜哄伐涓嬬墖褰撳墠鐜荤拑淇℃伅</div> + <div> + <el-button type="primary" @click="open1(takeGlass)">鎵撳嵃鏍囩</el-button> + </div> <div>{{ takeGlass.flowCardId }}</div> <div>{{ takeGlass.layer }}</div> <div>{{ takeGlass.glassId }}</div> @@ -551,6 +555,9 @@ </div> <div style="font-size: 50px; text-align: center;position: absolute;top:0px;left:200px;"> <div>鎵爜鏋綋鍓嶇幓鐠冧俊鎭�</div> + <div> + <el-button type="primary" @click="open1(scanGlass)">鎵撳嵃鏍囩</el-button> + </div> <div>{{ scanGlass.flowCardId }}</div> <div>{{ scanGlass.layer }}</div> <div>{{ scanGlass.glassId }}</div> @@ -622,7 +629,8 @@ style="width: 100%;height: 100%" /> </el-dialog> <el-dialog id="sizePrintCalrd1" v-model="dialogTableVisible1" destroy-on-close> - <print-label id="printFlowCard" :printFlowCardId="printFlowCardId" :printLayer="printLayer" style="" /> + <print-label id="printFlowCard" :printFlowCardId="printFlowCardId" :printLayer="printLayer" + :printGlassId="printGlassId" style=""/> </el-dialog> </template> -- Gitblit v1.8.0