detail.3c95bbb2.js 2.7 KB

1
  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.b7c3a7ce.js";import{h as O}from"./index.59feb560.js";import{Q as i}from"./query.6471e09d.js";import{i as Q}from"./context.bdf6d636.js";import S from"./anchor.77fd1945.js";import"./index.f18f34b6.js";import"./purchase.3e1b635b.js";import"./types.c6212c84.js";import"./porder.14f4b9e1.js";import"./tootip.bb99fc93.js";import"./status.73dc9f3e.js";import"./basic-descriptions.949d8596.js";import"./index.af98bced.js";import"./reconciliation.f2cb70e5.js";import"./index.93ee8101.js";import"./index.0cb7ad2a.js";import"./sale.f66b855d.js";import"./sale.0ca60dbd.js";import"./index.ba92c6f3.js";import"./payment.e4338421.js";import"./purchPay.fc07398e.js";import"./index.9a21cf8b.js";import"./ticket-return.a1b53ae9.js";import"./ticketReturn.2b43a557.js";import"./index.73b8fdcd.js";import"./tradelog.74074460.js";import"./tragelog.23bda8e2.js";import"./index.f918906f.js";import"./trade.2bc8e454.js";import"./index.19bc71f1.js";import"./refund.d1657296.js";import"./index.bfee7baf.js";import"./inv-return.acbea13d.js";import"./inv-return.c505dc74.js";import"./index.c0755f14.js";import"./inv-open.e9a0db5d.js";import"./inv-open.8de2cf05.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};