import{_ as w,d as x,n as P,aL as U,w as q,ah as j,b3 as n,r as i,o as s,c,l as t,C as a,u as e,aq as L,a as r,G as d,F as G}from"./index.56c69f5a.js";import{u as W}from"./useDetail.acb31522.js";import{B as C}from"./basic-descriptions.5f176484.js";import $ from"./index.acb65478.js";import z from"./return-form.03e97f28.js";import{R as H}from"./receipt.0d15a04f.js";import{h as J}from"./index.d4057835.js";import{s as K}from"./ticketReturn.1ed463e4.js";import{s as M}from"./ticketReturnRelive.c1b6ae1e.js";import"./porder.30193b2b.js";import{h as Q,a as X,b as Y}from"./index.db9049bd.js";import"./tootip.fe6ea468.js";import"./orderRecord.9d7001b8.js";import"./calc.850c7422.js";import"./index.5ce46a74.js";import"./choose-modal.f8ff351b.js";import"./_details.3df1a21f.js";import"./status.2df4810d.js";import"./date-range.c3f1dbd6.js";import"./_rules.aa6432b7.js";import"./index.e9dde695.js";/* empty css                                                */const Z={class:"padding__container bg-white"},ee={key:1},te=x({__name:"detail",setup(ae){const{push:E}=P(),h="sendOrderInvoiceReliveDetail",{hasPermissionWithCode:R}=U(h),k=q(null),{isSuperUser:y}=j(),{id:f,isDetail:u,title:_,collapses:p}=W({baseName:"\u8FD0\u5355\u56DE\u7968\u89E3\u9664",collapseLen:5}),{run:B,data:m}=n({initalData:{},success:({orderCode:o})=>b(J({hpNo:o}))}),{run:b,data:A}=n({initalData:{}}),{run:N}=n({success:()=>v()}),{run:F}=n({success:()=>E("/postSupplierOrder/sendOrderInvoiceRelive")}),g=o=>N(X({returnCode:f.value,...o})),v=()=>B(Q({returnCode:f.value})),I=o=>F(Y(o));return u.value&&v(),(o,D)=>{const l=i("ElCollapseItem"),T=i("ElCollapse"),O=i("ElTabPane"),S=i("ElTabs");return s(),c("div",Z,[t(S,null,{default:a(()=>[t(O,{label:e(_)},{default:a(()=>[t(T,{modelValue:e(p),"onUpdate:modelValue":D[0]||(D[0]=V=>L(p)?p.value=V:null)},{default:a(()=>[t(l,{name:"1",title:e(_)},{default:a(()=>[r(" \u56DE\u7968\u8BE6\u60C5 "),e(u)?(s(),d(e(C),{key:0,columns:e(M),data:e(m)},null,8,["columns","data"])):(s(),c(G,{key:1},[r(" \u521B\u5EFA\u56DE\u7968\u9000\u7968 "),t(z,{onCreate:I})],2112))]),_:1},8,["title"]),e(u)?(s(),d(l,{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})):r("v-if",!0),e(u)?(s(),c("div",ee,[t(l,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[r(' <ReconciliationForm ref="formRef" readonly :id="data.payNo" /> '),t($,{ref_key:"formRef",ref:k,readonly:"",request:"",payNo:e(m).payNo},null,8,["payNo"])]),_:1}),!e(y)&&String(e(m).status)==="1"&&e(R)("053")?(s(),d(l,{key:0,name:"3",title:"\u4E1A\u52A1\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:g})]),_:1})):r("v-if",!0)])):r("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var be=w(te,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/postSupplierOrder/sendOrderInvoiceRelive/detail.vue"]]);export{be as default};
