import{_ as V,d as P,p as U,aM as w,x as j,ai as q,bc as u,r as i,o as s,c as m,l as t,D as a,m as e,ar as G,a as r,G as d,aN as C,F as L}from"./index.js";import{u as M}from"./useDetail.748c7288.js";import W from"./index.f6be26.js";import $ from"./return-form.ca1396.js";import{R as z}from"./receipt.7f8edf4c.js";import{h as H}from"./index.80104a95.js";import{s as J}from"./ticketReturn.8c918810.js";import{s as K}from"./ticketReturnRelive.aa2925d6.js";import"./porder.cb2a60e8.js";import{h as Q,a as X,b as Y}from"./index.d03c0f13.js";import"./orderRecord.bd0f73d4.js";import"./index.a7de6b05.js";import"./choose-modal.30fa3e.js";import"./_details.7c6ddbaa.js";import"./date-range.019e953f.js";import"./_rules.1ebcf188.js";import"./index.63cd11b6.js";/* empty css                                                */const Z={class:"padding__container bg-white"},ee={key:1},te=P({__name:"detail",setup(ae){const{push:E}=U(),h="supSendOrderInvoiceReliveDetail",{hasPermissionWithCode:R}=w(h),k=j(null),{isSuperUser:y}=q(),{id:f,isDetail:l,title:_,collapses:p}=M({baseName:"\u8FD0\u5355\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:b,data:c}=u({initalData:{},success:({orderCode:o})=>N(H({hpNo:o}))}),{run:N,data:A}=u({initalData:{}}),{run:B}=u({success:()=>v()}),{run:F}=u({success:()=>E("/supplierOrder/supplierOrderCollection?tab=supSendOrderInvoiceRelive_collection")}),g=o=>B(X({returnCode:f.value,...o})),v=()=>b(Q({returnCode:f.value})),I=o=>F(Y(o));return l.value&&v(),(o,D)=>{const n=i("ElCollapseItem"),T=i("ElCollapse"),O=i("ElTabPane"),x=i("ElTabs");return s(),m("div",Z,[t(x,null,{default:a(()=>[t(O,{label:e(_)},{default:a(()=>[t(T,{modelValue:e(p),"onUpdate:modelValue":D[0]||(D[0]=S=>G(p)?p.value=S:null)},{default:a(()=>[t(n,{name:"1",title:e(_)},{default:a(()=>[r(" \u56DE\u7968\u8BE6\u60C5 "),e(l)?(s(),d(e(C),{key:0,columns:e(K),data:e(c)},null,8,["columns","data"])):(s(),m(L,{key:1},[r(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t($,{onCreate:I})],2112))]),_:1},8,["title"]),e(l)?(s(),d(n,{key:0,name:"4",title:"\u8FD0\u5355\u56DE\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(C),{columns:e(J),data:e(A)},null,8,["columns","data"])]),_:1})):r("v-if",!0),e(l)?(s(),m("div",ee,[t(n,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[r(' <ReconciliationForm ref="formRef" readonly :id="data.payNo" /> '),t(W,{ref_key:"formRef",ref:k,readonly:"",request:"",payNo:e(c).payNo},null,8,["payNo"])]),_:1}),!e(y)&&String(e(c).status)==="1"&&e(R)("053")?(s(),d(n,{key:0,name:"3",title:"\u4E1A\u52A1\u516C\u53F8\u8D22\u52A1\u5BA1\u6838"},{default:a(()=>[t(e(z),{"no-time":"","has-remark":"","approve-value":"2","reject-value":"3","img-prop":"returnImg",onApproval:g})]),_:1})):r("v-if",!0)])):r("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var Re=V(te,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/supplierOrder/sendOrderInvoiceRelive/detail.vue"]]);export{Re as default};
