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,h as _,j as h,C as y,F as q,D as A,l as F,G as k,I as G,by as H}from"./index.js";import{h as N}from"./index.0de3ae1a.js";import{Q as n}from"./query.80c28608.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.f2e092.js";import"./index.a191d442.js";import"./purchase.beed52.js";import"./types.12dd06ba.js";import"./porder.a596ffa4.js";import"./tootip.91bcb372.js";import"./status.642bba24.js";import"./basic-descriptions.5b344191.js";import"./index.ff213195.js";import"./reconciliation.425819.js";import"./index.325df1f3.js";import"./orderRecord.4de343c1.js";import"./calc.850c7422.js";import"./index.5aa13124.js";import"./sale.67e602.js";import"./sale.e68fc0b8.js";import"./index.2997cbf0.js";import"./payment.a726d4.js";import"./purchPay.117e889f.js";import"./index.e1684b8f.js";import"./ticket-return.59b47b.js";import"./ticketReturn.ab23179d.js";import"./index.03d27eb6.js";import"./tradelog.63d799.js";import"./tragelog.d1919457.js";import"./index.faae479e.js";import"./trade.0725a1.js";import"./index.1877960f.js";import"./refund.8c56a2.js";import"./index.84c894dd.js";import"./inv-return.157aaf.js";import"./inv-return.5e42bccd.js";import"./inv-open.05a454.js";import"./inv-open.612fdb36.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:D}=V(),g=j(),p=I([]),l=u([]),r=u(new Map),d=u({}),w=K(()=>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],P=e[c];return{component:s,prop:m,title:M,api:a,value:P,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 O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>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(q,null,A(F(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 Ke=R(J,[["__file","C:/Users/63107/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Ke as default};
|