<import-sjs name="utils" from="./index.sjs"/>
<view class="filter-items">
  <view  class="filter-item{{ showTime ? ' open' : ''}}" onTap="onTimeTapHandel" a:if="{{ showTimeSelector }}">
    <view class="filter-value">
      {{ utils.getTime(timeStart.replace(/-/g, '.'), timeEnd.replace(/-/g, '.'))}}
    </view>
  </view>
  <view  class="filter-item{{ showOption ? ' open' : ''}}" onTap="onTypeTapHandel" a:if="{{ items.length }}">
    <view class="filter-value">
      {{ utils.getTypeName(items, type, defaultName) }}
    </view>
  </view>
  <view class="filter-item{{ showStatus ? ' open' : ''}}" onTap="onStatusTapHandel" a:if="{{ statusItems.length }}">
     <view class="filter-value">
       {{ utils.getTypeName(statusItems, status, defaultStatus || '全部状态') }}
     </view>
  </view>
  <view class="filter-item{{ showCard ? ' open' : ' '}} {{ hisPatientId ? '' : ' hide'}}" a:if="{{ showCardSelector }}" onTap="onCardTapHandel">
    <view class="filter-value">
      {{ hisPatientId || "全部就诊卡" }}
    </view>
  </view>
</view>

