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

View File

@@ -2,12 +2,12 @@
<el-dialog :title="dialogTitle" width="1550px" :model-value="dialogVisible" :before-close="beforeClose" @close="handleClose" height="1000px" draggable> <el-dialog :title="dialogTitle" width="1550px" :model-value="dialogVisible" :before-close="beforeClose" @close="handleClose" height="1000px" draggable>
<div class="steps-container"> <div class="steps-container">
<el-steps class="test-head-steps" simple :active="stepsActiveIndex-1" process-status="finish" finish-status="success"> <el-steps class="test-head-steps" simple :active="stepsActiveIndex" process-status="finish" finish-status="success">
<el-step v-if="preTestSelected" title="预检测" :icon="stepsActive > 1 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Edit" @click="handleStepClick(1)"/> <el-step v-if="preTestSelected" title="预检测" :icon="stepsActive > 1 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Edit" @click="handleStepClick(1)"/>
<el-step v-if="timeTestSelected" title="守时检测" :icon="stepsActive > 2 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :UploadFilled" @click="handleStepClick(2)"/> <el-step v-if="timeTestSelected" title="守时检测" :icon="stepsActive > 2 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :UploadFilled" @click="handleStepClick(2)"/>
<el-step v-if="channelsTestSelected" title="系数校准" :icon="stepsActive > 3 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Odometer" @click="handleStepClick(3)"/> <el-step v-if="channelsTestSelected" title="系数校准" :icon="stepsActive > 3 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Odometer" @click="handleStepClick(3)"/>
<el-step v-if="testSelected" title="正式检测" :icon="stepsActive > 4 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Coin" @click="handleStepClick(4)"/> <el-step v-if="testSelected" title="正式检测" :icon="stepsActive > 4 || stepsActiveIndex > stepsTotalNum-1? SuccessFilled :Coin" @click="handleStepClick(4)"/>
<el-step title="检测完成" :icon="stepsActiveIndex >= stepsTotalNum-1 ? SuccessFilled :Key"/> <el-step title="检测完成" :icon="stepsActiveIndex > stepsTotalNum-1 ? SuccessFilled :Key"/>
</el-steps> </el-steps>
</div> </div>