rps.html 3 KB
<div class="form-group" ng-show="showDimension">
    <label class="control-label">统计维度:</label>
    <select class="form-control a_select mt3" ng-model="fieldName">
        <option value="region">区域</option>
        <option value="province">省份</option>
        <option value="shopName">店面</option>
    </select>
</div>
<div class="form-group" ng-show="showPeriod">
    <label class="control-label">统计周期:</label>
    <select class="form-control a_select mt3" ng-model="period" >
        <option value="1">今天</option>
        <option value="3">本周</option>
        <option value="5">本月</option>
        <option value="6">上月</option>
        <option value="15">本季度</option>
        <option value="14">当年</option>
        <option value="16">展业至今</option>
    </select>
</div>
<div class="form-group">
    <label class="control-label">所属区域:</label>
    <ui-select ng-model="filter.regions.selected"
               theme="select2"
               on-select="pickRegion($select.selected.id)"
               style="width: 100px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.name"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.regions | filter: $select.search) track by $index">
            <span ng-bind="item.name"></span>
        </ui-select-choices>
    </ui-select>
</div>
<div class="form-group" ng-show="fieldName=='province' || fieldName=='shopName' || simple">
    <label class="control-label">所属省份:</label>
    <ui-select ng-model="filter.provinces.selected"
               theme="select2"
               on-select="pickProvince($select.selected.id)"
               style="width: 100px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.name"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.provinces | filter: $select.search) track by $index">
            <span ng-bind="item.name"></span>
        </ui-select-choices>
    </ui-select>
</div>
<div class="form-group" ng-show="fieldName=='shopName' || simple">
    <label class="control-label">店面名称:</label>
    <ui-select ng-model="filter.shops.selected"
               theme="select2"
               on-select="pickShop($select.selected.id)"
               style="width: 300px;">
        <ui-select-match placeholder="全部">
            <span ng-bind="$select.selected.name"></span>
        </ui-select-match>
        <ui-select-choices repeat="item in (filter.shops | filter: $select.search) track by $index">
            <span ng-bind="item.name"></span>
        </ui-select-choices>
    </ui-select>
</div>
<div class="form-group" ng-show="showTimeRange">
    <a class="fa fa-question-circle" aria-hidden="true" data-toggle="tooltip" title="服务订单提单时间"></a>
    <label class="control-label">统计时间:</label>
    <input date-range-picker options="drOptions" class="form-control date-picker sys-search-input" type="text" ng-model="time"/>
</div>