1 |
- 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.8e762bc4.js";import{h as N}from"./index.44f9eba4.js";import{Q as n}from"./query.d6ce0845.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.1f764c78.js";import"./index.ce72ceaf.js";import"./purchase.cf0abb17.js";import"./types.9472f0e9.js";import"./porder.0811c4d2.js";import"./tootip.e50d887f.js";import"./status.0f05917e.js";import"./basic-descriptions.8f7a75d3.js";import"./index.214c8bab.js";import"./reconciliation.1b1c4653.js";import"./index.ceedd637.js";import"./index.f8a3b827.js";import"./sale.55676ce0.js";import"./sale.093eb403.js";import"./index.f108274f.js";import"./payment.dfe0d04a.js";import"./purchPay.09e35684.js";import"./index.1670adf5.js";import"./ticket-return.dc9c6b2a.js";import"./ticketReturn.22156275.js";import"./index.aa58aed6.js";import"./tradelog.4f564686.js";import"./tragelog.a7d78c7c.js";import"./index.43c48223.js";import"./trade.83caee86.js";import"./index.8086bbcd.js";import"./refund.ad52cd34.js";import"./index.b162f45a.js";import"./inv-return.24ce7036.js";import"./inv-return.6072d4f6.js";import"./index.55037fc9.js";import"./inv-open.05273cd2.js";import"./inv-open.c838d051.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};
|