detail.145aa6.js 2.7 KB

1
  1. import{_ as T,d as V,m as j,aQ as P,aF as F,w as u,ag as I,bc as K,x as Q,r as f,o as i,c as v,h as _,j as h,C as y,F as U,D as q,l as A,G as k,I as G,by as H}from"./index.js";import{h as N}from"./index.3f367d0b.js";import{Q as n}from"./query.d5939aa1.js";import{i as O}from"./context.bdf6d636.js";import S from"./anchor.f2e092.js";import"./index.27abfb34.js";import"./purchase.beed52.js";import"./types.b6d54e8b.js";import"./porder.1a87bfef.js";import"./tootip.c3a9b0a1.js";import"./status.642bba24.js";import"./basic-descriptions.6e535249.js";import"./index.1ef404f9.js";import"./reconciliation.425819.js";import"./index.4fd9aafb.js";import"./orderRecord.a91eff91.js";import"./calc.850c7422.js";import"./index.ccde3fdb.js";import"./sale.67e602.js";import"./sale.74335aab.js";import"./index.c3260cb9.js";import"./payment.a726d4.js";import"./purchPay.35943177.js";import"./index.8bfbec6d.js";import"./ticket-return.59b47b.js";import"./ticketReturn.13f8159e.js";import"./index.d8354225.js";import"./tradelog.63d799.js";import"./tragelog.6d625226.js";import"./index.24ab8b1d.js";import"./trade.0725a1.js";import"./index.893b2dd0.js";import"./refund.8c56a2.js";import"./index.51bc89fa.js";import"./inv-return.157aaf.js";import"./inv-return.4306edbe.js";import"./inv-open.05a454.js";import"./inv-open.2559d09e.js";const L={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:D}=j(),g=P(),p=F([]),l=u([]),r=u(new Map),d=u({}),w=I(()=>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],R=e[c];return{component:s,prop:m,title:M,api:a,value:R,key:o}})}async function E(){const{code:e,message:t,data:o}=await N({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(O,{goodData:d,setGoodData:e=>d.value=e}),Q(()=>B()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{map:r.value},null,8,["map"])]),_("div",z,[h(a,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value=s)},{default:y(()=>[(i(!0),v(U,null,q(A(p),s=>(i(),k(o,{title:s.title,name:s.key,key:s.key},{default:y(()=>[(i(),k(G(s.component),H(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>b(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Ie=T(J,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Ie as default};