import{q as V,w as x,x as R,B as f,a2 as v,C as $,aD as H,aY as T,r as n,o as s,n as q,L as A,M as E,p as F,v as i,K as l,H as a,t as e,P as B}from"./index.7a111e62.js";import{u as I}from"./use-response-handle.f995d678.js";import{a as M,b as P}from"./index.5188fe49.js";import U from"./Initiate-audit.ae60624f.js";import K from"./business-review.4634b192.js";import L from"./financial-audit.4c7c5fa0.js";import Y from"./index.4db20ad2.js";import j from"./index.6eb20276.js";import"./use-review-process.9cf8e151.js";import"./basic-purchase.3fe39915.js";import"./status.8b8d6c88.js";import"./add-order-modal.b74ba894.js";import"./configs.ac3e0c04.js";import"./remote-select.58cc39a6.js";import"./index.e52ace1b.js";import"./index.4770f402.js";import"./statement-detail.9008b94e.js";import"./configs.ddfbc06f.js";const z={class:"porde__content","bg-white":""},pe=V({__name:"detail",setup(G){const{query:D}=x(),{push:b}=R(),c=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 $(()=>{c.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",z,[A(F("div",null,[i(g)?(s(),l(Y,{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(j,{"statement-detail":_.value},null,8,["statement-detail"])]),_:1}),i(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),i(p)===1?(s(),l(t,{key:1,name:"3",title:"\u4E1A\u52A1\u5BA1\u6838"},{default:a(()=>[e(K,{onChangeStatus:d})]),_:1})):B("",!0),i(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,c.value.some(u=>u=="007")]]),A(e(S,null,null,512),[[E,!c.value.some(u=>u=="007")]])])}}});export{pe as default};
