<template>
    <div class="market-spot">
        <app-list :columns="columns" :data-list="dataList" v-if="dataList.length" />
        <Empty v-else />
    </div>
</template>

<script lang="ts" setup>
import { Empty } from 'vant'
import { useRequest } from '@/hooks/request'
import { querySpotgoodsPrice } from '@/services/api/market'
import AppList from '@mobile/components/base/list/index.vue'

const { dataList } = useRequest(querySpotgoodsPrice)

const columns: Model.TableColumn[] = [
    { prop: 'wrstandardname', label: '名称' },
    { prop: 'spotgoodsprice', label: '招标价' },
    { prop: 'spotgoodsqty', label: '招标量' },
    { prop: 'tradedate', label: '日期' },
]
</script>