快乐的昕的电脑
4 小时以前 a8e998ae4591fb97b0fc7a605226424316ae5742
pages/index.vue
@@ -861,7 +861,12 @@
         getStartBtnText(item) {
            const isSelected = this.isShowTableData.length > 0 && this.isShowTableData[0].daa001 === item.daa001;
            if (isSelected) {
               return '转跳报工界面';
               // 检查是否有调机时间
               if (this.isShowTableData[0].maShoutTime) {
                  return '转跳报工界面';
               } else {
                  return '转跳上下刀界面';
               }
            }
            return '开工';
         },
@@ -872,11 +877,18 @@
            const isSelected = this.isShowTableData.length > 0 && this.isShowTableData[0].daa001 === item.daa001;
            
            if (isSelected) {
               // 如果已选中,则先跳转到主界面,然后跳转到报工界面
               // 如果已选中,先跳转到主界面
               this.toDetail(item);
               // 延迟跳转到报工界面
               // 延迟跳转:根据是否有调机时间决定跳转到哪个界面
               setTimeout(() => {
                  this.currentTab = 4;
                  if (this.isShowTableData[0].maShoutTime) {
                     // 有调机时间,跳转到报工界面
                     this.currentTab = 4;
                  } else {
                     // 没有调机时间,跳转到上下刀界面
                     this.currentTab = 2;
                  }
               }, 100);
            } else {
               // 如果未选中,则执行开工逻辑
@@ -918,11 +930,10 @@
         async bindDataCollectionFlag(orderNo) {
            try {
               const res = await this.$post({
                  url: '/MesOrderSelect/AddBySc',
                  url: '/MesOrderDataCollection/BindDataCollectionFlag',
                  data: {
                     machineNo: this.machineNo,
                     editDate: editDate,
                     item: orderSelect
                     orderNo: orderNo
                  }
               });