1 |
- import{_ as T,d as V,m as j,bt as P,aU as U,w as u,ag as A,ba as I,x as K,r as f,o as l,c as v,h as _,j as h,C as k,F as q,D as F,l as G,G as y,I as H,br as N}from"./index.js";import{h as O}from"./index.2af5966b.js";import{Q as r}from"./query.8064326f.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.0a7e39.js";import"./purchase.c44647.js";import"./types.ebfbff8f.js";import"./porder.e713a9fe.js";import"./tootip.e1d72495.js";import"./status.151ccddb.js";import"./basic-descriptions.64fbdf9d.js";import"./reconciliation.87b67a.js";import"./orderRecord.fc407fbf.js";import"./calc.850c7422.js";import"./sale.623406.js";import"./sale.848959cc.js";import"./payment.9ad14f.js";import"./ticket-return.5c359b.js";import"./tradelog.c7969f.js";import"./trade.51e46b.js";import"./refund.1d19ae.js";import"./inv-return.418b0f.js";import"./inv-open.387bde.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(),i=U([]),p=u([]),n=u(new Map),d=u({}),w=A(()=>D.id),C=(e,t)=>{var a;const o=r[e].responseKey;return t[o]&&((a=r[e])==null?void 0:a.detail)&&t[o].length!==0};function x(e){return Object.keys(r).filter(o=>C(o,e)).map(o=>{const{api:a,component:s,requesetProp:m,responseKey:c,detail:M}=r[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 O({id:w.value});g({code:e,message:t,handler:()=>i.value=x(o)})}async function b(){await E(),i.value.forEach((e,t)=>{p.value.push(e.key),n.value.set(e.title,{top:"",index:t})})}function B(e,t){const o=n.value.get(t);n.value.set(t,{...o,top:e})}return I(Q,{goodData:d,setGoodData:e=>d.value=e}),K(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return l(),v("div",L,[_("div",Y,[h(S,{map:n.value},null,8,["map"])]),_("div",z,[h(a,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=s=>p.value=s)},{default:k(()=>[(l(!0),v(q,null,F(G(i),s=>(l(),y(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(l(),y(H(s.component),N(s,{onMapOffsetTop:t[0]||(t[0]=({top:m,title:c})=>B(m,c))}),null,16))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])])])}}});var De=T(J,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/search/standBook/detail.vue"]]);export{De as default};
|