<view class="head" />
<Yl_ListBox id='ListBox' pullDown='{{false}}'>
    <view class="container">
        <calendar id="calendar" bindload="handleCalendarLoad" binddatechange="handleCalendarDateChange" bindrangechange="handleCalendarRangeChange" bindviewchange="handleCalendarPanelViewChange" _position="absolute" _top="0">
            <view class="history">
                <view style="margin: 10rpx 0;">
                    <Yl_Headline title='{{querysubhr?"下属签到记录":"签到记录"}}' type='switch' switchLabel='查看下属签到记录' switch='{{querysubhr}}' bind:callBack='onChange' />
                </view>
                <view class="item" wx:for="{{list}}" wx:key="rowindex">
                    <view class="time">{{item.signintime}}</view>
                    <view class="location">
                        <text class="iconfont icon-a-wodemendianxinxidizhi" />{{item.address}}
                    </view>
                    <view wx:if="{{item.enterprisename}}" class="exp">客户：{{item.enterprisename}}</view>
                    <view wx:if="{{item.projectname}}" class="exp">项目：{{item.projectname}}</view>
                    <view class="exp">说明：{{item.remarks|| ' --'}}</view>
                    <view class="user">
                        <view class="portrait">
                            <image wx:if="{{item.headpic}}" src="{{item.headpic}}" mode="aspectFill" />
                            <view wx:else class="text">
                                {{item.name[0]}}
                            </view>
                        </view>
                        <view class="main">
                            <view class="name">{{item.name}}</view>
                            <view class="text">{{item.depname}} {{item.position}}</view>
                        </view>
                    </view>
                    <view class="attachment" wx:if="{{item.attinfos.length}}">
                        <view class="label">
                            <view>附件:{{item.attinfos.length}}个</view>
                            <navigator url="#" class="right" data-item="{{item}}" data-index="{{index}}" bindtap="isShowAtt">
                                <block wx:if="{{item.unfold}}">
                                    展开
                                    <van-icon name="arrow-down" />
                                </block>
                                <block wx:else>
                                    收起
                                    <van-icon name="arrow-up" />
                                </block>
                            </navigator>
                        </view>
                        <Yl_Files padding='0' id="{{'Yl_Files'+item.sys_signinid}}" />
                    </view>
                </view>
                <My_empty wx:if="{{list.length==0}}" />
                <view style="height: 40rpx;" />
            </view>
        </calendar>
    </view>
</Yl_ListBox>

<Yl_FloatingButton useSlot zIndex='99999999999' bindtap="toSignIn">
    <view class="float-but">
        签到
    </view>
</Yl_FloatingButton>