소스 검색

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

wuyx 1 개월 전
부모
커밋
c4bb7b82d1
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      uas-office-web/uas-mobile/src/components/common/formNew/FormInput.jsx

+ 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'))