<template>
	<view class="">
		<uni-popup ref="popup">
			<job-common-info :dataContent="dataContent" @onClose="closePopup">
				<view class="">
					<view class="uni-flex uni-column">
						<view class="item">
							<text class="item_title">生产计划单号 : </text>
							<text class="text_wrap">{{dataContent.productionPlanNumber}} </text>
						</view>
						<view class="item">
							<text class="item_title">车间代码 : </text>
							<text class="text_wrap">{{dataContent.workshopCode}} </text>
						</view>
						<view class="item">
							<text class="item_title">班组 : </text>
							<text class="text_wrap">{{dataContent.team}} </text>
						</view>
						<view class="item">
							<text class="item_title">班次 : </text>
							<text class="text_wrap">{{dataContent.shift}} </text>
						</view>
					</view>
				</view>
				<u-line></u-line>
			</job-common-info>
		</uni-popup>
	</view>
</template>

<script>
	import jobCommonInfo from '@/mycomponents/job/jobCommonInfo.vue'
	export default {
		components: {
			jobCommonInfo,
		},
		data() {
			return {
				dataContent: {
					type: Object,
					default: {}
				}
			}
		},

		mounted() {},
		props: {},

		methods: {
			openPopup(val) {
				this.dataContent = val;
				setTimeout(res => {
					this.$refs.popup.open('bottom')
				}, 500)
			},
			closePopup() {
				this.$refs.popup.close()
			},
		}
	}
</script>

<style>


</style>
