<template>
	<view class="list">
		<view class="listItem">
			<view class="lable">
				案件编号：
			</view>
			<view class="main">
				{{defalutVal.caseNum}}
			</view>
		</view>
		<view class="listItem">
			<view class="lable">
				申请人姓名：
			</view>
			<view class="main">
				{{defalutVal.applicantName}}
			</view>
		</view>
		<view class="listItem">
			<view class="lable">
				被申请人姓名：
			</view>
			<view class="main">
				{{defalutVal.respondentName}}
			</view>
		</view>
		<view class="listItem">
			<view class="lable">
				案件状态：
			</view>
			<view class="main">
				{{defalutVal.caseStatusName}}
			</view>
		</view>
		<view class="btn">
			<button class="btnItem" type="primary" size="mini" @tap="uploadEvidence" v-if="defalutVal.caseStatus == 3">上传证据</button>
			<button class="btnItem" type="primary" size="mini" @tap="confirmationEvidence" v-if="defalutVal.caseStatus == 4">确认证据</button>
			<!-- <button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators" v-if="defalutVal.caseStatus == 5">是否指派仲裁员</button> -->
			<button class="btnItem" type="primary" size="mini" @tap="isAssignrbitrators">是否指派仲裁员</button>
			<button class="btnItem" type="primary" size="mini" @tap="chooseMethod">选择仲裁方式</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		props:{
			defalutVal:{
				type:Object,
				default:() => {}
			}
		},
		methods:{
			isAssignrbitrators(){
				uni.navigateTo({
					url:`/pages/handlecase/component/assignrbitrators?id=${this.defalutVal.id}`
				})
			},
			// 上传证据
			uploadEvidence(){
				uni.navigateTo({
					url:`/pages/handlecase/component/uploadEvidence?id=${this.defalutVal.id}`
				})
			},
			// 确认证据
			confirmationEvidence(){
				uni.navigateTo({
					url:`/pages/handlecase/component/confirmationEvidence?id=${this.defalutVal.id}`
				})
			},
			// 选择仲裁方式
			chooseMethod(){
				uni.navigateTo({
					url:'/pages/handlecase/component/chooseMethod'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list {
		padding: 15rpx;
		display: flex;
		flex-direction: column;
		background-color: #ffffff;
		height: 360rpx;
		border-radius: 30rpx;
		margin-top: 20rpx;
		.listItem {
			width: 100%;
			display: flex;
			height: 50rpx;

			.lable {
				width: 30%;
			}

			.main {
				width: 60%;
			}
		}
		.btn{
			margin-top: 20rpx;
			width: 100%;
			display: flex;
			justify-content: space-between;
			.btnItem{
				height: 50rpx;
				background-color: #5395ff;
				border-radius: 10rpx;
				text-align: center;
				line-height: 50rpx;
			}
		}
	}
</style>