<!--发料任务卡片-->
<template>
	<view class="device-detail issuelist">
		<!-- <view class="card_task issuecard nopad uni-flex space-between"> -->
		<view class="card_task nopad space-between">
			<com-job-top-info :jobContent="dataContent"></com-job-top-info>
			<image v-if="dataContent.useOnTheWayLocation" class="tag_icon" src="@/static/icons_ui/icon_kw_use.svg">
			</image>
		</view>
		<view class="margin_xs_bottom" style="clear: both;">
			<view class="label_order">
				<image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image>
				<text>{{dataContent.kittingRequestNumber}}</text>
				<!-- <text>申请单：{{dataContent.materialRequestNumber}}</text> -->
			</view>
			<view class="label_order" v-if="dataContent.enumIssueSendType==1">
				<text>类型 : 按数量发料</text>
				<!-- <text>申请单：{{dataContent.materialRequestNumber}}</text> -->
			</view>
			<view class="label_order" v-else>
				<text>类型 : 按箱发料</text>
				<!-- <text>申请单：{{dataContent.materialRequestNumber}}</text> -->
			</view>
			<view class="label_order">
				<text>操作人 : {{dataContent.worker}}</text>
				<!-- <text>申请单：{{dataContent.materialRequestNumber}}</text> -->
			</view>
			<!-- <view class="label_order">
				<image class="icon_normal" src="@/static/icons_ui/icon_prod_line.svg"></image>
				<text>{{dataContent.prodLine}}</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>
</template>

<script>
	import {
		getJobStatuStyle,
		getJobStatuDesc,
		getInventoryTypeStyle,
		getInventoryStatusDesc,
		dateFormat
	} from '@/common/basic.js';
	import comItemTop from '@/mycomponents/comItem/comItemTop.vue'
	import comItemBottom from '@/mycomponents/comItem/comItemBottom.vue'
	import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue'

	export default {
		name: "comissue",
		components: {
			comItemTop,
			comItemBottom,
			comJobTopInfo
		},
		data() {
			return {};
		},
		computed: {},
		// 此处定义传入的数据
		props: {
			dataContent: {
				type: Object,
				value: null
			}
		},
		filters: {
			jobStatusStyle: function(val) {
				return getJobStatuStyle(val);
			},
			jobStatusColor: function(val) {
				return getJobStatuDesc(val);
			},
			statusStyle: function(val) {
				return getInventoryTypeStyle(val);
			},
			statusColor: function(val) {
				return getInventoryStatusDesc(val);
			},
			formatDate: function(val) {
				return dateFormat(val)
			}
		},
	}
</script>

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