1 |
- import{_ as T,d as V,A as P,aG as j,b9 as A,F as u,ad as G,b3 as K,G as N,y as f,o as i,c as v,a as _,z as h,L as y,M as O,N as U,u as q,O as k,R as F,br as H}from"./index.e6fb1a0f.js";import{h as I}from"./index.43ef2488.js";import{Q as n}from"./query.5d03dd17.js";import{i as L}from"./context.bdf6d636.js";import Q from"./anchor.7eafb7cb.js";import"./index.2dcc383f.js";import"./purchase.12627a30.js";import"./types.44c4c93e.js";import"./purchase.14191b25.js";import"./status.750c8cf0.js";import"./tootip.0ac7b9e7.js";import"./basic-descriptions.4f477c9c.js";import"./index.37f3c12b.js";import"./reconciliation.2d3d8030.js";import"./reconciliation.658b4ec8.js";import"./index.2ffb8933.js";import"./sale.47384eac.js";import"./sale.ca8d3a0a.js";import"./index.e12c825b.js";import"./payment.b0da201d.js";import"./index.fee37353.js";import"./ticket-return.7db45370.js";import"./index.13072585.js";import"./tradelog.62d15479.js";import"./tragelog.d791a067.js";import"./index.11acbf5c.js";import"./trade.80b79f66.js";import"./index.68233057.js";import"./refund.f0ae356d.js";import"./index.a16c6bb7.js";import"./inv-return.7e2e84ef.js";import"./inv-return.5d10a72b.js";import"./index.b3fcb0ae.js";import"./inv-open.015e1efa.js";import"./inv-open.d26e50fa.js";import"./goods.e9bfb31b.js";const S={class:"main flex h-full"},z={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:D}=P(),g=j(),p=A([]),l=u([]),r=u(new Map),d=u({}),w=G(()=>D.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],R=e[c];return{component:a,prop:m,title:M,api:s,value:R,key:o}})}async function E(){const{code:e,message:t,data:o}=await I({id:w.value});g({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 K(L,{goodData:d,setGoodData:e=>d.value=e}),N(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",S,[_("div",z,[h(Q,{map:r.value},null,8,["map"])]),_("div",Y,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:y(()=>[(i(!0),v(O,null,U(q(p),a=>(i(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(i(),k(F(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 je=T(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{je as default};
|