import{_ as q,q as w,w as P,B as R,a2 as c,C as S,r as s,as as A,L as B,v as e,o,n as k,t,K as m,H as a,N,P as $}from"./index.d8ce26ef.js";import F from"./index.90ff6d27.js";import H from"./approval-pending.fd6403e1.js";import{h as K,a as L}from"./index.7ba913e4.js";import M from"./index.3cedfdb2.js";import{I as U}from"./index.4b54201b.js";import{a as b}from"./use-response-handle.e6cae34f.js";import"./basic-descriptions.43c3a1ff.js";import"./inv-return.7e479c21.js";import"./capital-modal.717c45b6.js";import"./index.b38c0e7a.js";import"./configs.2961a790.js";import"./inv-open.f70179a7.js";import"./red-dialog.11be475a.js";import"./index.70af0e5c.js";const j={0:{title:"\u5F85\u5BA1\u6838",component:H}};const z={class:"return-ticket__content","bg-white":""},G={key:0},J=w({__name:"detail",setup(O){const{query:h}=P(),_=R(["1","2","3"]),l=c(()=>h.id),p=c(()=>!l.value),{data:u,run:y,loading:d}=b({initalData:{}}),v=()=>{y(L({returnCode:l.value}))},{run:D}=b({success:()=>v()}),T=n=>{D(K({returnCode:l.value,...n}))},r=c(()=>{const{status:n}=u.value;return j[n]});function g(){!p.value&&v()}return S(()=>g()),(n,f)=>{const i=s("ElCollapseItem"),x=s("ElCollapse"),C=s("ElTabPane"),I=s("ElTabs"),E=A("loading");return B((o(),k("div",z,[e(p)?(o(),k("div",G,[t(M)])):(o(),m(I,{key:1},{default:a(()=>[t(C,{label:"\u8BE6\u60C5"},{default:a(()=>[t(x,{modelValue:_.value,"onUpdate:modelValue":f[0]||(f[0]=V=>_.value=V)},{default:a(()=>[t(i,{title:"\u9000\u7968\u5355\u8BE6\u60C5",name:"1"},{default:a(()=>[B(t(F,{detail:e(u)},null,8,["detail"]),[[E,e(d)]])]),_:1}),t(i,{title:"\u53D1\u7968\u8BE6\u60C5",name:"2"},{default:a(()=>[t(e(U),{"invoice-data":e(u)},null,8,["invoice-data"])]),_:1}),e(r)?(o(),m(i,{key:0,name:"3",title:e(r).title},{default:a(()=>[(o(),m(N(e(r).component),{onChangeStatus:T},null,32))]),_:1},8,["title"])):$("",!0)]),_:1},8,["modelValue"])]),_:1}),t(C,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1}))])),[[E,e(d)]])}}});var ce=q(J,[["__scopeId","data-v-1b1956a8"]]);export{ce as default};
