import{_ as N,d as B,aM as y,p as I,x as T,ai as x,bc as r,r as s,o as c,c as _,l as t,D as a,m as e,ar as V,a as m,G as g,aN as P}from"./index.js";import{u as U}from"./useDetail.d77f98f9.js";import{h as w}from"./index.26d6ac45.js";import{R as A}from"./index.8ad79f80.js";import{I as F}from"./index.767adb83.js";import{t as j}from"./ticketReturn.6df30604.js";import"./porder.9a85976d.js";import"./orderRecord.4d98a397.js";const q={class:"padding__container"},G={key:0},L=B({__name:"detail",setup(M){y("supplierTicketReturnDetail");const{push:v}=I(),l=T(null);x();const{id:D,isDetail:o,title:p,collapses:n}=U({baseName:"\u901A\u7528\u91C7\u8D2D\u56DE\u7968",collapseLen:5}),{run:C,data:u}=r({initalData:{}});r({success:()=>v("/purchase/ticketReturn")}),r({success:()=>E()});function E(){f(),l.value&&l.value.refresh()}const f=()=>C(w({hpNo:D.value}));return o.value&&f(),(z,d)=>{const i=s("ElCollapseItem"),b=s("ElCollapse"),k=s("ElTabPane"),h=s("ElTabs");return c(),_("div",q,[t(h,null,{default:a(()=>[t(k,{label:e(p)},{default:a(()=>[t(b,{modelValue:e(n),"onUpdate:modelValue":d[0]||(d[0]=R=>V(n)?n.value=R:null)},{default:a(()=>[t(i,{name:"1",title:e(p)},{default:a(()=>[m(" \u56DE\u7968\u8BE6\u60C5 "),e(o)?(c(),g(e(P),{key:0,columns:e(j),data:e(u)},null,8,["columns","data"])):m("v-if",!0)]),_:1},8,["title"]),e(o)?(c(),_("div",G,[t(i,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(A),{ref_key:"formRef",ref:l,readonly:"",id:e(u).payNo},null,8,["id"])]),_:1}),t(i,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(F),{type:"purchase","inv-number":e(u).invoiceNumber},null,8,["inv-number"])]),_:1})])):m("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Z=N(L,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/InvoiceSales/supplierTicketReturn/detail.vue"]]);export{Z as default};