<template>
	<view class="page-box-bg-fff m-t20 r-30 p-30">
		<StatisticsTitle :genre="genre" :leftText="leftText" :rightText="'全部'" @onHandle="onHandle"></StatisticsTitle>
		<view class="row-justify-c m-b25">
			<view class="subsection">
				<uv-subsection :list="list" :bgColor="'#DBE8DB'" :activeColor="'#0FB160'" :inactiveColor="'#121212'"
					:fontSize="14" custom-style="height: 70rpx;border-radius: 30rpx;"
					custom-item-style="border-radius: 30rpx;" :current="current" @change="onChange"></uv-subsection>
			</view>
		</view>
		<view class="">
			<view class="sys-from-background-color m-b16 r-20 p-20 finance_item sys-weight-400"
				v-for="(item,index) in 3" :key="index">
				<view class="" v-if="type === 1">
					<view class="row-justify-sb center">
						<view class="row-c">
							<text class="size-26 text-color-666">客户：</text>
							<text class="size-26 text-color-12 sys-weight-500">张三</text>
						</view>
						<view class="row-c">
							<text class="size-24 text-color-666">客户经理：</text>
							<text class="size-26 text-color-12sys-weight-500">李四</text>
						</view>
					</view>
					<view class="page-box-bg-fff row-justify-sb center size-24 p-tb16 p-lr40 r-20 m-t20">
						<text class="text-color-E21 sys-weight-600">200万</text>
						<text>归档确认</text>
						<view class="">
							<text class="text-color-12">2024/12/23</text>
							<text class="text-color-666">用款</text>
						</view>
					</view>
				</view>
				<view class="row-justify-sb center size-24 p-tb16 p-lr20 r-20" v-else>
					<text>归档确认</text>
					<text class="text-color-E21 sys-weight-600">200万</text>
					<view class="">
						<text class="text-color-12">2024/12/23</text>
						<text class="text-color-666">用款</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import PeakChart from "@/common/chart/peak_chart.vue";
	import StatisticsTitle from "./statistics_title.vue";

	export default {
		name: 'stat_situation',
		components: {
			PeakChart,
			StatisticsTitle
		},
		props: {
			type: {
				type: Number,
				default: 1
			},
			genre: {
				type: Number,
				default: 3
			},
			leftText: {
				type: String,
				default: '情况说明'
			},
		},
		data() {
			return {
				list: ['到访情况', '预计出款']
			};
		}
	}
</script>

<style lang="scss" scoped>
	.subsection {
		width: 350rpx;
	}

	.finance_item:last-child {
		margin-bottom: 0;
	}
</style>