import bus from "../utils/bus"; import {sexOptions, sendStatusOptions, claimsStatusOptions, eobStatusOptions, applyStatusOptions,approveStatusOptions} from '@/assets/js/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: ""; }, } };