<!-- 收货任务详情 -->
<template>
	<view class="device-detail" style="padding-bottom: 0 !important;">
		<comRequestTopInfo :requestContent="dataContent"></comRequestTopInfo>
		<view class="margin_xs_bottom">
			<!-- <view class="label_order">
				<image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image>
				<text>{{dataContent.injectionIssueRequestNumber}}</text>
				<text>申请单：{{dataContent.deliverRequestNumber}}</text>
			</view> -->
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>ERP料号 ：{{dataContent.details[0].itemCode}}</text>
			</view>
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>料号描述 ：{{dataContent.details[0].itemDesc1}}</text>
			</view>
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>位置码 ：{{dataContent.details[0].positionCode}}</text>
			</view>
			
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>目标库位 ：{{dataContent.details[0].toLocationCode}}</text>
			</view>
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>叫料数量 ：{{dataContent.details[0].issuedQty}}</text>
			</view>
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>单位 ：{{dataContent.details[0].uom}}</text>
			</view>
			<view class="label_order" v-if="dataContent.details.length>0">
				<text>标包数 ：{{dataContent.details[0].stdPackQty}}</text>
			</view>
			<view class="label_order">
				<!-- <image class="icon_normal" src="@/static/icons_ui/icon_customer.svg"></image>
				<text>{{dataContent.worker}}</text> -->
				<text>操作人 ：{{dataContent.worker}}</text>
			</view>
			
			
		</view>
		<view class="uni-flex uni-row receipt_bot">
			<view class="label_order">
				<image class="icon_normal" src="@/static/icons_ui/icon_date.svg">
				</image>
				<text
					class="text_darkblue">{{dataContent.creationTime===null?'无':dataContent.creationTime| formatDate}}</text>
			</view>
		</view>
		<view class="" style="display: flex; justify-content: space-between; margin-bottom: 15rpx;">
			<view class="">
				
			</view>
			<view class="">
				<button type="primary" style="width: 140rpx; font-size: 32rpx; float: right;"
					@click.stop="complete()">执行</button>
			</view>
		
		</view>
		
	</view>
</template>

<script>
	import {
		dateFormat,
		showConfirmMsg
	} from '@/common/basic.js';
	import comRequestTopInfo from '@/mycomponents/comRequest/comRequestTopInfo.vue'
	
	export default {
		components: {
			comRequestTopInfo
		},
		props: {
			dataContent: {
				type: Object,
				default: {}
			}
		},
		filters: {
			formatDate: function(val) {
				return dateFormat(val)
			}
		},
		data() {
			return {

			};
		},

		mounted() {

		},
		methods: {
			complete(){
				showConfirmMsg("是否确认执行?", callback => {
					if (callback) {
						this.$emit("handle",this.dataContent)
					} 
				})
			}
		}
	}
</script>

<style scoped lang="scss">
</style>
