ng-readonly:不可用,但是可以提交数据
ng-disabled: 属性是控制标签是否可用(不可用且无法传值)
表达式控制:
<input class="col-md-2 form-control" type="text" ng-model="formData.MovingCode" id="MovingCode" ng-readonly="MovingCodeReadOnly()" ng-disabled="formData.SelectCardType.WriteOffNumber>1?false:true" />
表单控制:
<input class="btn btn-primary col-md-offset-3" type="button" ng-click="submit()" ng-disabled="!form1.$valid" value="确认核销" />