detail.e02cbaaa.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.5c62284d.js";import{h as Q}from"./index.3e95d47b.js";import{Q as n}from"./query.827311f2.js";import{i as S}from"./context.bdf6d636.js";import F from"./anchor.cc851912.js";import"./index.bcbfee4e.js";import"./purchase.b52c14f3.js";import"./types.87b06e62.js";import"./purchase.afbab969.js";import"./status.c5a6ff09.js";import"./tootip.521e103a.js";import"./basic-descriptions.abe58d1f.js";import"./index.ceeb8ce1.js";import"./reconciliation.d2068570.js";import"./reconciliation.1bd76290.js";import"./index.eea58df5.js";import"./sale.b8e1d510.js";import"./sale.9810a40a.js";import"./index.1cd25f9e.js";import"./payment.713f4dbf.js";import"./index.6084b65a.js";import"./ticket-return.90089009.js";import"./ticket-return.d332a705.js";import"./index.c642007e.js";import"./tradelog.73350694.js";import"./tragelog.3ea5af77.js";import"./index.85b75d44.js";import"./trade.bf0e8b20.js";import"./index.e8b3849b.js";import"./refund.5197edd8.js";import"./index.ed01fbb8.js";import"./inv-return.2489ce70.js";import"./inv-return.35a35d25.js";import"./index.3c03ca4e.js";import"./inv-open.d0072155.js";import"./inv-open.4b139d4c.js";import"./goods.fe7d5acc.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};