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