<patient-tabs-pro
  className="payment"
  onFilter="onFilterHandel"
  typeOptions="{{ typeOptions}}"
  statusOptions="{{ statusOptions }}"
  showAll="{{ showAll }}"
  showTimeSelector="{{ showTimeSelector }}"
  defaultStatus="{{ defaultStatus }}"
  onAutoFilter="onAutoFilter"
  showCardSelector="{{ showCardSelector }}"
> 
  <scroll-fetch
    ref="saveRef"
    slot-scope="props"
    onService="onService"
    height="{{ props.contentHeight }}"
    emptyTitle="该就诊人暂无记录"
    emptyMessage="你可以在顶部选择其他就诊人"
  >
    <view slot-scope="props" class="payment-block" catchTap="toDetail" data-item="{{ props.item }}" data-outTradeNo="{{ props.item.outTradeNo }}" data-type="{{ props.item.type }}">
      <view class="payment-flex payment-top">
        <text class="payment-title" number-of-lines="1">{{ props.item.title }}</text>
        <view class="payment-pay flag" a:if="{{ props.item.status === 0 }}">待支付</view>
        <view class="payment-pay" a:if="{{ props.item.status === 1 }}">已支付</view>
        <view class="payment-pay" a:if="{{ props.item.status === 9 }}">已取消</view>
      </view>
      <view class="payment-flex">
        <view class="payment-label">就诊人</view>
        <view class="payment-value">{{ props.item.name }}</view>
      </view>
      <view class="payment-flex">
        <view class="payment-label">开单时间</view>
        <view class="payment-value">{{ props.item.prescribeDate }}</view>
      </view>
      <view class="payment-flex">
        <view class="payment-label">需付款</view>
        <view class="payment-price">
          <text a:if="{{ props.item.num }}" class="num">共{{ props.item.num }}项</text>
          <text>￥</text>
          <text class="amount">{{ props.item.amount }}</text>
        </view>
      </view>
      <view class="payment-flex-r" a:if="{{ props.item.status === 0 }}">
        <view class="payment-flex-b" a:if="{{ props.item.type === 3 && props.item.medicareBinded }}" catchTap="onPayment" data-item="{{ props.item }}" data-medicareBinded="{{ true }}">刷医保</view>
        <view class="payment-flex-b" a:if="{{ props.item.total !== 0 }}" catchTap="onPayment" data-item="{{ props.item }}">付款</view>
      </view>
    </view>
  </scroll-fetch>
</patient-tabs-pro>

<subscribe-msg ref="saveSubscribe" />
