<template>
	<view>
		<view v-if="type === 1">
			<view class="item">
				<view class="label">计租方式</view>
				<view class="value">{{$field.findTypeName('rentWay', detail.rentWay)}}</view>
			</view>
			<view class="item">
				<view class="label">开始时间</view>
				<view class="value">{{detail.startTime}}</view>
			</view>
			<view class="item">
				<view class="label">结束时间</view>
				<view class="value">{{detail.endTime}}</view>
			</view>
			<view class="item">
				<view class="label">合同单价(元/月)</view>
				<view class="value">{{detail.unitPrice}}</view>
			</view>
			<view class="item">
				<view class="label">付款时间</view>
				<view class="value">{{$field.findTypeName('payTime', detail.payTime)}}</view>
			</view>
			<view class="item">
				<view class="label">计费类型</view>
				<view class="value">{{$field.findTypeName('chargingType', detail.chargingType)}}</view>
			</view>
			<view class="item">
				<view class="label">非自然月计费方式</view>
				<view class="value">
					{{$field.findTypeName('unnaturalMonthChargingWay', detail.unnaturalMonthChargingWay)}}
				</view>
			</view>
			<view class="item">
				<view class="label">年天数</view>
				<view class="value">{{detail.yearDays}}天</view>
			</view>
			<view class="item">
				<view class="label">付款周期(几月一付)</view>
				<view class="value">{{detail.payCycle}}月</view>
			</view>
			<view class="item">
				<view class="label">租期划分方式</view>
				<view class="value">{{$field.findTypeName('unnaturalMonthChargingWay', detail.leaseTermWay)}}</view>
			</view>
		</view>
		<view v-if="type === 2">
			<view class="item">
				<view class="label">保证金类型</view>
				<view class="value">{{$field.findTypeName('earnestMoneyType', detail.earnestMoneyType)}}</view>
			</view>
			<view class="item">
				<view class="label">保证金金额</view>
				<view class="value">{{detail.earnestMoney}}</view>
			</view>
			<view class="item">
				<view class="label">币种</view>
				<view class="value">{{$field.findTypeName('currencyType', detail.currencyType)}}</view>
			</view>
		</view>
		<view v-if="type === 3">
			<view class="item">
				<view class="label">递增时间点</view>
				<view class="value">{{detail.incrementalTime}}</view>
			</view>
			<view class="item">
				<view class="label">单价递增</view>
				<view class="value">{{detail.incrementalUnitPrice}}</view>
			</view>
			<view class="item">
				<view class="label">保证金递增</view>
				<view class="value">{{detail.incrementalEarnestMoney}}</view>
			</view>
		</view>
		<view v-if="type === 4">
			<view class="item">
				<view class="label">优惠类型</view>
				<view class="value">{{$field.findTypeName('preferentialType', detail.preferentialType)}}</view>
			</view>
			<view class="item">
				<view class="label">开始时间</view>
				<view class="value">{{detail.preferentialStartTime}}</view>
			</view>
			<view class="item">
				<view class="label">结束时间</view>
				<view class="value">{{detail.preferentialEndTime}}</view>
			</view>
			<view class="item">
				<view class="label">免租期划分方式</view>
				<view class="value">
					{{$field.findTypeName('preferentialRentFreeWay', detail.preferentialRentFreeWay)}}
				</view>
			</view>
			<view class="item">
				<view class="label">备注</view>
				<view class="value">{{detail.preferentialRemark}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['type', 'detail'],
		data() {
			return {}
		},
		created() {},
		methods: {},
	}
</script>

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