1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import bus from "../utils/bus";
import {sexOptions, SendStatusOptions, ClaimsStatusOptions, EOBStatusOptions,
ApplyStatusOptions,ApproveStatusOptions} from '@/utils/utilsdictOptions.js'
// 全局混入将会影响每个单文件组件,请慎重思考是否要混入
export default {
data() {
return {
bus,
};
},
filters: {
//过滤性别
formatSex(val){
if (!val) {
return;
}
const item = sexOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤寄送状态
formatSendStatus(val){
if (!val) {
return;
}
const item = SendStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤理赔状态
formatClaimsStatus(val){
if (!val) {
return;
}
const item = ClaimsStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤EOB状态
formatEOBStatus(val){
if (!val) {
return;
}
const item = EOBStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤申请状态
formatApplyStatus(val){
if (!val) {
return;
}
const item = ApplyStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
//过滤审批结果
formatApproveStatus(val){
if (!val) {
return;
}
const item = ApproveStatusOptions.find((item) => {
return item.value == val;
});
return item? item.name: "";
},
}
};