This commit is contained in:
caozehui
2025-03-03 13:25:19 +08:00
parent faa0bc54a6
commit fbefc70368
2 changed files with 12 additions and 4 deletions

View File

@@ -954,7 +954,11 @@ const handleTest = async (val: string) => {
})
.then(() => {
ElMessage.success('不合格项复检')
checkStore.setReCheckType(0)
if (checkStore.devices.length > 1) {
checkStore.setReCheckType(1)
} else {
checkStore.setReCheckType(0)
}
selectTestItemPopupRef.value?.open()
})
.catch((action: Action) => {
@@ -1002,7 +1006,11 @@ const handleTest = async (val: string) => {
})
.then(() => {
ElMessage.success('不合格项复检')
checkStore.setReCheckType(0)
if (checkStore.devices.length > 1) {
checkStore.setReCheckType(1)
} else {
checkStore.setReCheckType(0)
}
openTestDialog()
})
.catch((action: Action) => {