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.39184245.js";import{h as I}from"./index.30635bd5.js";import{Q as n}from"./query.aca510ca.js";import{i as L}from"./context.bdf6d636.js";import Q from"./anchor.3e8d8d94.js";import"./index.8a501762.js";import"./purchase.f7dc91c8.js";import"./types.3d9e67fc.js";import"./purchase.8c0132cb.js";import"./status.0f8b29ec.js";import"./tootip.d4ccc796.js";import"./basic-descriptions.bd2e6668.js";import"./index.af5ccbbd.js";import"./reconciliation.a45caf6d.js";import"./reconciliation.0b5f0f06.js";import"./index.f56d37da.js";import"./sale.432c22dd.js";import"./sale.a6b08ff2.js";import"./index.b8d0260d.js";import"./payment.a005cc7a.js";import"./index.6136f025.js";import"./ticket-return.34db7fae.js";import"./index.d741aef6.js";import"./tradelog.6041069e.js";import"./tragelog.3ea58297.js";import"./index.d2f8035b.js";import"./trade.7ab9aff8.js";import"./index.5e1454ab.js";import"./refund.bc80d979.js";import"./index.53d88fb8.js";import"./inv-return.e4afd64f.js";import"./inv-return.79aaf3c8.js";import"./index.8e9485b1.js";import"./inv-open.cf5dc070.js";import"./inv-open.c11b9715.js";import"./goods.e7a6a4d9.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};
|