<!-- 收货任务详情 -->
<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">{{allCountHint}}</view>
				<view class="text_black text_bold">{{ allCount}}</view>
			</view>
			<view class="cell_info" v-if="isShowScanHint">
				<view class="text_lightblue">{{scanHint}}</view>
				<view class="text_black text_bold">{{ scanCount}}</view>
			</view>
			
			<view class="cell_info" v-if="isShowOther">
				<view class="text_lightblue">{{showOther}}</view>
				<view class="text_black text_bold">{{ allCount-scanCount}}</view>
			</view>
			<view class="cell_info" v-if="isShowShouRong">
				<view class="text_lightblue">收容数</view>
				<view class="text_black text_bold">{{shouRongCount}}</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
			},
			shouRongCount: {
				type: Number,
				default: null
			},
			allCountHint: {
				type: String,
				default: "总数量"
			},
			scanHint: {
				type: String,
				default: "已扫描"
			},
			isShowScanHint:{
				type: Boolean,
				default: true
			},
			isShowOther:{
				type: Boolean,
				default: false
			},
			showOther:{
				type: String,
				default: "未发数量"
			},
			isShowShouRong:{
				type: Boolean,
				default: false
			}
		},
		data() {
			return {

			};
		},

		filters: {
			statusStyle: function(val) {
				return getJobStatuStyle(val);
			},
			statusColor: function(val) {
				return getJobStatuDesc(val);
			},
		},
		mounted() {

		},
		methods: {}
	}
</script>

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