import{_ as N,q as A,w as x,B as P,a2 as C,C as T,r,as as V,L as $,v as e,o as n,n as q,t as o,H as a,K as u,P as c,N as w}from"./index.d8ce26ef.js";import{a as B}from"./use-response-handle.e6cae34f.js";import{a as F,b as S}from"./index.b9ac122c.js";import R from"./authentication.f04d3a43.js";import H from"./financial-audit.349e019e.js";import K from"./confirm.6fe49c59.js";import L from"./index.ed90268f.js";import{_ as M}from"./index.5789ee8c.js";import U from"./invoice-title.d901d006.js";import"./use-review-process.05bb1ce9.js";import"./global.9ad647c8.js";import"./basic-descriptions.43c3a1ff.js";import"./ticket-return.b25ae9d8.js";import"./reconciliation.0978f225.js";import"./index.79955875.js";import"./status.fad06285.js";import"./hooks.3def80f5.js";const j={3:{title:"\u8D22\u52A1\u5BA1\u6838",component:H},4:{title:"\u5F85\u8BA4\u8BC1",component:R},5:{title:"\u5F85\u786E\u8BA4\u5B8C\u6210",component:K}};const z={class:"ticker__content","bg-white":"","mb-5":""},G=A({__name:"detail",setup(J){const{query:D}=x(),p=P(["0","1","2","3"]),_=C(()=>D.id),m=C(()=>{const{status:l}=t.value;return j[l]}),{data:t,run:E,loading:y}=B({initalData:{}}),d=()=>{E(F({hpNo:_.value}))},{run:h}=B({success:()=>d()}),b=l=>{h(S({hpNo:_.value,...l}))};return T(()=>d()),(l,f)=>{const s=r("ElCollapseItem"),k=r("ElCollapse"),v=r("ElTabPane"),g=r("ElTabs"),I=V("loading");return $((n(),q("div",z,[o(g,null,{default:a(()=>[o(v,{label:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[o(k,{modelValue:p.value,"onUpdate:modelValue":f[0]||(f[0]=i=>p.value=i)},{default:a(()=>{var i;return[e(t)?(n(),u(s,{key:0,name:"0",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[o(L,{"inv-detail":e(t)},null,8,["inv-detail"])]),_:1})):c("",!0),e(t)?(n(),u(s,{key:1,name:"1",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[o(e(M),{"pay-no":e(t).payNo},null,8,["pay-no"])]),_:1})):c("",!0),(i=e(t))!=null&&i.info?(n(),u(s,{key:2,name:"2",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[o(U,{"invoice-detail":e(t)||{}},null,8,["invoice-detail"])]),_:1})):c("",!0),e(m)?(n(),u(s,{key:3,name:"3",title:e(m).title},{default:a(()=>[(n(),u(w(e(m).component),{onChangeStatus:b},null,32))]),_:1},8,["title"])):c("",!0)]}),_:1},8,["modelValue"])]),_:1}),o(v,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1})])),[[I,e(y)]])}}});var me=N(G,[["__scopeId","data-v-3d8f125a"]]);export{me as default};
