import{a as C}from"./status.7319085b.js";import{preview_columns as V,cgd_status as x,cgd_type as D,cgd_source as S,product_type as T,send_type as w,pay_status as E,inv_status as N}from"./columns.f37f43b7.js";import{q as h,B as v,r as i,o as t,K as u,H as d,t as q,n as y,J as z,v as n,I as F,S as _,O as o}from"./index.10c3f8e5.js";const H={key:8},O=h({__name:"preview-dialog",setup(I,{expose:b}){const r=v(!1),s=v({});return b({onDisplay:c=>{r.value=!0,s.value=c}}),(c,p)=>{const f=i("el-tag"),g=i("el-descriptions-item"),k=i("el-descriptions"),m=i("el-dialog");return t(),u(m,{modelValue:r.value,"onUpdate:modelValue":p[0]||(p[0]=l=>r.value=l),title:"\u91C7\u8D2D\u5355\u8BE6\u60C5",center:""},{default:d(()=>[q(k,{column:2,border:"",size:"small"},{default:d(()=>[(t(!0),y(F,null,z(n(V),(l,B)=>(t(),u(g,{label:l.label,key:B},{default:d(()=>[l.field==="status"?(t(),u(f,{key:0},{default:d(()=>{var e;return[_(o((e=n(x).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="cgdType"?(t(),u(f,{key:1},{default:d(()=>{var e;return[_(o((e=n(D).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="cgdSource"?(t(),u(f,{key:2},{default:d(()=>{var e;return[_(o((e=n(S).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="goodType"?(t(),u(f,{key:3},{default:d(()=>{var e;return[_(o((e=n(T).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="sendType"?(t(),u(f,{key:4},{default:d(()=>{var e;return[_(o((e=n(w).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="pay_status"?(t(),u(f,{key:5},{default:d(()=>{var e;return[_(o((e=n(E).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="sendStatus"?(t(),u(f,{key:6},{default:d(()=>{var e;return[_(o((e=n(C).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):l.field==="inv_status"?(t(),u(f,{key:7},{default:d(()=>{var e;return[_(o((e=n(N).find(a=>s.value[l.field]===a.value))==null?void 0:e.label),1)]}),_:2},1024)):(t(),y("span",H,o(s.value[l.field]),1))]),_:2},1032,["label"]))),128))]),_:1})]),_:1},8,["modelValue"])}}});export{O as default};
