| | |
| | | $t('hellow.stopproject') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" |
| | | @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | <div id="dotClass"> |
| | | <!-- <div style="margin-bottom: -5px;margin-left: 5px;"> --> |
| | |
| | | $t('hellow.taskdet') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" |
| | | @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | <!-- 动态表格 --> |
| | | <el-table |
| | |
| | | $t('hellow.stopproject') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | |
| | | <div id="dotClass"> |
| | |
| | | $t('hellow.taskdet') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | <!-- 动态表格 --> |
| | | <el-table |
| | |
| | | </template> |
| | | <script setup> |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import {onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed} from "vue"; |
| | | import {onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance} from "vue"; |
| | | import request from "@/utils/request" |
| | | import {host, WebSocketHost} from '@/utils/constants' |
| | | import {closeWebSocket, initializeWebSocket} from '@/utils/WebSocketService'; |
| | |
| | | // 开始任务 |
| | | const handlea = async () => { |
| | | try { |
| | | let flowCardId = window.localStorage.getItem('flowCardId') |
| | | if (flowCardId !== '') { |
| | | var url = "/hollowGlass/hollowGlassOutRelationInfo/startTask?cell=" + 932 ; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | |
| | | blinda.value = false; |
| | | } else { |
| | | } |
| | | } else { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('basicData.infonull'), |
| | | }) |
| | | } |
| | | } catch (error) { |
| | | } |
| | | } |
| | | // 暂停任务 |
| | | const handlec = async () => { |
| | | try { |
| | | let flowCardId = window.localStorage.getItem('flowCardId') |
| | | if (flowCardId !== '') { |
| | | var url = "/hollowGlass/hollowGlassOutRelationInfo/pauseTask?cell=" + 932; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | |
| | | blindc.value = false; |
| | | } else { |
| | | } |
| | | } else { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('basicData.infonull'), |
| | | }) |
| | | } |
| | | } catch (error) { |
| | | } |
| | | } |
| | |
| | | $t('hellow.stopproject') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | |
| | | <div id="dotClass"> |
| | |
| | | $t('hellow.taskdet') |
| | | }} |
| | | </el-button> |
| | | <el-button style="margin-left: 10px;" :disabled="listFlow.length > 0 ? false : true" id="searchButton" type="warning" @click="handleBinde">{{ |
| | | $t('searchOrder.printlabels') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | <!-- 动态表格 --> |
| | | <el-table |
| | |
| | | <script setup> |
| | | import { CircleCheck, Download, Printer } from "@element-plus/icons-vue/global"; |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed } from "vue"; |
| | | import { onBeforeUnmount, onMounted, onUnmounted, ref, reactive, watch, computed, getCurrentInstance } from "vue"; |
| | | import request from "@/utils/request" |
| | | import requestErp from "@/utils/requestErp" |
| | | import { host, WebSocketHost } from '@/utils/constants' |
| | |
| | | // 开始任务 |
| | | const handlea = async () => { |
| | | try { |
| | | let flowCardId = window.localStorage.getItem('flowCardId') |
| | | if (flowCardId !== '') { |
| | | var url = "/hollowGlass/hollowGlassOutRelationInfo/startTask?cell=" + 931 ; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | |
| | | blinda.value = false; |
| | | } else { |
| | | } |
| | | } else { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('basicData.infonull'), |
| | | }) |
| | | } |
| | | } catch (error) { |
| | | } |
| | | } |
| | | // 暂停任务 |
| | | const handlec = async () => { |
| | | try { |
| | | let flowCardId = window.localStorage.getItem('flowCardId') |
| | | if (flowCardId !== '') { |
| | | var url = "/hollowGlass/hollowGlassOutRelationInfo/pauseTask?cell=" + 931; |
| | | const response = await request.post(url) |
| | | if (response.code == 200) { |
| | |
| | | blindc.value = false; |
| | | } else { |
| | | } |
| | | } else { |
| | | ElMessage({ |
| | | type: 'info', |
| | | message: t('basicData.infonull'), |
| | | }) |
| | | } |
| | | } catch (error) { |
| | | } |
| | | } |