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.
66 lines
1.5 KiB
66 lines
1.5 KiB
4 years ago
|
<template>
|
||
|
<RenwuChengYa v-if="visibleShow" />
|
||
|
<RenwuJiDian v-else />
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import Utils from '@/utils/contact'
|
||
|
import RenwuJiDian from '@/views/allot/components/jidian_list'
|
||
|
import RenwuChengYa from '@/views/allot/components/chengya_list'
|
||
|
|
||
|
export default {
|
||
|
name: 'AllotList',
|
||
|
components: { RenwuJiDian, RenwuChengYa },
|
||
|
data() {
|
||
|
return {
|
||
|
visibleShow: true,
|
||
|
departmentId: this.$store.getters.departmentId
|
||
|
}
|
||
|
},
|
||
|
created() {
|
||
|
// 68 管道检验科
|
||
|
// 69 安全阀定检科
|
||
|
// 70 压力容器定检科
|
||
|
// 71 办公室
|
||
|
// 72 起重机械检验科
|
||
|
// 73 电梯检验科
|
||
|
// 74 锅炉制造监检科
|
||
|
// 75 锅炉定检科
|
||
|
// 77 业务受理科
|
||
|
// 78 财务收费科
|
||
|
// 80 质量管理办公室
|
||
|
// 82 所领导
|
||
|
// 83 容器罐车科
|
||
|
// 84 容器制造检验科
|
||
|
// 85 莱芜业务受理科室
|
||
|
// 86 气瓶中心
|
||
|
},
|
||
|
mounted() {
|
||
|
switch (this.departmentId) {
|
||
|
case 68 :
|
||
|
case 69 :
|
||
|
case 70 :
|
||
|
case 74 :
|
||
|
case 75 :
|
||
|
case 83 :
|
||
|
case 84 :
|
||
|
case 86 :
|
||
|
Utils.$emit('AllotListChengYaListRefresh')
|
||
|
this.visibleShow = true
|
||
|
break
|
||
|
case 72 :
|
||
|
case 73 :
|
||
|
Utils.$emit('AllotListJiDianListRefresh')
|
||
|
this.visibleShow = false
|
||
|
break
|
||
|
}
|
||
|
const that = this
|
||
|
this.common.$on('allot-list', function() {
|
||
|
that.visibleShow ? Utils.$emit('AllotListChengYaListRefresh') : Utils.$emit('AllotListJiDianListRefresh')
|
||
|
})
|
||
|
},
|
||
|
methods: {
|
||
|
}
|
||
|
}
|
||
|
</script>
|