<!--pages/duty/rec-detail/index.wxml-->
<title-bar title="工作记录"></title-bar>
<scroll-view scroll-y refresher-enabled style="height: calc(100vh - {{topBarH}}px);" bindrefresherrefresh="getData" refresher-triggered="{{freshIng}}">
  <view class="item">
    <view class="record-modeul">
      <text class="title"> 工作标题 </text>
      <textarea disabled class="textarea" value="{{detail.workcnt}}" placeholder="工作标题" placeholder-class="placeholder"></textarea>
    </view>
    <view class="record-modeul">
      <text class="title"> 工作内容 </text>
      <textarea disabled class="textarea" value="{{detail.workcnt}}" placeholder="工作内容" placeholder-class="placeholder"></textarea>
    </view>
    <view class="record-modeul">
      <text class="title"> 时间 </text>
      <view class="record-time">
        <text class="time">{{detail.starttime||'-'}}</text>
      </view>
    </view>
    <view class="record-modeul">
      <view class="enclosure-top">
        <text class="title"> 工作附件 </text>
      </view>
      <view catchtap="downFile" data-item="{{item}}" wx:for="{{enclosurelist}}" class="content h-div v-center" style="border-bottom:{{index==files.length-1?'none':''}}">
        <text class="file"></text>
        <view class="flex file-name">{{item.realfilename}}</view>
        <image class="cloud" src="/images/task/icon-cloud.png" />
      </view>
    </view>
  </view>
  <view class="space"></view>
</scroll-view>