From 9e6d32b4d78830cd5d2fc5d91baca2ab2a433730 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 2 Mar 2026 22:32:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?= =?UTF-8?q?ate]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/BaseInfoFormPackage.vue | 4 ++-- src/views/business/comps/template/comps/sp/SP0020.vue | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/components/Template/BaseInfoFormPackage.vue b/src/components/Template/BaseInfoFormPackage.vue index eb28b6e..b26a054 100644 --- a/src/components/Template/BaseInfoFormPackage.vue +++ b/src/components/Template/BaseInfoFormPackage.vue @@ -92,7 +92,7 @@
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
-
+
{{ sItem.otherLabel ? $t(sItem.otherLabel) : $t("template.common.other") }}
-
+
+ :ref="refConfig.baseInfoRef" :formConfig="baseInfoFormConfig" :formData="formData" /> + :ref="refConfig.remarkRef" :formConfig="remarkConig" :formData="formData" />
@@ -30,6 +30,12 @@ import TableOpertaionDelete from "@/components/Template/operation/TableOpertaion import { getBaseInfoFormConfig} from "../../formConfig/sp/SP0019"; import { getSynrFormConfig} from "../../formConfig/sp/SP0020"; +const refConfig = { + baseInfoRef: "baseInfoRef", + remarkRef: "remarkRef", +} + +const compRefs = Object.values(refConfig); export default { name: "SP0020", @@ -74,7 +80,7 @@ export default { data() { return { formData: {}, - compRefs:["baseInfoRef", "storageConditionRef", "spzxhRef","yqInfoTableRef","ryTableRef", "remarkRef"] + refConfig }; }, mounted() { @@ -93,16 +99,13 @@ export default { this.$refs.ryTableRef.updateDataSourceByRowIndex(rowIndex, params); } }, - onYqSubmit(data, col, rowIndex, colIndex, row){ - console.log(data, col, rowIndex, colIndex, row,"onRegentSubmit") - }, //获取已填写的表单数据 getFilledFormData() { - return this.getFilledFormDataByRefs(this.compRefs) + return this.getFilledFormDataByRefs(compRefs) }, //获取填写完成的表单数据 async getFormData() { - let content = await this.validFormFields(this.compRefs); + let content = await this.validFormFields(compRefs); console.log(content) return content; },