<scroll-fetch onService="onService">
  <view slot-scope="props">
    <view class="hospital-report">
      <view a:for="{{props.list}}" a:for-item="item" key="*this">
        <view class="cord" data-record="{{item}}" onTap="toDetail">
          <view class="status">
            <view class="{{item.status === '未出报告' ? 'null' : ''}}">{{item.status}}</view>
            <view>{{item.applyDate}}</view>
          </view>
          <view class="type">
            {{item.departmentName}}
          </view>
          <view class="record" a:if="{{item.itemName}}">
            <view>报告名称</view>
            <view>{{item.itemName}}</view>
          </view>
          <view class="record">
            <view>姓名</view>
            <view>{{item.userName}}</view>
          </view>
          <view class="record">
            <view>流水号</view>
            <view>{{item.recordId}}</view>
          </view>
          <view class="record">
            <view>就诊卡卡号</view>
            <view>{{item.cardNum}}</view>
          </view>
          <title type="arrow" className="detail-desc">查看详情</title>
        </view>
      </view>
    </view>
  </view>
</scroll-fetch>
