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.fc717898.js";import{h as L}from"./index.a33a7ac5.js";import{Q as i}from"./query.5b7e45db.js";import{i as O}from"./context.bdf6d636.js";import S from"./anchor.33984df8.js";import"./index.fa27e25c.js";import"./purchase.a3e3655e.js";import"./types.3b168355.js";import"./purchase.0bac9345.js";import"./status.727086c1.js";import"./tootip.9f47ca0b.js";import"./basic-descriptions.de38befc.js";import"./index.c2b1bb99.js";import"./reconciliation.0d326c86.js";import"./reconciliation.8e55e7bb.js";import"./index.1ee0c9e5.js";import"./sale.e7877e66.js";import"./sale.ba3f0a02.js";import"./index.463c5018.js";import"./payment.4c4fd9bd.js";import"./index.3cf4625b.js";import"./ticket-return.43dea8b3.js";import"./index.a367f71e.js";import"./tradelog.4241b0f4.js";import"./tragelog.69a0438e.js";import"./index.68a5ce0b.js";import"./trade.95e12d67.js";import"./index.24dd06b6.js";import"./refund.c35f9cc2.js";import"./index.122a2fef.js";import"./inv-return.eb9349b7.js";import"./inv-return.6a590de9.js";import"./index.97a57674.js";import"./inv-open.2b7af8d2.js";import"./inv-open.fef2b4fc.js";import"./goods.26530953.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};
|