<template>
	<view class="page">
		<u-navbar title="运维工单" :border-bottom="false" :background="bgc" title-color='#000' title-size='36'
			height='38'></u-navbar>
		<view class="box">
			<u-picker mode="time" v-model="show" :params="params" @confirm="confirm"></u-picker>
			<view class="date">
				<text @click="btnks(1)">{{selector}}</text> -- <text @click="btnks(2)">{{selectors}}</text>
			</view>

			<view class="wu">
				<view class="tit">
					无流水机柜
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">10天无流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">30天无流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
			</view>

			<view class="wu">
				<view class="tit">
					流水筛选
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">1-50元流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">50-100元流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">100-200元流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">200-500元流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
				<view class="jigui" @click="brnpage">
					<view class="">500元以上流水机柜</view>
					<view class="">（0）台 <u-icon name="arrow-right" style="margin-left: 10rpx;"></u-icon> </view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				selector: '2024-4-9',
				selectors: '2024-4-9',
				show: false,
				params: {
					year: true,
					month: true,
					day: true,
					hour: false,
					minute: false,
					second: false
				},
			}
		},
		methods: {
			btnks(num) {
				this.show = true
				if (num == 1) {
					this.num = 1
				} else {
					this.num = 2
				}
			},
			confirm(e) {
				if (this.num == 1) {
					this.selector = e.year + '-' + e.month + '-' + e.day
				} else {
					this.selectors = e.year + '-' + e.month + '-' + e.day
				}
			},
			brnpage(){
				uni.navigateTo({
					url:'/page_user/yunying/gongdan/lsmx'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: linear-gradient(180deg, #25CE88 0%, rgba(255, 255, 255, 0) 100%);
	}

	.page {
		width: 750rpx;
		position: fixed;
		top: 0;
		left: 0;

		.box {
			width: 750rpx;
			height: 1440rpx;
			background: #F4F5F7;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
            .wu{
				width: 680rpx;
				padding-top: 50rpx;
				margin: auto;
				.tit{
					font-weight: 600;
					font-size: 36rpx;
					color: #3D3D3D;
				}
				.jigui{
					width: 680rpx;
					height: 80rpx;
					line-height: 80rpx;
					background: #FFFFFF;
					border-radius: 24rpx 24rpx 24rpx 24rpx;
					display: flex;
					justify-content: space-between;
					padding: 0 32rpx;
					box-sizing: border-box;
					margin-top: 26rpx;
				}
			}
			.date {
				padding-left: 80rpx;
				padding-right: 80rpx;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				margin-top: 26rpx;
				width: 750rpx;
				height: 116rpx;
				background: #FFFFFF;
				padding-top: 38rpx;
				margin-bottom: 36rpx;

				text {
					padding: 6rpx 18rpx;
					box-sizing: border-box;
					background: #eee;
					height: 46rpx;
					border-radius: 10rpx 10rpx 10rpx 10rpx;
					font-size: 24rpx;
					color: #808080;
				}
			}
		}
	}
</style>