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.6c69ac59.js";import{h as N}from"./index.d1d686e4.js";import{Q as n}from"./query.cf4b6d00.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.cbc2989f.js";import"./index.3333a20d.js";import"./purchase.86462b1f.js";import"./types.1f8bb24b.js";import"./porder.793ade8a.js";import"./tootip.bda3e15e.js";import"./status.2df4810d.js";import"./basic-descriptions.e2030d67.js";import"./index.8a5a1c41.js";import"./reconciliation.fb734659.js";import"./index.e58b08cf.js";import"./orderRecord.172aca96.js";import"./calc.850c7422.js";import"./index.f5c79f09.js";import"./sale.f2a80e1b.js";import"./sale.4edcdeb4.js";import"./index.fd2741bb.js";import"./payment.0e0e5c54.js";import"./purchPay.4135f275.js";import"./index.6b871d47.js";import"./ticket-return.594d11b7.js";import"./ticketReturn.0e75a4c2.js";import"./index.32324f01.js";import"./tradelog.13bab31b.js";import"./tragelog.8fabaec2.js";import"./index.8cd3a5a8.js";import"./trade.adbc3b86.js";import"./index.0583bbb0.js";import"./refund.6c1f9e5d.js";import"./index.00add25e.js";import"./inv-return.82deb412.js";import"./inv-return.6520823f.js";import"./index.12c059fb.js";import"./inv-open.2c51afb7.js";import"./inv-open.128e7776.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 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],P=e[c];return{component:s,prop:m,title:M,api:a,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"),a=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{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(q,null,A(F(p),s=>(i(),w(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(i(),w(G(s.component),H(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Oe=R(J,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Oe as default};
|