import{_ as R,d as T,m as V,aO as j,aP as I,w as u,ag as K,ba as O,x as U,r as f,o as i,c as v,b as _,l as h,C as k,F as q,D as A,u as F,G as w,I as G,bw as H}from"./index.56c69f5a.js";import{h as N}from"./index.14d24343.js";import{Q as n}from"./query.e24ed98c.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.80b1320d.js";import"./index.273c7a21.js";import"./purchase.3fc39c41.js";import"./types.d7dcb18b.js";import"./porder.30193b2b.js";import"./tootip.fe6ea468.js";import"./status.2df4810d.js";import"./basic-descriptions.5f176484.js";import"./index.2e257471.js";import"./reconciliation.efbc534b.js";import"./index.e077b65d.js";import"./orderRecord.9d7001b8.js";import"./calc.850c7422.js";import"./index.0bded34d.js";import"./sale.80553d1c.js";import"./sale.07797b41.js";import"./index.7bd89ecb.js";import"./payment.ffcdd235.js";import"./purchPay.19ad0dfc.js";import"./index.d4057835.js";import"./ticket-return.520862a7.js";import"./ticketReturn.1ed463e4.js";import"./index.0d015942.js";import"./tradelog.16587b6a.js";import"./tragelog.c78945ab.js";import"./index.91d45301.js";import"./trade.0e7b0224.js";import"./index.c1c537b1.js";import"./refund.1a98e5ea.js";import"./index.94c3ba5a.js";import"./inv-return.1556f157.js";import"./inv-return.f9bcf7e8.js";import"./index.126bf4a4.js";import"./inv-open.c2d98b4a.js";import"./inv-open.d02d7e88.js";const L={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=T({__name:"detail",setup(W){const{query:y}=V(),D=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),g=K(()=>y.id),C=(e,t)=>{var s;const o=n[e].responseKey;return t[o]&&((s=n[e])==null?void 0:s.detail)&&t[o].length!==0};function x(e){return Object.keys(n).filter(o=>C(o,e)).map(o=>{const{api:s,component:a,requesetProp:m,responseKey:c,detail:M}=n[o],P=e[c];return{component:a,prop:m,title:M,api:s,value:P,key:o}})}async function E(){const{code:e,message:t,data:o}=await N({id:g.value});D({code:e,message:t,handler:()=>p.value=x(o)})}async function b(){await E(),p.value.forEach((e,t)=>{l.value.push(e.key),r.value.set(e.title,{top:"",index:t})})}function B(e,t){const o=r.value.get(t);r.value.set(t,{...o,top:e})}return O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{map:r.value},null,8,["map"])]),_("div",z,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:k(()=>[(i(!0),v(q,null,A(F(p),a=>(i(),w(o,{title:a.title,name:a.key,key:a.key},{default:k(()=>[(i(),w(G(a.component),H(a,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Oe=R(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Oe as default};
