|
@@ -216,7 +216,8 @@ const handleNext = (tabIndex, deviceId) => {
|
|
|
return ElMessage.warning('请先完成当前步骤的必填项')
|
|
|
}
|
|
|
const current = currentStep.value[tabIndex]
|
|
|
- const totalSteps = tabs.value[tabIndex].length
|
|
|
+ const totalSteps = tabs.value[tabIndex].orderDetails.length
|
|
|
+ debugger
|
|
|
if (currentStep.value[tabIndex] < totalSteps - 1) {
|
|
|
formData[tabIndex][current].indexId = current+1
|
|
|
formData[tabIndex][current].deviceId = deviceId
|
|
@@ -230,7 +231,8 @@ const handleNext = (tabIndex, deviceId) => {
|
|
|
}
|
|
|
|
|
|
const isLastStep = (tabIndex) => {
|
|
|
- return currentStep.value[tabIndex] === tabs.value[tabIndex].length - 1
|
|
|
+ debugger
|
|
|
+ return currentStep.value[tabIndex] === tabs.value[tabIndex].orderDetails.length - 1
|
|
|
}
|
|
|
|
|
|
// 提交表单
|