diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index c313a20..2ecf1f8 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -2,8 +2,8 @@
- - + +
@@ -52,6 +52,9 @@ export default { mounted() { }, methods: { + async getFormData() { + return await this.$refs.templateComponent.getFormData(); + }, getTemplateComponent() { return this.templateComponentMap[this.sn] }, diff --git a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue index fa4e049..a3387ea 100644 --- a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue +++ b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue @@ -4,8 +4,6 @@
生物样品分析溶液配制表
- -
@@ -241,20 +239,13 @@ export default { } },3000) - setTimeout(()=>{ - this.storageFormConfig[0].config.storageCondition1.options = [ - {label:"白光",value:"1"}, - {label:"黄光",value:"3"}, - {label:"其他",value:"-1"}, - ] - },4000) }, methods: { - getFormData(){ - const baseData = this.$refs.baseInfo.getFormData(); - const conditionData = this.$refs.storageCondition.getFormData(); - const stepData = this.$refs.stepRef.getFormData(); - const stepFormData = this.$refs.stepFormPackage.getFormData(); + async getFormData(){ + const baseData = await this.$refs.baseInfo.getFormData(); + const conditionData = await this.$refs.storageCondition.getFormData(); + const stepData = await this.$refs.stepRef.getFormData(); + const stepFormData = await this.$refs.stepFormPackage.getFormData(); return { ...baseData, ...conditionData, @@ -262,13 +253,6 @@ export default { ...stepFormData, } }, - async onSave(){ - const baseData = await this.$refs.baseInfo.getFormData(); - const conditionData = await this.$refs.storageCondition.getFormData(); - const stepData = await this.$refs.stepRef.getFormData(); - const stepFormData = await this.$refs.stepFormPackage.getFormData(); - console.log(baseData,conditionData,stepData,stepFormData,"reee") - } } }; diff --git a/src/views/business/template/list.vue b/src/views/business/template/list.vue index ee331a0..6273c28 100644 --- a/src/views/business/template/list.vue +++ b/src/views/business/template/list.vue @@ -79,7 +79,7 @@ - +