<style lang="scss">
	.container{
		min-height: 100%;
		background:#f6f6f6;
		padding:30rpx 0;

		.card{
			margin-top:0;

			.item{
				display:flex;
				color:#777;
				justify-content: space-between;
				height:80rpx;
				align-items: center;
				border-top:2rpx solid rgba(216, 216, 216, 0.5);
			}
		}
	}
</style>
<template>
	<view class="container">
		<view class="card">
			<view class="title">基本信息</view>

			<view class="item">
				<text>批次号</text> <text>{{detail.inOutBatchNo}}</text>
			</view>
			<view class="item">
				<text>操作类型</text> <text>{{detail.inOutType}}</text>
			</view>
			<view class="item">
				<text>农资名称</text> <text>{{detail.substanceName}}</text>
			</view>
			<view class="item">
				<text>规格</text> <text>{{detail.specDescribe}}</text>
			</view>
			<view class="item">
				<text>操作数量</text> <text>{{detail.number}}{{detail.packgeUnit}}(共{{detail.equivalentAmount}}{{detail.unit}})</text>
			</view>
			<view class="item">
				<text>供销商</text> <text>{{detail.supplier}}</text>
			</view>
		</view>
	</view>
</template>
<script>
export default {
	data(){
		return{
			detail:{}
		}
	},
	onLoad(){
		var eventChannel = this.getOpenerEventChannel();
		eventChannel.on('detail', data=>{
			this.detail=data
		})
	},
}
</script>