<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.planNumber}} </text>
						</view>
						<view class="item">
							<text class="item_title">阶段 : </text>
							<text class="text_wrap">{{getCountStageName(dataContent.stage)}} </text>
						</view>

						<view class="item">
							<text class="item_title">库位 : </text>
							<text class="text_wrap">{{dataContent.locationCode}} </text>
						</view>
						<view class="item">
							<text class="item_title">盘点策略 : </text>
							<text class="text_wrap">{{isOpenCount(dataContent.isOpenCount)}}</text>
						</view>

					</view>
				</view>
			</job-common-info>
		</uni-popup>
	</view>
</template>

<script>
	import {
		getCountStageName
	} from '@/common/directory.js';
	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()
			},
			getCountStageName(value) {
				return getCountStageName(value)
			},
			isOpenCount(value) {
				return value == "TRUE" ? "明盘" : "盲盘"
			}
		}
	}
</script>

<style>


</style>
