import{_ as P,d as S,k as w,c9 as U,n as j,ab as q,cB as r,r as i,o as s,c as p,h as t,y as a,i as e,ak as L,a as u,A as d,ca as C,F as W}from"./index.js";import{u as $}from"./useDetail.da468487.js";import{R as z}from"./index.6004c99e.js";import G from"./return-form.b3c5de.js";import{R as H}from"./receipt.f599b785.js";import{h as J}from"./index.9c129b93.js";import{t as K}from"./ticketReturn.e53d6b17.js";import{t as M}from"./ticketReturnRelive.1639dbbe.js";import"./porder.827c74bc.js";import{h as O,a as Q,b as X}from"./index.dd3bcd78.js";import"./orderRecord.92bbc10f.js";import"./choose-modal.b787e9.js";import"./_details.05947f76.js";import"./_rules.da2e4e6a.js";import"./global.9ad647c8.js";const Y={class:"padding__container"},Z={key:1},ee="supplierReturnReliveDetail",te=S({__name:"detail",setup(ae){const{push:E}=w(),{hasPermissionWithCode:R}=U(ee),h=j(null),{isSuperUser:k}=q(),{id:f,isDetail:l,title:_,collapses:c}=$({baseName:"\u901A\u7528\u91C7\u8D2D\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:B,data:m}=r({initalData:{},success:({orderCode:o})=>y(J({hpNo:o}))}),{run:y,data:A}=r({initalData:{}}),{run:b}=r({success:()=>v()}),{run:F}=r({success:()=>E("/purchase/ticketReturnRelive")}),N=o=>b(Q({returnCode:f.value,...o})),v=()=>B(O({returnCode:f.value})),g=o=>F(X(o));return l.value&&v(),(o,D)=>{const n=i("ElCollapseItem"),I=i("ElCollapse"),T=i("ElTabPane"),V=i("ElTabs");return s(),p("div",Y,[t(V,null,{default:a(()=>[t(T,{label:e(_)},{default:a(()=>[t(I,{modelValue:e(c),"onUpdate:modelValue":D[0]||(D[0]=x=>L(c)?c.value=x:null)},{default:a(()=>[t(n,{name:"1",title:e(_)},{default:a(()=>[u(" \u56DE\u7968\u8BE6\u60C5 "),e(l)?(s(),d(e(C),{key:0,columns:e(M),data:e(m)},null,8,["columns","data"])):(s(),p(W,{key:1},[u(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(G,{onCreate:g})],2112))]),_:1},8,["title"]),e(l)?(s(),d(n,{key:0,name:"4",title:"\u91C7\u8D2D\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(C),{columns:e(K),data:e(A)},null,8,["columns","data"])]),_:1})):u("v-if",!0),e(l)?(s(),p("div",Z,[t(n,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[t(e(z),{ref_key:"formRef",ref:h,readonly:"",id:e(m).payNo},null,8,["id"])]),_:1}),!e(k)&&String(e(m).status)==="1"&&e(R)("020")?(s(),d(n,{key:0,name:"3",title:"\u4E70\u65B9\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:a(()=>[t(e(H),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:N})]),_:1})):u("v-if",!0)])):u("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Ce=P(te,[["__file","D:/work/jiesuan/settle-vue3/src/views/InvoiceSales/supplierReturnRelive/detail.vue"]]);export{Ce as default};
