import{_ as B,d as y,c9 as N,k as I,n as T,ab as V,cB as r,r as s,o as c,c as _,h as t,y as a,i as e,ak as x,a as m,A as w,ca as A}from"./index.js";import{u as P}from"./useDetail.da468487.js";import{h as g}from"./index.9c129b93.js";import{R as F}from"./index.6004c99e.js";import{I as U}from"./index.b589278a.js";import{t as j}from"./ticketReturn.e53d6b17.js";import"./porder.827c74bc.js";import"./orderRecord.92bbc10f.js";const q={class:"padding__container"},L={key:0},S="supplierTicketReturnDetail",z=y({__name:"detail",setup(G){N(S);const{push:v}=I(),l=T(null);V();const{id:D,isDetail:o,title:p,collapses:n}=P({baseName:"\u901A\u7528\u91C7\u8D2D\u56DE\u7968",collapseLen:5}),{run:E,data:u}=r({initalData:{}});r({success:()=>v("/purchase/ticketReturn")}),r({success:()=>k()});function k(){f(),l.value&&l.value.refresh()}const f=()=>E(g({hpNo:D.value}));return o.value&&f(),(H,d)=>{const i=s("ElCollapseItem"),C=s("ElCollapse"),b=s("ElTabPane"),h=s("ElTabs");return c(),_("div",q,[t(h,null,{default:a(()=>[t(b,{label:e(p)},{default:a(()=>[t(C,{modelValue:e(n),"onUpdate:modelValue":d[0]||(d[0]=R=>x(n)?n.value=R:null)},{default:a(()=>[t(i,{name:"1",title:e(p)},{default:a(()=>[m(" \u56DE\u7968\u8BE6\u60C5 "),e(o)?(c(),w(e(A),{key:0,columns:e(j),data:e(u)},null,8,["columns","data"])):m("v-if",!0)]),_:1},8,["title"]),e(o)?(c(),_("div",L,[t(i,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(F),{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(U),{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=B(z,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/supplierTicketReturn/detail.vue"]]);export{Z as default};
