From c61236b1b166febde71136f139612e00f8b16ab0 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Fri, 23 Jan 2026 12:05:49 +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/BaseInfoFormPcakge.vue | 8 +--- src/components/Template/CustomTable.vue | 20 ++++------ .../Template/operation/TableOpertaion.vue | 14 +++---- src/utils/formPackageCommon.js | 11 ++++++ .../comps/template/comps/sp/SWYPBQGZYZBB.vue | 6 ++- .../comps/template/comps/sp/SWYPFXCBYPZB.vue | 2 +- .../comps/template/comps/sp/SWYPFXFFXZKPZB.vue | 12 ++---- .../comps/template/comps/sp/SWYPFXRYPZB.vue | 2 +- .../comps/template/comps/sp/SWYPNBGZYZBB.vue | 2 +- .../comps/template/dialog/SubPackageDialog.vue | 43 ++++++++++++++-------- 10 files changed, 65 insertions(+), 55 deletions(-) create mode 100644 src/utils/formPackageCommon.js diff --git a/src/components/Template/BaseInfoFormPcakge.vue b/src/components/Template/BaseInfoFormPcakge.vue index 20b84f0..2e5bf76 100644 --- a/src/components/Template/BaseInfoFormPcakge.vue +++ b/src/components/Template/BaseInfoFormPcakge.vue @@ -181,6 +181,7 @@ import HandleFormItem from "./HandleFormItem.vue"; import LineLabel from "./LineLabel.vue"; import { isEqual } from "@/utils/index.js"; +import { isShowOther } from "@/utils/formPackageCommon.js"; export default { inject: ['templateFillType'], components: { @@ -218,6 +219,7 @@ export default { errors: {},//存储表单错误信息,用于标红提示 orangeBgFields: {},// 存储需要橙色背景的字段 oldFormFields: {},// 存储旧的表单数据,用于比较变化 + isShowOther, }; }, watch: { @@ -339,12 +341,6 @@ export default { parentLabel: sItem.label, } }, - isShowOther(v = []) { - // 确保v是数组类型,以避免类型错误 - const arr = Array.isArray(v) ? v : [v]; - //和凡哥商量,只要value为负数都显示其他 - return arr.some(item => item < 0); - }, // 根据formConfig回填form表单数据 handleFormField(update = false) { const result = {}; diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue index 134f347..aa3e4f2 100644 --- a/src/components/Template/CustomTable.vue +++ b/src/components/Template/CustomTable.vue @@ -127,7 +127,7 @@
- +
@@ -147,6 +147,7 @@