<!-- 
    filename: summaryDialog.vue
    author: liubin
    date: 2023-08-04 16:25:49
    description: 
-->

<template>
	<!-- 列表 -->
	<base-table
		:table-props="tableProps"
		height="35vh"
		:page="queryParams.pageNo"
		:limit="queryParams.pageSize"
		:table-data="list"></base-table>
</template>

<script>
export default {
	name: 'SummaryTable',
	components: {},
	props: {
		list: {
			type: Array,
			default: () => [],
		},
	},
	data() {
		return {
			queryParams: {
				pageNo: 1,
				pageSize: 10,
			},
			tableProps: [
				{
					prop: 'lineName',
					label: '产线',
				},
				{
					prop: 'sumUp',
					label: '上片总数',
				},
				{
					prop: 'sumDown',
					label: '下片总数',
				},
				{
					prop: 'sumCheck',
					label: '检测总数',
				},
				{
					prop: 'scrapRatio',
					label: '比例(%)',
				},
			],
		};
	},
	computed: {},
	methods: {},
};
</script>

<style scoped lang="scss"></style>
