| | |
| | | <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') }} |
| | |
| | | } |
| | | ] |
| | | let socket = null; |
| | | const socketUrl = `ws://${WebSocketHost}:${host}/api/hollowGlass/api/talk/HollowGlassThree`; |
| | | const socketUrl = `ws://${window.ipConfig.serverUrl}/api/hollowGlass/api/talk/HollowGlassThree`; |
| | | const currentPage = ref(parseInt(window.localStorage.getItem('currentPage')) || 1); |
| | | watch(() => currentPage.value, (newVal) => { |
| | | window.localStorage.setItem('currentPage', newVal); |
| | |
| | | currentPage.value = newPage; |
| | | }; |
| | | const handleMessage = (data) => { |
| | | if (data.queueInfo != null) { |
| | | 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 { |
| | |
| | | const handletake = (row) => { |
| | | window.localStorage.setItem('flowCardId', row.flowCardId) |
| | | dialogFormVisiblec.value = true; |
| | | isSubmitting.value = false |
| | | fetchmulan() |
| | | }; |
| | | // 强制出片 |
| | |
| | | } |
| | | } catch (error) { |
| | | ElMessage.error(response.message); |
| | | }finally { |
| | | isSubmitting.value = false |
| | | } |
| | | } |
| | | } |
| | | // 强制出片 |
| | | const finishb = async () => { |
| | |
| | | const blinde = ref(false) |
| | | const labelPrint = ref(false); |
| | | const handleBinde = (flowCard) => { |
| | | const summary = flowCard.reduce((map, item) => { |
| | | const summary = flowCard |
| | | .filter(item => item.isPair !== 0) |
| | | .reduce((map, item) => { |
| | | const key = `${item.hollowSequence}`; |
| | | if (!map[key]) { |
| | | map[key] = { |