From a8e998ae4591fb97b0fc7a605226424316ae5742 Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 25 十二月 2025 16:44:38 +0800
Subject: [PATCH] 没有调机时间转跳到上下刀界面
---
pages/index.vue | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/pages/index.vue b/pages/index.vue
index 43cd4b1..805efc3 100644
--- a/pages/index.vue
+++ b/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
}
});
--
Gitblit v1.9.3