import{q as P,w as S,B as u,a2 as p,C as T,aC as q,r,as as L,L as R,o as f,n as V,t as e,H as s,v as o,K as h,N as k,P as x}from"./index.d8ce26ef.js";import{u as I}from"./use-response-handle.e6cae34f.js";import{h as M,a as U}from"./index.41dcc163.js";import{h as H}from"./index.38f67443.js";import{B as _}from"./basic-descriptions.43c3a1ff.js";import G from"./approval-pending.adffb0ae.js";import{C as K}from"./tragelog.c677ba3b.js";import $ from"./receipt-payment.79817182.js";import{O as j,G as z}from"./sale.15181288.js";import"./use-review-process.05bb1ce9.js";import"./global.9ad647c8.js";import"./configs.18c1cc57.js";import"./purchase.3e9c8933.js";import"./status.fad06285.js";const J={1:{title:"\u5F85\u8BA4\u9886",component:G}},Q={class:"capital__content","bg-white":""},me=P({__name:"index",setup(W){const{query:N}=S(),c=I(),l=u({}),v=u({}),C=u(["1","2","3","4","5"]),i=u(!1),m=p(()=>N.id),d=p(()=>{const{status:t}=l.value;return J[t]});async function g(){i.value=!0;const{code:t,message:n,data:a}=await U({logNo:m.value});i.value=!1,c({code:t,message:n,handler:()=>l.value=a})}async function D(){const{data:t,message:n,code:a}=await H({tradNo:E.value});c({code:a,message:n,handler:()=>v.value=t})}const E=p(()=>{const{tradNo:t}=l.value;return t});async function b(t){const{code:n,message:a}=await M({logNo:m.value,...t});c({code:n,message:a,handler:()=>D()})}function w(){!m.value||g()}return T(()=>w()),q(()=>E.value&&D()),(t,n)=>{const a=r("ElCollapseItem"),y=r("ElCollapse"),B=r("ElTabPane"),O=r("ElTabs"),A=L("loading");return R((f(),V("div",Q,[e(O,null,{default:s(()=>[e(B,{label:"\u8BE6\u60C5"},{default:s(()=>[e(y,{modelValue:C.value,"onUpdate:modelValue":n[0]||(n[0]=F=>C.value=F)},{default:s(()=>[e(a,{title:"\u8D44\u91D1\u8BE6\u60C5",name:"1"},{default:s(()=>[e($,{"trade-info":v.value},null,8,["trade-info"])]),_:1}),e(a,{title:"\u5173\u8054\u8BA2\u5355\u4FE1\u606F",name:"2"},{default:s(()=>[e(o(_),{columns:o(j),data:l.value.orderinfo?l.value.orderinfo:{},"col-number":2},null,8,["columns","data"])]),_:1}),e(a,{title:"\u5546\u54C1\u4FE1\u606F",name:"3"},{default:s(()=>[e(o(_),{columns:o(z),data:l.value.orderinfo?l.value.orderinfo:{},"col-number":2},null,8,["columns","data"])]),_:1}),e(a,{title:"\u8BA4\u9886\u8D44\u91D1\u8BE6\u60C5",name:"4"},{default:s(()=>[e(o(_),{columns:o(K),data:l.value,"col-number":2},null,8,["columns","data"])]),_:1}),o(d)?(f(),h(a,{key:0,name:"5",title:o(d).title},{default:s(()=>[(f(),h(k(o(d).component),{onChangeStatus:b},null,32))]),_:1},8,["title"])):x("",!0)]),_:1},8,["modelValue"])]),_:1}),e(B,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1})])),[[A,i.value]])}}});export{me as default};
