import{u as R}from"./useDetail.05beebe4.js";import{r as T,z as V,D as x,aX as c,v as a,o as l,p as d,w as t,J as o,x as e,af as I,M as _,T as w}from"./index.200c0b80.js";import{t as A}from"./_details.fd5f9a86.js";import{h as F,a as P}from"./index.87128d65.js";import{B as $}from"./basic-descriptions.97b5355b.js";import{_ as g}from"./index.a6fbd2b9.js";import q from"./return-form.a4303611.js";import{I as z}from"./index.f8b808b4.js";import"./_opitons.854186b3.js";import"./index.482566d9.js";import"./index.8ccbc128.js";import"./tootip.55ccde33.js";import"./status.177d57b0.js";import"./status.6d8f83f6.js";import"./global.9ad647c8.js";import"./choose-modal.a24a8bc1.js";import"./reconciliation.fc4e9b20.js";import"./invoice-table.89f9b983.js";import"./invoice-form.eff5ea42.js";import"./invoice.47693b80.js";const J={class:"padding__container"},L={key:0},ie=T({__name:"detail",setup(M){const{push:f}=V(),C=x(null),{id:v,isDetail:s,title:m,collapses:n}=R({baseName:"\u91C7\u8D2D\u5F00\u7968",collapseLen:5}),{run:D,data:r}=c({initalData:{}}),{run:E}=c({success:()=>f("/supply/supplyTicketReturn")}),b=()=>D(F({hpNo:v.value})),y=u=>E(P(u));return s.value&&b(),(u,p)=>{const i=a("ElCollapseItem"),h=a("ElCollapse"),k=a("ElTabPane"),B=a("ElTabs");return l(),d("div",J,[t(B,null,{default:o(()=>[t(k,{label:e(m)},{default:o(()=>[t(h,{modelValue:e(n),"onUpdate:modelValue":p[0]||(p[0]=N=>I(n)?n.value=N:null)},{default:o(()=>[t(i,{name:"1",title:e(m)},{default:o(()=>[e(s)?(l(),_(e($),{key:0,columns:e(A),data:e(r)},null,8,["columns","data"])):(l(),_(q,{key:1,onCreate:y}))]),_:1},8,["title"]),e(s)?(l(),d("div",L,[t(i,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[t(e(g),{ref_key:"formRef",ref:C,readonly:"",id:e(r).payNo},null,8,["id"])]),_:1}),t(i,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:o(()=>[t(e(z),{type:"purchase","inv-number":e(r).invoiceNumber},null,8,["inv-number"])]),_:1})])):w("",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});export{ie as default};