detail.7c9e9a.js 2.6 KB

1
  1. import{_ as R,d as T,n as V,aO as j,aP as I,x as u,ah as K,bk as O,y as U,r as f,o as r,c as v,h as _,l as h,D as k,F as q,E as A,m as F,G as y,I as G,bJ as H}from"./index.js";import{h as N}from"./index.c7beb155.js";import{Q as i}from"./query.c3993568.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.4eb892.js";import"./index.07e03c86.js";import"./purchase.d1fce1.js";import"./types.46b50de9.js";import"./porder.9a85976d.js";import"./reconciliation.4acc1c.js";import"./index.8ad79f80.js";import"./orderRecord.4d98a397.js";import"./index.142d2268.js";import"./sale.55431c.js";import"./sale.ca731a82.js";import"./index.5f728d54.js";import"./payment.b86135.js";import"./purchPay.db2f1e31.js";import"./index.26d6ac45.js";import"./ticket-return.7bcd32.js";import"./ticketReturn.6df30604.js";import"./index.f01a7198.js";import"./tradelog.c01bed.js";import"./tragelog.647eeacd.js";import"./index.4e61d38f.js";import"./trade.29ff48.js";import"./index.c268fd9f.js";import"./refund.822875.js";import"./index.dc77ce34.js";import"./inv-return.868463.js";import"./inv-return.7abfe6c8.js";import"./inv-open.0e5d1e.js";import"./inv-open.a495ad22.js";const J={class:"main flex h-full w-full"},L={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},z=T({__name:"detail",setup(W){const{query:D}=V(),g=j(),l=I([]),p=u([]),n=u(new Map),d=u({}),w=K(()=>D.id),C=(e,t)=>{var a;const o=i[e].responseKey;return t[o]&&((a=i[e])==null?void 0:a.detail)&&t[o].length!==0};function x(e){return Object.keys(i).filter(o=>C(o,e)).map(o=>{const{api:a,component:s,requesetProp:m,responseKey:c,detail:M}=i[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:()=>l.value=x(o)})}async function B(){await E(),l.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 O(Q,{goodData:d,setGoodData:e=>d.value=e}),U(()=>B()),(e,t)=>{const o=f("ElCollapseItem"),a=f("ElCollapse");return r(),v("div",J,[_("div",L,[h(S,{map:n.value},null,8,["map"])]),_("div",Y,[h(a,{modelValue:p.value,"onUpdate:modelValue":t[1]||(t[1]=s=>p.value=s)},{default:k(()=>[(r(!0),v(q,null,A(F(l),s=>(r(),y(o,{title:s.title,name:s.key,key:s.key},{default:k(()=>[(r(),y(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 Re=R(z,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/search/standBook/detail.vue"]]);export{Re as default};