<!-- 收货任务详情 -->
<template>
	<view class="device-detail" style="padding-bottom: 0 !important;">
		<com-job-top-info :jobContent="jobContent"></com-job-top-info>
		<!-- <view class="ljh_box nopad">
			<text class="state-style fl margin_xs_top" :class="jobContent.jobStatus | statusStyle">
				{{ jobContent.jobStatus | statusColor }}
			</text>
			<text class="tit_ljh">{{ jobContent.number }}</text>
		</view> -->
		<view class="cell_box uni-flex uni-row margin_top">
			<view class="cell_info">
				<view class="text_lightblue">总数量</view>
				<view class="text_black text_bold">{{ allCount}}</view>
			</view>
			<view class="cell_info">
				<view class="text_lightblue">{{scanHint}}</view>
				<view class="text_black text_bold">{{ scanCount}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getJobStatuStyle,
		getJobStatuDesc,
	} from '@/common/basic.js';
	import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue'
	
	export default {
		name: 'comJobScanDetail',
		components: {
			comJobTopInfo
		},
		props: {
			jobContent: {
				type: Object,
				default: {}
			},
			allCount: {
				type: Number,
				default: 0
			},
			scanCount: {
				type: Number,
				default: 0
			},
			scanHint: {
				type: String,
				default: "已扫描"
			},
		},
		data() {
			return {

			};
		},

		mounted() {

		},
		methods: {
			statusStyle: function(val) {
				return getJobStatuStyle(val);
			},
			statusColor: function(val) {
				return getJobStatuDesc(val);
			},
		}
	}
</script>

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