import L from"./finance-review.4dc16b42.js";import P from"./upload-invoice.ee71266a.js";import q from"./set-post.3bc6a7f0.js";import{aG as H,aH as O,q as R,A as U,B as h,E as M,r as p,o as n,K as c,H as t,n as w,J as T,t as o,p as k,O as N,I as X,_ as Y,w as j,x as G,a2 as B,C as J,as as K,v as e,P as C,L as z,N as Q,ak as W}from"./index.d8ce26ef.js";import{r as Z}from"./responseHandle.f073653a.js";import{I as ee}from"./index.4b54201b.js";import{u as te,a as ae}from"./use-response-handle.e6cae34f.js";import oe from"./index.55d78a26.js";import ne from"./add-edit-form.0d423d52.js";import{h as se,a as le,b as ie}from"./index.b38c0e7a.js";import"./configs.a6c865ca.js";import"./status.8979b6f7.js";import"./inv-open.f70179a7.js";import"./basic-descriptions.43c3a1ff.js";import"./remote-select.0c28bf23.js";import"./index.8916d48f.js";import"./order-dialog.c17a4e37.js";import"./columns.1ca7940c.js";import"./status.fad06285.js";import"./use-page-search.665e4825.js";import"./basic-form.147ada95.js";import"./global.9ad647c8.js";import"./hooks.3def80f5.js";import"./edit-order.2390f970.js";import"./invoice-title.630168bb.js";const ue={0:{component:P,title:"\u5F85\u5F00\u7968"},1:{component:L,title:"\u8D22\u52A1\u5BA1\u6838"},2:{component:q,title:"\u8BBE\u7F6E\u7269\u6D41"}},{VITE_PROXY_DOMAIN_REAL:Me,VITE_PROXY_USER_REAL:re}=O(),me=re+"/admin/",ce=f=>H.request("post",`${me}rolelist`,{data:f}),pe={examCode:{type:String,required:!0}},_e=R({__name:"exam-record",props:pe,setup(f,{expose:D}){const g=f,{logout:E}=U(),x=h(""),_=h([]);D({code:x});async function y(a){const{code:s,data:i,message:u}=await ce({examCode:a});Z({code:s,message:u,logout:E,handler:()=>{_.value=i!=null?i:[]}})}return M(()=>g.examCode,a=>{y(a)}),(a,s)=>{const i=p("el-card"),u=p("el-timeline-item"),A=p("el-timeline");return n(),c(A,null,{default:t(()=>[(n(!0),w(X,null,T(_.value,(l,I)=>(n(),c(u,{key:"examItem"+l.addtime+I,timestamp:l.addtime,placement:"top"},{default:t(()=>[o(i,null,{default:t(()=>[k("h4",null,N(l.action_name),1),k("p",null,N(l.re),1)]),_:2},1024)]),_:2},1032,["timestamp"]))),128))]),_:1})}}});const de={class:"main bg-white"},ve={name:"InvoiceApplyDetail"},fe=R({...ve,setup(f){const{query:D}=j(),{push:g}=G(),E=te(),x=h(""),_=B(()=>s.value?"0":"1"),y=h(["0","1","2","3","4"]),a=B(()=>D.id),s=B(()=>!a.value),{loading:i,data:u,run:A}=ae({initalData:{}}),l=B(()=>{const{status:d}=u.value;return ue[d]||{}});async function I({status:d,...r}){let m;d?m=await le({invNo:a.value,status:d,...r}):m=await se({invNo:a.value,...r});const{code:v,message:b}=m;E({code:v,message:b,handler:()=>g("/InvoiceSales/invoiceApply")})}const F=()=>{A(ie({invNo:a.value}))};return J(()=>!s.value&&F()),(d,r)=>{const m=p("el-tab-pane"),v=p("el-collapse-item"),b=p("el-collapse"),S=p("el-tabs"),$=K("loading");return n(),w("div",de,[o(S,{modelValue:e(_),"onUpdate:modelValue":r[1]||(r[1]=V=>W(_)?_.value=V:null),type:"border-card"},{default:t(()=>[e(s)?(n(),c(m,{key:0,label:"\u65B0\u5EFA\u53D1\u7968\u7533\u8BF7",name:"0"},{default:t(()=>[o(ne)]),_:1})):C("",!0),e(s)?C("",!0):(n(),c(m,{key:1,label:"\u4E1A\u52A1\u8BE6\u60C5",name:"1"},{default:t(()=>[o(b,{modelValue:y.value,"onUpdate:modelValue":r[0]||(r[0]=V=>y.value=V)},{default:t(()=>[o(v,{title:"\u53D1\u7968\u7533\u8BF7\u8BE6\u60C5",name:"2"},{default:t(()=>[z(o(oe,{detail:e(u)},null,8,["detail"]),[[$,e(i)]])]),_:1}),o(v,{title:"\u53D1\u7968\u8BE6\u60C5",name:"3"},{default:t(()=>[o(e(ee),{"invoice-data":e(u)},null,8,["invoice-data"])]),_:1}),Object.keys(e(l)).length?(n(),c(v,{key:0,name:"4",title:e(l).title},{default:t(()=>[(n(),c(Q(e(l).component),{onChangeStatus:I},null,32))]),_:1},8,["title"])):C("",!0)]),_:1},8,["modelValue"])]),_:1})),e(s)?C("",!0):(n(),c(m,{key:2,label:"\u5BA1\u6279\u8BB0\u5F55",name:"2"},{default:t(()=>[o(e(_e),{examCode:x.value},null,8,["examCode"])]),_:1}))]),_:1},8,["modelValue"])])}}});var Te=Y(fe,[["__scopeId","data-v-2051395e"]]);export{Te as default};
