<template>
	<view class="page">
		<uni-section title='发料物品条形码' type='line' :strong="true"  class="bg-white"></uni-section>
		<template v-for="(item,index) in list">
			<list-item @delete='onDelete(index)' :key="index">
				<view>{{item.itemno}}</view>
			</list-item>
			<view></view>
		</template>
		<btn-scan @scan="onScan($event,{uniqueItemno:true})" @submit="onSubmit('codeCenter-issue-edit')" :type="barCodeTypeList"></btn-scan>
	</view>
</template>

<script>
	import uniSection from "@/components/uni-ui/uni-section/uni-section.vue"
	import listItem from "@/components/warehousing-item/list-item.vue"
	import btnScan from "@/components/common/btn-scan.vue"
	import {scanProductMixin} from "@/common/utils/mixins.js"
	
	export default {
		mixins:[scanProductMixin],
		components:{
			uniSection,
			listItem,
			btnScan,
		},
	}
	
</script>

<style>
</style>
