1 |
- import{_ as T,d as V,z as K,aI as P,ba as I,E as u,af as N,b4 as Q,F as j,x as f,o as n,c as v,b as _,y as h,K as y,L as q,M as A,u as F,N as k,Q as H,bs as L}from"./index.743f0c80.js";import{h as O}from"./index.5e8ef3e3.js";import{Q as r}from"./query.001446ea.js";import{i as S}from"./context.bdf6d636.js";import U from"./anchor.629836d7.js";import"./index.7ffca38c.js";import"./purchase.6ae9f282.js";import"./types.fdd8c385.js";import"./purchase.7131464f.js";import"./status.868e86c0.js";import"./tootip.48acd346.js";import"./basic-descriptions.e56bd542.js";import"./index.88e5dbb1.js";import"./reconciliation.7f32557d.js";import"./reconciliation.d0aed753.js";import"./index.a62d29d8.js";import"./sale.2fc90eb9.js";import"./sale.fe3b5968.js";import"./index.17b89a60.js";import"./payment.aaf4320e.js";import"./index.cb28f7dd.js";import"./ticket-return.a4b0e7cf.js";import"./index.374ff017.js";import"./tradelog.65c331c2.js";import"./tragelog.16ac9d74.js";import"./index.52029f71.js";import"./trade.a8193eaa.js";import"./index.3e0ba0b3.js";import"./refund.68781f67.js";import"./index.5ec0a88b.js";import"./inv-return.56a67d14.js";import"./inv-return.5f9f9423.js";import"./index.8212cab4.js";import"./inv-open.4519c208.js";import"./inv-open.a0819b58.js";import"./goods.85727ad9.js";const z={class:"main flex h-full"},G={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:D}=K(),g=P(),p=I([]),l=u([]),i=u(new Map),d=u({}),w=N(()=>D.id),x=(e,t)=>{var s;const o=r[e].responseKey;return t[o]&&((s=r[e])==null?void 0:s.detail)&&t[o].length!==0};function C(e){return Object.keys(r).filter(o=>x(o,e)).map(o=>{const{api:s,component:a,requesetProp:m,responseKey:c,detail:M}=r[o],R=e[c];return{component:a,prop:m,title:M,api:s,value:R,key:o}})}async function E(){const{code:e,message:t,data:o}=await O({id:w.value});g({code:e,message:t,handler:()=>p.value=C(o)})}async function b(){await E(),p.value.forEach((e,t)=>{l.value.push(e.key),i.value.set(e.title,{top:"",index:t})})}function B(e,t){const o=i.value.get(t);i.value.set(t,{...o,top:e})}return Q(S,{goodData:d,setGoodData:e=>d.value=e}),j(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return n(),v("div",z,[_("div",G,[h(U,{map:i.value},null,8,["map"])]),_("div",Y,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:y(()=>[(n(!0),v(q,null,A(F(p),a=>(n(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(n(),k(H(a.component),L(a,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Pe=T(J,[["__file","D:/work/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Pe as default};
|