import{d as y,i as g,s as k}from"./configs.a31a4c72.js";import{i as D}from"./status.7319085b.js";import{q as b,r as o,o as i,K as n,H as s,n as v,J as x,v as r,I as h,S as u,O as c}from"./index.10c3f8e5.js";const T={key:4},z=b({__name:"index",props:{invDetail:null},setup(t){return(C,w)=>{const d=o("el-tag"),_=o("el-image"),m=o("el-descriptions-item"),f=o("el-descriptions");return i(),n(f,{column:3,border:"",size:"small"},{default:s(()=>[(i(!0),v(h,null,x(r(y),(l,p)=>(i(),n(m,{label:l.label,key:p},{default:s(()=>[l.field==="invType"?(i(),n(d,{key:0},{default:s(()=>{var e;return[u(c((e=r(g).find(a=>a.value===t.invDetail.invType))==null?void 0:e.label),1)]}),_:1})):l.field==="invoiceType"?(i(),n(d,{key:1},{default:s(()=>{var e;return[u(c((e=r(D).find(a=>a.value===t.invDetail.invoiceType))==null?void 0:e.label),1)]}),_:1})):l.field==="status"?(i(),n(d,{key:2},{default:s(()=>{var e;return[u(c((e=r(k).find(a=>a.value===t.invDetail.status))==null?void 0:e.label),1)]}),_:1})):l.field==="inv_img"?(i(),n(_,{key:3,style:{height:"50px"},src:t.invDetail.inv_img,"preview-src-list":[t.invDetail.inv_img]},null,8,["src","preview-src-list"])):(i(),v("span",T,c(t.invDetail[l.field]),1))]),_:2},1032,["label"]))),128))]),_:1})}}});export{z as default};
