<rt-form id="{{vm.form.name}}" name="{{vm.form.name}}" novalidate>
    <div class="row rt-margin-bottom-before-box">
        <div class="col-sm-2">
            <button class="btn btn-link" type="button" id="btnClose" ng-click="vm.form.evalItemDialogHide()">
                <i class="fa fa-sign-out"></i>关闭
            </button>
        </div>
        <div class="col-sm-10">
            <div class="pull-right">
                <rt-button id="btnSave" rt-style="link" rt-title="保存" rt-icon="floppy-o" ng-click="vm.form.evalItemDialogSave()">
                </rt-button>
            </div>
        </div>
    </div>
    <div class="nav-tabs-custom">
        <div class="tab-content">
            <rt-section rt-title="品种">
                <rt-section-row>
                    <rt-lookup2 rt-title="品种" ng-model="vm.form.product_categoryId" rt-get-data-name="Product.GetProductCategoryIncludeAll" rt-order-by="code"
                        rt-col-list="[{Code:'name',Name:'品种名称'}]" rt-required="true" rt-col="4"></rt-lookup2>
                </rt-section-row>
            </rt-section>

            <rt-section rt-title="项目" ng-if="vm.form.itemList.length>0">
                <rt-section-row ng-repeat="item in vm.form.itemList">
                    <!-- 选项 -->
                    <div ng-if="item.eval_item_value_type.Value==='1'">
                        <label class="col-sm-2 control-label">{{item.name}}<span class="required">*</span></label>
                        <div class="col-sm-4" tabindex="-1">
                            <div class="input-group input-group-sm">
                                <ui-select allow-clear ng-model="item.pickValue" theme="bootstrap">
                                    <ui-select-match>{{$select.selected.name}}</ui-select-match>
                                    <ui-select-choices repeat="option in item.itemOptionList | filter: $select.search">
                                        <span ng-bind-html="option.name | highlight: $select.search"></span>
                                    </ui-select-choices>
                                </ui-select>
                                <span class="input-group-btn">
                                    <button ng-click="item.pickValue = null" class="btn btn-default">
                                        <span class="fa fa-times"></span></button>
                                </span>
                            </div>
                        </div>
                    </div>

                    <!-- 数值区间、百分数 -->
                    <rt-input rt-type="decimal" rt-title="{{item.name}}" rt-col="4" ng-model="item.numberValue" rt-required="true" ng-if="item.eval_item_value_type.Value!=='1'"></rt-input>
                </rt-section-row>
            </rt-section>
        </div>
    </div>
</rt-form>