import{_ as P,d as S,n as U,aL as q,w as L,ah as j,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.88f7d256.js";import{u as $}from"./useDetail.60c209b5.js";import{B as C}from"./basic-descriptions.5c20357d.js";import{R as z}from"./index.9fa951c4.js";import H from"./return-form.312219bc.js";import{R as J}from"./receipt.7a915582.js";import{h as K}from"./index.3ab8ac20.js";import{t as M}from"./ticketReturn.99b2e36c.js";import{t as O}from"./ticketReturnRelive.d990a581.js";import"./porder.b626a198.js";import{h as Q,a as X,b as Y}from"./index.6b568d44.js";import"./index.69815c3e.js";import"./orderRecord.c9c18fd5.js";import"./tootip.514b092e.js";import"./status.2df4810d.js";import"./calc.850c7422.js";import"./choose-modal.dcaf9f46.js";import"./_details.05947f76.js";import"./date-range.b361462b.js";import"./_rules.da2e4e6a.js";import"./index.cab0a6ad.js";/* empty css */const Z={class:"padding__container"},ee={key:1},te=S({__name:"detail",setup(ae){const{push:E}=U(),R="supplierReturnReliveDetail",{hasPermissionWithCode:h}=q(R),k=L(null),{isSuperUser:B}=j(),{id:f,isDetail:l,title:_,collapses:m}=$({baseName:"\u901A\u7528\u91C7\u8D2D\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:b,data:p}=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 l.value&&v(),(o,D)=>{const r=i("ElCollapseItem"),T=i("ElCollapse"),V=i("ElTabPane"),w=i("ElTabs");return s(),c("div",Z,[t(w,null,{default:a(()=>[t(V,{label:e(_)},{default:a(()=>[t(T,{modelValue:e(m),"onUpdate:modelValue":D[0]||(D[0]=x=>G(m)?m.value=x:null)},{default:a(()=>[t(r,{name:"1",title:e(_)},{default:a(()=>[u(" \u56DE\u7968\u8BE6\u60C5 "),e(l)?(s(),d(e(C),{key:0,columns:e(O),data:e(p)},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(l)?(s(),d(r,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(C),{columns:e(M),data:e(A)},null,8,["columns","data"])]),_:1})):u("v-if",!0),e(l)?(s(),c("div",ee,[t(r,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(z),{ref_key:"formRef",ref:k,readonly:"",id:e(p).payNo},null,8,["id"])]),_:1}),!e(B)&&String(e(p).status)==="1"&&e(h)("020")?(s(),d(r,{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=P(te,[["__file","D:/work/accout-vue3-ui2/settle-vue3/src/views/InvoiceSales/supplierReturnRelive/detail.vue"]]);export{ye as default};