import{_ as R,d as T,n as V,aO as j,aP as I,x as u,ah as K,bk as O,y as U,r as f,o as r,c as v,h as _,l as h,D as k,F as q,E as A,m as F,G as y,I as G,bJ as H}from"./index.js";import{h as N}from"./index.d3a8fd70.js";import{Q as i}from"./query.6a179256.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.4eb892.js";import"./index.111a3480.js";import"./purchase.d1fce1.js";import"./types.fe957cac.js";import"./porder.cb2a60e8.js";import"./reconciliation.4acc1c.js";import"./index.79a52a46.js";import"./orderRecord.bd0f73d4.js";import"./index.5a7a3827.js";import"./sale.55431c.js";import"./sale.33407e4f.js";import"./index.57181067.js";import"./payment.b86135.js";import"./purchPay.2bdd200f.js";import"./index.80104a95.js";import"./ticket-return.7bcd32.js";import"./ticketReturn.8c918810.js";import"./index.69880ea9.js";import"./tradelog.c01bed.js";import"./tragelog.dfcfbd31.js";import"./index.56c49c99.js";import"./trade.29ff48.js";import"./index.1c19fb2a.js";import"./refund.822875.js";import"./index.cddc3b13.js";import"./inv-return.868463.js";import"./inv-return.ab09dd7c.js";import"./inv-open.0e5d1e.js";import"./inv-open.90cd9d14.js";const J={class:"main flex h-full w-full"},L={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},z=T({__name:"detail",setup(W){const{query:D}=V(),g=j(),l=I([]),p=u([]),n=u(new Map),d=u({}),w=K(()=>D.id),C=(e,t)=>{var a;const o=i[e].responseKey;return t[o]&&((a=i[e])==null?void 0:a.detail)&&t[o].length!==0};function x(e){return Object.keys(i).filter(o=>C(o,e)).map(o=>{const{api:a,component:s,requesetProp:m,responseKey:c,detail:M}=i[o],P=e[c];return{component:s,prop:m,title:M,api:a,value:P,key:o}})}async function E(){const{code:e,message:t,data:o}=await N({id:w.value});g({code:e,message:t,handler:()=>l.value=x(o)})}async function B(){await E(),l.value.forEach((e,t)=>{p.value.push(e.key),n.value.set(e.title,{top:"",index:t})})}function b(e,t){const o=n.value.get(t);n.value.set(t,{...o,top:e})}return O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>B()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return r(),v("div",J,[_("div",L,[h(S,{map:n.value},null,8,["map"])]),_("div",Y,[h(a,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=s=>p.value=s)},{default:k(()=>[(r(!0),v(q,null,A(F(l),s=>(r(),y(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(r(),y(G(s.component),H(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>b(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Re=R(z,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Re as default};
