detail.72b669d8.js 2.7 KB

1
  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.0bc83371.js";import{h as N}from"./index.f3db2fb9.js";import{Q as n}from"./query.b19ae52c.js";import{i as O}from"./context.bdf6d636.js";import Q from"./anchor.c28c8324.js";import"./index.ddb188a4.js";import"./purchase.c4355bf8.js";import"./types.4a71bfcb.js";import"./porder.1fe952aa.js";import"./tootip.d8389d77.js";import"./status.d6b2a53d.js";import"./basic-descriptions.10a27b1b.js";import"./index.a6946a3d.js";import"./reconciliation.556e7a79.js";import"./index.3b71de1a.js";import"./index.901d2f38.js";import"./sale.140ad702.js";import"./sale.d6753d43.js";import"./index.96fc0e1f.js";import"./payment.52ddcdd9.js";import"./purchPay.3b024fb8.js";import"./index.2fe221b2.js";import"./ticket-return.95f539dd.js";import"./ticketReturn.e387937e.js";import"./index.a06a29e6.js";import"./tradelog.f6ac80c5.js";import"./tragelog.034c5862.js";import"./index.e48cc546.js";import"./trade.659b99a1.js";import"./index.0be2bf0c.js";import"./refund.c6cb7839.js";import"./index.0ac22995.js";import"./inv-return.0a263495.js";import"./inv-return.9f06316c.js";import"./index.b39a4bf1.js";import"./inv-open.12fb64f9.js";import"./inv-open.83dc6b1a.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};