<template>
    <view class="common-page" style="padding:0">
        <PageScroll requestStr="/app/offlineorder/getUserStat" @updateList="updateList" ref="scrollRef">
            <u-sticky :customNavHeight="0">
                <view class="search-area flex-a">
                    <view class="text-item flex-1">核单时间</view>
                    <view class="text-item flex-1">核单数量</view>
                    <view class="text-item flex-1">核单本数</view>
                    <view class="text-item flex-1">预估金额</view>
                </view>
            </u-sticky>
            <view class="list-con">
                <view v-for="(item, index) in dataList" :key="index" class="flex-a">
                    <view class="text-item flex-1">{{ item.statDate }}</view>
                    <view class="text-item flex-1">{{ item.totalNum }}</view>
                    <view class="text-item flex-1">{{ item.bookNum }}</view>
                    <view class="text-item flex-1">{{ item.expectAmount }}</view>
                </view>
            </view>
        </PageScroll>
    </view>
</template>

<script setup>
import PageScroll from '@/components/pageScroll/index.vue'
import {
    ref
} from 'vue';
const scrollRef = ref(null)
const refreshList = () => {
    scrollRef.value?.resetUpScroll()
}

let dataList = ref([])
const updateList = (data) => {
    dataList.value = data
}
</script>
<style lang="scss">
.search-area {
    padding: 24rpx;
    background-color: #ffffff;
    z-index: 9;
}
</style>