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; },