detail.dcd572cd.js 2.7 KB

1
  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.46a4c444.js";import{h as N}from"./index.62d1a09a.js";import{Q as n}from"./query.faa69f8d.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.11c49f0a.js";import"./index.9643cb0f.js";import"./purchase.22ee862c.js";import"./types.3bd9002b.js";import"./porder.3ed29344.js";import"./tootip.ec06bf22.js";import"./status.d6b2a53d.js";import"./basic-descriptions.f8731312.js";import"./index.6ed409c5.js";import"./reconciliation.6771065b.js";import"./index.dd9cba49.js";import"./index.31a306fc.js";import"./sale.74a9c3a2.js";import"./sale.8ce24e22.js";import"./index.a7821ef8.js";import"./payment.a1462dd7.js";import"./purchPay.bee00ff7.js";import"./index.6245b335.js";import"./ticket-return.932fa2c0.js";import"./ticketReturn.d071e824.js";import"./index.096dccd0.js";import"./tradelog.928f27e7.js";import"./tragelog.7e0b704b.js";import"./index.208e3ce7.js";import"./trade.5e8fa9d5.js";import"./index.3d185a7d.js";import"./refund.5da414bb.js";import"./index.78adaaac.js";import"./inv-return.0b5f7cf6.js";import"./inv-return.6d7e383f.js";import"./index.b1259ca8.js";import"./inv-open.5ce36fa8.js";import"./inv-open.554b470b.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};