From be66bbc74974231716c1cfe044d158623882f9a4 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 11 Jun 2025 11:59:04 +0800 Subject: [PATCH] 1.commonBill页签主表如有分页页签,并且单独配置了控件名,则取这个控件名的配置 --- src/components/Common/CommonNewBill.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Common/CommonNewBill.js b/src/components/Common/CommonNewBill.js index 9e8c31c..ca96a3c 100644 --- a/src/components/Common/CommonNewBill.js +++ b/src/components/Common/CommonNewBill.js @@ -2541,7 +2541,12 @@ const BillComponent = Form.create({ // 匹配数字 // eslint-disable-next-line no-unused-vars let num = item.replace(/[^\d]/g, '').trim(); - const tabName = item.replace(/\d+/g,''); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return (
-- libgit2 0.22.2