import{_ as x,q as E,w as N,x as w,B as m,a2 as _,C as V,r as d,o as u,n as k,t as c,H as r,v as o,K as f,N as q,P as I}from"./index.10c3f8e5.js";import{u as S}from"./use-response-handle.23bba72b.js";import{c as H,h as P,a as R}from"./configs.643dbd7e.js";import{B as b}from"./basic-descriptions.fd7c4867.js";import A from"./approval-pending.ea499adf.js";import"./use-review-process.41795506.js";const F={1:{title:"\u5F85\u8BA4\u9886",component:A}};const K={class:"capital__content","bg-white":""},M=E({__name:"detail",setup(U){const{query:v}=N(),{push:C}=w(),i=S(),s=m({}),p=m(["1","2"]),l=_(()=>v.id),n=_(()=>{const{status:e}=s.value;return F[e]});async function B(){const{code:e,message:t,data:a}=await R({logNo:l.value});i({code:e,message:t,handler:()=>s.value=a})}async function h(e){const{code:t,message:a}=await P({logNo:l.value,...e});i({code:t,message:a,handler:()=>C("/InvoiceSales/capitalPool")})}function g(){!l.value||B()}return V(()=>g()),(e,t)=>{const a=d("ElCollapseItem"),y=d("ElCollapse");return u(),k("div",K,[c(y,{modelValue:p.value,"onUpdate:modelValue":t[0]||(t[0]=D=>p.value=D)},{default:r(()=>[c(a,{title:"\u8BA2\u5355\u5BF9\u8D26\u8BE6\u60C5",name:"1"},{default:r(()=>[c(o(b),{columns:o(H),data:s.value,"col-number":2},null,8,["columns","data"])]),_:1}),o(n)?(u(),f(a,{key:0,name:"2",title:o(n).title},{default:r(()=>[(u(),f(q(o(n).component),{onChangeStatus:h},null,32))]),_:1},8,["title"])):I("",!0)]),_:1},8,["modelValue"])])}}});var O=x(M,[["__scopeId","data-v-6f7f3dc8"]]);export{O as default};
