<view class="hospital-report-detail">
  <view>
    <view style="margin: 24rpx 0;">
      <view class="hospital-report-name">
        <view>姓名：{{detail.userName}}</view>
        <view>性别：{{detail.userSex}}</view>
        <view>年龄：{{detail.userAge}}</view>
      </view>
      <view class="hospital-report-name">
        <view>申请科室名称：{{detail.departmentName}}</view>
        <view>申请医⽣：{{detail.applyDoctorName}}</view>
      </view>
    </view>
    <list className="list">
      <list-item wrap="{{true}}">
        <text>检查流⽔号</text>
        <view slot="extra">{{detail.recordId}}</view>
      </list-item>
      <list-item wrap="{{true}}">
        <text>诊断</text>
        <view slot="extra">{{detail.diagnosis}}</view>
      </list-item>
      <list-item wrap="{{true}}">
        <text>申请⽇期</text>
        <view slot="extra">{{detail.applyDate}}</view>
      </list-item>
    </list>
    <view class="toPdf" a:if="{{detail.reportPdfUrl || detail.reportImageUrl}}">
      <view onTap="toPdf" data-url="{{detail.reportPdfUrl}}" a:if="{{detail.reportPdfUrl}}">
        查看PDF报告
      </view>
      <view onTap="toImg" data-url="{{detail.reportImageUrl}}" a:if="{{detail.reportImageUrl}}">
        查看图片报告
      </view>
    </view>
    <view>
      <block a:for="{{detail.reportItemList}}" a:for-item="item" a:key="*this">
        <view class="hospital-report-items">
          <view>
            <view>{{item.itemName}}</view>
            <block>
              <view slot="extra" a:if="{{item.pnFlag === 'HIGH'}}" class="hige">(高↑)</view>
              <view slot="extra" a:if="{{item.pnFlag === 'LOW'}}" class="low">(低↓)</view>
              <view slot="extra" a:if="{{item.pnFlag === 'NORMAL'}}" class="normal">(正常)</view>
            </block>
          </view>
          <view>
            <view>参考值：{{item.reference}}</view>
            <view>结果：{{item.txtVal}}</view>
          </view>
        </view>
      </block>
    </view>
  </view>
</view>

