detail.c4408907.js 2.7 KB

1
  1. import{_ as R,d as T,z as V,aC as K,bw as j,E as u,af as q,bq as N,F as Q,x as f,o as r,c as v,b as _,y as h,K as y,L as U,M as A,u as F,N as k,Q as H,b4 as I}from"./index.1417328f.js";import{h as L}from"./index.660351ab.js";import{Q as i}from"./query.6b40206b.js";import{i as O}from"./context.bdf6d636.js";import S from"./anchor.55593626.js";import"./index.31e03583.js";import"./purchase.27cd4bc2.js";import"./types.99de89d9.js";import"./purchase.3d919a80.js";import"./status.727086c1.js";import"./tootip.8c37fa8a.js";import"./basic-descriptions.cadaf928.js";import"./index.08fe6875.js";import"./reconciliation.d59d5519.js";import"./reconciliation.53461462.js";import"./index.1bf16971.js";import"./sale.94cadd4f.js";import"./sale.c2f2872d.js";import"./index.514aa846.js";import"./payment.75a978b4.js";import"./index.28d5e629.js";import"./ticket-return.29a26c43.js";import"./index.0a3f5015.js";import"./tradelog.17b5ddc4.js";import"./tragelog.5720fe1a.js";import"./index.644f3a37.js";import"./trade.1987dd99.js";import"./index.da2264ed.js";import"./refund.cce1eae1.js";import"./index.658c28c0.js";import"./inv-return.f0e33de1.js";import"./inv-return.a56c9e92.js";import"./index.cc00443d.js";import"./inv-open.981206d3.js";import"./inv-open.516190c3.js";import"./goods.9218c3a4.js";const z={class:"main flex h-full"},G={"bg-white":"","min-w-230px":""},Y={"bg-white":"","flex-1":""},J=T({__name:"detail",setup(W){const{query:D}=V(),g=K(),p=j([]),l=u([]),n=u(new Map),d=u({}),w=q(()=>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 E(){const{code:e,message:t,data:o}=await L({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),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 N(O,{goodData:d,setGoodData:e=>d.value=e}),Q(()=>b()),(e,t)=>{const o=f("ElCollapseItem"),s=f("ElCollapse");return r(),v("div",z,[_("div",G,[h(S,{map:n.value},null,8,["map"])]),_("div",Y,[h(s,{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=a=>l.value=a)},{default:y(()=>[(r(!0),v(U,null,A(F(p),a=>(r(),k(o,{title:a.title,name:a.key,key:a.key},{default:y(()=>[(r(),k(H(a.component),I(a,{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","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/search/standBook/detail.vue"]]);export{Ke as default};