feat(WorkOrderEdit): 添加出入证申请表单数据收集功能

在下一步按钮点击事件中增加对第二步表单数据的收集处理,通过gatePassInfoRef获取出入证申请表单数据并存储到allData中
This commit is contained in:
liangbin 2026-01-16 18:01:02 +08:00
parent c239c25fa4
commit 6a66ff4422
1 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import BasicsInfo from './compoents/BasicsInfo.vue'
import GatePassInfo from './compoents/GatePassInfo.vue'
const currentStep = ref(1)//
const basicsInfoRef = ref(null); //
const gatePassInfoRef = ref(null); //
//
const allData = ref({
@ -66,8 +67,13 @@ const prevStep = () => {
//
const nextStep = () => {
console.log(basicsInfoRef.value.getFormData());
allData.value.BasicsInfo = basicsInfoRef.value.getFormData();
if (currentStep.value == 1) {
console.log(basicsInfoRef.value.getFormData());
allData.value.BasicsInfo = basicsInfoRef.value.getFormData();
} else if (currentStep.value == 2) {
console.log(gatePassInfoRef.value.getFormData());
allData.value.GatePassInfo = gatePassInfoRef.value.getFormData();
}
currentStep.value++;
}