From 7d8cd9d28e97ea54ab4c76dbe37fd910f6d279c5 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期三, 05 十一月 2025 08:51:41 +0800
Subject: [PATCH] 1、钢化大理片,中空大理片的理片笼详情查询代码补充
---
UI-Project/src/views/hollow/hollowequipmenthree.vue | 33 ++++++++++++++++++++-------------
1 files changed, 20 insertions(+), 13 deletions(-)
diff --git a/UI-Project/src/views/hollow/hollowequipmenthree.vue b/UI-Project/src/views/hollow/hollowequipmenthree.vue
index f6d3d9c..0cd963c 100644
--- a/UI-Project/src/views/hollow/hollowequipmenthree.vue
+++ b/UI-Project/src/views/hollow/hollowequipmenthree.vue
@@ -8,9 +8,9 @@
<el-button id="searchButton" type="primary" @click="handlezhiban">
{{ $t('hellow.createtask') }}
</el-button>
- <el-button type="primary" @click="selectproject">
+ <!-- <el-button type="primary" @click="selectproject">
{{ $t('hellow.reviewproject') }}
- </el-button>
+ </el-button> -->
<el-button style="margin-left: 10px;" id="searchButton" type="primary" @click="handlehistorical">{{ $t('searchOrder.historicaltasks') }}</el-button>
<el-button style="margin-left: 10px;" id="searchButton" type="success" @click="handleBinda">
{{ $t('hellow.starttask') }}
@@ -322,7 +322,7 @@
</div>
<template #footer>
<div id="dialog-footer">
- <el-button type="primary" @click="finisha">
+ <el-button type="primary" @click="finisha" :disabled="isSubmitting">
{{ $t('reportWork.sure') }}
</el-button>
<el-button @click="dialogFormVisiblec = false">{{ $t('reportWork.cancel') }}</el-button>
@@ -554,6 +554,7 @@
const blindc = ref(false)
const mulan = ref(false)
const isLoading = ref(true)
+const isSubmitting = ref(false)
const activeTab = ref('')
const tabList = ref([])
const internalInstance = getCurrentInstance()
@@ -625,14 +626,20 @@
currentPage.value = newPage;
};
const handleMessage = (data) => {
+ if (data.queueInfo[0] != null) {
const rawData = data.queueInfo[0]
const formattedData = Object.entries(rawData).map(([key, data]) => ({
title: key,
tableDataa: Array.isArray(data) ? data : [data]
}));
tabList.value = formattedData;
+}else{
+ tabList.value = [];
+ }
if (tabList.value.length > 0) {
- activeTab.value = tabList.value[0].title;
+ activeTab.value = tabList.value[0].title;
+ }else {
+ activeTab.value = '';
}
internalInstance.ctx.$forceUpdate();
try {
@@ -755,6 +762,7 @@
const handletake = (row) => {
window.localStorage.setItem('flowCardId', row.flowCardId)
dialogFormVisiblec.value = true;
+ isSubmitting.value = false
fetchmulan()
};
// 寮哄埗鍑虹墖
@@ -1070,6 +1078,10 @@
ElMessage.error(t('hellow.cpairQuantity'))
return
}
+ if (isSubmitting.value) {
+ return
+ }
+ isSubmitting.value = true
try {
var url="/hollowGlass/hollowGlassOutRelationInfo/receiveTask?cell="+ 932 + "&flowCardId=" + flowCardId + "&totalPairQuantity=" + totalPairQuantity.value+ "&formulaId=" + -1;
const response = await request.post(url)
@@ -1079,9 +1091,13 @@
cell.value = '';
formulaName.value = '';
totalPairQuantity.value = '';
+ isSubmitting.value = true
} else {
+ ElMessage.error(response.message);
+ isSubmitting.value = true
}
} catch (error) {
+ ElMessage.error(response.message);
}
}
// 寮哄埗鍑虹墖
@@ -1213,16 +1229,9 @@
.custom-page-buttons {
display: flex;
gap: 10px;
- margin-top: 20px;
-}
-
-.custom-page-buttons {
- display: flex;
- gap: 10px;
margin: 20px 0;
flex-wrap: wrap;
}
-
.page-btn {
padding: 8px 16px;
min-width: 40px;
@@ -1232,11 +1241,9 @@
cursor: pointer;
transition: all 0.3s;
}
-
.page-btn:hover {
background: #e6f1ff;
}
-
.page-btn.active-page {
background: #409eff;
color: white;
--
Gitblit v1.8.0