<template>
	<view>
		<view class="tip">流量计名称</view>
		
		<view class="select_box" @click="select()">
			<view class="title">{{title}}</view>
			<view class="icon">
				<uni-icons type="bottom" size="18" color="#fff"></uni-icons>
			</view>
		</view>
		
		<view class="content">
			<view class="line">
				<view class="label_box">
					<view class="label">企业名称</view>
					<view class="text">宁夏煤业有限责任公司任家庄煤矿</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">流量计分类名称</view>
					<view class="text">管段式</view>
				</view>
				<view class="label_box">
					<view class="label">流量计编码</view>
					<view class="text">1cad6c4f</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">限时流量</view>
					<view class="text">0</view>
				</view>
				<view class="label_box">
					<view class="label">净累计量</view>
					<view class="text">6711.41</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">正累计量</view>
					<view class="text">7097.43</view>
				</view>
				<view class="label_box">
					<view class="label">负累计量</view>
					<view class="text">385.96</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">基站编码</view>
					<view class="text">10.71.1.113</view>
				</view>
				<view class="label_box">
					<view class="label">安装位置</view>
					<view class="text">地面区域</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">水资源用途</view>
					<view class="text">生产用水</view>
				</view>
				<view class="label_box">
					<view class="label">管道材质</view>
					<view class="text">碳50</view>
				</view>
			</view>
			<view class="line">
				<view class="label_box">
					<view class="label">管径</view>
					<view class="text">DN50</view>
				</view>
				<view class="label_box">
					<view class="label">流量计型号</view>
					<view class="text">wet/311</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:"综采工作面（反渗透输出清水）",
				itemList: ['井下涌水管道1#', '洗煤厂办公楼用水', '井下生产2#主管道'],
			};
		},
		methods:{
			select(){
				uni.showActionSheet({
					itemList: this.itemList,
					success: (res) =>{
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
						this.title = this.itemList[res.tapIndex]
					},
					fail: function (res) {
						console.log(res.errMsg);
					}
				});
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #009fe8;
		box-sizing: border-box;
		padding: 25rpx;
	}
	.tip{
		line-height: 90rpx;
		font-size: 26rpx;
		color: #fff;
	}
	.select_box{
		display: flex;
		justify-content: space-between;
		align-items: center;
		.title{
			font-size: 36rpx;
			color: #fff;
			font-weight: 700;
		}
		.icon{
			
		}
	}
	
	.content{
		margin: 40rpx 0;
		background-color: #fff;
		border-radius: 10rpx;
		.line{
			box-sizing: border-box;
			padding: 40rpx;
			
			border-bottom: 2rpx solid #DCDCDC;
			
			display: flex;
			justify-content: space-between;
			.label_box{
				width: 300rpx;
				.label{
					font-size: 26rpx;
					color: #999999;
					margin-bottom: 20rpx;
				}
				.text{
					font-size: 28rpx;
					font-weight: 700;
					
					white-space: nowrap;
				}
			}
		}
		.line:last-child{
			border-bottom: none;
		}
	}
</style>
