detail.5a62026f.js 2.7 KB

1
  1. import{_ as R,r as T,y as V,aB as K,be as j,D as u,a9 as q,b8 as U,E as A,v as f,o as i,p as v,q as _,w as h,J as y,K as H,L as I,x as L,M as k,P as N,br as O}from"./index.29112b65.js";import{h as Q}from"./index.79463f2b.js";import{Q as n}from"./query.d9604693.js";import{i as S}from"./context.bdf6d636.js";import F from"./anchor.67d2c897.js";import"./index.c35d97a4.js";import"./purchase.575f32a3.js";import"./types.d80ea49e.js";import"./purchase.e67a62c5.js";import"./status.4f7e5409.js";import"./tootip.66462386.js";import"./basic-descriptions.dcd53873.js";import"./index.e9c53e02.js";import"./reconciliation.25f44b17.js";import"./reconciliation.f0bc262b.js";import"./index.9f66cda8.js";import"./sale.6d088790.js";import"./sale.001f30c5.js";import"./index.8f2efc06.js";import"./payment.fe375179.js";import"./index.fb97cede.js";import"./ticket-return.e7256d6b.js";import"./ticket-return.8976808b.js";import"./index.82af9b88.js";import"./tradelog.b05aa9fe.js";import"./tragelog.27ada81c.js";import"./index.728e62ca.js";import"./trade.9be6ef1d.js";import"./index.43db88e8.js";import"./refund.35f38f3c.js";import"./index.044f065a.js";import"./inv-return.15f5c4e9.js";import"./inv-return.4d814841.js";import"./index.57e59344.js";import"./inv-open.272c34e8.js";import"./inv-open.a5389bba.js";import"./goods.0de5e050.js";const G={class:"main flex h-full"},J={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},z=T({__name:"detail",setup(W){const{query:D}=V(),g=K(),p=j([]),l=u([]),r=u(new Map),d=u({}),w=q(()=>D.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 Q({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 U(S,{goodData:d,setGoodData:e=>d.value=e}),A(()=>B()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return i(),v("div",G,[_("div",J,[h(F,{map:r.value},null,8,["map"])]),_("div",Y,[h(a,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value=s)},{default:y(()=>[(i(!0),v(H,null,I(L(p),s=>(i(),k(o,{title:s.title,name:s.key,key:s.key},{default:y(()=>[(i(),k(N(s.component),O(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>b(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var je=R(z,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{je as default};