<template>
	<!-- 位置信息管理 -->
	<div class="pricemoitorrecord">
		<a-card :bordered="false">
			<a-space class="search">
				<div class="silt-title">
					<span style="width: 70px; margin-right: 8px; text-align: right; display: block; line-height: 30px">{{
						'巡查时间'
					}}</span>
					<a-date-picker
						v-model:value="SearchFormDel.patrolTime"
						valueFormat="YYYY-MM-DD HH:mm:ss"
						style="width: 250px"
					/>
				</div>
				<div class="btnBox">
					<a-button type="primary" class="primarySele" @click="Search"> 查询 </a-button>
					<a-button class="snowy-buttom-left primarySele" @click="onReset"> 重置 </a-button>
				</div>
			</a-space>
		</a-card>

		<div class="list" style="margin-top: 10px">
			<a-table :dataSource="tableData" :pagination="pagination" :columns="tableColumns">
				<!-- <template #bodyCell="{ column, record }"> </template>
				<div></div> -->
			</a-table>
		</div>
	</div>
</template>
<script setup>
	import business from '@/api/security/index'
	import { listPagination } from '@/hook/listlistPagination.js'

	import { reactive, ref } from 'vue'
	import { useRouter } from 'vue-router'
	import { defineComponent } from 'vue'
	const formRef = ref(null)
	const router = useRouter()
	const tableColumns = [
		{
			title: '序号',
			dataIndex: 'Index',
			align: 'center',
			width: '5%',
			customRender: ({ text, record, index }) => {
				return `${index + 1}`
			}
		},
		{ title: '巡查库区', align: 'center', dataIndex: 'orgName' },
		{ title: '库区负责人', align: 'center', dataIndex: 'warehouseResponsiblePerson' },
		{ title: '巡查时间', align: 'center', dataIndex: 'patrolTime' },
		{ title: '巡查范围', align: 'center', dataIndex: 'patrolScope' },
		{ title: '巡查人', align: 'center', dataIndex: 'patrolPerson' }
	]

	const { DEl, change, tableData, onSearch, handlePageChange, pagination, Search, onReset, SearchFormDel } =
		listPagination({ patrolTime: '' }, business.XJGLlist, {}, { sortOrder: 'ASCEND' })
</script>
<style lang="less" scoped>
	.search {
		padding-top: 20px;
		padding-left: 50px;
		margin-bottom: 32px;
		.btnBox {
			width: 100%;
			display: inline-block;
			display: flex;
			justify-content: space-around;
			align-items: center;
			.primarySele {
				margin-left: 20px;
				margin-right: 20px;
			}
		}
	}
	.silt-title {
		display: flex;
	}
</style>
