<import-sjs name="utils" from="./index.sjs"/>
<view
  onTap="onItemTap"
  data-item="{{ item }}"
  class="subscribe-record-item"
>
  <view class="item-content">
    <view class="item-header">
     <view class="header-left">
       <view class="record-name">
         {{ item.depName }}
       </view>
       <!-- <view class="num-type">
         {{ item.type === 'expert' ? '专家' :(item.type === 'nucleic' ? '' : '普通') }}号
       </view> -->
     </view>
      <view class="header-right">
        <view class="status {{ utils.statusClass(item.status) }}">
          {{ utils.statusName(item.status) }}
        </view>
      </view>
    </view>
  </view>
  <view class="item-container">
    <view class="item-box">
      <view class="item-label">就诊时间</view>
      <view class="item-value">
        <view>
          {{ item.registeredDate }}
        </view>
        <block a:if="{{ item.queueNum }}">
          <view class="line" />
          <view>
            {{ item.queueNum }}号
          </view>
        </block>
      </view>
    </view>
    <view class="item-box">
      <view class="item-label">就诊医院</view>
      <view class="item-value">{{ item.districtName || '--' }}</view>
    </view>
    <view class="item-box">
      <view class="item-label">就诊院区</view>
      <view class="item-value">{{ item.subHospital || '--' }}</view>
    </view>
    <view class="item-box">
      <view class="item-label">就诊科室</view>
      <view class="item-value">{{ item.depName || '--' }}</view>
    </view>
    <view class="item-box">
      <view class="item-label">就诊人</view>
      <view class="item-value">
        {{ item.userName || '--' }}
      </view>
    </view>
    <view class="item-box">
      <view class="item-label">预约医生</view>
      <view class="item-value">
        {{ item.doctorName || '--' }}
      </view>
    </view>
  </view>
<!--  这里注释掉，需求上说先不管-->
<!--  <view class="item-footer" a:if="{{ item.status === 0 }}">-->
<!--    <view class="time">剩余23分钟自动关闭</view>-->
<!--    <view class="pay-button">付款</view>-->
<!--  </view>-->
</view>

