import{_ as V,d as P,aM as U,p as j,x as w,ai as q,bc as v,r as i,o as s,c as p,l as t,D as a,m as e,ar as G,a as o,G as _,aN as L,F as y}from"./index.js";import{u as M}from"./useDetail.748c7288.js";import{h as W,d as z,e as H}from"./index.80104a95.js";import J from"./index.a6589a.js";import K from"./return-form.78e731.js";import{I as Q}from"./index.a1a4a0ff.js";import{D as B}from"./default.5cadb723.js";/* empty css                                                */import{s as X}from"./ticketReturn.8c918810.js";import"./porder.cb2a60e8.js";import"./orderRecord.bd0f73d4.js";import"./index.a7de6b05.js";import"./choose-modal.9685a3.js";import"./_details.810a642a.js";import"./date-range.019e953f.js";import"./invoice-table.fadc3c.js";import"./invoice-form.44f3bc.js";import"./global.9ad647c8.js";const Y={class:"padding__container bg-white"},Z={key:0},$=P({__name:"detail",setup(ee){const b="sendOrderInvoiceDetail",{hasPermissionWithCode:C}=U(b),{push:k}=j(),c=w(null),{isSuperUser:m}=q(),{id:E,isDetail:d,title:D,collapses:f}=M({baseName:"\u8FD0\u5355\u56DE\u7968",collapseLen:5}),{run:N,data:r}=v({initalData:{}}),{run:F}=v({success:()=>k("/postSupplierOrder/postSupplierOrderCollection?tab=sendOrderInvoice_collection")}),{run:I}=v({success:()=>R()});function R(){h(),c.value&&c.value.refresh()}const h=()=>N(W({hpNo:E.value})),S=l=>F(z(l));function A(l){const n={...l,hpNo:E.value};I(H(n))}return d.value&&h(),(l,n)=>{const u=i("ElCollapseItem"),g=i("ElCollapse"),O=i("ElTabPane"),T=i("ElTabs");return s(),p("div",Y,[t(T,null,{default:a(()=>[t(O,{label:e(D)},{default:a(()=>[t(g,{modelValue:e(f),"onUpdate:modelValue":n[0]||(n[0]=x=>G(f)?f.value=x:null)},{default:a(()=>[t(u,{name:"1",title:e(D)},{default:a(()=>[o(" \u56DE\u7968\u8BE6\u60C5 "),e(d)?(s(),_(e(L),{key:0,columns:e(X),data:e(r)},null,8,["columns","data"])):(s(),p(y,{key:1},[o(" \u521B\u5EFA\u56DE\u7968 "),t(K,{onCreate:S})],2112))]),_:1},8,["title"]),e(d)?(s(),p("div",Z,[t(u,{name:"2",title:"\u5BF9\u8D26\u8BE6\u60C5"},{default:a(()=>[o(' <ReconciliationForm ref="formRef" readonly :id="data.payNo"  /> '),t(J,{ref_key:"formRef",ref:c,request:"",readonly:"",payNo:e(r).payNo},null,8,["payNo"])]),_:1}),t(u,{name:"3",title:"\u53D1\u7968\u8BE6\u60C5"},{default:a(()=>[t(e(Q),{type:"purchase","inv-number":e(r).invoiceNumber},null,8,["inv-number"])]),_:1}),o(" \u5BA1\u6279\u8282\u70B9 "),e(m)?o("v-if",!0):(s(),p(y,{key:0},[String(e(r).status)==="2"&&e(C)("053")&&!e(m)?(s(),_(u,{key:0,title:"\u4E1A\u52A1\u516C\u53F8\u4E1A\u52A1\u5BA1\u6838",name:"4"},{default:a(()=>[t(e(B),{"approve-value":"3","reject-value":"6",onApproval:A})]),_:1})):o("v-if",!0),String(e(r).status)==="3"&&e(C)("054")&&!e(m)?(s(),_(u,{key:1,name:"5",title:"\u4E1A\u52A1\u516C\u53F8\u8BA4\u8BC1"},{default:a(()=>[t(e(B),{"approve-value":"4","reject-value":"7",onApproval:A})]),_:1})):o("v-if",!0)],64))])):o("v-if",!0)]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})])}}});var De=V($,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderInvoice/detail.vue"]]);export{De as default};
