Lexie 1 жил өмнө
parent
commit
05dbb6e6c9

+ 7 - 3
src/view/performance/chejianbaogong.vue

@@ -3509,9 +3509,13 @@ const GetMachineMac = async (addr) => {
   // const response = await getMachineMac({ addr: '68-ED-A4-26-60-D1' });
   if (response.code === 0) {
     if(response.data===null){
-      JTMC = 'JY01#';
-      CJMC='胶印车间';
-      FacilityProduction(addr);
+      // JTMC = 'JY01#';
+      // CJMC='胶印车间';
+      // FacilityProduction(addr);
+	  ElMessage({
+	    type: 'error',
+	    message: '未获取到机台编号请确认MAC地址或与管理员联系'
+	  })
     }else{
       // 将接口返回的数据添加到树型结构中
       let newNode = {

+ 1 - 1
src/view/performance/yuangongrigongzi.vue

@@ -40,7 +40,7 @@
               <!-- <el-button type="primary" :icon="Refresh">重置</el-button> -->
 			  <!-- <el-button type="primary" :icon="Search" class="bt" @click="onposition">定位</el-button> -->
 			  <!-- <el-button type="primary" :icon="Search">查改</el-button> -->
-			  <el-button type="primary" @click="handlePrint">员工计件明细</el-button>
+			  <el-button type="primary"  class="bt" @click="handlePrint">员工计件明细</el-button>
               <div style="margin-left: auto;">
                 <el-button type="primary" :icon="Download" class="bt" @click="exportExcel">导出到Excel(汇总)</el-button>
 				<el-button type="primary" :icon="Download" class="bt" @click="exportExcel2">导出到Excel(明细)</el-button>