import{q as x,w as P,a2 as i,B as R,aC as T,r as n,as as $,L as p,v as e,o,n as F,p as I,K as u,H as a,t,P as c,M as D}from"./index.d8ce26ef.js";import{h as H,a as K}from"./index.79955875.js";import L from"./Initiate-audit.0594ab8b.js";import M from"./business-review.2e27367e.js";import U from"./financial-audit.c8359802.js";import j from"./index.d938ce24.js";import{_ as z}from"./index.5789ee8c.js";import{a as h}from"./use-response-handle.e6cae34f.js";import{u as G}from"./use-permission.314b29b7.js";import"./use-review-process.05bb1ce9.js";import"./global.9ad647c8.js";import"./basic-purchase.ba1d31fb.js";import"./status.fad06285.js";import"./add-order-modal.468df5a2.js";import"./remote-select.0c28bf23.js";import"./index.b57c1791.js";import"./index.8916d48f.js";import"./basic-descriptions.43c3a1ff.js";import"./reconciliation.0978f225.js";const J={class:"porde__content","bg-white":""},de=x({__name:"detail",setup(O){const{query:y}=P(),s=i(()=>y.id),E=i(()=>!s.value),_=R(["1","2","3","4"]),r=i(()=>Number(g.value.status)),{run:A}=h({success:()=>d()}),{data:g,run:N,loading:S}=h({initalData:{}}),d=()=>{N(H({payNo:s.value}))},m=v=>{A(K({payNo:s.value,...v}))},{permission:f}=G({pageName:"orderRecordDetail"});return T(()=>s.value&&d()),(v,B)=>{const l=n("ElCollapseItem"),b=n("ElCollapse"),C=n("ElTabPane"),k=n("ElTabs"),w=n("NoAuth"),V=$("loading");return p((o(),F("div",J,[p(I("div",null,[e(E)?(o(),u(j,{key:0})):(o(),u(k,{key:1},{default:a(()=>[t(C,{label:"\u8BA2\u5355\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(b,{modelValue:_.value,"onUpdate:modelValue":B[0]||(B[0]=q=>_.value=q)},{default:a(()=>[t(l,{title:"\u8BA2\u5355\u5BF9\u8D26\u8BE6\u60C5",name:"1"},{default:a(()=>[t(e(z),{"pay-no":e(s)},null,8,["pay-no"])]),_:1}),e(r)===0?(o(),u(l,{key:0,name:"2",title:"\u53D1\u8D77\u5BA1\u6838\u6D41\u7A0B"},{default:a(()=>[t(L,{onChangeStatus:m})]),_:1})):c("",!0),e(r)===1?(o(),u(l,{key:1,name:"3",title:"\u91C7\u8D2D\u5BA1\u6838"},{default:a(()=>[t(M,{onChangeStatus:m})]),_:1})):c("",!0),e(r)===2?(o(),u(l,{key:2,name:"4",title:"\u8D22\u52A1\u5BA1\u6838"},{default:a(()=>[t(U,{onChangeStatus:m})]),_:1})):c("",!0)]),_:1},8,["modelValue"])]),_:1}),t(C,{label:"\u5BA1\u6279\u8BB0\u5F55"})]),_:1}))],512),[[D,e(f).detail]]),p(t(w,null,null,512),[[D,!e(f).detail]])])),[[V,e(S)]])}}});export{de as default};
