diff --git a/src/mes/common/commonModelComponent/index.js b/src/mes/common/commonModelComponent/index.js index f3fc802..d251c7f 100644 --- a/src/mes/common/commonModelComponent/index.js +++ b/src/mes/common/commonModelComponent/index.js @@ -3667,9 +3667,10 @@ const SisColorChooseComponent = props => { ]; const handlePlateNumChange = (value, record) => { + const numValue = value.replace(/[^\d]/g, ''); const newData = rightData.map(item => { if (item.sId === record.sId) { - return { ...item, dColor: Number(value) || 0 }; + return { ...item, dColor: Number(numValue) || 0 }; } return item; }); @@ -3683,12 +3684,11 @@ const SisColorChooseComponent = props => { ...col, render: (text, record) => ( handlePlateNumChange(e.target.value, record)} style={{ - width: '80px', + width: '120px', padding: '4px 8px', border: '1px solid #d9d9d9', borderRadius: '4px', @@ -3736,7 +3736,7 @@ const SisColorChooseComponent = props => { title='颜色选择' open={sisColorChooseVisible} width={1000} - height={400} + bodyStyle={{ height: 500 }} footer={