<template>
	<view>
		<view class="listItemTitle">
			<view class="item" style="border-bottom: 1px solid #d8dbdf;">
				<view>{{item.purchaseNo}}|{{item.purchaseSerial}}</view>
				<view>{{item.arrivalQuantity}}pcs
					<text style="margin-left: 40rpx"><u-icon name="minus" color="#000" size="32" @click="deleGonds(idx)"></u-icon></text>
				</view>
			</view>
			<view class="item">
				<view>品号：{{item.materialNo}}</view>
				
			</view>
			<view class="item">品名：{{ item.mb002 }}</view>
			<view class="item">图号：{{ item.mb029 }}</view>
			<view class="item">批号：{{ item.batchNo }}</view>
		</view>
	</view>
</template>

<script>
import StickyNavBar from '@/components/StickyNavBar/index.vue';
import ContentLoadingMore from '@/components/ContentLoadingMore/index.vue';
import BottomBtn from '@/components/BottomBtn/index.vue';
export default {
	components: {
		StickyNavBar,
		ContentLoadingMore,
		BottomBtn
	},
	props: {
		item: {
			type: Object,
			default: function () {
				return {};
			}
		},
		idx: {
			type: Number,
			default: 0
		}
	},
	computed:{
	},
	data() {
		return {
			show: true
		};
	},
	created() {
	},
	methods: {
		deleGonds(idx) {
			this.$emit('deleGonds',idx)
		}
	}
};
</script>

<style lang="scss" scoped>
page {
	background: #f8f8f8;
}
.headerTitle {
	padding: 20rpx;
	font-weight: 600;
	.items {
		line-height: 40rpx;
	}
}
.btn {
	padding: 20rpx;
	background: #fff;
	.topSearch {
		margin-bottom: 20rpx;
	}
}
.bottomBtn {
	position: sticky;
	padding: 20rpx;
	display: flex;
	justify-content: space-between;
	background: #fff;
	bottom: 0rpx;
	margin-top: 20rpx;
	.u-btn {
		width: 300rpx;
	}
}
.blue {
	color: #3f9dcc;
}
.total {
	background: #fff;
	color: #000;
	padding: 0rpx 40rpx;
	display: flex;
	justify-content: space-between;
	font-size: 32rpx;
	.line {
		margin: 0px 10rpx;
	}
}
.listItemTitle {
	width: 100%;
	padding: 20rpx;
	border-bottom: 2px solid #f8f8f8;
	.u-btn {
		width: 150rpx;
		margin: 0px;
		margin-top: 10rpx;
	}
	.item {
		width: 100%;
		line-height: 50rpx;
		color: #333;
		display: flex;
		justify-content: space-between;
		font-size: 28rpx;
		font-weight: 500;
		word-break: break-all;
		font-weight: 600;
	}
}
.listBottom {
	.bottomTitle {
		height: 80rpx;
		position: relative;
		.desc {
			color: #bbb;
			font-size: 24rpx;
			line-height: 80rpx;
			padding-left: 20rpx;
		}
		.topIcons {
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			color: #aaa;
		}
	}
	.bottomBox {
		padding: 20rpx;
		.bottomItem {
			background: #f8f8f8;
			padding: 20rpx;
			margin-bottom: 20rpx;
			.items {
				color: #333;
				font-size: 24rpx;
				line-height: 40rpx;
				/deep/ .uni-easyinput{
					width: 200rpx;
				}
			}
			.inputItem{
				display: inline-flex;
				// line-height: 76rpx;
			}
		}
	}
}
/deep/ .u-sticky {
	top: 0 !important;
	background: #fff;
}
</style>
