import{q as V,w as x,x as R,B as f,a2 as v,C as $,aD as H,b0 as T,r as n,o as s,n as q,L as A,M as E,p as F,v as c,K as l,H as a,t as e,P as B}from"./index.10c3f8e5.js";import{u as I}from"./use-response-handle.23bba72b.js";import{a as M,b as P}from"./index.44c8546a.js";import U from"./Initiate-audit.a24ba635.js";import K from"./business-review.32d5e1b0.js";import L from"./financial-audit.02d9259e.js";import j from"./index.e0ab6414.js";import z from"./index.92d166bc.js";import"./use-review-process.41795506.js";import"./basic-purchase.5bb63e11.js";import"./status.7319085b.js";import"./add-order-modal.36ad9e8f.js";import"./configs.051126a9.js";import"./remote-select.1801f2db.js";import"./index.cefa9fb5.js";import"./index.88eb7924.js";import"./statement-detail.d290a096.js";const G={class:"porde__content","bg-white":""},ie=V({__name:"detail",setup(J){const{query:D}=x(),{push:b}=R(),i=f([]),r=v(()=>D.id),g=v(()=>!r.value),h=I(),C=f(["1","2","3","4"]),p=v(()=>Number(_.value.status)),_=f({});async function k(){const{code:m,message:o,data:t}=await P({payNo:r.value});h({code:m,message:o,handler:()=>_.value=t})}async function d(m){const{message:o,code:t}=await M({payNo:r.value,...m});h({code:t,message:o,handler:()=>b("/purchase/orderRecord")})}return $(()=>{i.value=H().getMenuActions("orderRecordDetail")}),T(()=>r.value&&k()),(m,o)=>{const t=n("ElCollapseItem"),w=n("ElCollapse"),y=n("ElTabPane"),N=n("ElTabs"),S=n("NoAuth");return s(),q("div",G,[A(F("div",null,[c(g)?(s(),l(j,{key:0})):(s(),l(N,{key:1},{default:a(()=>[e(y,{label:"\u8BA2\u5355\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[e(w,{modelValue:C.value,"onUpdate:modelValue":o[0]||(o[0]=u=>C.value=u)},{default:a(()=>[e(t,{title:"\u8BA2\u5355\u5BF9\u8D26\u8BE6\u60C5",name:"1"},{default:a(()=>[e(z,{"statement-detail":_.value},null,8,["statement-detail"])]),_:1}),c(p)===0?(s(),l(t,{key:0,name:"2",title:"\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B"},{default:a(()=>[e(U,{onChangeStatus:d})]),_:1})):B("",!0),c(p)===1?(s(),l(t,{key:1,name:"3",title:"\u4E1A\u52A1\u5BA1\u6838"},{default:a(()=>[e(K,{onChangeStatus:d})]),_:1})):B("",!0),c(p)===2?(s(),l(t,{key:2,name:"4",title:"\u8D22\u52A1\u5BA1\u6838"},{default:a(()=>[e(L,{onChangeStatus:d})]),_:1})):B("",!0)]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1}))],512),[[E,i.value.some(u=>u=="007")]]),A(e(S,null,null,512),[[E,!i.value.some(u=>u=="007")]])])}}});export{ie as default};
