wangfei
2025-10-21 dbcc700e995d8c1ce2a3bea4c23c9b0d23c1e65d
UI-Project/src/views/hollow/hollowequipmenthree.vue
@@ -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,12 +626,14 @@
  currentPage.value = newPage;
};
const handleMessage = (data) => {
  if (data.queueInfo != 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;  
}
  if (tabList.value.length > 0) {  
    activeTab.value = tabList.value[0].title;  
  }
@@ -755,6 +758,7 @@
const handletake = (row) => {
  window.localStorage.setItem('flowCardId', row.flowCardId)
  dialogFormVisiblec.value = true;
  isSubmitting.value = false
  fetchmulan()
};
// 强制出片
@@ -982,7 +986,7 @@
    if (response.code == 200) {
      ElMessage.success(response.message);
      const { flowCardId } = row;
      fetchFlowBind();
      fetchFlowBind(currentRow.flowCardId);
      fetchFlowCardId()
    } else {
      ElMessage.error(response.msg);
@@ -1070,6 +1074,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 +1087,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 +1225,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 +1237,9 @@
  cursor: pointer;
  transition: all 0.3s;
}
.page-btn:hover {
  background: #e6f1ff;
}
.page-btn.active-page {
  background: #409eff;
  color: white;