import{_ as w,d as x,aL as P,n as U,w as j,ah as q,b3 as f,r as i,o as r,c as p,l as t,C as a,u as e,aq as L,a as o,G as v,F as A}from"./index.56c69f5a.js";import{u as G}from"./useDetail.acb31522.js";import{h as W,d as z,e as H}from"./index.d4057835.js";import{B as J}from"./basic-descriptions.5f176484.js";import K from"./index.805e9566.js";import M from"./return-form.1d35916f.js";import{I as Q}from"./index.ce613775.js";import{D as y}from"./default.30f69f92.js";/* empty css                                                */import{s as X}from"./ticketReturn.1ed463e4.js";import"./porder.30193b2b.js";import"./tootip.fe6ea468.js";import"./orderRecord.9d7001b8.js";import"./calc.850c7422.js";import"./index.5ce46a74.js";import"./choose-modal.0950c91f.js";import"./_details.7e8f00e4.js";import"./index.2e257471.js";import"./status.2df4810d.js";import"./date-range.c3f1dbd6.js";import"./invoice-table.4b5cd033.js";import"./invoice-form.64d083da.js";import"./global.9ad647c8.js";import"./invoice.3cbb6342.js";const Y={class:"padding__container bg-white"},Z={key:0},$=x({__name:"detail",setup(ee){const B="sendOrderInvoiceDetail",{hasPermissionWithCode:_}=P(B),{push:k}=U(),m=j(null),{isSuperUser:b}=q(),{id:C,isDetail:c,title:E,collapses:d}=G({baseName:"\u8FD0\u5355\u56DE\u7968",collapseLen:5}),{run:N,data:s}=f({initalData:{}}),{run:F}=f({success:()=>k("/supplierOrder/supSendOrderInvoice")}),{run:I}=f({success:()=>R()});function R(){h(),m.value&&m.value.refresh()}const h=()=>N(W({hpNo:C.value})),g=n=>F(z(n));function D(n){const l={...n,hpNo:C.value};I(H(l))}return c.value&&h(),(n,l)=>{const u=i("ElCollapseItem"),T=i("ElCollapse"),O=i("ElTabPane"),S=i("ElTabs");return r(),p("div",Y,[t(S,null,{default:a(()=>[t(O,{label:e(E)},{default:a(()=>[t(T,{modelValue:e(d),"onUpdate:modelValue":l[0]||(l[0]=V=>L(d)?d.value=V:null)},{default:a(()=>[t(u,{name:"1",title:e(E)},{default:a(()=>[o(" \u56DE\u7968\u8BE6\u60C5 "),e(c)?(r(),v(e(J),{key:0,columns:e(X),data:e(s)},null,8,["columns","data"])):(r(),p(A,{key:1},[o(" \u521B\u5EFA\u56DE\u7968 "),t(M,{onCreate:g})],2112))]),_:1},8,["title"]),e(c)?(r(),p("div",Z,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[o(' <ReconciliationForm ref="formRef" readonly :id="data.payNo"  /> '),t(K,{ref_key:"formRef",ref:m,request:"",readonly:"",payNo:e(s).payNo},null,8,["payNo"])]),_:1}),t(u,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(s).invoiceNumber},null,8,["inv-number"])]),_:1}),o(" \u5BA1\u6279\u8282\u70B9 "),e(b)?o("v-if",!0):(r(),p(A,{key:0},[String(e(s).status)==="2"&&e(_)("053")?(r(),v(u,{key:0,title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(y),{"approve-value":"3","reject-value":"6",onApproval:D})]),_:1})):o("v-if",!0),String(e(s).status)==="3"&&e(_)("054")?(r(),v(u,{key:1,name:"5",title:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(y),{"approve-value":"4","reject-value":"7",onApproval:D})]),_:1})):o("v-if",!0)],64))])):o("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var be=w($,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/supplierOrder/sendOrderInvoice/detail.vue"]]);export{be as default};
