import{_ as M,d as U,c9 as q,k as S,n as _,ab as j,cB as v,q as L,r as l,o as a,c as r,h as t,y as s,i as e,ak as W,a as n,A as y,ca as z,F as D}from"./index.js";import{c as G}from"./ticketReturn.e53d6b17.js";import"./porder.827c74bc.js";import{h as H,d as J}from"./index.9c129b93.js";import{R as K}from"./index.6004c99e.js";import Q from"./return-form.cc58b2.js";import X from"./invoice-modal.f10535.js";import{u as Y}from"./useDetail.da468487.js";import"./orderRecord.92bbc10f.js";import"./choose-modal.9117fa.js";import"./_details.1548b92f.js";import"./_options.31f08d77.js";import"./invoice-table.25fb6a.js";import"./invoice-form.8927c7.js";import"./global.9ad647c8.js";import"./index.c443965f.js";const Z={class:"padding__container"},$={key:0},ee="supplyTicketReturnDetail",te=U({__name:"detail",setup(oe){const{hasPermissionWithCode:N}=q(ee),{push:B}=S(),k=_(null),i=_(null),c=_(!0),{id:F,isDetail:p,title:R,collapses:m}=Y({baseName:"\u91C7\u8D2D\u5F00\u7968",collapseLen:20}),{isSuperUser:T}=j();v({success:()=>A()});const{run:b,data:o}=v({initalData:{}});function A(){d(),i.value&&i.value.refresh(),c.value=!1,L(()=>c.value=!0)}const{run:x}=v({success:()=>B("/supply/supplyTicketReturn")}),d=()=>b(H({hpNo:F.value})),V=h=>x(J(h));return p.value&&d(),(h,E)=>{const u=l("ElCollapseItem"),g=l("OrderRelationApproval"),w=l("OrderRelation"),I=l("ElCollapse"),O=l("ElTabPane"),P=l("ElTabs");return a(),r("div",Z,[t(P,null,{default:s(()=>[t(O,{label:e(R)},{default:s(()=>[t(I,{modelValue:e(m),"onUpdate:modelValue":E[0]||(E[0]=f=>W(m)?m.value=f:null)},{default:s(()=>[t(u,{name:"1",title:e(R)},{default:s(()=>[n(" \u56DE\u7968\u8BE6\u60C5 "),e(p)?(a(),y(e(z),{key:0,columns:e(G)(f=>{var C;return(C=k.value)==null?void 0:C.onDisplay(f)}),data:e(o)},null,8,["columns","data"])):(a(),r(D,{key:1},[n(" \u521B\u5EFA\u56DE\u7968 "),t(Q,{onCreate:V})],2112))]),_:1},8,["title"]),e(p)?(a(),r("div",$,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:s(()=>[t(e(K),{ref_key:"formRef",ref:i,readonly:"",id:e(o).payNo},null,8,["id"])]),_:1}),e(o)&&["2","3","4","6","12"].includes(String(e(o).status))&&c.value?(a(),y(u,{key:0,title:"\u5173\u8054\u4FE1\u606F",name:"10"},{default:s(()=>[t(g,{readonly:"",code:e(o).hpNo},null,8,["code"])]),_:1})):n("v-if",!0),t(X,{ref_key:"invoiceModalRef",ref:k},null,512),e(T)?n("v-if",!0):(a(),r(D,{key:1},[e(o)&&e(o).status=="11"&&e(N)("063")?(a(),y(u,{key:0,title:"\u5F85\u53D1\u7968\u4E0E\u8BA2\u5355\u5173\u8054",name:"8"},{default:s(()=>[t(w,{code:e(o).hpNo,payNo:e(o).payNo,onRefresh:d},null,8,["code","payNo"])]),_:1})):n("v-if",!0)],64))])):n("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Re=M(te,[["__file","D:/work/jiesuan/settle-vue3/src/views/supply/ticketReturn/detail.vue"]]);export{Re as default};
