| | |
| | | </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> |
| | |
| | | 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() |
| | |
| | | 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; |
| | | } |
| | |
| | | const handletake = (row) => { |
| | | window.localStorage.setItem('flowCardId', row.flowCardId) |
| | | dialogFormVisiblec.value = true; |
| | | isSubmitting.value = false |
| | | fetchmulan() |
| | | }; |
| | | // 强制出片 |
| | |
| | | if (response.code == 200) { |
| | | ElMessage.success(response.message); |
| | | const { flowCardId } = row; |
| | | fetchFlowBind(); |
| | | fetchFlowBind(currentRow.flowCardId); |
| | | fetchFlowCardId() |
| | | } else { |
| | | ElMessage.error(response.msg); |
| | |
| | | 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) |
| | |
| | | cell.value = ''; |
| | | formulaName.value = ''; |
| | | totalPairQuantity.value = ''; |
| | | isSubmitting.value = true |
| | | } else { |
| | | ElMessage.error(response.message); |
| | | isSubmitting.value = true |
| | | } |
| | | } catch (error) { |
| | | ElMessage.error(response.message); |
| | | } |
| | | } |
| | | // 强制出片 |
| | |
| | | .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; |
| | |
| | | cursor: pointer; |
| | | transition: all 0.3s; |
| | | } |
| | | |
| | | .page-btn:hover { |
| | | background: #e6f1ff; |
| | | } |
| | | |
| | | .page-btn.active-page { |
| | | background: #409eff; |
| | | color: white; |