import{d as x,o as e,j as s,k as c,c as C,w as b,F as n,f as r,t as m,b as d,e as o,a as h,r as I,x as g}from"./index.29cf2edd.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              *//* empty css              */import{f as u}from"./filters.69c883c5.js";import{_ as q}from"./Status.120e28ab.js";const v={style:{"margin-bottom":"20px"}},w=c("h1",{class:"font-bold"},"Claim Histories",-1),D={key:5},V=["onClick"],E=x({__name:"ClaimHistory",props:{data:{type:Object,required:!0}},setup(y){const k=[{title:"ID",dataIndex:"id",key:"id"},{title:"Date of Claimed",dataIndex:"reqtime",key:"reqtime"},{title:"Purpose",dataIndex:"type",key:"type"},{title:"Amount",dataIndex:"amount",key:"amount"},{title:"Claim To",key:"claimto"},{title:"Status",dataIndex:"status",key:"status"},{title:"Actions",dataIndex:"action",key:"action"}],_=a=>{let l=I.resolve("/covid/claim/detail/"+a.id);window.open(l.href,"_blank")},p=a=>a==="medicine"?"Medicine":a==="checkup"?"Checkup":a;return(a,l)=>{const f=g;return e(),s("div",v,[w,c("div",null,[C(f,{columns:k,"data-source":y.data,pagination:!1},{bodyCell:b(({column:i,text:B,record:t,index:N})=>[i.key==="reqtime"?(e(),s(n,{key:0},[r(m(d(u).formatDate(t.reqtime)),1)],64)):o("",!0),i.key==="type"?(e(),s(n,{key:1},[r(m(p(t.type)),1)],64)):o("",!0),i.key==="claimto"?(e(),s(n,{key:2},[r(m(t.certificatemember?`${t.certificatemember.firstname} ${t.certificatemember.lastname}`:t.certificatemember_id),1)],64)):o("",!0),i.key==="amount"?(e(),s(n,{key:3},[r(m(d(u).formatMoney(t.amount)),1)],64)):o("",!0),i.key==="status"?(e(),h(q,{key:4,status:t.status},null,8,["status"])):o("",!0),i.key==="action"?(e(),s("span",D,[c("a",{onClick:$=>_(t)},"View",8,V)])):o("",!0)]),_:1},8,["data-source"])])])}}});export{E as _};
