<timeRange id='TimeRange' dateTypes='{{dateTypes}}' dateType='{{dateType}}' bind:onChange='changeDate' />
<block>
    <view class="global-card" style='margin-top:0;'>
        <view class="row">
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['服务申请次数']||'服务申请次数'}}</view>
                <view class="value">{{list[0].serviceOrderQty || 0}}</view>
            </view>
            <view class="col" style='background-color: #68C23A'>
                <view class="label">{{language['服务工单次数']||'服务工单次数'}}</view>
                <view class="value">{{list[0].workOrderQty || 0}}</view>
            </view>
            <view class="col" style='background-color: #E6A23C;'>
                <view class="label">{{language['完工工单次数']||'完工工单次数'}}</view>
                <view class="value">{{list[0].okWorkOrderQty || 0}}</view>
            </view>
        </view>
        <view class="row" style='margin-top: 20rpx;'>
            <view class="col" style='background-color: #3874F6;'>
                <view class="label">{{language['最近服务时间']||'最近服务时间'}}</view>
                <view class="value">{{list[0].createdate||'--'}}</view>
            </view>
        </view>
    </view>
    <shrink title="服务工单明细" wx:if="{{list[0].status}}" open='{{showList}}' bind:onChange='shrinkChange'>
        <view style='padding-top: 20rpx;'>
            <view class="global-card serve-item" wx:for='{{list}}' wx:key='sa_workorderid'>
                <view class="title">{{item.workbillno}}</view>
                <view class="status" style="background-color:{{sColors[item.status]||'#3874F6'}}">
                    {{language[item.status]||item.status}}
                </view>
                <view class="line">
                    {{language['服务申请单号']||'服务申请单号'}}：{{item.servicebillno || ' --'}}
                </view>
                <view class="line">
                    {{language['工单类型']||'工单类型'}}：{{language[item.type]||item.type}}
                </view>
                <view class="line">{{language['地址']||'地址'}}：{{item.address||' --'}}</view>
                <view class="line">{{language['创建时间']||'创建时间'}}：{{item.createdate || ' --'}}</view>
                <view class="line">{{language['结束时间']||'结束时间'}}：{{item.finishdate || ' --'}}</view>
                <view class="line">{{language['负责人']||'负责人'}}：{{item.name||' --'}}</view>
            </view>
        </view>
    </shrink>
    <My_empty wx:else />
</block>