import{_ as S,d as U,n as w,aL as j,w as q,ah as L,b3 as n,r as i,o as s,c,l as t,C as a,u as e,aq as G,a as u,G as d,F as W}from"./index.56c69f5a.js";import{u as $}from"./useDetail.acb31522.js";import{B as D}from"./basic-descriptions.5f176484.js";import{R as z}from"./index.e077b65d.js";import H from"./return-form.bae9dde2.js";import{R as J}from"./receipt.0d15a04f.js";import{h as K}from"./index.d4057835.js";import{t as M}from"./ticketReturn.1ed463e4.js";import{t as O}from"./ticketReturnRelive.c1b6ae1e.js";import"./porder.30193b2b.js";import{h as Q,a as X,b as Y}from"./index.db9049bd.js";import"./index.2e257471.js";import"./orderRecord.9d7001b8.js";import"./tootip.fe6ea468.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./choose-modal.e8dcec64.js";import"./_details.05947f76.js";import"./date-range.c3f1dbd6.js";import"./_rules.da2e4e6a.js";import"./index.e9dde695.js";/* empty css                                                */const Z={class:"padding__container"},ee={key:1},te=U({__name:"detail",setup(ae){const{push:E}=w(),R="supplierReturnReliveDetail",{hasPermissionWithCode:h}=j(R),k=q(null),{isSuperUser:B}=L(),{id:f,isDetail:r,title:_,collapses:p}=$({baseName:"\u901A\u7528\u91C7\u8D2D\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:b,data:m}=n({initalData:{},success:({orderCode:o})=>y(K({hpNo:o}))}),{run:y,data:A}=n({initalData:{}}),{run:F}=n({success:()=>v()}),{run:N}=n({success:()=>E("/purchase/ticketReturnRelive")}),g=o=>F(X({returnCode:f.value,...o})),v=()=>b(Q({returnCode:f.value})),I=o=>N(Y(o));return r.value&&v(),(o,C)=>{const l=i("ElCollapseItem"),T=i("ElCollapse"),V=i("ElTabPane"),x=i("ElTabs");return s(),c("div",Z,[t(x,null,{default:a(()=>[t(V,{label:e(_)},{default:a(()=>[t(T,{modelValue:e(p),"onUpdate:modelValue":C[0]||(C[0]=P=>G(p)?p.value=P:null)},{default:a(()=>[t(l,{name:"1",title:e(_)},{default:a(()=>[u(" \u56DE\u7968\u8BE6\u60C5 "),e(r)?(s(),d(e(D),{key:0,columns:e(O),data:e(m)},null,8,["columns","data"])):(s(),c(W,{key:1},[u(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(H,{onCreate:I})],2112))]),_:1},8,["title"]),e(r)?(s(),d(l,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(D),{columns:e(M),data:e(A)},null,8,["columns","data"])]),_:1})):u("v-if",!0),e(r)?(s(),c("div",ee,[t(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(z),{ref_key:"formRef",ref:k,readonly:"",id:e(m).payNo},null,8,["id"])]),_:1}),!e(B)&&String(e(m).status)==="1"&&e(h)("020")?(s(),d(l,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:a(()=>[t(e(J),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:g})]),_:1})):u("v-if",!0)])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var ye=S(te,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/InvoiceSales/supplierReturnRelive/detail.vue"]]);export{ye as default};
