1 |
- import{_ as T,d as V,A as P,aG as A,b9 as G,F as u,ad as K,b3 as N,G as O,y as f,o as i,c as v,a as _,z as h,L as y,M as j,N as q,u as F,O as k,R as H,br as I}from"./index.02441301.js";import{h as L}from"./index.b55488e8.js";import{Q as n}from"./query.112de167.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.41bf4143.js";import"./index.c97101c9.js";import"./purchase.1ef8cd76.js";import"./types.67c1e23b.js";import"./purchase.ad5e6957.js";import"./status.25ea5e43.js";import"./tootip.ccf43bbb.js";import"./basic-descriptions.123a156e.js";import"./index.b4f62b76.js";import"./reconciliation.43795762.js";import"./reconciliation.474d3a92.js";import"./index.e9952dd7.js";import"./sale.e522cd33.js";import"./sale.aac0231e.js";import"./index.0769625f.js";import"./payment.fe79eeea.js";import"./index.1aa23d5a.js";import"./ticket-return.1fcb73fd.js";import"./index.2f6db068.js";import"./tradelog.ddae209b.js";import"./tragelog.8a3170d1.js";import"./index.98e7d07c.js";import"./trade.773bb515.js";import"./index.3ae51728.js";import"./refund.78f0fe6a.js";import"./index.2defe438.js";import"./inv-return.ebd35d5d.js";import"./inv-return.5ca3fc27.js";import"./index.a06e43db.js";import"./inv-open.c00f09ed.js";import"./inv-open.25cf0b47.js";import"./goods.98943bbf.js";const U={class:"main flex h-full"},z={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},J=V({__name:"detail",setup(W){const{query:D}=P(),g=A(),p=G([]),l=u([]),r=u(new Map),d=u({}),w=K(()=>D.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],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 L({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 N(Q,{goodData:d,setGoodData:e=>d.value=e}),O(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",U,[_("div",z,[h(S,{map:r.value},null,8,["map"])]),_("div",Y,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:y(()=>[(i(!0),v(j,null,q(F(p),a=>(i(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(i(),k(H(a.component),I(a,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var Ae=T(J,[["__file","D:/work/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ae as default};
|