1 |
- import{_ as R,d as T,m as V,az as j,b9 as I,w as u,a6 as K,bn as U,x as q,r as f,o as n,c as v,b as _,l as h,C as y,F as A,D as F,u as G,G as k,I as H,b2 as N}from"./index.a862e1ef.js";import{h as O}from"./index.5e8b48c4.js";import{Q as i}from"./query.18931805.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.6eb909ea.js";import"./index.2663ace5.js";import"./purchase.2927fb96.js";import"./types.ccce3166.js";import"./porder.3ebfd0d2.js";import"./tootip.ec02b796.js";import"./status.73dc9f3e.js";import"./basic-descriptions.5ab2f1ad.js";import"./index.176cbf5e.js";import"./reconciliation.6aaf58b7.js";import"./index.d0b93c83.js";import"./index.e3cf5622.js";import"./sale.ba9efe5f.js";import"./sale.d06f58cf.js";import"./index.5cbed69b.js";import"./payment.97cb9fd8.js";import"./purchPay.e4fbb0fd.js";import"./index.daf221d5.js";import"./ticket-return.c4eec9a6.js";import"./ticketReturn.ccd0b295.js";import"./index.15cd75d9.js";import"./tradelog.34320c75.js";import"./tragelog.a4460e43.js";import"./index.7e11f6db.js";import"./trade.e9962ba2.js";import"./index.26dfeec0.js";import"./refund.94434690.js";import"./index.bf7db8e0.js";import"./inv-return.b82f6452.js";import"./inv-return.bc540f0c.js";import"./index.c7109ebe.js";import"./inv-open.a3b29644.js";import"./inv-open.a1465c14.js";const z={class:"main flex h-full"},L={"bg-white":"","min-w-230px":""},Y={"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 s;const o=i[e].responseKey;return t[o]&&((s=i[e])==null?void 0:s.detail)&&t[o].length!==0};function x(e){return Object.keys(i).filter(o=>C(o,e)).map(o=>{const{api:s,component:a,requesetProp:m,responseKey:c,detail:M}=i[o],P=e[c];return{component:a,prop:m,title:M,api:s,value:P,key:o}})}async function b(){const{code:e,message:t,data:o}=await O({id:w.value});g({code:e,message:t,handler:()=>p.value=x(o)})}async function E(){await b(),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 U(Q,{goodData:d,setGoodData:e=>d.value=e}),q(()=>E()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return n(),v("div",z,[_("div",L,[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(()=>[(n(!0),v(A,null,F(G(p),a=>(n(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(n(),k(H(a.component),N(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","/Users/apple/Desktop/CompanyProjects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ie as default};
|