From 915645797fb65ed666bf3fac8b9c2d295ba84ce4 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 4 Mar 2026 22:59:19 +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/HandleFormItem.vue | 2 +- .../Template/mixins/formPackageMixins.js | 8 +- .../business/comps/template/comps/sp/SP0021.vue | 300 +++++---------------- .../comps/template/formConfig/sp/SP0021.js | 181 +++++++++++++ 4 files changed, 252 insertions(+), 239 deletions(-) diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index 7d648b5..483acdc 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -4,7 +4,7 @@ - diff --git a/src/components/Template/mixins/formPackageMixins.js b/src/components/Template/mixins/formPackageMixins.js index d3e9bfe..26db979 100644 --- a/src/components/Template/mixins/formPackageMixins.js +++ b/src/components/Template/mixins/formPackageMixins.js @@ -319,7 +319,7 @@ export default { } } - if (o.type === "attachment") { + if (o.type === "attachment"&&o.fillType === this.templateFillType) { const attValue = formFields[key]; if (!attValue || attValue == "[]") { errors.push({ @@ -329,8 +329,8 @@ export default { }); this.$set(this.errors, key, true); } - } else if (o.type === "fqyq") { - const fqyqValue = formFields[key]; + } else if (o.type === "fqyq" &&o.fillType === this.templateFillType) { + const fqyqValue = formFields[key] || {}; const {mainRadio, subRadio,inputValue} = fqyqValue; if (!mainRadio) { errors.push({ @@ -360,7 +360,7 @@ export default { } continue - }else if(o.type === "checkboxTree"){ + }else if(o.type === "checkboxTree"&&o.fillType === this.templateFillType){ const checkboxTreeValue = formFields[key] || {}; const {checkedValues=[],otherValues = {}} = checkboxTreeValue;; const {options = []} = o; diff --git a/src/views/business/comps/template/comps/sp/SP0021.vue b/src/views/business/comps/template/comps/sp/SP0021.vue index 4c47e95..45ca8e2 100644 --- a/src/views/business/comps/template/comps/sp/SP0021.vue +++ b/src/views/business/comps/template/comps/sp/SP0021.vue @@ -11,47 +11,67 @@ - +
- {{ - $t('template.common.bqdy') }} - + + + 导入动物 + + +
- + + + :ref="refConfig.remarkRef" :formConfig="remarkConig" :formData="formData" /> +