1 |
- import{_ as T,d as V,m as P,aF as j,aX as q,w as u,a6 as F,b3 as I,x as K,r as f,o as i,c as v,b as _,l as h,C as k,F as U,D as A,u as G,G as y,I as H,bq as N}from"./index.437ef871.js";import{h as O}from"./index.a3eb5261.js";import{Q as n}from"./query.2b8fb940.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.871b9dc9.js";import"./index.7726dda8.js";import"./purchase.265fc7c7.js";import"./types.64f21435.js";import"./porder.80fdd7be.js";import"./tootip.b1f28033.js";import"./status.d6b2a53d.js";import"./basic-descriptions.d4bb3932.js";import"./index.7f75c5c5.js";import"./reconciliation.97faac76.js";import"./index.6668215f.js";import"./index.0e3d212e.js";import"./sale.9ec42151.js";import"./sale.ba41784a.js";import"./index.f6d5357a.js";import"./payment.81be4886.js";import"./purchPay.79279365.js";import"./index.d57d3450.js";import"./ticket-return.7ab8e0a4.js";import"./ticketReturn.7ddd4748.js";import"./index.6e11c995.js";import"./tradelog.2fc6ec82.js";import"./tragelog.4378089f.js";import"./index.cf28c1eb.js";import"./trade.e6612d5f.js";import"./index.cea1b76f.js";import"./refund.4891923b.js";import"./index.51301567.js";import"./inv-return.f032c5fe.js";import"./inv-return.077cc7cc.js";import"./index.1e7b0a1b.js";import"./inv-open.03e99072.js";import"./inv-open.b24caadc.js";const L={class:"main flex h-full w-full"},X={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},z=V({__name:"detail",setup(J){const{query:D}=P(),w=j(),p=q([]),l=u([]),r=u(new Map),d=u({}),g=F(()=>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 O({id:g.value});w({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 I(Q,{goodData:d,setGoodData:e=>d.value=e}),K(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return i(),v("div",L,[_("div",X,[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:k(()=>[(i(!0),v(U,null,A(G(p),a=>(i(),y(o,{title:a.title,name:a.key,key:a.key},{default:k(()=>[(i(),y(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 qe=T(z,[["__file","C:/Users/a/Desktop/projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{qe as default};
|