wangfei
2025-09-22 7ba23e6e4870465855d80d026cf31490e0f8d427
UI-Project/src/views/hollow/hollowequipmenttwo.vue
@@ -20,10 +20,6 @@
          $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">
@@ -42,6 +38,10 @@
    <div style="margin-bottom: 10px;">  
     <el-button style="margin-left: 10px;" type="info" @click="handleDelete(tab.title)">{{
          $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>  
@@ -492,7 +492,7 @@
<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'
@@ -987,8 +987,6 @@
// 开始任务
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) {
@@ -996,32 +994,18 @@
        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) {
        ElMessage.success(response.message);
        blindc.value = false;
      } else {
      }
    } else {
      ElMessage({
        type: 'info',
        message: t('basicData.infonull'),
      })
    }
  } catch (error) {
  }