<template>
	<view class="OutermostLayer">
		<view class="renwu">
			<view class="tasktime">
				任务需在5月15号之前完成，当前剩余49天
			</view>
			<u-divider text="分割线" :dot="true"></u-divider>
			<view class="tasktop">
				<view class="tasktop1">
					<view class="taskdetals1">
						<u-icon name="man-add-fill" color="#2979ff" size="35"></u-icon>
					</view>
					<view class="taskdetals2">
						发布人：李伟
					</view>
				</view>
				<view class="tasktop1">
					<view class="taskdetals1">
						<u-icon name="calendar-fill" color="#2979ff" size="35"></u-icon>
					</view>
					<view class="taskdetals2">
						办结日期：2023-05-15
					</view>
				</view>
				<view class="tasktop1">
					<view class="taskdetals1">
						<u-icon name="bell-fill" color="#2979ff" size="35"></u-icon>
					</view>
					<view class="taskdetals2">
						紧急程度：一般
					</view>
				</view>
				<view class="tasktop1">
					<view class="taskdetals1">
						<u-icon name="tags-fill" color="#2979ff" size="35"></u-icon>
					</view>
					<view class="taskdetals2">
						任务类型：日常性工作
					</view>
				</view>
			</view>
			<view class="description">
				<view class="taskdetals1">
					<u-icon name="file-text-fill" color="#2979ff" size="35"></u-icon>
				</view>
				<view class="taskdetals2">
					请在5月15号之前，把B栋所有楼层的灯光设备检查完毕，并详细记录每层楼道的灯光寿命情况，把损坏的灯泡上报维修部。				
				</view>
			</view>
			<u-divider text="分割线" :dot="true"></u-divider>
			<u--textarea v-model="opinion" placeholder="请详细描述反馈" count></u--textarea>
			
			<view class="guidang">
				<view class="queding">
					<u-button type="primary" text="归档" @click="guidang"></u-button>
				</view>
				<view class="queding">
					<u-button type="primary" :plain="true" text="转办" @click="zhuanban"></u-button>
				</view>
			</view>
			
			<u-picker :show="show" :itemHeight="80" title='转办人' @cancel='closezb' @confirm="confirm" :columns="columns" keyName="label">
			</u-picker>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				opinion: '',
				show: false,
				columns: [
					[{
						label: '李伟',
						id: 2021
					}, {
						label: '杨刚',
						id: 804
					}]
				],
			}
		},
		onLoad() {},
		//监听页面初次渲染完成。注意如果渲染速度快，会在页面进入动画完成前触发
		onReady() {},
		methods: {
			zhuanban() {
				this.show = true;

			},
			closezb() {
				this.show = false;
			},
			confirm(e) {
				console.log('confirm', e)
				this.show = false;
				uni.navigateBack({
					delta: 1
				});
			},
			guidang() {
				uni.navigateBack({
					delta: 1,
				});
			},

		}
	}
</script>


<style>
	.renwu{
		padding: 20rpx;
	}
	.guidang {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 40rpx;
	}

	.queding {
		width: 40%;
	}

	.tasktime {
		font-size: 20rpx;
		color: #407CF7;
	}

	.tasktop {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
	}

	.tasktop1 {
		width: 50%;
		height: 50rpx;
		display: flex;
		align-items: center;
	}

	.description {
		display: flex;
		align-items: center;
		width: 100%;
		margin-top: 10rpx;
	}

	.taskdetals1 {}

	.taskdetals2 {
		font-size: 25rpx;
		padding-left: 15rpx;
	}

	.description {
		font-size: 25rpx;
	}
</style>
