<template>
	<view class="content">
		<view class="section">
			<view class="title">
				<view class="text">
					<view>今日产量</view>
					<view class="right_text">单位： 吨</view>
				</view>
			</view>
			<view class="inner">
				<p-production-report-inner-1 :mine="mine" :org_num="org_num"></p-production-report-inner-1>
			</view>
		</view>


		<!-- 产量趋势 -->
		<p-production-report-inner-2 :mine="mine" :org_num="org_num"></p-production-report-inner-2>


		<view class="section">
			<view class="title">
				工作面详情
			</view>
			<view class="inner">
				<p-production-report-inner-3 :mine="mine" :org_num="org_num"></p-production-report-inner-3>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mine: "",
				org_num: ""
			};
		},
		onLoad(option) {
			this.mine = option.mine
			this.org_num = option.org_num
			
			// this.get_product_data_query_power()
		},
		methods:{
			get_product_data_query_power(){
				this.$p_api.product_data_query_power({
					staff_num: uni.getStorageSync('user').staff_num,
					data_module: "scbb"
				}).then((res)=>{
					if(res.data.content.status){
						console.log("可查看")
					}else{
						uni.showToast({
							icon:"none",
							title:"没有查看权限！"
						})
						
						setTimeout(()=>{
							uni.navigateBack()
						},1000)
					}
				})
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #009FE8;
	}

	.content {
		width: 750rpx;

		box-sizing: border-box;
		padding: 0 25rpx;
	}

	.section {
		margin: 20rpx 0;

		width: 700rpx;
		background-color: #FFFFFF;
		border-radius: 16rpx;

		.title {
			font-size: 36rpx;
			color: #1e1e1e;
			font-weight: 700;

			box-sizing: border-box;
			padding: 30rpx 0;
			margin: 0 20rpx;

			.text {
				display: flex;
				justify-content: space-between;
				align-items: baseline;

				.right_text {
					font-size: 24rpx;
					color: #9a9a9a;
					font-weight: 400;
				}
			}
		}

		.inner {
			// min-height: 200px;

		}
	}
</style>
