From 7209c814217b96361c42b0fc80e8bb37cd1d7307 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Sun, 4 Jan 2026 11:37:15 +0800 Subject: [PATCH] 1.处理MES班组产量上报,手填报工数量,超过五位数,点击页面会自动将五位数变成四位 --- src/components/Common/CommonComponent/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 3573148..6dc7ee5 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -1516,7 +1516,8 @@ export default class CommonComponent extends Component { this.handleSelectOptionEvent(value); }, /* 数据改变回带到父组件 */ parser: (oldValue) => { - return oldValue; + const value = this.handleCheckNumberInnerInput(oldValue); + return value?.replace(/\$\s?|(,*)/g, ''); }, formatter: (value) => { if (value === '' || value === undefined || value === null || location.pathname.includes("indexPad")) { @@ -2070,7 +2071,7 @@ export default class CommonComponent extends Component { const { sDateFormat, sFieldValidation } = this.props.showConfig; if (sDateFormat !== 'decimalPoint' || sFieldValidation === undefined) return value; - const [length1, length2] = sFieldValidation.split(','); + const [length1, length2] = sFieldValidation?.split(','); let newValue = value; if (length2 !== undefined) { -- libgit2 0.22.2