From fa1812fa32fe444f59859a90c2b91d30940f38de Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 31 Dec 2025 22:06:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E7=94=9F=E7=89=A9=E6=A0=B7=E5=93=81=E5=88=86=E6=9E=90=E6=BA=B6?= =?UTF-8?q?=E6=B6=B2=E9=85=8D=E5=88=B6=E8=A1=A81=20]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/comps/template/TemplateTable.vue | 7 ++++-- .../comps/template/comps/sp/SWYPFXRYPZB.vue | 26 +++++----------------- src/views/business/template/list.vue | 2 +- 3 files changed, 11 insertions(+), 24 deletions(-) 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 @@ - +