1 |
- import{_ as R,d as T,m as V,aO as j,aP as I,w as u,ag as K,ba as O,x as U,r as f,o as i,c as v,b as _,l as h,C as k,F as q,D as A,u as F,G as w,I as G,bw as H}from"./index.fd765376.js";import{h as N}from"./index.205bc85c.js";import{Q as n}from"./query.04131647.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.7951836e.js";import"./index.74cb5163.js";import"./purchase.a4271ea3.js";import"./types.5372f4c6.js";import"./porder.24af2c44.js";import"./tootip.99c35844.js";import"./status.0f05917e.js";import"./basic-descriptions.6db97105.js";import"./index.8444c556.js";import"./reconciliation.920e99b2.js";import"./index.a88e75c0.js";import"./index.a5bfacc4.js";import"./sale.633f6d61.js";import"./sale.cd8ee3cf.js";import"./index.037c4df7.js";import"./payment.289d355d.js";import"./purchPay.d0610baa.js";import"./index.06a6dd44.js";import"./ticket-return.93c5d6ff.js";import"./ticketReturn.7ac5aec9.js";import"./index.d10d3001.js";import"./tradelog.47831620.js";import"./tragelog.1b43f211.js";import"./index.d370d888.js";import"./trade.3d5588df.js";import"./index.2818b66d.js";import"./refund.bec4d15e.js";import"./index.c0e9f9da.js";import"./inv-return.5c701c6c.js";import"./inv-return.08ae078f.js";import"./index.d7755e1d.js";import"./inv-open.68079706.js";import"./inv-open.d2f403b6.js";const L={class:"main flex h-full w-full"},Y={"bg-white":"","min-w-230px":""},z={"bg-white":"","flex-1":""},J=T({__name:"detail",setup(W){const{query:y}=V(),D=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),g=K(()=>y.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],P=e[c];return{component:a,prop:m,title:M,api:s,value:P,key:o}})}async function E(){const{code:e,message:t,data:o}=await N({id:g.value});D({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 O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",L,[_("div",Y,[h(S,{map:r.value},null,8,["map"])]),_("div",z,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:k(()=>[(i(!0),v(q,null,A(F(p),a=>(i(),w(o,{title:a.title,name:a.key,key:a.key},{default:k(()=>[(i(),w(G(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 Ie=R(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};
|