import{_ as F,d as N,n as T,w as V,b3 as _,r as a,o as l,c as i,l as t,C as o,u as e,aq as x,a as m,G as I,F as w}from"./index.1d1a5ecb.js";import{u as A}from"./useDetail.def78081.js";import{b as g,c as q}from"./index.48d04e86.js";import{B as P}from"./basic-descriptions.1879b0f8.js";import{R as U}from"./index.15c50815.js";import j from"./return-form.a47501fd.js";import{I as G}from"./index.a01ce790.js";import{t as L}from"./ticketReturn.0e254b53.js";import"./porder.0bfb4ddc.js";import"./index.3b07317f.js";import"./tootip.76f6bcc3.js";import"./status.d6b2a53d.js";import"./choose-modal.e2706aba.js";import"./_details.930f66d0.js";import"./date-range.04fa85c1.js";import"./_options.31f08d77.js";import"./invoice-table.3e47d89b.js";import"./invoice-form.c2ac496a.js";import"./global.9ad647c8.js";import"./invoice.be540bfd.js";const z={class:"padding__container"},H={key:0},J=N({__name:"detail",setup(K){const{push:f}=T(),C=V(null),{id:v,isDetail:s,title:p,collapses:n}=A({baseName:"\u91C7\u8D2D\u5F00\u7968",collapseLen:5}),{run:E,data:r}=_({initalData:{}}),{run:D}=_({success:()=>f("/supply/supplyTicketReturn")}),b=()=>E(g({hpNo:v.value})),k=c=>D(q(c));return s.value&&b(),(c,d)=>{const u=a("ElCollapseItem"),y=a("ElCollapse"),B=a("ElTabPane"),R=a("ElTabs");return l(),i("div",z,[t(R,null,{default:o(()=>[t(B,{label:e(p)},{default:o(()=>[t(y,{modelValue:e(n),"onUpdate:modelValue":d[0]||(d[0]=h=>x(n)?n.value=h:null)},{default:o(()=>[t(u,{name:"1",title:e(p)},{default:o(()=>[m(" \u56DE\u7968\u8BE6\u60C5 "),e(s)?(l(),I(e(P),{key:0,columns:e(L),data:e(r)},null,8,["columns","data"])):(l(),i(w,{key:1},[m(" \u521B\u5EFA\u56DE\u7968 "),t(j,{onCreate:k})],2112))]),_:1},8,["title"]),e(s)?(l(),i("div",H,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:o(()=>[t(e(U),{ref_key:"formRef",ref:C,readonly:"",id:e(r).payNo},null,8,["id"])]),_:1}),t(u,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:o(()=>[t(e(G),{type:"purchase","inv-number":e(r).invoiceNumber},null,8,["inv-number"])]),_:1})])):m("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var pe=F(J,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supply/ticketReturn/detail.vue"]]);export{pe as default};
