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 @@