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.ad694c73.js";import{h as N}from"./index.9cdccab7.js";import{Q as n}from"./query.324c21ef.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.c3a41897.js";import"./index.81b1e9be.js";import"./purchase.b80e4058.js";import"./types.499d8250.js";import"./porder.18dd3ecc.js";import"./tootip.013b99ae.js";import"./status.0f05917e.js";import"./basic-descriptions.a467a6bf.js";import"./index.b53b3443.js";import"./reconciliation.6606de43.js";import"./index.229ac45d.js";import"./index.a8b71af2.js";import"./sale.8cfcb93e.js";import"./sale.595d3bbd.js";import"./index.e43834e2.js";import"./payment.6deb22de.js";import"./purchPay.2734b037.js";import"./index.f74e1abf.js";import"./ticket-return.90a4b4be.js";import"./ticketReturn.509363f8.js";import"./index.825e0cef.js";import"./tradelog.941647d0.js";import"./tragelog.8a1dd872.js";import"./index.edd8ea87.js";import"./trade.675c4675.js";import"./index.42c45b1f.js";import"./refund.2891de65.js";import"./index.257bf5fa.js";import"./inv-return.2987efde.js";import"./inv-return.5d30745d.js";import"./index.36b2d579.js";import"./inv-open.5eb66982.js";import"./inv-open.d807e99d.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};
|