You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.5 KiB

2 years ago
<!-- 收货任务详情 -->
<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" v-if="isShowAllCountHint">
12 months ago
<view class="text_lightblue">{{allCountHint}}</view>
2 years ago
<view class="text_black text_bold">{{ allCount}}</view>
</view>
1 year ago
<view class="cell_info" v-if="isShowScanHint">
2 years ago
<view class="text_lightblue">{{scanHint}}</view>
<view class="text_black text_bold">{{ scanCount}}</view>
</view>
12 months ago
<view class="cell_info" v-if="isShowOther">
<view class="text_lightblue">{{showOther}}</view>
10 months ago
<view class="text_black text_bold">{{calcCount(allCount,scanCount)}}</view>
12 months ago
</view>
<view class="cell_info" v-if="isShowShouRong">
<view class="text_lightblue">收容数</view>
<view class="text_black text_bold">{{shouRongCount}}</view>
</view>
2 years ago
</view>
</view>
</template>
<script>
import {
getJobStatuStyle,
getJobStatuDesc,
} from '@/common/basic.js';
10 months ago
import {
calc
} from '@/common/calc.js';
2 years ago
import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue'
export default {
name: 'comJobScanDetail',
components: {
comJobTopInfo
},
props: {
jobContent: {
type: Object,
default: {}
},
12 months ago
2 years ago
allCount: {
type: Number,
default: 0
},
scanCount: {
type: Number,
default: 0
},
12 months ago
shouRongCount: {
type: Number,
default: null
},
allCountHint: {
type: String,
default: "总数量"
},
2 years ago
scanHint: {
type: String,
default: "已扫描"
},
1 year ago
isShowScanHint:{
type: Boolean,
default: true
12 months ago
},
isShowAllCountHint:{
type: Boolean,
default: true
},
12 months ago
isShowOther:{
type: Boolean,
default: false
},
showOther:{
type: String,
default: "未发数量"
},
12 months ago
isShowShouRong:{
type: Boolean,
default: false
1 year ago
}
2 years ago
},
data() {
return {
};
},
filters: {
2 years ago
statusStyle: function(val) {
return getJobStatuStyle(val);
},
statusColor: function(val) {
return getJobStatuDesc(val);
10 months ago
}
},
mounted() {
},
10 months ago
methods: {
calcCount(a,b){
return calc.sub(a,b)
}
}
2 years ago
}
</script>
<style scoped lang="scss">
</style>