import{_ as T,d as V,m as j,aU as P,aF as U,w as u,ag as F,bb as I,x as K,r as f,o as i,c as v,h as _,j as h,C as y,F as q,D as A,l as G,G as k,I as H,by as N}from"./index.js";import{h as O}from"./index.a75b8254.js";import{Q as n}from"./query.a1758122.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.f2e092.js";import"./index.c8cece94.js";import"./purchase.beed52.js";import"./types.e182a8e0.js";import"./porder.920dd6e9.js";import"./tootip.541bf108.js";import"./status.642bba24.js";import"./basic-descriptions.ed33c5a1.js";import"./index.bf7c579c.js";import"./reconciliation.425819.js";import"./index.4826812a.js";import"./orderRecord.6d47fce3.js";import"./calc.850c7422.js";import"./index.3633ad8d.js";import"./sale.67e602.js";import"./sale.28e404f2.js";import"./index.bdc098fb.js";import"./payment.a726d4.js";import"./purchPay.d7bf9a88.js";import"./index.a4f66b76.js";import"./ticket-return.59b47b.js";import"./ticketReturn.774d8428.js";import"./index.1ab6d2e3.js";import"./tradelog.63d799.js";import"./tragelog.a751e70f.js";import"./index.a7313b0b.js";import"./trade.0725a1.js";import"./index.89bf3f2a.js";import"./refund.8c56a2.js";import"./index.19ac64c4.js";import"./inv-return.157aaf.js";import"./inv-return.b9350bf1.js";import"./inv-open.05a454.js";import"./inv-open.ac646a93.js";const L={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:D}=j(),g=P(),p=U([]),l=u([]),r=u(new Map),d=u({}),w=F(()=>D.id),C=(e,t)=>{var a;const o=n[e].responseKey;return t[o]&&((a=n[e])==null?void 0:a.detail)&&t[o].length!==0};function x(e){return Object.keys(n).filter(o=>C(o,e)).map(o=>{const{api:a,component:s,requesetProp:m,responseKey:c,detail:M}=n[o],R=e[c];return{component:s,prop:m,title:M,api:a,value:R,key:o}})}async function E(){const{code:e,message:t,data:o}=await O({id:w.value});g({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 I(Q,{goodData:d,setGoodData:e=>d.value=e}),K(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{map:r.value},null,8,["map"])]),_("div",z,[h(a,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value=s)},{default:y(()=>[(i(!0),v(q,null,A(G(p),s=>(i(),k(o,{title:s.title,name:s.key,key:s.key},{default:y(()=>[(i(),k(H(s.component),N(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Fe=T(J,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Fe as default};