detail.92f1f5d4.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.c437e4ff.js";import{h as Q}from"./index.9d117bf4.js";import{Q as n}from"./query.33b3d742.js";import{i as S}from"./context.bdf6d636.js";import F from"./anchor.ece34388.js";import"./index.0d6d8004.js";import"./purchase.94793b94.js";import"./types.59ce7bfe.js";import"./purchase.0962278a.js";import"./status.c5a6ff09.js";import"./tootip.e28c3bb7.js";import"./basic-descriptions.4dd7b510.js";import"./index.4866b422.js";import"./reconciliation.fd52c99d.js";import"./reconciliation.ed1fa7af.js";import"./index.4049993a.js";import"./sale.448741dc.js";import"./sale.52fd527b.js";import"./index.d35133b3.js";import"./payment.4b5620fb.js";import"./index.e06b6aad.js";import"./ticket-return.87746874.js";import"./ticket-return.73d10047.js";import"./index.efdae443.js";import"./tradelog.1582ea88.js";import"./tragelog.b9f3d2a3.js";import"./index.05b439ea.js";import"./trade.6a94ebee.js";import"./index.c881f0ab.js";import"./refund.397bb0e5.js";import"./index.d3188a3b.js";import"./inv-return.b6e048b2.js";import"./inv-return.dbcc01a5.js";import"./index.322815ba.js";import"./inv-open.e8f96fa3.js";import"./inv-open.1ee65f00.js";import"./goods.05363f7a.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};