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.5189e628.js";import{h as N}from"./index.ac2acbcb.js";import{Q as n}from"./query.7c272a55.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.d905262a.js";import"./index.f21df4ee.js";import"./purchase.f473c532.js";import"./types.43e1ae59.js";import"./porder.b7aed93f.js";import"./tootip.8f04ad6a.js";import"./status.0f05917e.js";import"./basic-descriptions.d50a1c45.js";import"./index.444e4f89.js";import"./reconciliation.625cc294.js";import"./index.6b1b7883.js";import"./index.4c1705cf.js";import"./sale.eecc15ea.js";import"./sale.2800f11d.js";import"./index.8ca2c63d.js";import"./payment.eb9820d6.js";import"./purchPay.cef0beee.js";import"./index.add603fb.js";import"./ticket-return.2b97c586.js";import"./ticketReturn.59c4fe45.js";import"./index.54a65ea7.js";import"./tradelog.e30822d8.js";import"./tragelog.083f3d9b.js";import"./index.875e040b.js";import"./trade.0d1d23b8.js";import"./index.2c003c02.js";import"./refund.7d0996d7.js";import"./index.7a3813ca.js";import"./inv-return.2e11acc9.js";import"./inv-return.c333e788.js";import"./index.dccabccf.js";import"./inv-open.b2f1dd24.js";import"./inv-open.fce787f2.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};
|