<view class="discharge-settlement-container">
  <view a:for="{{ list }}" class="discharge-detail">
    <view class="header"> {{ item.inpatientName }} </view>
    <view class="content">
      <view  class="content-detail">
        <text class="label">科室</text>
        <text class="test">{{item.departmentName}}</text>
      </view>
      <view  class="content-detail">
        <text class="label">病区</text>
        <text class="test">{{item.area}}</text>
      </view>
      <view  class="content-detail">
        <text class="label">床位</text>
        <text class="test">{{item.bedspace}}</text>
      </view>
      <view  class="content-detail">
        <text class="label">医生</text>
        <text class="test">{{item.doctorName}}</text>
      </view>
      <view  class="content-detail">
        <text class="label">住院号</text>
        <text class="test">{{item.inpatientNo}}</text>
      </view>
      <view  class="content-detail">
        <text class="label">入院日期</text>
        <text class="test">{{item.inpatientDate}}</text>
      </view>
      <view  class="content-detail" a:if="{{ item.status==='DISCHARGED' }}">
        <text class="label">押金余额</text>
        <text class="test orange">¥ {{item.depositBalance}}</text>
      </view>
    </view>
    <view class="notpay" onTap="settlementFn" data-item="{{item}}" a:if="{{ item.status==='INPATIENT' }}">出院结算</view>
    <view class="pay"  onTap="settlementFn" data-item="{{item}}" a:if="{{ item.status==='DISCHARGED' }}">已出院，查看详情</view>
  </view>
</view>

