| | |
| | | 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 '开工'; |
| | | }, |
| | |
| | | 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 { |
| | | // 如果未选中,则执行开工逻辑 |
| | |
| | | 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 |
| | | } |
| | | }); |
| | | |