1 |
- import{_ as T,d as V,m as P,aL as j,b1 as I,w as u,ag as K,b9 as U,x as q,r as f,o as i,c as v,b as _,l as h,C as k,F as A,D as F,u as G,G as w,I as H,bw as L}from"./index.2004bc2d.js";import{h as N}from"./index.93abb349.js";import{Q as n}from"./query.273699d0.js";import{i as O}from"./context.bdf6d636.js";import Q from"./anchor.352a53ce.js";import"./index.857c2ef1.js";import"./purchase.2a0a904a.js";import"./types.a0a10a87.js";import"./porder.bcd2be07.js";import"./tootip.863a4949.js";import"./status.d6b2a53d.js";import"./basic-descriptions.8e868909.js";import"./index.8f4b7202.js";import"./reconciliation.7d64e2ed.js";import"./index.fee2b78b.js";import"./index.e4c70d59.js";import"./sale.073bde84.js";import"./sale.17ede353.js";import"./index.94435f29.js";import"./payment.99c309d0.js";import"./purchPay.9856aee4.js";import"./index.47ea243f.js";import"./ticket-return.66ccc9d8.js";import"./ticketReturn.b0930f64.js";import"./index.f1407d7a.js";import"./tradelog.d07244e1.js";import"./tragelog.eb8aaf09.js";import"./index.6bef0413.js";import"./trade.b05981f4.js";import"./index.d80b84b9.js";import"./refund.dab2627b.js";import"./index.9342f3ff.js";import"./inv-return.c0795f96.js";import"./inv-return.3cd9197a.js";import"./index.81d80c71.js";import"./inv-open.6527865f.js";import"./inv-open.c1cd62f9.js";const S={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:y}=P(),D=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),g=K(()=>y.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 b(){const{code:e,message:t,data:o}=await N({id:g.value});D({code:e,message:t,handler:()=>p.value=x(o)})}async function E(){await b(),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 U(O,{goodData:d,setGoodData:e=>d.value=e}),q(()=>E()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return i(),v("div",S,[_("div",Y,[h(Q,{map:r.value},null,8,["map"])]),_("div",z,[h(a,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value=s)},{default:k(()=>[(i(!0),v(A,null,F(G(p),s=>(i(),w(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(i(),w(H(s.component),L(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Ie=T(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};
|