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.
 
 
 
 
 
 

65 lines
1.5 KiB

<!--盘点任务卡片-->
<template>
<view class="device-detail">
<view class="card_task nopad">
<com-job-top-info :jobContent="datacontent"></com-job-top-info>
</view>
<view class="cen_card margin_xs_bottom">
<view class="count_list">
<text>{{datacontent.countStage|countStageDesc}}</text> |
<text>{{datacontent.type | checkTypeDesc}}</text> |
<text>{{datacontent.countMethod |countMethodDesc}}</text>
</view>
</view>
</view>
</template>
<script>
import {
getJobStatuStyle,
getJobStatuDesc,
getCountStageDesc,
getCheckTypeDesc,
getCountMethodDesc,
getInventoryStatusDesc,
getInventoryTypeStyle,
} from '@/common/basic.js';
import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue'
export default {
name: "comcount",
data() {
return {};
},
components: {
comJobTopInfo
},
// 此处定义传入的数据
props: ['datacontent'],
filters: {
statusStyle: function(val) {
return getJobStatuStyle(val);
},
statusColor: function(val) {
return getJobStatuDesc(val);
},
countStageDesc: function(val) {
return getCountStageDesc(val);
},
checkTypeDesc: function(val) {
return getCheckTypeDesc(val);
},
countMethodDesc: function(val) {
return getCountMethodDesc(val);
},
inventoryStatuStyle: function(val) {
return getInventoryTypeStyle(val);
},
inventoryStatusColor: function(val) {
return getInventoryStatusDesc(val);
},
},
}
</script>
<style scoped lang="scss">
</style>