From 96ded40230a4a8115db113831bbe9fae69f2ed72 Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Tue, 21 May 2024 13:41:34 +0800 Subject: [PATCH] feat: update bug --- src/pages/mes/workScheduling/waitQuality.vue | 5 +---- src/pages/mes/workScheduling/waitReport.vue | 8 +++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/mes/workScheduling/waitQuality.vue b/src/pages/mes/workScheduling/waitQuality.vue index 1dd8a0f..bf000f7 100644 --- a/src/pages/mes/workScheduling/waitQuality.vue +++ b/src/pages/mes/workScheduling/waitQuality.vue @@ -84,19 +84,16 @@ const Quakey = ref(0) function changeQualified(){ - Quakey.value++ if(saveData.value.qualified > planCount.value){ + Quakey.value++ saveData.value.qualified = planCount.value } - valChange() - } //提交接口 function submitData(){ proxy.$modal.loading('加载中') - console.log(saveData.value) workSchedulingListApi.qualityByProcess(saveData.value).then((res) => { proxy.$modal.closeLoading() if (res.code == 0) { diff --git a/src/pages/mes/workScheduling/waitReport.vue b/src/pages/mes/workScheduling/waitReport.vue index bde90fd..e6f2556 100644 --- a/src/pages/mes/workScheduling/waitReport.vue +++ b/src/pages/mes/workScheduling/waitReport.vue @@ -125,22 +125,24 @@ } } function changeReportCount(){ - rekey.value++ - console.log(1) + if(formData.value.reportCount> planCount.value){ + rekey.value++ formData.value.reportCount = planCount.value } if(formData.value.checkFlag){ + Quakey.value++ formData.value.qualified = formData.value.reportCount formData.value.unqualified = 0 } } function changeQualified(){ - Quakey.value++ if(formData.value.qualified>formData.value.reportCount){ + Quakey.value++ formData.value.qualified = formData.value.reportCount } if(formData.value.checkFlag){ + Quakey.value++ formData.value.unqualified = formData.value.reportCount - formData.value.qualified } }