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.
14 lines
281 B
14 lines
281 B
4 years ago
|
import store from '@/store'
|
||
|
|
||
|
export function formatterCategory(code) {
|
||
|
let name
|
||
|
try {
|
||
|
name = store.getters.category.filter((category) => {
|
||
|
return category.code === code
|
||
|
})[0].name
|
||
|
} catch (e) {
|
||
|
console.log('检验类别转换失败!')
|
||
|
}
|
||
|
return name
|
||
|
}
|