import{_ as S,d as U,aL as j,n as w,w as q,ah as L,b3 as d,r as i,o,c as p,l as t,C as a,u as e,aq as G,a as u,G as _,F as D}from"./index.56c69f5a.js";import{u as W}from"./useDetail.acb31522.js";import{h as z,d as H,e as J}from"./index.d4057835.js";import{B as K}from"./basic-descriptions.5f176484.js";import{R as M}from"./index.e077b65d.js";import O from"./return-form.3ccd232d.js";import{I as Q}from"./index.ce613775.js";import{D as k}from"./default.30f69f92.js";/* empty css                                                */import{t as X}from"./ticketReturn.1ed463e4.js";import"./porder.30193b2b.js";import"./index.2e257471.js";import"./orderRecord.9d7001b8.js";import"./tootip.fe6ea468.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./choose-modal.deda6415.js";import"./_details.70698317.js";import"./date-range.c3f1dbd6.js";import"./_options.b664a184.js";import"./invoice-table.e10dc9ea.js";import"./invoice-form.f70be0e4.js";import"./global.9ad647c8.js";import"./invoice.3cbb6342.js";const Y={class:"padding__container"},Z={key:0},$=U({__name:"detail",setup(ee){const A="ticketReturnDetail",{hasPermissionWithCode:v}=j(A),{push:b}=w(),m=q(null),{isSuperUser:y}=L(),{id:C,isDetail:c,title:h,collapses:f}=W({baseName:"\u91C7\u8D2D\u56DE\u7968",collapseLen:5}),{run:R,data:s}=d({initalData:{}}),{run:N}=d({success:()=>b("/purchase/ticketReturn")}),{run:F}=d({success:()=>g()});function g(){E(),m.value&&m.value.refresh()}const E=()=>R(z({hpNo:C.value})),I=l=>N(H(l));function B(l){const n={...l,hpNo:C.value};F(J(n))}return c.value&&E(),(l,n)=>{const r=i("ElCollapseItem"),T=i("ElCollapse"),V=i("ElTabPane"),x=i("ElTabs");return o(),p("div",Y,[t(x,null,{default:a(()=>[t(V,{label:e(h)},{default:a(()=>[t(T,{modelValue:e(f),"onUpdate:modelValue":n[0]||(n[0]=P=>G(f)?f.value=P:null)},{default:a(()=>[t(r,{name:"1",title:e(h)},{default:a(()=>[u(" \u56DE\u7968\u8BE6\u60C5 "),e(c)?(o(),_(e(K),{key:0,columns:e(X),data:e(s)},null,8,["columns","data"])):(o(),p(D,{key:1},[u(" \u521B\u5EFA\u56DE\u7968 "),t(O,{onCreate:I})],2112))]),_:1},8,["title"]),e(c)?(o(),p("div",Z,[t(r,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(M),{ref_key:"formRef",ref:m,readonly:"",id:e(s).payNo},null,8,["id"])]),_:1}),t(r,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(s).invoiceNumber},null,8,["inv-number"])]),_:1}),u(" \u5BA1\u6279\u8282\u70B9 "),e(y)?u("v-if",!0):(o(),p(D,{key:0},[String(e(s).status)==="2"&&e(v)("020")?(o(),_(r,{key:0,title:"\u4E70\u65B9\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(k),{"approve-value":"3","reject-value":"6",onApproval:B})]),_:1})):u("v-if",!0),String(e(s).status)==="3"&&e(v)("021")?(o(),_(r,{key:1,name:"5",title:"\u4E70\u65B9\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(k),{"approve-value":"4","reject-value":"7",onApproval:B})]),_:1})):u("v-if",!0)],64))])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ye=S($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/purchase/ticketReturn/detail.vue"]]);export{ye as default};
