不合格项复检

This commit is contained in:
caozehui
2025-03-03 11:35:12 +08:00
parent bf5f4eab77
commit faa0bc54a6
5 changed files with 41 additions and 12 deletions

View File

@@ -954,10 +954,12 @@ const handleTest = async (val: string) => {
})
.then(() => {
ElMessage.success('不合格项复检')
checkStore.setReCheckType(0)
selectTestItemPopupRef.value?.open()
})
.catch((action: Action) => {
ElMessage.success('全部复检')
checkStore.setReCheckType(1)
selectTestItemPopupRef.value?.open()
})
} else {
@@ -987,10 +989,30 @@ const handleTest = async (val: string) => {
channelsTest.value?.open(channelsSelection.value, props.plan)
return
} else {
// 一键检测
checkStore.setCheckType(1)
checkStore.initSelectTestItems()
openTestDialog()
// 一键检测
if (testType === 'reTest') {
ElMessageBox.confirm('请选择复检检测方式', '设备复检',
{
distinguishCancelAndClose: true,
confirmButtonText: '不合格项复检',
cancelButtonText: '全部复检',
type: 'warning',
})
.then(() => {
ElMessage.success('不合格项复检')
checkStore.setReCheckType(0)
openTestDialog()
})
.catch((action: Action) => {
ElMessage.success('全部复检')
checkStore.setReCheckType(1)
openTestDialog()
})
} else {
openTestDialog()
}
}
}
if (val === '批量下载') {