diff --git a/src/pages/mes/workScheduling/waitQuality.vue b/src/pages/mes/workScheduling/waitQuality.vue index f27f70f..fe9b549 100644 --- a/src/pages/mes/workScheduling/waitQuality.vue +++ b/src/pages/mes/workScheduling/waitQuality.vue @@ -87,7 +87,7 @@ console.log(saveData.value) workSchedulingListApi.qualityByProcess(saveData.value).then((res) => { proxy.$modal.closeLoading() - if (res.data) { + if (res.code == 0) { proxy.$modal.showToast('成功') setTimeout(() => { proxy.$tab.navigateBack() @@ -127,6 +127,7 @@ nodeInfo.value.processCode = paramData.value.nodeCode saveData.value.processCode = paramData.value.nodeCode saveData.value.planDayCode = paramData.value.planNoDay + saveData.value.id = paramData.value.id } }) onShow(() => { diff --git a/src/pages/mes/workScheduling/workScheduling.vue b/src/pages/mes/workScheduling/workScheduling.vue index 98e8c61..55a1afc 100644 --- a/src/pages/mes/workScheduling/workScheduling.vue +++ b/src/pages/mes/workScheduling/workScheduling.vue @@ -317,9 +317,10 @@ //工序完成 function nodeCodeFinish(item) { + console.log(item) proxy.$modal.confirm("是否确认完成工序").then(() => { proxy.$modal.loading('加载中') - workSchedulingListApi.getWorkSchedulingProcessFinished(item.remark).then((res) => { + workSchedulingListApi.getWorkSchedulingProcessFinished(item.id).then((res) => { proxy.$modal.showToast('成功') tabsChange(3); proxy.$modal.closeLoading()