feat(WorkOrderEdit): 添加出入证申请表单数据收集功能
在下一步按钮点击事件中增加对第二步表单数据的收集处理,通过gatePassInfoRef获取出入证申请表单数据并存储到allData中
This commit is contained in:
parent
c239c25fa4
commit
6a66ff4422
|
|
@ -30,6 +30,7 @@ import BasicsInfo from './compoents/BasicsInfo.vue'
|
||||||
import GatePassInfo from './compoents/GatePassInfo.vue'
|
import GatePassInfo from './compoents/GatePassInfo.vue'
|
||||||
const currentStep = ref(1)// 当前步骤
|
const currentStep = ref(1)// 当前步骤
|
||||||
const basicsInfoRef = ref(null); // 基础信息组件引用
|
const basicsInfoRef = ref(null); // 基础信息组件引用
|
||||||
|
const gatePassInfoRef = ref(null); // 出入证申请组件引用
|
||||||
|
|
||||||
// 各个页面汇总数据
|
// 各个页面汇总数据
|
||||||
const allData = ref({
|
const allData = ref({
|
||||||
|
|
@ -66,8 +67,13 @@ const prevStep = () => {
|
||||||
|
|
||||||
// 点击下一步
|
// 点击下一步
|
||||||
const nextStep = () => {
|
const nextStep = () => {
|
||||||
|
if (currentStep.value == 1) {
|
||||||
console.log(basicsInfoRef.value.getFormData());
|
console.log(basicsInfoRef.value.getFormData());
|
||||||
allData.value.BasicsInfo = 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++;
|
currentStep.value++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue