Эх сурвалжийг харах

【UAS移动端】【数字输入框只读模式改为文本类型】

wuyx 1 сар өмнө
parent
commit
c4bb7b82d1

+ 3 - 1
uas-office-web/uas-mobile/src/components/common/formNew/FormInput.jsx

@@ -417,7 +417,9 @@ export default class FormInput extends Component {
         : true)}
       onChange={this.onTextChange}
       onClick={this.onInputClick}
-      type={'digit'}
+      // type={'digit'}
+      // 将原有的固定 type={'digit'} 改为根据条件动态设置
+      type={(billReadOnly(billModel) && !isObjEmpty(caption) && !caption.toLowerCase().endsWith('id')) ? 'text' : 'digit'}
       value={(billReadOnly(billModel)
         && !isObjEmpty(caption)
         && !caption.toLowerCase().endsWith('id'))