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.1d1a5ecb.js";import{h as N}from"./index.40b5d369.js";import{Q as n}from"./query.fb54a120.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.2addbad3.js";import"./index.1f18e4c7.js";import"./purchase.fb916b08.js";import"./types.43f13d6f.js";import"./porder.0bfb4ddc.js";import"./tootip.76f6bcc3.js";import"./status.d6b2a53d.js";import"./basic-descriptions.1879b0f8.js";import"./index.3b07317f.js";import"./reconciliation.297de9b1.js";import"./index.15c50815.js";import"./index.944b2654.js";import"./sale.05335e9f.js";import"./sale.8ce9db00.js";import"./index.4861dff1.js";import"./payment.123188de.js";import"./purchPay.34c0ce9d.js";import"./index.48d04e86.js";import"./ticket-return.99aa8d93.js";import"./ticketReturn.0e254b53.js";import"./index.b5e3683d.js";import"./tradelog.ffb45b06.js";import"./tragelog.546129f7.js";import"./index.907fe4d4.js";import"./trade.f3ad5677.js";import"./index.15bb94b2.js";import"./refund.d7946721.js";import"./index.fd0a7cba.js";import"./inv-return.f277e317.js";import"./inv-return.a5af9fc6.js";import"./index.5fa131c7.js";import"./inv-open.3f8e62f6.js";import"./inv-open.21fa1eb1.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 Ie=R(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};
