From a66b4925a2528ff23a34c3607e9c45bbbdd28e5e Mon Sep 17 00:00:00 2001 From: zhoushihao <zsh19950802@163.com> Date: 星期四, 15 八月 2024 09:00:05 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- UI-Project/src/views/UnLoadGlass/loadmachinerack.vue | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue b/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue index 2aec6e9..d3e6467 100644 --- a/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue +++ b/UI-Project/src/views/UnLoadGlass/loadmachinerack.vue @@ -6,6 +6,7 @@ import request from "@/utils/request"; import {closeWebSocket, initializeWebSocket} from '@/utils/WebSocketService'; import {host, WebSocketHost} from '@/utils/constants' +import PrintFlow from "@/views/UnLoadGlass/PrintFlow.vue"; const router = useRouter() const {t} = useI18n() @@ -23,6 +24,7 @@ const dialogFormVisible = ref(false); // 琛ㄥ崟鏁版嵁 const workstationId = ref(''); +const workFlowCard = ref(''); const selectedProjectNoa = ref(null); // 褰撳墠閫変腑鐨勮鑹� const flowCardId = ref(''); const flowCardOptions = ref('[]'); @@ -129,6 +131,7 @@ const handleBindRack2 = (row) => { workstationId.value = row.workstationId; // 鍋囪rackNumber鏄灦鍙峰瓧娈电殑灞炴�у悕 dialogFormVisiblea2.value = true; // 鎵撳紑缁戝畾鏋跺瓙瀵硅瘽妗� + workFlowCard.value=row.flowCardId; }; //娓呴櫎鍐呭 const handleclear = async () => { @@ -143,6 +146,9 @@ console.log('娓呴櫎鎴愬姛'); ElMessage.success(response.message); dialogFormVisiblea2.value = false; + if(fullFlowCard.value==workFlowCard.value){ + fullFlowCard.value=""; + } } else if (response.code === 500) { // 娓呴櫎澶辫触鐨勯�昏緫 console.log('娓呴櫎澶辫触'); @@ -189,12 +195,11 @@ selectOptionsa.value = data.engineerIdList[0] } if (data.autoPrint != null) { - autoPrint.value = data.autoPrint; + autoPrint.value = data.autoPrint[0]; } - console.log(autoPrint.value) - tableData.splice(0, tableData.length, ...data.params[0]); - if (fullFlowCard.value == "") { + + if (fullFlowCard.value == ""&&autoPrint.value==true) { for (let i = 0; i < tableData.length; i++) { if (tableData[i].totalQuantity != 0) { if (tableData[i].totalQuantity == tableData[i].racksNumber + tableData[i].otherNumber && fullFlowCard.value != tableData[i].flowCardId) { @@ -208,7 +213,9 @@ } } } - + if(data.params!=null){ + tableData.splice(0, tableData.length, ...data.params[0]); + } // console.log("鏇存柊鍚庢暟鎹�", data.params[0]); }; -- Gitblit v1.8.0