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
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>{{countStageDesc(datacontent.countStage)}}</text> |
|
|
<text>{{checkTypeDesc(datacontent.type)}}</text> |
|
|
<text>{{countMethodDesc(datacontent.countMethod) }}</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'],
|
|
methods:{
|
|
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>
|
|
|