<view class="header">
    <view class="introduce">
        <view>
            <view class="title">
                {{detail.createby}}{{language['的']||'的'}}{{detail.reportname}}
            </view>
            {{detail.position}} {{detail.createdate}}
        </view>
        <!--  <view class="badeg">
            {{type}}
        </view> -->
    </view>
    <view style="height: 20rpx;" />
    <van-tabs active="{{ active }}" color='#3874F6' title-active-color='#3874F6' bind:change="onChange">
        <van-tab title="{{language['汇报内容']||'汇报内容'}}" name="汇报内容" />
        <van-tab title="{{language['评论记录']||'评论记录'}}" name="评论记录" />
    </van-tabs>
</view>
<view hidden="{{activeName != '汇报内容'}}">
    <view class="rows" wx:for="{{detail.items}}" wx:key="rowindex">
        <view style="margin-bottom: 0rpx;">
            {{language[item.title]||item.title}}
        </view>
        <view class="main">
            {{item.content[0].content||'空'}}
        </view>
    </view>
    <view class="rows" wx:if="{{detail.attinfos.length}}">
        {{language['附件']||'附件'}}:
    </view>
    <view style="background-color: #fff; width: 100vw;margin-top: -40rpx;padding-top: 20rpx;">
        <Yl_Files id="Yl_Files" />
    </view>
</view>
<view hidden="{{activeName != '评论记录'}}">
    <discuss id="Discuss" ownertable="sys_workreport" ownerid="{{detail.sys_workreportid}}" />
</view>

<!-- 底部 -->
<block wx:if="{{type=='我发出的'}}">
    <view style="height: 150rpx;" />
    <view class="footer">
        <van-button custom-class='but' bindtap="onDetele">{{language['删除汇报']||'删除汇报'}}</van-button>
    </view>
</block>